diff --git a/asset-manifest.json b/asset-manifest.json index 8eb82405f..ce0c4c4ee 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "./static/css/main.4ada0dcb.css", - "main.js": "./static/js/main.332c8484.js", + "main.js": "./static/js/main.6d8241ab.js", "reactPlayerYouTube.js": "./static/js/reactPlayerYouTube.7af9731a.chunk.js", "reactPlayerSoundCloud.js": "./static/js/reactPlayerSoundCloud.711da1b8.chunk.js", "reactPlayerVimeo.js": "./static/js/reactPlayerVimeo.bb9275d4.chunk.js", @@ -21,7 +21,7 @@ "static/media/multisig.png": "./static/media/multisig.3ab2bbc3bda7df25ea83.png", "index.html": "./index.html", "main.4ada0dcb.css.map": "./static/css/main.4ada0dcb.css.map", - "main.332c8484.js.map": "./static/js/main.332c8484.js.map", + "main.6d8241ab.js.map": "./static/js/main.6d8241ab.js.map", "reactPlayerYouTube.7af9731a.chunk.js.map": "./static/js/reactPlayerYouTube.7af9731a.chunk.js.map", "reactPlayerSoundCloud.711da1b8.chunk.js.map": "./static/js/reactPlayerSoundCloud.711da1b8.chunk.js.map", "reactPlayerVimeo.bb9275d4.chunk.js.map": "./static/js/reactPlayerVimeo.bb9275d4.chunk.js.map", @@ -38,6 +38,6 @@ }, "entrypoints": [ "static/css/main.4ada0dcb.css", - "static/js/main.332c8484.js" + "static/js/main.6d8241ab.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 5650b100f..8d85c7984 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Umami
\ No newline at end of file +Umami
\ No newline at end of file diff --git a/static/js/main.332c8484.js b/static/js/main.6d8241ab.js similarity index 81% rename from static/js/main.332c8484.js rename to static/js/main.6d8241ab.js index 660f6f9bf..d43c8ed41 100644 --- a/static/js/main.332c8484.js +++ b/static/js/main.6d8241ab.js @@ -1,4 +1,4 @@ -/*! For license information please see main.332c8484.js.LICENSE.txt */ +/*! For license information please see main.6d8241ab.js.LICENSE.txt */ (()=>{var e={5505:(e,t)=>{var r;function n(e,t){navigator.onLine||e("offline"),e("error",t)}function i(e,t,r){navigator.serviceWorker.register(e,r).then((function(e){t("registered",e),e.waiting?t("updated",e):e.onupdatefound=function(){t("updatefound",e);var r=e.installing;r.onstatechange=function(){"installed"===r.state&&(navigator.serviceWorker.controller?t("updated",e):t("cached",e))}}})).catch((function(e){return n(t,e)}))}"undefined"!==typeof window&&(r="undefined"===typeof document||"interactive"!==document.readyState&&"complete"!==document.readyState?"undefined"!==typeof Promise?new Promise((function(e){return window.addEventListener("load",e)})):{then:function(e){return window.addEventListener("load",e)}}:Promise.resolve()),t.z=function(e,t){void 0===t&&(t={});var o=t.registrationOptions;void 0===o&&(o={}),delete t.registrationOptions;var a=function(e){for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];t&&t[e]&&t[e].apply(t,r)};"serviceWorker"in navigator&&r.then((function(){Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))?(!function(e,t,r){fetch(e).then((function(n){404===n.status?(t("error",new Error("Service worker not found at "+e)),unregister()):-1===n.headers.get("content-type").indexOf("javascript")?(t("error",new Error("Expected "+e+" to have javascript content-type, but received "+n.headers.get("content-type"))),unregister()):i(e,t,r)})).catch((function(e){return n(t,e)}))}(e,a,o),navigator.serviceWorker.ready.then((function(e){a("ready",e)}))):(i(e,a,o),navigator.serviceWorker.ready.then((function(e){a("ready",e)})))}))}},4103:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!==typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const n=r(4103),i=r(9041);class o extends i.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){n.default.exists(this);const{view:t,buffer:r,blockLen:o}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;no-s&&(this.process(r,0),s=0);for(let n=s;n>i&o),s=Number(r&o),c=n?4:0,l=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+l,s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);const c=(0,i.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);function a(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.add=a;const s={fromBig:i,split:o,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<>>32-r,rotlSL:(e,t,r)=>t<>>32-r,rotlBH:(e,t,r)=>t<>>64-r,rotlBL:(e,t,r)=>e<>>64-r,add:a,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=s},2639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},1834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;const n=r(4103),i=r(9041);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,n.default.hash(e);const r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let n=0;nnew o(e,t).update(r).digest(),t.hmac.create=(e,t)=>new o(e,t)},2291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(4103),i=r(1834),o=r(9041);function a(e,t,r,a){n.default.hash(e);const s=(0,o.checkOpts)({dkLen:32,asyncTick:10},a),{c:c,dkLen:l,asyncTick:u}=s;if(n.default.number(c),n.default.number(l),n.default.number(u),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,o.toBytes)(t),h=(0,o.toBytes)(r),f=new Uint8Array(l),p=i.hmac.create(e,d),m=p._cloneInto().update(h);return{c:c,dkLen:l,asyncTick:u,DK:f,PRF:p,PRFSalt:m}}function s(e,t,r,n,i){return e.destroy(),t.destroy(),n&&n.destroy(),i.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:i,dkLen:c,DK:l,PRF:u,PRFSalt:d}=a(e,t,r,n);let h;const f=new Uint8Array(4),p=(0,o.createView)(f),m=new Uint8Array(u.outputLen);for(let o=1,a=0;a{d._cloneInto(f).update(g).digestInto(g);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const n=r(826),i=r(9041),o=(e,t,r)=>e&t^e&r^t&r,a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let i=0;i<16;i++,t+=4)c[i]=e.getUint32(t,!1);for(let o=16;o<64;o++){const e=c[o-15],t=c[o-2],r=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,n=(0,i.rotr)(t,17)^(0,i.rotr)(t,19)^t>>>10;c[o]=n+c[o-7]+r+c[o-16]|0}let{A:r,B:n,C:s,D:l,E:u,F:d,G:h,H:f}=this;for(let m=0;m<64;m++){const e=f+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((p=u)&d^~p&h)+a[m]+c[m]|0,t=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+o(r,n,s)|0;f=h,h=d,d=u,u=l+e|0,l=s,s=n,n=r,r=e+t|0}var p;r=r+this.A|0,n=n+this.B|0,s=s+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(r,n,s,l,u,d,h,f)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new l)),t.sha224=(0,i.wrapConstructor)((()=>new u))},3974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const n=r(4103),i=r(1197),o=r(9041),[a,s,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(7),f=BigInt(256),p=BigInt(113);for(let S=0,k=u,E=1,A=0;S<24;S++){[E,A]=[A,(2*E+3*A)%5],a.push(2*(5*A+E)),s.push((S+1)*(S+2)/2%64);let e=l;for(let t=0;t<7;t++)k=(k<>h)*p)%f,k&d&&(e^=u<<(u<r>32?i.default.rotlBH(e,t,r):i.default.rotlSH(e,t,r),y=(e,t,r)=>r>32?i.default.rotlBL(e,t,r):i.default.rotlSL(e,t,r);function b(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,i=(n+2)%10,o=r[i],a=r[i+1],s=v(o,a,1)^r[t],c=y(o,a,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=s,e[n+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=s[r],o=v(t,i,n),c=y(t,i,n),l=a[r];t=e[l],i=e[l+1],e[l]=o,e[l+1]=c}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=m[n],e[1]^=g[n]}r.fill(0)}t.keccakP=b;class w extends o.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){b(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){n.default.exists(this);const{blockLen:t,state:r}=this,i=(e=(0,o.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return n.default.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(n.default.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new w(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=w;const x=(e,t,r)=>(0,o.wrapConstructor)((()=>new w(t,e,r)));t.sha3_224=x(6,144,28),t.sha3_256=x(6,136,32),t.sha3_384=x(6,104,48),t.sha3_512=x(6,72,64),t.keccak_224=x(1,144,28),t.keccak_256=x(1,136,32),t.keccak_384=x(1,104,48),t.keccak_512=x(1,72,64);const _=(e,t,r)=>(0,o.wrapConstructorWithOpts)(((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=_(31,168,16),t.shake256=_(31,136,32)},2670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const n=r(826),i=r(1197),o=r(9041),[a,s]=i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))),c=new Uint32Array(80),l=new Uint32Array(80);class u extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:m}=this;return[e,t,r,n,i,o,a,s,c,l,u,d,h,f,p,m]}set(e,t,r,n,i,o,a,s,c,l,u,d,h,f,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let i=0;i<16;i++,t+=4)c[i]=e.getUint32(t),l[i]=e.getUint32(t+=4);for(let a=16;a<80;a++){const e=0|c[a-15],t=0|l[a-15],r=i.default.rotrSH(e,t,1)^i.default.rotrSH(e,t,8)^i.default.shrSH(e,t,7),n=i.default.rotrSL(e,t,1)^i.default.rotrSL(e,t,8)^i.default.shrSL(e,t,7),o=0|c[a-2],s=0|l[a-2],u=i.default.rotrSH(o,s,19)^i.default.rotrBH(o,s,61)^i.default.shrSH(o,s,6),d=i.default.rotrSL(o,s,19)^i.default.rotrBL(o,s,61)^i.default.shrSL(o,s,6),h=i.default.add4L(n,d,l[a-7],l[a-16]),f=i.default.add4H(h,r,u,c[a-7],c[a-16]);c[a]=0|f,l[a]=0|h}let{Ah:r,Al:n,Bh:o,Bl:u,Ch:d,Cl:h,Dh:f,Dl:p,Eh:m,El:g,Fh:v,Fl:y,Gh:b,Gl:w,Hh:x,Hl:_}=this;for(let S=0;S<80;S++){const e=i.default.rotrSH(m,g,14)^i.default.rotrSH(m,g,18)^i.default.rotrBH(m,g,41),t=i.default.rotrSL(m,g,14)^i.default.rotrSL(m,g,18)^i.default.rotrBL(m,g,41),k=m&v^~m&b,E=g&y^~g&w,A=i.default.add5L(_,t,E,s[S],l[S]),P=i.default.add5H(A,x,e,k,a[S],c[S]),T=0|A,O=i.default.rotrSH(r,n,28)^i.default.rotrBH(r,n,34)^i.default.rotrBH(r,n,39),C=i.default.rotrSL(r,n,28)^i.default.rotrBL(r,n,34)^i.default.rotrBL(r,n,39),j=r&o^r&d^o&d,R=n&u^n&h^u&h;x=0|b,_=0|w,b=0|v,w=0|y,v=0|m,y=0|g,({h:m,l:g}=i.default.add(0|f,0|p,0|P,0|T)),f=0|d,p=0|h,d=0|o,h=0|u,o=0|r,u=0|n;const I=i.default.add3L(T,C,R);r=i.default.add3H(I,P,O,j),n=0|I}({h:r,l:n}=i.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:u}=i.default.add(0|this.Bh,0|this.Bl,0|o,0|u)),({h:d,l:h}=i.default.add(0|this.Ch,0|this.Cl,0|d,0|h)),({h:f,l:p}=i.default.add(0|this.Dh,0|this.Dl,0|f,0|p)),({h:m,l:g}=i.default.add(0|this.Eh,0|this.El,0|m,0|g)),({h:v,l:y}=i.default.add(0|this.Fh,0|this.Fl,0|v,0|y)),({h:b,l:w}=i.default.add(0|this.Gh,0|this.Gl,0|b,0|w)),({h:x,l:_}=i.default.add(0|this.Hh,0|this.Hl,0|x,0|_)),this.set(r,n,o,u,d,h,f,p,m,g,v,y,b,w,x,_)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class h extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class f extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,o.wrapConstructor)((()=>new u)),t.sha512_224=(0,o.wrapConstructor)((()=>new d)),t.sha512_256=(0,o.wrapConstructor)((()=>new h)),t.sha384=(0,o.wrapConstructor)((()=>new f))},9041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const n=r(2639);t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o=0&&ee instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let n=0,i=0;ne().update(a(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(a(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"===typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},7318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6880);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function o(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function l(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),u(e/4294967296>>>0,t,r),u(e>>>0,t,r+4),t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=c,t.readUint32LE=l,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=a(e,t),n=a(e,t+4);return 4294967296*r+n-4294967296*(n>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r-4294967296*(r>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=l(e,t);return 4294967296*l(e,t+4)+r},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=f,t.writeInt64LE=f,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o=i;a--)r[a]=t/o&255,o*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7318),i=r(3133);t.BLOCK_SIZE=128,t.DIGEST_LENGTH=64,t.KEY_LENGTH=64,t.PERSONALIZATION_LENGTH=16,t.SALT_LENGTH=16,t.MAX_LEAF_SIZE=Math.pow(2,32)-1,t.MAX_FANOUT=255,t.MAX_MAX_DEPTH=255;var o=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),a=[[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30],[28,20,8,16,18,30,26,12,2,24,0,4,22,14,10,6],[22,16,24,0,10,4,30,26,20,28,6,12,14,2,18,8],[14,18,6,2,26,24,22,28,4,12,10,20,8,0,30,16],[18,0,10,14,4,8,20,30,28,2,22,24,12,16,6,26],[4,24,12,20,0,22,16,6,8,26,14,10,30,28,2,18],[24,10,2,30,28,26,8,20,0,14,12,6,18,4,16,22],[26,22,14,28,24,2,6,18,10,0,30,8,16,12,4,20],[12,30,28,18,22,6,0,16,24,4,26,14,2,8,20,10],[20,4,16,8,14,12,2,10,30,22,18,28,6,24,26,0],[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30],[28,20,8,16,18,30,26,12,2,24,0,4,22,14,10,6]],s=function(){function e(e,r){if(void 0===e&&(e=64),this.digestLength=e,this.blockSize=t.BLOCK_SIZE,this._state=new Int32Array(o),this._buffer=new Uint8Array(t.BLOCK_SIZE),this._bufferLength=0,this._ctr=new Uint32Array(4),this._flag=new Uint32Array(4),this._lastNode=!1,this._finished=!1,this._vtmp=new Uint32Array(32),this._mtmp=new Uint32Array(32),e<1||e>t.DIGEST_LENGTH)throw new Error("blake2b: wrong digest length");r&&this.validateConfig(r);var i=0;r&&r.key&&(i=r.key.length);var a=1,s=1;r&&r.tree&&(a=r.tree.fanout,s=r.tree.maxDepth),this._state[0]^=e|i<<8|a<<16|s<<24,r&&r.tree&&(this._state[1]^=r.tree.leafSize,this._state[2]^=r.tree.nodeOffsetLowBits,this._state[3]^=r.tree.nodeOffsetHighBits,this._state[4]^=r.tree.nodeDepth|r.tree.innerDigestLength<<8,this._lastNode=r.tree.lastNode),r&&r.salt&&(this._state[8]^=n.readUint32LE(r.salt,0),this._state[9]^=n.readUint32LE(r.salt,4),this._state[10]^=n.readUint32LE(r.salt,8),this._state[11]^=n.readUint32LE(r.salt,12)),r&&r.personalization&&(this._state[12]^=n.readUint32LE(r.personalization,0),this._state[13]^=n.readUint32LE(r.personalization,4),this._state[14]^=n.readUint32LE(r.personalization,8),this._state[15]^=n.readUint32LE(r.personalization,12)),this._initialState=new Uint32Array(this._state),r&&r.key&&i>0&&(this._paddedKey=new Uint8Array(t.BLOCK_SIZE),this._paddedKey.set(r.key),this._buffer.set(this._paddedKey),this._bufferLength=t.BLOCK_SIZE)}return e.prototype.reset=function(){return this._state.set(this._initialState),this._paddedKey?(this._buffer.set(this._paddedKey),this._bufferLength=t.BLOCK_SIZE):this._bufferLength=0,i.wipe(this._ctr),i.wipe(this._flag),this._finished=!1,this},e.prototype.validateConfig=function(e){if(e.key&&e.key.length>t.KEY_LENGTH)throw new Error("blake2b: wrong key length");if(e.salt&&e.salt.length!==t.SALT_LENGTH)throw new Error("blake2b: wrong salt length");if(e.personalization&&e.personalization.length!==t.PERSONALIZATION_LENGTH)throw new Error("blake2b: wrong personalization length");if(e.tree){if(e.tree.fanout<0||e.tree.fanout>t.MAX_FANOUT)throw new Error("blake2b: wrong tree fanout");if(e.tree.maxDepth<0||e.tree.maxDepth>t.MAX_MAX_DEPTH)throw new Error("blake2b: wrong tree depth");if(e.tree.leafSize<0||e.tree.leafSize>t.MAX_LEAF_SIZE)throw new Error("blake2b: wrong leaf size");if(e.tree.innerDigestLength<0||e.tree.innerDigestLength>t.DIGEST_LENGTH)throw new Error("blake2b: wrong tree inner digest length")}},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw new Error("blake2b: can't update because hash was finished.");var n=t.BLOCK_SIZE-this._bufferLength,i=0;if(0===r)return this;if(r>n){for(var o=0;ot.BLOCK_SIZE;){for(o=0;o>>16,S=65535&p,k=p>>>16;_+=m>>>16,S+=65535&g,k+=g>>>16,S+=(_+=(x+=65535&m)>>>16)>>>16,x=65535&(f=65535&x|_<<16),_=f>>>16,S=65535&(p=65535&S|(k+=S>>>16)<<16),k=p>>>16,_+=l>>>16,S+=65535&u,k+=u>>>16,f=65535&(x+=65535&l)|(_+=x>>>16)<<16,x=w^=p=65535&(S+=_>>>16)|(k+=S>>>16)<<16,w=b^=f,b=x,x=65535&v,_=v>>>16,S=65535&y,k=y>>>16,_+=b>>>16,S+=65535&w,k+=w>>>16,x=(m^=v=65535&(x+=65535&b)|(_+=x>>>16)<<16)<<8|(g^=y=65535&(S+=_>>>16)|(k+=S>>>16)<<16)>>>24,m=g<<8|m>>>24,g=x,x=65535&f,_=f>>>16,S=65535&p,k=p>>>16,_+=m>>>16,S+=65535&g,k+=g>>>16,S+=(_+=(x+=65535&m)>>>16)>>>16,x=65535&(f=65535&x|_<<16),_=f>>>16,S=65535&(p=65535&S|(k+=S>>>16)<<16),k=p>>>16,_+=d>>>16,S+=65535&h,k+=h>>>16,x=(b^=f=65535&(x+=65535&d)|(_+=x>>>16)<<16)<<16|(w^=p=65535&(S+=_>>>16)|(k+=S>>>16)<<16)>>>16,b=w<<16|b>>>16,w=x,x=65535&v,_=v>>>16,S=65535&y,k=y>>>16,_+=b>>>16,S+=65535&w,k+=w>>>16,x=(g^=y=65535&(S+=(_+=(x+=65535&b)>>>16)>>>16)|(k+=S>>>16)<<16)<<1|(m^=v=65535&x|_<<16)>>>31,m=m<<1|g>>>31,g=x,e[t]=f,e[o]=p,e[r]=m,e[a]=g,e[n]=v,e[s]=y,e[i]=b,e[c]=w},e.prototype._incrementCounter=function(e){for(var t=0;t<3;t++){var r=this._ctr[t]+e;if(this._ctr[t]=r>>>0,this._ctr[t]===r)return;e=1}},e.prototype._processBlock=function(e){this._incrementCounter(e);var t=this._vtmp;t.set(this._state),t.set(o,16),t[24]^=this._ctr[0],t[25]^=this._ctr[1],t[26]^=this._ctr[2],t[27]^=this._ctr[3],t[28]^=this._flag[0],t[29]^=this._flag[1],t[30]^=this._flag[2],t[31]^=this._flag[3];for(var r=this._mtmp,i=0;i<32;i++)r[i]=n.readUint32LE(this._buffer,4*i);for(var s=0;s<12;s++)this._G(t,0,8,16,24,1,9,17,25,r[a[s][0]],r[a[s][0]+1],r[a[s][1]],r[a[s][1]+1]),this._G(t,2,10,18,26,3,11,19,27,r[a[s][2]],r[a[s][2]+1],r[a[s][3]],r[a[s][3]+1]),this._G(t,4,12,20,28,5,13,21,29,r[a[s][4]],r[a[s][4]+1],r[a[s][5]],r[a[s][5]+1]),this._G(t,6,14,22,30,7,15,23,31,r[a[s][6]],r[a[s][6]+1],r[a[s][7]],r[a[s][7]+1]),this._G(t,0,10,20,30,1,11,21,31,r[a[s][8]],r[a[s][8]+1],r[a[s][9]],r[a[s][9]+1]),this._G(t,2,12,22,24,3,13,23,25,r[a[s][10]],r[a[s][10]+1],r[a[s][11]],r[a[s][11]+1]),this._G(t,4,14,16,26,5,15,17,27,r[a[s][12]],r[a[s][12]+1],r[a[s][13]],r[a[s][13]+1]),this._G(t,6,8,18,28,7,9,19,29,r[a[s][14]],r[a[s][14]+1],r[a[s][15]],r[a[s][15]+1]);for(i=0;i<16;i++)this._state[i]^=t[i]^t[i+16]},e}();t.BLAKE2b=s,t.hash=function(e,r,n){void 0===r&&(r=t.DIGEST_LENGTH);var i=new s(r,n);i.update(e);var o=i.digest();return i.clean(),o}},4082:(e,t)=>{"use strict";t.z=function(){for(var e=0,t=0;t{"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},4670:(e,t,r)=>{"use strict";t.zh=t.SH=t.Xx=t._w=t.aP=t.KS=t.jQ=void 0;const n=r(5164),i=r(4516),o=r(3133);function a(e){const t=new Float64Array(16);if(e)for(let r=0;r>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const e=r[15]>>16&1;r[14]&=65535,g(n,r,1-e)}for(let i=0;i<16;i++)e[2*i]=255&n[i],e[2*i+1]=n[i]>>8}function y(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function b(e,t){const r=new Uint8Array(32),n=new Uint8Array(32);return v(r,e),v(n,t),y(r,n)}function w(e){const t=new Uint8Array(32);return v(t,e),1&t[0]}function x(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function _(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function S(e,t,r){let n,i,o=0,a=0,s=0,c=0,l=0,u=0,d=0,h=0,f=0,p=0,m=0,g=0,v=0,y=0,b=0,w=0,x=0,_=0,S=0,k=0,E=0,A=0,P=0,T=0,O=0,C=0,j=0,R=0,I=0,M=0,L=0,N=r[0],D=r[1],z=r[2],B=r[3],U=r[4],F=r[5],$=r[6],H=r[7],V=r[8],q=r[9],K=r[10],W=r[11],G=r[12],Z=r[13],Y=r[14],X=r[15];n=t[0],o+=n*N,a+=n*D,s+=n*z,c+=n*B,l+=n*U,u+=n*F,d+=n*$,h+=n*H,f+=n*V,p+=n*q,m+=n*K,g+=n*W,v+=n*G,y+=n*Z,b+=n*Y,w+=n*X,n=t[1],a+=n*N,s+=n*D,c+=n*z,l+=n*B,u+=n*U,d+=n*F,h+=n*$,f+=n*H,p+=n*V,m+=n*q,g+=n*K,v+=n*W,y+=n*G,b+=n*Z,w+=n*Y,x+=n*X,n=t[2],s+=n*N,c+=n*D,l+=n*z,u+=n*B,d+=n*U,h+=n*F,f+=n*$,p+=n*H,m+=n*V,g+=n*q,v+=n*K,y+=n*W,b+=n*G,w+=n*Z,x+=n*Y,_+=n*X,n=t[3],c+=n*N,l+=n*D,u+=n*z,d+=n*B,h+=n*U,f+=n*F,p+=n*$,m+=n*H,g+=n*V,v+=n*q,y+=n*K,b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+=n*B,x+=n*U,_+=n*F,S+=n*$,k+=n*H,E+=n*V,A+=n*q,P+=n*K,T+=n*W,O+=n*G,C+=n*Z,j+=n*Y,R+=n*X,n=t[13],y+=n*N,b+=n*D,w+=n*z,x+=n*B,_+=n*U,S+=n*F,k+=n*$,E+=n*H,A+=n*V,P+=n*q,T+=n*K,O+=n*W,C+=n*G,j+=n*Z,R+=n*Y,I+=n*X,n=t[14],b+=n*N,w+=n*D,x+=n*z,_+=n*B,S+=n*U,k+=n*F,E+=n*$,A+=n*H,P+=n*V,T+=n*q,O+=n*K,C+=n*W,j+=n*G,R+=n*Z,I+=n*Y,M+=n*X,n=t[15],w+=n*N,x+=n*D,_+=n*z,S+=n*B,k+=n*U,E+=n*F,A+=n*$,P+=n*H,T+=n*V,O+=n*q,C+=n*K,j+=n*W,R+=n*G,I+=n*Z,M+=n*Y,L+=n*X,o+=38*x,a+=38*_,s+=38*S,c+=38*k,l+=38*E,u+=38*A,d+=38*P,h+=38*T,f+=38*O,p+=38*C,m+=38*j,g+=38*R,v+=38*I,y+=38*M,b+=38*L,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=m,e[11]=g,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function k(e,t){S(e,t,t)}function E(e,t){const r=a();let n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)k(r,r),2!==n&&4!==n&&S(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function A(e,t){const r=a(),n=a(),i=a(),o=a(),s=a(),c=a(),l=a(),d=a(),h=a();_(r,e[1],e[0]),_(h,t[1],t[0]),S(r,r,h),x(n,e[0],e[1]),x(h,t[0],t[1]),S(n,n,h),S(i,e[3],t[3]),S(i,i,u),S(o,e[2],t[2]),x(o,o,o),_(s,n,r),_(c,o,i),x(l,o,i),x(d,n,r),S(e[0],s,c),S(e[1],d,l),S(e[2],l,c),S(e[3],s,d)}function P(e,t,r){for(let n=0;n<4;n++)g(e[n],t[n],r)}function T(e,t){const r=a(),n=a(),i=a();E(i,t[2]),S(r,t[0],i),S(n,t[1],i),v(e,n),e[31]^=w(r)<<7}function O(e,t,r){p(e[0],s),p(e[1],c),p(e[2],c),p(e[3],s);for(let n=255;n>=0;--n){const i=r[n/8|0]>>(7&n)&1;P(e,t,i),A(t,e),A(e,e),P(e,t,i)}}function C(e,t){const r=[a(),a(),a(),a()];p(r[0],d),p(r[1],h),p(r[2],c),S(r[3],d,h),O(e,r,t)}function j(e){if(e.length!==t.aP)throw new Error(`ed25519: seed must be ${t.aP} bytes`);const r=(0,i.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;const n=new Uint8Array(32),o=[a(),a(),a(),a()];C(o,r),T(n,o);const s=new Uint8Array(64);return s.set(e),s.set(n,32),{publicKey:n,secretKey:s}}t._w=j;const R=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function I(e,t){let r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i>4)*R[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*R[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function M(e){const t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;I(e,t)}function L(e,t){const r=a(),n=a(),i=a(),o=a(),u=a(),d=a(),h=a();return p(e[2],c),function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(e[1],t),k(i,e[1]),S(o,i,l),_(i,i,e[2]),x(o,e[2],o),k(u,o),k(d,u),S(h,d,u),S(r,h,i),S(r,r,o),function(e,t){const r=a();let n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)k(r,r),1!==n&&S(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}(r,r),S(r,r,i),S(r,r,o),S(r,r,o),S(e[0],r,o),k(n,e[0]),S(n,n,o),b(n,i)&&S(e[0],e[0],f),k(n,e[0]),S(n,n,o),b(n,i)?-1:(w(e[0])===t[31]>>7&&_(e[0],s,e[0]),S(e[3],e[0],e[1]),0)}t.Xx=function(e,t){const r=new Float64Array(64),n=[a(),a(),a(),a()],o=(0,i.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const s=new Uint8Array(64);s.set(o.subarray(32),32);const c=new i.SHA512;c.update(s.subarray(32)),c.update(t);const l=c.digest();c.clean(),M(l),C(n,l),T(s,n),c.reset(),c.update(s.subarray(0,32)),c.update(e.subarray(32)),c.update(t);const u=c.digest();M(u);for(let i=0;i<32;i++)r[i]=l[i];for(let i=0;i<32;i++)for(let e=0;e<32;e++)r[i+e]+=u[i]*o[e];return I(s.subarray(32),r),s},t.SH=function(e){let t=[a(),a(),a(),a()];if(L(t,e))throw new Error("Ed25519: invalid public key");let r=a(),n=a(),i=t[1];x(r,c,i),_(n,c,i),E(n,n),S(r,r,n);let o=new Uint8Array(32);return v(o,r),o},t.zh=function(e){const t=(0,i.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;const r=new Uint8Array(t.subarray(0,32));return(0,o.wipe)(t),r}},393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return"undefined"!==typeof e.saveState&&"undefined"!==typeof e.restoreState&&"undefined"!==typeof e.cleanSavedState}},1787:(e,t,r)=>{"use strict";var n=r(393),i=r(6433),o=r(3133),a=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openBox=t.box=t.precomputeSharedKey=t.generateKeyPair=void 0;const n=r(4592),i=r(3911),o=r(7054),a=r(3133);var s=r(4592);Object.defineProperty(t,"generateKeyPair",{enumerable:!0,get:function(){return s.generateKeyPair}});const c=new Uint8Array(16);function l(e,t){const r=(0,n.scalarMult)(t,e);return(0,i.hsalsa)(r,c,r),r}t.precomputeSharedKey=l,t.box=function(e,t,r,n){const i=l(e,t),s=(0,o.secretBox)(i,r,n);return(0,a.wipe)(i),s},t.openBox=function(e,t,r,n){const i=l(e,t),s=(0,o.openSecretBox)(i,r,n);return(0,a.wipe)(i),s}},8945:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(168),t),i(r(7054),t)},7054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateKey=t.openSecretBox=t.secretBox=void 0;const n=r(3911),i=r(3795),o=r(3133),a=r(5164);t.secretBox=function(e,t,r){if(24!==t.length)throw new Error("secretBox nonce must be 24 bytes");const a=new Uint8Array(64),s=new Uint8Array(32);s.set(t),(0,n.stream)(e,s,a,8);const c=new Uint8Array(16+r.length);for(let n=0;n<32&&n32&&(0,n.streamXOR)(e,s,r.subarray(32),c.subarray(48),8);const l=(0,i.oneTimeAuth)(a.subarray(0,32),c.subarray(16));for(let n=0;n32&&(0,n.streamXOR)(e,s,l.subarray(32),u.subarray(32),8),(0,o.wipe)(c),(0,o.wipe)(a),(0,o.wipe)(s),u},t.generateKey=function(e){return(0,a.randomBytes)(32,e)}},3795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6433),i=r(3133);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=8191&(r>>>13|n<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(n>>>10|i<<6);var o=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=e[8]|e[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var c=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|c<<5);var l=e[14]|e[15]<<8;this._r[8]=8191&(c>>>8|l<<8),this._r[9]=l>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],c=this._h[4],l=this._h[5],u=this._h[6],d=this._h[7],h=this._h[8],f=this._h[9],p=this._r[0],m=this._r[1],g=this._r[2],v=this._r[3],y=this._r[4],b=this._r[5],w=this._r[6],x=this._r[7],_=this._r[8],S=this._r[9];r>=16;){var k=e[t+0]|e[t+1]<<8;i+=8191&k;var E=e[t+2]|e[t+3]<<8;o+=8191&(k>>>13|E<<3);var A=e[t+4]|e[t+5]<<8;a+=8191&(E>>>10|A<<6);var P=e[t+6]|e[t+7]<<8;s+=8191&(A>>>7|P<<9);var T=e[t+8]|e[t+9]<<8;c+=8191&(P>>>4|T<<12),l+=T>>>1&8191;var O=e[t+10]|e[t+11]<<8;u+=8191&(T>>>14|O<<2);var C=e[t+12]|e[t+13]<<8;d+=8191&(O>>>11|C<<5);var j=e[t+14]|e[t+15]<<8,R=0,I=R;I+=i*p,I+=o*(5*S),I+=a*(5*_),I+=s*(5*x),R=(I+=c*(5*w))>>>13,I&=8191,I+=l*(5*b),I+=u*(5*y),I+=d*(5*v),I+=(h+=8191&(C>>>8|j<<8))*(5*g);var M=R+=(I+=(f+=j>>>5|n)*(5*m))>>>13;M+=i*m,M+=o*p,M+=a*(5*S),M+=s*(5*_),R=(M+=c*(5*x))>>>13,M&=8191,M+=l*(5*w),M+=u*(5*b),M+=d*(5*y),M+=h*(5*v),R+=(M+=f*(5*g))>>>13,M&=8191;var L=R;L+=i*g,L+=o*m,L+=a*p,L+=s*(5*S),R=(L+=c*(5*_))>>>13,L&=8191,L+=l*(5*x),L+=u*(5*w),L+=d*(5*b),L+=h*(5*y);var N=R+=(L+=f*(5*v))>>>13;N+=i*v,N+=o*g,N+=a*m,N+=s*p,R=(N+=c*(5*S))>>>13,N&=8191,N+=l*(5*_),N+=u*(5*x),N+=d*(5*w),N+=h*(5*b);var D=R+=(N+=f*(5*y))>>>13;D+=i*y,D+=o*v,D+=a*g,D+=s*m,R=(D+=c*p)>>>13,D&=8191,D+=l*(5*S),D+=u*(5*_),D+=d*(5*x),D+=h*(5*w);var z=R+=(D+=f*(5*b))>>>13;z+=i*b,z+=o*y,z+=a*v,z+=s*g,R=(z+=c*m)>>>13,z&=8191,z+=l*p,z+=u*(5*S),z+=d*(5*_),z+=h*(5*x);var B=R+=(z+=f*(5*w))>>>13;B+=i*w,B+=o*b,B+=a*y,B+=s*v,R=(B+=c*g)>>>13,B&=8191,B+=l*m,B+=u*p,B+=d*(5*S),B+=h*(5*_);var U=R+=(B+=f*(5*x))>>>13;U+=i*x,U+=o*w,U+=a*b,U+=s*y,R=(U+=c*v)>>>13,U&=8191,U+=l*g,U+=u*m,U+=d*p,U+=h*(5*S);var F=R+=(U+=f*(5*_))>>>13;F+=i*_,F+=o*x,F+=a*w,F+=s*b,R=(F+=c*y)>>>13,F&=8191,F+=l*v,F+=u*g,F+=d*m,F+=h*p;var $=R+=(F+=f*(5*S))>>>13;$+=i*S,$+=o*_,$+=a*x,$+=s*w,R=($+=c*b)>>>13,$&=8191,$+=l*y,$+=u*v,$+=d*g,$+=h*m,i=I=8191&(R=(R=((R+=($+=f*p)>>>13)<<2)+R|0)+(I&=8191)|0),o=M+=R>>>=13,a=L&=8191,s=N&=8191,c=D&=8191,l=z&=8191,u=B&=8191,d=U&=8191,h=F&=8191,f=$&=8191,t+=16,r-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=d,this._h[8]=h,this._h[9]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,a[0]=this._h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this._h[o]=this._h[o]&n|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const n=r(9973),i=r(7318),o=r(3133);function a(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(e=t.defaultRandomSource){const r=a(4,e),n=(0,i.readUint32LE)(r);return(0,o.wipe)(r),n};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,r=s,n=t.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let i="";const c=r.length,l=256-256%c;for(;e>0;){const t=a(Math.ceil(256*e/l),n);for(let n=0;n0;n++){const o=t[n];o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!==typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const n=r(3133);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=r(5883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(e);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const n=r(6373),i=r(4042);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},4336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7318),i=r(3133),o=20;function a(e,t,r){for(var i,a=1634760805,s=r[3]<<24|r[2]<<16|r[1]<<8|r[0],c=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],u=r[15]<<24|r[14]<<16|r[13]<<8|r[12],d=857760878,h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],m=t[15]<<24|t[14]<<16|t[13]<<8|t[12],g=2036477234,v=r[19]<<24|r[18]<<16|r[17]<<8|r[16],y=r[23]<<24|r[22]<<16|r[21]<<8|r[20],b=r[27]<<24|r[26]<<16|r[25]<<8|r[24],w=r[31]<<24|r[30]<<16|r[29]<<8|r[28],x=1797285236,_=a,S=s,k=c,E=l,A=u,P=d,T=h,O=f,C=p,j=m,R=g,I=v,M=y,L=b,N=w,D=x,z=0;z>>25)+_|0)<<9|i>>>23)+A|0)<<13|i>>>19)+C|0)<<18|i>>>14,P^=(i=(S^=(i=(L^=(i=(j^=(i=P+S|0)<<7|i>>>25)+P|0)<<9|i>>>23)+j|0)<<13|i>>>19)+L|0)<<18|i>>>14,R^=(i=(T^=(i=(k^=(i=(N^=(i=R+T|0)<<7|i>>>25)+R|0)<<9|i>>>23)+N|0)<<13|i>>>19)+k|0)<<18|i>>>14,D^=(i=(I^=(i=(O^=(i=(E^=(i=D+I|0)<<7|i>>>25)+D|0)<<9|i>>>23)+E|0)<<13|i>>>19)+O|0)<<18|i>>>14,_^=(i=(E^=(i=(k^=(i=(S^=(i=_+E|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+k|0)<<18|i>>>14,P^=(i=(A^=(i=(O^=(i=(T^=(i=P+A|0)<<7|i>>>25)+P|0)<<9|i>>>23)+T|0)<<13|i>>>19)+O|0)<<18|i>>>14,R^=(i=(j^=(i=(C^=(i=(I^=(i=R+j|0)<<7|i>>>25)+R|0)<<9|i>>>23)+I|0)<<13|i>>>19)+C|0)<<18|i>>>14,D^=(i=(N^=(i=(L^=(i=(M^=(i=D+N|0)<<7|i>>>25)+D|0)<<9|i>>>23)+M|0)<<13|i>>>19)+L|0)<<18|i>>>14;n.writeUint32LE(_+a|0,e,0),n.writeUint32LE(S+s|0,e,4),n.writeUint32LE(k+c|0,e,8),n.writeUint32LE(E+l|0,e,12),n.writeUint32LE(A+u|0,e,16),n.writeUint32LE(P+d|0,e,20),n.writeUint32LE(T+h|0,e,24),n.writeUint32LE(O+f|0,e,28),n.writeUint32LE(C+p|0,e,32),n.writeUint32LE(j+m|0,e,36),n.writeUint32LE(R+g|0,e,40),n.writeUint32LE(I+v|0,e,44),n.writeUint32LE(M+y|0,e,48),n.writeUint32LE(L+b|0,e,52),n.writeUint32LE(N+w|0,e,56),n.writeUint32LE(D+x|0,e,60)}function s(e,t,r,n,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("Salsa20: key size must be 32 bytes");if(n.length>>=8,t++;if(n>0)throw new Error("Salsa20: counter overflow")}t.streamXOR=s,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),s(e,t,r,r,n)}},4516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7318),i=r(3133);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],r--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[n++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%128<112?128:256;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.stateHi),i.wipe(e.stateLo),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=o;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(e,t,r,i,o,s,c){for(var l,u,d,h,f,p,m,g,v=r[0],y=r[1],b=r[2],w=r[3],x=r[4],_=r[5],S=r[6],k=r[7],E=i[0],A=i[1],P=i[2],T=i[3],O=i[4],C=i[5],j=i[6],R=i[7];c>=128;){for(var I=0;I<16;I++){var M=8*I+s;e[I]=n.readUint32BE(o,M),t[I]=n.readUint32BE(o,M+4)}for(I=0;I<80;I++){var L,N,D=v,z=y,B=b,U=w,F=x,$=_,H=S,V=E,q=A,K=P,W=T,G=O,Z=C,Y=j;if(f=65535&(u=R),p=u>>>16,m=65535&(l=k),g=l>>>16,f+=65535&(u=(O>>>14|x<<18)^(O>>>18|x<<14)^(x>>>9|O<<23)),p+=u>>>16,m+=65535&(l=(x>>>14|O<<18)^(x>>>18|O<<14)^(O>>>9|x<<23)),g+=l>>>16,f+=65535&(u=O&C^~O&j),p+=u>>>16,m+=65535&(l=x&_^~x&S),g+=l>>>16,l=a[2*I],f+=65535&(u=a[2*I+1]),p+=u>>>16,m+=65535&l,g+=l>>>16,l=e[I%16],p+=(u=t[I%16])>>>16,m+=65535&l,g+=l>>>16,m+=(p+=(f+=65535&u)>>>16)>>>16,f=65535&(u=h=65535&f|p<<16),p=u>>>16,m=65535&(l=d=65535&m|(g+=m>>>16)<<16),g=l>>>16,f+=65535&(u=(E>>>28|v<<4)^(v>>>2|E<<30)^(v>>>7|E<<25)),p+=u>>>16,m+=65535&(l=(v>>>28|E<<4)^(E>>>2|v<<30)^(E>>>7|v<<25)),g+=l>>>16,p+=(u=E&A^E&P^A&P)>>>16,m+=65535&(l=v&y^v&b^y&b),g+=l>>>16,L=65535&(m+=(p+=(f+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,N=65535&f|p<<16,f=65535&(u=W),p=u>>>16,m=65535&(l=U),g=l>>>16,p+=(u=h)>>>16,m+=65535&(l=d),g+=l>>>16,y=D,b=z,w=B,x=U=65535&(m+=(p+=(f+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,_=F,S=$,k=H,v=L,A=V,P=q,T=K,O=W=65535&f|p<<16,C=G,j=Z,R=Y,E=N,I%16===15)for(M=0;M<16;M++)l=e[M],f=65535&(u=t[M]),p=u>>>16,m=65535&l,g=l>>>16,l=e[(M+9)%16],f+=65535&(u=t[(M+9)%16]),p+=u>>>16,m+=65535&l,g+=l>>>16,d=e[(M+1)%16],f+=65535&(u=((h=t[(M+1)%16])>>>1|d<<31)^(h>>>8|d<<24)^(h>>>7|d<<25)),p+=u>>>16,m+=65535&(l=(d>>>1|h<<31)^(d>>>8|h<<24)^d>>>7),g+=l>>>16,d=e[(M+14)%16],p+=(u=((h=t[(M+14)%16])>>>19|d<<13)^(d>>>29|h<<3)^(h>>>6|d<<26))>>>16,m+=65535&(l=(d>>>19|h<<13)^(h>>>29|d<<3)^d>>>6),g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,e[M]=65535&m|g<<16,t[M]=65535&f|p<<16}f=65535&(u=E),p=u>>>16,m=65535&(l=v),g=l>>>16,l=r[0],p+=(u=i[0])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[0]=v=65535&m|g<<16,i[0]=E=65535&f|p<<16,f=65535&(u=A),p=u>>>16,m=65535&(l=y),g=l>>>16,l=r[1],p+=(u=i[1])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[1]=y=65535&m|g<<16,i[1]=A=65535&f|p<<16,f=65535&(u=P),p=u>>>16,m=65535&(l=b),g=l>>>16,l=r[2],p+=(u=i[2])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[2]=b=65535&m|g<<16,i[2]=P=65535&f|p<<16,f=65535&(u=T),p=u>>>16,m=65535&(l=w),g=l>>>16,l=r[3],p+=(u=i[3])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[3]=w=65535&m|g<<16,i[3]=T=65535&f|p<<16,f=65535&(u=O),p=u>>>16,m=65535&(l=x),g=l>>>16,l=r[4],p+=(u=i[4])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[4]=x=65535&m|g<<16,i[4]=O=65535&f|p<<16,f=65535&(u=C),p=u>>>16,m=65535&(l=_),g=l>>>16,l=r[5],p+=(u=i[5])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[5]=_=65535&m|g<<16,i[5]=C=65535&f|p<<16,f=65535&(u=j),p=u>>>16,m=65535&(l=S),g=l>>>16,l=r[6],p+=(u=i[6])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[6]=S=65535&m|g<<16,i[6]=j=65535&f|p<<16,f=65535&(u=R),p=u>>>16,m=65535&(l=k),g=l>>>16,l=r[7],p+=(u=i[7])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[7]=k=65535&m|g<<16,i[7]=R=65535&f|p<<16,s+=128,c-=128}return s}t.hash=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},9070:(e,t)=>{"use strict";var r="utf8: invalid string",n="utf8: invalid source encoding";function i(e){for(var t=0,n=0;n=e.length-1)throw new Error(r);n++,t+=4}}return t}t.cv=function(e){for(var t=new Uint8Array(i(e)),r=0,n=0;n>6,t[r++]=128|63&o):o<55296?(t[r++]=224|o>>12,t[r++]=128|o>>6&63,t[r++]=128|63&o):(n++,o=(1023&o)<<10,o|=1023&e.charCodeAt(n),o+=65536,t[r++]=240|o>>18,t[r++]=128|o>>12&63,t[r++]=128|o>>6&63,t[r++]=128|63&o)}return t}},3133:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.X25519Session=t.SECRET_SEED_LENGTH=t.SAVED_STATE_LENGTH=t.ACCEPT_MESSAGE_LENGTH=t.OFFER_MESSAGE_LENGTH=void 0;const n=r(5164),i=r(3133),o=r(4592),a=r(347);t.OFFER_MESSAGE_LENGTH=o.PUBLIC_KEY_LENGTH,t.ACCEPT_MESSAGE_LENGTH=o.PUBLIC_KEY_LENGTH,t.SAVED_STATE_LENGTH=o.SECRET_KEY_LENGTH,t.SECRET_SEED_LENGTH=o.SECRET_KEY_LENGTH;t.X25519Session=class{constructor(e,r){this.offerMessageLength=t.OFFER_MESSAGE_LENGTH,this.acceptMessageLength=t.ACCEPT_MESSAGE_LENGTH,this.sharedKeyLength=o.SHARED_KEY_LENGTH,this.savedStateLength=t.SAVED_STATE_LENGTH,this._seed=e||(0,n.randomBytes)(o.SECRET_KEY_LENGTH,r)}saveState(){return new Uint8Array(this._seed)}restoreState(e){return this._seed=new Uint8Array(e),this}clean(){this._seed&&(0,i.wipe)(this._seed),this._keyPair&&((0,i.wipe)(this._keyPair.secretKey),(0,i.wipe)(this._keyPair.publicKey)),this._sharedKey&&(0,i.wipe)(this._sharedKey),this._sessionKeys&&((0,i.wipe)(this._sessionKeys.receive),(0,i.wipe)(this._sessionKeys.send))}offer(){return this._keyPair=(0,o.generateKeyPairFromSeed)(this._seed),new Uint8Array(this._keyPair.publicKey)}accept(e){if(this._keyPair)throw new Error("X25519Session: accept shouldn't be called by offering party");if(e.length!==this.offerMessageLength)throw new Error("X25519Session: incorrect offer message length");if(this._sharedKey)throw new Error("X25519Session: accept was already called");const t=(0,o.generateKeyPairFromSeed)(this._seed);return this._sharedKey=(0,o.sharedKey)(t.secretKey,e),this._sessionKeys=(0,a.clientSessionKeysFromSharedKey)(this._sharedKey,t.publicKey,e),(0,i.wipe)(t.secretKey),t.publicKey}finish(e){if(e.length!==this.acceptMessageLength)throw new Error("X25519Session: incorrect accept message length");if(!this._keyPair)throw new Error("X25519Session: no offer state");if(this._sharedKey)throw new Error("X25519Session: finish was already called");return this._sharedKey=(0,o.sharedKey)(this._keyPair.secretKey,e),this._sessionKeys=(0,a.serverSessionKeysFromSharedKey)(this._sharedKey,this._keyPair.publicKey,e),this}getSharedKey(){if(!this._sharedKey)throw new Error("X25519Session: no shared key established");return new Uint8Array(this._sharedKey)}getSessionKeys(){if(!this._sessionKeys)throw new Error("X25519Session: no shared key established");return{receive:new Uint8Array(this._sessionKeys.receive),send:new Uint8Array(this._sessionKeys.send)}}}},347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientSessionKeys=t.serverSessionKeys=t.clientSessionKeysFromSharedKey=t.serverSessionKeysFromSharedKey=t.X25519Session=void 0;const n=r(448),i=r(4592);var o=r(6758);Object.defineProperty(t,"X25519Session",{enumerable:!0,get:function(){return o.X25519Session}});const a=32;function s(e,t,r,i=n.BLAKE2b){const o=new i;if(o.digestLength!==2*a)throw new Error("X25519: incorrect digest length");const s=o.update(e).update(r).update(t).digest();return{send:s.subarray(0,a),receive:s.subarray(a)}}function c(e,t,r,i=n.BLAKE2b){const o=new i;if(o.digestLength!==2*a)throw new Error("X25519: incorrect digest length");const s=o.update(e).update(t).update(r).digest();return{receive:s.subarray(0,a),send:s.subarray(a)}}t.serverSessionKeysFromSharedKey=s,t.clientSessionKeysFromSharedKey=c,t.serverSessionKeys=function(e,t,r=n.BLAKE2b){return s((0,i.sharedKey)(e.secretKey,t),e.publicKey,t,r)},t.clientSessionKeys=function(e,t,r=n.BLAKE2b){return c((0,i.sharedKey)(e.secretKey,t),e.publicKey,t,r)}},4592:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sharedKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.scalarMultBase=t.scalarMult=t.SHARED_KEY_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=void 0;const n=r(5164),i=r(3133);function o(e){const t=new Float64Array(16);if(e)for(let r=0;r=0;--o){const e=r[o>>>3]>>>(7&o)&1;l(i,a,e),l(p,m,e),u(g,i,p),d(i,i,p),u(p,a,m),d(a,a,m),f(m,g),f(v,i),h(i,p,i),h(p,a,g),u(g,i,p),d(i,i,p),f(a,i),d(p,m,v),h(i,p,s),u(i,i,m),h(p,p,i),h(i,m,v),h(m,a,n),f(a,g),l(i,a,e),l(p,m,e)}for(let o=0;o<16;o++)n[o+16]=i[o],n[o+32]=p[o],n[o+48]=a[o],n[o+64]=m[o];const y=n.subarray(32),b=n.subarray(16);!function(e,t){const r=o();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)f(r,r),2!==n&&4!==n&&h(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}(y,y),h(b,b,y);const w=new Uint8Array(32);return function(e,t){const r=o(),n=o();for(let i=0;i<16;i++)n[i]=t[i];c(n),c(n),c(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const e=r[15]>>16&1;r[14]&=65535,l(n,r,1-e)}for(let i=0;i<16;i++)e[2*i]=255&n[i],e[2*i+1]=n[i]>>8}(w,b),w}function m(e){return p(e,a)}function g(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${t.SECRET_KEY_LENGTH} bytes`);const r=new Uint8Array(e);return{publicKey:m(r),secretKey:r}}t.scalarMult=p,t.scalarMultBase=m,t.generateKeyPairFromSeed=g,t.generateKeyPair=function(e){const t=(0,n.randomBytes)(32,e),r=g(t);return(0,i.wipe)(t),r},t.sharedKey=function(e,r,n=!1){if(e.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(r.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const i=p(e,r);if(n){let e=0;for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7318),i=r(4336),o=r(3133);function a(e,t,r,n,a){if(void 0===a&&(a=0),0===a){if(24!==t.length)throw new Error("XSalsa20 nonce must be 24 bytes")}else if(32!==t.length)throw new Error("XSalsa20 nonce with counter must be 32 bytes");var s=c(e,t.subarray(0,16),new Uint8Array(32)),l=i.streamXOR(s,t.subarray(16),r,n,a);return o.wipe(s),l}t.streamXOR=a,t.stream=function(e,t,r,n){return void 0===n&&(n=0),o.wipe(r),a(e,t,r,r,n)};var s=20;function c(e,t,r){for(var i,o=1634760805,a=e[3]<<24|e[2]<<16|e[1]<<8|e[0],c=e[7]<<24|e[6]<<16|e[5]<<8|e[4],l=e[11]<<24|e[10]<<16|e[9]<<8|e[8],u=e[15]<<24|e[14]<<16|e[13]<<8|e[12],d=857760878,h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],m=t[15]<<24|t[14]<<16|t[13]<<8|t[12],g=2036477234,v=e[19]<<24|e[18]<<16|e[17]<<8|e[16],y=e[23]<<24|e[22]<<16|e[21]<<8|e[20],b=e[27]<<24|e[26]<<16|e[25]<<8|e[24],w=e[31]<<24|e[30]<<16|e[29]<<8|e[28],x=1797285236,_=0;_>>25)+o|0)<<9|i>>>23)+u|0)<<13|i>>>19)+p|0)<<18|i>>>14,d^=(i=(a^=(i=(b^=(i=(m^=(i=d+a|0)<<7|i>>>25)+d|0)<<9|i>>>23)+m|0)<<13|i>>>19)+b|0)<<18|i>>>14,g^=(i=(h^=(i=(c^=(i=(w^=(i=g+h|0)<<7|i>>>25)+g|0)<<9|i>>>23)+w|0)<<13|i>>>19)+c|0)<<18|i>>>14,x^=(i=(v^=(i=(f^=(i=(l^=(i=x+v|0)<<7|i>>>25)+x|0)<<9|i>>>23)+l|0)<<13|i>>>19)+f|0)<<18|i>>>14,o^=(i=(l^=(i=(c^=(i=(a^=(i=o+l|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+c|0)<<18|i>>>14,d^=(i=(u^=(i=(f^=(i=(h^=(i=d+u|0)<<7|i>>>25)+d|0)<<9|i>>>23)+h|0)<<13|i>>>19)+f|0)<<18|i>>>14,g^=(i=(m^=(i=(p^=(i=(v^=(i=g+m|0)<<7|i>>>25)+g|0)<<9|i>>>23)+v|0)<<13|i>>>19)+p|0)<<18|i>>>14,x^=(i=(w^=(i=(b^=(i=(y^=(i=x+w|0)<<7|i>>>25)+x|0)<<9|i>>>23)+y|0)<<13|i>>>19)+b|0)<<18|i>>>14;return n.writeUint32LE(o,r,0),n.writeUint32LE(d,r,4),n.writeUint32LE(g,r,8),n.writeUint32LE(x,r,12),n.writeUint32LE(h,r,16),n.writeUint32LE(f,r,20),n.writeUint32LE(p,r,24),n.writeUint32LE(m,r,28),r}t.hsalsa=c},1017:e=>{"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,l=new Uint8Array(o);e[r];){var u=t[e.charCodeAt(r)];if(255===u)return;for(var d=0,h=o-1;(0!==u||d>>0,l[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=d,r++}for(var f=o-i;f!==o&&0===l[f];)f++;for(var p=new Uint8Array(n+(o-f)),m=n;f!==o;)p[m++]=l[f++];return p}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var c=(o-i)*l+1>>>0,u=new Uint8Array(c);i!==o;){for(var d=t[i],h=0,f=c-1;(0!==d||h>>0,u[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");n=h,i++}for(var p=c-n;p!==c&&0===u[p];)p++;for(var m=s.repeat(r);p{const n=r(1017);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},4020:(e,t,r)=>{"use strict";var n=r(748);e.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=Uint8Array.from(t),i=e(r),o=r.length+4,a=new Uint8Array(o);return a.set(r,0),a.set(i.subarray(0,4),r.length),n.encode(a,o)},decode:function(e){var r=t(n.decode(e));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},7491:(e,t,r)=>{"use strict";var{sha256:n}=r(1985),i=r(4020);e.exports=i((function(e){return n(n(e))}))},4203:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(3018).Buffer}catch(T){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(T){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],u=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(u).toString(e);r=(d=d.idivn(u)).isZero()?m+r:h[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var l=1;l>>26,d=67108863&c,h=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=h;f++){var p=l-f|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&a}r.words[l]=0|d,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,x=b>>>13,_=0|a[4],S=8191&_,k=_>>>13,E=0|a[5],A=8191&E,P=E>>>13,T=0|a[6],O=8191&T,C=T>>>13,j=0|a[7],R=8191&j,I=j>>>13,M=0|a[8],L=8191&M,N=M>>>13,D=0|a[9],z=8191&D,B=D>>>13,U=0|s[0],F=8191&U,$=U>>>13,H=0|s[1],V=8191&H,q=H>>>13,K=0|s[2],W=8191&K,G=K>>>13,Z=0|s[3],Y=8191&Z,X=Z>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,$))+Math.imul(h,F)|0))<<13)|0;l=((o=Math.imul(h,$))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,$))+Math.imul(m,F)|0,o=Math.imul(m,$);var ve=(l+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,V)|0))<<13)|0;l=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,F),i=(i=Math.imul(v,$))+Math.imul(y,F)|0,o=Math.imul(y,$),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,q)|0;var ye=(l+(n=n+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,W)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,$))+Math.imul(x,F)|0,o=Math.imul(x,$),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var be=(l+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,Y)|0))<<13)|0;l=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,$))+Math.imul(k,F)|0,o=Math.imul(k,$),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,q)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var we=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Q)|0))<<13)|0;l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,F),i=(i=Math.imul(A,$))+Math.imul(P,F)|0,o=Math.imul(P,$),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,q)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var xe=(l+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(h,re)|0))<<13)|0;l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(O,F),i=(i=Math.imul(O,$))+Math.imul(C,F)|0,o=Math.imul(C,$),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,q)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,X)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var _e=(l+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,$))+Math.imul(I,F)|0,o=Math.imul(I,$),n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Se=(l+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(h,ce)|0))<<13)|0;l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,$))+Math.imul(N,F)|0,o=Math.imul(N,$),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var ke=(l+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(z,F),i=(i=Math.imul(z,$))+Math.imul(B,F)|0,o=Math.imul(B,$),n=n+Math.imul(L,V)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,q)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,le)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,he)|0;var Ee=(l+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(z,V),i=(i=Math.imul(z,q))+Math.imul(B,V)|0,o=Math.imul(B,q),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,le)|0,n=n+Math.imul(v,de)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(z,W),i=(i=Math.imul(z,G))+Math.imul(B,W)|0,o=Math.imul(B,G),n=n+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,he)|0;var Pe=(l+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(z,Y),i=(i=Math.imul(z,X))+Math.imul(B,Y)|0,o=Math.imul(B,X),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,le)|0,n=n+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;l=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(z,Q),i=(i=Math.imul(z,ee))+Math.imul(B,Q)|0,o=Math.imul(B,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(C,ce)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,de)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,he)|0;var Oe=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(z,re),i=(i=Math.imul(z,ne))+Math.imul(B,re)|0,o=Math.imul(B,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(O,de)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,he)|0;var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(z,oe),i=(i=Math.imul(z,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),n=n+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,de)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,he)|0;var je=(l+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(z,ce),i=(i=Math.imul(z,le))+Math.imul(B,ce)|0,o=Math.imul(B,le),n=n+Math.imul(L,de)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(z,de),i=(i=Math.imul(z,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var Ie=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Me=(l+(n=Math.imul(z,pe))|0)+((8191&(i=(i=Math.imul(z,me))+Math.imul(B,pe)|0))<<13)|0;return l=((o=Math.imul(B,me))+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,c[0]=ge,c[1]=ve,c[2]=ye,c[3]=be,c[4]=we,c[5]=xe,c[6]=_e,c[7]=Se,c[8]=ke,c[9]=Ee,c[10]=Ae,c[11]=Pe,c[12]=Te,c[13]=Oe,c[14]=Ce,c[15]=je,c[16]=Re,c[17]=Ie,c[18]=Me,0!==l&&(c[19]=l,r.length++),r};function v(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function y(e,t,r){return v(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?m(this,e,t):r<1024?v(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var h=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0===(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,h=1;0===(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function P(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(_,x),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new S;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return w[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;n--){for(var l=t.words[n],u=c-1;u>=0;u--){var d=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new P(e)},i(P,A),P.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},P.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},P.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},P.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},P.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},161:(e,t,r)=>{"use strict";var n=r(6293).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,u=new Uint8Array(a);e[r];){var d=t[e.charCodeAt(r)];if(255===d)return;for(var h=0,f=a-1;(0!==d||h>>0,u[f]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");o=h,r++}for(var p=a-o;p!==a&&0===u[p];)p++;var m=n.allocUnsafe(i+(a-p));m.fill(0,0,i);for(var g=i;p!==a;)m[g++]=u[p++];return m}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,r++;for(var l=(a-o)*u+1>>>0,d=new Uint8Array(l);o!==a;){for(var h=t[o],f=0,p=l-1;(0!==h||f>>0,d[p]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");i=f,o++}for(var m=l-i;m!==l&&0===d[m];)m++;for(var g=c.repeat(r);m{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],c=o[1],l=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),u=0,d=c>0?a-4:a;for(r=0;r>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;sl?l:s+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={};let i;t.wordlists=n,t._default=i;try{t._default=i=r(32),n.czech=i}catch(o){}try{t._default=i=r(6996),n.chinese_simplified=i}catch(o){}try{t._default=i=r(4262),n.chinese_traditional=i}catch(o){}try{t._default=i=r(8013),n.korean=i}catch(o){}try{t._default=i=r(1848),n.french=i}catch(o){}try{t._default=i=r(2841),n.italian=i}catch(o){}try{t._default=i=r(659),n.spanish=i}catch(o){}try{t._default=i=r(4472),n.japanese=i,n.JA=i}catch(o){}try{t._default=i=r(1945),n.portuguese=i}catch(o){}try{t._default=i=r(4573),n.english=i,n.EN=i}catch(o){}},4200:(e,t,r)=>{"use strict";var n=r(4872).Buffer;const i=r(1985),o=r(2670),a=r(2291),s=r(9041),c=r(8419);let l=c._default;const u="Invalid mnemonic",d="Invalid entropy",h="Invalid mnemonic checksum",f="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function p(e){return(e||"").normalize("NFKD")}function m(e,t,r){for(;e.lengthm(e.toString(2),"0",8))).join("")}function y(e){const t=8*e.length/32,r=i.sha256(Uint8Array.from(e));return v(Array.from(r)).slice(0,t)}function b(e){return"mnemonic"+(e||"")}function w(e,t){if(!(t=t||l))throw new Error(f);const r=p(e).split(" ");if(r.length%3!==0)throw new Error(u);const i=r.map((e=>{const r=t.indexOf(e);if(-1===r)throw new Error(u);return m(r.toString(2),"0",11)})).join(""),o=32*Math.floor(i.length/33),a=i.slice(0,o),s=i.slice(o),c=a.match(/(.{1,8})/g).map(g);if(c.length<16)throw new Error(d);if(c.length>32)throw new Error(d);if(c.length%4!==0)throw new Error(d);const v=n.from(c);if(y(v)!==s)throw new Error(h);return v.toString("hex")}function x(e,t){if(n.isBuffer(e)||(e=n.from(e,"hex")),!(t=t||l))throw new Error(f);if(e.length<16)throw new TypeError(d);if(e.length>32)throw new TypeError(d);if(e.length%4!==0)throw new TypeError(d);const r=(v(Array.from(e))+y(e)).match(/(.{1,11})/g).map((e=>{const r=g(e);return t[r]}));return"\u3042\u3044\u3053\u304f\u3057\u3093"===t[0]?r.join("\u3000"):r.join(" ")}t.Z1=function(e,t){const r=Uint8Array.from(n.from(p(e),"utf8")),i=Uint8Array.from(n.from(b(p(t)),"utf8")),s=a.pbkdf2(o.sha512,r,i,{c:2048,dkLen:64});return n.from(s)},t.OF=function(e,t,r){if((e=e||128)%32!==0)throw new TypeError(d);return x((t=t||(e=>n.from(s.randomBytes(e))))(e/8),r)},t._I=function(e,t){try{w(e,t)}catch(r){return!1}return!0};var _=r(8419);t.ET=_.wordlists},5192:(e,t,r)=>{const n=r(6377);function i(e,t,r){const n=e[t]+e[r];let i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){const c=d[a],l=d[a+1],h=d[s],f=d[s+1];i(u,e,t),o(u,e,c,l);let p=u[n]^u[e],m=u[n+1]^u[e+1];u[n]=m,u[n+1]=p,i(u,r,n),p=u[t]^u[r],m=u[t+1]^u[r+1],u[t]=p>>>24^m<<8,u[t+1]=m>>>24^p<<8,i(u,e,t),o(u,e,h,f),p=u[n]^u[e],m=u[n+1]^u[e+1],u[n]=p>>>16^m<<16,u[n+1]=m>>>16^p<<16,i(u,r,n),p=u[t]^u[r],m=u[t+1]^u[r+1],u[t]=m>>>31^p<<1,u[t+1]=p>>>31^m<<1}const c=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),u=new Uint32Array(32),d=new Uint32Array(32);function h(e,t){let r=0;for(r=0;r<16;r++)u[r]=e.h[r],u[r+16]=c[r];for(u[24]=u[24]^e.t,u[25]=u[25]^e.t/4294967296,t&&(u[28]=~u[28],u[29]=~u[29]),r=0;r<32;r++)d[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,l[16*r+0],l[16*r+1]),s(2,10,18,26,l[16*r+2],l[16*r+3]),s(4,12,20,28,l[16*r+4],l[16*r+5]),s(6,14,22,30,l[16*r+6],l[16*r+7]),s(0,10,20,30,l[16*r+8],l[16*r+9]),s(2,12,22,24,l[16*r+10],l[16*r+11]),s(4,14,16,26,l[16*r+12],l[16*r+13]),s(6,8,18,28,l[16*r+14],l[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^u[r]^u[r+16]}const f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};f.fill(0),f[0]=e,t&&(f[1]=t.length),f[2]=1,f[3]=1,r&&f.set(r,32),n&&f.set(n,48);for(let o=0;o<16;o++)i.h[o]=c[o]^a(f,4*o);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let r=0;r>2]>>8*(3&r);return t}function v(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));const a=p(r,t,i,o);return m(a,e),g(a)}e.exports={blake2b:v,blake2bHex:function(e,t,r,i,o){const a=v(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:g}},7114:(e,t,r)=>{const n=r(6377);function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function o(e,t,r,n,i,o){l[e]=l[e]+l[t]+i,l[n]=a(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],12),l[e]=l[e]+l[t]+o,l[n]=a(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],7)}function a(e,t){return e>>>t^e<<32-t}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function d(e,t){let r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=s[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++)u[r]=i(e.b,4*r);for(r=0;r<10;r++)o(0,4,8,12,u[c[16*r+0]],u[c[16*r+1]]),o(1,5,9,13,u[c[16*r+2]],u[c[16*r+3]]),o(2,6,10,14,u[c[16*r+4]],u[c[16*r+5]]),o(3,7,11,15,u[c[16*r+6]],u[c[16*r+7]]),o(0,5,10,15,u[c[16*r+8]],u[c[16*r+9]]),o(1,6,11,12,u[c[16*r+10]],u[c[16*r+11]]),o(2,7,8,13,u[c[16*r+12]],u[c[16*r+13]]),o(3,4,9,14,u[c[16*r+14]],u[c[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function h(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");const r=t?t.length:0;if(t&&!(r>0&&r<=32))throw new Error("Incorrect key length, should be in [1, 32]");const n={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(f(n,t),n.c=64),n}function f(e,t){for(let r=0;r>2]>>8*(3&r)&255;return t}function m(e,t,r){r=r||32,e=n.normalizeInput(e);const i=h(r,t);return f(i,e),p(i)}e.exports={blake2s:m,blake2sHex:function(e,t,r){const i=m(e,t,r);return n.toHex(i)},blake2sInit:h,blake2sUpdate:f,blake2sFinal:p}},4563:(e,t,r)=>{const n=r(5192),i=r(7114);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},6377:e=>{function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else{if("string"!==typeof e)throw new Error("Input must be an string, Buffer or Uint8Array");t=(new TextEncoder).encode(e)}return t},toHex:function(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")},debugPrint:function(e,r,n){let i="\n"+e+" = ";for(let o=0;o=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var l=1;l>>26,d=67108863&c,h=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=h;f++){var p=l-f|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&a}r.words[l]=0|d,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],f=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?m+r:u[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,l=new e(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,x=b>>>13,_=0|a[4],S=8191&_,k=_>>>13,E=0|a[5],A=8191&E,P=E>>>13,T=0|a[6],O=8191&T,C=T>>>13,j=0|a[7],R=8191&j,I=j>>>13,M=0|a[8],L=8191&M,N=M>>>13,D=0|a[9],z=8191&D,B=D>>>13,U=0|s[0],F=8191&U,$=U>>>13,H=0|s[1],V=8191&H,q=H>>>13,K=0|s[2],W=8191&K,G=K>>>13,Z=0|s[3],Y=8191&Z,X=Z>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,$))+Math.imul(h,F)|0))<<13)|0;l=((o=Math.imul(h,$))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,F),i=(i=Math.imul(p,$))+Math.imul(m,F)|0,o=Math.imul(m,$);var ve=(l+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,V)|0))<<13)|0;l=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,F),i=(i=Math.imul(v,$))+Math.imul(y,F)|0,o=Math.imul(y,$),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,q)|0;var ye=(l+(n=n+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,W)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,F),i=(i=Math.imul(w,$))+Math.imul(x,F)|0,o=Math.imul(x,$),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var be=(l+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,Y)|0))<<13)|0;l=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,$))+Math.imul(k,F)|0,o=Math.imul(k,$),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,q)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var we=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Q)|0))<<13)|0;l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,F),i=(i=Math.imul(A,$))+Math.imul(P,F)|0,o=Math.imul(P,$),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,q)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var xe=(l+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(h,re)|0))<<13)|0;l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(O,F),i=(i=Math.imul(O,$))+Math.imul(C,F)|0,o=Math.imul(C,$),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,q)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,X)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var _e=(l+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,$))+Math.imul(I,F)|0,o=Math.imul(I,$),n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Se=(l+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(h,ce)|0))<<13)|0;l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,$))+Math.imul(N,F)|0,o=Math.imul(N,$),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var ke=(l+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(z,F),i=(i=Math.imul(z,$))+Math.imul(B,F)|0,o=Math.imul(B,$),n=n+Math.imul(L,V)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,q)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,le)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,he)|0;var Ee=(l+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(z,V),i=(i=Math.imul(z,q))+Math.imul(B,V)|0,o=Math.imul(B,q),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,le)|0,n=n+Math.imul(v,de)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(z,W),i=(i=Math.imul(z,G))+Math.imul(B,W)|0,o=Math.imul(B,G),n=n+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,he)|0;var Pe=(l+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(z,Y),i=(i=Math.imul(z,X))+Math.imul(B,Y)|0,o=Math.imul(B,X),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,le)|0,n=n+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;l=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(z,Q),i=(i=Math.imul(z,ee))+Math.imul(B,Q)|0,o=Math.imul(B,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(C,ce)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,de)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,he)|0;var Oe=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(z,re),i=(i=Math.imul(z,ne))+Math.imul(B,re)|0,o=Math.imul(B,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(O,de)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,he)|0;var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(z,oe),i=(i=Math.imul(z,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),n=n+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,de)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,he)|0;var je=(l+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(z,ce),i=(i=Math.imul(z,le))+Math.imul(B,ce)|0,o=Math.imul(B,le),n=n+Math.imul(L,de)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(z,de),i=(i=Math.imul(z,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var Ie=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Me=(l+(n=Math.imul(z,pe))|0)+((8191&(i=(i=Math.imul(z,me))+Math.imul(B,pe)|0))<<13)|0;return l=((o=Math.imul(B,me))+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,c[0]=ge,c[1]=ve,c[2]=ye,c[3]=be,c[4]=we,c[5]=xe,c[6]=_e,c[7]=Se,c[8]=ke,c[9]=Ee,c[10]=Ae,c[11]=Pe,c[12]=Te,c[13]=Oe,c[14]=Ce,c[15]=je,c[16]=Re,c[17]=Ie,c[18]=Me,0!==l&&(c[19]=l,r.length++),r};function m(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t),r},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var h=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0===(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,h=1;0===(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(b,y),b.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new w;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return v[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;n--){for(var l=t.words[n],u=c-1;u>=0;u--){var d=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,S),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3521:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,c=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]1?i-1:0),a=1;a0){var a=Object.keys(r),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var l=this.satisfies(r[c]);if(void 0!==l)return l}var u=s.default.find(a,(function(e){return t.isPlatform(e)}));if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}}if(o>0){var h=Object.keys(i),f=s.default.find(h,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},5094:(e,t,r)=>{var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r{var n=r(161);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},5919:(e,t,r)=>{"use strict";var n=r(8705),i=r(6293).Buffer;e.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=e(t);return n.encode(i.concat([t,r],t.length+4))},decode:function(e){var r=t(n.decode(e));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},427:(e,t,r)=>{"use strict";var n=r(8045),i=r(5919);e.exports=i((function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()}))},4872:(e,t,r)=>{"use strict";const n=r(3539),i=r(3299),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=s(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!==typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!==typeof e.length||Y(e.length)?s(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|p(e))}function h(e){const t=e.length<0?0:0|p(e.length),r=s(t);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(i)return n?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;ni&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128===(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[i+1],n=e[i+2],128===(192&r)&&128===(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128===(192&r)&&128===(192&n)&&128===(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(n,i),u=e.slice(t,r);for(let c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function T(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;in)&&(r=n);let i="";for(let o=t;or)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function M(e,t,r,n,i){$(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function L(e,t,r,n,i){$(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=J((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=J((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||R(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=J((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=J((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function $(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||V(t,e.length-(r+1))}(n,i,o)}function H(e,t){if("number"!==typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,r){if(Math.floor(e)!==e)throw H(e,r),new B.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=F(String(r)):"bigint"===typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function K(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function W(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function G(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!==e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},7821:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{var n=r(6293).Buffer,i=r(1702).Transform,o=r(5049).s;function a(e){i.call(this),this.hashMode="string"===typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(637)(a,i),a.prototype.update=function(e,t,r){"string"===typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},5245:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t{"use strict";var n=r(637),i=r(4768),o=r(4805),a=r(6478),s=r(1036);function c(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new c(a(e))}},8533:(e,t,r)=>{var n=r(4768);e.exports=function(e){return(new n).update(e).digest()}},9799:e=>{!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n>>6-2*i);return r}};e.exports=r}()},5434:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(r){return!1}}function s(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"===typeof r?r:c}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}function c(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(e)?a?o.arrayMerge(e,r,o):s(e,r,o):n(r,o)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},7007:(e,t,r)=>{"use strict";var n=t;n.version=r(8597).i8,n.utils=r(5649),n.rand=r(5094),n.curve=r(9057),n.curves=r(4011),n.ec=r(8563),n.eddsa=r(5494)},1399:(e,t,r)=>{"use strict";var n=r(292),i=r(5649),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=a;u--)c=(c<<1)+n[u];l.push(c)}for(var d=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=i;f>0;f--){for(a=0;a=0;l--){for(var u=0;l>=0&&0===a[l];l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var d=a[l];s(0!==d),c="affine"===e.type?d>0?c.mixedAdd(i[d-1>>1]):c.mixedAdd(i[-d-1>>1].neg()):d>0?c.add(i[d-1>>1]):c.add(i[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){var s,c,l,u=this._wnafT1,d=this._wnafT2,h=this._wnafT3,f=0;for(s=0;s=1;s-=2){var m=s-1,g=s;if(1===u[m]&&1===u[g]){var v=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(v[1]=t[m].add(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].add(t[g].neg())):(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=a(r[m],r[g]);for(f=Math.max(b[0].length,f),h[m]=new Array(f),h[g]=new Array(f),c=0;c=0;s--){for(var k=0;s>=0;){var E=!0;for(c=0;c=0&&k++,_=_.dblp(k),s<0)break;for(c=0;c0?l=d[c][A-1>>1]:A<0&&(l=d[c][-A-1>>1].neg()),_="affine"===l.type?_.mixedAdd(l):_.add(l))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i{"use strict";var n=r(5649),i=r(292),o=r(637),a=r(1399),s=n.assert;function c(e){this.twisted=1!==(0|e.a),this.mOneA=this.twisted&&-1===(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function l(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(l,a.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new l(this,e,t,r,n)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),l=o.redMul(s),u=i.redMul(s),d=a.redMul(o);return this.curve.point(c,l,d,u)},l.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(n=this.curve._mulA(s)).redAdd(c);this.zOne?(e=a.redSub(s).redSub(c).redMul(l.redSub(this.curve.two)),t=l.redMul(n.redSub(c)),r=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),o=l.redSub(i).redISub(i),e=a.redSub(s).redISub(c).redMul(o),t=l.redMul(n.redSub(c)),r=l.redMul(o))}else n=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(c)),r=n.redMul(o);return this.curve.point(e,t,r)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),l=o.redMul(a),u=s.redMul(c),d=o.redMul(c),h=a.redMul(s);return this.curve.point(l,u,h,d)},l.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(u);return this.curve.twisted?(t=n.redMul(l).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(l)):(t=n.redMul(l).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(l)),this.curve.point(d,t,r)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},l.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},9057:(e,t,r)=>{"use strict";var n=t;n.base=r(1399),n.short=r(8289),n.mont=r(8507),n.edwards=r(3961)},8507:(e,t,r)=>{"use strict";var n=r(292),i=r(637),o=r(1399),a=r(5649);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},8289:(e,t,r)=>{"use strict";var n=r(5649),i=r(292),o=r(637),a=r(1399),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,l,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),v=new i(1),y=0;0!==h.cmpn(0);){var b=f.div(h);l=f.sub(b.mul(h)),u=g.sub(b.mul(p));var w=v.sub(b.mul(m));if(!n&&l.cmp(d)<0)t=c.neg(),r=p,n=l.neg(),o=u;else if(n&&2===++y)break;c=l,f=h,h=l,g=p,p=u,v=m,m=w}a=l.neg(),s=u;var x=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(x)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),l=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},l.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),d=n.redMul(l),h=c.redSqr().redIAdd(u).redISub(d).redISub(d),f=c.redMul(d.redISub(h)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,f,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),u=r.redMul(c),d=s.redSqr().redIAdd(l).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(i.redMul(l)),f=this.z.redMul(a);return this.curve.jpoint(d,h,f)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},4011:(e,t,r)=>{"use strict";var n,i=t,o=r(7992),a=r(9057),s=r(5649).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(240)}catch(u){n=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},8563:(e,t,r)=>{"use strict";var n=r(292),i=r(8375),o=r(5649),a=r(4011),s=r(5094),c=o.assert,l=r(5755),u=r(1543);function d(e){if(!(this instanceof d))return new d(e);"string"===typeof e&&(c(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new l(this,e)},d.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"===typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),h=0;;h++){var f=o.k?o.k(h):new n(l.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=f.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:g,s:v,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),l=c.mul(e).umod(this.n),d=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,r.getPublic(),d)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new n(e),s=t.r,l=t.s,d=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var f=t.r.invm(o),p=o.sub(a).mul(f).umod(o),m=l.mul(f).umod(o);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},5755:(e,t,r)=>{"use strict";var n=r(292),i=r(5649).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return""}},1543:(e,t,r)=>{"use strict";var n=r(292),i=r(5649),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function l(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=c(e,r);if(!1===a)return!1;var l=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var u=c(e,r);if(!1===u)return!1;if(e.length!==u+r.place)return!1;var d=e.slice(r.place,u+r.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(l),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=l(t),r=l(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var o=n.concat(r),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},5494:(e,t,r)=>{"use strict";var n=r(7992),i=r(4011),o=r(5649),a=o.assert,s=o.parseBytes,c=r(2260),l=r(4311);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},u.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";var n=r(5649),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},4311:(e,t,r)=>{"use strict";var n=r(292),i=r(5649),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!==typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},240:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},5649:(e,t,r)=>{"use strict";var n=t,i=r(292),o=r(490),a=r(5659);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,c=e.andln(3)+i&3,l=t.andln(3)+o&3;3===c&&(c=-1),3===l&&(l=-1),a=0===(1&c)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==l?c:-c,r[0].push(a),s=0===(1&l)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==c?l:-l,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},7581:e=>{"use strict";function t(e,t){for(const r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}e.exports=function(e,r,n){if(!e||"string"===typeof e)throw new TypeError("Please pass an Error to err-code");n||(n={}),"object"===typeof r&&(n=r,r=void 0),null!=r&&(n.code=r);try{return t(e,n)}catch(i){n.message=e.message,n.stack=e.stack;const r=function(){};return r.prototype=Object.create(Object.getPrototypeOf(e)),t(new r,n)}}},1042:(e,t,r)=>{"use strict";t.wn=void 0;const n=r(3974),i=r(1186);(0,i.wrapHash)(n.keccak_224),t.wn=(()=>{const e=(0,i.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),(0,i.wrapHash)(n.keccak_384),(0,i.wrapHash)(n.keccak_512)},1186:function(e,t,r){"use strict";e=r.nmd(e);var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.wrapHash=t.equalsBytes=t.hexToBytes=t.bytesToUtf8=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0;const i=n(r(4103)),o=r(9041),a=i.default.bool;t.assertBool=a;const s=i.default.bytes;t.assertBytes=s;var c=r(9041);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,o.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r(i.default.bytes(t),e(t))},t.crypto=(()=>{const t="object"===typeof self&&"crypto"in self?self.crypto:void 0,r="function"===typeof e.require&&e.require.bind(e);return{node:r&&!t?r("crypto"):void 0,web:t}})()},4062:e=>{"use strict";var t,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"===typeof e.on&&m(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,o,a,l;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"===typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"===typeof c)n(c,this,t);else{var l=c.length,u=p(c,l);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2259:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r,n="boolean"===typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"===typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r{"use strict";var n=r(6293).Buffer,i=r(3859).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(637)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},7992:(e,t,r)=>{var n=t;n.utils=r(7841),n.common=r(2012),n.sha=r(7885),n.ripemd=r(56),n.hmac=r(57),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},2012:(e,t,r)=>{"use strict";var n=r(7841),i=r(490);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o{"use strict";var n=r(7841),i=r(490);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t{"use strict";var n=r(7841),i=r(2012),o=n.rotl32,a=n.sum32,s=n.sum32_3,c=n.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,l),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],y=r,b=n,w=i,x=l,_=u,S=0;S<80;S++){var k=a(o(c(r,d(S,n,i,l),e[p[S]+t],h(S)),g[S]),u);r=u,u=l,l=o(i,10),i=n,n=k,k=a(o(c(y,d(79-S,b,w,x),e[m[S]+t],f(S)),v[S]),_),y=_,_=x,x=o(w,10),w=b,b=k}k=s(this.h[1],i,x),this.h[1]=s(this.h[2],l,_),this.h[2]=s(this.h[3],u,y),this.h[3]=s(this.h[4],r,b),this.h[4]=s(this.h[0],n,w),this.h[0]=k},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[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],m=[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],g=[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],v=[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]},7885:(e,t,r)=>{"use strict";t.sha1=r(9046),t.sha224=r(5962),t.sha256=r(7353),t.sha384=r(8151),t.sha512=r(6814)},9046:(e,t,r)=>{"use strict";var n=r(7841),i=r(2012),o=r(2015),a=n.rotl32,s=n.sum32,c=n.sum32_5,l=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(7841),i=r(7353);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},7353:(e,t,r)=>{"use strict";var n=r(7841),i=r(2012),o=r(2015),a=r(490),s=n.sum32,c=n.sum32_4,l=n.sum32_5,u=o.ch32,d=o.maj32,h=o.s0_256,f=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(7841),i=r(6814);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},6814:(e,t,r)=>{"use strict";var n=r(7841),i=r(2012),o=r(490),a=n.rotr64_hi,s=n.rotr64_lo,c=n.shr64_hi,l=n.shr64_lo,u=n.sum64,d=n.sum64_hi,h=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,v=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function x(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function _(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function S(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function k(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,1)^a(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function C(e,t){var r=a(e,t,19)^a(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function j(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(b,v),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(7841).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},7841:(e,t,r)=>{"use strict";var n=r(490),i=r(637);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var c=0,l=t;return c+=(l=l+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,c,l){var u=0,d=t;return u+=(d=d+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,c,l){return t+n+o+s+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},8375:(e,t,r)=>{"use strict";var n=r(7992),i=r(5659),o=r(490);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length{"use strict";var n=r(5235),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=c(t),m=c(r),g=0;g{"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case h:case g:case m:case c:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===f||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},5235:(e,t,r)=>{"use strict";e.exports=r(6261)},3299:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<>1,u=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=l}return(f?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,l=8*o-i-1,u=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;e[r+f]=255&a,f+=p,a/=256,l-=8);e[r+f-p]|=128*m}},637:e=>{"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},2311:e=>{function t(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},8981:(e,t,r)=>{"use strict";var n="undefined"!==typeof JSON?JSON:r(5384),i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var n in e)t.call(e,n)&&r.push(n);return r};e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r=t.space||"";"number"===typeof r&&(r=Array(r+1).join(" "));var a,s="boolean"===typeof t.cycles&&t.cycles,c=t.replacer||function(e,t){return t},l=t.cmp&&(a=t.cmp,function(e){return function(t,r){var n={key:t,value:e[t]},i={key:r,value:e[r]};return a(n,i)}}),u=[];return function e(t,a,d,h){var f=r?"\n"+new Array(h+1).join(r):"",p=r?": ":":";if(d&&d.toJSON&&"function"===typeof d.toJSON&&(d=d.toJSON()),void 0!==(d=c.call(t,a,d))){if("object"!==typeof d||null===d)return n.stringify(d);if(i(d)){for(var m=[],g=0;g{"use strict";t.parse=r(1916),t.stringify=r(8920)},1916:e=>{"use strict";var t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function o(e){throw{name:"SyntaxError",message:e,at:t,text:n}}function a(e){return e&&e!==r&&o("Expected '"+e+"' instead of '"+r+"'"),r=n.charAt(t),t+=1,r}function s(){var e,t="";for("-"===r&&(t="-",a("-"));r>="0"&&r<="9";)t+=r,a();if("."===r)for(t+=".";a()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,a(),"-"!==r&&"+"!==r||(t+=r,a());r>="0"&&r<="9";)t+=r,a();return e=Number(t),isFinite(e)||o("Bad number"),e}function c(){var e,t,n,s="";if('"'===r)for(;a();){if('"'===r)return a(),s;if("\\"===r)if(a(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(a(),16),isFinite(e));t+=1)n=16*n+e;s+=String.fromCharCode(n)}else{if("string"!==typeof i[r])break;s+=i[r]}else s+=r}o("Bad string")}function l(){for(;r&&r<=" ";)a()}function u(){switch(l(),r){case"{":return function(){var e,t={};if("{"===r){if(a("{"),l(),"}"===r)return a("}"),t;for(;r;){if(e=c(),l(),a(":"),Object.prototype.hasOwnProperty.call(t,e)&&o('Duplicate key "'+e+'"'),t[e]=u(),l(),"}"===r)return a("}"),t;a(","),l()}}o("Bad object")}();case"[":return function(){var e=[];if("["===r){if(a("["),l(),"]"===r)return a("]"),e;for(;r;){if(e.push(u()),l(),"]"===r)return a("]"),e;a(","),l()}}o("Bad array")}();case'"':return c();case"-":return s();default:return r>="0"&&r<="9"?s():function(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null;default:o("Unexpected '"+r+"'")}}()}}e.exports=function(e,i){var a;return n=e,t=0,r=" ",a=u(),l(),r&&o("Syntax error"),"function"===typeof i?function e(t,r){var n,o,a=t[r];if(a&&"object"===typeof a)for(n in u)Object.prototype.hasOwnProperty.call(a,n)&&("undefined"===typeof(o=e(a,n))?delete a[n]:a[n]=o);return i.call(t,r,a)}({"":a},""):a}},8920:e=>{"use strict";var t,r,n,i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var t=o[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function s(e,i){var o,c,l,u,d,h=t,f=i[e];switch(f&&"object"===typeof f&&"function"===typeof f.toJSON&&(f=f.toJSON(e)),"function"===typeof n&&(f=n.call(i,e,f)),typeof f){case"string":return a(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(t+=r,d=[],"[object Array]"===Object.prototype.toString.apply(f)){for(u=f.length,o=0;o{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,n,i){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"===typeof n&&(i=n,n={}),n=n||{},i=i||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async=!("async"in n)||!!n.async,a.src=e,n.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(a,n.attrs),n.text&&(a.text=""+n.text),("onload"in a?t:r)(a,i),a.onload||t(a,i),o.appendChild(a)}},9724:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",y="[object Object]",b="[object Promise]",w="[object Proxy]",x="[object RegExp]",_="[object Set]",S="[object String]",k="[object Symbol]",E="[object Undefined]",A="[object WeakMap]",P="[object ArrayBuffer]",T="[object DataView]",O=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[s]=j[c]=j[P]=j[u]=j[T]=j[d]=j[h]=j[f]=j[m]=j[g]=j[y]=j[x]=j[_]=j[S]=j[A]=!1;var R="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,I="object"==typeof self&&self&&self.Object===Object&&self,M=R||I||Function("return this")(),L=t&&!t.nodeType&&t,N=L&&e&&!e.nodeType&&e,D=N&&N.exports===L,z=D&&R.process,B=function(){try{return z&&z.binding&&z.binding("util")}catch(e){}}(),U=B&&B.isTypedArray;function F(e,t){for(var r=-1,n=null==e?0:e.length;++rl))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var h=-1,f=!0,p=r&o?new Ae:void 0;for(s.set(e,t),s.set(t,e);++h-1},ke.prototype.set=function(e,t){var r=this.__data__,n=Oe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ee.prototype.clear=function(){this.size=0,this.__data__={hash:new Se,map:new(de||ke),string:new Se}},Ee.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},Ee.prototype.get=function(e){return De(this,e).get(e)},Ee.prototype.has=function(e){return De(this,e).has(e)},Ee.prototype.set=function(e,t){var r=De(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,n),this},Ae.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new ke,this.size=0},Pe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!de||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ee(n)}return r.set(e,t),this.size=r.size,this};var Be=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=a}function Ze(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ye(e){return null!=e&&"object"==typeof e}var Xe=U?function(e){return function(t){return e(t)}}(U):function(e){return Ye(e)&&Ge(e.length)&&!!j[Ce(e)]};function Je(e){return null!=(t=e)&&Ge(t.length)&&!We(t)?Te(e):Me(e);var t}e.exports=function(e,t){return Re(e,t)}},4579:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",l="[object Null]",u="[object Object]",d="[object Proxy]",h="[object Undefined]",f=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[o]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[u]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),b=t&&!t.nodeType&&t,w=b&&e&&!e.nodeType&&e,x=w&&w.exports===b,_=x&&g.process,S=function(){try{var e=w&&w.require&&w.require("util").types;return e||_&&_.binding&&_.binding("util")}catch(t){}}(),k=S&&S.isTypedArray;var E,A,P=Array.prototype,T=Function.prototype,O=Object.prototype,C=y["__core-js_shared__"],j=T.toString,R=O.hasOwnProperty,I=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M=O.toString,L=j.call(Object),N=RegExp("^"+j.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=x?y.Buffer:void 0,z=y.Symbol,B=y.Uint8Array,U=D?D.allocUnsafe:void 0,F=(E=Object.getPrototypeOf,A=Object,function(e){return E(A(e))}),$=Object.create,H=O.propertyIsEnumerable,V=P.splice,q=z?z.toStringTag:void 0,K=function(){try{var e=ye(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),W=D?D.isBuffer:void 0,G=Math.max,Z=Date.now,Y=ye(y,"Map"),X=ye(Object,"create"),J=function(){function e(){}return function(t){if(!Ce(t))return{};if($)return $(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(Y||ee),string:new Q}},te.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ve(this,e).get(e)},te.prototype.has=function(e){return ve(this,e).has(e)},te.prototype.set=function(e,t){var r=ve(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!Y||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};var ce,le=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[ce?a:++n];if(!1===t(i[s],s,i))break}return e};function ue(e){return null==e?void 0===e?h:l:q&&q in Object(e)?function(e){var t=R.call(e,q),r=e[q];try{e[q]=void 0;var n=!0}catch(o){}var i=M.call(e);n&&(t?e[q]=r:delete e[q]);return i}(e):function(e){return M.call(e)}(e)}function de(e){return je(e)&&ue(e)==o}function he(e){return!(!Ce(e)||function(e){return!!I&&I in e}(e))&&(Te(e)?N:f).test(function(e){if(null!=e){try{return j.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function fe(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=we(e),r=[];for(var n in e)("constructor"!=n||!t&&R.call(e,n))&&r.push(n);return r}function pe(e,t,r,n,i){e!==t&&le(t,(function(o,a){if(i||(i=new re),Ce(o))!function(e,t,r,n,i,o,a){var s=xe(e,r),c=xe(t,r),l=a.get(c);if(l)return void ie(e,r,l);var d=o?o(s,c,r+"",e,t,a):void 0,h=void 0===d;if(h){var f=Ee(c),p=!f&&Pe(c),m=!f&&!p&&Re(c);d=c,f||p||m?Ee(s)?d=s:je(g=s)&&Ae(g)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ge);function Se(e,t){return e===t||e!==e&&t!==t}var ke=de(function(){return arguments}())?de:function(e){return je(e)&&R.call(e,"callee")&&!H.call(e,"callee")},Ee=Array.isArray;function Ae(e){return null!=e&&Oe(e.length)&&!Te(e)}var Pe=W||function(){return!1};function Te(e){if(!Ce(e))return!1;var t=ue(e);return t==s||t==c||t==a||t==d}function Oe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Re=k?function(e){return function(t){return e(t)}}(k):function(e){return je(e)&&Oe(e.length)&&!!m[ue(e)]};function Ie(e){return Ae(e)?ne(e,!0):fe(e)}var Me,Le=(Me=function(e,t,r){pe(e,t,r)},me((function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Me.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ce(r))return!1;var n=typeof t;return!!("number"==n?Ae(r)&&be(t,r.length):"string"==n&&t in r)&&Se(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r{e=r.nmd(e);var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",l="[object Null]",u="[object Object]",d="[object Proxy]",h="[object Undefined]",f=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[o]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[u]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),b=t&&!t.nodeType&&t,w=b&&e&&!e.nodeType&&e,x=w&&w.exports===b,_=x&&g.process,S=function(){try{var e=w&&w.require&&w.require("util").types;return e||_&&_.binding&&_.binding("util")}catch(t){}}(),k=S&&S.isTypedArray;var E,A,P=Array.prototype,T=Function.prototype,O=Object.prototype,C=y["__core-js_shared__"],j=T.toString,R=O.hasOwnProperty,I=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M=O.toString,L=j.call(Object),N=RegExp("^"+j.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=x?y.Buffer:void 0,z=y.Symbol,B=y.Uint8Array,U=D?D.allocUnsafe:void 0,F=(E=Object.getPrototypeOf,A=Object,function(e){return E(A(e))}),$=Object.create,H=O.propertyIsEnumerable,V=P.splice,q=z?z.toStringTag:void 0,K=function(){try{var e=ye(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),W=D?D.isBuffer:void 0,G=Math.max,Z=Date.now,Y=ye(y,"Map"),X=ye(Object,"create"),J=function(){function e(){}return function(t){if(!Ce(t))return{};if($)return $(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(Y||ee),string:new Q}},te.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ve(this,e).get(e)},te.prototype.has=function(e){return ve(this,e).has(e)},te.prototype.set=function(e,t){var r=ve(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!Y||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};var ce,le=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[ce?a:++n];if(!1===t(i[s],s,i))break}return e};function ue(e){return null==e?void 0===e?h:l:q&&q in Object(e)?function(e){var t=R.call(e,q),r=e[q];try{e[q]=void 0;var n=!0}catch(o){}var i=M.call(e);n&&(t?e[q]=r:delete e[q]);return i}(e):function(e){return M.call(e)}(e)}function de(e){return je(e)&&ue(e)==o}function he(e){return!(!Ce(e)||function(e){return!!I&&I in e}(e))&&(Te(e)?N:f).test(function(e){if(null!=e){try{return j.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function fe(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=we(e),r=[];for(var n in e)("constructor"!=n||!t&&R.call(e,n))&&r.push(n);return r}function pe(e,t,r,n,i){e!==t&&le(t,(function(o,a){if(i||(i=new re),Ce(o))!function(e,t,r,n,i,o,a){var s=xe(e,r),c=xe(t,r),l=a.get(c);if(l)return void ie(e,r,l);var d=o?o(s,c,r+"",e,t,a):void 0,h=void 0===d;if(h){var f=Ee(c),p=!f&&Pe(c),m=!f&&!p&&Re(c);d=c,f||p||m?Ee(s)?d=s:je(g=s)&&Ae(g)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ge);function Se(e,t){return e===t||e!==e&&t!==t}var ke=de(function(){return arguments}())?de:function(e){return je(e)&&R.call(e,"callee")&&!H.call(e,"callee")},Ee=Array.isArray;function Ae(e){return null!=e&&Oe(e.length)&&!Te(e)}var Pe=W||function(){return!1};function Te(e){if(!Ce(e))return!1;var t=ue(e);return t==s||t==c||t==a||t==d}function Oe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Re=k?function(e){return function(t){return e(t)}}(k):function(e){return je(e)&&Oe(e.length)&&!!m[ue(e)]};function Ie(e){return Ae(e)?ne(e,!0):fe(e)}var Me,Le=(Me=function(e,t,r,n){pe(e,t,r,n)},me((function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Me.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ce(r))return!1;var n=typeof t;return!!("number"==n?Ae(r)&&be(t,r.length):"string"==n&&t in r)&&Se(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r"']/g,Y=RegExp(G.source),X=RegExp(Z.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",Pe="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",je="['\u2019]",Re="["+ke+"]",Ie="["+Ce+"]",Me="["+Ee+"]",Le="\\d+",Ne="["+Ae+"]",De="["+Pe+"]",ze="[^"+ke+Ce+Le+Ae+Pe+Te+"]",Be="\\ud83c[\\udffb-\\udfff]",Ue="[^"+ke+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",$e="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Te+"]",Ve="\\u200d",qe="(?:"+De+"|"+ze+")",Ke="(?:"+He+"|"+ze+")",We="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+Me+"|"+Be+")"+"?",Ye="["+Oe+"]?",Xe=Ye+Ze+("(?:"+Ve+"(?:"+[Ue,Fe,$e].join("|")+")"+Ye+Ze+")*"),Je="(?:"+[Ne,Fe,$e].join("|")+")"+Xe,Qe="(?:"+[Ue+Me+"?",Me,Fe,$e,Re].join("|")+")",et=RegExp(je,"g"),tt=RegExp(Me,"g"),rt=RegExp(Be+"(?="+Be+")|"+Qe+Xe,"g"),nt=RegExp([He+"?"+De+"+"+We+"(?="+[Ie,He,"$"].join("|")+")",Ke+"+"+Ge+"(?="+[Ie,He+qe,"$"].join("|")+")",He+"?"+qe+"+"+We,He+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Je].join("|"),"g"),it=RegExp("["+Ve+ke+Ee+Oe+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ct={};ct[N]=ct[D]=ct[z]=ct[B]=ct[U]=ct[F]=ct[$]=ct[H]=ct[V]=!0,ct[y]=ct[b]=ct[M]=ct[w]=ct[L]=ct[x]=ct[_]=ct[S]=ct[E]=ct[A]=ct[P]=ct[O]=ct[C]=ct[j]=ct[I]=!1;var lt={};lt[y]=lt[b]=lt[M]=lt[L]=lt[w]=lt[x]=lt[N]=lt[D]=lt[z]=lt[B]=lt[U]=lt[E]=lt[A]=lt[P]=lt[O]=lt[C]=lt[j]=lt[R]=lt[F]=lt[$]=lt[H]=lt[V]=!0,lt[_]=lt[S]=lt[I]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ht=parseInt,ft="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||pt||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&ft.process,wt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,St=wt&&wt.isMap,kt=wt&&wt.isRegExp,Et=wt&&wt.isSet,At=wt&&wt.isTypedArray;function Pt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Tt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function Mt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function nr(e,t){for(var r=e.length;r--&&Ht(t,e[r],0)>-1;);return r}var ir=Gt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(e){return"\\"+ut[e]}function sr(e){return it.test(e)}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var vr=function e(t){var r=(t=null==t?mt:vr.defaults(mt.Object(),t,vr.pick(mt,at))).Array,n=t.Date,se=t.Error,ke=t.Function,Ee=t.Math,Ae=t.Object,Pe=t.RegExp,Te=t.String,Oe=t.TypeError,Ce=r.prototype,je=ke.prototype,Re=Ae.prototype,Ie=t["__core-js_shared__"],Me=je.toString,Le=Re.hasOwnProperty,Ne=0,De=function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ze=Re.toString,Be=Me.call(Ae),Ue=mt._,Fe=Pe("^"+Me.call(Le).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=yt?t.Buffer:i,He=t.Symbol,Ve=t.Uint8Array,qe=$e?$e.allocUnsafe:i,Ke=lr(Ae.getPrototypeOf,Ae),We=Ae.create,Ge=Re.propertyIsEnumerable,Ze=Ce.splice,Ye=He?He.isConcatSpreadable:i,Xe=He?He.iterator:i,Je=He?He.toStringTag:i,Qe=function(){try{var e=ho(Ae,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,it=n&&n.now!==mt.Date.now&&n.now,ut=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=Ee.ceil,pt=Ee.floor,gt=Ae.getOwnPropertySymbols,vt=$e?$e.isBuffer:i,bt=t.isFinite,wt=Ce.join,Ut=lr(Ae.keys,Ae),Gt=Ee.max,yr=Ee.min,br=n.now,wr=t.parseInt,xr=Ee.random,_r=Ce.reverse,Sr=ho(t,"DataView"),kr=ho(t,"Map"),Er=ho(t,"Promise"),Ar=ho(t,"Set"),Pr=ho(t,"WeakMap"),Tr=ho(Ae,"create"),Or=Pr&&new Pr,Cr={},jr=zo(Sr),Rr=zo(kr),Ir=zo(Er),Mr=zo(Ar),Lr=zo(Pr),Nr=He?He.prototype:i,Dr=Nr?Nr.valueOf:i,zr=Nr?Nr.toString:i;function Br(e){if(ts(e)&&!Va(e)&&!(e instanceof Hr)){if(e instanceof $r)return e;if(Le.call(e,"__wrapped__"))return Bo(e)}return new $r(e)}var Ur=function(){function e(){}return function(t){if(!es(t))return{};if(We)return We(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Fr(){}function $r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function cn(e,t,r,n,o,a){var s,c=1&t,l=2&t,u=4&t;if(r&&(s=o?r(e,n,o,a):r(e)),s!==i)return s;if(!es(e))return e;var d=Va(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return Oi(e,s)}else{var h=mo(e),f=h==S||h==k;if(Ga(e))return Si(e,c);if(h==P||h==y||f&&!o){if(s=l||f?{}:vo(e),!c)return l?function(e,t){return Ci(e,po(e),t)}(e,function(e,t){return e&&Ci(t,Rs(t),e)}(s,e)):function(e,t){return Ci(e,fo(e),t)}(e,nn(s,e))}else{if(!lt[h])return o?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case M:return ki(e);case w:case x:return new n(+e);case L:return function(e,t){var r=t?ki(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case N:case D:case z:case B:case U:case F:case $:case H:case V:return Ei(e,r);case E:return new n;case A:case j:return new n(e);case O:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new n;case R:return i=e,Dr?Ae(Dr.call(i)):{}}var i}(e,h,c)}}a||(a=new Gr);var p=a.get(e);if(p)return p;a.set(e,s),as(e)?e.forEach((function(n){s.add(cn(n,t,r,n,e,a))})):rs(e)&&e.forEach((function(n,i){s.set(i,cn(n,t,r,i,e,a))}));var m=d?i:(u?l?io:no:l?Rs:js)(e);return Ot(m||e,(function(n,i){m&&(n=e[i=n]),en(s,i,cn(n,t,r,i,e,a))})),s}function ln(e,t,r){var n=r.length;if(null==e)return!n;for(e=Ae(e);n--;){var o=r[n],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new Oe(o);return jo((function(){e.apply(i,r)}),t)}function dn(e,t,r,n){var i=-1,o=It,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;r&&(t=Lt(t,Qt(r))),n?(o=Mt,a=!1):t.length>=200&&(o=tr,a=!1,t=new Wr(t));e:for(;++i-1},qr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(kr||qr),string:new Vr}},Kr.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Kr.prototype.get=function(e){return lo(this,e).get(e)},Kr.prototype.has=function(e){return lo(this,e).has(e)},Kr.prototype.set=function(e,t){var r=lo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Wr.prototype.add=Wr.prototype.push=function(e){return this.__data__.set(e,a),this},Wr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.clear=function(){this.__data__=new qr,this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Gr.prototype.get=function(e){return this.__data__.get(e)},Gr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var n=r.__data__;if(!kr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kr(n)}return r.set(e,t),this.size=r.size,this};var hn=Ii(wn),fn=Ii(xn,!0);function pn(e,t){var r=!0;return hn(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function mn(e,t,r){for(var n=-1,o=e.length;++n0&&r(s)?t>1?vn(s,t-1,r,n,i):Nt(i,s):n||(i[i.length]=s)}return i}var yn=Mi(),bn=Mi(!0);function wn(e,t){return e&&yn(e,t,js)}function xn(e,t){return e&&bn(e,t,js)}function _n(e,t){return Rt(t,(function(t){return Xa(e[t])}))}function Sn(e,t){for(var r=0,n=(t=bi(t,e)).length;null!=e&&rt}function Pn(e,t){return null!=e&&Le.call(e,t)}function Tn(e,t){return null!=e&&t in Ae(e)}function On(e,t,n){for(var o=n?Mt:It,a=e[0].length,s=e.length,c=s,l=r(s),u=1/0,d=[];c--;){var h=e[c];c&&t&&(h=Lt(h,Qt(t))),u=yr(h.length,u),l[c]=!n&&(t||a>=120&&h.length>=120)?new Wr(c&&h):i}h=e[0];var f=-1,p=l[0];e:for(;++f=s?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function qn(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Ze.call(s,c,1),Ze.call(e,c,1);return e}function Wn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;bo(i)?Ze.call(e,i,1):di(e,i)}}return e}function Gn(e,t){return e+pt(xr()*(t-e+1))}function Zn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=pt(t/2))&&(e+=e)}while(t);return r}function Yn(e,t){return Ro(Po(e,t,nc),e+"")}function Xn(e){return Yr(Us(e))}function Jn(e,t){var r=Us(e);return Lo(r,sn(t,0,r.length))}function Qn(e,t,r,n){if(!es(e))return e;for(var o=-1,a=(t=bi(t,e)).length,s=a-1,c=e;null!=c&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!cs(a)&&(r?a<=t:a=200){var l=t?null:Zi(e);if(l)return dr(l);a=!1,i=tr,c=new Wr}else c=t?[]:s;e:for(;++n=n?e:ni(e,t,r)}var _i=rt||function(e){return mt.clearTimeout(e)};function Si(e,t){if(t)return e.slice();var r=e.length,n=qe?qe(r):new e.constructor(r);return e.copy(n),n}function ki(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ei(e,t){var r=t?ki(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ai(e,t){if(e!==t){var r=e!==i,n=null===e,o=e===e,a=cs(e),s=t!==i,c=null===t,l=t===t,u=cs(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||n&&s&&l||!r&&l||!o)return 1;if(!n&&!a&&!u&&e1?r[o-1]:i,s=o>2?r[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&wo(r[0],r[1],s)&&(a=o<3?i:a,o=1),t=Ae(t);++n-1?o[a?t[s]:s]:i}}function Bi(e){return ro((function(t){var r=t.length,n=r,a=$r.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new Oe(o);if(a&&!c&&"wrapper"==ao(s))var c=new $r([],!0)}for(n=c?n:r;++n1&&w.reverse(),f&&uc))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&r?new Wr:i;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ot(v,(function(r){var n="_."+r[0];t&r[1]&&!It(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ue):[]}(n),r)))}function Mo(e){var t=0,r=0;return function(){var n=br(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Lo(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,oa(e,r)}));function ha(e){var t=Br(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var pa=ro((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return an(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Hr&&bo(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:i}),new $r(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ma=ji((function(e,t,r){Le.call(e,r)?++e[r]:on(e,r,1)}));var ga=zi(Ho),va=zi(Vo);function ya(e,t){return(Va(e)?Ot:hn)(e,co(t,3))}function ba(e,t){return(Va(e)?Ct:fn)(e,co(t,3))}var wa=ji((function(e,t,r){Le.call(e,r)?e[r].push(t):on(e,r,[t])}));var xa=Yn((function(e,t,n){var i=-1,o="function"==typeof t,a=Ka(e)?r(e.length):[];return hn(e,(function(e){a[++i]=o?Pt(t,e,n):Cn(e,t,n)})),a})),_a=ji((function(e,t,r){on(e,r,t)}));function Sa(e,t){return(Va(e)?Lt:Bn)(e,co(t,3))}var ka=ji((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Ea=Yn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&wo(e,t[0],t[1])?t=[]:r>2&&wo(t[0],t[1],t[2])&&(t=[t[0]]),Vn(e,vn(t,1),[])})),Aa=it||function(){return mt.Date.now()};function Pa(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Xi(e,d,i,i,i,i,t)}function Ta(e,t){var r;if("function"!=typeof t)throw new Oe(o);return e=ps(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Oa=Yn((function(e,t,r){var n=1;if(r.length){var i=ur(r,so(Oa));n|=l}return Xi(e,n,t,r,i)})),Ca=Yn((function(e,t,r){var n=3;if(r.length){var i=ur(r,so(Ca));n|=l}return Xi(t,n,e,r,i)}));function ja(e,t,r){var n,a,s,c,l,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Oe(o);function m(t){var r=n,o=a;return n=a=i,d=t,c=e.apply(o,r)}function g(e){var r=e-u;return u===i||r>=t||r<0||f&&e-d>=s}function v(){var e=Aa();if(g(e))return y(e);l=jo(v,function(e){var r=t-(e-u);return f?yr(r,s-(e-d)):r}(e))}function y(e){return l=i,p&&n?m(e):(n=a=i,c)}function b(){var e=Aa(),r=g(e);if(n=arguments,a=this,u=e,r){if(l===i)return function(e){return d=e,l=jo(v,t),h?m(e):c}(u);if(f)return _i(l),l=jo(v,t),m(u)}return l===i&&(l=jo(v,t)),c}return t=gs(t)||0,es(r)&&(h=!!r.leading,s=(f="maxWait"in r)?Gt(gs(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p),b.cancel=function(){l!==i&&_i(l),d=0,n=u=a=l=i},b.flush=function(){return l===i?c:y(Aa())},b}var Ra=Yn((function(e,t){return un(e,1,t)})),Ia=Yn((function(e,t,r){return un(e,gs(t)||0,r)}));function Ma(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ma.Cache||Kr),r}function La(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=Kr;var Na=wi((function(e,t){var r=(t=1==t.length&&Va(t[0])?Lt(t[0],Qt(co())):Lt(vn(t,1),Qt(co()))).length;return Yn((function(n){for(var i=-1,o=yr(n.length,r);++i=t})),Ha=jn(function(){return arguments}())?jn:function(e){return ts(e)&&Le.call(e,"callee")&&!Ge.call(e,"callee")},Va=r.isArray,qa=xt?Qt(xt):function(e){return ts(e)&&En(e)==M};function Ka(e){return null!=e&&Qa(e.length)&&!Xa(e)}function Wa(e){return ts(e)&&Ka(e)}var Ga=vt||gc,Za=_t?Qt(_t):function(e){return ts(e)&&En(e)==x};function Ya(e){if(!ts(e))return!1;var t=En(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!es(e))return!1;var t=En(e);return t==S||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ps(e)}function Qa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var rs=St?Qt(St):function(e){return ts(e)&&mo(e)==E};function ns(e){return"number"==typeof e||ts(e)&&En(e)==A}function is(e){if(!ts(e)||En(e)!=P)return!1;var t=Ke(e);if(null===t)return!0;var r=Le.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Me.call(r)==Be}var os=kt?Qt(kt):function(e){return ts(e)&&En(e)==O};var as=Et?Qt(Et):function(e){return ts(e)&&mo(e)==C};function ss(e){return"string"==typeof e||!Va(e)&&ts(e)&&En(e)==j}function cs(e){return"symbol"==typeof e||ts(e)&&En(e)==R}var ls=At?Qt(At):function(e){return ts(e)&&Qa(e.length)&&!!ct[En(e)]};var us=Ki(zn),ds=Ki((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ka(e))return ss(e)?pr(e):Oi(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=mo(e);return(t==E?cr:t==C?dr:Us)(e)}function fs(e){return e?(e=gs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ps(e){var t=fs(e),r=t%1;return t===t?r?t-r:t:0}function ms(e){return e?sn(ps(e),0,g):0}function gs(e){if("number"==typeof e)return e;if(cs(e))return m;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var r=ve.test(e);return r||be.test(e)?ht(e.slice(2),r?2:8):ge.test(e)?m:+e}function vs(e){return Ci(e,Rs(e))}function ys(e){return null==e?"":li(e)}var bs=Ri((function(e,t){if(ko(t)||Ka(t))Ci(t,js(t),e);else for(var r in t)Le.call(t,r)&&en(e,r,t[r])})),ws=Ri((function(e,t){Ci(t,Rs(t),e)})),xs=Ri((function(e,t,r,n){Ci(t,Rs(t),e,n)})),_s=Ri((function(e,t,r,n){Ci(t,js(t),e,n)})),Ss=ro(an);var ks=Yn((function(e,t){e=Ae(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&wo(t[0],t[1],o)&&(n=1);++r1),t})),Ci(e,io(e),r),n&&(r=cn(r,7,eo));for(var i=t.length;i--;)di(r,t[i]);return r}));var Ns=ro((function(e,t){return null==e?{}:function(e,t){return qn(e,t,(function(t,r){return Ps(e,r)}))}(e,t)}));function Ds(e,t){if(null==e)return{};var r=Lt(io(e),(function(e){return[e]}));return t=co(t),qn(e,r,(function(e,r){return t(e,r[0])}))}var zs=Yi(js),Bs=Yi(Rs);function Us(e){return null==e?[]:er(e,js(e))}var Fs=Ni((function(e,t,r){return t=t.toLowerCase(),e+(r?$s(t):t)}));function $s(e){return Ys(ys(e).toLowerCase())}function Hs(e){return(e=ys(e))&&e.replace(xe,ir).replace(tt,"")}var Vs=Ni((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),qs=Ni((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ks=Li("toLowerCase");var Ws=Ni((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Gs=Ni((function(e,t,r){return e+(r?" ":"")+Ys(t)}));var Zs=Ni((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ys=Li("toUpperCase");function Xs(e,t,r){return e=ys(e),(t=r?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Js=Yn((function(e,t){try{return Pt(e,i,t)}catch(r){return Ya(r)?r:new se(r)}})),Qs=ro((function(e,t){return Ot(t,(function(t){t=Do(t),on(e,t,Oa(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Bi(),rc=Bi(!0);function nc(e){return e}function ic(e){return Ln("function"==typeof e?e:cn(e,1))}var oc=Yn((function(e,t){return function(r){return Cn(r,e,t)}})),ac=Yn((function(e,t){return function(r){return Cn(e,r,t)}}));function sc(e,t,r){var n=js(t),i=_n(t,n);null!=r||es(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=_n(t,js(t)));var o=!(es(r)&&"chain"in r)||!!r.chain,a=Xa(e);return Ot(i,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=Oi(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Nt([this.value()],arguments))})})),e}function cc(){}var lc=Hi(Lt),uc=Hi(jt),dc=Hi(Bt);function hc(e){return xo(e)?Wt(Do(e)):function(e){return function(t){return Sn(t,e)}}(e)}var fc=qi(),pc=qi(!0);function mc(){return[]}function gc(){return!1}var vc=$i((function(e,t){return e+t}),0),yc=Gi("ceil"),bc=$i((function(e,t){return e/t}),1),wc=Gi("floor");var xc=$i((function(e,t){return e*t}),1),_c=Gi("round"),Sc=$i((function(e,t){return e-t}),0);return Br.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Br.ary=Pa,Br.assign=bs,Br.assignIn=ws,Br.assignInWith=xs,Br.assignWith=_s,Br.at=Ss,Br.before=Ta,Br.bind=Oa,Br.bindAll=Qs,Br.bindKey=Ca,Br.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Br.chain=ha,Br.chunk=function(e,t,n){t=(n?wo(e,t,n):t===i)?1:Gt(ps(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,c=r(ft(o/t));ao?0:o+r),(n=n===i||n>o?o:ps(n))<0&&(n+=o),n=r>n?0:ms(n);r>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=li(t))&&sr(e)?xi(pr(e),0,r):e.split(t,r):[]},Br.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:Gt(ps(t),0),Yn((function(r){var n=r[t],i=xi(r,0,t);return n&&Nt(i,n),Pt(e,this,i)}))},Br.tail=function(e){var t=null==e?0:e.length;return t?ni(e,1,t):[]},Br.take=function(e,t,r){return e&&e.length?ni(e,0,(t=r||t===i?1:ps(t))<0?0:t):[]},Br.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ni(e,(t=n-(t=r||t===i?1:ps(t)))<0?0:t,n):[]},Br.takeRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!1,!0):[]},Br.takeWhile=function(e,t){return e&&e.length?fi(e,co(t,3)):[]},Br.tap=function(e,t){return t(e),e},Br.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Oe(o);return es(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ja(e,t,{leading:n,maxWait:t,trailing:i})},Br.thru=fa,Br.toArray=hs,Br.toPairs=zs,Br.toPairsIn=Bs,Br.toPath=function(e){return Va(e)?Lt(e,Do):cs(e)?[e]:Oi(No(ys(e)))},Br.toPlainObject=vs,Br.transform=function(e,t,r){var n=Va(e),i=n||Ga(e)||ls(e);if(t=co(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:es(e)&&Xa(o)?Ur(Ke(e)):{}}return(i?Ot:wn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Br.unary=function(e){return Pa(e,1)},Br.union=ta,Br.unionBy=ra,Br.unionWith=na,Br.uniq=function(e){return e&&e.length?ui(e):[]},Br.uniqBy=function(e,t){return e&&e.length?ui(e,co(t,2)):[]},Br.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Br.unset=function(e,t){return null==e||di(e,t)},Br.unzip=ia,Br.unzipWith=oa,Br.update=function(e,t,r){return null==e?e:hi(e,t,yi(r))},Br.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:hi(e,t,yi(r),n)},Br.values=Us,Br.valuesIn=function(e){return null==e?[]:er(e,Rs(e))},Br.without=aa,Br.words=Xs,Br.wrap=function(e,t){return Da(yi(t),e)},Br.xor=sa,Br.xorBy=ca,Br.xorWith=la,Br.zip=ua,Br.zipObject=function(e,t){return gi(e||[],t||[],en)},Br.zipObjectDeep=function(e,t){return gi(e||[],t||[],Qn)},Br.zipWith=da,Br.entries=zs,Br.entriesIn=Bs,Br.extend=ws,Br.extendWith=xs,sc(Br,Br),Br.add=vc,Br.attempt=Js,Br.camelCase=Fs,Br.capitalize=$s,Br.ceil=yc,Br.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=gs(r))===r?r:0),t!==i&&(t=(t=gs(t))===t?t:0),sn(gs(e),t,r)},Br.clone=function(e){return cn(e,4)},Br.cloneDeep=function(e){return cn(e,5)},Br.cloneDeepWith=function(e,t){return cn(e,5,t="function"==typeof t?t:i)},Br.cloneWith=function(e,t){return cn(e,4,t="function"==typeof t?t:i)},Br.conformsTo=function(e,t){return null==t||ln(e,t,js(t))},Br.deburr=Hs,Br.defaultTo=function(e,t){return null==e||e!==e?t:e},Br.divide=bc,Br.endsWith=function(e,t,r){e=ys(e),t=li(t);var n=e.length,o=r=r===i?n:sn(ps(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Br.eq=Ua,Br.escape=function(e){return(e=ys(e))&&X.test(e)?e.replace(Z,or):e},Br.escapeRegExp=function(e){return(e=ys(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Br.every=function(e,t,r){var n=Va(e)?jt:pn;return r&&wo(e,t,r)&&(t=i),n(e,co(t,3))},Br.find=ga,Br.findIndex=Ho,Br.findKey=function(e,t){return Ft(e,co(t,3),wn)},Br.findLast=va,Br.findLastIndex=Vo,Br.findLastKey=function(e,t){return Ft(e,co(t,3),xn)},Br.floor=wc,Br.forEach=ya,Br.forEachRight=ba,Br.forIn=function(e,t){return null==e?e:yn(e,co(t,3),Rs)},Br.forInRight=function(e,t){return null==e?e:bn(e,co(t,3),Rs)},Br.forOwn=function(e,t){return e&&wn(e,co(t,3))},Br.forOwnRight=function(e,t){return e&&xn(e,co(t,3))},Br.get=As,Br.gt=Fa,Br.gte=$a,Br.has=function(e,t){return null!=e&&go(e,t,Pn)},Br.hasIn=Ps,Br.head=Ko,Br.identity=nc,Br.includes=function(e,t,r,n){e=Ka(e)?e:Us(e),r=r&&!n?ps(r):0;var i=e.length;return r<0&&(r=Gt(i+r,0)),ss(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ht(e,t,r)>-1},Br.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ps(r);return i<0&&(i=Gt(n+i,0)),Ht(e,t,i)},Br.inRange=function(e,t,r){return t=fs(t),r===i?(r=t,t=0):r=fs(r),function(e,t,r){return e>=yr(t,r)&&e=-9007199254740991&&e<=p},Br.isSet=as,Br.isString=ss,Br.isSymbol=cs,Br.isTypedArray=ls,Br.isUndefined=function(e){return e===i},Br.isWeakMap=function(e){return ts(e)&&mo(e)==I},Br.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==En(e)},Br.join=function(e,t){return null==e?"":wt.call(e,t)},Br.kebabCase=Vs,Br.last=Yo,Br.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=ps(r))<0?Gt(n+o,0):yr(o,n-1)),t===t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):$t(e,qt,o,!0)},Br.lowerCase=qs,Br.lowerFirst=Ks,Br.lt=us,Br.lte=ds,Br.max=function(e){return e&&e.length?mn(e,nc,An):i},Br.maxBy=function(e,t){return e&&e.length?mn(e,co(t,2),An):i},Br.mean=function(e){return Kt(e,nc)},Br.meanBy=function(e,t){return Kt(e,co(t,2))},Br.min=function(e){return e&&e.length?mn(e,nc,zn):i},Br.minBy=function(e,t){return e&&e.length?mn(e,co(t,2),zn):i},Br.stubArray=mc,Br.stubFalse=gc,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=xc,Br.nth=function(e,t){return e&&e.length?Hn(e,ps(t)):i},Br.noConflict=function(){return mt._===this&&(mt._=Ue),this},Br.noop=cc,Br.now=Aa,Br.pad=function(e,t,r){e=ys(e);var n=(t=ps(t))?fr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return Vi(pt(i),r)+e+Vi(ft(i),r)},Br.padEnd=function(e,t,r){e=ys(e);var n=(t=ps(t))?fr(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=xr();return yr(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Gn(e,t)},Br.reduce=function(e,t,r){var n=Va(e)?Dt:Zt,i=arguments.length<3;return n(e,co(t,4),r,i,hn)},Br.reduceRight=function(e,t,r){var n=Va(e)?zt:Zt,i=arguments.length<3;return n(e,co(t,4),r,i,fn)},Br.repeat=function(e,t,r){return t=(r?wo(e,t,r):t===i)?1:ps(t),Zn(ys(e),t)},Br.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Br.result=function(e,t,r){var n=-1,o=(t=bi(t,e)).length;for(o||(o=1,e=i);++np)return[];var r=g,n=yr(e,g);t=co(t),e-=g;for(var i=Xt(n,t);++r=a)return e;var c=r-fr(n);if(c<1)return n;var l=s?xi(s,0,c).join(""):e.slice(0,c);if(o===i)return l+n;if(s&&(c+=l.length-c),os(o)){if(e.slice(c).search(o)){var u,d=l;for(o.global||(o=Pe(o.source,ys(me.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;l=l.slice(0,h===i?c:h)}}else if(e.indexOf(li(o),c)!=c){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+n},Br.unescape=function(e){return(e=ys(e))&&Y.test(e)?e.replace(G,gr):e},Br.uniqueId=function(e){var t=++Ne;return ys(e)+t},Br.upperCase=Zs,Br.upperFirst=Ys,Br.each=ya,Br.eachRight=ba,Br.first=Ko,sc(Br,function(){var e={};return wn(Br,(function(t,r){Le.call(Br.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),Br.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Br[e].placeholder=Br})),Ot(["drop","take"],(function(e,t){Hr.prototype[e]=function(r){r=r===i?1:Gt(ps(r),0);var n=this.__filtered__&&!t?new Hr(this):this.clone();return n.__filtered__?n.__takeCount__=yr(r,n.__takeCount__):n.__views__.push({size:yr(r,g),type:e+(n.__dir__<0?"Right":"")}),n},Hr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Hr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ot(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Hr.prototype[e]=function(){return this[r](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Hr.prototype[e]=function(){return this.__filtered__?new Hr(this):this[r](1)}})),Hr.prototype.compact=function(){return this.filter(nc)},Hr.prototype.find=function(e){return this.filter(e).head()},Hr.prototype.findLast=function(e){return this.reverse().find(e)},Hr.prototype.invokeMap=Yn((function(e,t){return"function"==typeof e?new Hr(this):this.map((function(r){return Cn(r,e,t)}))})),Hr.prototype.reject=function(e){return this.filter(La(co(e)))},Hr.prototype.slice=function(e,t){e=ps(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=ps(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hr.prototype.toArray=function(){return this.take(g)},wn(Hr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Br[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(Br.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,c=t instanceof Hr,l=s[0],u=c||Va(t),d=function(e){var t=o.apply(Br,Nt([e],s));return n&&h?t[0]:t};u&&r&&"function"==typeof l&&1!=l.length&&(c=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,m=c&&!f;if(!a&&u){t=m?t:new Hr(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[d],thisArg:i}),new $r(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?n?g.value()[0]:g.value():g)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Br.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Va(i)?i:[],e)}return this[r]((function(r){return t.apply(Va(r)?r:[],e)}))}})),wn(Hr.prototype,(function(e,t){var r=Br[t];if(r){var n=r.name+"";Le.call(Cr,n)||(Cr[n]=[]),Cr[n].push({name:t,func:r})}})),Cr[Ui(i,2).name]=[{name:"wrapper",func:i}],Hr.prototype.clone=function(){var e=new Hr(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},Hr.prototype.reverse=function(){if(this.__filtered__){var e=new Hr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Va(e),n=t<0,i=r?e.length:0,o=function(e,t,r){var n=-1,i=r.length;for(;++n=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Br.prototype.plant=function(e){for(var t,r=this;r instanceof Fr;){var n=Bo(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Br.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hr){var t=e;return this.__actions__.length&&(t=new Hr(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ea],thisArg:i}),new $r(t,this.__chain__)}return this.thru(ea)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Xe&&(Br.prototype[Xe]=function(){return this}),Br}();mt._=vr,(n=function(){return vr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},8634:function(e,t,r){var n,i;!function(o,a){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function i(e,t){var r=e[t];if("function"===typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(n){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?o:void 0!==console[n]?i(console,n):void 0!==console.log?i(console,"log"):e)}function s(t,r){for(var i=0;i=0&&r<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==n&&u(r),s.call(a,r,e),typeof console===t&&r{"use strict";const n=r(9616),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;const m=(e,t,r)=>{const n=e[h].get(t);if(n){const t=n.value;if(g(e,t)){if(y(e,n),!e[s])return}else r&&(e[f]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},v=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){const r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){const r=t.value;e[l]&&e[l](r.key,r.value),e[o]-=r.length,e[h].delete(r.key),e[d].removeNode(t)}};class b{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const w=(e,t,r,n)=>{let i=r.value;g(e,i)&&(y(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"===typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!==typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||p;if(this[a]="function"!==typeof t?p:t,this[s]=e.stale||!1,e.maxAge&&"number"!==typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!==typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,v(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!==typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,v(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!==typeof e&&(e=p),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),v(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){const n=r.prev;w(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){const n=r.next;w(this,e,r,t),r=n}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[l]&&this[d]&&this[d].length&&this[d].forEach((e=>this[l](e.key,e.value))),this[h]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[c])&&"number"!==typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](t,e);if(this[h].has(e)){if(s>this[i])return y(this,this[h].get(e)),!1;const a=this[h].get(e).value;return this[l]&&(this[u]||this[l](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),v(this),!0}const f=new b(e,t,s,n,r);return f.length>this[i]?(this[l]&&this[l](e,t),!1):(this[o]+=f.length,this[d].unshift(f),this[h].set(e,this[d].head),v(this),!0)}has(e){if(!this[h].has(e))return!1;const t=this[h].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[d].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[h].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[h].forEach(((e,t)=>m(this,t,!1)))}}},4768:(e,t,r)=>{"use strict";var n=r(637),i=r(8682),o=r(6293).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<>>32-t}function l(e,t,r,n,i,o,a){return c(e+(t&r|~t&n)+i+o|0,a)+t|0}function u(e,t,r,n,i,o,a){return c(e+(t&n|r&~n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return c(e+(t^r^n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return c(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=l(r,n,i,o,e[0],3614090360,7),o=l(o,r,n,i,e[1],3905402710,12),i=l(i,o,r,n,e[2],606105819,17),n=l(n,i,o,r,e[3],3250441966,22),r=l(r,n,i,o,e[4],4118548399,7),o=l(o,r,n,i,e[5],1200080426,12),i=l(i,o,r,n,e[6],2821735955,17),n=l(n,i,o,r,e[7],4249261313,22),r=l(r,n,i,o,e[8],1770035416,7),o=l(o,r,n,i,e[9],2336552879,12),i=l(i,o,r,n,e[10],4294925233,17),n=l(n,i,o,r,e[11],2304563134,22),r=l(r,n,i,o,e[12],1804603682,7),o=l(o,r,n,i,e[13],4254626195,12),i=l(i,o,r,n,e[14],2792965006,17),r=u(r,n=l(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=u(o,r,n,i,e[6],3225465664,9),i=u(i,o,r,n,e[11],643717713,14),n=u(n,i,o,r,e[0],3921069994,20),r=u(r,n,i,o,e[5],3593408605,5),o=u(o,r,n,i,e[10],38016083,9),i=u(i,o,r,n,e[15],3634488961,14),n=u(n,i,o,r,e[4],3889429448,20),r=u(r,n,i,o,e[9],568446438,5),o=u(o,r,n,i,e[14],3275163606,9),i=u(i,o,r,n,e[3],4107603335,14),n=u(n,i,o,r,e[8],1163531501,20),r=u(r,n,i,o,e[13],2850285829,5),o=u(o,r,n,i,e[2],4243563512,9),i=u(i,o,r,n,e[7],1735328473,14),r=d(r,n=u(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=d(o,r,n,i,e[8],2272392833,11),i=d(i,o,r,n,e[11],1839030562,16),n=d(n,i,o,r,e[14],4259657740,23),r=d(r,n,i,o,e[1],2763975236,4),o=d(o,r,n,i,e[4],1272893353,11),i=d(i,o,r,n,e[7],4139469664,16),n=d(n,i,o,r,e[10],3200236656,23),r=d(r,n,i,o,e[13],681279174,4),o=d(o,r,n,i,e[0],3936430074,11),i=d(i,o,r,n,e[3],3572445317,16),n=d(n,i,o,r,e[6],76029189,23),r=d(r,n,i,o,e[9],3654602809,4),o=d(o,r,n,i,e[12],3873151461,11),i=d(i,o,r,n,e[15],530742520,16),r=h(r,n=d(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},9685:(e,t,r)=>{!function(){var t=r(9799),n=r(7821).utf8,i=r(2311),o=r(7821).bin,a=function(e,r){e.constructor==String?e=r&&"binary"===r.encoding?o.stringToBytes(e):n.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,d=-1732584194,h=271733878,f=0;f>>24)|4278255360&(s[f]<<24|s[f]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var p=a._ff,m=a._gg,g=a._hh,v=a._ii;for(f=0;f>>0,u=u+b>>>0,d=d+w>>>0,h=h+x>>>0}return t.endian([l,u,d,h])};a._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<>>32-o)+t},a._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<>>32-o)+t},a._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<>>32-o)+t},a._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,r){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var n=t.wordsToBytes(a(e,r));return r&&r.asBytes?n:r&&r.asString?o.bytesToString(n):t.bytesToHex(n)}}()},9961:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var r=0;r{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},5659:(e,t)=>{"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},2329:(e,t,r)=>{"use strict";var n=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof r.g)return r.g;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},5199:function(e,t){var r,n,i;n=[],r=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,i={},o=0,a={parse:function(r,n){var s=(n=n||{}).dynamicTyping||!1;if(x(s)&&(n.dynamicTypingFunction=s,s={}),n.dynamicTyping=s,n.transform=!!x(n.transform)&&n.transform,n.worker&&a.WORKERS_SUPPORTED){var c=function(){if(!a.WORKERS_SUPPORTED)return!1;var r,n,s=(r=t.URL||t.webkitURL||null,n=e.toString(),a.BLOB_URL||(a.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))),c=new t.Worker(s);return c.onmessage=g,c.id=o++,i[c.id]=c}();return c.userStep=n.step,c.userChunk=n.chunk,c.userComplete=n.complete,c.userError=n.error,n.step=x(n.step),n.chunk=x(n.chunk),n.complete=x(n.complete),n.error=x(n.error),delete n.worker,void c.postMessage({input:r,config:n,workerId:c.id})}var f=null;return a.NODE_STREAM_INPUT,"string"==typeof r?(r=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(r),f=n.download?new l(n):new d(n)):!0===r.readable&&x(r.read)&&x(r.on)?f=new h(n):(t.File&&r instanceof File||r instanceof Object)&&(f=new u(n)),f.stream(r)},unparse:function(e,t){var r=!1,n=!0,i=",",o="\r\n",s='"',c=s+s,l=!1,u=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(c=t.escapeChar+s),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var h=new RegExp(p(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,l);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,l)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function f(e,t,r){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&0=this._config.preview;if(n)t.postMessage({results:s,workerId:a.WORKER_ID,finished:l});else if(x(this._config.chunk)&&!r){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!l||!x(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){x(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function l(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),c.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function u(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),c.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;c.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,r=this._config.chunkSize;return r?(e=t.substring(0,r),t=t.substring(r)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function h(e){c.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=w((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=w((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=w((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=w((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,r,n,i=Math.pow(2,53),o=-i,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,c=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,u=0,d=0,h=!1,f=!1,g=[],v={data:[],errors:[],meta:{}};if(x(e.step)){var y=e.step;e.step=function(t){if(v=t,S())_();else{if(_(),0===v.data.length)return;u+=t.data.length,e.preview&&u>e.preview?r.abort():(v.data=v.data[0],y(v,l))}}}function w(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function _(){return v&&n&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(v.data=v.data.filter((function(e){return!w(e)}))),S()&&function(){if(v)if(Array.isArray(v.data[0])){for(var t=0;S()&&t=g.length?"__parsed_extra":g[n]),e.transform&&(a=e.transform(a,o)),a=k(o,a),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(a)):i[o]=a}return e.header&&(n>g.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+n,d+r):n=n.length/2?"\r\n":"\r"}(i,c)),n=!1,e.delimiter)x(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter);else{var l=function(t,r,n,i,o){var s,c,l,u;o=o||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var d=0;d=s)return K(!0)}else for(B=u,u++;;){if(-1===(B=a.indexOf(t,B+1)))return f||_.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:u}),V();if(B===m-1)return V(a.substring(u,B).replace(z,t));if(t!==l||a[B+1]!==l){if(t===l||0===B||a[B-1]!==l){-1!==N&&N=s)return K(!0);break}_.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:u}),B++}}else B++}return V();function $(e){w.push(e),k=u}function H(e){var t=0;if(-1!==e){var r=a.substring(B+1,e);r&&""===r.trim()&&(t=r.length)}return t}function V(e){return f||(void 0===e&&(e=a.substring(u)),S.push(e),u=m,$(S),b&&W()),K()}function q(e){u=e,$(S),S=[],D=a.indexOf(n,u)}function K(e){return{data:w,errors:_,meta:{delimiter:r,linebreak:n,aborted:d,truncated:!!e,cursor:k+(h||0)}}}function W(){o(K()),w=[],_=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function g(e){var t=e.data,r=i[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){n=!0,v(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(x(r.userStep)){for(var a=0;a{t.pbkdf2=r(8998),t.pbkdf2Sync=r(8886)},8998:(e,t,r)=>{var n,i,o=r(6293).Buffer,a=r(9612),s=r(905),c=r(8886),l=r(5825),u=r.g.crypto&&r.g.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function f(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function p(e,t,r,n,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,t,i,m,g,v){"function"===typeof g&&(v=g,g=void 0);var y=d[(g=g||"sha1").toLowerCase()];if(y&&"function"===typeof r.g.Promise){if(a(i,m),e=l(e,s,"Password"),t=l(t,s,"Salt"),"function"!==typeof v)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){f()((function(){t(null,e)}))}),(function(e){f()((function(){t(e)}))}))}(function(e){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=p(n=n||o.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return h[e]=t,t}(y).then((function(r){return r?p(e,t,i,m,y):c(e,t,i,m,g)})),v)}else f()((function(){var r;try{r=c(e,t,i,m,g)}catch(n){return v(n)}v(null,r)}))}},905:(e,t,r)=>{var n,i=r(5469);if(r.g.process&&r.g.process.browser)n="utf-8";else if(r.g.process&&r.g.process.version){n=parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n},9612:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,r){if("number"!==typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!==typeof r)throw new TypeError("Key length not a number");if(r<0||r>t||r!==r)throw new TypeError("Bad key length")}},8886:(e,t,r)=>{var n=r(8533),i=r(4805),o=r(6478),a=r(6293).Buffer,s=r(9612),c=r(905),l=r(5825),u=a.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var s=function(e){function t(t){return o(e).update(t).digest()}function r(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?r:"md5"===e?n:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length{var n=r(6293).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"===typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},9095:function(e){e.exports=function(){var e=[],t=[],r={},n={},i={};function o(e){return"string"===typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,(function(e,r){return t[r]||""}))}function c(e,t){return e.replace(t[0],(function(r,n){var i=s(t[1],arguments);return a(""===r?e[n-1]:r,i)}))}function l(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var i=n.length;i--;){var o=n[i];if(o[0].test(t))return c(t,o)}return t}function u(e,t,r){return function(n){var i=n.toLowerCase();return t.hasOwnProperty(i)?a(n,i):e.hasOwnProperty(i)?a(n,e[i]):l(i,n,r)}}function d(e,t,r,n){return function(n){var i=n.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&l(i,i,r)===i}}function h(e,t,r){return(r?t+" ":"")+(1===t?h.singular(e):h.plural(e))}return h.plural=u(i,n,e),h.isPlural=d(i,n,e),h.singular=u(n,i,t),h.isSingular=d(n,i,t),h.addPluralRule=function(t,r){e.push([o(t),r])},h.addSingularRule=function(e,r){t.push([o(e),r])},h.addUncountableRule=function(e){"string"!==typeof e?(h.addPluralRule(e,"$0"),h.addSingularRule(e,"$0")):r[e.toLowerCase()]=!0},h.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach((function(e){return h.addIrregularRule(e[0],e[1])})),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach((function(e){return h.addPluralRule(e[0],e[1])})),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach((function(e){return h.addSingularRule(e[0],e[1])})),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[e\xe9]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(h.addUncountableRule),h}()},5469:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u1)for(var r=1;r{"use strict";var n=r(7581),i=r(3392),o=Object.prototype.hasOwnProperty;function a(e){return e&&"EPROMISERETRY"===e.code&&o.call(e,"retried")}e.exports=function(e,t){var r,o;return"object"===typeof e&&"function"===typeof t&&(r=t,t=e,e=r),o=i.operation(t),new Promise((function(t,r){o.attempt((function(i){Promise.resolve().then((function(){return e((function(e){throw a(e)&&(e=e.retried),n(new Error("Retrying"),"EPROMISERETRY",{retried:e})}),i)})).then(t,(function(e){a(e)&&(e=e.retried,o.retry(e||new Error))||r(e)}))}))}))}},2233:(e,t,r)=>{"use strict";var n=r(1681);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},8795:(e,t,r)=>{e.exports=r(2233)()},1681:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3330:(e,t)=>{var r,n,i,o=function(){var e=function(e,t){var r=e,n=o[t],i=null,a=0,s=null,c=[],l={},u=function(e,t){i=function(e){for(var t=new Array(e),r=0;r=7&&m(e),null==s&&(s=A(r,n,c)),k(s,t)},d=function(e,t){for(var r=-1;r<=7;r+=1)if(!(e+r<=-1||a<=e+r))for(var n=-1;n<=7;n+=1)t+n<=-1||a<=t+n||(i[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},h=function(){for(var e=8;e>n&1);i[Math.floor(n/3)][n%3+a-8-3]=o}for(n=0;n<18;n+=1){o=!e&&1==(t>>n&1);i[n%3+a-8-3][Math.floor(n/3)]=o}},S=function(e,t){for(var r=n<<3|t,o=p.getBCHTypeInfo(r),s=0;s<15;s+=1){var c=!e&&1==(o>>s&1);s<6?i[s][8]=c:s<8?i[s+1][8]=c:i[a-15+s][8]=c}for(s=0;s<15;s+=1){c=!e&&1==(o>>s&1);s<8?i[8][a-s-1]=c:s<9?i[8][15-s-1+1]=c:i[8][15-s-1]=c}i[a-8][8]=!e},k=function(e,t){for(var r=-1,n=a-1,o=7,s=0,c=p.getMaskFunction(t),l=a-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var u=0;u<2;u+=1)if(null==i[n][l-u]){var d=!1;s>>o&1)),c(n,l-u)&&(d=!d),i[n][l-u]=d,-1==(o-=1)&&(s+=1,o=7)}if((n+=r)<0||a<=n){n-=r,r=-r;break}}},A=function(e,t,r){for(var n=v.getRSBlocks(e,t),i=y(),o=0;o8*s)throw"code length overflow. ("+i.getLengthInBits()+">"+8*s+")";for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*s)&&(i.put(236,8),!(i.getLengthInBits()>=8*s));)i.put(17,8);return function(e,t){for(var r=0,n=0,i=0,o=new Array(t.length),a=new Array(t.length),s=0;s=0?h.getAt(f):0}}var m=0;for(u=0;un)&&(e=n,t=r)}return t}())},l.createTableTag=function(e,t){e=e||2;var r="";r+='";for(var i=0;i';r+=""}return r+="",r+="
"},l.createSvgTag=function(e,t,r,n){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,r=i.alt,n=i.title),e=e||2,t="undefined"==typeof t?4*e:t,(r="string"===typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(n="string"===typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var o,a,s,c,u=l.getModuleCount()*e+2*t,d="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+=''+P(n.text)+"":"",d+=r.text?''+P(r.text)+"":"",d+='',d+='":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=n}}return t};return l.createASCII=function(e,t){if((e=e||1)<2)return function(e){e="undefined"==typeof e?2:e;var t,r,n,i,o,a=1*l.getModuleCount()+2*e,s=e,c=a-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},d={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},h="";for(t=0;t=c?d[o]:u[o];h+="\n"}return a%2&&e>0?h.substring(0,h.length-a-1)+Array(a+1).join("\u2580"):h.substring(0,h.length-1)}(t);e-=1,t="undefined"==typeof t?2*e:t;var r,n,i,o,a=l.getModuleCount()*e+2*t,s=t,c=a-t,u=Array(e+1).join("\u2588\u2588"),d=Array(e+1).join(" "),h="",f="";for(r=0;r>>8),t.push(255&a)):t.push(n)}}return t}};var t=1,r=2,n=4,i=8,o={L:1,M:0,Q:3,H:2},a=0,s=1,c=2,l=3,u=4,d=5,h=6,f=7,p=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],o=1335,p=7973,v={},y=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return v.getBCHTypeInfo=function(e){for(var t=e<<10;y(t)-y(o)>=0;)t^=o<=0;)t^=p<5&&(r+=3+o-5)}for(n=0;n=256;)t-=255;return e[t]}};return n}();function g(e,t){if("undefined"==typeof e.length)throw e.length+"/"+t;var r=function(){for(var r=0;r>>7-t%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return t},putBit:function(r){var n=Math.floor(t/8);e.length<=n&&e.push(0),r&&(e[n]|=128>>>t%8),t+=1}};return r},b=function(e){var r=t,n=e,i={getMode:function(){return r},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2>>8&255)+(255&n),e.put(n,13),r+=2}if(r>>8)},writeBytes:function(e,r,n){r=r||0,n=n||e.length;for(var i=0;i0&&(t+=","),t+=e[r];return t+="]"}};return t},k=function(e){var t=e,r=0,n=0,i=0,o={read:function(){for(;i<8;){if(r>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(r);if(r+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(n=n<<6|a(e.charCodeAt(0)),i+=6)}var o=n>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},E=function(e,t,r){for(var n=function(e,t){var r=e,n=t,i=new Array(e*t),o={setPixel:function(e,t,n){i[t*r+e]=n},write:function(e){e.writeString("GIF87a"),e.writeShort(r),e.writeShort(n),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(r),e.writeShort(n),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>i!=0)throw"length over";for(;r+i>=8;)t.writeByte(255&(e<>>=8-r,n=0,r=0;n|=e<0&&t.writeByte(n)}}}(c);l.write(t,n);var u=0,d=String.fromCharCode(i[u]);for(u+=1;u=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),r%3!=0)for(var i=3-r%3,a=0;a>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}(e)},n=[],void 0===(i="function"===typeof(r=function(){return o})?r.apply(t,n):r)||(e.exports=i)},557:(e,t,r)=>{"use strict";var n=r(9652),i=r(8586);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ve=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Se=null,ke=null;function Ee(e){if(e=bi(e)){if("function"!==typeof _e)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),_e(e.stateNode,e.type,t))}}function Ae(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Pe(){if(Se){var e=Se,t=ke;if(ke=Se=null,Ee(e),t)for(e=0;e>>=0,0===e?32:31-(st(e)/ct|0)|0},st=Math.log,ct=Math.LN2;var lt=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~i;0!==s?n=dt(s):0!==(o&=a)&&(n=dt(o))}else 0!==(a=r&~i)?n=dt(a):0!==o&&(n=dt(o));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&i)&&((i=n&-n)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function vt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),i=1<=Mr),Dr=String.fromCharCode(32),zr=!1;function Br(e,t){switch(e){case"keyup":return-1!==Rr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ur(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Fr=!1;var $r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$r[e.type]:"textarea"===t}function Vr(e,t,r,n){Ae(n),0<(t=Kn(t,"onChange")).length&&(r=new lr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var qr=null,Kr=null;function Wr(e){zn(e,0)}function Gr(e){if(W(wi(e)))return e}function Zr(e,t){if("change"===e)return t}var Yr=!1;if(u){var Xr;if(u){var Jr="oninput"in document;if(!Jr){var Qr=document.createElement("div");Qr.setAttribute("oninput","return;"),Jr="function"===typeof Qr.oninput}Xr=Jr}else Xr=!1;Yr=Xr&&(!document.documentMode||9=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ln(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=G((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pn(e){var t=hn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&fn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=void 0===n.end?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=un(r,o);var a=un(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof r.focus&&r.focus(),r=0;r=document.documentMode,gn=null,vn=null,yn=null,bn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==gn||gn!==G(n)||("selectionStart"in(n=gn)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&cn(yn,n)||(yn=n,0<(n=Kn(vn,"onSelect")).length&&(t=new lr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gn)))}function xn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var _n={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionend:xn("Transition","TransitionEnd")},Sn={},kn={};function En(e){if(Sn[e])return Sn[e];if(!_n[e])return e;var t,r=_n[e];for(t in r)if(r.hasOwnProperty(t)&&t in kn)return Sn[e]=r[t];return e}u&&(kn=document.createElement("div").style,"AnimationEvent"in window||(delete _n.animationend.animation,delete _n.animationiteration.animation,delete _n.animationstart.animation),"TransitionEvent"in window||delete _n.transitionend.transition);var An=En("animationend"),Pn=En("animationiteration"),Tn=En("animationstart"),On=En("transitionend"),Cn=new Map,jn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rn(e,t){Cn.set(e,t),c(t,[e])}for(var In=0;InSi||(e.current=_i[Si],_i[Si]=null,Si--)}function Ai(e,t){Si++,_i[Si]=e.current,e.current=t}var Pi={},Ti=ki(Pi),Oi=ki(!1),Ci=Pi;function ji(e,t){var r=e.type.contextTypes;if(!r)return Pi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){Ei(Oi),Ei(Ti)}function Mi(e,t,r){if(Ti.current!==Pi)throw Error(o(168));Ai(Ti,t),Ai(Oi,r)}function Li(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return D({},r,n)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,Ci=Ti.current,Ai(Ti,e),Ai(Oi,Oi.current),!0}function Di(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=Li(e,t,Ci),n.__reactInternalMemoizedMergedChildContext=e,Ei(Oi),Ei(Ti),Ai(Ti,e)):Ei(Oi),Ai(Oi,r)}var zi=null,Bi=!1,Ui=!1;function Fi(e){null===zi?zi=[e]:zi.push(e)}function $i(){if(!Ui&&null!==zi){Ui=!0;var e=0,t=bt;try{var r=zi;for(bt=1;e>=a,i-=a,Yi=1<<32-at(t)+i|r<m?(g=d,d=null):g=d.sibling;var v=f(i,d,s[m],c);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?l=v:u.sibling=v,u=v,d=g}if(m===s.length)return r(i,d),io&&Ji(i,m),l;if(null===d){for(;mg?(v=m,m=null):v=m.sibling;var b=f(i,m,y.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),io&&Ji(i,g),u;if(null===m){for(;!y.done;g++,y=c.next())null!==(y=h(i,y.value,l))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,g),u}for(m=n(i,m);!y.done;g++,y=c.next())null!==(y=p(m,i,g,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,g),u}return function e(n,o,a,c){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var l=a.key,u=o;null!==u;){if(u.key===l){if((l=a.type)===S){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===R&&Zo(l)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=Wo(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===S?((o=Nl(a.props.children,n.mode,c,a.key)).return=n,n=o):((c=Ll(a.type,a.key,a.props,null,n.mode,c)).ref=Wo(n,o,a),c.return=n,n=c)}return s(n);case _:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Bl(a,n.mode,c)).return=n,n=o}return s(n);case R:return e(n,o,(u=a._init)(a._payload),c)}if(te(a))return m(n,o,a,c);if(L(a))return g(n,o,a,c);Go(n,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=zl(a,n.mode,c)).return=n,n=o),s(n)):r(n,o)}}var Xo=Yo(!0),Jo=Yo(!1),Qo={},ea=ki(Qo),ta=ki(Qo),ra=ki(Qo);function na(e){if(e===Qo)throw Error(o(174));return e}function ia(e,t){switch(Ai(ra,t),Ai(ta,e),Ai(ea,Qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(ea),Ai(ea,t)}function oa(){Ei(ea),Ei(ta),Ei(ra)}function aa(e){na(ra.current);var t=na(ea.current),r=ce(t,e.type);t!==r&&(Ai(ta,e),Ai(ea,r))}function sa(e){ta.current===e&&(Ei(ea),Ei(ta))}var ca=ki(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;er?r:4,e(!0);var n=fa.transition;fa.transition={};try{e(!1),t()}finally{bt=r,fa.transition=n}}function es(){return Pa().memoizedState}function ts(e,t,r){var n=rl(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e))is(t,r);else if(null!==(r=Oo(e,t,r,n))){nl(r,e,n,tl()),os(r,t,n)}}function rs(e,t,r){var n=rl(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,a)){var c=t.interleaved;return null===c?(i.next=i,To(t)):(i.next=c.next,c.next=i),void(t.interleaved=i)}}catch(l){}null!==(r=Oo(e,t,i,n))&&(nl(r,e,n,i=tl()),os(r,t,n))}}function ns(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){ba=ya=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function os(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var as={readContext:Ao,useCallback:_a,useContext:_a,useEffect:_a,useImperativeHandle:_a,useInsertionEffect:_a,useLayoutEffect:_a,useMemo:_a,useReducer:_a,useRef:_a,useState:_a,useDebugValue:_a,useDeferredValue:_a,useTransition:_a,useMutableSource:_a,useSyncExternalStore:_a,useId:_a,unstable_isNewReconciler:!1},ss={readContext:Ao,useCallback:function(e,t){return Aa().memoizedState=[e,void 0===t?null:t],e},useContext:Ao,useEffect:Ha,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Fa(4194308,4,Wa.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fa(4,2,e,t)},useMemo:function(e,t){var r=Aa();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Aa();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,ma,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Aa().memoizedState=e},useState:za,useDebugValue:Za,useDeferredValue:function(e){return Aa().memoizedState=e},useTransition:function(){var e=za(!1),t=e[0];return e=Qa.bind(null,e[1]),Aa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ma,i=Aa();if(io){if(void 0===r)throw Error(o(407));r=r()}else{if(r=t(),null===Cc)throw Error(o(349));0!==(30&pa)||Ia(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ha(La.bind(null,n,a,e),[e]),n.flags|=2048,Ba(9,Ma.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Aa(),t=Cc.identifierPrefix;if(io){var r=Xi;t=":"+t+"R"+(r=(Yi&~(1<<32-at(Yi)-1)).toString(32)+r),0<(r=wa++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cs={readContext:Ao,useCallback:Ya,useContext:Ao,useEffect:Va,useImperativeHandle:Ga,useInsertionEffect:qa,useLayoutEffect:Ka,useMemo:Xa,useReducer:Oa,useRef:Ua,useState:function(){return Oa(Ta)},useDebugValue:Za,useDeferredValue:function(e){return Ja(Pa(),ga.memoizedState,e)},useTransition:function(){return[Oa(Ta)[0],Pa().memoizedState]},useMutableSource:ja,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1},ls={readContext:Ao,useCallback:Ya,useContext:Ao,useEffect:Va,useImperativeHandle:Ga,useInsertionEffect:qa,useLayoutEffect:Ka,useMemo:Xa,useReducer:Ca,useRef:Ua,useState:function(){return Ca(Ta)},useDebugValue:Za,useDeferredValue:function(e){var t=Pa();return null===ga?t.memoizedState=e:Ja(t,ga.memoizedState,e)},useTransition:function(){return[Ca(Ta)[0],Pa().memoizedState]},useMutableSource:ja,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var r="",n=t;do{r+=F(n),n=n.return}while(n);var i=r}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=Mo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){qc||(qc=!0,Kc=n),hs(0,t)},r}function ms(e,t,r){(r=Mo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){hs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(r.callback=function(){hs(0,t),"function"!==typeof n&&(null===Wc?Wc=new Set([this]):Wc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function gs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new fs;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Al.bind(null,e,t,r),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,r,n,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Mo(-1,1)).tag=2,Lo(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=w.ReactCurrentOwner,ws=!1;function xs(e,t,r,n){t.child=null===e?Jo(t,null,r,n):Xo(t,e.child,r,n)}function _s(e,t,r,n,i){r=r.render;var o=t.ref;return Eo(t,i),n=ka(e,t,r,n,o,i),r=Ea(),null===e||ws?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Ss(e,t,r,n,i){if(null===e){var o=r.type;return"function"!==typeof o||Il(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Ll(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ks(e,t,o,n,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((r=null!==(r=r.compare)?r:cn)(a,n)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,(e=Ml(o,n)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,r,n,i){if(null!==e){var o=e.memoizedProps;if(cn(o,n)&&e.ref===t.ref){if(ws=!1,t.pendingProps=n=o,0===(e.lanes&i))return t.lanes=e.lanes,qs(e,t,i);0!==(131072&e.flags)&&(ws=!0)}}return Ps(e,t,r,n,i)}function Es(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ai(Mc,Ic),Ic|=r;else{if(0===(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ai(Mc,Ic),Ic|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:r,Ai(Mc,Ic),Ic|=n}else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ai(Mc,Ic),Ic|=n;return xs(e,t,i,r),t.child}function As(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,r,n,i){var o=Ri(r)?Ci:Ti.current;return o=ji(t,o),Eo(t,i),r=ka(e,t,r,n,o,i),n=Ea(),null===e||ws?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Ts(e,t,r,n,i){if(Ri(r)){var o=!0;Ni(t)}else o=!1;if(Eo(t,i),null===t.stateNode)Vs(e,t),Vo(t,r,n),Ko(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=r.contextType;"object"===typeof l&&null!==l?l=Ao(l):l=ji(t,l=Ri(r)?Ci:Ti.current);var u=r.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==n||c!==l)&&qo(t,a,n,l),jo=!1;var h=t.memoizedState;a.state=h,zo(t,n,a,i),c=t.memoizedState,s!==n||h!==c||Oi.current||jo?("function"===typeof u&&(Fo(t,r,u,n),c=t.memoizedState),(s=jo||Ho(t,r,s,n,h,c,l))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Io(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:vo(t.type,s),a.props=l,d=t.pendingProps,h=a.context,"object"===typeof(c=r.contextType)&&null!==c?c=Ao(c):c=ji(t,c=Ri(r)?Ci:Ti.current);var f=r.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||h!==c)&&qo(t,a,n,c),jo=!1,h=t.memoizedState,a.state=h,zo(t,n,a,i);var p=t.memoizedState;s!==d||h!==p||Oi.current||jo?("function"===typeof f&&(Fo(t,r,f,n),p=t.memoizedState),(l=jo||Ho(t,r,l,n,h,p,c)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,c)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=c,n=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Os(e,t,r,n,o,i)}function Os(e,t,r,n,i,o){As(e,t);var a=0!==(128&t.flags);if(!n&&!a)return i&&Di(t,r,!1),qs(e,t,o);n=t.stateNode,bs.current=t;var s=a&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Xo(t,e.child,null,o),t.child=Xo(t,null,s,o)):xs(e,t,s,o),t.memoizedState=n.state,i&&Di(t,r,!0),t.child}function Cs(e){var t=e.stateNode;t.pendingContext?Mi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mi(0,t.context,!1),ia(e,t.containerInfo)}function js(e,t,r,n,i){return po(),mo(i),t.flags|=256,xs(e,t,r,n),t.child}var Rs,Is,Ms,Ls,Ns={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function zs(e,t,r){var n,i=t.pendingProps,a=ca.current,s=!1,c=0!==(128&t.flags);if((n=c)||(n=(null===e||null!==e.memoizedState)&&0!==(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ai(ca,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(c=i.children,e=i.fallback,s?(i=t.mode,s=t.child,c={mode:"hidden",children:c},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=c):s=Dl(c,i,0,null),e=Nl(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(r),t.memoizedState=Ns,e):Bs(t,c));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Us(e,t,s,n=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Dl({mode:"visible",children:n.children},i,0,null),(a=Nl(a,i,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!==(1&t.mode)&&Xo(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ns,a);if(0===(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var c=n.dgst;return n=c,Us(e,t,s,n=ds(a=Error(o(419)),n,void 0))}if(c=0!==(s&e.childLanes),ws||c){if(null!==(n=Cc)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(n.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Co(e,i),nl(n,e,i,-1))}return gl(),Us(e,t,s,n=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tl.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,no=li(i.nextSibling),ro=t,io=!0,oo=null,null!==e&&(Wi[Gi++]=Yi,Wi[Gi++]=Xi,Wi[Gi++]=Zi,Yi=e.id,Xi=e.overflow,Zi=t),t=Bs(t,n.children),t.flags|=4096,t)}(e,t,c,i,n,a,r);if(s){s=i.fallback,c=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0===(1&c)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Ml(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==n?s=Ml(n,s):(s=Nl(s,c,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,c=null===(c=e.child.memoizedState)?Ds(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=Ns,i}return e=(s=e.child).sibling,i=Ml(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Bs(e,t){return(t=Dl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,r,n){return null!==n&&mo(n),Xo(t,e.child,null,r),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ko(e.return,t,r)}function $s(e,t,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function Hs(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(xs(e,t,n.children,r),0!==(2&(n=ca.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,r,t);else if(19===e.tag)Fs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ai(ca,n),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===la(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),$s(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===la(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}$s(t,!0,r,null,o);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Dc|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Ml(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ml(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ks(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Gs(e,t,r){var n=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ri(t.type)&&Ii(),Ws(t),null;case 3:return n=t.stateNode,oa(),Ei(Oi),Ei(Ti),da(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(sl(oo),oo=null))),Is(e,t),Ws(t),null;case 5:sa(t);var i=na(ra.current);if(r=t.type,null!==e&&null!=t.stateNode)Ms(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=na(ea.current),ho(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[hi]=t,n[fi]=a,e=0!==(1&t.mode),r){case"dialog":Bn("cancel",n),Bn("close",n);break;case"iframe":case"object":case"embed":Bn("load",n);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[hi]=t,e[fi]=n,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(c=be(r,n),r){case"dialog":Bn("cancel",e),Bn("close",e),i=n;break;case"iframe":case"object":case"embed":Bn("load",e),i=n;break;case"video":case"audio":for(i=0;iHc&&(t.flags|=128,n=!0,Ks(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=la(c))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ks(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!io)return Ws(t),null}else 2*Xe()-a.renderingStartTime>Hc&&1073741824!==r&&(t.flags|=128,n=!0,Ks(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=a.last)?r.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=ca.current,Ai(ca,n?1&r|2:1&r),t):(Ws(t),null);case 22:case 23:return hl(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Ic)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Zs(e,t){switch(to(t),t.tag){case 1:return Ri(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Ei(Oi),Ei(Ti),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Ei(ca),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(ca),null;case 4:return oa(),null;case 10:return So(t.type._context),null;case 22:case 23:return hl(),null;default:return null}}Rs=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Is=function(){},Ms=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,na(ea.current);var o,a=null;switch(r){case"input":i=Z(e,i),n=Z(e,n),a=[];break;case"select":i=D({},i,{value:void 0}),n=D({},n,{value:void 0}),a=[];break;case"textarea":i=ne(e,i),n=ne(e,n),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof n.onClick&&(e.onclick=Qn)}for(u in ye(r,n),r=null,i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var c=i[u];for(o in c)c.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(c=null!=i?i[u]:void 0,n.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(o in c)!c.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&c[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!==typeof l&&"number"!==typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Bn("scroll",e),a||c===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ls=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ys=!1,Xs=!1,Js="function"===typeof WeakSet?WeakSet:Set,Qs=null;function ec(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){El(e,t,n)}else r.current=null}function tc(e,t,r){try{r()}catch(n){El(e,t,n)}}var rc=!1;function nc(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tc(t,r,o)}i=i.next}while(i!==n)}}function ic(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function oc(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"===typeof t?t(e):t.current=e}}function ac(e){var t=e.alternate;null!==t&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sc(e){return 5===e.tag||3===e.tag||4===e.tag}function cc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=Qn));else if(4!==n&&null!==(e=e.child))for(lc(e,t,r),e=e.sibling;null!==e;)lc(e,t,r),e=e.sibling}function uc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(uc(e,t,r),e=e.sibling;null!==e;)uc(e,t,r),e=e.sibling}var dc=null,hc=!1;function fc(e,t,r){for(r=r.child;null!==r;)pc(e,t,r),r=r.sibling}function pc(e,t,r){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,r)}catch(s){}switch(r.tag){case 5:Xs||ec(r,t);case 6:var n=dc,i=hc;dc=null,fc(e,t,r),hc=i,null!==(dc=n)&&(hc?(e=dc,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):dc.removeChild(r.stateNode));break;case 18:null!==dc&&(hc?(e=dc,r=r.stateNode,8===e.nodeType?ci(e.parentNode,r):1===e.nodeType&&ci(e,r),$t(e)):ci(dc,r.stateNode));break;case 4:n=dc,i=hc,dc=r.stateNode.containerInfo,hc=!0,fc(e,t,r),dc=n,hc=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&tc(r,t,a),i=i.next}while(i!==n)}fc(e,t,r);break;case 1:if(!Xs&&(ec(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){El(r,t,s)}fc(e,t,r);break;case 21:fc(e,t,r);break;case 22:1&r.mode?(Xs=(n=Xs)||null!==r.memoizedState,fc(e,t,r),Xs=n):fc(e,t,r);break;default:fc(e,t,r)}}function mc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Js),t.forEach((function(t){var n=Ol.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function gc(e,t){var r=t.deletions;if(null!==r)for(var n=0;ni&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Xe()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ec(n/1960))-n)){e.timeoutHandle=ni(_l.bind(null,e,Fc,Vc),n);break}_l(e,Fc,Vc);break;default:throw Error(o(329))}}}return il(e,Xe()),e.callbackNode===r?ol.bind(null,e):null}function al(e,t){var r=Uc;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=vl(e,t))&&(t=Fc,Fc=r,null!==t&&sl(t)),e}function sl(e){null===Fc?Fc=e:Fc.push.apply(Fc,e)}function cl(e,t){for(t&=~Bc,t&=~zc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Zc)var n=!1;else{if(e=Zc,Zc=null,Yc=0,0!==(6&Oc))throw Error(o(331));var i=Oc;for(Oc|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!==(16&Qs.flags)){var c=a.deletions;if(null!==c){for(var l=0;lXe()-$c?fl(e,0):Bc|=r),il(e,t)}function Pl(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var r=tl();null!==(e=Co(e,t))&&(vt(e,t,r),il(e,r))}function Tl(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Pl(e,r)}function Ol(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(o(314))}null!==n&&n.delete(t),Pl(e,r)}function Cl(e,t){return We(e,t)}function jl(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rl(e,t,r,n){return new jl(e,t,r,n)}function Il(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ml(e,t){var r=e.alternate;return null===r?((r=Rl(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ll(e,t,r,n,i,a){var s=2;if(n=e,"function"===typeof e)Il(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Nl(r.children,i,a,t);case k:s=8,i|=8;break;case E:return(e=Rl(12,r,t,2|i)).elementType=E,e.lanes=a,e;case O:return(e=Rl(13,r,t,i)).elementType=O,e.lanes=a,e;case C:return(e=Rl(19,r,t,i)).elementType=C,e.lanes=a,e;case I:return Dl(r,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case P:s=9;break e;case T:s=11;break e;case j:s=14;break e;case R:s=16,n=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Rl(s,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function Nl(e,t,r,n){return(e=Rl(7,e,n,t)).lanes=r,e}function Dl(e,t,r,n){return(e=Rl(22,e,n,t)).elementType=I,e.lanes=r,e.stateNode={isHidden:!1},e}function zl(e,t,r){return(e=Rl(6,e,null,t)).lanes=r,e}function Bl(e,t,r){return(t=Rl(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ul(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Fl(e,t,r,n,i,o,a,s,c){return e=new Ul(e,t,r,s,c),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Rl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function $l(e){if(!e)return Pi;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var r=e.type;if(Ri(r))return Li(e,r,t)}return t}function Hl(e,t,r,n,i,o,a,s,c){return(e=Fl(r,n,!0,e,0,o,0,s,c)).context=$l(null),r=e.current,(o=Mo(n=tl(),i=rl(r))).callback=void 0!==t&&null!==t?t:null,Lo(r,o,i),e.current.lanes=i,vt(e,i,n),il(e,n),e}function Vl(e,t,r,n){var i=t.current,o=tl(),a=rl(i);return r=$l(r),null===t.context?t.context=r:t.pendingContext=r,(t=Mo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Lo(i,t,a))&&(nl(e,i,a,o),No(e,i,a)),a}function ql(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Kl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r{"use strict";var n=r(2717);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},2717:(e,t,r)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(557)},1131:function(e,t,r){var n,i,o;i=[t,r(5450)],n=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(t);function n(e){return e&&e.__esModule?e:{default:e}}e.default=r.default},void 0===(o="function"===typeof n?n.apply(t,i):n)||(e.exports=o)},5450:function(e,t,r){var n,i,o;i=[t,r(9652),r(8795)],n=function(e,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=f;var n=o(t),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return h?e:e.capture}function m(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var g=function(e){function t(){var e;c(this,t);for(var r=arguments.length,n=Array(r),i=0;it&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.tagName,e.className),r=e.style,i=e.children,o=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,s(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return n.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:r},o),i)}}]),t}(t.Component);g.displayName="ReactSwipe",g.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},g.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=g},void 0===(o="function"===typeof n?n.apply(t,i):n)||(e.exports=o)},8366:e=>{var t="undefined"!==typeof Element,r="function"===typeof Map,n="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,c,l,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(c=s;0!==c--;)if(!o(e[c],a[c]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(c=s;0!==c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=s;0!==c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(t&&e instanceof Element)return!1;for(c=s;0!==c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!e.$$typeof)&&!o(e[l[c]],a[l[c]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}},9378:(e,t,r)=>{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=s(n),o=s(r(2)),a=s(r(3));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.fg,r=e.bg,s=e.count,c=e.palette,l=e.string,u=e.size,d=e.getColor,h=e.padding,f=e.className,p=(0,n.useRef)(null);(0,n.useEffect)((function(){m(e)}));var m=function(){var e=(0,o.default)(l),n=Math.floor(u/s),i=e.slice(0,6);if(c&&c.length){var f=Math.floor((0,a.default)(parseInt(e.slice(-3),16),0,4095,0,c.length));t=c[f]}d&&d(t||i);var m=h;p.current.width=n*s+m,p.current.height=n*s+m;var g=e.split("").map((function(e){return(e=parseInt(e,16))<8?0:1})),v=[];v[0]=v[4]=g.slice(0,5),v[1]=v[3]=g.slice(5,10),v[2]=g.slice(10,15);var y=p.current.getContext("2d");y.imageSmoothingEnabled=!1,y.clearRect(0,0,p.current.width,p.current.height),v.forEach((function(e,o){e.forEach((function(e,a){e?(y.fillStyle=t||"#"+i,y.fillRect(n*o+m,n*a+m,n-m,n-m)):(y.fillStyle=r,y.fillRect(n*o+m,n*a+m,n-m,n-m))}))}))};return i.default.createElement("canvas",{ref:p,className:f,style:{width:u,height:u}})};c.defaultProps={className:"identicon",bg:"transparent",count:5,palette:null,fg:null,padding:0,size:400,getColor:null,string:""},t.default=c},function(e,t){e.exports=r(9652)},function(e,t,r){"use strict";var n;"function"==typeof Symbol&&Symbol.iterator,function(i){function o(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,n,i,a){return o(function(e,t){return e<>>32-t}(o(o(t,e),o(n,a)),i),r)}function s(e,t,r,n,i,o,s){return a(t&r|~t&n,e,t,i,o,s)}function c(e,t,r,n,i,o,s){return a(t&n|r&~n,e,t,i,o,s)}function l(e,t,r,n,i,o,s){return a(t^r^n,e,t,i,o,s)}function u(e,t,r,n,i,o,s){return a(r^(t|~n),e,t,i,o,s)}function d(e,t){e[t>>5]|=128<>>9<<4)]=t;var r,n,i,a,d,h=1732584193,f=-271733879,p=-1732584194,m=271733878;for(r=0;r>5]>>>t%32&255);return r}function f(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+"0123456789abcdef".charAt(15&t);return n}function m(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return h(d(f(e),8*e.length))}(m(e))}function v(e,t){return function(e,t){var r,n,i=f(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=d(i,8*e.length)),r=0;r<16;r+=1)o[r]=909522486^i[r],a[r]=1549556828^i[r];return n=d(o.concat(f(t)),512+8*t.length),h(d(a.concat(n),640))}(m(e),m(t))}function y(e,t,r){return t?r?v(t,e):function(e,t){return p(v(e,t))}(t,e):r?g(e):function(e){return p(g(e))}(e)}void 0===(n=function(){return y}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n,i){return(e-t)*(i-n)/(r-t)+n}}])},3906:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case a:case h:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case d:case m:case p:case c:return e;default:return t}}case i:return t}}}r=Symbol.for("react.module.reference")},931:(e,t,r)=>{"use strict";r(3906)},3937:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),h=(e,t,r)=>(((e,t,r)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),f={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(f,{default:()=>y}),e.exports=(n=f,u(o({},"__esModule",{value:!0}),n));var p=d(r(9652)),m=d(r(8366)),g=r(4480),v=r(9356);class y extends p.Component{constructor(){super(...arguments),h(this,"mounted",!1),h(this,"isReady",!1),h(this,"isPlaying",!1),h(this,"isLoading",!0),h(this,"loadOnReady",null),h(this,"startOnPlay",!0),h(this,"seekOnPlay",null),h(this,"onDurationCalled",!1),h(this,"handlePlayerMount",(e=>{this.player||(this.player=e,this.player.load(this.props.url)),this.progress()})),h(this,"getInternalPlayer",(e=>this.player?this.player[e]:null)),h(this,"progress",(()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),r=this.getDuration();if(r){const n={playedSeconds:e,played:e/r};null!==t&&(n.loadedSeconds=t,n.loaded=t/r),n.playedSeconds===this.prevPlayed&&n.loadedSeconds===this.prevLoaded||this.props.onProgress(n),this.prevPlayed=n.playedSeconds,this.prevLoaded=n.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)})),h(this,"handleReady",(()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:t,volume:r,muted:n}=this.props;e(),n||null===r||this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()})),h(this,"handlePlay",(()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:t,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==r&&this.player.setPlaybackRate(r),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()})),h(this,"handlePause",(e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)})),h(this,"handleEnded",(()=>{const{activePlayer:e,loop:t,onEnded:r}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,r())})),h(this,"handleError",((...e)=>{this.isLoading=!1,this.props.onError(...e)})),h(this,"handleDurationCheck",(()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)})),h(this,"handleLoaded",(()=>{this.isLoading=!1}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:t,playing:r,volume:n,muted:i,playbackRate:o,pip:a,loop:s,activePlayer:c,disableDeferredLoading:l}=this.props;if(!(0,m.default)(e.url,t)){if(this.isLoading&&!c.forceLoad&&!l&&!(0,v.isMediaStream)(t))return console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),void(this.loadOnReady=t);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}e.playing||!r||this.isPlaying||this.player.play(),e.playing&&!r&&this.isPlaying&&this.player.pause(),!e.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==n&&null!==n&&this.player.setVolume(n),e.muted!==i&&(i?this.player.mute():(this.player.unmute(),null!==n&&setTimeout((()=>this.player.setVolume(n))))),e.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,r){if(!this.isReady)return void(0!==e&&(this.seekOnPlay=e,setTimeout((()=>{this.seekOnPlay=null}),5e3)));if(t?"fraction"===t:e>0&&e<1){const t=this.player.getDuration();return t?void this.player.seekTo(t*e,r):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,r)}render(){const e=this.props.activePlayer;return e?p.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}h(y,"displayName","Player"),h(y,"propTypes",g.propTypes),h(y,"defaultProps",g.defaultProps)},3475:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),h=(e,t,r)=>(((e,t,r)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),f={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(f,{createReactPlayer:()=>P}),e.exports=(n=f,u(o({},"__esModule",{value:!0}),n));var p=d(r(9652)),m=d(r(5434)),g=d(r(9961)),v=d(r(8366)),y=r(4480),b=r(9356),w=d(r(3937));const x=(0,b.lazy)((()=>r.e(664).then(r.t.bind(r,9296,23)))),_="undefined"!==typeof window&&window.document,S="undefined"!==typeof r.g&&r.g.window&&r.g.window.document,k=Object.keys(y.propTypes),E=_||S?p.Suspense:()=>null,A=[],P=(e,t)=>{var r;return r=class extends p.Component{constructor(){super(...arguments),h(this,"state",{showPreview:!!this.props.light}),h(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),h(this,"handleClickPreview",(e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)})),h(this,"showPreview",(()=>{this.setState({showPreview:!0})})),h(this,"getDuration",(()=>this.player?this.player.getDuration():null)),h(this,"getCurrentTime",(()=>this.player?this.player.getCurrentTime():null)),h(this,"getSecondsLoaded",(()=>this.player?this.player.getSecondsLoaded():null)),h(this,"getInternalPlayer",((e="player")=>this.player?this.player.getInternalPlayer(e):null)),h(this,"seekTo",((e,t,r)=>{if(!this.player)return null;this.player.seekTo(e,t,r)})),h(this,"handleReady",(()=>{this.props.onReady(this)})),h(this,"getActivePlayer",(0,g.default)((r=>{for(const t of[...A,...e])if(t.canPlay(r))return t;return t||null}))),h(this,"getConfig",(0,g.default)(((e,t)=>{const{config:r}=this.props;return m.default.all([y.defaultProps.config,y.defaultProps.config[t]||{},r,r[t]||{}])}))),h(this,"getAttributes",(0,g.default)((e=>(0,b.omit)(this.props,k)))),h(this,"renderActivePlayer",(e=>{if(!e)return null;const t=this.getActivePlayer(e);if(!t)return null;const r=this.getConfig(e,t.key);return p.default.createElement(w.default,{...this.props,key:t.key,ref:this.references.player,config:r,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})}))}shouldComponentUpdate(e,t){return!(0,v.default)(this.props,e)||!(0,v.default)(this.state,t)}componentDidUpdate(e){const{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;const{light:t,playIcon:r,previewTabIndex:n,oEmbedUrl:i}=this.props;return p.default.createElement(x,{url:e,light:t,playIcon:r,previewTabIndex:n,oEmbedUrl:i,onClick:this.handleClickPreview})}render(){const{url:e,style:t,width:r,height:n,fallback:i,wrapper:o}=this.props,{showPreview:a}=this.state,s=this.getAttributes(e),c="string"===typeof o?this.references.wrapper:void 0;return p.default.createElement(o,{ref:c,style:{...t,width:r,height:n},...s},p.default.createElement(E,{fallback:i},a?this.renderPreview(e):this.renderActivePlayer(e)))}},h(r,"displayName","ReactPlayer"),h(r,"propTypes",y.propTypes),h(r,"defaultProps",y.defaultProps),h(r,"addCustomPlayer",(e=>{A.push(e)})),h(r,"removeCustomPlayers",(()=>{A.length=0})),h(r,"canPlay",(t=>{for(const r of[...A,...e])if(r.canPlay(t))return!0;return!1})),h(r,"canEnablePIP",(t=>{for(const r of[...A,...e])if(r.canEnablePIP&&r.canEnablePIP(t))return!0;return!1})),r}},4606:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(d,{default:()=>m}),e.exports=(n=d,u(o({},"__esModule",{value:!0}),n));var h=((e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)))(r(9247)),f=r(3475);const p=h.default[h.default.length-1];var m=(0,f.createReactPlayer)(h.default,p)},8243:(e,t,r)=>{var n,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(c,{AUDIO_EXTENSIONS:()=>S,DASH_EXTENSIONS:()=>A,FLV_EXTENSIONS:()=>P,HLS_EXTENSIONS:()=>E,MATCH_URL_DAILYMOTION:()=>b,MATCH_URL_FACEBOOK:()=>f,MATCH_URL_FACEBOOK_WATCH:()=>p,MATCH_URL_KALTURA:()=>_,MATCH_URL_MIXCLOUD:()=>w,MATCH_URL_SOUNDCLOUD:()=>d,MATCH_URL_STREAMABLE:()=>m,MATCH_URL_TWITCH_CHANNEL:()=>y,MATCH_URL_TWITCH_VIDEO:()=>v,MATCH_URL_VIDYARD:()=>x,MATCH_URL_VIMEO:()=>h,MATCH_URL_WISTIA:()=>g,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>k,canPlay:()=>O}),e.exports=(n=c,((e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of a(t))s.call(e,c)||c===r||i(e,c,{get:()=>t[c],enumerable:!(n=o(t,c))||n.enumerable});return e})(i({},"__esModule",{value:!0}),n));var l=r(9356);const u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,d=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,h=/vimeo\.com\/(?!progressive_redirect).+/,f=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,p=/^https?:\/\/fb\.watch\/.+$/,m=/streamable\.com\/([a-z0-9]+)$/,g=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,v=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,y=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,b=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,w=/mixcloud\.com\/([^/]+\/[^/]+)/,x=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,_=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,S=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,k=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,E=/\.(m3u8)($|\?)/i,A=/\.(mpd)($|\?)/i,P=/\.(flv)($|\?)/i,T=e=>{if(e instanceof Array){for(const t of e){if("string"===typeof t&&T(t))return!0;if(T(t.src))return!0}return!1}return!(!(0,l.isMediaStream)(e)&&!(0,l.isBlobUrl)(e))||(S.test(e)||k.test(e)||E.test(e)||A.test(e)||P.test(e))},O={youtube:e=>e instanceof Array?e.every((e=>u.test(e))):u.test(e),soundcloud:e=>d.test(e)&&!S.test(e),vimeo:e=>h.test(e)&&!k.test(e)&&!E.test(e),facebook:e=>f.test(e)||p.test(e),streamable:e=>m.test(e),wistia:e=>g.test(e),twitch:e=>v.test(e)||y.test(e),dailymotion:e=>b.test(e),mixcloud:e=>w.test(e),vidyard:e=>x.test(e),kaltura:e=>_.test(e),file:T}},9247:(e,t,r)=>{Object.create;var n,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=(Object.getPrototypeOf,Object.prototype.hasOwnProperty),c=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of a(t))s.call(e,c)||c===r||i(e,c,{get:()=>t[c],enumerable:!(n=o(t,c))||n.enumerable});return e},l={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(l,{default:()=>h}),e.exports=(n=l,c(i({},"__esModule",{value:!0}),n));var u=r(9356),d=r(8243),h=[{key:"youtube",name:"YouTube",canPlay:d.canPlay.youtube,lazyPlayer:(0,u.lazy)((()=>r.e(439).then(r.t.bind(r,1646,23))))},{key:"soundcloud",name:"SoundCloud",canPlay:d.canPlay.soundcloud,lazyPlayer:(0,u.lazy)((()=>r.e(125).then(r.t.bind(r,8633,23))))},{key:"vimeo",name:"Vimeo",canPlay:d.canPlay.vimeo,lazyPlayer:(0,u.lazy)((()=>r.e(743).then(r.t.bind(r,4061,23))))},{key:"facebook",name:"Facebook",canPlay:d.canPlay.facebook,lazyPlayer:(0,u.lazy)((()=>r.e(121).then(r.t.bind(r,1879,23))))},{key:"streamable",name:"Streamable",canPlay:d.canPlay.streamable,lazyPlayer:(0,u.lazy)((()=>r.e(546).then(r.t.bind(r,6149,23))))},{key:"wistia",name:"Wistia",canPlay:d.canPlay.wistia,lazyPlayer:(0,u.lazy)((()=>r.e(55).then(r.t.bind(r,3791,23))))},{key:"twitch",name:"Twitch",canPlay:d.canPlay.twitch,lazyPlayer:(0,u.lazy)((()=>r.e(216).then(r.t.bind(r,2301,23))))},{key:"dailymotion",name:"DailyMotion",canPlay:d.canPlay.dailymotion,lazyPlayer:(0,u.lazy)((()=>r.e(596).then(r.t.bind(r,935,23))))},{key:"mixcloud",name:"Mixcloud",canPlay:d.canPlay.mixcloud,lazyPlayer:(0,u.lazy)((()=>r.e(667).then(r.t.bind(r,2339,23))))},{key:"vidyard",name:"Vidyard",canPlay:d.canPlay.vidyard,lazyPlayer:(0,u.lazy)((()=>r.e(888).then(r.t.bind(r,8484,23))))},{key:"kaltura",name:"Kaltura",canPlay:d.canPlay.kaltura,lazyPlayer:(0,u.lazy)((()=>r.e(261).then(r.t.bind(r,6275,23))))},{key:"file",name:"FilePlayer",canPlay:d.canPlay.file,canEnablePIP:e=>d.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,u.supportsWebKitPresentationMode)())&&!d.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,u.lazy)((()=>r.e(11).then(r.t.bind(r,5257,23))))}]},4480:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(d,{defaultProps:()=>k,propTypes:()=>_}),e.exports=(n=d,u(o({},"__esModule",{value:!0}),n));var h=((e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)))(r(8795));const{string:f,bool:p,number:m,array:g,oneOfType:v,shape:y,object:b,func:w,node:x}=h.default,_={url:v([f,g,b]),playing:p,loop:p,controls:p,volume:m,muted:p,playbackRate:m,width:v([f,m]),height:v([f,m]),style:b,progressInterval:m,playsinline:p,pip:p,stopOnUnmount:p,light:v([p,f,b]),playIcon:x,previewTabIndex:m,fallback:x,oEmbedUrl:f,wrapper:v([f,w,y({render:w.isRequired})]),config:y({soundcloud:y({options:b}),youtube:y({playerVars:b,embedOptions:b,onUnstarted:w}),facebook:y({appId:f,version:f,playerId:f,attributes:b}),dailymotion:y({params:b}),vimeo:y({playerOptions:b,title:f}),file:y({attributes:b,tracks:g,forceVideo:p,forceAudio:p,forceHLS:p,forceSafariHLS:p,forceDisableHls:p,forceDASH:p,forceFLV:p,hlsOptions:b,hlsVersion:f,dashVersion:f,flvVersion:f}),wistia:y({options:b,playerId:f,customControls:g}),mixcloud:y({options:b}),twitch:y({options:b,playerId:f}),vidyard:y({options:b})}),onReady:w,onStart:w,onPlay:w,onPause:w,onBuffer:w,onBufferEnd:w,onEnded:w,onError:w,onDuration:w,onSeek:w,onPlaybackRateChange:w,onPlaybackQualityChange:w,onProgress:w,onClickPreview:w,onEnablePIP:w,onDisablePIP:w},S=()=>{},k={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:S},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:S,onStart:S,onPlay:S,onPause:S,onBuffer:S,onBufferEnd:S,onEnded:S,onError:S,onDuration:S,onSeek:S,onPlaybackRateChange:S,onPlaybackQualityChange:S,onProgress:S,onClickPreview:S,onEnablePIP:S,onDisablePIP:S}},9356:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(h,{callPlayer:()=>j,getConfig:()=>O,getSDK:()=>T,isBlobUrl:()=>I,isMediaStream:()=>R,lazy:()=>g,omit:()=>C,parseEndTime:()=>S,parseStartTime:()=>_,queryString:()=>E,randomString:()=>k,supportsWebKitPresentationMode:()=>M}),e.exports=(n=h,u(o({},"__esModule",{value:!0}),n));var f=d(r(9652)),p=d(r(3419)),m=d(r(5434));const g=e=>f.default.lazy((async()=>{const t=await e();return"function"===typeof t.default?t:t.default})),v=/[?&#](?:start|t)=([0-9hms]+)/,y=/[?&#]end=([0-9hms]+)/,b=/(\d+)(h|m|s)/g,w=/^\d+$/;function x(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const e=r[1];if(e.match(b))return function(e){let t=0,r=b.exec(e);for(;null!==r;){const[,n,i]=r;"h"===i&&(t+=60*parseInt(n,10)*60),"m"===i&&(t+=60*parseInt(n,10)),"s"===i&&(t+=parseInt(n,10)),r=b.exec(e)}return t}(e);if(w.test(e))return parseInt(e)}}function _(e){return x(e,v)}function S(e){return x(e,y)}function k(){return Math.random().toString(36).substr(2,5)}function E(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function A(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const P={},T=function(e){0;return e}((function(e,t,r=null,n=(()=>!0),i=p.default){const o=A(t);return o&&n(o)?Promise.resolve(o):new Promise(((n,o)=>{if(P[e])return void P[e].push({resolve:n,reject:o});P[e]=[{resolve:n,reject:o}];const a=t=>{P[e].forEach((e=>e.resolve(t)))};if(r){const e=window[r];window[r]=function(){e&&e(),a(A(t))}}i(e,(n=>{n?(P[e].forEach((e=>e.reject(n))),P[e]=null):r||a(A(t))}))}))}));function O(e,t){return(0,m.default)(t.config,e.config)}function C(e,...t){const r=[].concat(...t),n={},i=Object.keys(e);for(const o of i)-1===r.indexOf(o)&&(n[o]=e[o]);return n}function j(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function R(e){return"undefined"!==typeof window&&"undefined"!==typeof window.MediaStream&&e instanceof window.MediaStream}function I(e){return/^blob:/.test(e)}function M(e=document.createElement("video")){const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"===typeof e.webkitSetPresentationMode&&t}},2083:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;var i=r(9724),o=r(3330),a=r(9652),s=r(2717),c=function(e){function t(t){var r=e.call(this,t)||this;return r.canvas=a.createRef(),r}return n(t,e),t.utf16to8=function(e){var t,r,n="",i=e.length;for(t=0;t=1&&r<=127?n+=e.charAt(t):r>2047?(n+=String.fromCharCode(224|r>>12&15),n+=String.fromCharCode(128|r>>6&63),n+=String.fromCharCode(128|r>>0&63)):(n+=String.fromCharCode(192|r>>6&31),n+=String.fromCharCode(128|r>>0&63));return n},t.prototype.drawRoundedSquare=function(e,t,r,n,i,o,a,s){s.lineWidth=e,s.fillStyle=i,s.strokeStyle=i,r+=e/2,t+=e/2,n-=e,Array.isArray(o)||(o=[o,o,o,o]);var c=(o=o.map((function(e){return(e=Math.min(e,n/2))<0?0:e})))[0]||0,l=o[1]||0,u=o[2]||0,d=o[3]||0;s.beginPath(),s.moveTo(t+c,r),s.lineTo(t+n-l,r),l&&s.quadraticCurveTo(t+n,r,t+n,r+l),s.lineTo(t+n,r+n-u),u&&s.quadraticCurveTo(t+n,r+n,t+n-u,r+n),s.lineTo(t+d,r+n),d&&s.quadraticCurveTo(t,r+n,t,r+n-d),s.lineTo(t,r+c),c&&s.quadraticCurveTo(t,r,t+c,r),s.closePath(),s.stroke(),a&&s.fill()},t.prototype.drawPositioningPattern=function(e,t,r,n,i,o,a){void 0===a&&(a=[0,0,0,0]);var s,c,l,u,d=Math.ceil(t);"number"===typeof a||Array.isArray(a)?c=s=a:(s=a.outer||0,c=a.inner||0),"string"!==typeof o?(l=o.outer,u=o.inner):(l=o,u=o);var h=n*t+r,f=i*t+r,p=7*t;this.drawRoundedSquare(d,f,h,p,l,s,!1,e),p=3*t,h+=2*t,f+=2*t,this.drawRoundedSquare(d,f,h,p,u,c,!0,e)},t.prototype.isInPositioninZone=function(e,t,r){return r.some((function(r){return t>=r.row&&t<=r.row+7&&e>=r.col&&e<=r.col+7}))},t.prototype.transformPixelLengthIntoNumberOfCells=function(e,t){return e/t},t.prototype.isCoordinateInImage=function(e,t,r,n,i,o,a,s){if(s){var c=this.transformPixelLengthIntoNumberOfCells(i,a),l=this.transformPixelLengthIntoNumberOfCells(o,a),u=this.transformPixelLengthIntoNumberOfCells(r,a)-1,d=this.transformPixelLengthIntoNumberOfCells(n,a)-1;return t>=c-2&&t<=c+u+2&&e>=l-2&&e<=l+d+2}return!1},t.prototype.shouldComponentUpdate=function(e){return!i(this.props,e)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var e=this.props,r=e.value,n=e.ecLevel,i=e.enableCORS,a=e.bgColor,c=e.fgColor,l=e.logoImage,u=e.logoOpacity,d=e.logoOnLoad,h=e.removeQrCodeBehindLogo,f=e.qrStyle,p=e.eyeRadius,m=e.eyeColor,g=e.logoPaddingStyle,v=+this.props.size,y=+this.props.quietZone,b=this.props.logoWidth?+this.props.logoWidth:0,w=this.props.logoHeight?+this.props.logoHeight:0,x=this.props.logoPadding?+this.props.logoPadding:0,_=o(0,n);_.addData(t.utf16to8(r)),_.make();var S=s.findDOMNode(this.canvas.current),k=S.getContext("2d"),E=v+2*y,A=_.getModuleCount(),P=v/A,T=window.devicePixelRatio||1;S.height=S.width=E*T,k.scale(T,T),k.fillStyle=a,k.fillRect(0,0,E,E);var O=y,C=[{row:0,col:0},{row:0,col:A-7},{row:A-7,col:0}];if(k.strokeStyle=c,"dots"===f){k.fillStyle=c;for(var j=P/2,R=0;R{"use strict";r.d(t,{j:()=>a});var n=r(8619),i=r(37),o=r(9864),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),function(){window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setFocused(e):r.onFocus()}))},r.setFocused=function(e){this.focused=e,e&&this.onFocus()},r.onFocus=function(){this.listeners.forEach((function(e){e()}))},r.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},9299:(e,t,r)=>{"use strict";r.d(t,{QueryClient:()=>n.S});var n=r(8699),i=r(6414);r.o(i,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),r.o(i,"useQuery")&&r.d(t,{useQuery:function(){return i.useQuery}}),r.o(i,"useQueryClient")&&r.d(t,{useQueryClient:function(){return i.useQueryClient}})},6648:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,j:()=>i});var n=console;function i(){return n}function o(e){n=e}},6346:(e,t,r)=>{"use strict";r.d(t,{V:()=>i});var n=r(9864),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";r.d(t,{N:()=>a});var n=r(8619),i=r(37),o=r(9864),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),function(){window.removeEventListener("online",r),window.removeEventListener("offline",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setOnline(e):r.onOnline()}))},r.setOnline=function(e){this.online=e,e&&this.onOnline()},r.onOnline=function(){this.listeners.forEach((function(e){e()}))},r.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},t}(i.l))},8699:(e,t,r)=>{"use strict";r.d(t,{S:()=>y});var n=r(1730),i=r(9864),o=r(8619),a=r(6346),s=r(6648),c=r(7356),l=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,n.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var r,n,o=this.state.data,a=(0,i.SE)(e,o);return(null==(r=(n=this.options).isDataEqual)?void 0:r.call(n,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var r,n,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var l;return null==(l=this.retryer)||l.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find((function(e){return e.options.queryFn}));u&&this.setOptions(u.options)}var d=(0,i.mc)(this.queryKey),h=(0,i.G9)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(h)return a.abortSignalConsumed=!0,h.signal}});var p,m,g={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(r=this.options.behavior)?void 0:r.onFetch)&&(null==(p=this.options.behavior)||p.onFetch(g));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(n=g.fetchOptions)?void 0:n.meta))||this.dispatch({type:"fetch",meta:null==(m=g.fetchOptions)?void 0:m.meta});return this.retryer=new c.m4({fn:g.fetchFn,abort:null==h||null==(o=h.abort)?void 0:o.bind(h),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,c.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,c.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,r="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,n="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:n?"success":"idle"}},t.reducer=function(e,t){var r,i;switch(t.type){case"failed":return(0,n.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"fetch":return(0,n.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,n.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return(0,c.DV)(o)&&o.revert&&this.revertState?(0,n.Z)({},this.revertState):(0,n.Z)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,n.Z)({},e,{isInvalidated:!0});case"setState":return(0,n.Z)({},e,t.state);default:return e}},e}(),u=r(37),d=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.queries=[],r.queriesMap={},r}(0,o.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n,o=t.queryKey,a=null!=(n=t.queryHash)?n:(0,i.Rm)(o,t),s=this.get(a);return s||(s=new l({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},r.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},r.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},r.clear=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},r.get=function(e){return this.queriesMap[e]},r.getAll=function(){return this.queries},r.find=function(e,t){var r=(0,i.I6)(e,t)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return(0,i._x)(r,e)}))},r.findAll=function(e,t){var r=(0,i.I6)(e,t)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return(0,i._x)(r,e)})):this.queries},r.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},r.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(u.l),h=function(){function e(e){this.options=(0,n.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.ZT).catch(i.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),n.then((function(){return t.executeMutation()})).then((function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,s.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new c.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"loading":return(0,n.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.Z)({},e,t.state);default:return e}}(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();var f=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,o.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n=new h({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},r.add=function(e){this.mutations.push(e),this.notify(e)},r.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},r.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},r.getAll=function(){return this.mutations},r.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.X7)(e,t)}))},r.findAll=function(e){return this.mutations.filter((function(t){return(0,i.X7)(e,t)}))},r.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.ZT)}))}),Promise.resolve())}))},t}(u.l),p=r(5133),m=r(8101);function g(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function v(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=p.j.subscribe((function(){p.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=m.N.subscribe((function(){p.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var r=(0,i.I6)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},t.isMutating=function(e){return this.mutationCache.findAll((0,n.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,r){var n=(0,i._v)(e),o=this.defaultQueryOptions(n);return this.queryCache.build(this,o).setData(t,r)},t.setQueriesData=function(e,t,r){var n=this;return a.V.batch((function(){return n.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,n.setQueryData(i,t,r)]}))}))},t.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},t.removeQueries=function(e,t){var r=(0,i.I6)(e,t)[0],n=this.queryCache;a.V.batch((function(){n.findAll(r).forEach((function(e){n.remove(e)}))}))},t.resetQueries=function(e,t,r){var o=this,s=(0,i.I6)(e,t,r),c=s[0],l=s[1],u=this.queryCache,d=(0,n.Z)({},c,{active:!0});return a.V.batch((function(){return u.findAll(c).forEach((function(e){e.reset()})),o.refetchQueries(d,l)}))},t.cancelQueries=function(e,t,r){var n=this,o=(0,i.I6)(e,t,r),s=o[0],c=o[1],l=void 0===c?{}:c;"undefined"===typeof l.revert&&(l.revert=!0);var u=a.V.batch((function(){return n.queryCache.findAll(s).map((function(e){return e.cancel(l)}))}));return Promise.all(u).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,r){var o,s,c,l=this,u=(0,i.I6)(e,t,r),d=u[0],h=u[1],f=(0,n.Z)({},d,{active:null==(o=null!=(s=d.refetchActive)?s:d.active)||o,inactive:null!=(c=d.refetchInactive)&&c});return a.V.batch((function(){return l.queryCache.findAll(d).forEach((function(e){e.invalidate()})),l.refetchQueries(f,h)}))},t.refetchQueries=function(e,t,r){var o=this,s=(0,i.I6)(e,t,r),c=s[0],l=s[1],u=a.V.batch((function(){return o.queryCache.findAll(c).map((function(e){return e.fetch(void 0,(0,n.Z)({},l,{meta:{refetchPage:null==c?void 0:c.refetchPage}}))}))})),d=Promise.all(u).then(i.ZT);return(null==l?void 0:l.throwOnError)||(d=d.catch(i.ZT)),d},t.fetchQuery=function(e,t,r){var n=(0,i._v)(e,t,r),o=this.defaultQueryOptions(n);"undefined"===typeof o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,r){var n=(0,i._v)(e,t,r);return n.behavior={onFetch:function(e){e.fetchFn=function(){var t,r,n,o,a,s,l,u=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,d=null==(n=e.fetchOptions)||null==(o=n.meta)?void 0:o.fetchMore,h=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),p="backward"===(null==d?void 0:d.direction),m=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,i.G9)(),w=null==b?void 0:b.signal,x=y,_=!1,S=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(e,t,r,n){return x=n?[t].concat(x):[].concat(x,[t]),n?[r].concat(e):[].concat(e,[r])},E=function(t,r,n,i){if(_)return Promise.reject("Cancelled");if("undefined"===typeof n&&!r&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:w,pageParam:n,meta:e.meta},a=S(o),s=Promise.resolve(a).then((function(e){return k(t,n,e,i)}));return(0,c.LE)(a)&&(s.cancel=a.cancel),s};if(m.length)if(f){var A="undefined"!==typeof h,P=A?h:g(e.options,m);l=E(m,A,P)}else if(p){var T="undefined"!==typeof h,O=T?h:v(e.options,m);l=E(m,T,O,!0)}else!function(){x=[];var t="undefined"===typeof e.options.getNextPageParam,r=!u||!m[0]||u(m[0],0,m);l=r?E([],t,y[0]):Promise.resolve(k([],y[0],m[0]));for(var n=function(r){l=l.then((function(n){if(!u||!m[r]||u(m[r],r,m)){var i=t?y[r]:g(e.options,n);return E(n,t,i)}return Promise.resolve(k(n,y[r],m[r]))}))},i=1;i{"use strict";r.d(t,{DV:()=>l,LE:()=>s,m4:()=>u});var n=r(5133),i=r(8101),o=r(9864);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var c=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function l(e){return e instanceof c}var u=function(e){var t,r,l,u,d=this,h=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){h=!0},this.continueRetry=function(){h=!1},this.continue=function(){return null==r?void 0:r()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){l=e,u=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==r||r(),l(t))},p=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==r||r(),u(t))};!function l(){if(!d.isResolved){var u;try{u=e.fn()}catch(m){u=Promise.reject(m)}t=function(e){if(!d.isResolved&&(p(new c(e)),null==d.abort||d.abort(),s(u)))try{u.cancel()}catch(t){}},d.isTransportCancelable=s(u),Promise.resolve(u).then(f).catch((function(t){var s,c;if(!d.isResolved){var u=null!=(s=e.retry)?s:3,f=null!=(c=e.retryDelay)?c:a,m="function"===typeof f?f(d.failureCount,t):f,g=!0===u||"number"===typeof u&&d.failureCount{"use strict";r.d(t,{l:()=>n});var n=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,r=e||function(){};return this.listeners.push(r),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==r})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},6414:()=>{},9864:(e,t,r)=>{"use strict";r.d(t,{A4:()=>k,G9:()=>E,Gh:()=>S,I6:()=>d,Kp:()=>l,PN:()=>s,Q$:()=>y,Rm:()=>p,SE:()=>a,VS:()=>b,X7:()=>f,ZT:()=>o,_v:()=>u,_x:()=>h,mc:()=>c,sk:()=>i,to:()=>g,yF:()=>m});var n=r(1730),i="undefined"===typeof window;function o(){}function a(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function c(e){return Array.isArray(e)?e:[e]}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,r){return _(e)?"function"===typeof t?(0,n.Z)({},r,{queryKey:e,queryFn:t}):(0,n.Z)({},t,{queryKey:e}):e}function d(e,t,r){return _(e)?[(0,n.Z)({},t,{queryKey:e}),r]:[e||{},t]}function h(e,t){var r=e.active,n=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,c=e.stale;if(_(s))if(n){if(t.queryHash!==p(s,t.options))return!1}else if(!g(t.queryKey,s))return!1;var l=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(r,o);if("none"===l)return!1;if("all"!==l){var u=t.isActive();if("active"===l&&!u)return!1;if("inactive"===l&&u)return!1}return("boolean"!==typeof c||t.isStale()===c)&&(("boolean"!==typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function f(e,t){var r=e.exact,n=e.fetching,i=e.predicate,o=e.mutationKey;if(_(o)){if(!t.options.mutationKey)return!1;if(r){if(m(t.options.mutationKey)!==m(o))return!1}else if(!g(t.options.mutationKey,o))return!1}return("boolean"!==typeof n||"loading"===t.state.status===n)&&!(i&&!i(t))}function p(e,t){return((null==t?void 0:t.queryKeyHashFn)||m)(e)}function m(e){var t,r=c(e);return t=r,JSON.stringify(t,(function(e,t){return w(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t}))}function g(e,t){return v(c(e),c(t))}function v(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(r){return!v(e[r],t[r])})))}function y(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||w(e)&&w(t)){for(var n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{},s=0,c=0;c{"use strict";r.d(t,{QueryClient:()=>n.QueryClient,QueryClientProvider:()=>i.QueryClientProvider,useQuery:()=>i.useQuery,useQueryClient:()=>i.useQueryClient});var n=r(9299);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}}),r.o(n,"useQueryClient")&&r.d(t,{useQueryClient:function(){return n.useQueryClient}});var i=r(9090)},9090:(e,t,r)=>{"use strict";r.d(t,{QueryClientProvider:()=>h,useQuery:()=>P,useQueryClient:()=>d});var n=r(6346),i=r(2717).unstable_batchedUpdates;n.V.setBatchNotifyFunction(i);var o=r(6648),a=console;(0,o.E)(a);var s=r(9652),c=s.createContext(void 0),l=s.createContext(!1);function u(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}var d=function(){var e=s.useContext(u(s.useContext(l)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},h=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,i=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var o=u(n);return s.createElement(l.Provider,{value:n},s.createElement(o.Provider,{value:t},i))},f=r(1730),p=r(8619),m=r(9864),g=r(5133),v=r(37),y=r(7356),b=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.selectError=null,n.bindMethods(),n.setOptions(r),n}(0,p.Z)(t,e);var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),w(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return x(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return x(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var i=this.hasListeners();i&&_(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===n&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===n&&this.options.enabled===r.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},r.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(e,t){var r=this,n={},i=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),n},r.getNextResult=function(e){var t=this;return new Promise((function(r,n){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))}))}))},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(e){return this.fetch((0,f.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},r.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then((function(){return t.createResult(n,r)}))},r.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},r.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(m.ZT)),t},r.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!m.sk&&!this.currentResult.isStale&&(0,m.PN)(this.options.staleTime)){var t=(0,m.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},r.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},r.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!m.sk&&!1!==this.options.enabled&&(0,m.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||g.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(e,t){var r,n=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,c=this.currentResultOptions,l=e!==n,u=l?e.state:this.currentQueryInitialState,d=l?this.currentResult:this.previousQueryResult,h=e.state,f=h.dataUpdatedAt,p=h.error,g=h.errorUpdatedAt,v=h.isFetching,y=h.status,b=!1,x=!1;if(t.optimisticResults){var k=this.hasListeners(),E=!k&&w(e,t),A=k&&_(e,n,t,i);(E||A)&&(v=!0,f||(y="loading"))}if(t.keepPreviousData&&!h.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)r=d.data,f=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&"undefined"!==typeof h.data)if(a&&h.data===(null==s?void 0:s.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(h.data),!1!==t.structuralSharing&&(r=(0,m.Q$)(null==a?void 0:a.data,r)),this.selectResult=r,this.selectError=null}catch(T){(0,o.j)().error(T),this.selectError=T}else r=h.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof r&&("loading"===y||"idle"===y)){var P;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==c?void 0:c.placeholderData))P=a.data;else if(P="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof P)try{P=t.select(P),!1!==t.structuralSharing&&(P=(0,m.Q$)(null==a?void 0:a.data,P)),this.selectError=null}catch(T){(0,o.j)().error(T),this.selectError=T}"undefined"!==typeof P&&(y="success",r=P,x=!0)}return this.selectError&&(p=this.selectError,r=this.selectResult,g=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:r,dataUpdatedAt:f,error:p,errorUpdatedAt:g,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&"loading"!==y,isLoadingError:"error"===y&&0===h.dataUpdatedAt,isPlaceholderData:x,isPreviousData:b,isRefetchError:"error"===y&&0!==h.dataUpdatedAt,isStale:S(e,t),refetch:this.refetch,remove:this.remove}},r.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,i=r.notifyOnChangePropsExclusions;if(!n&&!i)return!0;if("tracked"===n&&!this.trackedProps.length)return!0;var o="tracked"===n?this.trackedProps:n;return Object.keys(e).some((function(r){var n=r,a=e[n]!==t[n],s=null==o?void 0:o.some((function(e){return e===r})),c=null==i?void 0:i.some((function(e){return e===r}));return a&&!c&&(!o||s)}))},r.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,m.VS)(this.currentResult,t)){var r={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,f.Z)({},r,e))}},r.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},r.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,y.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},r.notify=function(e){var t=this;n.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(v.l);function w(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&x(e,t,t.refetchOnMount)}function x(e,t,r){if(!1!==t.enabled){var n="function"===typeof r?r(e):r;return"always"===n||!1!==n&&S(e,t)}return!1}function _(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&S(e,r)}function S(e,t){return e.isStaleByTime(t.staleTime)}function k(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var E=s.createContext(k()),A=function(){return s.useContext(E)};function P(e,t,r){return function(e,t){var r=s.useRef(!1),i=s.useState(0)[1],o=d(),a=A(),c=o.defaultQueryObserverOptions(e);c.optimisticResults=!0,c.onError&&(c.onError=n.V.batchCalls(c.onError)),c.onSuccess&&(c.onSuccess=n.V.batchCalls(c.onSuccess)),c.onSettled&&(c.onSettled=n.V.batchCalls(c.onSettled)),c.suspense&&("number"!==typeof c.staleTime&&(c.staleTime=1e3),0===c.cacheTime&&(c.cacheTime=1)),(c.suspense||c.useErrorBoundary)&&(a.isReset()||(c.retryOnMount=!1));var l,u,h,f=s.useState((function(){return new t(o,c)}))[0],p=f.getOptimisticResult(c);if(s.useEffect((function(){r.current=!0,a.clearReset();var e=f.subscribe(n.V.batchCalls((function(){r.current&&i((function(e){return e+1}))})));return f.updateResult(),function(){r.current=!1,e()}}),[a,f]),s.useEffect((function(){f.setOptions(c,{listeners:!1})}),[c,f]),c.suspense&&p.isLoading)throw f.fetchOptimistic(c).then((function(e){var t=e.data;null==c.onSuccess||c.onSuccess(t),null==c.onSettled||c.onSettled(t,null)})).catch((function(e){a.clearReset(),null==c.onError||c.onError(e),null==c.onSettled||c.onSettled(void 0,e)}));if(p.isError&&!a.isReset()&&!p.isFetching&&(l=c.suspense,u=c.useErrorBoundary,h=[p.error,f.getCurrentQuery()],"function"===typeof u?u.apply(void 0,h):"boolean"===typeof u?u:l))throw p.error;return"tracked"===c.notifyOnChangeProps&&(p=f.trackResult(p,c)),p}((0,m._v)(e,t,r),b)}},6234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t,r){var n=0===e?e:e+t;return"translate3d"+("("+("horizontal"===r?[n,0,0]:[0,n,0]).join(",")+")")}},4398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fadeAnimationHandler=t.slideStopSwipingHandler=t.slideSwipeAnimationHandler=t.slideAnimationHandler=void 0;var n,i=r(9652),o=(n=r(6234))&&n.__esModule?n:{default:n},a=r(2903);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;tl))return s<0?e.centerMode&&e.centerSlidePercentage&&"horizontal"===e.axis?r.itemListStyle=(0,a.setPosition)(-(l+2)*e.centerSlidePercentage-(100-e.centerSlidePercentage)/2,e.axis):r.itemListStyle=(0,a.setPosition)(100*-(l+2),e.axis):s>l&&(r.itemListStyle=(0,a.setPosition)(0,e.axis)),r;var u=(0,a.getPosition)(n,e),d=(0,o.default)(u,"%",e.axis),h=e.transitionTime+"ms";return r.itemListStyle={WebkitTransform:d,msTransform:d,OTransform:d,transform:d},t.swiping||(r.itemListStyle=c(c({},r.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),r};t.slideSwipeAnimationHandler=function(e,t,r,n){var o={},s="horizontal"===t.axis,c=i.Children.count(t.children),l=(0,a.getPosition)(r.selectedItem,t),u=t.infiniteLoop?(0,a.getPosition)(c-1,t)-100:(0,a.getPosition)(c-1,t),d=s?e.x:e.y,h=d;0===l&&d>0&&(h=0),l===u&&d<0&&(h=0);var f=l+100/(r.itemSize/h),p=Math.abs(d)>t.swipeScrollTolerance;return t.infiniteLoop&&p&&(0===r.selectedItem&&f>-100?f-=100*c:r.selectedItem===c-1&&f<100*-c&&(f+=100*c)),(!t.preventMovementUntilSwipeScrollTolerance||p||r.swipeMovementStarted)&&(r.swipeMovementStarted||n({swipeMovementStarted:!0}),o.itemListStyle=(0,a.setPosition)(f,t.axis)),p&&!r.cancelClick&&n({cancelClick:!0}),o};t.slideStopSwipingHandler=function(e,t){var r=(0,a.getPosition)(t.selectedItem,e);return{itemListStyle:(0,a.setPosition)(r,e.axis)}};t.fadeAnimationHandler=function(e,t){var r=e.transitionTime+"ms",n="ease-in-out",i={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:n,msTransitionTimingFunction:n,MozTransitionTimingFunction:n,WebkitTransitionTimingFunction:n,OTransitionTimingFunction:n};return t.swiping||(i=c(c({},i),{},{WebkitTransitionDuration:r,MozTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r})),{slideStyle:i,selectedStyle:c(c({},i),{},{opacity:1,position:"relative"}),prevStyle:c({},i)}}},101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(9652)),i=d(r(1131)),o=d(r(7616)),a=d(r(3079)),s=d(r(5461)),c=d(r(3270)),l=r(2903),u=r(4398);function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function f(e){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){return p=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem-("number"===typeof e?e:1))})),_(w(t),"increment",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem+("number"===typeof e?e:1))})),_(w(t),"moveTo",(function(e){if("number"===typeof e){var r=n.Children.count(t.props.children)-1;e<0&&(e=t.props.infiniteLoop?r:0),e>r&&(e=t.props.infiniteLoop?0:r),t.selectItem({selectedItem:e}),t.state.autoPlay&&!1===t.state.isMouseEntered&&t.resetAutoPlay()}})),_(w(t),"onClickNext",(function(){t.increment(1)})),_(w(t),"onClickPrev",(function(){t.decrement(1)})),_(w(t),"onSwipeForward",(function(){t.increment(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),_(w(t),"onSwipeBackwards",(function(){t.decrement(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),_(w(t),"changeItem",(function(e){return function(r){(0,l.isKeyboardEvent)(r)&&"Enter"!==r.key||t.moveTo(e)}})),_(w(t),"selectItem",(function(e){t.setState(g({previousItem:t.state.selectedItem},e),(function(){t.setState(t.animationHandler(t.props,t.state))})),t.handleOnChange(e.selectedItem,n.Children.toArray(t.props.children)[e.selectedItem])})),_(w(t),"getInitialImage",(function(){var e=t.props.selectedItem,r=t.itemsRef&&t.itemsRef[e];return(r&&r.getElementsByTagName("img")||[])[0]})),_(w(t),"getVariableItemHeight",(function(e){var r=t.itemsRef&&t.itemsRef[e];if(t.state.hasMount&&r&&r.children.length){var n=r.children[0].getElementsByTagName("img")||[];if(n.length>0){var i=n[0];if(!i.complete){i.addEventListener("load",(function e(){t.forceUpdate(),i.removeEventListener("load",e)}))}}var o=(n[0]||r.children[0]).clientHeight;return o>0?o:null}return null}));var r={initialized:!1,previousItem:e.selectedItem,selectedItem:e.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:e.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return t.animationHandler="function"===typeof e.animationHandler&&e.animationHandler||"fade"===e.animationHandler&&u.fadeAnimationHandler||u.slideAnimationHandler,t.state=g(g({},r),t.animationHandler(e,r)),t}return t=f,(r=[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(e,t){e.children||!this.props.children||this.state.initialized||this.setupCarousel(),!e.autoFocus&&this.props.autoFocus&&this.forceFocus(),t.swiping&&!this.state.swiping&&this.setState(g({},this.props.stopSwipingHandler(this.props,this.state))),e.selectedItem===this.props.selectedItem&&e.centerMode===this.props.centerMode||(this.updateSizes(),this.moveTo(this.props.selectedItem)),e.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var e=this;this.bindEvents(),this.state.autoPlay&&n.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},(function(){var t=e.getInitialImage();t&&!t.complete?t.addEventListener("load",e.setMountState):e.setMountState()}))}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.addEventListener("mouseenter",this.stopOnHover),e.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.removeEventListener("mouseenter",this.stopOnHover),e.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,c.default)().addEventListener("resize",this.updateSizes),(0,c.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,c.default)().removeEventListener("resize",this.updateSizes),(0,c.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var e=this.getInitialImage();e&&e.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var e;null===(e=this.carouselWrapperRef)||void 0===e||e.focus()}},{key:"renderItems",value:function(e){var t=this;return this.props.children?n.Children.map(this.props.children,(function(r,i){var a=i===t.state.selectedItem,s=i===t.state.previousItem,c=a&&t.state.selectedStyle||s&&t.state.prevStyle||t.state.slideStyle||{};t.props.centerMode&&"horizontal"===t.props.axis&&(c=g(g({},c),{},{minWidth:t.props.centerSlidePercentage+"%"})),t.state.swiping&&t.state.swipeMovementStarted&&(c=g(g({},c),{},{pointerEvents:"none"}));var l={ref:function(e){return t.setItemsRef(e,i)},key:"itemKey"+i+(e?"clone":""),className:o.default.ITEM(!0,i===t.state.selectedItem,i===t.state.previousItem),onClick:t.handleClickItem.bind(t,i,r),style:c};return n.default.createElement("li",l,t.props.renderItem(r,{isSelected:i===t.state.selectedItem,isPrevious:i===t.state.previousItem}))})):[]}},{key:"renderControls",value:function(){var e=this,t=this.props,r=t.showIndicators,i=t.labels,o=t.renderIndicator,a=t.children;return r?n.default.createElement("ul",{className:"control-dots"},n.Children.map(a,(function(t,r){return o&&o(e.changeItem(r),r===e.state.selectedItem,r,i.item)}))):null}},{key:"renderStatus",value:function(){return this.props.showStatus?n.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,n.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==n.Children.count(this.props.children)?n.default.createElement(a.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var e=this;if(!this.props.children||0===n.Children.count(this.props.children))return null;var t=this.props.swipeable&&n.Children.count(this.props.children)>1,r="horizontal"===this.props.axis,a=this.props.showArrows&&n.Children.count(this.props.children)>1,s=a&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,c=a&&(this.state.selectedItem{},2903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPosition=t.getPosition=t.isKeyboardEvent=t.defaultStatusFormatter=t.noop=void 0;var n,i=r(9652),o=(n=r(6234))&&n.__esModule?n:{default:n};t.noop=function(){};t.defaultStatusFormatter=function(e,t){return"".concat(e," of ").concat(t)};t.isKeyboardEvent=function(e){return!!e&&e.hasOwnProperty("key")};t.getPosition=function(e,t){if(t.infiniteLoop&&++e,0===e)return 0;var r=i.Children.count(t.children);if(t.centerMode&&"horizontal"===t.axis){var n=-e*t.centerSlidePercentage,o=r-1;return e&&(e!==o||t.infiniteLoop)?n+=(100-t.centerSlidePercentage)/2:e===o&&(n+=100-t.centerSlidePercentage),n}return 100*-e};t.setPosition=function(e,t){var r={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(n){r[n]=(0,o.default)(e,"%",t)})),r}},3079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(9652)),i=l(r(7616)),o=r(3448),a=l(r(6234)),s=l(r(1131)),c=l(r(3270));function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(){return h=Object.assign||function(e){for(var t=1;t0&&(r=0),o===100*-Math.max(i-t.state.visibleItems,0)/t.state.visibleItems&&r<0&&(r=0);var s=o+100/(t.itemsWrapperRef.clientWidth/r);return t.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(e){t.itemsListRef.style[e]=(0,a.default)(s,"%",t.props.axis)})),!0})),y(g(t),"slideRight",(function(e){t.moveTo(t.state.firstItem-("number"===typeof e?e:1))})),y(g(t),"slideLeft",(function(e){t.moveTo(t.state.firstItem+("number"===typeof e?e:1))})),y(g(t),"moveTo",(function(e){e=(e=e<0?0:e)>=t.state.lastPosition?t.state.lastPosition:e,t.setState({firstItem:e})})),t.state={selectedItem:e.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},t}return t=d,(r=[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(e){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==e.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,c.default)().addEventListener("resize",this.updateSizes),(0,c.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,c.default)().removeEventListener("resize",this.updateSizes),(0,c.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(e){var t=e;return e>=this.state.lastPosition&&(t=this.state.lastPosition),e1,o=this.state.showArrows&&this.state.firstItem>0,c=this.state.showArrows&&this.state.firstItem{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(5245))&&n.__esModule?n:{default:n};var o={ROOT:function(e){return(0,i.default)(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({"carousel-root":!0},e||"",!!e))},CAROUSEL:function(e){return(0,i.default)({carousel:!0,"carousel-slider":e})},WRAPPER:function(e,t){return(0,i.default)({"thumbs-wrapper":!e,"slider-wrapper":e,"axis-horizontal":"horizontal"===t,"axis-vertical":"horizontal"!==t})},SLIDER:function(e,t){return(0,i.default)({thumbs:!e,slider:e,animated:!t})},ITEM:function(e,t,r){return(0,i.default)({thumb:!e,slide:e,selected:t,previous:r})},ARROW_PREV:function(e){return(0,i.default)({"control-arrow control-prev":!0,"control-disabled":e})},ARROW_NEXT:function(e){return(0,i.default)({"control-arrow control-next":!0,"control-disabled":e})},DOT:function(e){return(0,i.default)({dot:!0,selected:e})}};t.default=o},3448:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outerWidth=void 0;t.outerWidth=function(e){var t=e.offsetWidth,r=getComputedStyle(e);return t+=parseInt(r.marginLeft)+parseInt(r.marginRight)}},2602:(e,t,r)=>{"use strict";Object.defineProperty(t,"lr",{enumerable:!0,get:function(){return n.default}});var n=a(r(101)),i=r(3447),o=a(r(3079));function a(e){return e&&e.__esModule?e:{default:e}}},5461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return document}},3270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return window}},9119:(e,t,r)=>{"use strict";var n=r(9652),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,o={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:l,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},693:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}function y(){}function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var c=arguments.length-2;if(1===c)o.children=n;else if(1{"use strict";e.exports=r(693)},5124:(e,t,r)=>{"use strict";e.exports=r(9119)},9849:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"===typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s;if("string"===typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=function(e,t,r){return"number"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},4751:(e,t,r)=>{"use strict";var n=r(5469),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(2833),a=r(6672);r(637)(u,o);for(var s=i(a.prototype),c=0;c{"use strict";e.exports=i;var n=r(2598);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(637)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},2833:(e,t,r)=>{"use strict";var n,i=r(5469);e.exports=E,E.ReadableState=k;r(4062).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=r(7378),s=r(4872).Buffer,c=("undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var l,u=r(4616);l=u&&u.debuglog?u.debuglog("stream"):function(){};var d,h,f,p=r(8868),m=r(9346),g=r(8887).getHighWaterMark,v=r(9849).q,y=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,x=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(637)(E,a);var _=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||r(4751),e=e||{},"boolean"!==typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(5049).s),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function E(e){if(n=n||r(4751),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function A(e,t,r,n,i){l("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,a);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof c||"string"===typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(a,t)),o)_(e,o);else if(a.objectMode||t&&t.length>0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)a.endEmitted?_(e,new x):P(e,a,t,!0);else if(a.ended)_(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?P(e,a,t,!1):R(e,a)):P(e,a,t,!1)}else n||(a.reading=!1,R(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(j,e))}function j(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function R(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){l("readable nexttick read 0"),e.read(0)}function N(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(U,t,e))}function U(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):C(this),null;if(0===(e=O(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?z(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){_(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,l("pipe count=%d opts=%j",n.pipesCount,t);var a=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:g;function s(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",h),d=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){l("onend"),e.end()}n.endEmitted?i.nextTick(a):r.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,D(e))}}(r);e.on("drain",u);var d=!1;function h(t){l("ondata");var i=e.write(t);l("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!d&&(l("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){l("onerror",t),g(),e.removeListener("error",f),0===o(e,"error")&&_(e,t)}function p(){e.removeListener("finish",m),g()}function m(){l("onfinish"),e.removeListener("close",p),g()}function g(){l("unpipe"),r.unpipe(e)}return r.on("data",h),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",p),e.once("finish",m),e.emit("pipe",r),n.flowing||(l("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,l("on readable",n.length,n.reading),n.length?C(this):n.reading||i.nextTick(L,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(M,this),r},E.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(M,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(l("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o{"use strict";e.exports=u;var n=r(9849).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(4751);function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var n,i=r(5469);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=E,E.WritableState=k;var a={deprecate:r(4460)},s=r(7378),c=r(4872).Buffer,l=("undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var u,d=r(9346),h=r(8887).getHighWaterMark,f=r(9849).q,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,v=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,b=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,x=f.ERR_UNKNOWN_ENCODING,_=d.errorOrDestroy;function S(){}function k(e,t,a){n=n||r(4751),e=e||{},"boolean"!==typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!==typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(j,e,t),e._writableState.errorEmitted=!0,_(e,n)):(o(n),e._writableState.errorEmitted=!0,_(e,n),j(e,t))}(e,r,n,t,o);else{var a=O(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||T(e,r),n?i.nextTick(P,e,r,a,o):P(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function E(e){var t=this instanceof(n=n||r(4751));if(!t&&!u.call(E,this))return new E(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),s.call(this)}function A(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function P(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,A(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var r=O(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(637)(E,s),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===E&&(e&&e._writableState instanceof k)}})):u=function(e){return e instanceof this},E.prototype.pipe=function(){_(this,new v)},E.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,c.isBuffer(n)||n instanceof l);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"===typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!==typeof r&&(r=S),o.ending?function(e,t){var r=new w;_(e,r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new b:"string"===typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(_(e,o),i.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=c.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var n=this._writableState;return"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=d.destroy,E.prototype._undestroy=d.undestroy,E.prototype._destroy=function(e,t){t(e)}},5538:(e,t,r)=>{"use strict";var n,i=r(5469);function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(8279),s=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[d]=null,e[s]=null,e[c]=null,t(p(r,!1)))}}function g(e){i.nextTick(m,e)}var v=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((o(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[l]?r(e[l]):t(p(void 0,!0))}))}));var r,n=this[d];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(p(void 0,!0)):t[h](r,n)}),n)}}(n,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[h])}return this[d]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),v);e.exports=function(e){var t,r=Object.create(y,(o(t={},f,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var n=r[f].read();n?(r[d]=null,r[s]=null,r[c]=null,e(p(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[d]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[d]=null,r[s]=null,r[c]=null,t(e)),void(r[l]=e)}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[c]=null,n(p(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},8868:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,r,n,i=c.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,c.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},9346:(e,t,r)=>{"use strict";var n=r(5469);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},8279:(e,t,r)=>{"use strict";var n=r(9849).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"===typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},5942:(e,t,r)=>{"use strict";var n;var i=r(9849).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,(function(e){u||(u=e),e&&h.forEach(c),o||(h.forEach(c),d(u))}))}));return t.reduce(l)}},8887:(e,t,r)=>{"use strict";var n=r(9849).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},7378:(e,t,r)=>{e.exports=r(4062).EventEmitter},3859:(e,t,r)=>{(t=e.exports=r(2833)).Stream=t,t.Readable=t,t.Writable=r(6672),t.Duplex=r(4751),t.Transform=r(2598),t.PassThrough=r(6388),t.finished=r(8279),t.pipeline=r(5942)},2980:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e);return{getItem:function(e){return new Promise((function(r,n){r(t.getItem(e))}))},setItem:function(e,r){return new Promise((function(n,i){n(t.setItem(e,r))}))},removeItem:function(e){return new Promise((function(r,n){r(t.removeItem(e))}))}}};var n,i=(n=r(953))&&n.__esModule?n:{default:n}},953:(e,t)=>{"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return function(e){if("object"!==("undefined"===typeof self?"undefined":r(self))||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(i){return!1}return!0}(t)?self[t]:i};var i={getItem:n,setItem:n,removeItem:n}},967:(e,t,r)=>{"use strict";var n;t.Z=void 0;var i=(0,((n=r(2980))&&n.__esModule?n:{default:n}).default)("local");t.Z=i},3392:(e,t,r)=>{e.exports=r(7712)},7712:(e,t,r)=>{var n=r(1914);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i{function t(e,t){"boolean"===typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(void 0===r){if(!this._cachedTimeouts)return!1;this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift()}var n=this,i=setTimeout((function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)}),r);return this._options.unref&&i.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){r._operationTimeoutCb()}),r._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,r=0,n=0;n=r&&(t=i,r=a)}return t}},4805:(e,t,r)=>{"use strict";var n=r(4872).Buffer,i=r(637),o=r(8682),a=new Array(16),s=[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],c=[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],l=[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],u=[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],d=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(f,o),f.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,f=0|this._e,w=0|this._a,x=0|this._b,_=0|this._c,S=0|this._d,k=0|this._e,E=0;E<80;E+=1){var A,P;E<16?(A=m(r,n,i,o,f,e[s[E]],d[0],l[E]),P=b(w,x,_,S,k,e[c[E]],h[0],u[E])):E<32?(A=g(r,n,i,o,f,e[s[E]],d[1],l[E]),P=y(w,x,_,S,k,e[c[E]],h[1],u[E])):E<48?(A=v(r,n,i,o,f,e[s[E]],d[2],l[E]),P=v(w,x,_,S,k,e[c[E]],h[2],u[E])):E<64?(A=y(r,n,i,o,f,e[s[E]],d[3],l[E]),P=g(w,x,_,S,k,e[c[E]],h[3],u[E])):(A=b(r,n,i,o,f,e[s[E]],d[4],l[E]),P=m(w,x,_,S,k,e[c[E]],h[4],u[E])),r=f,f=o,o=p(i,10),i=n,n=A,w=k,k=S,S=p(_,10),_=x,x=P}var T=this._b+i+S|0;this._b=this._c+o+k|0,this._c=this._d+f+w|0,this._d=this._e+r+x|0,this._e=this._a+n+_|0,this._a=T},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=f},6293:(e,t,r)=>{var n=r(4872),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},6215:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0>>1,i=e[n];if(!(0>>1;no(c,r))lo(u,c)?(e[n]=u,e[l]=r,n=l):(e[n]=c,e[s]=r,n=s);else{if(!(lo(u,r)))break e;e[n]=u,e[l]=r,n=l}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],d=1,h=null,f=3,p=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=n(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,r(l,t)}t=n(u)}}function x(e){if(g=!1,w(e),!m)if(null!==n(l))m=!0,I(_);else{var t=n(u);null!==t&&M(x,t.startTime-e)}}function _(e,r){m=!1,g&&(g=!1,y(A),A=-1),p=!0;var o=f;try{for(w(r),h=n(l);null!==h&&(!(h.expirationTime>r)||e&&!O());){var a=h.callback;if("function"===typeof a){h.callback=null,f=h.priorityLevel;var s=a(h.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?h.callback=s:h===n(l)&&i(l),w(r)}else i(l);h=n(l)}if(null!==h)var c=!0;else{var d=n(u);null!==d&&M(x,d.startTime-r),c=!1}return c}finally{h=null,f=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,E=null,A=-1,P=5,T=-1;function O(){return!(t.unstable_now()-Te||125a?(e.sortIndex=o,r(u,e),null===n(l)&&e===n(u)&&(g?(y(A),A=-1):g=!0,M(x,o-a))):(e.sortIndex=s,r(l,e),m||p||(m=!0,I(_))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},8586:(e,t,r)=>{"use strict";e.exports=r(6215)},1703:(e,t,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(!(t=o(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=i;const o=r(2407),{safeRe:a,t:s}=r(4195),c=r(5489),l=r(2243),u=r(3915),d=r(2908)},2908:(e,t,r)=>{class n{constructor(e,t){if(t=o(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&v(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,o=n?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(o,O(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),s("comparator trim",e),e=e.replace(l[u.TILDETRIM],h),s("tilde trim",e),e=e.replace(l[u.CARETTRIM],f),s("caret trim",e);let c=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));n&&(c=c.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",c);const v=new Map,y=c.map((e=>new a(e,this.options)));for(const i of y){if(g(i))return[i];v.set(i.value,i)}v.size>1&&v.has("")&&v.delete("");const w=[...v.values()];return i.set(t,w),w}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new c(e,this.options)}catch(t){return!1}for(let r=0;r"<0.0.0-0"===e.value,v=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},b=(e,t)=>(s("comp",e,t),e=S(e,t),s("caret",e),e=x(e,t),s("tildes",e),e=E(e,t),s("xrange",e),e=P(e,t),s("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{const r=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(r,((t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),w(r)?a="":w(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:w(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>k(e,t))).join(" "),k=(e,t)=>{s("caret",e,t);const r=t.loose?l[u.CARETLOOSE]:l[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,a)=>{let c;return s("caret",e,t,r,i,o,a),w(r)?c="":w(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(o)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",c),c}))},E=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const r=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(r,((r,n,i,o,a,c)=>{s("xRange",e,r,n,i,o,a,c);const l=w(i),u=l||w(o),d=u||w(a),h=d;return"="===n&&h&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+i}.${o}.${a}${c}`):u?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",r),r}))},P=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),T=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),O=e=>(t,r,n,i,o,a,s,c,l,u,d,h,f)=>`${r=w(n)?"":w(i)?`>=${n}.0.0${e?"-0":""}`:w(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=w(l)?"":w(u)?`<${+l+1}.0.0-0`:w(d)?`<${l}.${+u+1}.0-0`:h?`<=${l}.${u}.${d}-${h}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`}`.trim(),C=(e,t,r)=>{for(let n=0;n0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},3915:(e,t,r)=>{const n=r(2243),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(8474),{safeRe:a,t:s}=r(4195),c=r(2407),{compareIdentifiers:l}=r(903);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"===typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},3819:(e,t,r)=>{const n=r(5666);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},5489:(e,t,r)=>{const n=r(2736),i=r(8859),o=r(3573),a=r(772),s=r(3805),c=r(315);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof r&&(r=r.version),e===r;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return i(e,r,l);case">":return o(e,r,l);case">=":return a(e,r,l);case"<":return s(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},4107:(e,t,r)=>{const n=r(3915),i=r(5666),{safeRe:o,t:a}=r(4195);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else r=e.match(o[a.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},3739:(e,t,r)=>{const n=r(3915);e.exports=(e,t,r)=>{const i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},2453:(e,t,r)=>{const n=r(2871);e.exports=(e,t)=>n(e,t,!0)},2871:(e,t,r)=>{const n=r(3915);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},7342:(e,t,r)=>{const n=r(5666);e.exports=(e,t)=>{const r=n(e,null,!0),i=n(t,null,!0),o=r.compare(i);if(0===o)return null;const a=o>0,s=a?r:i,c=a?i:r,l=!!s.prerelease.length;if(!!c.prerelease.length&&!l)return c.patch||c.minor?s.patch?"patch":s.minor?"minor":"major":"major";const u=l?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"}},2736:(e,t,r)=>{const n=r(2871);e.exports=(e,t,r)=>0===n(e,t,r)},3573:(e,t,r)=>{const n=r(2871);e.exports=(e,t,r)=>n(e,t,r)>0},772:(e,t,r)=>{const n=r(2871);e.exports=(e,t,r)=>n(e,t,r)>=0},3262:(e,t,r)=>{const n=r(3915);e.exports=(e,t,r,i,o)=>{"string"===typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(a){return null}}},3805:(e,t,r)=>{const n=r(2871);e.exports=(e,t,r)=>n(e,t,r)<0},315:(e,t,r)=>{const n=r(2871);e.exports=(e,t,r)=>n(e,t,r)<=0},7141:(e,t,r)=>{const n=r(3915);e.exports=(e,t)=>new n(e,t).major},3426:(e,t,r)=>{const n=r(3915);e.exports=(e,t)=>new n(e,t).minor},8859:(e,t,r)=>{const n=r(2871);e.exports=(e,t,r)=>0!==n(e,t,r)},5666:(e,t,r)=>{const n=r(3915);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(i){if(!r)return null;throw i}}},5915:(e,t,r)=>{const n=r(3915);e.exports=(e,t)=>new n(e,t).patch},5993:(e,t,r)=>{const n=r(5666);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},8630:(e,t,r)=>{const n=r(2871);e.exports=(e,t,r)=>n(t,e,r)},1758:(e,t,r)=>{const n=r(3739);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},9670:(e,t,r)=>{const n=r(2908);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(i){return!1}return t.test(e)}},3854:(e,t,r)=>{const n=r(3739);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},9573:(e,t,r)=>{const n=r(5666);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},5353:(e,t,r)=>{const n=r(4195),i=r(8474),o=r(3915),a=r(903),s=r(5666),c=r(9573),l=r(3819),u=r(3262),d=r(7342),h=r(7141),f=r(3426),p=r(5915),m=r(5993),g=r(2871),v=r(8630),y=r(2453),b=r(3739),w=r(3854),x=r(1758),_=r(3573),S=r(3805),k=r(2736),E=r(8859),A=r(772),P=r(315),T=r(5489),O=r(4107),C=r(1703),j=r(2908),R=r(9670),I=r(1820),M=r(7226),L=r(2501),N=r(5344),D=r(3673),z=r(351),B=r(2837),U=r(3930),F=r(4777),$=r(4799),H=r(8936);e.exports={parse:s,valid:c,clean:l,inc:u,diff:d,major:h,minor:f,patch:p,prerelease:m,compare:g,rcompare:v,compareLoose:y,compareBuild:b,sort:w,rsort:x,gt:_,lt:S,eq:k,neq:E,gte:A,lte:P,cmp:T,coerce:O,Comparator:C,Range:j,satisfies:R,toComparators:I,maxSatisfying:M,minSatisfying:L,minVersion:N,validRange:D,outside:z,gtr:B,ltr:U,intersects:F,simplifyRange:$,subset:H,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},8474:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},2243:(e,t,r)=>{const n="object"===typeof r(5469)&&{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=n},903:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:er(t,e)}},2407:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!==typeof e?t:e:r},4195:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=r(8474),a=r(2243),s=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],u=t.t={};let d=0;const h="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[h,i]],p=(e,t,r)=>{const n=(e=>{for(const[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),i=d++;a(e,i,t),u[e]=i,l[i]=t,s[i]=new RegExp(t,r?"g":void 0),c[i]=new RegExp(n,r?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),p("FULL",`^${l[u.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),p("LOOSE",`^${l[u.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),p("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),p("COERCERTL",l[u.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2837:(e,t,r)=>{const n=r(351);e.exports=(e,t,r)=>n(e,t,">",r)},4777:(e,t,r)=>{const n=r(2908);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},3930:(e,t,r)=>{const n=r(351);e.exports=(e,t,r)=>n(e,t,"<",r)},7226:(e,t,r)=>{const n=r(3915),i=r(2908);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(c){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},2501:(e,t,r)=>{const n=r(3915),i=r(2908);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(c){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},5344:(e,t,r)=>{const n=r(3915),i=r(2908),o=r(3573);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let i=0;i{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!o(r,a)||(r=a)}return r&&e.test(r)?r:null}},351:(e,t,r)=>{const n=r(3915),i=r(1703),{ANY:o}=i,a=r(2908),s=r(9670),c=r(3573),l=r(3805),u=r(315),d=r(772);e.exports=(e,t,r,h)=>{let f,p,m,g,v;switch(e=new n(e,h),t=new a(t,h),r){case">":f=c,p=u,m=l,g=">",v=">=";break;case"<":f=l,p=d,m=c,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,h))return!1;for(let n=0;n{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,f(e.semver,a.semver,h)?a=e:m(e.semver,s.semver,h)&&(s=e)})),a.operator===g||a.operator===v)return!1;if((!s.operator||s.operator===g)&&p(e,s.semver))return!1;if(s.operator===v&&m(e,s.semver))return!1}return!0}},4799:(e,t,r)=>{const n=r(9670),i=r(2871);e.exports=(e,t,r)=>{const o=[];let a=null,s=null;const c=e.sort(((e,t)=>i(e,t,r)));for(const i of c){n(i,t,r)?(s=i,a||(a=i)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);const l=[];for(const[n,i]of o)n===i?l.push(n):i||n!==c[0]?i?n===c[0]?l.push(`<=${i}`):l.push(`${n} - ${i}`):l.push(`>=${n}`):l.push("*");const u=l.join(" || "),d="string"===typeof t.raw?t.raw:String(t);return u.length{const n=r(2908),i=r(1703),{ANY:o}=i,a=r(9670),s=r(2871),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],u=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?c:l}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=l}const n=new Set;let i,u,f,p,m,g,v;for(const o of e)">"===o.operator||">="===o.operator?i=d(i,o,r):"<"===o.operator||"<="===o.operator?u=h(u,o,r):n.add(o.semver);if(n.size>1)return null;if(i&&u){if(f=s(i.semver,u.semver,r),f>0)return null;if(0===f&&(">="!==i.operator||"<="!==u.operator))return null}for(const o of n){if(i&&!a(o,String(i),r))return null;if(u&&!a(o,String(u),r))return null;for(const e of t)if(!a(o,String(e),r))return!1;return!0}let y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver,b=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;y&&1===y.prerelease.length&&"<"===u.operator&&0===y.prerelease[0]&&(y=!1);for(const o of t){if(v=v||">"===o.operator||">="===o.operator,g=g||"<"===o.operator||"<="===o.operator,i)if(b&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===b.major&&o.semver.minor===b.minor&&o.semver.patch===b.patch&&(b=!1),">"===o.operator||">="===o.operator){if(p=d(i,o,r),p===o&&p!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(o),r))return!1;if(u)if(y&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===y.major&&o.semver.minor===y.minor&&o.semver.patch===y.patch&&(y=!1),"<"===o.operator||"<="===o.operator){if(m=h(u,o,r),m===o&&m!==u)return!1}else if("<="===u.operator&&!a(u.semver,String(o),r))return!1;if(!o.operator&&(u||i)&&0!==f)return!1}return!(i&&g&&!u&&0!==f)&&(!(u&&v&&!i&&0!==f)&&(!b&&!y))},d=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},h=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(const n of e.set){for(const e of t.set){const t=u(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},1820:(e,t,r)=>{const n=r(2908);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},3673:(e,t,r)=>{const n=r(2908);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(r){return null}}},1742:(e,t,r)=>{var n=r(6293).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},6478:(e,t,r)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(3357),n.sha1=r(4709),n.sha224=r(2023),n.sha256=r(5988),n.sha384=r(5676),n.sha512=r(4696)},3357:(e,t,r)=>{var n=r(637),i=r(1742),o=r(6293).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var h=0;h<80;++h){var f=~~(h/20),p=0|((t=n)<<5|t>>>27)+u(f,i,o,s)+c+r[h]+a[f];c=s,s=o,o=l(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},4709:(e,t,r)=>{var n=r(637),i=r(1742),o=r(6293).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=l(n)+d(p,i,o,s)+c+r[f]+a[p]|0;c=s,s=o,o=u(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},2023:(e,t,r)=>{var n=r(637),i=r(5988),o=r(1742),a=r(6293).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},5988:(e,t,r)=>{var n=r(637),i=r(1742),o=r(6293).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)r[v]=e.readInt32BE(4*v);for(;v<64;++v)r[v]=0|(((t=r[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[v-7]+f(r[v-15])+r[v-16];for(var y=0;y<64;++y){var b=g+h(c)+l(c,p,m)+a[y]+r[y]|0,w=d(n)+u(n,i,o)|0;g=m,m=p,p=c,c=s+b|0,s=o,o=i,i=n,n=b+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},5676:(e,t,r)=>{var n=r(637),i=r(4696),o=r(1742),a=r(6293).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},4696:(e,t,r)=>{var n=r(637),i=r(1742),o=r(6293).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,b=0|this._hh,w=0|this._al,x=0|this._bl,_=0|this._cl,S=0|this._dl,k=0|this._el,E=0|this._fl,A=0|this._gl,P=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var O=t[T-30],C=t[T-30+1],j=f(O,C),R=p(C,O),I=m(O=t[T-4],C=t[T-4+1]),M=g(C,O),L=t[T-14],N=t[T-14+1],D=t[T-32],z=t[T-32+1],B=R+N|0,U=j+L+v(B,R)|0;U=(U=U+I+v(B=B+M|0,M)|0)+D+v(B=B+z|0,z)|0,t[T]=U,t[T+1]=B}for(var F=0;F<160;F+=2){U=t[F],B=t[F+1];var $=u(r,n,i),H=u(w,x,_),V=d(r,w),q=d(w,r),K=h(s,k),W=h(k,s),G=a[F],Z=a[F+1],Y=l(s,c,y),X=l(k,E,A),J=P+W|0,Q=b+K+v(J,P)|0;Q=(Q=(Q=Q+Y+v(J=J+X|0,X)|0)+G+v(J=J+Z|0,Z)|0)+U+v(J=J+B|0,B)|0;var ee=q+H|0,te=V+$+v(ee,q)|0;b=y,P=A,y=c,A=E,c=s,E=k,s=o+Q+v(k=S+J|0,S)|0,o=i,S=_,i=n,_=x,n=r,x=w,r=Q+te+v(w=J+ee|0,J)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+_|0,this._dl=this._dl+S|0,this._el=this._el+k|0,this._fl=this._fl+E|0,this._gl=this._gl+A|0,this._hl=this._hl+P|0,this._ah=this._ah+r+v(this._al,w)|0,this._bh=this._bh+n+v(this._bl,x)|0,this._ch=this._ch+i+v(this._cl,_)|0,this._dh=this._dh+o+v(this._dl,S)|0,this._eh=this._eh+s+v(this._el,k)|0,this._fh=this._fh+c+v(this._fl,E)|0,this._gh=this._gh+y+v(this._gl,A)|0,this._hh=this._hh+b+v(this._hl,P)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},1702:(e,t,r)=>{e.exports=i;var n=r(4062).EventEmitter;function i(){n.call(this)}r(637)(i,n),i.Readable=r(2833),i.Writable=r(6672),i.Duplex=r(4751),i.Transform=r(2598),i.PassThrough=r(6388),i.finished=r(8279),i.pipeline=r(5942),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",l),e.on("error",l),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},5049:(e,t,r)=>{"use strict";var n=r(6293).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},1808:(e,t,r)=>{var n=r(4872).Buffer;e.exports=function(e){return ArrayBuffer.isView(e)?n.from(e.buffer,e.byteOffset,e.byteLength):n.from(e)}},6688:(e,t,r)=>{"use strict";var n=r(9652);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(n){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return s((function(){i.value=r,i.getSnapshot=t,l(i)&&u({inst:i})}),[e,r,t]),a((function(){return l(i)&&u({inst:i}),e((function(){l(i)&&u({inst:i})}))}),[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},9821:(e,t,r)=>{"use strict";var n=r(9652),i=r(5447);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=i.useSyncExternalStore,s=n.useRef,c=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=l((function(){function e(e){if(!c){if(c=!0,a=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(a=e,s=r)}var a,s,c=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,r,n,i]);var f=a(e,d[0],d[1]);return c((function(){h.hasValue=!0,h.value=f}),[f]),u(f),f}},5447:(e,t,r)=>{"use strict";e.exports=r(6688)},2003:(e,t,r)=>{"use strict";e.exports=r(9821)},4460:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(n){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},5897:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},9616:(e,t,r)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"===typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n{},8247:()=>{},3018:()=>{},6601:()=>{},9214:()=>{},2361:()=>{},4616:()=>{},6564:(e,t,r)=>{var n=r(9766).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(C){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),s=new T(n||[]);return a(o,"_invoke",{value:k(e,r,s)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}t.wrap=h;var p={};function m(){}function g(){}function v(){}var y={};d(y,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(O([])));w&&w!==r&&o.call(w,c)&&(y=w);var x=v.prototype=m.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,a,s,c){var l=f(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function k(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=f(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(e){if(e||""===e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},9766:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3050:(e,t,r)=>{var n=r(6564)();e.exports=n;try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},1730:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;tn})},8619:(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{Z:()=>i})},6996:e=>{"use strict";e.exports=JSON.parse('["\u7684","\u4e00","\u662f","\u5728","\u4e0d","\u4e86","\u6709","\u548c","\u4eba","\u8fd9","\u4e2d","\u5927","\u4e3a","\u4e0a","\u4e2a","\u56fd","\u6211","\u4ee5","\u8981","\u4ed6","\u65f6","\u6765","\u7528","\u4eec","\u751f","\u5230","\u4f5c","\u5730","\u4e8e","\u51fa","\u5c31","\u5206","\u5bf9","\u6210","\u4f1a","\u53ef","\u4e3b","\u53d1","\u5e74","\u52a8","\u540c","\u5de5","\u4e5f","\u80fd","\u4e0b","\u8fc7","\u5b50","\u8bf4","\u4ea7","\u79cd","\u9762","\u800c","\u65b9","\u540e","\u591a","\u5b9a","\u884c","\u5b66","\u6cd5","\u6240","\u6c11","\u5f97","\u7ecf","\u5341","\u4e09","\u4e4b","\u8fdb","\u7740","\u7b49","\u90e8","\u5ea6","\u5bb6","\u7535","\u529b","\u91cc","\u5982","\u6c34","\u5316","\u9ad8","\u81ea","\u4e8c","\u7406","\u8d77","\u5c0f","\u7269","\u73b0","\u5b9e","\u52a0","\u91cf","\u90fd","\u4e24","\u4f53","\u5236","\u673a","\u5f53","\u4f7f","\u70b9","\u4ece","\u4e1a","\u672c","\u53bb","\u628a","\u6027","\u597d","\u5e94","\u5f00","\u5b83","\u5408","\u8fd8","\u56e0","\u7531","\u5176","\u4e9b","\u7136","\u524d","\u5916","\u5929","\u653f","\u56db","\u65e5","\u90a3","\u793e","\u4e49","\u4e8b","\u5e73","\u5f62","\u76f8","\u5168","\u8868","\u95f4","\u6837","\u4e0e","\u5173","\u5404","\u91cd","\u65b0","\u7ebf","\u5185","\u6570","\u6b63","\u5fc3","\u53cd","\u4f60","\u660e","\u770b","\u539f","\u53c8","\u4e48","\u5229","\u6bd4","\u6216","\u4f46","\u8d28","\u6c14","\u7b2c","\u5411","\u9053","\u547d","\u6b64","\u53d8","\u6761","\u53ea","\u6ca1","\u7ed3","\u89e3","\u95ee","\u610f","\u5efa","\u6708","\u516c","\u65e0","\u7cfb","\u519b","\u5f88","\u60c5","\u8005","\u6700","\u7acb","\u4ee3","\u60f3","\u5df2","\u901a","\u5e76","\u63d0","\u76f4","\u9898","\u515a","\u7a0b","\u5c55","\u4e94","\u679c","\u6599","\u8c61","\u5458","\u9769","\u4f4d","\u5165","\u5e38","\u6587","\u603b","\u6b21","\u54c1","\u5f0f","\u6d3b","\u8bbe","\u53ca","\u7ba1","\u7279","\u4ef6","\u957f","\u6c42","\u8001","\u5934","\u57fa","\u8d44","\u8fb9","\u6d41","\u8def","\u7ea7","\u5c11","\u56fe","\u5c71","\u7edf","\u63a5","\u77e5","\u8f83","\u5c06","\u7ec4","\u89c1","\u8ba1","\u522b","\u5979","\u624b","\u89d2","\u671f","\u6839","\u8bba","\u8fd0","\u519c","\u6307","\u51e0","\u4e5d","\u533a","\u5f3a","\u653e","\u51b3","\u897f","\u88ab","\u5e72","\u505a","\u5fc5","\u6218","\u5148","\u56de","\u5219","\u4efb","\u53d6","\u636e","\u5904","\u961f","\u5357","\u7ed9","\u8272","\u5149","\u95e8","\u5373","\u4fdd","\u6cbb","\u5317","\u9020","\u767e","\u89c4","\u70ed","\u9886","\u4e03","\u6d77","\u53e3","\u4e1c","\u5bfc","\u5668","\u538b","\u5fd7","\u4e16","\u91d1","\u589e","\u4e89","\u6d4e","\u9636","\u6cb9","\u601d","\u672f","\u6781","\u4ea4","\u53d7","\u8054","\u4ec0","\u8ba4","\u516d","\u5171","\u6743","\u6536","\u8bc1","\u6539","\u6e05","\u7f8e","\u518d","\u91c7","\u8f6c","\u66f4","\u5355","\u98ce","\u5207","\u6253","\u767d","\u6559","\u901f","\u82b1","\u5e26","\u5b89","\u573a","\u8eab","\u8f66","\u4f8b","\u771f","\u52a1","\u5177","\u4e07","\u6bcf","\u76ee","\u81f3","\u8fbe","\u8d70","\u79ef","\u793a","\u8bae","\u58f0","\u62a5","\u6597","\u5b8c","\u7c7b","\u516b","\u79bb","\u534e","\u540d","\u786e","\u624d","\u79d1","\u5f20","\u4fe1","\u9a6c","\u8282","\u8bdd","\u7c73","\u6574","\u7a7a","\u5143","\u51b5","\u4eca","\u96c6","\u6e29","\u4f20","\u571f","\u8bb8","\u6b65","\u7fa4","\u5e7f","\u77f3","\u8bb0","\u9700","\u6bb5","\u7814","\u754c","\u62c9","\u6797","\u5f8b","\u53eb","\u4e14","\u7a76","\u89c2","\u8d8a","\u7ec7","\u88c5","\u5f71","\u7b97","\u4f4e","\u6301","\u97f3","\u4f17","\u4e66","\u5e03","\u590d","\u5bb9","\u513f","\u987b","\u9645","\u5546","\u975e","\u9a8c","\u8fde","\u65ad","\u6df1","\u96be","\u8fd1","\u77ff","\u5343","\u5468","\u59d4","\u7d20","\u6280","\u5907","\u534a","\u529e","\u9752","\u7701","\u5217","\u4e60","\u54cd","\u7ea6","\u652f","\u822c","\u53f2","\u611f","\u52b3","\u4fbf","\u56e2","\u5f80","\u9178","\u5386","\u5e02","\u514b","\u4f55","\u9664","\u6d88","\u6784","\u5e9c","\u79f0","\u592a","\u51c6","\u7cbe","\u503c","\u53f7","\u7387","\u65cf","\u7ef4","\u5212","\u9009","\u6807","\u5199","\u5b58","\u5019","\u6bdb","\u4eb2","\u5feb","\u6548","\u65af","\u9662","\u67e5","\u6c5f","\u578b","\u773c","\u738b","\u6309","\u683c","\u517b","\u6613","\u7f6e","\u6d3e","\u5c42","\u7247","\u59cb","\u5374","\u4e13","\u72b6","\u80b2","\u5382","\u4eac","\u8bc6","\u9002","\u5c5e","\u5706","\u5305","\u706b","\u4f4f","\u8c03","\u6ee1","\u53bf","\u5c40","\u7167","\u53c2","\u7ea2","\u7ec6","\u5f15","\u542c","\u8be5","\u94c1","\u4ef7","\u4e25","\u9996","\u5e95","\u6db2","\u5b98","\u5fb7","\u968f","\u75c5","\u82cf","\u5931","\u5c14","\u6b7b","\u8bb2","\u914d","\u5973","\u9ec4","\u63a8","\u663e","\u8c08","\u7f6a","\u795e","\u827a","\u5462","\u5e2d","\u542b","\u4f01","\u671b","\u5bc6","\u6279","\u8425","\u9879","\u9632","\u4e3e","\u7403","\u82f1","\u6c27","\u52bf","\u544a","\u674e","\u53f0","\u843d","\u6728","\u5e2e","\u8f6e","\u7834","\u4e9a","\u5e08","\u56f4","\u6ce8","\u8fdc","\u5b57","\u6750","\u6392","\u4f9b","\u6cb3","\u6001","\u5c01","\u53e6","\u65bd","\u51cf","\u6811","\u6eb6","\u600e","\u6b62","\u6848","\u8a00","\u58eb","\u5747","\u6b66","\u56fa","\u53f6","\u9c7c","\u6ce2","\u89c6","\u4ec5","\u8d39","\u7d27","\u7231","\u5de6","\u7ae0","\u65e9","\u671d","\u5bb3","\u7eed","\u8f7b","\u670d","\u8bd5","\u98df","\u5145","\u5175","\u6e90","\u5224","\u62a4","\u53f8","\u8db3","\u67d0","\u7ec3","\u5dee","\u81f4","\u677f","\u7530","\u964d","\u9ed1","\u72af","\u8d1f","\u51fb","\u8303","\u7ee7","\u5174","\u4f3c","\u4f59","\u575a","\u66f2","\u8f93","\u4fee","\u6545","\u57ce","\u592b","\u591f","\u9001","\u7b14","\u8239","\u5360","\u53f3","\u8d22","\u5403","\u5bcc","\u6625","\u804c","\u89c9","\u6c49","\u753b","\u529f","\u5df4","\u8ddf","\u867d","\u6742","\u98de","\u68c0","\u5438","\u52a9","\u5347","\u9633","\u4e92","\u521d","\u521b","\u6297","\u8003","\u6295","\u574f","\u7b56","\u53e4","\u5f84","\u6362","\u672a","\u8dd1","\u7559","\u94a2","\u66fe","\u7aef","\u8d23","\u7ad9","\u7b80","\u8ff0","\u94b1","\u526f","\u5c3d","\u5e1d","\u5c04","\u8349","\u51b2","\u627f","\u72ec","\u4ee4","\u9650","\u963f","\u5ba3","\u73af","\u53cc","\u8bf7","\u8d85","\u5fae","\u8ba9","\u63a7","\u5dde","\u826f","\u8f74","\u627e","\u5426","\u7eaa","\u76ca","\u4f9d","\u4f18","\u9876","\u7840","\u8f7d","\u5012","\u623f","\u7a81","\u5750","\u7c89","\u654c","\u7565","\u5ba2","\u8881","\u51b7","\u80dc","\u7edd","\u6790","\u5757","\u5242","\u6d4b","\u4e1d","\u534f","\u8bc9","\u5ff5","\u9648","\u4ecd","\u7f57","\u76d0","\u53cb","\u6d0b","\u9519","\u82e6","\u591c","\u5211","\u79fb","\u9891","\u9010","\u9760","\u6df7","\u6bcd","\u77ed","\u76ae","\u7ec8","\u805a","\u6c7d","\u6751","\u4e91","\u54ea","\u65e2","\u8ddd","\u536b","\u505c","\u70c8","\u592e","\u5bdf","\u70e7","\u8fc5","\u5883","\u82e5","\u5370","\u6d32","\u523b","\u62ec","\u6fc0","\u5b54","\u641e","\u751a","\u5ba4","\u5f85","\u6838","\u6821","\u6563","\u4fb5","\u5427","\u7532","\u6e38","\u4e45","\u83dc","\u5473","\u65e7","\u6a21","\u6e56","\u8d27","\u635f","\u9884","\u963b","\u6beb","\u666e","\u7a33","\u4e59","\u5988","\u690d","\u606f","\u6269","\u94f6","\u8bed","\u6325","\u9152","\u5b88","\u62ff","\u5e8f","\u7eb8","\u533b","\u7f3a","\u96e8","\u5417","\u9488","\u5218","\u554a","\u6025","\u5531","\u8bef","\u8bad","\u613f","\u5ba1","\u9644","\u83b7","\u8336","\u9c9c","\u7cae","\u65a4","\u5b69","\u8131","\u786b","\u80a5","\u5584","\u9f99","\u6f14","\u7236","\u6e10","\u8840","\u6b22","\u68b0","\u638c","\u6b4c","\u6c99","\u521a","\u653b","\u8c13","\u76fe","\u8ba8","\u665a","\u7c92","\u4e71","\u71c3","\u77db","\u4e4e","\u6740","\u836f","\u5b81","\u9c81","\u8d35","\u949f","\u7164","\u8bfb","\u73ed","\u4f2f","\u9999","\u4ecb","\u8feb","\u53e5","\u4e30","\u57f9","\u63e1","\u5170","\u62c5","\u5f26","\u86cb","\u6c89","\u5047","\u7a7f","\u6267","\u7b54","\u4e50","\u8c01","\u987a","\u70df","\u7f29","\u5f81","\u8138","\u559c","\u677e","\u811a","\u56f0","\u5f02","\u514d","\u80cc","\u661f","\u798f","\u4e70","\u67d3","\u4e95","\u6982","\u6162","\u6015","\u78c1","\u500d","\u7956","\u7687","\u4fc3","\u9759","\u8865","\u8bc4","\u7ffb","\u8089","\u8df5","\u5c3c","\u8863","\u5bbd","\u626c","\u68c9","\u5e0c","\u4f24","\u64cd","\u5782","\u79cb","\u5b9c","\u6c22","\u5957","\u7763","\u632f","\u67b6","\u4eae","\u672b","\u5baa","\u5e86","\u7f16","\u725b","\u89e6","\u6620","\u96f7","\u9500","\u8bd7","\u5ea7","\u5c45","\u6293","\u88c2","\u80de","\u547c","\u5a18","\u666f","\u5a01","\u7eff","\u6676","\u539a","\u76df","\u8861","\u9e21","\u5b59","\u5ef6","\u5371","\u80f6","\u5c4b","\u4e61","\u4e34","\u9646","\u987e","\u6389","\u5440","\u706f","\u5c81","\u63aa","\u675f","\u8010","\u5267","\u7389","\u8d75","\u8df3","\u54e5","\u5b63","\u8bfe","\u51ef","\u80e1","\u989d","\u6b3e","\u7ecd","\u5377","\u9f50","\u4f1f","\u84b8","\u6b96","\u6c38","\u5b97","\u82d7","\u5ddd","\u7089","\u5ca9","\u5f31","\u96f6","\u6768","\u594f","\u6cbf","\u9732","\u6746","\u63a2","\u6ed1","\u9547","\u996d","\u6d53","\u822a","\u6000","\u8d76","\u5e93","\u593a","\u4f0a","\u7075","\u7a0e","\u9014","\u706d","\u8d5b","\u5f52","\u53ec","\u9f13","\u64ad","\u76d8","\u88c1","\u9669","\u5eb7","\u552f","\u5f55","\u83cc","\u7eaf","\u501f","\u7cd6","\u76d6","\u6a2a","\u7b26","\u79c1","\u52aa","\u5802","\u57df","\u67aa","\u6da6","\u5e45","\u54c8","\u7adf","\u719f","\u866b","\u6cfd","\u8111","\u58e4","\u78b3","\u6b27","\u904d","\u4fa7","\u5be8","\u6562","\u5f7b","\u8651","\u659c","\u8584","\u5ead","\u7eb3","\u5f39","\u9972","\u4f38","\u6298","\u9ea6","\u6e7f","\u6697","\u8377","\u74e6","\u585e","\u5e8a","\u7b51","\u6076","\u6237","\u8bbf","\u5854","\u5947","\u900f","\u6881","\u5200","\u65cb","\u8ff9","\u5361","\u6c2f","\u9047","\u4efd","\u6bd2","\u6ce5","\u9000","\u6d17","\u6446","\u7070","\u5f69","\u5356","\u8017","\u590f","\u62e9","\u5fd9","\u94dc","\u732e","\u786c","\u4e88","\u7e41","\u5708","\u96ea","\u51fd","\u4ea6","\u62bd","\u7bc7","\u9635","\u9634","\u4e01","\u5c3a","\u8ffd","\u5806","\u96c4","\u8fce","\u6cdb","\u7238","\u697c","\u907f","\u8c0b","\u5428","\u91ce","\u732a","\u65d7","\u7d2f","\u504f","\u5178","\u9986","\u7d22","\u79e6","\u8102","\u6f6e","\u7237","\u8c46","\u5ffd","\u6258","\u60ca","\u5851","\u9057","\u6108","\u6731","\u66ff","\u7ea4","\u7c97","\u503e","\u5c1a","\u75db","\u695a","\u8c22","\u594b","\u8d2d","\u78e8","\u541b","\u6c60","\u65c1","\u788e","\u9aa8","\u76d1","\u6355","\u5f1f","\u66b4","\u5272","\u8d2f","\u6b8a","\u91ca","\u8bcd","\u4ea1","\u58c1","\u987f","\u5b9d","\u5348","\u5c18","\u95fb","\u63ed","\u70ae","\u6b8b","\u51ac","\u6865","\u5987","\u8b66","\u7efc","\u62db","\u5434","\u4ed8","\u6d6e","\u906d","\u5f90","\u60a8","\u6447","\u8c37","\u8d5e","\u7bb1","\u9694","\u8ba2","\u7537","\u5439","\u56ed","\u7eb7","\u5510","\u8d25","\u5b8b","\u73bb","\u5de8","\u8015","\u5766","\u8363","\u95ed","\u6e7e","\u952e","\u51e1","\u9a7b","\u9505","\u6551","\u6069","\u5265","\u51dd","\u78b1","\u9f7f","\u622a","\u70bc","\u9ebb","\u7eba","\u7981","\u5e9f","\u76db","\u7248","\u7f13","\u51c0","\u775b","\u660c","\u5a5a","\u6d89","\u7b52","\u5634","\u63d2","\u5cb8","\u6717","\u5e84","\u8857","\u85cf","\u59d1","\u8d38","\u8150","\u5974","\u5566","\u60ef","\u4e58","\u4f19","\u6062","\u5300","\u7eb1","\u624e","\u8fa9","\u8033","\u5f6a","\u81e3","\u4ebf","\u7483","\u62b5","\u8109","\u79c0","\u8428","\u4fc4","\u7f51","\u821e","\u5e97","\u55b7","\u7eb5","\u5bf8","\u6c57","\u6302","\u6d2a","\u8d3a","\u95ea","\u67ec","\u7206","\u70ef","\u6d25","\u7a3b","\u5899","\u8f6f","\u52c7","\u50cf","\u6eda","\u5398","\u8499","\u82b3","\u80af","\u5761","\u67f1","\u8361","\u817f","\u4eea","\u65c5","\u5c3e","\u8f67","\u51b0","\u8d21","\u767b","\u9ece","\u524a","\u94bb","\u52d2","\u9003","\u969c","\u6c28","\u90ed","\u5cf0","\u5e01","\u6e2f","\u4f0f","\u8f68","\u4ea9","\u6bd5","\u64e6","\u83ab","\u523a","\u6d6a","\u79d8","\u63f4","\u682a","\u5065","\u552e","\u80a1","\u5c9b","\u7518","\u6ce1","\u7761","\u7ae5","\u94f8","\u6c64","\u9600","\u4f11","\u6c47","\u820d","\u7267","\u7ed5","\u70b8","\u54f2","\u78f7","\u7ee9","\u670b","\u6de1","\u5c16","\u542f","\u9677","\u67f4","\u5448","\u5f92","\u989c","\u6cea","\u7a0d","\u5fd8","\u6cf5","\u84dd","\u62d6","\u6d1e","\u6388","\u955c","\u8f9b","\u58ee","\u950b","\u8d2b","\u865a","\u5f2f","\u6469","\u6cf0","\u5e7c","\u5ef7","\u5c0a","\u7a97","\u7eb2","\u5f04","\u96b6","\u7591","\u6c0f","\u5bab","\u59d0","\u9707","\u745e","\u602a","\u5c24","\u7434","\u5faa","\u63cf","\u819c","\u8fdd","\u5939","\u8170","\u7f18","\u73e0","\u7a77","\u68ee","\u679d","\u7af9","\u6c9f","\u50ac","\u7ef3","\u5fc6","\u90a6","\u5269","\u5e78","\u6d46","\u680f","\u62e5","\u7259","\u8d2e","\u793c","\u6ee4","\u94a0","\u7eb9","\u7f62","\u62cd","\u54b1","\u558a","\u8896","\u57c3","\u52e4","\u7f5a","\u7126","\u6f5c","\u4f0d","\u58a8","\u6b32","\u7f1d","\u59d3","\u520a","\u9971","\u4eff","\u5956","\u94dd","\u9b3c","\u4e3d","\u8de8","\u9ed8","\u6316","\u94fe","\u626b","\u559d","\u888b","\u70ad","\u6c61","\u5e55","\u8bf8","\u5f27","\u52b1","\u6885","\u5976","\u6d01","\u707e","\u821f","\u9274","\u82ef","\u8bbc","\u62b1","\u6bc1","\u61c2","\u5bd2","\u667a","\u57d4","\u5bc4","\u5c4a","\u8dc3","\u6e21","\u6311","\u4e39","\u8270","\u8d1d","\u78b0","\u62d4","\u7239","\u6234","\u7801","\u68a6","\u82bd","\u7194","\u8d64","\u6e14","\u54ed","\u656c","\u9897","\u5954","\u94c5","\u4ef2","\u864e","\u7a00","\u59b9","\u4e4f","\u73cd","\u7533","\u684c","\u9075","\u5141","\u9686","\u87ba","\u4ed3","\u9b4f","\u9510","\u6653","\u6c2e","\u517c","\u9690","\u788d","\u8d6b","\u62e8","\u5fe0","\u8083","\u7f38","\u7275","\u62a2","\u535a","\u5de7","\u58f3","\u5144","\u675c","\u8baf","\u8bda","\u78a7","\u7965","\u67ef","\u9875","\u5de1","\u77e9","\u60b2","\u704c","\u9f84","\u4f26","\u7968","\u5bfb","\u6842","\u94fa","\u5723","\u6050","\u6070","\u90d1","\u8da3","\u62ac","\u8352","\u817e","\u8d34","\u67d4","\u6ef4","\u731b","\u9614","\u8f86","\u59bb","\u586b","\u64a4","\u50a8","\u7b7e","\u95f9","\u6270","\u7d2b","\u7802","\u9012","\u620f","\u540a","\u9676","\u4f10","\u5582","\u7597","\u74f6","\u5a46","\u629a","\u81c2","\u6478","\u5fcd","\u867e","\u8721","\u90bb","\u80f8","\u5de9","\u6324","\u5076","\u5f03","\u69fd","\u52b2","\u4e73","\u9093","\u5409","\u4ec1","\u70c2","\u7816","\u79df","\u4e4c","\u8230","\u4f34","\u74dc","\u6d45","\u4e19","\u6682","\u71e5","\u6a61","\u67f3","\u8ff7","\u6696","\u724c","\u79e7","\u80c6","\u8be6","\u7c27","\u8e0f","\u74f7","\u8c31","\u5446","\u5bbe","\u7cca","\u6d1b","\u8f89","\u6124","\u7ade","\u9699","\u6012","\u7c98","\u4e43","\u7eea","\u80a9","\u7c4d","\u654f","\u6d82","\u7199","\u7686","\u4fa6","\u60ac","\u6398","\u4eab","\u7ea0","\u9192","\u72c2","\u9501","\u6dc0","\u6068","\u7272","\u9738","\u722c","\u8d4f","\u9006","\u73a9","\u9675","\u795d","\u79d2","\u6d59","\u8c8c","\u5f79","\u5f7c","\u6089","\u9e2d","\u8d8b","\u51e4","\u6668","\u755c","\u8f88","\u79e9","\u5375","\u7f72","\u68af","\u708e","\u6ee9","\u68cb","\u9a71","\u7b5b","\u5ce1","\u5192","\u5565","\u5bff","\u8bd1","\u6d78","\u6cc9","\u5e3d","\u8fdf","\u7845","\u7586","\u8d37","\u6f0f","\u7a3f","\u51a0","\u5ae9","\u80c1","\u82af","\u7262","\u53db","\u8680","\u5965","\u9e23","\u5cad","\u7f8a","\u51ed","\u4e32","\u5858","\u7ed8","\u9175","\u878d","\u76c6","\u9521","\u5e99","\u7b79","\u51bb","\u8f85","\u6444","\u88ad","\u7b4b","\u62d2","\u50da","\u65f1","\u94be","\u9e1f","\u6f06","\u6c88","\u7709","\u758f","\u6dfb","\u68d2","\u7a57","\u785d","\u97e9","\u903c","\u626d","\u4fa8","\u51c9","\u633a","\u7897","\u683d","\u7092","\u676f","\u60a3","\u998f","\u529d","\u8c6a","\u8fbd","\u52c3","\u9e3f","\u65e6","\u540f","\u62dc","\u72d7","\u57cb","\u8f8a","\u63a9","\u996e","\u642c","\u9a82","\u8f9e","\u52fe","\u6263","\u4f30","\u848b","\u7ed2","\u96fe","\u4e08","\u6735","\u59c6","\u62df","\u5b87","\u8f91","\u9655","\u96d5","\u507f","\u84c4","\u5d07","\u526a","\u5021","\u5385","\u54ac","\u9a76","\u85af","\u5237","\u65a5","\u756a","\u8d4b","\u5949","\u4f5b","\u6d47","\u6f2b","\u66fc","\u6247","\u9499","\u6843","\u6276","\u4ed4","\u8fd4","\u4fd7","\u4e8f","\u8154","\u978b","\u68f1","\u8986","\u6846","\u6084","\u53d4","\u649e","\u9a97","\u52d8","\u65fa","\u6cb8","\u5b64","\u5410","\u5b5f","\u6e20","\u5c48","\u75be","\u5999","\u60dc","\u4ef0","\u72e0","\u80c0","\u8c10","\u629b","\u9709","\u6851","\u5c97","\u561b","\u8870","\u76d7","\u6e17","\u810f","\u8d56","\u6d8c","\u751c","\u66f9","\u9605","\u808c","\u54e9","\u5389","\u70c3","\u7eac","\u6bc5","\u6628","\u4f2a","\u75c7","\u716e","\u53f9","\u9489","\u642d","\u830e","\u7b3c","\u9177","\u5077","\u5f13","\u9525","\u6052","\u6770","\u5751","\u9f3b","\u7ffc","\u7eb6","\u53d9","\u72f1","\u902e","\u7f50","\u7edc","\u68da","\u6291","\u81a8","\u852c","\u5bfa","\u9aa4","\u7a46","\u51b6","\u67af","\u518c","\u5c38","\u51f8","\u7ec5","\u576f","\u727a","\u7130","\u8f70","\u6b23","\u664b","\u7626","\u5fa1","\u952d","\u9526","\u4e27","\u65ec","\u953b","\u5784","\u641c","\u6251","\u9080","\u4ead","\u916f","\u8fc8","\u8212","\u8106","\u9176","\u95f2","\u5fe7","\u915a","\u987d","\u7fbd","\u6da8","\u5378","\u4ed7","\u966a","\u8f9f","\u60e9","\u676d","\u59da","\u809a","\u6349","\u98d8","\u6f02","\u6606","\u6b3a","\u543e","\u90ce","\u70f7","\u6c41","\u5475","\u9970","\u8427","\u96c5","\u90ae","\u8fc1","\u71d5","\u6492","\u59fb","\u8d74","\u5bb4","\u70e6","\u503a","\u5e10","\u6591","\u94c3","\u65e8","\u9187","\u8463","\u997c","\u96cf","\u59ff","\u62cc","\u5085","\u8179","\u59a5","\u63c9","\u8d24","\u62c6","\u6b6a","\u8461","\u80fa","\u4e22","\u6d69","\u5fbd","\u6602","\u57ab","\u6321","\u89c8","\u8d2a","\u6170","\u7f34","\u6c6a","\u614c","\u51af","\u8bfa","\u59dc","\u8c0a","\u51f6","\u52a3","\u8bec","\u8000","\u660f","\u8eba","\u76c8","\u9a91","\u4e54","\u6eaa","\u4e1b","\u5362","\u62b9","\u95f7","\u54a8","\u522e","\u9a7e","\u7f06","\u609f","\u6458","\u94d2","\u63b7","\u9887","\u5e7b","\u67c4","\u60e0","\u60e8","\u4f73","\u4ec7","\u814a","\u7a9d","\u6da4","\u5251","\u77a7","\u5821","\u6cfc","\u8471","\u7f69","\u970d","\u635e","\u80ce","\u82cd","\u6ee8","\u4fe9","\u6345","\u6e58","\u780d","\u971e","\u90b5","\u8404","\u75af","\u6dee","\u9042","\u718a","\u7caa","\u70d8","\u5bbf","\u6863","\u6208","\u9a73","\u5ac2","\u88d5","\u5f99","\u7bad","\u6350","\u80a0","\u6491","\u6652","\u8fa8","\u6bbf","\u83b2","\u644a","\u6405","\u9171","\u5c4f","\u75ab","\u54c0","\u8521","\u5835","\u6cab","\u76b1","\u7545","\u53e0","\u9601","\u83b1","\u6572","\u8f96","\u94a9","\u75d5","\u575d","\u5df7","\u997f","\u7978","\u4e18","\u7384","\u6e9c","\u66f0","\u903b","\u5f6d","\u5c1d","\u537f","\u59a8","\u8247","\u541e","\u97e6","\u6028","\u77ee","\u6b47"]')},4262:e=>{"use strict";e.exports=JSON.parse('["\u7684","\u4e00","\u662f","\u5728","\u4e0d","\u4e86","\u6709","\u548c","\u4eba","\u9019","\u4e2d","\u5927","\u70ba","\u4e0a","\u500b","\u570b","\u6211","\u4ee5","\u8981","\u4ed6","\u6642","\u4f86","\u7528","\u5011","\u751f","\u5230","\u4f5c","\u5730","\u65bc","\u51fa","\u5c31","\u5206","\u5c0d","\u6210","\u6703","\u53ef","\u4e3b","\u767c","\u5e74","\u52d5","\u540c","\u5de5","\u4e5f","\u80fd","\u4e0b","\u904e","\u5b50","\u8aaa","\u7522","\u7a2e","\u9762","\u800c","\u65b9","\u5f8c","\u591a","\u5b9a","\u884c","\u5b78","\u6cd5","\u6240","\u6c11","\u5f97","\u7d93","\u5341","\u4e09","\u4e4b","\u9032","\u8457","\u7b49","\u90e8","\u5ea6","\u5bb6","\u96fb","\u529b","\u88e1","\u5982","\u6c34","\u5316","\u9ad8","\u81ea","\u4e8c","\u7406","\u8d77","\u5c0f","\u7269","\u73fe","\u5be6","\u52a0","\u91cf","\u90fd","\u5169","\u9ad4","\u5236","\u6a5f","\u7576","\u4f7f","\u9ede","\u5f9e","\u696d","\u672c","\u53bb","\u628a","\u6027","\u597d","\u61c9","\u958b","\u5b83","\u5408","\u9084","\u56e0","\u7531","\u5176","\u4e9b","\u7136","\u524d","\u5916","\u5929","\u653f","\u56db","\u65e5","\u90a3","\u793e","\u7fa9","\u4e8b","\u5e73","\u5f62","\u76f8","\u5168","\u8868","\u9593","\u6a23","\u8207","\u95dc","\u5404","\u91cd","\u65b0","\u7dda","\u5167","\u6578","\u6b63","\u5fc3","\u53cd","\u4f60","\u660e","\u770b","\u539f","\u53c8","\u9ebc","\u5229","\u6bd4","\u6216","\u4f46","\u8cea","\u6c23","\u7b2c","\u5411","\u9053","\u547d","\u6b64","\u8b8a","\u689d","\u53ea","\u6c92","\u7d50","\u89e3","\u554f","\u610f","\u5efa","\u6708","\u516c","\u7121","\u7cfb","\u8ecd","\u5f88","\u60c5","\u8005","\u6700","\u7acb","\u4ee3","\u60f3","\u5df2","\u901a","\u4e26","\u63d0","\u76f4","\u984c","\u9ee8","\u7a0b","\u5c55","\u4e94","\u679c","\u6599","\u8c61","\u54e1","\u9769","\u4f4d","\u5165","\u5e38","\u6587","\u7e3d","\u6b21","\u54c1","\u5f0f","\u6d3b","\u8a2d","\u53ca","\u7ba1","\u7279","\u4ef6","\u9577","\u6c42","\u8001","\u982d","\u57fa","\u8cc7","\u908a","\u6d41","\u8def","\u7d1a","\u5c11","\u5716","\u5c71","\u7d71","\u63a5","\u77e5","\u8f03","\u5c07","\u7d44","\u898b","\u8a08","\u5225","\u5979","\u624b","\u89d2","\u671f","\u6839","\u8ad6","\u904b","\u8fb2","\u6307","\u5e7e","\u4e5d","\u5340","\u5f37","\u653e","\u6c7a","\u897f","\u88ab","\u5e79","\u505a","\u5fc5","\u6230","\u5148","\u56de","\u5247","\u4efb","\u53d6","\u64da","\u8655","\u968a","\u5357","\u7d66","\u8272","\u5149","\u9580","\u5373","\u4fdd","\u6cbb","\u5317","\u9020","\u767e","\u898f","\u71b1","\u9818","\u4e03","\u6d77","\u53e3","\u6771","\u5c0e","\u5668","\u58d3","\u5fd7","\u4e16","\u91d1","\u589e","\u722d","\u6fdf","\u968e","\u6cb9","\u601d","\u8853","\u6975","\u4ea4","\u53d7","\u806f","\u4ec0","\u8a8d","\u516d","\u5171","\u6b0a","\u6536","\u8b49","\u6539","\u6e05","\u7f8e","\u518d","\u63a1","\u8f49","\u66f4","\u55ae","\u98a8","\u5207","\u6253","\u767d","\u6559","\u901f","\u82b1","\u5e36","\u5b89","\u5834","\u8eab","\u8eca","\u4f8b","\u771f","\u52d9","\u5177","\u842c","\u6bcf","\u76ee","\u81f3","\u9054","\u8d70","\u7a4d","\u793a","\u8b70","\u8072","\u5831","\u9b25","\u5b8c","\u985e","\u516b","\u96e2","\u83ef","\u540d","\u78ba","\u624d","\u79d1","\u5f35","\u4fe1","\u99ac","\u7bc0","\u8a71","\u7c73","\u6574","\u7a7a","\u5143","\u6cc1","\u4eca","\u96c6","\u6eab","\u50b3","\u571f","\u8a31","\u6b65","\u7fa4","\u5ee3","\u77f3","\u8a18","\u9700","\u6bb5","\u7814","\u754c","\u62c9","\u6797","\u5f8b","\u53eb","\u4e14","\u7a76","\u89c0","\u8d8a","\u7e54","\u88dd","\u5f71","\u7b97","\u4f4e","\u6301","\u97f3","\u773e","\u66f8","\u5e03","\u590d","\u5bb9","\u5152","\u9808","\u969b","\u5546","\u975e","\u9a57","\u9023","\u65b7","\u6df1","\u96e3","\u8fd1","\u7926","\u5343","\u9031","\u59d4","\u7d20","\u6280","\u5099","\u534a","\u8fa6","\u9752","\u7701","\u5217","\u7fd2","\u97ff","\u7d04","\u652f","\u822c","\u53f2","\u611f","\u52de","\u4fbf","\u5718","\u5f80","\u9178","\u6b77","\u5e02","\u514b","\u4f55","\u9664","\u6d88","\u69cb","\u5e9c","\u7a31","\u592a","\u6e96","\u7cbe","\u503c","\u865f","\u7387","\u65cf","\u7dad","\u5283","\u9078","\u6a19","\u5beb","\u5b58","\u5019","\u6bdb","\u89aa","\u5feb","\u6548","\u65af","\u9662","\u67e5","\u6c5f","\u578b","\u773c","\u738b","\u6309","\u683c","\u990a","\u6613","\u7f6e","\u6d3e","\u5c64","\u7247","\u59cb","\u537b","\u5c08","\u72c0","\u80b2","\u5ee0","\u4eac","\u8b58","\u9069","\u5c6c","\u5713","\u5305","\u706b","\u4f4f","\u8abf","\u6eff","\u7e23","\u5c40","\u7167","\u53c3","\u7d05","\u7d30","\u5f15","\u807d","\u8a72","\u9435","\u50f9","\u56b4","\u9996","\u5e95","\u6db2","\u5b98","\u5fb7","\u96a8","\u75c5","\u8607","\u5931","\u723e","\u6b7b","\u8b1b","\u914d","\u5973","\u9ec3","\u63a8","\u986f","\u8ac7","\u7f6a","\u795e","\u85dd","\u5462","\u5e2d","\u542b","\u4f01","\u671b","\u5bc6","\u6279","\u71df","\u9805","\u9632","\u8209","\u7403","\u82f1","\u6c27","\u52e2","\u544a","\u674e","\u53f0","\u843d","\u6728","\u5e6b","\u8f2a","\u7834","\u4e9e","\u5e2b","\u570d","\u6ce8","\u9060","\u5b57","\u6750","\u6392","\u4f9b","\u6cb3","\u614b","\u5c01","\u53e6","\u65bd","\u6e1b","\u6a39","\u6eb6","\u600e","\u6b62","\u6848","\u8a00","\u58eb","\u5747","\u6b66","\u56fa","\u8449","\u9b5a","\u6ce2","\u8996","\u50c5","\u8cbb","\u7dca","\u611b","\u5de6","\u7ae0","\u65e9","\u671d","\u5bb3","\u7e8c","\u8f15","\u670d","\u8a66","\u98df","\u5145","\u5175","\u6e90","\u5224","\u8b77","\u53f8","\u8db3","\u67d0","\u7df4","\u5dee","\u81f4","\u677f","\u7530","\u964d","\u9ed1","\u72af","\u8ca0","\u64ca","\u8303","\u7e7c","\u8208","\u4f3c","\u9918","\u5805","\u66f2","\u8f38","\u4fee","\u6545","\u57ce","\u592b","\u5920","\u9001","\u7b46","\u8239","\u4f54","\u53f3","\u8ca1","\u5403","\u5bcc","\u6625","\u8077","\u89ba","\u6f22","\u756b","\u529f","\u5df4","\u8ddf","\u96d6","\u96dc","\u98db","\u6aa2","\u5438","\u52a9","\u6607","\u967d","\u4e92","\u521d","\u5275","\u6297","\u8003","\u6295","\u58de","\u7b56","\u53e4","\u5f91","\u63db","\u672a","\u8dd1","\u7559","\u92fc","\u66fe","\u7aef","\u8cac","\u7ad9","\u7c21","\u8ff0","\u9322","\u526f","\u76e1","\u5e1d","\u5c04","\u8349","\u885d","\u627f","\u7368","\u4ee4","\u9650","\u963f","\u5ba3","\u74b0","\u96d9","\u8acb","\u8d85","\u5fae","\u8b93","\u63a7","\u5dde","\u826f","\u8ef8","\u627e","\u5426","\u7d00","\u76ca","\u4f9d","\u512a","\u9802","\u790e","\u8f09","\u5012","\u623f","\u7a81","\u5750","\u7c89","\u6575","\u7565","\u5ba2","\u8881","\u51b7","\u52dd","\u7d55","\u6790","\u584a","\u5291","\u6e2c","\u7d72","\u5354","\u8a34","\u5ff5","\u9673","\u4ecd","\u7f85","\u9e7d","\u53cb","\u6d0b","\u932f","\u82e6","\u591c","\u5211","\u79fb","\u983b","\u9010","\u9760","\u6df7","\u6bcd","\u77ed","\u76ae","\u7d42","\u805a","\u6c7d","\u6751","\u96f2","\u54ea","\u65e2","\u8ddd","\u885b","\u505c","\u70c8","\u592e","\u5bdf","\u71d2","\u8fc5","\u5883","\u82e5","\u5370","\u6d32","\u523b","\u62ec","\u6fc0","\u5b54","\u641e","\u751a","\u5ba4","\u5f85","\u6838","\u6821","\u6563","\u4fb5","\u5427","\u7532","\u904a","\u4e45","\u83dc","\u5473","\u820a","\u6a21","\u6e56","\u8ca8","\u640d","\u9810","\u963b","\u6beb","\u666e","\u7a69","\u4e59","\u5abd","\u690d","\u606f","\u64f4","\u9280","\u8a9e","\u63ee","\u9152","\u5b88","\u62ff","\u5e8f","\u7d19","\u91ab","\u7f3a","\u96e8","\u55ce","\u91dd","\u5289","\u554a","\u6025","\u5531","\u8aa4","\u8a13","\u9858","\u5be9","\u9644","\u7372","\u8336","\u9bae","\u7ce7","\u65a4","\u5b69","\u812b","\u786b","\u80a5","\u5584","\u9f8d","\u6f14","\u7236","\u6f38","\u8840","\u6b61","\u68b0","\u638c","\u6b4c","\u6c99","\u525b","\u653b","\u8b02","\u76fe","\u8a0e","\u665a","\u7c92","\u4e82","\u71c3","\u77db","\u4e4e","\u6bba","\u85e5","\u5be7","\u9b6f","\u8cb4","\u9418","\u7164","\u8b80","\u73ed","\u4f2f","\u9999","\u4ecb","\u8feb","\u53e5","\u8c50","\u57f9","\u63e1","\u862d","\u64d4","\u5f26","\u86cb","\u6c89","\u5047","\u7a7f","\u57f7","\u7b54","\u6a02","\u8ab0","\u9806","\u7159","\u7e2e","\u5fb5","\u81c9","\u559c","\u677e","\u8173","\u56f0","\u7570","\u514d","\u80cc","\u661f","\u798f","\u8cb7","\u67d3","\u4e95","\u6982","\u6162","\u6015","\u78c1","\u500d","\u7956","\u7687","\u4fc3","\u975c","\u88dc","\u8a55","\u7ffb","\u8089","\u8e10","\u5c3c","\u8863","\u5bec","\u63da","\u68c9","\u5e0c","\u50b7","\u64cd","\u5782","\u79cb","\u5b9c","\u6c2b","\u5957","\u7763","\u632f","\u67b6","\u4eae","\u672b","\u61b2","\u6176","\u7de8","\u725b","\u89f8","\u6620","\u96f7","\u92b7","\u8a69","\u5ea7","\u5c45","\u6293","\u88c2","\u80de","\u547c","\u5a18","\u666f","\u5a01","\u7da0","\u6676","\u539a","\u76df","\u8861","\u96de","\u5b6b","\u5ef6","\u5371","\u81a0","\u5c4b","\u9109","\u81e8","\u9678","\u9867","\u6389","\u5440","\u71c8","\u6b72","\u63aa","\u675f","\u8010","\u5287","\u7389","\u8d99","\u8df3","\u54e5","\u5b63","\u8ab2","\u51f1","\u80e1","\u984d","\u6b3e","\u7d39","\u5377","\u9f4a","\u5049","\u84b8","\u6b96","\u6c38","\u5b97","\u82d7","\u5ddd","\u7210","\u5ca9","\u5f31","\u96f6","\u694a","\u594f","\u6cbf","\u9732","\u687f","\u63a2","\u6ed1","\u93ae","\u98ef","\u6fc3","\u822a","\u61f7","\u8d95","\u5eab","\u596a","\u4f0a","\u9748","\u7a05","\u9014","\u6ec5","\u8cfd","\u6b78","\u53ec","\u9f13","\u64ad","\u76e4","\u88c1","\u96aa","\u5eb7","\u552f","\u9304","\u83cc","\u7d14","\u501f","\u7cd6","\u84cb","\u6a6b","\u7b26","\u79c1","\u52aa","\u5802","\u57df","\u69cd","\u6f64","\u5e45","\u54c8","\u7adf","\u719f","\u87f2","\u6fa4","\u8166","\u58e4","\u78b3","\u6b50","\u904d","\u5074","\u5be8","\u6562","\u5fb9","\u616e","\u659c","\u8584","\u5ead","\u7d0d","\u5f48","\u98fc","\u4f38","\u6298","\u9ea5","\u6fd5","\u6697","\u8377","\u74e6","\u585e","\u5e8a","\u7bc9","\u60e1","\u6236","\u8a2a","\u5854","\u5947","\u900f","\u6881","\u5200","\u65cb","\u8de1","\u5361","\u6c2f","\u9047","\u4efd","\u6bd2","\u6ce5","\u9000","\u6d17","\u64fa","\u7070","\u5f69","\u8ce3","\u8017","\u590f","\u64c7","\u5fd9","\u9285","\u737b","\u786c","\u4e88","\u7e41","\u5708","\u96ea","\u51fd","\u4ea6","\u62bd","\u7bc7","\u9663","\u9670","\u4e01","\u5c3a","\u8ffd","\u5806","\u96c4","\u8fce","\u6cdb","\u7238","\u6a13","\u907f","\u8b00","\u5678","\u91ce","\u8c6c","\u65d7","\u7d2f","\u504f","\u5178","\u9928","\u7d22","\u79e6","\u8102","\u6f6e","\u723a","\u8c46","\u5ffd","\u6258","\u9a5a","\u5851","\u907a","\u6108","\u6731","\u66ff","\u7e96","\u7c97","\u50be","\u5c1a","\u75db","\u695a","\u8b1d","\u596e","\u8cfc","\u78e8","\u541b","\u6c60","\u65c1","\u788e","\u9aa8","\u76e3","\u6355","\u5f1f","\u66b4","\u5272","\u8cab","\u6b8a","\u91cb","\u8a5e","\u4ea1","\u58c1","\u9813","\u5bf6","\u5348","\u5875","\u805e","\u63ed","\u70ae","\u6b98","\u51ac","\u6a4b","\u5a66","\u8b66","\u7d9c","\u62db","\u5433","\u4ed8","\u6d6e","\u906d","\u5f90","\u60a8","\u6416","\u8c37","\u8d0a","\u7bb1","\u9694","\u8a02","\u7537","\u5439","\u5712","\u7d1b","\u5510","\u6557","\u5b8b","\u73bb","\u5de8","\u8015","\u5766","\u69ae","\u9589","\u7063","\u9375","\u51e1","\u99d0","\u934b","\u6551","\u6069","\u525d","\u51dd","\u9e7c","\u9f52","\u622a","\u7149","\u9ebb","\u7d21","\u7981","\u5ee2","\u76db","\u7248","\u7de9","\u6de8","\u775b","\u660c","\u5a5a","\u6d89","\u7b52","\u5634","\u63d2","\u5cb8","\u6717","\u838a","\u8857","\u85cf","\u59d1","\u8cbf","\u8150","\u5974","\u5566","\u6163","\u4e58","\u5925","\u6062","\u52fb","\u7d17","\u624e","\u8faf","\u8033","\u5f6a","\u81e3","\u5104","\u7483","\u62b5","\u8108","\u79c0","\u85a9","\u4fc4","\u7db2","\u821e","\u5e97","\u5674","\u7e31","\u5bf8","\u6c57","\u639b","\u6d2a","\u8cc0","\u9583","\u67ec","\u7206","\u70ef","\u6d25","\u7a3b","\u7246","\u8edf","\u52c7","\u50cf","\u6efe","\u5398","\u8499","\u82b3","\u80af","\u5761","\u67f1","\u76ea","\u817f","\u5100","\u65c5","\u5c3e","\u8ecb","\u51b0","\u8ca2","\u767b","\u9ece","\u524a","\u947d","\u52d2","\u9003","\u969c","\u6c28","\u90ed","\u5cf0","\u5e63","\u6e2f","\u4f0f","\u8ecc","\u755d","\u7562","\u64e6","\u83ab","\u523a","\u6d6a","\u79d8","\u63f4","\u682a","\u5065","\u552e","\u80a1","\u5cf6","\u7518","\u6ce1","\u7761","\u7ae5","\u9444","\u6e6f","\u95a5","\u4f11","\u532f","\u820d","\u7267","\u7e5e","\u70b8","\u54f2","\u78f7","\u7e3e","\u670b","\u6de1","\u5c16","\u555f","\u9677","\u67f4","\u5448","\u5f92","\u984f","\u6dda","\u7a0d","\u5fd8","\u6cf5","\u85cd","\u62d6","\u6d1e","\u6388","\u93e1","\u8f9b","\u58ef","\u92d2","\u8ca7","\u865b","\u5f4e","\u6469","\u6cf0","\u5e7c","\u5ef7","\u5c0a","\u7a97","\u7db1","\u5f04","\u96b8","\u7591","\u6c0f","\u5bae","\u59d0","\u9707","\u745e","\u602a","\u5c24","\u7434","\u5faa","\u63cf","\u819c","\u9055","\u593e","\u8170","\u7de3","\u73e0","\u7aae","\u68ee","\u679d","\u7af9","\u6e9d","\u50ac","\u7e69","\u61b6","\u90a6","\u5269","\u5e78","\u6f3f","\u6b04","\u64c1","\u7259","\u8caf","\u79ae","\u6ffe","\u9209","\u7d0b","\u7f77","\u62cd","\u54b1","\u558a","\u8896","\u57c3","\u52e4","\u7f70","\u7126","\u6f5b","\u4f0d","\u58a8","\u6b32","\u7e2b","\u59d3","\u520a","\u98fd","\u4eff","\u734e","\u92c1","\u9b3c","\u9e97","\u8de8","\u9ed8","\u6316","\u93c8","\u6383","\u559d","\u888b","\u70ad","\u6c61","\u5e55","\u8af8","\u5f27","\u52f5","\u6885","\u5976","\u6f54","\u707d","\u821f","\u9451","\u82ef","\u8a1f","\u62b1","\u6bc0","\u61c2","\u5bd2","\u667a","\u57d4","\u5bc4","\u5c46","\u8e8d","\u6e21","\u6311","\u4e39","\u8271","\u8c9d","\u78b0","\u62d4","\u7239","\u6234","\u78bc","\u5922","\u82bd","\u7194","\u8d64","\u6f01","\u54ed","\u656c","\u9846","\u5954","\u925b","\u4ef2","\u864e","\u7a00","\u59b9","\u4e4f","\u73cd","\u7533","\u684c","\u9075","\u5141","\u9686","\u87ba","\u5009","\u9b4f","\u92b3","\u66c9","\u6c2e","\u517c","\u96b1","\u7919","\u8d6b","\u64a5","\u5fe0","\u8085","\u7f38","\u727d","\u6436","\u535a","\u5de7","\u6bbc","\u5144","\u675c","\u8a0a","\u8aa0","\u78a7","\u7965","\u67ef","\u9801","\u5de1","\u77e9","\u60b2","\u704c","\u9f61","\u502b","\u7968","\u5c0b","\u6842","\u92ea","\u8056","\u6050","\u6070","\u912d","\u8da3","\u62ac","\u8352","\u9a30","\u8cbc","\u67d4","\u6ef4","\u731b","\u95ca","\u8f1b","\u59bb","\u586b","\u64a4","\u5132","\u7c3d","\u9b27","\u64fe","\u7d2b","\u7802","\u905e","\u6232","\u540a","\u9676","\u4f10","\u9935","\u7642","\u74f6","\u5a46","\u64ab","\u81c2","\u6478","\u5fcd","\u8766","\u881f","\u9130","\u80f8","\u978f","\u64e0","\u5076","\u68c4","\u69fd","\u52c1","\u4e73","\u9127","\u5409","\u4ec1","\u721b","\u78da","\u79df","\u70cf","\u8266","\u4f34","\u74dc","\u6dfa","\u4e19","\u66ab","\u71e5","\u6a61","\u67f3","\u8ff7","\u6696","\u724c","\u79e7","\u81bd","\u8a73","\u7c27","\u8e0f","\u74f7","\u8b5c","\u5446","\u8cd3","\u7cca","\u6d1b","\u8f1d","\u61a4","\u7af6","\u9699","\u6012","\u7c98","\u4e43","\u7dd2","\u80a9","\u7c4d","\u654f","\u5857","\u7199","\u7686","\u5075","\u61f8","\u6398","\u4eab","\u7cfe","\u9192","\u72c2","\u9396","\u6dc0","\u6068","\u7272","\u9738","\u722c","\u8cde","\u9006","\u73a9","\u9675","\u795d","\u79d2","\u6d59","\u8c8c","\u5f79","\u5f7c","\u6089","\u9d28","\u8da8","\u9cf3","\u6668","\u755c","\u8f29","\u79e9","\u5375","\u7f72","\u68af","\u708e","\u7058","\u68cb","\u9a45","\u7be9","\u5cfd","\u5192","\u5565","\u58fd","\u8b6f","\u6d78","\u6cc9","\u5e3d","\u9072","\u77fd","\u7586","\u8cb8","\u6f0f","\u7a3f","\u51a0","\u5ae9","\u8105","\u82af","\u7262","\u53db","\u8755","\u5967","\u9cf4","\u5dba","\u7f8a","\u6191","\u4e32","\u5858","\u7e6a","\u9175","\u878d","\u76c6","\u932b","\u5edf","\u7c4c","\u51cd","\u8f14","\u651d","\u8972","\u7b4b","\u62d2","\u50da","\u65f1","\u9240","\u9ce5","\u6f06","\u6c88","\u7709","\u758f","\u6dfb","\u68d2","\u7a57","\u785d","\u97d3","\u903c","\u626d","\u50d1","\u6dbc","\u633a","\u7897","\u683d","\u7092","\u676f","\u60a3","\u993e","\u52f8","\u8c6a","\u907c","\u52c3","\u9d3b","\u65e6","\u540f","\u62dc","\u72d7","\u57cb","\u8f25","\u63a9","\u98f2","\u642c","\u7f75","\u8fad","\u52fe","\u6263","\u4f30","\u8523","\u7d68","\u9727","\u4e08","\u6735","\u59c6","\u64ec","\u5b87","\u8f2f","\u965d","\u96d5","\u511f","\u84c4","\u5d07","\u526a","\u5021","\u5ef3","\u54ac","\u99db","\u85af","\u5237","\u65a5","\u756a","\u8ce6","\u5949","\u4f5b","\u6f86","\u6f2b","\u66fc","\u6247","\u9223","\u6843","\u6276","\u4ed4","\u8fd4","\u4fd7","\u8667","\u8154","\u978b","\u68f1","\u8986","\u6846","\u6084","\u53d4","\u649e","\u9a19","\u52d8","\u65fa","\u6cb8","\u5b64","\u5410","\u5b5f","\u6e20","\u5c48","\u75be","\u5999","\u60dc","\u4ef0","\u72e0","\u8139","\u8ae7","\u62cb","\u9ef4","\u6851","\u5d17","\u561b","\u8870","\u76dc","\u6ef2","\u81df","\u8cf4","\u6e67","\u751c","\u66f9","\u95b1","\u808c","\u54e9","\u53b2","\u70f4","\u7def","\u6bc5","\u6628","\u507d","\u75c7","\u716e","\u5606","\u91d8","\u642d","\u8396","\u7c60","\u9177","\u5077","\u5f13","\u9310","\u6046","\u5091","\u5751","\u9f3b","\u7ffc","\u7db8","\u6558","\u7344","\u902e","\u7f50","\u7d61","\u68da","\u6291","\u81a8","\u852c","\u5bfa","\u9a5f","\u7a46","\u51b6","\u67af","\u518a","\u5c4d","\u51f8","\u7d33","\u576f","\u72a7","\u7130","\u8f5f","\u6b23","\u6649","\u7626","\u79a6","\u9320","\u9326","\u55aa","\u65ec","\u935b","\u58df","\u641c","\u64b2","\u9080","\u4ead","\u916f","\u9081","\u8212","\u8106","\u9176","\u9592","\u6182","\u915a","\u9811","\u7fbd","\u6f32","\u5378","\u4ed7","\u966a","\u95e2","\u61f2","\u676d","\u59da","\u809a","\u6349","\u98c4","\u6f02","\u6606","\u6b3a","\u543e","\u90ce","\u70f7","\u6c41","\u5475","\u98fe","\u856d","\u96c5","\u90f5","\u9077","\u71d5","\u6492","\u59fb","\u8d74","\u5bb4","\u7169","\u50b5","\u5e33","\u6591","\u9234","\u65e8","\u9187","\u8463","\u9905","\u96db","\u59ff","\u62cc","\u5085","\u8179","\u59a5","\u63c9","\u8ce2","\u62c6","\u6b6a","\u8461","\u80fa","\u4e1f","\u6d69","\u5fbd","\u6602","\u588a","\u64cb","\u89bd","\u8caa","\u6170","\u7e73","\u6c6a","\u614c","\u99ae","\u8afe","\u59dc","\u8abc","\u5147","\u52a3","\u8aa3","\u8000","\u660f","\u8eba","\u76c8","\u9a0e","\u55ac","\u6eaa","\u53e2","\u76e7","\u62b9","\u60b6","\u8aee","\u522e","\u99d5","\u7e9c","\u609f","\u6458","\u927a","\u64f2","\u9817","\u5e7b","\u67c4","\u60e0","\u6158","\u4f73","\u4ec7","\u81d8","\u7aa9","\u6ecc","\u528d","\u77a7","\u5821","\u6f51","\u8525","\u7f69","\u970d","\u6488","\u80ce","\u84bc","\u6ff1","\u5006","\u6345","\u6e58","\u780d","\u971e","\u90b5","\u8404","\u760b","\u6dee","\u9042","\u718a","\u7cde","\u70d8","\u5bbf","\u6a94","\u6208","\u99c1","\u5ac2","\u88d5","\u5f99","\u7bad","\u6350","\u8178","\u6490","\u66ec","\u8fa8","\u6bbf","\u84ee","\u6524","\u652a","\u91ac","\u5c4f","\u75ab","\u54c0","\u8521","\u5835","\u6cab","\u76ba","\u66a2","\u758a","\u95a3","\u840a","\u6572","\u8f44","\u9264","\u75d5","\u58e9","\u5df7","\u9913","\u798d","\u4e18","\u7384","\u6e9c","\u66f0","\u908f","\u5f6d","\u5617","\u537f","\u59a8","\u8247","\u541e","\u97cb","\u6028","\u77ee","\u6b47"]')},32:e=>{"use strict";e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},4573:e=>{"use strict";e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},1848:e=>{"use strict";e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","acade\u0301mie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acque\u0301rir","acronyme","acteur","actif","actuel","adepte","ade\u0301quat","adhe\u0301sif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","ae\u0301rer","ae\u0301ronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agre\u0301able","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","alge\u0300bre","algue","alie\u0301ner","aliment","alle\u0301ger","alliage","allouer","allumer","alourdir","alpaga","altesse","alve\u0301ole","amateur","ambigu","ambre","ame\u0301nager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","ane\u0301antir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","ape\u0301ritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","arte\u0301riel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannie\u0300re","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","be\u0301lier","belote","be\u0301ne\u0301fice","berceau","berger","berline","bermuda","besace","besogne","be\u0301tail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","bre\u0300che","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","cafe\u0301ine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","came\u0301ra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","ce\u0301dille","ceinture","ce\u0301leste","cellule","cendrier","censurer","central","cercle","ce\u0301re\u0301bral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","che\u0301quier","chercher","cheval","chien","chiffre","chignon","chime\u0300re","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cine\u0301ma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohe\u0301sion","coiffer","coincer","cole\u0300re","colibri","colline","colmater","colonel","combat","come\u0301die","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","corte\u0300ge","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","cre\u0301ature","cre\u0301diter","cre\u0301meux","creuser","crevette","cribler","crier","cristal","crite\u0300re","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuille\u0300re","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","de\u0301battre","de\u0301biter","de\u0301border","de\u0301brider","de\u0301butant","de\u0301caler","de\u0301cembre","de\u0301chirer","de\u0301cider","de\u0301clarer","de\u0301corer","de\u0301crire","de\u0301cupler","de\u0301dale","de\u0301ductif","de\u0301esse","de\u0301fensif","de\u0301filer","de\u0301frayer","de\u0301gager","de\u0301givrer","de\u0301glutir","de\u0301grafer","de\u0301jeuner","de\u0301lice","de\u0301loger","demander","demeurer","de\u0301molir","de\u0301nicher","de\u0301nouer","dentelle","de\u0301nuder","de\u0301part","de\u0301penser","de\u0301phaser","de\u0301placer","de\u0301poser","de\u0301ranger","de\u0301rober","de\u0301sastre","descente","de\u0301sert","de\u0301signer","de\u0301sobe\u0301ir","dessiner","destrier","de\u0301tacher","de\u0301tester","de\u0301tourer","de\u0301tresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","diffe\u0301rer","dige\u0301rer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","e\u0301blouir","e\u0301carter","e\u0301charpe","e\u0301chelle","e\u0301clairer","e\u0301clipse","e\u0301clore","e\u0301cluse","e\u0301cole","e\u0301conomie","e\u0301corce","e\u0301couter","e\u0301craser","e\u0301cre\u0301mer","e\u0301crivain","e\u0301crou","e\u0301cume","e\u0301cureuil","e\u0301difier","e\u0301duquer","effacer","effectif","effigie","effort","effrayer","effusion","e\u0301galiser","e\u0301garer","e\u0301jecter","e\u0301laborer","e\u0301largir","e\u0301lectron","e\u0301le\u0301gant","e\u0301le\u0301phant","e\u0301le\u0300ve","e\u0301ligible","e\u0301litisme","e\u0301loge","e\u0301lucider","e\u0301luder","emballer","embellir","embryon","e\u0301meraude","e\u0301mission","emmener","e\u0301motion","e\u0301mouvoir","empereur","employer","emporter","emprise","e\u0301mulsion","encadrer","enche\u0300re","enclave","encoche","endiguer","endosser","endroit","enduire","e\u0301nergie","enfance","enfermer","enfouir","engager","engin","englober","e\u0301nigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","e\u0301nume\u0301rer","envahir","enviable","envoyer","enzyme","e\u0301olien","e\u0301paissir","e\u0301pargne","e\u0301patant","e\u0301paule","e\u0301picerie","e\u0301pide\u0301mie","e\u0301pier","e\u0301pilogue","e\u0301pine","e\u0301pisode","e\u0301pitaphe","e\u0301poque","e\u0301preuve","e\u0301prouver","e\u0301puisant","e\u0301querre","e\u0301quipe","e\u0301riger","e\u0301rosion","erreur","e\u0301ruption","escalier","espadon","espe\u0300ce","espie\u0300gle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","e\u0301tage\u0300re","e\u0301taler","e\u0301tanche","e\u0301tatique","e\u0301teindre","e\u0301tendoir","e\u0301ternel","e\u0301thanol","e\u0301thique","ethnie","e\u0301tirer","e\u0301toffer","e\u0301toile","e\u0301tonnant","e\u0301tourdir","e\u0301trange","e\u0301troit","e\u0301tude","euphorie","e\u0301valuer","e\u0301vasion","e\u0301ventail","e\u0301vidence","e\u0301viter","e\u0301volutif","e\u0301voquer","exact","exage\u0301rer","exaucer","exceller","excitant","exclusif","excuse","exe\u0301cuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expe\u0301dier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fe\u0301brile","fe\u0301conder","fe\u0301de\u0301rer","fe\u0301lin","femme","fe\u0301mur","fendoir","fe\u0301odal","fermer","fe\u0301roce","ferveur","festival","feuille","feutre","fe\u0301vrier","fiasco","ficeler","fictif","fide\u0300le","figure","filature","filetage","filie\u0300re","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fle\u0301au","fle\u0300che","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fouge\u0300re","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","fre\u0301gate","freiner","frelon","fre\u0301mir","fre\u0301ne\u0301sie","fre\u0300re","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","ge\u0301ant","ge\u0301latine","ge\u0301lule","gendarme","ge\u0301ne\u0301ral","ge\u0301nie","genou","gentil","ge\u0301ologie","ge\u0301ome\u0300tre","ge\u0301ranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruye\u0300re","gue\u0301pard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","he\u0301lium","he\u0301matome","herbe","he\u0301risson","hermine","he\u0301ron","he\u0301siter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homoge\u0300ne","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygie\u0300ne","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impe\u0301rial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","ine\u0301dit","ineptie","inexact","infini","infliger","informer","infusion","inge\u0301rer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irre\u0301el","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juve\u0301nile","kayak","kimono","kiosque","label","labial","labourer","lace\u0301rer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","le\u0301gal","le\u0301ger","le\u0301gume","lessive","lettre","levier","lexique","le\u0301zard","liasse","libe\u0301rer","libre","licence","licorne","lie\u0300ge","lie\u0300vre","ligature","ligoter","ligue","limer","limite","limonade","limpide","line\u0301aire","lingot","lionceau","liquide","lisie\u0300re","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumie\u0300re","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","male\u0301fice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","mate\u0301riel","matie\u0300re","matraque","maudire","maussade","mauve","maximal","me\u0301chant","me\u0301connu","me\u0301daille","me\u0301decin","me\u0301diter","me\u0301duse","meilleur","me\u0301lange","me\u0301lodie","membre","me\u0301moire","menacer","mener","menhir","mensonge","mentor","mercredi","me\u0301rite","merle","messager","mesure","me\u0301tal","me\u0301te\u0301ore","me\u0301thode","me\u0301tier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","mine\u0301ral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","mure\u0300ne","murmure","muscle","muse\u0301um","musicien","mutation","muter","mutuel","myriade","myrtille","myste\u0300re","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","ne\u0301buleux","nectar","ne\u0301faste","ne\u0301gation","ne\u0301gliger","ne\u0301gocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","nume\u0301ro","nuptial","nuque","nutritif","obe\u0301ir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","oce\u0301an","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","one\u0301reux","onirique","opale","opaque","ope\u0301rer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxyge\u0300ne","ozone","paisible","palace","palmare\u0300s","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","paste\u0300que","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pe\u0301lican","pelle","pelouse","peluche","pendule","pe\u0301ne\u0301trer","pe\u0301nible","pensif","pe\u0301nurie","pe\u0301pite","pe\u0301plum","perdrix","perforer","pe\u0301riode","permuter","perplexe","persil","perte","peser","pe\u0301tale","petit","pe\u0301trir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pie\u0300ce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poe\u0301sie","poe\u0300te","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","ponde\u0301rer","poney","portique","position","posse\u0301der","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","pre\u0301cieux","pre\u0301dire","pre\u0301fixe","pre\u0301lude","pre\u0301nom","pre\u0301sence","pre\u0301texte","pre\u0301voir","primitif","prince","prison","priver","proble\u0300me","proce\u0301der","prodige","profond","progre\u0300s","proie","projeter","prologue","promener","propre","prospe\u0300re","prote\u0301ger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quie\u0301tude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","re\u0301actif","re\u0301agir","re\u0301aliser","re\u0301animer","recevoir","re\u0301citer","re\u0301clamer","re\u0301colter","recruter","reculer","recycler","re\u0301diger","redouter","refaire","re\u0301flexe","re\u0301former","refrain","refuge","re\u0301galien","re\u0301gion","re\u0301glage","re\u0301gulier","re\u0301ite\u0301rer","rejeter","rejouer","relatif","relever","relief","remarque","reme\u0300de","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","re\u0301serve","re\u0301sineux","re\u0301soudre","respect","rester","re\u0301sultat","re\u0301tablir","retenir","re\u0301ticule","retomber","retracer","re\u0301union","re\u0301ussir","revanche","revivre","re\u0301volte","re\u0301vulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivie\u0300re","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","sce\u0301le\u0301rat","sce\u0301nario","sceptre","sche\u0301ma","science","scinder","score","scrutin","sculpter","se\u0301ance","se\u0301cable","se\u0301cher","secouer","se\u0301cre\u0301ter","se\u0301datif","se\u0301duire","seigneur","se\u0301jour","se\u0301lectif","semaine","sembler","semence","se\u0301minal","se\u0301nateur","sensible","sentence","se\u0301parer","se\u0301quence","serein","sergent","se\u0301rieux","serrure","se\u0301rum","service","se\u0301same","se\u0301vir","sevrage","sextuple","side\u0301ral","sie\u0300cle","sie\u0301ger","siffler","sigle","signal","silence","silicium","simple","since\u0300re","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spe\u0301cial","sphe\u0300re","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succe\u0300s","sucre","suffixe","sugge\u0301rer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","syme\u0301trie","synapse","syntaxe","syste\u0300me","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","te\u0301moin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","te\u0301tine","texte","the\u0300me","the\u0301orie","the\u0301rapie","thorax","tibia","tie\u0300de","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tole\u0301rant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","tre\u0300fle","tremper","tre\u0301sor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","ve\u0301ge\u0301tal","ve\u0301hicule","veinard","ve\u0301loce","vendredi","ve\u0301ne\u0301rer","venger","venimeux","ventouse","verdure","ve\u0301rin","vernir","verrou","verser","vertu","veston","ve\u0301te\u0301ran","ve\u0301tuste","vexant","vexer","viaduc","viande","victoire","vidange","vide\u0301o","vignette","vigueur","vilain","village","vinaigre","violon","vipe\u0300re","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xe\u0301non","yacht","ze\u0300bre","ze\u0301nith","zeste","zoologie"]')},2841:e=>{"use strict";e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},4472:e=>{"use strict";e.exports=JSON.parse('["\u3042\u3044\u3053\u304f\u3057\u3093","\u3042\u3044\u3055\u3064","\u3042\u3044\u305f\u3099","\u3042\u304a\u305d\u3099\u3089","\u3042\u304b\u3061\u3083\u3093","\u3042\u304d\u308b","\u3042\u3051\u304b\u3099\u305f","\u3042\u3051\u308b","\u3042\u3053\u304b\u3099\u308c\u308b","\u3042\u3055\u3044","\u3042\u3055\u3072","\u3042\u3057\u3042\u3068","\u3042\u3057\u3099\u308f\u3046","\u3042\u3059\u3099\u304b\u308b","\u3042\u3059\u3099\u304d","\u3042\u305d\u3075\u3099","\u3042\u305f\u3048\u308b","\u3042\u305f\u305f\u3081\u308b","\u3042\u305f\u308a\u307e\u3048","\u3042\u305f\u308b","\u3042\u3064\u3044","\u3042\u3064\u304b\u3046","\u3042\u3063\u3057\u3085\u304f","\u3042\u3064\u307e\u308a","\u3042\u3064\u3081\u308b","\u3042\u3066\u306a","\u3042\u3066\u306f\u307e\u308b","\u3042\u3072\u308b","\u3042\u3075\u3099\u3089","\u3042\u3075\u3099\u308b","\u3042\u3075\u308c\u308b","\u3042\u307e\u3044","\u3042\u307e\u3068\u3099","\u3042\u307e\u3084\u304b\u3059","\u3042\u307e\u308a","\u3042\u307f\u3082\u306e","\u3042\u3081\u308a\u304b","\u3042\u3084\u307e\u308b","\u3042\u3086\u3080","\u3042\u3089\u3044\u304f\u3099\u307e","\u3042\u3089\u3057","\u3042\u3089\u3059\u3057\u3099","\u3042\u3089\u305f\u3081\u308b","\u3042\u3089\u3086\u308b","\u3042\u3089\u308f\u3059","\u3042\u308a\u304b\u3099\u3068\u3046","\u3042\u308f\u305b\u308b","\u3042\u308f\u3066\u308b","\u3042\u3093\u3044","\u3042\u3093\u304b\u3099\u3044","\u3042\u3093\u3053","\u3042\u3093\u305b\u3099\u3093","\u3042\u3093\u3066\u3044","\u3042\u3093\u306a\u3044","\u3042\u3093\u307e\u308a","\u3044\u3044\u305f\u3099\u3059","\u3044\u304a\u3093","\u3044\u304b\u3099\u3044","\u3044\u304b\u3099\u304f","\u3044\u304d\u304a\u3044","\u3044\u304d\u306a\u308a","\u3044\u304d\u3082\u306e","\u3044\u304d\u308b","\u3044\u304f\u3057\u3099","\u3044\u304f\u3075\u3099\u3093","\u3044\u3051\u306f\u3099\u306a","\u3044\u3051\u3093","\u3044\u3053\u3046","\u3044\u3053\u304f","\u3044\u3053\u3064","\u3044\u3055\u307e\u3057\u3044","\u3044\u3055\u3093","\u3044\u3057\u304d","\u3044\u3057\u3099\u3085\u3046","\u3044\u3057\u3099\u3087\u3046","\u3044\u3057\u3099\u308f\u308b","\u3044\u3059\u3099\u307f","\u3044\u3059\u3099\u308c","\u3044\u305b\u3044","\u3044\u305b\u3048\u3072\u3099","\u3044\u305b\u304b\u3044","\u3044\u305b\u304d","\u3044\u305b\u3099\u3093","\u3044\u305d\u3046\u308d\u3046","\u3044\u305d\u304b\u3099\u3057\u3044","\u3044\u305f\u3099\u3044","\u3044\u305f\u3099\u304f","\u3044\u305f\u3059\u3099\u3089","\u3044\u305f\u307f","\u3044\u305f\u308a\u3042","\u3044\u3061\u304a\u3046","\u3044\u3061\u3057\u3099","\u3044\u3061\u3068\u3099","\u3044\u3061\u306f\u3099","\u3044\u3061\u3075\u3099","\u3044\u3061\u308a\u3085\u3046","\u3044\u3064\u304b","\u3044\u3063\u3057\u3085\u3093","\u3044\u3063\u305b\u3044","\u3044\u3063\u305d\u3046","\u3044\u3063\u305f\u3093","\u3044\u3063\u3061","\u3044\u3063\u3066\u3044","\u3044\u3063\u307b\u309a\u3046","\u3044\u3066\u3055\u3099","\u3044\u3066\u3093","\u3044\u3068\u3099\u3046","\u3044\u3068\u3053","\u3044\u306a\u3044","\u3044\u306a\u304b","\u3044\u306d\u3080\u308a","\u3044\u306e\u3061","\u3044\u306e\u308b","\u3044\u306f\u3064","\u3044\u306f\u3099\u308b","\u3044\u306f\u3093","\u3044\u3072\u3099\u304d","\u3044\u3072\u3093","\u3044\u3075\u304f","\u3044\u3078\u3093","\u3044\u307b\u3046","\u3044\u307f\u3093","\u3044\u3082\u3046\u3068","\u3044\u3082\u305f\u308c","\u3044\u3082\u308a","\u3044\u3084\u304b\u3099\u308b","\u3044\u3084\u3059","\u3044\u3088\u304b\u3093","\u3044\u3088\u304f","\u3044\u3089\u3044","\u3044\u3089\u3059\u3068","\u3044\u308a\u304f\u3099\u3061","\u3044\u308a\u3087\u3046","\u3044\u308c\u3044","\u3044\u308c\u3082\u306e","\u3044\u308c\u308b","\u3044\u308d\u3048\u3093\u3072\u309a\u3064","\u3044\u308f\u3044","\u3044\u308f\u3046","\u3044\u308f\u304b\u3093","\u3044\u308f\u306f\u3099","\u3044\u308f\u3086\u308b","\u3044\u3093\u3051\u3099\u3093\u307e\u3081","\u3044\u3093\u3055\u3064","\u3044\u3093\u3057\u3087\u3046","\u3044\u3093\u3088\u3046","\u3046\u3048\u304d","\u3046\u3048\u308b","\u3046\u304a\u3055\u3099","\u3046\u304b\u3099\u3044","\u3046\u304b\u3075\u3099","\u3046\u304b\u3078\u3099\u308b","\u3046\u304d\u308f","\u3046\u304f\u3089\u3044\u306a","\u3046\u304f\u308c\u308c","\u3046\u3051\u305f\u307e\u308f\u308b","\u3046\u3051\u3064\u3051","\u3046\u3051\u3068\u308b","\u3046\u3051\u3082\u3064","\u3046\u3051\u308b","\u3046\u3053\u3099\u304b\u3059","\u3046\u3053\u3099\u304f","\u3046\u3053\u3093","\u3046\u3055\u304d\u3099","\u3046\u3057\u306a\u3046","\u3046\u3057\u308d\u304b\u3099\u307f","\u3046\u3059\u3044","\u3046\u3059\u304d\u3099","\u3046\u3059\u304f\u3099\u3089\u3044","\u3046\u3059\u3081\u308b","\u3046\u305b\u3064","\u3046\u3061\u3042\u308f\u305b","\u3046\u3061\u304b\u3099\u308f","\u3046\u3061\u304d","\u3046\u3061\u3085\u3046","\u3046\u3063\u304b\u308a","\u3046\u3064\u304f\u3057\u3044","\u3046\u3063\u305f\u3048\u308b","\u3046\u3064\u308b","\u3046\u3068\u3099\u3093","\u3046\u306a\u304d\u3099","\u3046\u306a\u3057\u3099","\u3046\u306a\u3059\u3099\u304f","\u3046\u306a\u308b","\u3046\u306d\u308b","\u3046\u306e\u3046","\u3046\u3075\u3099\u3051\u3099","\u3046\u3075\u3099\u3053\u3099\u3048","\u3046\u307e\u308c\u308b","\u3046\u3081\u308b","\u3046\u3082\u3046","\u3046\u3084\u307e\u3046","\u3046\u3088\u304f","\u3046\u3089\u304b\u3099\u3048\u3059","\u3046\u3089\u304f\u3099\u3061","\u3046\u3089\u306a\u3044","\u3046\u308a\u3042\u3051\u3099","\u3046\u308a\u304d\u308c","\u3046\u308b\u3055\u3044","\u3046\u308c\u3057\u3044","\u3046\u308c\u3086\u304d","\u3046\u308c\u308b","\u3046\u308d\u3053","\u3046\u308f\u304d","\u3046\u308f\u3055","\u3046\u3093\u3053\u3046","\u3046\u3093\u3061\u3093","\u3046\u3093\u3066\u3093","\u3046\u3093\u3068\u3099\u3046","\u3048\u3044\u3048\u3093","\u3048\u3044\u304b\u3099","\u3048\u3044\u304d\u3087\u3046","\u3048\u3044\u3053\u3099","\u3048\u3044\u305b\u3044","\u3048\u3044\u3075\u3099\u3093","\u3048\u3044\u3088\u3046","\u3048\u3044\u308f","\u3048\u304a\u308a","\u3048\u304b\u3099\u304a","\u3048\u304b\u3099\u304f","\u3048\u304d\u305f\u3044","\u3048\u304f\u305b\u308b","\u3048\u3057\u3083\u304f","\u3048\u3059\u3066","\u3048\u3064\u3089\u3093","\u3048\u306e\u304f\u3099","\u3048\u307b\u3046\u307e\u304d","\u3048\u307b\u3093","\u3048\u307e\u304d","\u3048\u3082\u3057\u3099","\u3048\u3082\u306e","\u3048\u3089\u3044","\u3048\u3089\u3075\u3099","\u3048\u308a\u3042","\u3048\u3093\u3048\u3093","\u3048\u3093\u304b\u3044","\u3048\u3093\u304d\u3099","\u3048\u3093\u3051\u3099\u304d","\u3048\u3093\u3057\u3085\u3046","\u3048\u3093\u305b\u3099\u3064","\u3048\u3093\u305d\u304f","\u3048\u3093\u3061\u3087\u3046","\u3048\u3093\u3068\u3064","\u304a\u3044\u304b\u3051\u308b","\u304a\u3044\u3053\u3059","\u304a\u3044\u3057\u3044","\u304a\u3044\u3064\u304f","\u304a\u3046\u3048\u3093","\u304a\u3046\u3055\u307e","\u304a\u3046\u3057\u3099","\u304a\u3046\u305b\u3064","\u304a\u3046\u305f\u3044","\u304a\u3046\u3075\u304f","\u304a\u3046\u3078\u3099\u3044","\u304a\u3046\u3088\u3046","\u304a\u3048\u308b","\u304a\u304a\u3044","\u304a\u304a\u3046","\u304a\u304a\u3068\u3099\u304a\u308a","\u304a\u304a\u3084","\u304a\u304a\u3088\u305d","\u304a\u304b\u3048\u308a","\u304a\u304b\u3059\u3099","\u304a\u304b\u3099\u3080","\u304a\u304b\u308f\u308a","\u304a\u304d\u3099\u306a\u3046","\u304a\u304d\u308b","\u304a\u304f\u3055\u307e","\u304a\u304f\u3057\u3099\u3087\u3046","\u304a\u304f\u308a\u304b\u3099\u306a","\u304a\u304f\u308b","\u304a\u304f\u308c\u308b","\u304a\u3053\u3059","\u304a\u3053\u306a\u3046","\u304a\u3053\u308b","\u304a\u3055\u3048\u308b","\u304a\u3055\u306a\u3044","\u304a\u3055\u3081\u308b","\u304a\u3057\u3044\u308c","\u304a\u3057\u3048\u308b","\u304a\u3057\u3099\u304d\u3099","\u304a\u3057\u3099\u3055\u3093","\u304a\u3057\u3083\u308c","\u304a\u305d\u3089\u304f","\u304a\u305d\u308f\u308b","\u304a\u305f\u304b\u3099\u3044","\u304a\u305f\u304f","\u304a\u305f\u3099\u3084\u304b","\u304a\u3061\u3064\u304f","\u304a\u3063\u3068","\u304a\u3064\u308a","\u304a\u3066\u3099\u304b\u3051","\u304a\u3068\u3057\u3082\u306e","\u304a\u3068\u306a\u3057\u3044","\u304a\u3068\u3099\u308a","\u304a\u3068\u3099\u308d\u304b\u3059","\u304a\u306f\u3099\u3055\u3093","\u304a\u307e\u3044\u308a","\u304a\u3081\u3066\u3099\u3068\u3046","\u304a\u3082\u3044\u3066\u3099","\u304a\u3082\u3046","\u304a\u3082\u305f\u3044","\u304a\u3082\u3061\u3083","\u304a\u3084\u3064","\u304a\u3084\u3086\u3072\u3099","\u304a\u3088\u307b\u3099\u3059","\u304a\u3089\u3093\u305f\u3099","\u304a\u308d\u3059","\u304a\u3093\u304b\u3099\u304f","\u304a\u3093\u3051\u3044","\u304a\u3093\u3057\u3083","\u304a\u3093\u305b\u3093","\u304a\u3093\u305f\u3099\u3093","\u304a\u3093\u3061\u3085\u3046","\u304a\u3093\u3068\u3099\u3051\u3044","\u304b\u3042\u3064","\u304b\u3044\u304b\u3099","\u304b\u3099\u3044\u304d","\u304b\u3099\u3044\u3051\u3093","\u304b\u3099\u3044\u3053\u3046","\u304b\u3044\u3055\u3064","\u304b\u3044\u3057\u3083","\u304b\u3044\u3059\u3044\u3088\u304f","\u304b\u3044\u305b\u3099\u3093","\u304b\u3044\u305d\u3099\u3046\u3068\u3099","\u304b\u3044\u3064\u3046","\u304b\u3044\u3066\u3093","\u304b\u3044\u3068\u3046","\u304b\u3044\u3075\u304f","\u304b\u3099\u3044\u3078\u304d","\u304b\u3044\u307b\u3046","\u304b\u3044\u3088\u3046","\u304b\u3099\u3044\u3089\u3044","\u304b\u3044\u308f","\u304b\u3048\u308b","\u304b\u304a\u308a","\u304b\u304b\u3048\u308b","\u304b\u304b\u3099\u304f","\u304b\u304b\u3099\u3057","\u304b\u304b\u3099\u307f","\u304b\u304f\u3053\u3099","\u304b\u304f\u3068\u304f","\u304b\u3055\u3099\u308b","\u304b\u3099\u305d\u3099\u3046","\u304b\u305f\u3044","\u304b\u305f\u3061","\u304b\u3099\u3061\u3087\u3046","\u304b\u3099\u3063\u304d\u3085\u3046","\u304b\u3099\u3063\u3053\u3046","\u304b\u3099\u3063\u3055\u3093","\u304b\u3099\u3063\u3057\u3087\u3046","\u304b\u306a\u3055\u3099\u308f\u3057","\u304b\u306e\u3046","\u304b\u3099\u306f\u304f","\u304b\u3075\u3099\u304b","\u304b\u307b\u3046","\u304b\u307b\u3053\u3099","\u304b\u307e\u3046","\u304b\u307e\u307b\u3099\u3053","\u304b\u3081\u308c\u304a\u3093","\u304b\u3086\u3044","\u304b\u3088\u3046\u3072\u3099","\u304b\u3089\u3044","\u304b\u308b\u3044","\u304b\u308d\u3046","\u304b\u308f\u304f","\u304b\u308f\u3089","\u304b\u3099\u3093\u304b","\u304b\u3093\u3051\u3044","\u304b\u3093\u3053\u3046","\u304b\u3093\u3057\u3083","\u304b\u3093\u305d\u3046","\u304b\u3093\u305f\u3093","\u304b\u3093\u3061","\u304b\u3099\u3093\u306f\u3099\u308b","\u304d\u3042\u3044","\u304d\u3042\u3064","\u304d\u3044\u308d","\u304d\u3099\u3044\u3093","\u304d\u3046\u3044","\u304d\u3046\u3093","\u304d\u3048\u308b","\u304d\u304a\u3046","\u304d\u304a\u304f","\u304d\u304a\u3061","\u304d\u304a\u3093","\u304d\u304b\u3044","\u304d\u304b\u304f","\u304d\u304b\u3093\u3057\u3083","\u304d\u304d\u3066","\u304d\u304f\u306f\u3099\u308a","\u304d\u304f\u3089\u3051\u3099","\u304d\u3051\u3093\u305b\u3044","\u304d\u3053\u3046","\u304d\u3053\u3048\u308b","\u304d\u3053\u304f","\u304d\u3055\u3044","\u304d\u3055\u304f","\u304d\u3055\u307e","\u304d\u3055\u3089\u304d\u3099","\u304d\u3099\u3057\u3099\u304b\u304b\u3099\u304f","\u304d\u3099\u3057\u304d","\u304d\u3099\u3057\u3099\u305f\u3044\u3051\u3093","\u304d\u3099\u3057\u3099\u306b\u3063\u3066\u3044","\u304d\u3099\u3057\u3099\u3085\u3064\u3057\u3083","\u304d\u3059\u3046","\u304d\u305b\u3044","\u304d\u305b\u304d","\u304d\u305b\u3064","\u304d\u305d\u3046","\u304d\u305d\u3099\u304f","\u304d\u305d\u3099\u3093","\u304d\u305f\u3048\u308b","\u304d\u3061\u3087\u3046","\u304d\u3064\u3048\u3093","\u304d\u3099\u3063\u3061\u308a","\u304d\u3064\u3064\u304d","\u304d\u3064\u306d","\u304d\u3066\u3044","\u304d\u3068\u3099\u3046","\u304d\u3068\u3099\u304f","\u304d\u306a\u3044","\u304d\u306a\u304b\u3099","\u304d\u306a\u3053","\u304d\u306c\u3053\u3099\u3057","\u304d\u306d\u3093","\u304d\u306e\u3046","\u304d\u306e\u3057\u305f","\u304d\u306f\u304f","\u304d\u3072\u3099\u3057\u3044","\u304d\u3072\u3093","\u304d\u3075\u304f","\u304d\u3075\u3099\u3093","\u304d\u307b\u3099\u3046","\u304d\u307b\u3093","\u304d\u307e\u308b","\u304d\u307f\u3064","\u304d\u3080\u3059\u3099\u304b\u3057\u3044","\u304d\u3081\u308b","\u304d\u3082\u305f\u3099\u3081\u3057","\u304d\u3082\u3061","\u304d\u3082\u306e","\u304d\u3083\u304f","\u304d\u3084\u304f","\u304d\u3099\u3085\u3046\u306b\u304f","\u304d\u3088\u3046","\u304d\u3087\u3046\u308a\u3085\u3046","\u304d\u3089\u3044","\u304d\u3089\u304f","\u304d\u308a\u3093","\u304d\u308c\u3044","\u304d\u308c\u3064","\u304d\u308d\u304f","\u304d\u3099\u308d\u3093","\u304d\u308f\u3081\u308b","\u304d\u3099\u3093\u3044\u308d","\u304d\u3093\u304b\u304f\u3057\u3099","\u304d\u3093\u3057\u3099\u3087","\u304d\u3093\u3088\u3046\u3072\u3099","\u304f\u3099\u3042\u3044","\u304f\u3044\u3059\u3099","\u304f\u3046\u304b\u3093","\u304f\u3046\u304d","\u304f\u3046\u304f\u3099\u3093","\u304f\u3046\u3053\u3046","\u304f\u3099\u3046\u305b\u3044","\u304f\u3046\u305d\u3046","\u304f\u3099\u3046\u305f\u3089","\u304f\u3046\u3075\u304f","\u304f\u3046\u307b\u3099","\u304f\u304b\u3093","\u304f\u304d\u3087\u3046","\u304f\u3051\u3099\u3093","\u304f\u3099\u3053\u3046","\u304f\u3055\u3044","\u304f\u3055\u304d","\u304f\u3055\u306f\u3099\u306a","\u304f\u3055\u308b","\u304f\u3057\u3083\u307f","\u304f\u3057\u3087\u3046","\u304f\u3059\u306e\u304d","\u304f\u3059\u308a\u3086\u3072\u3099","\u304f\u305b\u3051\u3099","\u304f\u305b\u3093","\u304f\u3099\u305f\u3044\u3066\u304d","\u304f\u305f\u3099\u3055\u308b","\u304f\u305f\u3072\u3099\u308c\u308b","\u304f\u3061\u3053\u307f","\u304f\u3061\u3055\u304d","\u304f\u3064\u3057\u305f","\u304f\u3099\u3063\u3059\u308a","\u304f\u3064\u308d\u304f\u3099","\u304f\u3068\u3046\u3066\u3093","\u304f\u3068\u3099\u304f","\u304f\u306a\u3093","\u304f\u306d\u304f\u306d","\u304f\u306e\u3046","\u304f\u3075\u3046","\u304f\u307f\u3042\u308f\u305b","\u304f\u307f\u305f\u3066\u308b","\u304f\u3081\u308b","\u304f\u3084\u304f\u3057\u3087","\u304f\u3089\u3059","\u304f\u3089\u3078\u3099\u308b","\u304f\u308b\u307e","\u304f\u308c\u308b","\u304f\u308d\u3046","\u304f\u308f\u3057\u3044","\u304f\u3099\u3093\u304b\u3093","\u304f\u3099\u3093\u3057\u3087\u304f","\u304f\u3099\u3093\u305f\u3044","\u304f\u3099\u3093\u3066","\u3051\u3042\u306a","\u3051\u3044\u304b\u304f","\u3051\u3044\u3051\u3093","\u3051\u3044\u3053","\u3051\u3044\u3055\u3064","\u3051\u3099\u3044\u3057\u3099\u3085\u3064","\u3051\u3044\u305f\u3044","\u3051\u3099\u3044\u306e\u3046\u3057\u3099\u3093","\u3051\u3044\u308c\u304d","\u3051\u3044\u308d","\u3051\u304a\u3068\u3059","\u3051\u304a\u308a\u3082\u306e","\u3051\u3099\u304d\u304b","\u3051\u3099\u304d\u3051\u3099\u3093","\u3051\u3099\u304d\u305f\u3099\u3093","\u3051\u3099\u304d\u3061\u3093","\u3051\u3099\u304d\u3068\u3064","\u3051\u3099\u304d\u306f","\u3051\u3099\u304d\u3084\u304f","\u3051\u3099\u3053\u3046","\u3051\u3099\u3053\u304f\u3057\u3099\u3087\u3046","\u3051\u3099\u3055\u3099\u3044","\u3051\u3055\u304d","\u3051\u3099\u3055\u3099\u3093","\u3051\u3057\u304d","\u3051\u3057\u3053\u3099\u3080","\u3051\u3057\u3087\u3046","\u3051\u3099\u3059\u3068","\u3051\u305f\u306f\u3099","\u3051\u3061\u3083\u3063\u3075\u309a","\u3051\u3061\u3089\u3059","\u3051\u3064\u3042\u3064","\u3051\u3064\u3044","\u3051\u3064\u3048\u304d","\u3051\u3063\u3053\u3093","\u3051\u3064\u3057\u3099\u3087","\u3051\u3063\u305b\u304d","\u3051\u3063\u3066\u3044","\u3051\u3064\u307e\u3064","\u3051\u3099\u3064\u3088\u3046\u3072\u3099","\u3051\u3099\u3064\u308c\u3044","\u3051\u3064\u308d\u3093","\u3051\u3099\u3068\u3099\u304f","\u3051\u3068\u306f\u3099\u3059","\u3051\u3068\u308b","\u3051\u306a\u3051\u3099","\u3051\u306a\u3059","\u3051\u306a\u307f","\u3051\u306c\u304d","\u3051\u3099\u306d\u3064","\u3051\u306d\u3093","\u3051\u306f\u3044","\u3051\u3099\u3072\u3093","\u3051\u3075\u3099\u304b\u3044","\u3051\u3099\u307b\u3099\u304f","\u3051\u307e\u308a","\u3051\u307f\u304b\u308b","\u3051\u3080\u3057","\u3051\u3080\u308a","\u3051\u3082\u306e","\u3051\u3089\u3044","\u3051\u308d\u3051\u308d","\u3051\u308f\u3057\u3044","\u3051\u3093\u3044","\u3051\u3093\u3048\u3064","\u3051\u3093\u304a","\u3051\u3093\u304b","\u3051\u3099\u3093\u304d","\u3051\u3093\u3051\u3099\u3093","\u3051\u3093\u3053\u3046","\u3051\u3093\u3055\u304f","\u3051\u3093\u3057\u3085\u3046","\u3051\u3093\u3059\u3046","\u3051\u3099\u3093\u305d\u3046","\u3051\u3093\u3061\u304f","\u3051\u3093\u3066\u3044","\u3051\u3093\u3068\u3046","\u3051\u3093\u306a\u3044","\u3051\u3093\u306b\u3093","\u3051\u3099\u3093\u3075\u3099\u3064","\u3051\u3093\u307e","\u3051\u3093\u307f\u3093","\u3051\u3093\u3081\u3044","\u3051\u3093\u3089\u3093","\u3051\u3093\u308a","\u3053\u3042\u304f\u307e","\u3053\u3044\u306c","\u3053\u3044\u3072\u3099\u3068","\u3053\u3099\u3046\u3044","\u3053\u3046\u3048\u3093","\u3053\u3046\u304a\u3093","\u3053\u3046\u304b\u3093","\u3053\u3099\u3046\u304d\u3085\u3046","\u3053\u3099\u3046\u3051\u3044","\u3053\u3046\u3053\u3046","\u3053\u3046\u3055\u3044","\u3053\u3046\u3057\u3099","\u3053\u3046\u3059\u3044","\u3053\u3099\u3046\u305b\u3044","\u3053\u3046\u305d\u304f","\u3053\u3046\u305f\u3044","\u3053\u3046\u3061\u3083","\u3053\u3046\u3064\u3046","\u3053\u3046\u3066\u3044","\u3053\u3046\u3068\u3099\u3046","\u3053\u3046\u306a\u3044","\u3053\u3046\u306f\u3044","\u3053\u3099\u3046\u307b\u3046","\u3053\u3099\u3046\u307e\u3093","\u3053\u3046\u3082\u304f","\u3053\u3046\u308a\u3064","\u3053\u3048\u308b","\u3053\u304a\u308a","\u3053\u3099\u304b\u3044","\u3053\u3099\u304b\u3099\u3064","\u3053\u3099\u304b\u3093","\u3053\u304f\u3053\u3099","\u3053\u304f\u3055\u3044","\u3053\u304f\u3068\u3046","\u3053\u304f\u306a\u3044","\u3053\u304f\u306f\u304f","\u3053\u304f\u3099\u307e","\u3053\u3051\u3044","\u3053\u3051\u308b","\u3053\u3053\u306e\u304b","\u3053\u3053\u308d","\u3053\u3055\u3081","\u3053\u3057\u3064","\u3053\u3059\u3046","\u3053\u305b\u3044","\u3053\u305b\u304d","\u3053\u305b\u3099\u3093","\u3053\u305d\u305f\u3099\u3066","\u3053\u305f\u3044","\u3053\u305f\u3048\u308b","\u3053\u305f\u3064","\u3053\u3061\u3087\u3046","\u3053\u3063\u304b","\u3053\u3064\u3053\u3064","\u3053\u3064\u306f\u3099\u3093","\u3053\u3064\u3075\u3099","\u3053\u3066\u3044","\u3053\u3066\u3093","\u3053\u3068\u304b\u3099\u3089","\u3053\u3068\u3057","\u3053\u3068\u306f\u3099","\u3053\u3068\u308a","\u3053\u306a\u3053\u3099\u306a","\u3053\u306d\u3053\u306d","\u3053\u306e\u307e\u307e","\u3053\u306e\u307f","\u3053\u306e\u3088","\u3053\u3099\u306f\u3093","\u3053\u3072\u3064\u3057\u3099","\u3053\u3075\u3046","\u3053\u3075\u3093","\u3053\u307b\u3099\u308c\u308b","\u3053\u3099\u307e\u3042\u3075\u3099\u3089","\u3053\u307e\u304b\u3044","\u3053\u3099\u307e\u3059\u308a","\u3053\u307e\u3064\u306a","\u3053\u307e\u308b","\u3053\u3080\u304d\u3099\u3053","\u3053\u3082\u3057\u3099","\u3053\u3082\u3061","\u3053\u3082\u306e","\u3053\u3082\u3093","\u3053\u3084\u304f","\u3053\u3084\u307e","\u3053\u3086\u3046","\u3053\u3086\u3072\u3099","\u3053\u3088\u3044","\u3053\u3088\u3046","\u3053\u308a\u308b","\u3053\u308c\u304f\u3057\u3087\u3093","\u3053\u308d\u3063\u3051","\u3053\u308f\u3082\u3066","\u3053\u308f\u308c\u308b","\u3053\u3093\u3044\u3093","\u3053\u3093\u304b\u3044","\u3053\u3093\u304d","\u3053\u3093\u3057\u3085\u3046","\u3053\u3093\u3059\u3044","\u3053\u3093\u305f\u3099\u3066","\u3053\u3093\u3068\u3093","\u3053\u3093\u306a\u3093","\u3053\u3093\u3072\u3099\u306b","\u3053\u3093\u307b\u309a\u3093","\u3053\u3093\u307e\u3051","\u3053\u3093\u3084","\u3053\u3093\u308c\u3044","\u3053\u3093\u308f\u304f","\u3055\u3099\u3044\u3048\u304d","\u3055\u3044\u304b\u3044","\u3055\u3044\u304d\u3093","\u3055\u3099\u3044\u3051\u3099\u3093","\u3055\u3099\u3044\u3053","\u3055\u3044\u3057\u3087","\u3055\u3044\u305b\u3044","\u3055\u3099\u3044\u305f\u304f","\u3055\u3099\u3044\u3061\u3085\u3046","\u3055\u3044\u3066\u304d","\u3055\u3099\u3044\u308a\u3087\u3046","\u3055\u3046\u306a","\u3055\u304b\u3044\u3057","\u3055\u304b\u3099\u3059","\u3055\u304b\u306a","\u3055\u304b\u307f\u3061","\u3055\u304b\u3099\u308b","\u3055\u304d\u3099\u3087\u3046","\u3055\u304f\u3057","\u3055\u304f\u3072\u3093","\u3055\u304f\u3089","\u3055\u3053\u304f","\u3055\u3053\u3064","\u3055\u3059\u3099\u304b\u308b","\u3055\u3099\u305b\u304d","\u3055\u305f\u3093","\u3055\u3064\u3048\u3044","\u3055\u3099\u3064\u304a\u3093","\u3055\u3099\u3063\u304b","\u3055\u3099\u3064\u304b\u3099\u304f","\u3055\u3063\u304d\u3087\u304f","\u3055\u3099\u3063\u3057","\u3055\u3064\u3057\u3099\u3093","\u3055\u3099\u3063\u305d\u3046","\u3055\u3064\u305f\u306f\u3099","\u3055\u3064\u307e\u3044\u3082","\u3055\u3066\u3044","\u3055\u3068\u3044\u3082","\u3055\u3068\u3046","\u3055\u3068\u304a\u3084","\u3055\u3068\u3057","\u3055\u3068\u308b","\u3055\u306e\u3046","\u3055\u306f\u3099\u304f","\u3055\u3072\u3099\u3057\u3044","\u3055\u3078\u3099\u3064","\u3055\u307b\u3046","\u3055\u307b\u3068\u3099","\u3055\u307e\u3059","\u3055\u307f\u3057\u3044","\u3055\u307f\u305f\u3099\u308c","\u3055\u3080\u3051","\u3055\u3081\u308b","\u3055\u3084\u3048\u3093\u3068\u3099\u3046","\u3055\u3086\u3046","\u3055\u3088\u3046","\u3055\u3088\u304f","\u3055\u3089\u305f\u3099","\u3055\u3099\u308b\u305d\u306f\u3099","\u3055\u308f\u3084\u304b","\u3055\u308f\u308b","\u3055\u3093\u3044\u3093","\u3055\u3093\u304b","\u3055\u3093\u304d\u3083\u304f","\u3055\u3093\u3053\u3046","\u3055\u3093\u3055\u3044","\u3055\u3099\u3093\u3057\u3087","\u3055\u3093\u3059\u3046","\u3055\u3093\u305b\u3044","\u3055\u3093\u305d","\u3055\u3093\u3061","\u3055\u3093\u307e","\u3055\u3093\u307f","\u3055\u3093\u3089\u3093","\u3057\u3042\u3044","\u3057\u3042\u3051\u3099","\u3057\u3042\u3055\u3063\u3066","\u3057\u3042\u308f\u305b","\u3057\u3044\u304f","\u3057\u3044\u3093","\u3057\u3046\u3061","\u3057\u3048\u3044","\u3057\u304a\u3051","\u3057\u304b\u3044","\u3057\u304b\u304f","\u3057\u3099\u304b\u3093","\u3057\u3053\u3099\u3068","\u3057\u3059\u3046","\u3057\u3099\u305f\u3099\u3044","\u3057\u305f\u3046\u3051","\u3057\u305f\u304d\u3099","\u3057\u305f\u3066","\u3057\u305f\u307f","\u3057\u3061\u3087\u3046","\u3057\u3061\u308a\u3093","\u3057\u3063\u304b\u308a","\u3057\u3064\u3057\u3099","\u3057\u3064\u3082\u3093","\u3057\u3066\u3044","\u3057\u3066\u304d","\u3057\u3066\u3064","\u3057\u3099\u3066\u3093","\u3057\u3099\u3068\u3099\u3046","\u3057\u306a\u304d\u3099\u308c","\u3057\u306a\u3082\u306e","\u3057\u306a\u3093","\u3057\u306d\u307e","\u3057\u306d\u3093","\u3057\u306e\u304f\u3099","\u3057\u306e\u3075\u3099","\u3057\u306f\u3044","\u3057\u306f\u3099\u304b\u308a","\u3057\u306f\u3064","\u3057\u306f\u3089\u3044","\u3057\u306f\u3093","\u3057\u3072\u3087\u3046","\u3057\u3075\u304f","\u3057\u3099\u3075\u3099\u3093","\u3057\u3078\u3044","\u3057\u307b\u3046","\u3057\u307b\u3093","\u3057\u307e\u3046","\u3057\u307e\u308b","\u3057\u307f\u3093","\u3057\u3080\u3051\u308b","\u3057\u3099\u3080\u3057\u3087","\u3057\u3081\u3044","\u3057\u3081\u308b","\u3057\u3082\u3093","\u3057\u3083\u3044\u3093","\u3057\u3083\u3046\u3093","\u3057\u3083\u304a\u3093","\u3057\u3099\u3083\u304b\u3099\u3044\u3082","\u3057\u3084\u304f\u3057\u3087","\u3057\u3083\u304f\u307b\u3046","\u3057\u3083\u3051\u3093","\u3057\u3083\u3053","\u3057\u3083\u3055\u3099\u3044","\u3057\u3083\u3057\u3093","\u3057\u3083\u305b\u3093","\u3057\u3083\u305d\u3046","\u3057\u3083\u305f\u3044","\u3057\u3083\u3061\u3087\u3046","\u3057\u3083\u3063\u304d\u3093","\u3057\u3099\u3083\u307e","\u3057\u3083\u308a\u3093","\u3057\u3083\u308c\u3044","\u3057\u3099\u3086\u3046","\u3057\u3099\u3085\u3046\u3057\u3087","\u3057\u3085\u304f\u306f\u304f","\u3057\u3099\u3085\u3057\u3093","\u3057\u3085\u3063\u305b\u304d","\u3057\u3085\u307f","\u3057\u3085\u3089\u306f\u3099","\u3057\u3099\u3085\u3093\u306f\u3099\u3093","\u3057\u3087\u3046\u304b\u3044","\u3057\u3087\u304f\u305f\u304f","\u3057\u3087\u3063\u3051\u3093","\u3057\u3087\u3068\u3099\u3046","\u3057\u3087\u3082\u3064","\u3057\u3089\u305b\u308b","\u3057\u3089\u3078\u3099\u308b","\u3057\u3093\u304b","\u3057\u3093\u3053\u3046","\u3057\u3099\u3093\u3057\u3099\u3083","\u3057\u3093\u305b\u3044\u3057\u3099","\u3057\u3093\u3061\u304f","\u3057\u3093\u308a\u3093","\u3059\u3042\u3051\u3099","\u3059\u3042\u3057","\u3059\u3042\u306a","\u3059\u3099\u3042\u3093","\u3059\u3044\u3048\u3044","\u3059\u3044\u304b","\u3059\u3044\u3068\u3046","\u3059\u3099\u3044\u3075\u3099\u3093","\u3059\u3044\u3088\u3046\u3072\u3099","\u3059\u3046\u304b\u3099\u304f","\u3059\u3046\u3057\u3099\u3064","\u3059\u3046\u305b\u3093","\u3059\u304a\u3068\u3099\u308a","\u3059\u304d\u307e","\u3059\u304f\u3046","\u3059\u304f\u306a\u3044","\u3059\u3051\u308b","\u3059\u3053\u3099\u3044","\u3059\u3053\u3057","\u3059\u3099\u3055\u3093","\u3059\u3059\u3099\u3057\u3044","\u3059\u3059\u3080","\u3059\u3059\u3081\u308b","\u3059\u3063\u304b\u308a","\u3059\u3099\u3063\u3057\u308a","\u3059\u3099\u3063\u3068","\u3059\u3066\u304d","\u3059\u3066\u308b","\u3059\u306d\u308b","\u3059\u306e\u3053","\u3059\u306f\u305f\u3099","\u3059\u306f\u3099\u3089\u3057\u3044","\u3059\u3099\u3072\u3087\u3046","\u3059\u3099\u3075\u3099\u306c\u308c","\u3059\u3075\u3099\u308a","\u3059\u3075\u308c","\u3059\u3078\u3099\u3066","\u3059\u3078\u3099\u308b","\u3059\u3099\u307b\u3046","\u3059\u307b\u3099\u3093","\u3059\u307e\u3044","\u3059\u3081\u3057","\u3059\u3082\u3046","\u3059\u3084\u304d","\u3059\u3089\u3059\u3089","\u3059\u308b\u3081","\u3059\u308c\u3061\u304b\u3099\u3046","\u3059\u308d\u3063\u3068","\u3059\u308f\u308b","\u3059\u3093\u305b\u3099\u3093","\u3059\u3093\u307b\u309a\u3046","\u305b\u3042\u3075\u3099\u3089","\u305b\u3044\u304b\u3064","\u305b\u3044\u3051\u3099\u3093","\u305b\u3044\u3057\u3099","\u305b\u3044\u3088\u3046","\u305b\u304a\u3046","\u305b\u304b\u3044\u304b\u3093","\u305b\u304d\u306b\u3093","\u305b\u304d\u3080","\u305b\u304d\u3086","\u305b\u304d\u3089\u3093\u3046\u3093","\u305b\u3051\u3093","\u305b\u3053\u3046","\u305b\u3059\u3057\u3099","\u305b\u305f\u3044","\u305b\u305f\u3051","\u305b\u3063\u304b\u304f","\u305b\u3063\u304d\u3083\u304f","\u305b\u3099\u3063\u304f","\u305b\u3063\u3051\u3093","\u305b\u3063\u3053\u3064","\u305b\u3063\u3055\u305f\u304f\u307e","\u305b\u3064\u305d\u3099\u304f","\u305b\u3064\u305f\u3099\u3093","\u305b\u3064\u3066\u3099\u3093","\u305b\u3063\u306f\u309a\u3093","\u305b\u3064\u3072\u3099","\u305b\u3064\u3075\u3099\u3093","\u305b\u3064\u3081\u3044","\u305b\u3064\u308a\u3064","\u305b\u306a\u304b","\u305b\u306e\u3072\u3099","\u305b\u306f\u306f\u3099","\u305b\u3072\u3099\u308d","\u305b\u307b\u3099\u306d","\u305b\u307e\u3044","\u305b\u307e\u308b","\u305b\u3081\u308b","\u305b\u3082\u305f\u308c","\u305b\u308a\u3075","\u305b\u3099\u3093\u3042\u304f","\u305b\u3093\u3044","\u305b\u3093\u3048\u3044","\u305b\u3093\u304b","\u305b\u3093\u304d\u3087","\u305b\u3093\u304f","\u305b\u3093\u3051\u3099\u3093","\u305b\u3099\u3093\u3053\u3099","\u305b\u3093\u3055\u3044","\u305b\u3093\u3057\u3085","\u305b\u3093\u3059\u3044","\u305b\u3093\u305b\u3044","\u305b\u3093\u305d\u3099","\u305b\u3093\u305f\u304f","\u305b\u3093\u3061\u3087\u3046","\u305b\u3093\u3066\u3044","\u305b\u3093\u3068\u3046","\u305b\u3093\u306c\u304d","\u305b\u3093\u306d\u3093","\u305b\u3093\u306f\u309a\u3044","\u305b\u3099\u3093\u3075\u3099","\u305b\u3099\u3093\u307b\u309a\u3046","\u305b\u3093\u3080","\u305b\u3093\u3081\u3093\u3057\u3099\u3087","\u305b\u3093\u3082\u3093","\u305b\u3093\u3084\u304f","\u305b\u3093\u3086\u3046","\u305b\u3093\u3088\u3046","\u305b\u3099\u3093\u3089","\u305b\u3099\u3093\u308a\u3083\u304f","\u305b\u3093\u308c\u3044","\u305b\u3093\u308d","\u305d\u3042\u304f","\u305d\u3044\u3068\u3051\u3099\u308b","\u305d\u3044\u306d","\u305d\u3046\u304b\u3099\u3093\u304d\u3087\u3046","\u305d\u3046\u304d","\u305d\u3046\u3053\u3099","\u305d\u3046\u3057\u3093","\u305d\u3046\u305f\u3099\u3093","\u305d\u3046\u306a\u3093","\u305d\u3046\u3072\u3099","\u305d\u3046\u3081\u3093","\u305d\u3046\u308a","\u305d\u3048\u3082\u306e","\u305d\u3048\u3093","\u305d\u304b\u3099\u3044","\u305d\u3051\u3099\u304d","\u305d\u3053\u3046","\u305d\u3053\u305d\u3053","\u305d\u3055\u3099\u3044","\u305d\u3057\u306a","\u305d\u305b\u3044","\u305d\u305b\u3093","\u305d\u305d\u304f\u3099","\u305d\u305f\u3099\u3066\u308b","\u305d\u3064\u3046","\u305d\u3064\u3048\u3093","\u305d\u3063\u304b\u3093","\u305d\u3064\u304d\u3099\u3087\u3046","\u305d\u3063\u3051\u3064","\u305d\u3063\u3053\u3046","\u305d\u3063\u305b\u3093","\u305d\u3063\u3068","\u305d\u3068\u304b\u3099\u308f","\u305d\u3068\u3064\u3099\u3089","\u305d\u306a\u3048\u308b","\u305d\u306a\u305f","\u305d\u3075\u307b\u3099","\u305d\u307b\u3099\u304f","\u305d\u307b\u3099\u308d","\u305d\u307e\u3064","\u305d\u307e\u308b","\u305d\u3080\u304f","\u305d\u3080\u308a\u3048","\u305d\u3081\u308b","\u305d\u3082\u305d\u3082","\u305d\u3088\u304b\u305b\u3099","\u305d\u3089\u307e\u3081","\u305d\u308d\u3046","\u305d\u3093\u304b\u3044","\u305d\u3093\u3051\u3044","\u305d\u3093\u3055\u3099\u3044","\u305d\u3093\u3057\u3064","\u305d\u3093\u305d\u3099\u304f","\u305d\u3093\u3061\u3087\u3046","\u305d\u3099\u3093\u3072\u3099","\u305d\u3099\u3093\u3075\u3099\u3093","\u305d\u3093\u307f\u3093","\u305f\u3042\u3044","\u305f\u3044\u3044\u3093","\u305f\u3044\u3046\u3093","\u305f\u3044\u3048\u304d","\u305f\u3044\u304a\u3046","\u305f\u3099\u3044\u304b\u3099\u304f","\u305f\u3044\u304d","\u305f\u3044\u304f\u3099\u3046","\u305f\u3044\u3051\u3093","\u305f\u3044\u3053","\u305f\u3044\u3055\u3099\u3044","\u305f\u3099\u3044\u3057\u3099\u3087\u3046\u3075\u3099","\u305f\u3099\u3044\u3059\u304d","\u305f\u3044\u305b\u3064","\u305f\u3044\u305d\u3046","\u305f\u3099\u3044\u305f\u3044","\u305f\u3044\u3061\u3087\u3046","\u305f\u3044\u3066\u3044","\u305f\u3099\u3044\u3068\u3099\u3053\u308d","\u305f\u3044\u306a\u3044","\u305f\u3044\u306d\u3064","\u305f\u3044\u306e\u3046","\u305f\u3044\u306f\u3093","\u305f\u3099\u3044\u3072\u3087\u3046","\u305f\u3044\u3075\u3046","\u305f\u3044\u3078\u3093","\u305f\u3044\u307b","\u305f\u3044\u307e\u3064\u306f\u3099\u306a","\u305f\u3044\u307f\u3093\u304f\u3099","\u305f\u3044\u3080","\u305f\u3044\u3081\u3093","\u305f\u3044\u3084\u304d","\u305f\u3044\u3088\u3046","\u305f\u3044\u3089","\u305f\u3044\u308a\u3087\u304f","\u305f\u3044\u308b","\u305f\u3044\u308f\u3093","\u305f\u3046\u3048","\u305f\u3048\u308b","\u305f\u304a\u3059","\u305f\u304a\u308b","\u305f\u304a\u308c\u308b","\u305f\u304b\u3044","\u305f\u304b\u306d","\u305f\u304d\u3072\u3099","\u305f\u304f\u3055\u3093","\u305f\u3053\u304f","\u305f\u3053\u3084\u304d","\u305f\u3055\u3044","\u305f\u3057\u3055\u3099\u3093","\u305f\u3099\u3057\u3099\u3083\u308c","\u305f\u3059\u3051\u308b","\u305f\u3059\u3099\u3055\u308f\u308b","\u305f\u305d\u304b\u3099\u308c","\u305f\u305f\u304b\u3046","\u305f\u305f\u304f","\u305f\u305f\u3099\u3057\u3044","\u305f\u305f\u307f","\u305f\u3061\u306f\u3099\u306a","\u305f\u3099\u3063\u304b\u3044","\u305f\u3099\u3063\u304d\u3083\u304f","\u305f\u3099\u3063\u3053","\u305f\u3099\u3063\u3057\u3085\u3064","\u305f\u3099\u3063\u305f\u3044","\u305f\u3066\u308b","\u305f\u3068\u3048\u308b","\u305f\u306a\u306f\u3099\u305f","\u305f\u306b\u3093","\u305f\u306c\u304d","\u305f\u306e\u3057\u307f","\u305f\u306f\u3064","\u305f\u3075\u3099\u3093","\u305f\u3078\u3099\u308b","\u305f\u307b\u3099\u3046","\u305f\u307e\u3053\u3099","\u305f\u307e\u308b","\u305f\u3099\u3080\u308b","\u305f\u3081\u3044\u304d","\u305f\u3081\u3059","\u305f\u3081\u308b","\u305f\u3082\u3064","\u305f\u3084\u3059\u3044","\u305f\u3088\u308b","\u305f\u3089\u3059","\u305f\u308a\u304d\u307b\u3093\u304b\u3099\u3093","\u305f\u308a\u3087\u3046","\u305f\u308a\u308b","\u305f\u308b\u3068","\u305f\u308c\u308b","\u305f\u308c\u3093\u3068","\u305f\u308d\u3063\u3068","\u305f\u308f\u3080\u308c\u308b","\u305f\u3099\u3093\u3042\u3064","\u305f\u3093\u3044","\u305f\u3093\u304a\u3093","\u305f\u3093\u304b","\u305f\u3093\u304d","\u305f\u3093\u3051\u3093","\u305f\u3093\u3053\u3099","\u305f\u3093\u3055\u3093","\u305f\u3093\u3057\u3099\u3087\u3046\u3072\u3099","\u305f\u3099\u3093\u305b\u3044","\u305f\u3093\u305d\u304f","\u305f\u3093\u305f\u3044","\u305f\u3099\u3093\u3061","\u305f\u3093\u3066\u3044","\u305f\u3093\u3068\u3046","\u305f\u3099\u3093\u306a","\u305f\u3093\u306b\u3093","\u305f\u3099\u3093\u306d\u3064","\u305f\u3093\u306e\u3046","\u305f\u3093\u3072\u309a\u3093","\u305f\u3099\u3093\u307b\u3099\u3046","\u305f\u3093\u307e\u3064","\u305f\u3093\u3081\u3044","\u305f\u3099\u3093\u308c\u3064","\u305f\u3099\u3093\u308d","\u305f\u3099\u3093\u308f","\u3061\u3042\u3044","\u3061\u3042\u3093","\u3061\u3044\u304d","\u3061\u3044\u3055\u3044","\u3061\u3048\u3093","\u3061\u304b\u3044","\u3061\u304b\u3089","\u3061\u304d\u3085\u3046","\u3061\u304d\u3093","\u3061\u3051\u3044\u3059\u3099","\u3061\u3051\u3093","\u3061\u3053\u304f","\u3061\u3055\u3044","\u3061\u3057\u304d","\u3061\u3057\u308a\u3087\u3046","\u3061\u305b\u3044","\u3061\u305d\u3046","\u3061\u305f\u3044","\u3061\u305f\u3093","\u3061\u3061\u304a\u3084","\u3061\u3064\u3057\u3099\u3087","\u3061\u3066\u304d","\u3061\u3066\u3093","\u3061\u306c\u304d","\u3061\u306c\u308a","\u3061\u306e\u3046","\u3061\u3072\u3087\u3046","\u3061\u3078\u3044\u305b\u3093","\u3061\u307b\u3046","\u3061\u307e\u305f","\u3061\u307f\u3064","\u3061\u307f\u3068\u3099\u308d","\u3061\u3081\u3044\u3068\u3099","\u3061\u3083\u3093\u3053\u306a\u3078\u3099","\u3061\u3085\u3046\u3044","\u3061\u3086\u308a\u3087\u304f","\u3061\u3087\u3046\u3057","\u3061\u3087\u3055\u304f\u3051\u3093","\u3061\u3089\u3057","\u3061\u3089\u307f","\u3061\u308a\u304b\u3099\u307f","\u3061\u308a\u3087\u3046","\u3061\u308b\u3068\u3099","\u3061\u308f\u308f","\u3061\u3093\u305f\u3044","\u3061\u3093\u3082\u304f","\u3064\u3044\u304b","\u3064\u3044\u305f\u3061","\u3064\u3046\u304b","\u3064\u3046\u3057\u3099\u3087\u3046","\u3064\u3046\u306f\u3093","\u3064\u3046\u308f","\u3064\u304b\u3046","\u3064\u304b\u308c\u308b","\u3064\u304f\u306d","\u3064\u304f\u308b","\u3064\u3051\u306d","\u3064\u3051\u308b","\u3064\u3053\u3099\u3046","\u3064\u305f\u3048\u308b","\u3064\u3064\u3099\u304f","\u3064\u3064\u3057\u3099","\u3064\u3064\u3080","\u3064\u3068\u3081\u308b","\u3064\u306a\u304b\u3099\u308b","\u3064\u306a\u307f","\u3064\u306d\u3064\u3099\u306d","\u3064\u306e\u308b","\u3064\u3075\u3099\u3059","\u3064\u307e\u3089\u306a\u3044","\u3064\u307e\u308b","\u3064\u307f\u304d","\u3064\u3081\u305f\u3044","\u3064\u3082\u308a","\u3064\u3082\u308b","\u3064\u3088\u3044","\u3064\u308b\u307b\u3099","\u3064\u308b\u307f\u304f","\u3064\u308f\u3082\u306e","\u3064\u308f\u308a","\u3066\u3042\u3057","\u3066\u3042\u3066","\u3066\u3042\u307f","\u3066\u3044\u304a\u3093","\u3066\u3044\u304b","\u3066\u3044\u304d","\u3066\u3044\u3051\u3044","\u3066\u3044\u3053\u304f","\u3066\u3044\u3055\u3064","\u3066\u3044\u3057","\u3066\u3044\u305b\u3044","\u3066\u3044\u305f\u3044","\u3066\u3044\u3068\u3099","\u3066\u3044\u306d\u3044","\u3066\u3044\u3072\u3087\u3046","\u3066\u3044\u3078\u3093","\u3066\u3044\u307b\u3099\u3046","\u3066\u3046\u3061","\u3066\u304a\u304f\u308c","\u3066\u304d\u3068\u3046","\u3066\u304f\u3072\u3099","\u3066\u3099\u3053\u307b\u3099\u3053","\u3066\u3055\u304d\u3099\u3087\u3046","\u3066\u3055\u3051\u3099","\u3066\u3059\u308a","\u3066\u305d\u3046","\u3066\u3061\u304b\u3099\u3044","\u3066\u3061\u3087\u3046","\u3066\u3064\u304b\u3099\u304f","\u3066\u3064\u3064\u3099\u304d","\u3066\u3099\u3063\u306f\u309a","\u3066\u3064\u307b\u3099\u3046","\u3066\u3064\u3084","\u3066\u3099\u306c\u304b\u3048","\u3066\u306c\u304d","\u3066\u306c\u304f\u3099\u3044","\u3066\u306e\u3072\u3089","\u3066\u306f\u3044","\u3066\u3075\u3099\u304f\u308d","\u3066\u3075\u305f\u3099","\u3066\u307b\u3068\u3099\u304d","\u3066\u307b\u3093","\u3066\u307e\u3048","\u3066\u307e\u304d\u3059\u3099\u3057","\u3066\u307f\u3057\u3099\u304b","\u3066\u307f\u3084\u3051\u3099","\u3066\u3089\u3059","\u3066\u308c\u3072\u3099","\u3066\u308f\u3051","\u3066\u308f\u305f\u3057","\u3066\u3099\u3093\u3042\u3064","\u3066\u3093\u3044\u3093","\u3066\u3093\u304b\u3044","\u3066\u3093\u304d","\u3066\u3093\u304f\u3099","\u3066\u3093\u3051\u3093","\u3066\u3093\u3053\u3099\u304f","\u3066\u3093\u3055\u3044","\u3066\u3093\u3057","\u3066\u3093\u3059\u3046","\u3066\u3099\u3093\u3061","\u3066\u3093\u3066\u304d","\u3066\u3093\u3068\u3046","\u3066\u3093\u306a\u3044","\u3066\u3093\u3075\u309a\u3089","\u3066\u3093\u307b\u3099\u3046\u305f\u3099\u3044","\u3066\u3093\u3081\u3064","\u3066\u3093\u3089\u3093\u304b\u3044","\u3066\u3099\u3093\u308a\u3087\u304f","\u3066\u3099\u3093\u308f","\u3068\u3099\u3042\u3044","\u3068\u3044\u308c","\u3068\u3099\u3046\u304b\u3093","\u3068\u3046\u304d\u3085\u3046","\u3068\u3099\u3046\u304f\u3099","\u3068\u3046\u3057","\u3068\u3046\u3080\u304d\u3099","\u3068\u304a\u3044","\u3068\u304a\u304b","\u3068\u304a\u304f","\u3068\u304a\u3059","\u3068\u304a\u308b","\u3068\u304b\u3044","\u3068\u304b\u3059","\u3068\u304d\u304a\u308a","\u3068\u304d\u3068\u3099\u304d","\u3068\u304f\u3044","\u3068\u304f\u3057\u3085\u3046","\u3068\u304f\u3066\u3093","\u3068\u304f\u306b","\u3068\u304f\u3078\u3099\u3064","\u3068\u3051\u3044","\u3068\u3051\u308b","\u3068\u3053\u3084","\u3068\u3055\u304b","\u3068\u3057\u3087\u304b\u3093","\u3068\u305d\u3046","\u3068\u305f\u3093","\u3068\u3061\u3085\u3046","\u3068\u3063\u304d\u3085\u3046","\u3068\u3063\u304f\u3093","\u3068\u3064\u305b\u3099\u3093","\u3068\u3064\u306b\u3085\u3046","\u3068\u3068\u3099\u3051\u308b","\u3068\u3068\u306e\u3048\u308b","\u3068\u306a\u3044","\u3068\u306a\u3048\u308b","\u3068\u306a\u308a","\u3068\u306e\u3055\u307e","\u3068\u306f\u3099\u3059","\u3068\u3099\u3075\u3099\u304b\u3099\u308f","\u3068\u307b\u3046","\u3068\u307e\u308b","\u3068\u3081\u308b","\u3068\u3082\u305f\u3099\u3061","\u3068\u3082\u308b","\u3068\u3099\u3088\u3046\u3072\u3099","\u3068\u3089\u3048\u308b","\u3068\u3093\u304b\u3064","\u3068\u3099\u3093\u3075\u3099\u308a","\u306a\u3044\u304b\u304f","\u306a\u3044\u3053\u3046","\u306a\u3044\u3057\u3087","\u306a\u3044\u3059","\u306a\u3044\u305b\u3093","\u306a\u3044\u305d\u3046","\u306a\u304a\u3059","\u306a\u304b\u3099\u3044","\u306a\u304f\u3059","\u306a\u3051\u3099\u308b","\u306a\u3053\u3046\u3068\u3099","\u306a\u3055\u3051","\u306a\u305f\u3066\u3099\u3053\u3053","\u306a\u3063\u3068\u3046","\u306a\u3064\u3084\u3059\u307f","\u306a\u306a\u304a\u3057","\u306a\u306b\u3053\u3099\u3068","\u306a\u306b\u3082\u306e","\u306a\u306b\u308f","\u306a\u306e\u304b","\u306a\u3075\u305f\u3099","\u306a\u307e\u3044\u304d","\u306a\u307e\u3048","\u306a\u307e\u307f","\u306a\u307f\u305f\u3099","\u306a\u3081\u3089\u304b","\u306a\u3081\u308b","\u306a\u3084\u3080","\u306a\u3089\u3046","\u306a\u3089\u3072\u3099","\u306a\u3089\u3075\u3099","\u306a\u308c\u308b","\u306a\u308f\u3068\u3072\u3099","\u306a\u308f\u306f\u3099\u308a","\u306b\u3042\u3046","\u306b\u3044\u304b\u3099\u305f","\u306b\u3046\u3051","\u306b\u304a\u3044","\u306b\u304b\u3044","\u306b\u304b\u3099\u3066","\u306b\u304d\u3072\u3099","\u306b\u304f\u3057\u307f","\u306b\u304f\u307e\u3093","\u306b\u3051\u3099\u308b","\u306b\u3055\u3093\u304b\u305f\u3093\u305d","\u306b\u3057\u304d","\u306b\u305b\u3082\u306e","\u306b\u3061\u3057\u3099\u3087\u3046","\u306b\u3061\u3088\u3046\u3072\u3099","\u306b\u3063\u304b","\u306b\u3063\u304d","\u306b\u3063\u3051\u3044","\u306b\u3063\u3053\u3046","\u306b\u3063\u3055\u3093","\u306b\u3063\u3057\u3087\u304f","\u306b\u3063\u3059\u3046","\u306b\u3063\u305b\u304d","\u306b\u3063\u3066\u3044","\u306b\u306a\u3046","\u306b\u307b\u3093","\u306b\u307e\u3081","\u306b\u3082\u3064","\u306b\u3084\u308a","\u306b\u3085\u3046\u3044\u3093","\u306b\u308a\u3093\u3057\u3083","\u306b\u308f\u3068\u308a","\u306b\u3093\u3044","\u306b\u3093\u304b","\u306b\u3093\u304d","\u306b\u3093\u3051\u3099\u3093","\u306b\u3093\u3057\u304d","\u306b\u3093\u3059\u3099\u3046","\u306b\u3093\u305d\u3046","\u306b\u3093\u305f\u3044","\u306b\u3093\u3061","\u306b\u3093\u3066\u3044","\u306b\u3093\u306b\u304f","\u306b\u3093\u3075\u309a","\u306b\u3093\u307e\u308a","\u306b\u3093\u3080","\u306b\u3093\u3081\u3044","\u306b\u3093\u3088\u3046","\u306c\u3044\u304f\u304d\u3099","\u306c\u304b\u3059","\u306c\u304f\u3099\u3044\u3068\u308b","\u306c\u304f\u3099\u3046","\u306c\u304f\u3082\u308a","\u306c\u3059\u3080","\u306c\u307e\u3048\u3072\u3099","\u306c\u3081\u308a","\u306c\u3089\u3059","\u306c\u3093\u3061\u3083\u304f","\u306d\u3042\u3051\u3099","\u306d\u3044\u304d","\u306d\u3044\u308b","\u306d\u3044\u308d","\u306d\u304f\u3099\u305b","\u306d\u304f\u305f\u3044","\u306d\u304f\u3089","\u306d\u3053\u305b\u3099","\u306d\u3053\u3080","\u306d\u3055\u3051\u3099","\u306d\u3059\u3053\u3099\u3059","\u306d\u305d\u3078\u3099\u308b","\u306d\u305f\u3099\u3093","\u306d\u3064\u3044","\u306d\u3063\u3057\u3093","\u306d\u3064\u305d\u3099\u3046","\u306d\u3063\u305f\u3044\u304d\u3099\u3087","\u306d\u3075\u3099\u305d\u304f","\u306d\u3075\u305f\u3099","\u306d\u307b\u3099\u3046","\u306d\u307b\u308a\u306f\u307b\u308a","\u306d\u307e\u304d","\u306d\u307e\u308f\u3057","\u306d\u307f\u307f","\u306d\u3080\u3044","\u306d\u3080\u305f\u3044","\u306d\u3082\u3068","\u306d\u3089\u3046","\u306d\u308f\u3055\u3099","\u306d\u3093\u3044\u308a","\u306d\u3093\u304a\u3057","\u306d\u3093\u304b\u3093","\u306d\u3093\u304d\u3093","\u306d\u3093\u304f\u3099","\u306d\u3093\u3055\u3099","\u306d\u3093\u3057","\u306d\u3093\u3061\u3083\u304f","\u306d\u3093\u3068\u3099","\u306d\u3093\u3072\u309a","\u306d\u3093\u3075\u3099\u3064","\u306d\u3093\u307e\u3064","\u306d\u3093\u308a\u3087\u3046","\u306d\u3093\u308c\u3044","\u306e\u3044\u3059\u3099","\u306e\u304a\u3064\u3099\u307e","\u306e\u304b\u3099\u3059","\u306e\u304d\u306a\u307f","\u306e\u3053\u304d\u3099\u308a","\u306e\u3053\u3059","\u306e\u3053\u308b","\u306e\u305b\u308b","\u306e\u305d\u3099\u304f","\u306e\u305d\u3099\u3080","\u306e\u305f\u307e\u3046","\u306e\u3061\u307b\u3068\u3099","\u306e\u3063\u304f","\u306e\u306f\u3099\u3059","\u306e\u306f\u3089","\u306e\u3078\u3099\u308b","\u306e\u307b\u3099\u308b","\u306e\u307f\u3082\u306e","\u306e\u3084\u307e","\u306e\u3089\u3044\u306c","\u306e\u3089\u306d\u3053","\u306e\u308a\u3082\u306e","\u306e\u308a\u3086\u304d","\u306e\u308c\u3093","\u306e\u3093\u304d","\u306f\u3099\u3042\u3044","\u306f\u3042\u304f","\u306f\u3099\u3042\u3055\u3093","\u306f\u3099\u3044\u304b","\u306f\u3099\u3044\u304f","\u306f\u3044\u3051\u3093","\u306f\u3044\u3053\u3099","\u306f\u3044\u3057\u3093","\u306f\u3044\u3059\u3044","\u306f\u3044\u305b\u3093","\u306f\u3044\u305d\u3046","\u306f\u3044\u3061","\u306f\u3099\u3044\u306f\u3099\u3044","\u306f\u3044\u308c\u3064","\u306f\u3048\u308b","\u306f\u304a\u308b","\u306f\u304b\u3044","\u306f\u3099\u304b\u308a","\u306f\u304b\u308b","\u306f\u304f\u3057\u3085","\u306f\u3051\u3093","\u306f\u3053\u3075\u3099","\u306f\u3055\u307f","\u306f\u3055\u3093","\u306f\u3057\u3053\u3099","\u306f\u3099\u3057\u3087","\u306f\u3057\u308b","\u306f\u305b\u308b","\u306f\u309a\u305d\u3053\u3093","\u306f\u305d\u3093","\u306f\u305f\u3093","\u306f\u3061\u307f\u3064","\u306f\u3064\u304a\u3093","\u306f\u3063\u304b\u304f","\u306f\u3064\u3099\u304d","\u306f\u3063\u304d\u308a","\u306f\u3063\u304f\u3064","\u306f\u3063\u3051\u3093","\u306f\u3063\u3053\u3046","\u306f\u3063\u3055\u3093","\u306f\u3063\u3057\u3093","\u306f\u3063\u305f\u3064","\u306f\u3063\u3061\u3085\u3046","\u306f\u3063\u3066\u3093","\u306f\u3063\u3072\u309a\u3087\u3046","\u306f\u3063\u307b\u309a\u3046","\u306f\u306a\u3059","\u306f\u306a\u3072\u3099","\u306f\u306b\u304b\u3080","\u306f\u3075\u3099\u3089\u3057","\u306f\u307f\u304b\u3099\u304d","\u306f\u3080\u304b\u3046","\u306f\u3081\u3064","\u306f\u3084\u3044","\u306f\u3084\u3057","\u306f\u3089\u3046","\u306f\u308d\u3046\u3043\u3093","\u306f\u308f\u3044","\u306f\u3093\u3044","\u306f\u3093\u3048\u3044","\u306f\u3093\u304a\u3093","\u306f\u3093\u304b\u304f","\u306f\u3093\u304d\u3087\u3046","\u306f\u3099\u3093\u304f\u3099\u307f","\u306f\u3093\u3053","\u306f\u3093\u3057\u3083","\u306f\u3093\u3059\u3046","\u306f\u3093\u305f\u3099\u3093","\u306f\u309a\u3093\u3061","\u306f\u309a\u3093\u3064","\u306f\u3093\u3066\u3044","\u306f\u3093\u3068\u3057","\u306f\u3093\u306e\u3046","\u306f\u3093\u306f\u309a","\u306f\u3093\u3075\u3099\u3093","\u306f\u3093\u3078\u309a\u3093","\u306f\u3093\u307b\u3099\u3046\u304d","\u306f\u3093\u3081\u3044","\u306f\u3093\u3089\u3093","\u306f\u3093\u308d\u3093","\u3072\u3044\u304d","\u3072\u3046\u3093","\u3072\u3048\u308b","\u3072\u304b\u304f","\u3072\u304b\u308a","\u3072\u304b\u308b","\u3072\u304b\u3093","\u3072\u304f\u3044","\u3072\u3051\u3064","\u3072\u3053\u3046\u304d","\u3072\u3053\u304f","\u3072\u3055\u3044","\u3072\u3055\u3057\u3075\u3099\u308a","\u3072\u3055\u3093","\u3072\u3099\u3057\u3099\u3085\u3064\u304b\u3093","\u3072\u3057\u3087","\u3072\u305d\u304b","\u3072\u305d\u3080","\u3072\u305f\u3080\u304d","\u3072\u305f\u3099\u308a","\u3072\u305f\u308b","\u3072\u3064\u304d\u3099","\u3072\u3063\u3053\u3057","\u3072\u3063\u3057","\u3072\u3064\u3057\u3099\u3085\u3072\u3093","\u3072\u3063\u3059","\u3072\u3064\u305b\u3099\u3093","\u3072\u309a\u3063\u305f\u308a","\u3072\u309a\u3063\u3061\u308a","\u3072\u3064\u3088\u3046","\u3072\u3066\u3044","\u3072\u3068\u3053\u3099\u307f","\u3072\u306a\u307e\u3064\u308a","\u3072\u306a\u3093","\u3072\u306d\u308b","\u3072\u306f\u3093","\u3072\u3072\u3099\u304f","\u3072\u3072\u3087\u3046","\u3072\u307b\u3046","\u3072\u307e\u308f\u308a","\u3072\u307e\u3093","\u3072\u307f\u3064","\u3072\u3081\u3044","\u3072\u3081\u3057\u3099\u3057","\u3072\u3084\u3051","\u3072\u3084\u3059","\u3072\u3088\u3046","\u3072\u3099\u3087\u3046\u304d","\u3072\u3089\u304b\u3099\u306a","\u3072\u3089\u304f","\u3072\u308a\u3064","\u3072\u308a\u3087\u3046","\u3072\u308b\u307e","\u3072\u308b\u3084\u3059\u307f","\u3072\u308c\u3044","\u3072\u308d\u3044","\u3072\u308d\u3046","\u3072\u308d\u304d","\u3072\u308d\u3086\u304d","\u3072\u3093\u304b\u304f","\u3072\u3093\u3051\u3064","\u3072\u3093\u3053\u3093","\u3072\u3093\u3057\u3085","\u3072\u3093\u305d\u3046","\u3072\u309a\u3093\u3061","\u3072\u3093\u306f\u309a\u3093","\u3072\u3099\u3093\u307b\u3099\u3046","\u3075\u3042\u3093","\u3075\u3044\u3046\u3061","\u3075\u3046\u3051\u3044","\u3075\u3046\u305b\u3093","\u3075\u309a\u3046\u305f\u308d\u3046","\u3075\u3046\u3068\u3046","\u3075\u3046\u3075","\u3075\u3048\u308b","\u3075\u304a\u3093","\u3075\u304b\u3044","\u3075\u304d\u3093","\u3075\u304f\u3055\u3099\u3064","\u3075\u304f\u3075\u3099\u304f\u308d","\u3075\u3053\u3046","\u3075\u3055\u3044","\u3075\u3057\u304d\u3099","\u3075\u3057\u3099\u307f","\u3075\u3059\u307e","\u3075\u305b\u3044","\u3075\u305b\u304f\u3099","\u3075\u305d\u304f","\u3075\u3099\u305f\u306b\u304f","\u3075\u305f\u3093","\u3075\u3061\u3087\u3046","\u3075\u3064\u3046","\u3075\u3064\u304b","\u3075\u3063\u304b\u3064","\u3075\u3063\u304d","\u3075\u3063\u3053\u304f","\u3075\u3099\u3068\u3099\u3046","\u3075\u3068\u308b","\u3075\u3068\u3093","\u3075\u306e\u3046","\u3075\u306f\u3044","\u3075\u3072\u3087\u3046","\u3075\u3078\u3093","\u3075\u307e\u3093","\u3075\u307f\u3093","\u3075\u3081\u3064","\u3075\u3081\u3093","\u3075\u3088\u3046","\u3075\u308a\u3053","\u3075\u308a\u308b","\u3075\u308b\u3044","\u3075\u3093\u3044\u304d","\u3075\u3099\u3093\u304b\u3099\u304f","\u3075\u3099\u3093\u304f\u3099","\u3075\u3093\u3057\u3064","\u3075\u3099\u3093\u305b\u304d","\u3075\u3093\u305d\u3046","\u3075\u3099\u3093\u307b\u309a\u3046","\u3078\u3044\u3042\u3093","\u3078\u3044\u304a\u3093","\u3078\u3044\u304b\u3099\u3044","\u3078\u3044\u304d","\u3078\u3044\u3051\u3099\u3093","\u3078\u3044\u3053\u3046","\u3078\u3044\u3055","\u3078\u3044\u3057\u3083","\u3078\u3044\u305b\u3064","\u3078\u3044\u305d","\u3078\u3044\u305f\u304f","\u3078\u3044\u3066\u3093","\u3078\u3044\u306d\u3064","\u3078\u3044\u308f","\u3078\u304d\u304b\u3099","\u3078\u3053\u3080","\u3078\u3099\u306b\u3044\u308d","\u3078\u3099\u306b\u3057\u3087\u3046\u304b\u3099","\u3078\u3089\u3059","\u3078\u3093\u304b\u3093","\u3078\u3099\u3093\u304d\u3087\u3046","\u3078\u3099\u3093\u3053\u3099\u3057","\u3078\u3093\u3055\u3044","\u3078\u3093\u305f\u3044","\u3078\u3099\u3093\u308a","\u307b\u3042\u3093","\u307b\u3044\u304f","\u307b\u3099\u3046\u304d\u3099\u3087","\u307b\u3046\u3053\u304f","\u307b\u3046\u305d\u3046","\u307b\u3046\u307b\u3046","\u307b\u3046\u3082\u3093","\u307b\u3046\u308a\u3064","\u307b\u3048\u308b","\u307b\u304a\u3093","\u307b\u304b\u3093","\u307b\u304d\u3087\u3046","\u307b\u3099\u304d\u3093","\u307b\u304f\u308d","\u307b\u3051\u3064","\u307b\u3051\u3093","\u307b\u3053\u3046","\u307b\u3053\u308b","\u307b\u3057\u3044","\u307b\u3057\u3064","\u307b\u3057\u3085","\u307b\u3057\u3087\u3046","\u307b\u305b\u3044","\u307b\u305d\u3044","\u307b\u305d\u304f","\u307b\u305f\u3066","\u307b\u305f\u308b","\u307b\u309a\u3061\u3075\u3099\u304f\u308d","\u307b\u3063\u304d\u3087\u304f","\u307b\u3063\u3055","\u307b\u3063\u305f\u3093","\u307b\u3068\u3093\u3068\u3099","\u307b\u3081\u308b","\u307b\u3093\u3044","\u307b\u3093\u304d","\u307b\u3093\u3051","\u307b\u3093\u3057\u3064","\u307b\u3093\u3084\u304f","\u307e\u3044\u306b\u3061","\u307e\u304b\u3044","\u307e\u304b\u305b\u308b","\u307e\u304b\u3099\u308b","\u307e\u3051\u308b","\u307e\u3053\u3068","\u307e\u3055\u3064","\u307e\u3057\u3099\u3081","\u307e\u3059\u304f","\u307e\u305b\u3099\u308b","\u307e\u3064\u308a","\u307e\u3068\u3081","\u307e\u306a\u3075\u3099","\u307e\u306c\u3051","\u307e\u306d\u304f","\u307e\u307b\u3046","\u307e\u3082\u308b","\u307e\u3086\u3051\u3099","\u307e\u3088\u3046","\u307e\u308d\u3084\u304b","\u307e\u308f\u3059","\u307e\u308f\u308a","\u307e\u308f\u308b","\u307e\u3093\u304b\u3099","\u307e\u3093\u304d\u3064","\u307e\u3093\u305d\u3099\u304f","\u307e\u3093\u306a\u304b","\u307f\u3044\u3089","\u307f\u3046\u3061","\u307f\u3048\u308b","\u307f\u304b\u3099\u304f","\u307f\u304b\u305f","\u307f\u304b\u3093","\u307f\u3051\u3093","\u307f\u3053\u3093","\u307f\u3057\u3099\u304b\u3044","\u307f\u3059\u3044","\u307f\u3059\u3048\u308b","\u307f\u305b\u308b","\u307f\u3063\u304b","\u307f\u3064\u304b\u308b","\u307f\u3064\u3051\u308b","\u307f\u3066\u3044","\u307f\u3068\u3081\u308b","\u307f\u306a\u3068","\u307f\u306a\u307f\u304b\u3055\u3044","\u307f\u306d\u3089\u308b","\u307f\u306e\u3046","\u307f\u306e\u304b\u3099\u3059","\u307f\u307b\u3093","\u307f\u3082\u3068","\u307f\u3084\u3051\u3099","\u307f\u3089\u3044","\u307f\u308a\u3087\u304f","\u307f\u308f\u304f","\u307f\u3093\u304b","\u307f\u3093\u305d\u3099\u304f","\u3080\u3044\u304b","\u3080\u3048\u304d","\u3080\u3048\u3093","\u3080\u304b\u3044","\u3080\u304b\u3046","\u3080\u304b\u3048","\u3080\u304b\u3057","\u3080\u304d\u3099\u3061\u3083","\u3080\u3051\u308b","\u3080\u3051\u3099\u3093","\u3080\u3055\u307b\u3099\u308b","\u3080\u3057\u3042\u3064\u3044","\u3080\u3057\u306f\u3099","\u3080\u3057\u3099\u3085\u3093","\u3080\u3057\u308d","\u3080\u3059\u3046","\u3080\u3059\u3053","\u3080\u3059\u3075\u3099","\u3080\u3059\u3081","\u3080\u305b\u308b","\u3080\u305b\u3093","\u3080\u3061\u3085\u3046","\u3080\u306a\u3057\u3044","\u3080\u306e\u3046","\u3080\u3084\u307f","\u3080\u3088\u3046","\u3080\u3089\u3055\u304d","\u3080\u308a\u3087\u3046","\u3080\u308d\u3093","\u3081\u3044\u3042\u3093","\u3081\u3044\u3046\u3093","\u3081\u3044\u3048\u3093","\u3081\u3044\u304b\u304f","\u3081\u3044\u304d\u3087\u304f","\u3081\u3044\u3055\u3044","\u3081\u3044\u3057","\u3081\u3044\u305d\u3046","\u3081\u3044\u3075\u3099\u3064","\u3081\u3044\u308c\u3044","\u3081\u3044\u308f\u304f","\u3081\u304f\u3099\u307e\u308c\u308b","\u3081\u3055\u3099\u3059","\u3081\u3057\u305f","\u3081\u3059\u3099\u3089\u3057\u3044","\u3081\u305f\u3099\u3064","\u3081\u307e\u3044","\u3081\u3084\u3059","\u3081\u3093\u304d\u3087","\u3081\u3093\u305b\u304d","\u3081\u3093\u3068\u3099\u3046","\u3082\u3046\u3057\u3042\u3051\u3099\u308b","\u3082\u3046\u3068\u3099\u3046\u3051\u3093","\u3082\u3048\u308b","\u3082\u304f\u3057","\u3082\u304f\u3066\u304d","\u3082\u304f\u3088\u3046\u3072\u3099","\u3082\u3061\u308d\u3093","\u3082\u3068\u3099\u308b","\u3082\u3089\u3046","\u3082\u3093\u304f","\u3082\u3093\u305f\u3099\u3044","\u3084\u304a\u3084","\u3084\u3051\u308b","\u3084\u3055\u3044","\u3084\u3055\u3057\u3044","\u3084\u3059\u3044","\u3084\u3059\u305f\u308d\u3046","\u3084\u3059\u307f","\u3084\u305b\u308b","\u3084\u305d\u3046","\u3084\u305f\u3044","\u3084\u3061\u3093","\u3084\u3063\u3068","\u3084\u3063\u306f\u309a\u308a","\u3084\u3075\u3099\u308b","\u3084\u3081\u308b","\u3084\u3084\u3053\u3057\u3044","\u3084\u3088\u3044","\u3084\u308f\u3089\u304b\u3044","\u3086\u3046\u304d","\u3086\u3046\u3072\u3099\u3093\u304d\u3087\u304f","\u3086\u3046\u3078\u3099","\u3086\u3046\u3081\u3044","\u3086\u3051\u3064","\u3086\u3057\u3085\u3064","\u3086\u305b\u3093","\u3086\u305d\u3046","\u3086\u305f\u304b","\u3086\u3061\u3083\u304f","\u3086\u3066\u3099\u308b","\u3086\u306b\u3085\u3046","\u3086\u3072\u3099\u308f","\u3086\u3089\u3044","\u3086\u308c\u308b","\u3088\u3046\u3044","\u3088\u3046\u304b","\u3088\u3046\u304d\u3085\u3046","\u3088\u3046\u3057\u3099","\u3088\u3046\u3059","\u3088\u3046\u3061\u3048\u3093","\u3088\u304b\u305b\u3099","\u3088\u304b\u3093","\u3088\u304d\u3093","\u3088\u304f\u305b\u3044","\u3088\u304f\u307b\u3099\u3046","\u3088\u3051\u3044","\u3088\u3053\u3099\u308c\u308b","\u3088\u3055\u3093","\u3088\u3057\u3085\u3046","\u3088\u305d\u3046","\u3088\u305d\u304f","\u3088\u3063\u304b","\u3088\u3066\u3044","\u3088\u3068\u3099\u304b\u3099\u308f\u304f","\u3088\u306d\u3064","\u3088\u3084\u304f","\u3088\u3086\u3046","\u3088\u308d\u3053\u3075\u3099","\u3088\u308d\u3057\u3044","\u3089\u3044\u3046","\u3089\u304f\u304b\u3099\u304d","\u3089\u304f\u3053\u3099","\u3089\u304f\u3055\u3064","\u3089\u304f\u305f\u3099","\u3089\u3057\u3093\u306f\u3099\u3093","\u3089\u305b\u3093","\u3089\u305d\u3099\u304f","\u3089\u305f\u3044","\u3089\u3063\u304b","\u3089\u308c\u3064","\u308a\u3048\u304d","\u308a\u304b\u3044","\u308a\u304d\u3055\u304f","\u308a\u304d\u305b\u3064","\u308a\u304f\u304f\u3099\u3093","\u308a\u304f\u3064","\u308a\u3051\u3093","\u308a\u3053\u3046","\u308a\u305b\u3044","\u308a\u305d\u3046","\u308a\u305d\u304f","\u308a\u3066\u3093","\u308a\u306d\u3093","\u308a\u3086\u3046","\u308a\u3085\u3046\u304b\u3099\u304f","\u308a\u3088\u3046","\u308a\u3087\u3046\u308a","\u308a\u3087\u304b\u3093","\u308a\u3087\u304f\u3061\u3083","\u308a\u3087\u3053\u3046","\u308a\u308a\u304f","\u308a\u308c\u304d","\u308a\u308d\u3093","\u308a\u3093\u3053\u3099","\u308b\u3044\u3051\u3044","\u308b\u3044\u3055\u3044","\u308b\u3044\u3057\u3099","\u308b\u3044\u305b\u304d","\u308b\u3059\u306f\u3099\u3093","\u308b\u308a\u304b\u3099\u308f\u3089","\u308c\u3044\u304b\u3093","\u308c\u3044\u304d\u3099","\u308c\u3044\u305b\u3044","\u308c\u3044\u305d\u3099\u3046\u3053","\u308c\u3044\u3068\u3046","\u308c\u3044\u307b\u3099\u3046","\u308c\u304d\u3057","\u308c\u304d\u305f\u3099\u3044","\u308c\u3093\u3042\u3044","\u308c\u3093\u3051\u3044","\u308c\u3093\u3053\u3093","\u308c\u3093\u3055\u3044","\u308c\u3093\u3057\u3085\u3046","\u308c\u3093\u305d\u3099\u304f","\u308c\u3093\u3089\u304f","\u308d\u3046\u304b","\u308d\u3046\u3053\u3099","\u308d\u3046\u3057\u3099\u3093","\u308d\u3046\u305d\u304f","\u308d\u304f\u304b\u3099","\u308d\u3053\u3064","\u308d\u3057\u3099\u3046\u3089","\u308d\u3057\u3085\u3064","\u308d\u305b\u3093","\u308d\u3066\u3093","\u308d\u3081\u3093","\u308d\u308c\u3064","\u308d\u3093\u304d\u3099","\u308d\u3093\u306f\u309a","\u308d\u3093\u3075\u3099\u3093","\u308d\u3093\u308a","\u308f\u304b\u3059","\u308f\u304b\u3081","\u308f\u304b\u3084\u307e","\u308f\u304b\u308c\u308b","\u308f\u3057\u3064","\u308f\u3057\u3099\u307e\u3057","\u308f\u3059\u308c\u3082\u306e","\u308f\u3089\u3046","\u308f\u308c\u308b"]')},8013:e=>{"use strict";e.exports=JSON.parse('["\u1100\u1161\u1100\u1167\u11a8","\u1100\u1161\u1101\u1173\u11b7","\u1100\u1161\u1102\u1161\u11ab","\u1100\u1161\u1102\u1173\u11bc","\u1100\u1161\u1103\u1173\u11a8","\u1100\u1161\u1105\u1173\u110e\u1175\u11b7","\u1100\u1161\u1106\u116e\u11b7","\u1100\u1161\u1107\u1161\u11bc","\u1100\u1161\u1109\u1161\u11bc","\u1100\u1161\u1109\u1173\u11b7","\u1100\u1161\u110b\u116e\u11ab\u1103\u1166","\u1100\u1161\u110b\u1173\u11af","\u1100\u1161\u110b\u1175\u1103\u1173","\u1100\u1161\u110b\u1175\u11b8","\u1100\u1161\u110c\u1161\u11bc","\u1100\u1161\u110c\u1165\u11bc","\u1100\u1161\u110c\u1169\u11a8","\u1100\u1161\u110c\u116e\u11a8","\u1100\u1161\u11a8\u110b\u1169","\u1100\u1161\u11a8\u110c\u1161","\u1100\u1161\u11ab\u1100\u1167\u11a8","\u1100\u1161\u11ab\u1107\u116e","\u1100\u1161\u11ab\u1109\u1165\u11b8","\u1100\u1161\u11ab\u110c\u1161\u11bc","\u1100\u1161\u11ab\u110c\u1165\u11b8","\u1100\u1161\u11ab\u1111\u1161\u11ab","\u1100\u1161\u11af\u1103\u1173\u11bc","\u1100\u1161\u11af\u1107\u1175","\u1100\u1161\u11af\u1109\u1162\u11a8","\u1100\u1161\u11af\u110c\u1173\u11bc","\u1100\u1161\u11b7\u1100\u1161\u11a8","\u1100\u1161\u11b7\u1100\u1175","\u1100\u1161\u11b7\u1109\u1169","\u1100\u1161\u11b7\u1109\u116e\u1109\u1165\u11bc","\u1100\u1161\u11b7\u110c\u1161","\u1100\u1161\u11b7\u110c\u1165\u11bc","\u1100\u1161\u11b8\u110c\u1161\u1100\u1175","\u1100\u1161\u11bc\u1102\u1161\u11b7","\u1100\u1161\u11bc\u1103\u1161\u11bc","\u1100\u1161\u11bc\u1103\u1169","\u1100\u1161\u11bc\u1105\u1167\u11a8\u1112\u1175","\u1100\u1161\u11bc\u1107\u1167\u11ab","\u1100\u1161\u11bc\u1107\u116e\u11a8","\u1100\u1161\u11bc\u1109\u1161","\u1100\u1161\u11bc\u1109\u116e\u1105\u1163\u11bc","\u1100\u1161\u11bc\u110b\u1161\u110c\u1175","\u1100\u1161\u11bc\u110b\u116f\u11ab\u1103\u1169","\u1100\u1161\u11bc\u110b\u1174","\u1100\u1161\u11bc\u110c\u1166","\u1100\u1161\u11bc\u110c\u1169","\u1100\u1161\u11c0\u110b\u1175","\u1100\u1162\u1100\u116e\u1105\u1175","\u1100\u1162\u1102\u1161\u1105\u1175","\u1100\u1162\u1107\u1161\u11bc","\u1100\u1162\u1107\u1167\u11af","\u1100\u1162\u1109\u1165\u11ab","\u1100\u1162\u1109\u1165\u11bc","\u1100\u1162\u110b\u1175\u11ab","\u1100\u1162\u11a8\u1100\u116a\u11ab\u110c\u1165\u11a8","\u1100\u1165\u1109\u1175\u11af","\u1100\u1165\u110b\u1162\u11a8","\u1100\u1165\u110b\u116e\u11af","\u1100\u1165\u110c\u1175\u11ba","\u1100\u1165\u1111\u116e\u11b7","\u1100\u1165\u11a8\u110c\u1165\u11bc","\u1100\u1165\u11ab\u1100\u1161\u11bc","\u1100\u1165\u11ab\u1106\u116e\u11af","\u1100\u1165\u11ab\u1109\u1165\u11af","\u1100\u1165\u11ab\u110c\u1169","\u1100\u1165\u11ab\u110e\u116e\u11a8","\u1100\u1165\u11af\u110b\u1173\u11b7","\u1100\u1165\u11b7\u1109\u1161","\u1100\u1165\u11b7\u1110\u1169","\u1100\u1166\u1109\u1175\u1111\u1161\u11ab","\u1100\u1166\u110b\u1175\u11b7","\u1100\u1167\u110b\u116e\u11af","\u1100\u1167\u11ab\u1112\u1162","\u1100\u1167\u11af\u1100\u116a","\u1100\u1167\u11af\u1100\u116e\u11a8","\u1100\u1167\u11af\u1105\u1169\u11ab","\u1100\u1167\u11af\u1109\u1165\u11a8","\u1100\u1167\u11af\u1109\u1173\u11bc","\u1100\u1167\u11af\u1109\u1175\u11b7","\u1100\u1167\u11af\u110c\u1165\u11bc","\u1100\u1167\u11af\u1112\u1169\u11ab","\u1100\u1167\u11bc\u1100\u1168","\u1100\u1167\u11bc\u1100\u1169","\u1100\u1167\u11bc\u1100\u1175","\u1100\u1167\u11bc\u1105\u1167\u11a8","\u1100\u1167\u11bc\u1107\u1169\u11a8\u1100\u116e\u11bc","\u1100\u1167\u11bc\u1107\u1175","\u1100\u1167\u11bc\u1109\u1161\u11bc\u1103\u1169","\u1100\u1167\u11bc\u110b\u1167\u11bc","\u1100\u1167\u11bc\u110b\u116e","\u1100\u1167\u11bc\u110c\u1162\u11bc","\u1100\u1167\u11bc\u110c\u1166","\u1100\u1167\u11bc\u110c\u116e","\u1100\u1167\u11bc\u110e\u1161\u11af","\u1100\u1167\u11bc\u110e\u1175","\u1100\u1167\u11bc\u1112\u1163\u11bc","\u1100\u1167\u11bc\u1112\u1165\u11b7","\u1100\u1168\u1100\u1169\u11a8","\u1100\u1168\u1103\u1161\u11ab","\u1100\u1168\u1105\u1161\u11ab","\u1100\u1168\u1109\u1161\u11ab","\u1100\u1168\u1109\u1169\u11a8","\u1100\u1168\u110b\u1163\u11a8","\u1100\u1168\u110c\u1165\u11af","\u1100\u1168\u110e\u1173\u11bc","\u1100\u1168\u1112\u116c\u11a8","\u1100\u1169\u1100\u1162\u11a8","\u1100\u1169\u1100\u116e\u1105\u1167","\u1100\u1169\u1100\u116e\u11bc","\u1100\u1169\u1100\u1173\u11b8","\u1100\u1169\u1103\u1173\u11bc\u1112\u1161\u11a8\u1109\u1162\u11bc","\u1100\u1169\u1106\u116e\u1109\u1175\u11ab","\u1100\u1169\u1106\u1175\u11ab","\u1100\u1169\u110b\u1163\u11bc\u110b\u1175","\u1100\u1169\u110c\u1161\u11bc","\u1100\u1169\u110c\u1165\u11ab","\u1100\u1169\u110c\u1175\u11b8","\u1100\u1169\u110e\u116e\u11ba\u1100\u1161\u1105\u116e","\u1100\u1169\u1110\u1169\u11bc","\u1100\u1169\u1112\u1163\u11bc","\u1100\u1169\u11a8\u1109\u1175\u11a8","\u1100\u1169\u11af\u1106\u1169\u11a8","\u1100\u1169\u11af\u110d\u1161\u1100\u1175","\u1100\u1169\u11af\u1111\u1173","\u1100\u1169\u11bc\u1100\u1161\u11ab","\u1100\u1169\u11bc\u1100\u1162","\u1100\u1169\u11bc\u1100\u1167\u11a8","\u1100\u1169\u11bc\u1100\u116e\u11ab","\u1100\u1169\u11bc\u1100\u1173\u11b8","\u1100\u1169\u11bc\u1100\u1175","\u1100\u1169\u11bc\u1103\u1169\u11bc","\u1100\u1169\u11bc\u1106\u116e\u110b\u116f\u11ab","\u1100\u1169\u11bc\u1107\u116e","\u1100\u1169\u11bc\u1109\u1161","\u1100\u1169\u11bc\u1109\u1175\u11a8","\u1100\u1169\u11bc\u110b\u1165\u11b8","\u1100\u1169\u11bc\u110b\u1167\u11ab","\u1100\u1169\u11bc\u110b\u116f\u11ab","\u1100\u1169\u11bc\u110c\u1161\u11bc","\u1100\u1169\u11bc\u110d\u1161","\u1100\u1169\u11bc\u110e\u1162\u11a8","\u1100\u1169\u11bc\u1110\u1169\u11bc","\u1100\u1169\u11bc\u1111\u1169","\u1100\u1169\u11bc\u1112\u1161\u11bc","\u1100\u1169\u11bc\u1112\u1172\u110b\u1175\u11af","\u1100\u116a\u1106\u1169\u11a8","\u1100\u116a\u110b\u1175\u11af","\u1100\u116a\u110c\u1161\u11bc","\u1100\u116a\u110c\u1165\u11bc","\u1100\u116a\u1112\u1161\u11a8","\u1100\u116a\u11ab\u1100\u1162\u11a8","\u1100\u116a\u11ab\u1100\u1168","\u1100\u116a\u11ab\u1100\u116a\u11bc","\u1100\u116a\u11ab\u1102\u1167\u11b7","\u1100\u116a\u11ab\u1105\u1161\u11b7","\u1100\u116a\u11ab\u1105\u1167\u11ab","\u1100\u116a\u11ab\u1105\u1175","\u1100\u116a\u11ab\u1109\u1173\u11b8","\u1100\u116a\u11ab\u1109\u1175\u11b7","\u1100\u116a\u11ab\u110c\u1165\u11b7","\u1100\u116a\u11ab\u110e\u1161\u11af","\u1100\u116a\u11bc\u1100\u1167\u11bc","\u1100\u116a\u11bc\u1100\u1169","\u1100\u116a\u11bc\u110c\u1161\u11bc","\u1100\u116a\u11bc\u110c\u116e","\u1100\u116c\u1105\u1169\u110b\u116e\u11b7","\u1100\u116c\u11bc\u110c\u1161\u11bc\u1112\u1175","\u1100\u116d\u1100\u116a\u1109\u1165","\u1100\u116d\u1106\u116e\u11ab","\u1100\u116d\u1107\u1169\u11a8","\u1100\u116d\u1109\u1175\u11af","\u1100\u116d\u110b\u1163\u11bc","\u1100\u116d\u110b\u1172\u11a8","\u1100\u116d\u110c\u1161\u11bc","\u1100\u116d\u110c\u1175\u11a8","\u1100\u116d\u1110\u1169\u11bc","\u1100\u116d\u1112\u116a\u11ab","\u1100\u116d\u1112\u116e\u11ab","\u1100\u116e\u1100\u1167\u11bc","\u1100\u116e\u1105\u1173\u11b7","\u1100\u116e\u1106\u1165\u11bc","\u1100\u116e\u1107\u1167\u11af","\u1100\u116e\u1107\u116e\u11ab","\u1100\u116e\u1109\u1165\u11a8","\u1100\u116e\u1109\u1165\u11bc","\u1100\u116e\u1109\u1169\u11a8","\u1100\u116e\u110b\u1167\u11a8","\u1100\u116e\u110b\u1175\u11b8","\u1100\u116e\u110e\u1165\u11bc","\u1100\u116e\u110e\u1166\u110c\u1165\u11a8","\u1100\u116e\u11a8\u1100\u1161","\u1100\u116e\u11a8\u1100\u1175","\u1100\u116e\u11a8\u1102\u1162","\u1100\u116e\u11a8\u1105\u1175\u11b8","\u1100\u116e\u11a8\u1106\u116e\u11af","\u1100\u116e\u11a8\u1106\u1175\u11ab","\u1100\u116e\u11a8\u1109\u116e","\u1100\u116e\u11a8\u110b\u1165","\u1100\u116e\u11a8\u110b\u116a\u11bc","\u1100\u116e\u11a8\u110c\u1165\u11a8","\u1100\u116e\u11a8\u110c\u1166","\u1100\u116e\u11a8\u1112\u116c","\u1100\u116e\u11ab\u1103\u1162","\u1100\u116e\u11ab\u1109\u1161","\u1100\u116e\u11ab\u110b\u1175\u11ab","\u1100\u116e\u11bc\u1100\u1173\u11a8\u110c\u1165\u11a8","\u1100\u116f\u11ab\u1105\u1175","\u1100\u116f\u11ab\u110b\u1171","\u1100\u116f\u11ab\u1110\u116e","\u1100\u1171\u1100\u116e\u11a8","\u1100\u1171\u1109\u1175\u11ab","\u1100\u1172\u110c\u1165\u11bc","\u1100\u1172\u110e\u1175\u11a8","\u1100\u1172\u11ab\u1112\u1167\u11bc","\u1100\u1173\u1102\u1161\u11af","\u1100\u1173\u1102\u1163\u11bc","\u1100\u1173\u1102\u1173\u11af","\u1100\u1173\u1105\u1165\u1102\u1161","\u1100\u1173\u1105\u116e\u11b8","\u1100\u1173\u1105\u1173\u11ba","\u1100\u1173\u1105\u1175\u11b7","\u1100\u1173\u110c\u1166\u1109\u1165\u110b\u1163","\u1100\u1173\u1110\u1169\u1105\u1169\u11a8","\u1100\u1173\u11a8\u1107\u1169\u11a8","\u1100\u1173\u11a8\u1112\u1175","\u1100\u1173\u11ab\u1100\u1165","\u1100\u1173\u11ab\u1100\u116d","\u1100\u1173\u11ab\u1105\u1162","\u1100\u1173\u11ab\u1105\u1169","\u1100\u1173\u11ab\u1106\u116e","\u1100\u1173\u11ab\u1107\u1169\u11ab","\u1100\u1173\u11ab\u110b\u116f\u11ab","\u1100\u1173\u11ab\u110b\u1172\u11a8","\u1100\u1173\u11ab\u110e\u1165","\u1100\u1173\u11af\u110a\u1175","\u1100\u1173\u11af\u110c\u1161","\u1100\u1173\u11b7\u1100\u1161\u11bc\u1109\u1161\u11ab","\u1100\u1173\u11b7\u1100\u1169","\u1100\u1173\u11b7\u1102\u1167\u11ab","\u1100\u1173\u11b7\u1106\u1166\u1103\u1161\u11af","\u1100\u1173\u11b7\u110b\u1162\u11a8","\u1100\u1173\u11b7\u110b\u1167\u11ab","\u1100\u1173\u11b7\u110b\u116d\u110b\u1175\u11af","\u1100\u1173\u11b7\u110c\u1175","\u1100\u1173\u11bc\u110c\u1165\u11bc\u110c\u1165\u11a8","\u1100\u1175\u1100\u1161\u11ab","\u1100\u1175\u1100\u116a\u11ab","\u1100\u1175\u1102\u1167\u11b7","\u1100\u1175\u1102\u1173\u11bc","\u1100\u1175\u1103\u1169\u11a8\u1100\u116d","\u1100\u1175\u1103\u116e\u11bc","\u1100\u1175\u1105\u1169\u11a8","\u1100\u1175\u1105\u1173\u11b7","\u1100\u1175\u1107\u1165\u11b8","\u1100\u1175\u1107\u1169\u11ab","\u1100\u1175\u1107\u116e\u11ab","\u1100\u1175\u1108\u1173\u11b7","\u1100\u1175\u1109\u116e\u11a8\u1109\u1161","\u1100\u1175\u1109\u116e\u11af","\u1100\u1175\u110b\u1165\u11a8","\u1100\u1175\u110b\u1165\u11b8","\u1100\u1175\u110b\u1169\u11ab","\u1100\u1175\u110b\u116e\u11ab","\u1100\u1175\u110b\u116f\u11ab","\u1100\u1175\u110c\u1165\u11a8","\u1100\u1175\u110c\u116e\u11ab","\u1100\u1175\u110e\u1175\u11b7","\u1100\u1175\u1112\u1169\u11ab","\u1100\u1175\u1112\u116c\u11a8","\u1100\u1175\u11ab\u1100\u1173\u11b8","\u1100\u1175\u11ab\u110c\u1161\u11bc","\u1100\u1175\u11af\u110b\u1175","\u1100\u1175\u11b7\u1107\u1161\u11b8","\u1100\u1175\u11b7\u110e\u1175","\u1100\u1175\u11b7\u1111\u1169\u1100\u1169\u11bc\u1112\u1161\u11bc","\u1101\u1161\u11a8\u1103\u116e\u1100\u1175","\u1101\u1161\u11b7\u1108\u1161\u11a8","\u1101\u1162\u1103\u1161\u11af\u110b\u1173\u11b7","\u1101\u1162\u1109\u1169\u1100\u1173\u11b7","\u1101\u1165\u11b8\u110c\u1175\u11af","\u1101\u1169\u11a8\u1103\u1162\u1100\u1175","\u1101\u1169\u11be\u110b\u1175\u11c1","\u1102\u1161\u1103\u1173\u11af\u110b\u1175","\u1102\u1161\u1105\u1161\u11ab\u1112\u1175","\u1102\u1161\u1106\u1165\u110c\u1175","\u1102\u1161\u1106\u116e\u11af","\u1102\u1161\u110e\u1175\u11b7\u1107\u1161\u11ab","\u1102\u1161\u1112\u1173\u11af","\u1102\u1161\u11a8\u110b\u1167\u11b8","\u1102\u1161\u11ab\u1107\u1161\u11bc","\u1102\u1161\u11af\u1100\u1162","\u1102\u1161\u11af\u110a\u1175","\u1102\u1161\u11af\u110d\u1161","\u1102\u1161\u11b7\u1102\u1167","\u1102\u1161\u11b7\u1103\u1162\u1106\u116e\u11ab","\u1102\u1161\u11b7\u1106\u1162","\u1102\u1161\u11b7\u1109\u1161\u11ab","\u1102\u1161\u11b7\u110c\u1161","\u1102\u1161\u11b7\u1111\u1167\u11ab","\u1102\u1161\u11b7\u1112\u1161\u11a8\u1109\u1162\u11bc","\u1102\u1161\u11bc\u1107\u1175","\u1102\u1161\u11c0\u1106\u1161\u11af","\u1102\u1162\u1102\u1167\u11ab","\u1102\u1162\u110b\u116d\u11bc","\u1102\u1162\u110b\u1175\u11af","\u1102\u1162\u11b7\u1107\u1175","\u1102\u1162\u11b7\u1109\u1162","\u1102\u1162\u11ba\u1106\u116e\u11af","\u1102\u1162\u11bc\u1103\u1169\u11bc","\u1102\u1162\u11bc\u1106\u1167\u11ab","\u1102\u1162\u11bc\u1107\u1161\u11bc","\u1102\u1162\u11bc\u110c\u1161\u11bc\u1100\u1169","\u1102\u1166\u11a8\u1110\u1161\u110b\u1175","\u1102\u1166\u11ba\u110d\u1162","\u1102\u1169\u1103\u1169\u11bc","\u1102\u1169\u1105\u1161\u11ab\u1109\u1162\u11a8","\u1102\u1169\u1105\u1167\u11a8","\u1102\u1169\u110b\u1175\u11ab","\u1102\u1169\u11a8\u110b\u1173\u11b7","\u1102\u1169\u11a8\u110e\u1161","\u1102\u1169\u11a8\u1112\u116a","\u1102\u1169\u11ab\u1105\u1175","\u1102\u1169\u11ab\u1106\u116e\u11ab","\u1102\u1169\u11ab\u110c\u1162\u11bc","\u1102\u1169\u11af\u110b\u1175","\u1102\u1169\u11bc\u1100\u116e","\u1102\u1169\u11bc\u1103\u1161\u11b7","\u1102\u1169\u11bc\u1106\u1175\u11ab","\u1102\u1169\u11bc\u1107\u116e","\u1102\u1169\u11bc\u110b\u1165\u11b8","\u1102\u1169\u11bc\u110c\u1161\u11bc","\u1102\u1169\u11bc\u110e\u1169\u11ab","\u1102\u1169\u11c1\u110b\u1175","\u1102\u116e\u11ab\u1103\u1169\u11bc\u110c\u1161","\u1102\u116e\u11ab\u1106\u116e\u11af","\u1102\u116e\u11ab\u110a\u1165\u11b8","\u1102\u1172\u110b\u116d\u11a8","\u1102\u1173\u1101\u1175\u11b7","\u1102\u1173\u11a8\u1103\u1162","\u1102\u1173\u11bc\u1103\u1169\u11bc\u110c\u1165\u11a8","\u1102\u1173\u11bc\u1105\u1167\u11a8","\u1103\u1161\u1107\u1161\u11bc","\u1103\u1161\u110b\u1163\u11bc\u1109\u1165\u11bc","\u1103\u1161\u110b\u1173\u11b7","\u1103\u1161\u110b\u1175\u110b\u1165\u1110\u1173","\u1103\u1161\u1112\u1162\u11bc","\u1103\u1161\u11ab\u1100\u1168","\u1103\u1161\u11ab\u1100\u1169\u11af","\u1103\u1161\u11ab\u1103\u1169\u11a8","\u1103\u1161\u11ab\u1106\u1161\u11ba","\u1103\u1161\u11ab\u1109\u116e\u11ab","\u1103\u1161\u11ab\u110b\u1165","\u1103\u1161\u11ab\u110b\u1171","\u1103\u1161\u11ab\u110c\u1165\u11b7","\u1103\u1161\u11ab\u110e\u1166","\u1103\u1161\u11ab\u110e\u116e","\u1103\u1161\u11ab\u1111\u1167\u11ab","\u1103\u1161\u11ab\u1111\u116e\u11bc","\u1103\u1161\u11af\u1100\u1163\u11af","\u1103\u1161\u11af\u1105\u1165","\u1103\u1161\u11af\u1105\u1167\u11a8","\u1103\u1161\u11af\u1105\u1175","\u1103\u1161\u11b0\u1100\u1169\u1100\u1175","\u1103\u1161\u11b7\u1103\u1161\u11bc","\u1103\u1161\u11b7\u1107\u1162","\u1103\u1161\u11b7\u110b\u116d","\u1103\u1161\u11b7\u110b\u1175\u11b7","\u1103\u1161\u11b8\u1107\u1167\u11ab","\u1103\u1161\u11b8\u110c\u1161\u11bc","\u1103\u1161\u11bc\u1100\u1173\u11ab","\u1103\u1161\u11bc\u1107\u116e\u11ab\u1100\u1161\u11ab","\u1103\u1161\u11bc\u110b\u1167\u11ab\u1112\u1175","\u1103\u1161\u11bc\u110c\u1161\u11bc","\u1103\u1162\u1100\u1172\u1106\u1169","\u1103\u1162\u1102\u1161\u11bd","\u1103\u1162\u1103\u1161\u11ab\u1112\u1175","\u1103\u1162\u1103\u1161\u11b8","\u1103\u1162\u1103\u1169\u1109\u1175","\u1103\u1162\u1105\u1163\u11a8","\u1103\u1162\u1105\u1163\u11bc","\u1103\u1162\u1105\u1172\u11a8","\u1103\u1162\u1106\u116e\u11ab","\u1103\u1162\u1107\u116e\u1107\u116e\u11ab","\u1103\u1162\u1109\u1175\u11ab","\u1103\u1162\u110b\u1173\u11bc","\u1103\u1162\u110c\u1161\u11bc","\u1103\u1162\u110c\u1165\u11ab","\u1103\u1162\u110c\u1165\u11b8","\u1103\u1162\u110c\u116e\u11bc","\u1103\u1162\u110e\u1162\u11a8","\u1103\u1162\u110e\u116e\u11af","\u1103\u1162\u110e\u116e\u11bc","\u1103\u1162\u1110\u1169\u11bc\u1105\u1167\u11bc","\u1103\u1162\u1112\u1161\u11a8","\u1103\u1162\u1112\u1161\u11ab\u1106\u1175\u11ab\u1100\u116e\u11a8","\u1103\u1162\u1112\u1161\u11b8\u1109\u1175\u11af","\u1103\u1162\u1112\u1167\u11bc","\u1103\u1165\u11bc\u110b\u1165\u1105\u1175","\u1103\u1166\u110b\u1175\u1110\u1173","\u1103\u1169\u1103\u1162\u110e\u1166","\u1103\u1169\u1103\u1165\u11a8","\u1103\u1169\u1103\u116e\u11a8","\u1103\u1169\u1106\u1161\u11bc","\u1103\u1169\u1109\u1165\u1100\u116a\u11ab","\u1103\u1169\u1109\u1175\u11b7","\u1103\u1169\u110b\u116e\u11b7","\u1103\u1169\u110b\u1175\u11b8","\u1103\u1169\u110c\u1161\u1100\u1175","\u1103\u1169\u110c\u1165\u1112\u1175","\u1103\u1169\u110c\u1165\u11ab","\u1103\u1169\u110c\u116e\u11bc","\u1103\u1169\u110e\u1161\u11a8","\u1103\u1169\u11a8\u1100\u1161\u11b7","\u1103\u1169\u11a8\u1105\u1175\u11b8","\u1103\u1169\u11a8\u1109\u1165","\u1103\u1169\u11a8\u110b\u1175\u11af","\u1103\u1169\u11a8\u110e\u1161\u11bc\u110c\u1165\u11a8","\u1103\u1169\u11bc\u1112\u116a\u110e\u1162\u11a8","\u1103\u1171\u11ba\u1106\u1169\u1109\u1173\u11b8","\u1103\u1171\u11ba\u1109\u1161\u11ab","\u1104\u1161\u11af\u110b\u1161\u110b\u1175","\u1106\u1161\u1102\u116e\u1105\u1161","\u1106\u1161\u1102\u1173\u11af","\u1106\u1161\u1103\u1161\u11bc","\u1106\u1161\u1105\u1161\u1110\u1169\u11ab","\u1106\u1161\u1105\u1167\u11ab","\u1106\u1161\u1106\u116e\u1105\u1175","\u1106\u1161\u1109\u1161\u110c\u1175","\u1106\u1161\u110b\u1163\u11a8","\u1106\u1161\u110b\u116d\u1102\u1166\u110c\u1173","\u1106\u1161\u110b\u1173\u11af","\u1106\u1161\u110b\u1173\u11b7","\u1106\u1161\u110b\u1175\u110f\u1173","\u1106\u1161\u110c\u116e\u11bc","\u1106\u1161\u110c\u1175\u1106\u1161\u11a8","\u1106\u1161\u110e\u1161\u11ab\u1100\u1161\u110c\u1175","\u1106\u1161\u110e\u1161\u11af","\u1106\u1161\u1112\u1173\u11ab","\u1106\u1161\u11a8\u1100\u1165\u11af\u1105\u1175","\u1106\u1161\u11a8\u1102\u1162","\u1106\u1161\u11a8\u1109\u1161\u11bc","\u1106\u1161\u11ab\u1102\u1161\u11b7","\u1106\u1161\u11ab\u1103\u116e","\u1106\u1161\u11ab\u1109\u1166","\u1106\u1161\u11ab\u110b\u1163\u11a8","\u1106\u1161\u11ab\u110b\u1175\u11af","\u1106\u1161\u11ab\u110c\u1165\u11b7","\u1106\u1161\u11ab\u110c\u1169\u11a8","\u1106\u1161\u11ab\u1112\u116a","\u1106\u1161\u11ad\u110b\u1175","\u1106\u1161\u11af\u1100\u1175","\u1106\u1161\u11af\u110a\u1173\u11b7","\u1106\u1161\u11af\u1110\u116e","\u1106\u1161\u11b7\u1103\u1162\u1105\u1169","\u1106\u1161\u11bc\u110b\u116f\u11ab\u1100\u1167\u11bc","\u1106\u1162\u1102\u1167\u11ab","\u1106\u1162\u1103\u1161\u11af","\u1106\u1162\u1105\u1167\u11a8","\u1106\u1162\u1107\u1165\u11ab","\u1106\u1162\u1109\u1173\u110f\u1165\u11b7","\u1106\u1162\u110b\u1175\u11af","\u1106\u1162\u110c\u1161\u11bc","\u1106\u1162\u11a8\u110c\u116e","\u1106\u1165\u11a8\u110b\u1175","\u1106\u1165\u11ab\u110c\u1165","\u1106\u1165\u11ab\u110c\u1175","\u1106\u1165\u11af\u1105\u1175","\u1106\u1166\u110b\u1175\u11af","\u1106\u1167\u1102\u1173\u1105\u1175","\u1106\u1167\u110e\u1175\u11af","\u1106\u1167\u11ab\u1103\u1161\u11b7","\u1106\u1167\u11af\u110e\u1175","\u1106\u1167\u11bc\u1103\u1161\u11ab","\u1106\u1167\u11bc\u1105\u1167\u11bc","\u1106\u1167\u11bc\u110b\u1168","\u1106\u1167\u11bc\u110b\u1174","\u1106\u1167\u11bc\u110c\u1165\u11af","\u1106\u1167\u11bc\u110e\u1175\u11bc","\u1106\u1167\u11bc\u1112\u1161\u11b7","\u1106\u1169\u1100\u1173\u11b7","\u1106\u1169\u1102\u1175\u1110\u1165","\u1106\u1169\u1103\u1166\u11af","\u1106\u1169\u1103\u1173\u11ab","\u1106\u1169\u1107\u1165\u11b7","\u1106\u1169\u1109\u1173\u11b8","\u1106\u1169\u110b\u1163\u11bc","\u1106\u1169\u110b\u1175\u11b7","\u1106\u1169\u110c\u1169\u1105\u1175","\u1106\u1169\u110c\u1175\u11b8","\u1106\u1169\u1110\u116e\u11bc\u110b\u1175","\u1106\u1169\u11a8\u1100\u1165\u11af\u110b\u1175","\u1106\u1169\u11a8\u1105\u1169\u11a8","\u1106\u1169\u11a8\u1109\u1161","\u1106\u1169\u11a8\u1109\u1169\u1105\u1175","\u1106\u1169\u11a8\u1109\u116e\u11b7","\u1106\u1169\u11a8\u110c\u1165\u11a8","\u1106\u1169\u11a8\u1111\u116d","\u1106\u1169\u11af\u1105\u1162","\u1106\u1169\u11b7\u1106\u1162","\u1106\u1169\u11b7\u1106\u116e\u1100\u1166","\u1106\u1169\u11b7\u1109\u1161\u11af","\u1106\u1169\u11b7\u1109\u1169\u11a8","\u1106\u1169\u11b7\u110c\u1175\u11ba","\u1106\u1169\u11b7\u1110\u1169\u11bc","\u1106\u1169\u11b8\u1109\u1175","\u1106\u116e\u1100\u116a\u11ab\u1109\u1175\u11b7","\u1106\u116e\u1100\u116e\u11bc\u1112\u116a","\u1106\u116e\u1103\u1165\u110b\u1171","\u1106\u116e\u1103\u1165\u11b7","\u1106\u116e\u1105\u1173\u11c1","\u1106\u116e\u1109\u1173\u11ab","\u1106\u116e\u110b\u1165\u11ba","\u1106\u116e\u110b\u1167\u11a8","\u1106\u116e\u110b\u116d\u11bc","\u1106\u116e\u110c\u1169\u1100\u1165\u11ab","\u1106\u116e\u110c\u1175\u1100\u1162","\u1106\u116e\u110e\u1165\u11a8","\u1106\u116e\u11ab\u1100\u116e","\u1106\u116e\u11ab\u1103\u1173\u11a8","\u1106\u116e\u11ab\u1107\u1165\u11b8","\u1106\u116e\u11ab\u1109\u1165","\u1106\u116e\u11ab\u110c\u1166","\u1106\u116e\u11ab\u1112\u1161\u11a8","\u1106\u116e\u11ab\u1112\u116a","\u1106\u116e\u11af\u1100\u1161","\u1106\u116e\u11af\u1100\u1165\u11ab","\u1106\u116e\u11af\u1100\u1167\u11af","\u1106\u116e\u11af\u1100\u1169\u1100\u1175","\u1106\u116e\u11af\u1105\u1169\u11ab","\u1106\u116e\u11af\u1105\u1175\u1112\u1161\u11a8","\u1106\u116e\u11af\u110b\u1173\u11b7","\u1106\u116e\u11af\u110c\u1175\u11af","\u1106\u116e\u11af\u110e\u1166","\u1106\u1175\u1100\u116e\u11a8","\u1106\u1175\u1103\u1175\u110b\u1165","\u1106\u1175\u1109\u1161\u110b\u1175\u11af","\u1106\u1175\u1109\u116e\u11af","\u1106\u1175\u110b\u1167\u11a8","\u1106\u1175\u110b\u116d\u11bc\u1109\u1175\u11af","\u1106\u1175\u110b\u116e\u11b7","\u1106\u1175\u110b\u1175\u11ab","\u1106\u1175\u1110\u1175\u11bc","\u1106\u1175\u1112\u1169\u11ab","\u1106\u1175\u11ab\u1100\u1161\u11ab","\u1106\u1175\u11ab\u110c\u1169\u11a8","\u1106\u1175\u11ab\u110c\u116e","\u1106\u1175\u11ae\u110b\u1173\u11b7","\u1106\u1175\u11af\u1100\u1161\u1105\u116e","\u1106\u1175\u11af\u1105\u1175\u1106\u1175\u1110\u1165","\u1106\u1175\u11c0\u1107\u1161\u1103\u1161\u11a8","\u1107\u1161\u1100\u1161\u110c\u1175","\u1107\u1161\u1100\u116e\u1102\u1175","\u1107\u1161\u1102\u1161\u1102\u1161","\u1107\u1161\u1102\u1173\u11af","\u1107\u1161\u1103\u1161\u11a8","\u1107\u1161\u1103\u1161\u11ba\u1100\u1161","\u1107\u1161\u1105\u1161\u11b7","\u1107\u1161\u110b\u1175\u1105\u1165\u1109\u1173","\u1107\u1161\u1110\u1161\u11bc","\u1107\u1161\u11a8\u1106\u116e\u11af\u1100\u116a\u11ab","\u1107\u1161\u11a8\u1109\u1161","\u1107\u1161\u11a8\u1109\u116e","\u1107\u1161\u11ab\u1103\u1162","\u1107\u1161\u11ab\u1103\u1173\u1109\u1175","\u1107\u1161\u11ab\u1106\u1161\u11af","\u1107\u1161\u11ab\u1107\u1161\u11af","\u1107\u1161\u11ab\u1109\u1165\u11bc","\u1107\u1161\u11ab\u110b\u1173\u11bc","\u1107\u1161\u11ab\u110c\u1161\u11bc","\u1107\u1161\u11ab\u110c\u116e\u11a8","\u1107\u1161\u11ab\u110c\u1175","\u1107\u1161\u11ab\u110e\u1161\u11ab","\u1107\u1161\u11ae\u110e\u1175\u11b7","\u1107\u1161\u11af\u1100\u1161\u1105\u1161\u11a8","\u1107\u1161\u11af\u1100\u1165\u11af\u110b\u1173\u11b7","\u1107\u1161\u11af\u1100\u1167\u11ab","\u1107\u1161\u11af\u1103\u1161\u11af","\u1107\u1161\u11af\u1105\u1166","\u1107\u1161\u11af\u1106\u1169\u11a8","\u1107\u1161\u11af\u1107\u1161\u1103\u1161\u11a8","\u1107\u1161\u11af\u1109\u1162\u11bc","\u1107\u1161\u11af\u110b\u1173\u11b7","\u1107\u1161\u11af\u110c\u1161\u1100\u116e\u11a8","\u1107\u1161\u11af\u110c\u1165\u11ab","\u1107\u1161\u11af\u1110\u1169\u11b8","\u1107\u1161\u11af\u1111\u116d","\u1107\u1161\u11b7\u1112\u1161\u1102\u1173\u11af","\u1107\u1161\u11b8\u1100\u1173\u1105\u1173\u11ba","\u1107\u1161\u11b8\u1106\u1161\u11ba","\u1107\u1161\u11b8\u1109\u1161\u11bc","\u1107\u1161\u11b8\u1109\u1169\u11c0","\u1107\u1161\u11bc\u1100\u1173\u11b7","\u1107\u1161\u11bc\u1106\u1167\u11ab","\u1107\u1161\u11bc\u1106\u116e\u11ab","\u1107\u1161\u11bc\u1107\u1161\u1103\u1161\u11a8","\u1107\u1161\u11bc\u1107\u1165\u11b8","\u1107\u1161\u11bc\u1109\u1169\u11bc","\u1107\u1161\u11bc\u1109\u1175\u11a8","\u1107\u1161\u11bc\u110b\u1161\u11ab","\u1107\u1161\u11bc\u110b\u116e\u11af","\u1107\u1161\u11bc\u110c\u1175","\u1107\u1161\u11bc\u1112\u1161\u11a8","\u1107\u1161\u11bc\u1112\u1162","\u1107\u1161\u11bc\u1112\u1163\u11bc","\u1107\u1162\u1100\u1167\u11bc","\u1107\u1162\u1101\u1169\u11b8","\u1107\u1162\u1103\u1161\u11af","\u1107\u1162\u1103\u1173\u1106\u1175\u11ab\u1110\u1165\u11ab","\u1107\u1162\u11a8\u1103\u116e\u1109\u1161\u11ab","\u1107\u1162\u11a8\u1109\u1162\u11a8","\u1107\u1162\u11a8\u1109\u1165\u11bc","\u1107\u1162\u11a8\u110b\u1175\u11ab","\u1107\u1162\u11a8\u110c\u1166","\u1107\u1162\u11a8\u1112\u116a\u110c\u1165\u11b7","\u1107\u1165\u1105\u1173\u11ba","\u1107\u1165\u1109\u1165\u11ba","\u1107\u1165\u1110\u1173\u11ab","\u1107\u1165\u11ab\u1100\u1162","\u1107\u1165\u11ab\u110b\u1167\u11a8","\u1107\u1165\u11ab\u110c\u1175","\u1107\u1165\u11ab\u1112\u1169","\u1107\u1165\u11af\u1100\u1173\u11b7","\u1107\u1165\u11af\u1105\u1166","\u1107\u1165\u11af\u110a\u1165","\u1107\u1165\u11b7\u110b\u1171","\u1107\u1165\u11b7\u110b\u1175\u11ab","\u1107\u1165\u11b7\u110c\u116c","\u1107\u1165\u11b8\u1105\u1172\u11af","\u1107\u1165\u11b8\u110b\u116f\u11ab","\u1107\u1165\u11b8\u110c\u1165\u11a8","\u1107\u1165\u11b8\u110e\u1175\u11a8","\u1107\u1166\u110b\u1175\u110c\u1175\u11bc","\u1107\u1166\u11af\u1110\u1173","\u1107\u1167\u11ab\u1100\u1167\u11bc","\u1107\u1167\u11ab\u1103\u1169\u11bc","\u1107\u1167\u11ab\u1106\u1167\u11bc","\u1107\u1167\u11ab\u1109\u1175\u11ab","\u1107\u1167\u11ab\u1112\u1169\u1109\u1161","\u1107\u1167\u11ab\u1112\u116a","\u1107\u1167\u11af\u1103\u1169","\u1107\u1167\u11af\u1106\u1167\u11bc","\u1107\u1167\u11af\u110b\u1175\u11af","\u1107\u1167\u11bc\u1109\u1175\u11af","\u1107\u1167\u11bc\u110b\u1161\u1105\u1175","\u1107\u1167\u11bc\u110b\u116f\u11ab","\u1107\u1169\u1100\u116a\u11ab","\u1107\u1169\u1102\u1165\u1109\u1173","\u1107\u1169\u1105\u1161\u1109\u1162\u11a8","\u1107\u1169\u1105\u1161\u11b7","\u1107\u1169\u1105\u1173\u11b7","\u1107\u1169\u1109\u1161\u11bc","\u1107\u1169\u110b\u1161\u11ab","\u1107\u1169\u110c\u1161\u1100\u1175","\u1107\u1169\u110c\u1161\u11bc","\u1107\u1169\u110c\u1165\u11ab","\u1107\u1169\u110c\u1169\u11ab","\u1107\u1169\u1110\u1169\u11bc","\u1107\u1169\u1111\u1167\u11ab\u110c\u1165\u11a8","\u1107\u1169\u1112\u1165\u11b7","\u1107\u1169\u11a8\u1103\u1169","\u1107\u1169\u11a8\u1109\u1161","\u1107\u1169\u11a8\u1109\u116e\u11bc\u110b\u1161","\u1107\u1169\u11a8\u1109\u1173\u11b8","\u1107\u1169\u11a9\u110b\u1173\u11b7","\u1107\u1169\u11ab\u1100\u1167\u11a8\u110c\u1165\u11a8","\u1107\u1169\u11ab\u1105\u1162","\u1107\u1169\u11ab\u1107\u116e","\u1107\u1169\u11ab\u1109\u1161","\u1107\u1169\u11ab\u1109\u1165\u11bc","\u1107\u1169\u11ab\u110b\u1175\u11ab","\u1107\u1169\u11ab\u110c\u1175\u11af","\u1107\u1169\u11af\u1111\u1166\u11ab","\u1107\u1169\u11bc\u1109\u1161","\u1107\u1169\u11bc\u110c\u1175","\u1107\u1169\u11bc\u1110\u116e","\u1107\u116e\u1100\u1173\u11ab","\u1107\u116e\u1101\u1173\u1105\u1165\u110b\u116e\u11b7","\u1107\u116e\u1103\u1161\u11b7","\u1107\u116e\u1103\u1169\u11bc\u1109\u1161\u11ab","\u1107\u116e\u1106\u116e\u11ab","\u1107\u116e\u1107\u116e\u11ab","\u1107\u116e\u1109\u1161\u11ab","\u1107\u116e\u1109\u1161\u11bc","\u1107\u116e\u110b\u1165\u11bf","\u1107\u116e\u110b\u1175\u11ab","\u1107\u116e\u110c\u1161\u11a8\u110b\u116d\u11bc","\u1107\u116e\u110c\u1161\u11bc","\u1107\u116e\u110c\u1165\u11bc","\u1107\u116e\u110c\u1169\u11a8","\u1107\u116e\u110c\u1175\u1105\u1165\u11ab\u1112\u1175","\u1107\u116e\u110e\u1175\u11ab","\u1107\u116e\u1110\u1161\u11a8","\u1107\u116e\u1111\u116e\u11b7","\u1107\u116e\u1112\u116c\u110c\u1161\u11bc","\u1107\u116e\u11a8\u1107\u116e","\u1107\u116e\u11a8\u1112\u1161\u11ab","\u1107\u116e\u11ab\u1102\u1169","\u1107\u116e\u11ab\u1105\u1163\u11bc","\u1107\u116e\u11ab\u1105\u1175","\u1107\u116e\u11ab\u1106\u1167\u11bc","\u1107\u116e\u11ab\u1109\u1165\u11a8","\u1107\u116e\u11ab\u110b\u1163","\u1107\u116e\u11ab\u110b\u1171\u1100\u1175","\u1107\u116e\u11ab\u1111\u1175\u11af","\u1107\u116e\u11ab\u1112\u1169\u11bc\u1109\u1162\u11a8","\u1107\u116e\u11af\u1100\u1169\u1100\u1175","\u1107\u116e\u11af\u1100\u116a","\u1107\u116e\u11af\u1100\u116d","\u1107\u116e\u11af\u1101\u1169\u11be","\u1107\u116e\u11af\u1106\u1161\u11ab","\u1107\u116e\u11af\u1107\u1165\u11b8","\u1107\u116e\u11af\u1107\u1175\u11be","\u1107\u116e\u11af\u110b\u1161\u11ab","\u1107\u116e\u11af\u110b\u1175\u110b\u1175\u11a8","\u1107\u116e\u11af\u1112\u1162\u11bc","\u1107\u1173\u1105\u1162\u11ab\u1103\u1173","\u1107\u1175\u1100\u1173\u11a8","\u1107\u1175\u1102\u1161\u11ab","\u1107\u1175\u1102\u1175\u11af","\u1107\u1175\u1103\u116e\u11af\u1100\u1175","\u1107\u1175\u1103\u1175\u110b\u1169","\u1107\u1175\u1105\u1169\u1109\u1169","\u1107\u1175\u1106\u1161\u11ab","\u1107\u1175\u1106\u1167\u11bc","\u1107\u1175\u1106\u1175\u11af","\u1107\u1175\u1107\u1161\u1105\u1161\u11b7","\u1107\u1175\u1107\u1175\u11b7\u1107\u1161\u11b8","\u1107\u1175\u1109\u1161\u11bc","\u1107\u1175\u110b\u116d\u11bc","\u1107\u1175\u110b\u1172\u11af","\u1107\u1175\u110c\u116e\u11bc","\u1107\u1175\u1110\u1161\u1106\u1175\u11ab","\u1107\u1175\u1111\u1161\u11ab","\u1107\u1175\u11af\u1103\u1175\u11bc","\u1107\u1175\u11ba\u1106\u116e\u11af","\u1107\u1175\u11ba\u1107\u1161\u11bc\u110b\u116e\u11af","\u1107\u1175\u11ba\u110c\u116e\u11af\u1100\u1175","\u1107\u1175\u11be\u1101\u1161\u11af","\u1108\u1161\u11af\u1100\u1161\u11ab\u1109\u1162\u11a8","\u1108\u1161\u11af\u1105\u1162","\u1108\u1161\u11af\u1105\u1175","\u1109\u1161\u1100\u1165\u11ab","\u1109\u1161\u1100\u1168\u110c\u1165\u11af","\u1109\u1161\u1102\u1161\u110b\u1175","\u1109\u1161\u1102\u1163\u11bc","\u1109\u1161\u1105\u1161\u11b7","\u1109\u1161\u1105\u1161\u11bc","\u1109\u1161\u1105\u1175\u11b8","\u1109\u1161\u1106\u1169\u1102\u1175\u11b7","\u1109\u1161\u1106\u116e\u11af","\u1109\u1161\u1107\u1161\u11bc","\u1109\u1161\u1109\u1161\u11bc","\u1109\u1161\u1109\u1162\u11bc\u1112\u116a\u11af","\u1109\u1161\u1109\u1165\u11af","\u1109\u1161\u1109\u1173\u11b7","\u1109\u1161\u1109\u1175\u11af","\u1109\u1161\u110b\u1165\u11b8","\u1109\u1161\u110b\u116d\u11bc","\u1109\u1161\u110b\u116f\u11af","\u1109\u1161\u110c\u1161\u11bc","\u1109\u1161\u110c\u1165\u11ab","\u1109\u1161\u110c\u1175\u11ab","\u1109\u1161\u110e\u1169\u11ab","\u1109\u1161\u110e\u116e\u11ab\u1100\u1175","\u1109\u1161\u1110\u1161\u11bc","\u1109\u1161\u1110\u116e\u1105\u1175","\u1109\u1161\u1112\u1173\u11af","\u1109\u1161\u11ab\u1100\u1175\u11af","\u1109\u1161\u11ab\u1107\u116e\u110b\u1175\u11ab\u1100\u116a","\u1109\u1161\u11ab\u110b\u1165\u11b8","\u1109\u1161\u11ab\u110e\u1162\u11a8","\u1109\u1161\u11af\u1105\u1175\u11b7","\u1109\u1161\u11af\u110b\u1175\u11ab","\u1109\u1161\u11af\u110d\u1161\u11a8","\u1109\u1161\u11b7\u1100\u1168\u1110\u1161\u11bc","\u1109\u1161\u11b7\u1100\u116e\u11a8","\u1109\u1161\u11b7\u1109\u1175\u11b8","\u1109\u1161\u11b7\u110b\u116f\u11af","\u1109\u1161\u11b7\u110e\u1169\u11ab","\u1109\u1161\u11bc\u1100\u116a\u11ab","\u1109\u1161\u11bc\u1100\u1173\u11b7","\u1109\u1161\u11bc\u1103\u1162","\u1109\u1161\u11bc\u1105\u1172","\u1109\u1161\u11bc\u1107\u1161\u11ab\u1100\u1175","\u1109\u1161\u11bc\u1109\u1161\u11bc","\u1109\u1161\u11bc\u1109\u1175\u11a8","\u1109\u1161\u11bc\u110b\u1165\u11b8","\u1109\u1161\u11bc\u110b\u1175\u11ab","\u1109\u1161\u11bc\u110c\u1161","\u1109\u1161\u11bc\u110c\u1165\u11b7","\u1109\u1161\u11bc\u110e\u1165","\u1109\u1161\u11bc\u110e\u116e","\u1109\u1161\u11bc\u1110\u1162","\u1109\u1161\u11bc\u1111\u116d","\u1109\u1161\u11bc\u1111\u116e\u11b7","\u1109\u1161\u11bc\u1112\u116a\u11bc","\u1109\u1162\u1107\u1167\u11a8","\u1109\u1162\u11a8\u1101\u1161\u11af","\u1109\u1162\u11a8\u110b\u1167\u11ab\u1111\u1175\u11af","\u1109\u1162\u11bc\u1100\u1161\u11a8","\u1109\u1162\u11bc\u1106\u1167\u11bc","\u1109\u1162\u11bc\u1106\u116e\u11af","\u1109\u1162\u11bc\u1107\u1161\u11bc\u1109\u1169\u11bc","\u1109\u1162\u11bc\u1109\u1161\u11ab","\u1109\u1162\u11bc\u1109\u1165\u11ab","\u1109\u1162\u11bc\u1109\u1175\u11ab","\u1109\u1162\u11bc\u110b\u1175\u11af","\u1109\u1162\u11bc\u1112\u116a\u11af","\u1109\u1165\u1105\u1161\u11b8","\u1109\u1165\u1105\u1173\u11ab","\u1109\u1165\u1106\u1167\u11bc","\u1109\u1165\u1106\u1175\u11ab","\u1109\u1165\u1107\u1175\u1109\u1173","\u1109\u1165\u110b\u1163\u11bc","\u1109\u1165\u110b\u116e\u11af","\u1109\u1165\u110c\u1165\u11a8","\u1109\u1165\u110c\u1165\u11b7","\u1109\u1165\u110d\u1169\u11a8","\u1109\u1165\u110f\u1173\u11af","\u1109\u1165\u11a8\u1109\u1161","\u1109\u1165\u11a8\u110b\u1172","\u1109\u1165\u11ab\u1100\u1165","\u1109\u1165\u11ab\u1106\u116e\u11af","\u1109\u1165\u11ab\u1107\u1162","\u1109\u1165\u11ab\u1109\u1162\u11bc","\u1109\u1165\u11ab\u1109\u116e","\u1109\u1165\u11ab\u110b\u116f\u11ab","\u1109\u1165\u11ab\u110c\u1161\u11bc","\u1109\u1165\u11ab\u110c\u1165\u11ab","\u1109\u1165\u11ab\u1110\u1162\u11a8","\u1109\u1165\u11ab\u1111\u116e\u11bc\u1100\u1175","\u1109\u1165\u11af\u1100\u1165\u110c\u1175","\u1109\u1165\u11af\u1102\u1161\u11af","\u1109\u1165\u11af\u1105\u1165\u11bc\u1110\u1161\u11bc","\u1109\u1165\u11af\u1106\u1167\u11bc","\u1109\u1165\u11af\u1106\u116e\u11ab","\u1109\u1165\u11af\u1109\u1161","\u1109\u1165\u11af\u110b\u1161\u11a8\u1109\u1161\u11ab","\u1109\u1165\u11af\u110e\u1175","\u1109\u1165\u11af\u1110\u1161\u11bc","\u1109\u1165\u11b8\u110a\u1175","\u1109\u1165\u11bc\u1100\u1169\u11bc","\u1109\u1165\u11bc\u1103\u1161\u11bc","\u1109\u1165\u11bc\u1106\u1167\u11bc","\u1109\u1165\u11bc\u1107\u1167\u11af","\u1109\u1165\u11bc\u110b\u1175\u11ab","\u1109\u1165\u11bc\u110c\u1161\u11bc","\u1109\u1165\u11bc\u110c\u1165\u11a8","\u1109\u1165\u11bc\u110c\u1175\u11af","\u1109\u1165\u11bc\u1112\u1161\u11b7","\u1109\u1166\u1100\u1173\u11b7","\u1109\u1166\u1106\u1175\u1102\u1161","\u1109\u1166\u1109\u1161\u11bc","\u1109\u1166\u110b\u116f\u11af","\u1109\u1166\u110c\u1169\u11bc\u1103\u1162\u110b\u116a\u11bc","\u1109\u1166\u1110\u1161\u11a8","\u1109\u1166\u11ab\u1110\u1165","\u1109\u1166\u11ab\u1110\u1175\u1106\u1175\u1110\u1165","\u1109\u1166\u11ba\u110d\u1162","\u1109\u1169\u1100\u1172\u1106\u1169","\u1109\u1169\u1100\u1173\u11a8\u110c\u1165\u11a8","\u1109\u1169\u1100\u1173\u11b7","\u1109\u1169\u1102\u1161\u1100\u1175","\u1109\u1169\u1102\u1167\u11ab","\u1109\u1169\u1103\u1173\u11a8","\u1109\u1169\u1106\u1161\u11bc","\u1109\u1169\u1106\u116e\u11ab","\u1109\u1169\u1109\u1165\u11af","\u1109\u1169\u1109\u1169\u11a8","\u1109\u1169\u110b\u1161\u1100\u116a","\u1109\u1169\u110b\u116d\u11bc","\u1109\u1169\u110b\u116f\u11ab","\u1109\u1169\u110b\u1173\u11b7","\u1109\u1169\u110c\u116e\u11bc\u1112\u1175","\u1109\u1169\u110c\u1175\u1111\u116e\u11b7","\u1109\u1169\u110c\u1175\u11af","\u1109\u1169\u1111\u116e\u11bc","\u1109\u1169\u1112\u1167\u11bc","\u1109\u1169\u11a8\u1103\u1161\u11b7","\u1109\u1169\u11a8\u1103\u1169","\u1109\u1169\u11a8\u110b\u1169\u11ba","\u1109\u1169\u11ab\u1100\u1161\u1105\u1161\u11a8","\u1109\u1169\u11ab\u1100\u1175\u11af","\u1109\u1169\u11ab\u1102\u1167","\u1109\u1169\u11ab\u1102\u1175\u11b7","\u1109\u1169\u11ab\u1103\u1173\u11bc","\u1109\u1169\u11ab\u1106\u1169\u11a8","\u1109\u1169\u11ab\u1108\u1167\u11a8","\u1109\u1169\u11ab\u1109\u1175\u11af","\u1109\u1169\u11ab\u110c\u1175\u11af","\u1109\u1169\u11ab\u1110\u1169\u11b8","\u1109\u1169\u11ab\u1112\u1162","\u1109\u1169\u11af\u110c\u1175\u11a8\u1112\u1175","\u1109\u1169\u11b7\u110a\u1175","\u1109\u1169\u11bc\u110b\u1161\u110c\u1175","\u1109\u1169\u11bc\u110b\u1175","\u1109\u1169\u11bc\u1111\u1167\u11ab","\u1109\u116c\u1100\u1169\u1100\u1175","\u1109\u116d\u1111\u1175\u11bc","\u1109\u116e\u1100\u1165\u11ab","\u1109\u116e\u1102\u1167\u11ab","\u1109\u116e\u1103\u1161\u11ab","\u1109\u116e\u1103\u1169\u11ba\u1106\u116e\u11af","\u1109\u116e\u1103\u1169\u11bc\u110c\u1165\u11a8","\u1109\u116e\u1106\u1167\u11ab","\u1109\u116e\u1106\u1167\u11bc","\u1109\u116e\u1107\u1161\u11a8","\u1109\u116e\u1109\u1161\u11bc","\u1109\u116e\u1109\u1165\u11a8","\u1109\u116e\u1109\u116e\u11af","\u1109\u116e\u1109\u1175\u1105\u1169","\u1109\u116e\u110b\u1165\u11b8","\u1109\u116e\u110b\u1167\u11b7","\u1109\u116e\u110b\u1167\u11bc","\u1109\u116e\u110b\u1175\u11b8","\u1109\u116e\u110c\u116e\u11ab","\u1109\u116e\u110c\u1175\u11b8","\u1109\u116e\u110e\u116e\u11af","\u1109\u116e\u110f\u1165\u11ba","\u1109\u116e\u1111\u1175\u11af","\u1109\u116e\u1112\u1161\u11a8","\u1109\u116e\u1112\u1165\u11b7\u1109\u1162\u11bc","\u1109\u116e\u1112\u116a\u1100\u1175","\u1109\u116e\u11a8\u1102\u1167","\u1109\u116e\u11a8\u1109\u1169","\u1109\u116e\u11a8\u110c\u1166","\u1109\u116e\u11ab\u1100\u1161\u11ab","\u1109\u116e\u11ab\u1109\u1165","\u1109\u116e\u11ab\u1109\u116e","\u1109\u116e\u11ab\u1109\u1175\u11a8\u1100\u1161\u11ab","\u1109\u116e\u11ab\u110b\u1171","\u1109\u116e\u11ae\u1100\u1161\u1105\u1161\u11a8","\u1109\u116e\u11af\u1107\u1167\u11bc","\u1109\u116e\u11af\u110c\u1175\u11b8","\u1109\u116e\u11ba\u110c\u1161","\u1109\u1173\u1102\u1175\u11b7","\u1109\u1173\u1106\u116e\u11af","\u1109\u1173\u1109\u1173\u1105\u1169","\u1109\u1173\u1109\u1173\u11bc","\u1109\u1173\u110b\u1170\u1110\u1165","\u1109\u1173\u110b\u1171\u110e\u1175","\u1109\u1173\u110f\u1166\u110b\u1175\u1110\u1173","\u1109\u1173\u1110\u1172\u1103\u1175\u110b\u1169","\u1109\u1173\u1110\u1173\u1105\u1166\u1109\u1173","\u1109\u1173\u1111\u1169\u110e\u1173","\u1109\u1173\u11af\u110d\u1165\u11a8","\u1109\u1173\u11af\u1111\u1173\u11b7","\u1109\u1173\u11b8\u1100\u116a\u11ab","\u1109\u1173\u11b8\u1100\u1175","\u1109\u1173\u11bc\u1100\u1162\u11a8","\u1109\u1173\u11bc\u1105\u1175","\u1109\u1173\u11bc\u1107\u116e","\u1109\u1173\u11bc\u110b\u116d\u11bc\u110e\u1161","\u1109\u1173\u11bc\u110c\u1175\u11ab","\u1109\u1175\u1100\u1161\u11a8","\u1109\u1175\u1100\u1161\u11ab","\u1109\u1175\u1100\u1169\u11af","\u1109\u1175\u1100\u1173\u11b7\u110e\u1175","\u1109\u1175\u1102\u1161\u1105\u1175\u110b\u1169","\u1109\u1175\u1103\u1162\u11a8","\u1109\u1175\u1105\u1175\u110c\u1173","\u1109\u1175\u1106\u1166\u11ab\u1110\u1173","\u1109\u1175\u1106\u1175\u11ab","\u1109\u1175\u1107\u116e\u1106\u1169","\u1109\u1175\u1109\u1165\u11ab","\u1109\u1175\u1109\u1165\u11af","\u1109\u1175\u1109\u1173\u1110\u1166\u11b7","\u1109\u1175\u110b\u1161\u1107\u1165\u110c\u1175","\u1109\u1175\u110b\u1165\u1106\u1165\u1102\u1175","\u1109\u1175\u110b\u116f\u11af","\u1109\u1175\u110b\u1175\u11ab","\u1109\u1175\u110b\u1175\u11af","\u1109\u1175\u110c\u1161\u11a8","\u1109\u1175\u110c\u1161\u11bc","\u1109\u1175\u110c\u1165\u11af","\u1109\u1175\u110c\u1165\u11b7","\u1109\u1175\u110c\u116e\u11bc","\u1109\u1175\u110c\u1173\u11ab","\u1109\u1175\u110c\u1175\u11b8","\u1109\u1175\u110e\u1165\u11bc","\u1109\u1175\u1112\u1161\u11b8","\u1109\u1175\u1112\u1165\u11b7","\u1109\u1175\u11a8\u1100\u116e","\u1109\u1175\u11a8\u1100\u1175","\u1109\u1175\u11a8\u1103\u1161\u11bc","\u1109\u1175\u11a8\u1105\u1163\u11bc","\u1109\u1175\u11a8\u1105\u116d\u1111\u116e\u11b7","\u1109\u1175\u11a8\u1106\u116e\u11af","\u1109\u1175\u11a8\u1108\u1161\u11bc","\u1109\u1175\u11a8\u1109\u1161","\u1109\u1175\u11a8\u1109\u1162\u11bc\u1112\u116a\u11af","\u1109\u1175\u11a8\u110e\u1169","\u1109\u1175\u11a8\u1110\u1161\u11a8","\u1109\u1175\u11a8\u1111\u116e\u11b7","\u1109\u1175\u11ab\u1100\u1169","\u1109\u1175\u11ab\u1100\u1172","\u1109\u1175\u11ab\u1102\u1167\u11b7","\u1109\u1175\u11ab\u1106\u116e\u11ab","\u1109\u1175\u11ab\u1107\u1161\u11af","\u1109\u1175\u11ab\u1107\u1175","\u1109\u1175\u11ab\u1109\u1161","\u1109\u1175\u11ab\u1109\u1166","\u1109\u1175\u11ab\u110b\u116d\u11bc","\u1109\u1175\u11ab\u110c\u1166\u1111\u116e\u11b7","\u1109\u1175\u11ab\u110e\u1165\u11bc","\u1109\u1175\u11ab\u110e\u1166","\u1109\u1175\u11ab\u1112\u116a","\u1109\u1175\u11af\u1100\u1161\u11b7","\u1109\u1175\u11af\u1102\u1162","\u1109\u1175\u11af\u1105\u1167\u11a8","\u1109\u1175\u11af\u1105\u1168","\u1109\u1175\u11af\u1106\u1161\u11bc","\u1109\u1175\u11af\u1109\u116e","\u1109\u1175\u11af\u1109\u1173\u11b8","\u1109\u1175\u11af\u1109\u1175","\u1109\u1175\u11af\u110c\u1161\u11bc","\u1109\u1175\u11af\u110c\u1165\u11bc","\u1109\u1175\u11af\u110c\u1175\u11af\u110c\u1165\u11a8","\u1109\u1175\u11af\u110e\u1165\u11ab","\u1109\u1175\u11af\u110e\u1166","\u1109\u1175\u11af\u110f\u1165\u11ba","\u1109\u1175\u11af\u1110\u1162","\u1109\u1175\u11af\u1111\u1162","\u1109\u1175\u11af\u1112\u1165\u11b7","\u1109\u1175\u11af\u1112\u1167\u11ab","\u1109\u1175\u11b7\u1105\u1175","\u1109\u1175\u11b7\u1107\u116e\u1105\u1173\u11b7","\u1109\u1175\u11b7\u1109\u1161","\u1109\u1175\u11b7\u110c\u1161\u11bc","\u1109\u1175\u11b7\u110c\u1165\u11bc","\u1109\u1175\u11b7\u1111\u1161\u11ab","\u110a\u1161\u11bc\u1103\u116e\u11bc\u110b\u1175","\u110a\u1175\u1105\u1173\u11b7","\u110a\u1175\u110b\u1161\u11ba","\u110b\u1161\u1100\u1161\u110a\u1175","\u110b\u1161\u1102\u1161\u110b\u116e\u11ab\u1109\u1165","\u110b\u1161\u1103\u1173\u1102\u1175\u11b7","\u110b\u1161\u1103\u1173\u11af","\u110b\u1161\u1109\u1171\u110b\u116e\u11b7","\u110b\u1161\u1109\u1173\u1111\u1161\u11af\u1110\u1173","\u110b\u1161\u1109\u1175\u110b\u1161","\u110b\u1161\u110b\u116e\u11af\u1105\u1165","\u110b\u1161\u110c\u1165\u110a\u1175","\u110b\u1161\u110c\u116e\u11b7\u1106\u1161","\u110b\u1161\u110c\u1175\u11a8","\u110b\u1161\u110e\u1175\u11b7","\u110b\u1161\u1111\u1161\u1110\u1173","\u110b\u1161\u1111\u1173\u1105\u1175\u110f\u1161","\u110b\u1161\u1111\u1173\u11b7","\u110b\u1161\u1112\u1169\u11b8","\u110b\u1161\u1112\u1173\u11ab","\u110b\u1161\u11a8\u1100\u1175","\u110b\u1161\u11a8\u1106\u1169\u11bc","\u110b\u1161\u11a8\u1109\u116e","\u110b\u1161\u11ab\u1100\u1162","\u110b\u1161\u11ab\u1100\u1167\u11bc","\u110b\u1161\u11ab\u1100\u116a","\u110b\u1161\u11ab\u1102\u1162","\u110b\u1161\u11ab\u1102\u1167\u11bc","\u110b\u1161\u11ab\u1103\u1169\u11bc","\u110b\u1161\u11ab\u1107\u1161\u11bc","\u110b\u1161\u11ab\u1107\u116e","\u110b\u1161\u11ab\u110c\u116e","\u110b\u1161\u11af\u1105\u116e\u1106\u1175\u1102\u1172\u11b7","\u110b\u1161\u11af\u110f\u1169\u110b\u1169\u11af","\u110b\u1161\u11b7\u1109\u1175","\u110b\u1161\u11b7\u110f\u1165\u11ba","\u110b\u1161\u11b8\u1105\u1167\u11a8","\u110b\u1161\u11c1\u1102\u1161\u11af","\u110b\u1161\u11c1\u1106\u116e\u11ab","\u110b\u1162\u110b\u1175\u11ab","\u110b\u1162\u110c\u1165\u11bc","\u110b\u1162\u11a8\u1109\u116e","\u110b\u1162\u11af\u1107\u1165\u11b7","\u110b\u1163\u1100\u1161\u11ab","\u110b\u1163\u1103\u1161\u11ab","\u110b\u1163\u110b\u1169\u11bc","\u110b\u1163\u11a8\u1100\u1161\u11ab","\u110b\u1163\u11a8\u1100\u116e\u11a8","\u110b\u1163\u11a8\u1109\u1169\u11a8","\u110b\u1163\u11a8\u1109\u116e","\u110b\u1163\u11a8\u110c\u1165\u11b7","\u110b\u1163\u11a8\u1111\u116e\u11b7","\u110b\u1163\u11a8\u1112\u1169\u11ab\u1102\u1167","\u110b\u1163\u11bc\u1102\u1167\u11b7","\u110b\u1163\u11bc\u1105\u1167\u11a8","\u110b\u1163\u11bc\u1106\u1161\u11af","\u110b\u1163\u11bc\u1107\u1162\u110e\u116e","\u110b\u1163\u11bc\u110c\u116e","\u110b\u1163\u11bc\u1111\u1161","\u110b\u1165\u1103\u116e\u11b7","\u110b\u1165\u1105\u1167\u110b\u116e\u11b7","\u110b\u1165\u1105\u1173\u11ab","\u110b\u1165\u110c\u1166\u11ba\u1107\u1161\u11b7","\u110b\u1165\u110d\u1162\u11bb\u1103\u1173\u11ab","\u110b\u1165\u110d\u1165\u1103\u1161\u1100\u1161","\u110b\u1165\u110d\u1165\u11ab\u110c\u1175","\u110b\u1165\u11ab\u1102\u1175","\u110b\u1165\u11ab\u1103\u1165\u11a8","\u110b\u1165\u11ab\u1105\u1169\u11ab","\u110b\u1165\u11ab\u110b\u1165","\u110b\u1165\u11af\u1100\u116e\u11af","\u110b\u1165\u11af\u1105\u1173\u11ab","\u110b\u1165\u11af\u110b\u1173\u11b7","\u110b\u1165\u11af\u1111\u1175\u11ba","\u110b\u1165\u11b7\u1106\u1161","\u110b\u1165\u11b8\u1106\u116e","\u110b\u1165\u11b8\u110c\u1169\u11bc","\u110b\u1165\u11b8\u110e\u1166","\u110b\u1165\u11bc\u1103\u1165\u11bc\u110b\u1175","\u110b\u1165\u11bc\u1106\u1161\u11bc","\u110b\u1165\u11bc\u1110\u1165\u1105\u1175","\u110b\u1165\u11bd\u1100\u1173\u110c\u1166","\u110b\u1166\u1102\u1165\u110c\u1175","\u110b\u1166\u110b\u1165\u110f\u1165\u11ab","\u110b\u1166\u11ab\u110c\u1175\u11ab","\u110b\u1167\u1100\u1165\u11ab","\u110b\u1167\u1100\u1169\u1109\u1162\u11bc","\u110b\u1167\u1100\u116a\u11ab","\u110b\u1167\u1100\u116e\u11ab","\u110b\u1167\u1100\u116f\u11ab","\u110b\u1167\u1103\u1162\u1109\u1162\u11bc","\u110b\u1167\u1103\u1165\u11b2","\u110b\u1167\u1103\u1169\u11bc\u1109\u1162\u11bc","\u110b\u1167\u1103\u1173\u11ab","\u110b\u1167\u1105\u1169\u11ab","\u110b\u1167\u1105\u1173\u11b7","\u110b\u1167\u1109\u1165\u11ba","\u110b\u1167\u1109\u1165\u11bc","\u110b\u1167\u110b\u116a\u11bc","\u110b\u1167\u110b\u1175\u11ab","\u110b\u1167\u110c\u1165\u11ab\u1112\u1175","\u110b\u1167\u110c\u1175\u11a8\u110b\u116f\u11ab","\u110b\u1167\u1112\u1161\u11a8\u1109\u1162\u11bc","\u110b\u1167\u1112\u1162\u11bc","\u110b\u1167\u11a8\u1109\u1161","\u110b\u1167\u11a8\u1109\u1175","\u110b\u1167\u11a8\u1112\u1161\u11af","\u110b\u1167\u11ab\u1100\u1167\u11af","\u110b\u1167\u11ab\u1100\u116e","\u110b\u1167\u11ab\u1100\u1173\u11a8","\u110b\u1167\u11ab\u1100\u1175","\u110b\u1167\u11ab\u1105\u1161\u11a8","\u110b\u1167\u11ab\u1109\u1165\u11af","\u110b\u1167\u11ab\u1109\u1166","\u110b\u1167\u11ab\u1109\u1169\u11a8","\u110b\u1167\u11ab\u1109\u1173\u11b8","\u110b\u1167\u11ab\u110b\u1162","\u110b\u1167\u11ab\u110b\u1168\u110b\u1175\u11ab","\u110b\u1167\u11ab\u110b\u1175\u11ab","\u110b\u1167\u11ab\u110c\u1161\u11bc","\u110b\u1167\u11ab\u110c\u116e","\u110b\u1167\u11ab\u110e\u116e\u11af","\u110b\u1167\u11ab\u1111\u1175\u11af","\u110b\u1167\u11ab\u1112\u1161\u11b8","\u110b\u1167\u11ab\u1112\u1172","\u110b\u1167\u11af\u1100\u1175","\u110b\u1167\u11af\u1106\u1162","\u110b\u1167\u11af\u1109\u116c","\u110b\u1167\u11af\u1109\u1175\u11b7\u1112\u1175","\u110b\u1167\u11af\u110c\u1165\u11bc","\u110b\u1167\u11af\u110e\u1161","\u110b\u1167\u11af\u1112\u1173\u11af","\u110b\u1167\u11b7\u1105\u1167","\u110b\u1167\u11b8\u1109\u1165","\u110b\u1167\u11bc\u1100\u116e\u11a8","\u110b\u1167\u11bc\u1102\u1161\u11b7","\u110b\u1167\u11bc\u1109\u1161\u11bc","\u110b\u1167\u11bc\u110b\u1163\u11bc","\u110b\u1167\u11bc\u110b\u1167\u11a8","\u110b\u1167\u11bc\u110b\u116e\u11bc","\u110b\u1167\u11bc\u110b\u116f\u11ab\u1112\u1175","\u110b\u1167\u11bc\u1112\u1161","\u110b\u1167\u11bc\u1112\u1163\u11bc","\u110b\u1167\u11bc\u1112\u1169\u11ab","\u110b\u1167\u11bc\u1112\u116a","\u110b\u1167\u11c1\u1100\u116e\u1105\u1175","\u110b\u1167\u11c1\u1107\u1161\u11bc","\u110b\u1167\u11c1\u110c\u1175\u11b8","\u110b\u1168\u1100\u1161\u11b7","\u110b\u1168\u1100\u1173\u11b7","\u110b\u1168\u1107\u1161\u11bc","\u110b\u1168\u1109\u1161\u11ab","\u110b\u1168\u1109\u1161\u11bc","\u110b\u1168\u1109\u1165\u11ab","\u110b\u1168\u1109\u116e\u11af","\u110b\u1168\u1109\u1173\u11b8","\u110b\u1168\u1109\u1175\u11a8\u110c\u1161\u11bc","\u110b\u1168\u110b\u1163\u11a8","\u110b\u1168\u110c\u1165\u11ab","\u110b\u1168\u110c\u1165\u11af","\u110b\u1168\u110c\u1165\u11bc","\u110b\u1168\u110f\u1165\u11ab\u1103\u1162","\u110b\u1168\u11ba\u1102\u1161\u11af","\u110b\u1169\u1102\u1173\u11af","\u110b\u1169\u1105\u1161\u11a8","\u110b\u1169\u1105\u1162\u11ba\u1103\u1169\u11bc\u110b\u1161\u11ab","\u110b\u1169\u1105\u1166\u11ab\u110c\u1175","\u110b\u1169\u1105\u1169\u110c\u1175","\u110b\u1169\u1105\u1173\u11ab\u1107\u1161\u11af","\u110b\u1169\u1107\u1173\u11ab","\u110b\u1169\u1109\u1175\u11b8","\u110b\u1169\u110b\u1167\u11b7","\u110b\u1169\u110b\u116f\u11af","\u110b\u1169\u110c\u1165\u11ab","\u110b\u1169\u110c\u1175\u11a8","\u110b\u1169\u110c\u1175\u11bc\u110b\u1165","\u110b\u1169\u1111\u1166\u1105\u1161","\u110b\u1169\u1111\u1175\u1109\u1173\u1110\u1166\u11af","\u110b\u1169\u1112\u1175\u1105\u1167","\u110b\u1169\u11a8\u1109\u1161\u11bc","\u110b\u1169\u11a8\u1109\u116e\u1109\u116e","\u110b\u1169\u11ab\u1100\u1161\u11bd","\u110b\u1169\u11ab\u1105\u1161\u110b\u1175\u11ab","\u110b\u1169\u11ab\u1106\u1169\u11b7","\u110b\u1169\u11ab\u110c\u1169\u11bc\u110b\u1175\u11af","\u110b\u1169\u11ab\u1110\u1169\u11bc","\u110b\u1169\u11af\u1100\u1161\u110b\u1173\u11af","\u110b\u1169\u11af\u1105\u1175\u11b7\u1111\u1175\u11a8","\u110b\u1169\u11af\u1112\u1162","\u110b\u1169\u11ba\u110e\u1161\u1105\u1175\u11b7","\u110b\u116a\u110b\u1175\u1109\u1167\u110e\u1173","\u110b\u116a\u110b\u1175\u11ab","\u110b\u116a\u11ab\u1109\u1165\u11bc","\u110b\u116a\u11ab\u110c\u1165\u11ab","\u110b\u116a\u11bc\u1107\u1175","\u110b\u116a\u11bc\u110c\u1161","\u110b\u116b\u1102\u1163\u1112\u1161\u1106\u1167\u11ab","\u110b\u116b\u11ab\u110c\u1175","\u110b\u116c\u1100\u1161\u11ba\u110c\u1175\u11b8","\u110b\u116c\u1100\u116e\u11a8","\u110b\u116c\u1105\u1169\u110b\u116e\u11b7","\u110b\u116c\u1109\u1161\u11b7\u110e\u1169\u11ab","\u110b\u116c\u110e\u116e\u11af","\u110b\u116c\u110e\u1175\u11b7","\u110b\u116c\u1112\u1161\u11af\u1106\u1165\u1102\u1175","\u110b\u116c\u11ab\u1107\u1161\u11af","\u110b\u116c\u11ab\u1109\u1169\u11ab","\u110b\u116c\u11ab\u110d\u1169\u11a8","\u110b\u116d\u1100\u1173\u11b7","\u110b\u116d\u110b\u1175\u11af","\u110b\u116d\u110c\u1173\u11b7","\u110b\u116d\u110e\u1165\u11bc","\u110b\u116d\u11bc\u1100\u1175","\u110b\u116d\u11bc\u1109\u1165","\u110b\u116d\u11bc\u110b\u1165","\u110b\u116e\u1109\u1161\u11ab","\u110b\u116e\u1109\u1165\u11ab","\u110b\u116e\u1109\u1173\u11bc","\u110b\u116e\u110b\u1167\u11ab\u1112\u1175","\u110b\u116e\u110c\u1165\u11bc","\u110b\u116e\u110e\u1166\u1100\u116e\u11a8","\u110b\u116e\u1111\u1167\u11ab","\u110b\u116e\u11ab\u1103\u1169\u11bc","\u110b\u116e\u11ab\u1106\u1167\u11bc","\u110b\u116e\u11ab\u1107\u1161\u11ab","\u110b\u116e\u11ab\u110c\u1165\u11ab","\u110b\u116e\u11ab\u1112\u1162\u11bc","\u110b\u116e\u11af\u1109\u1161\u11ab","\u110b\u116e\u11af\u110b\u1173\u11b7","\u110b\u116e\u11b7\u110c\u1175\u11a8\u110b\u1175\u11b7","\u110b\u116e\u11ba\u110b\u1165\u1105\u1173\u11ab","\u110b\u116e\u11ba\u110b\u1173\u11b7","\u110b\u116f\u1102\u1161\u11a8","\u110b\u116f\u11ab\u1100\u1169","\u110b\u116f\u11ab\u1105\u1162","\u110b\u116f\u11ab\u1109\u1165","\u110b\u116f\u11ab\u1109\u116e\u11bc\u110b\u1175","\u110b\u116f\u11ab\u110b\u1175\u11ab","\u110b\u116f\u11ab\u110c\u1161\u11bc","\u110b\u116f\u11ab\u1111\u1175\u1109\u1173","\u110b\u116f\u11af\u1100\u1173\u11b8","\u110b\u116f\u11af\u1103\u1173\u110f\u1165\u11b8","\u110b\u116f\u11af\u1109\u1166","\u110b\u116f\u11af\u110b\u116d\u110b\u1175\u11af","\u110b\u1170\u110b\u1175\u1110\u1165","\u110b\u1171\u1107\u1161\u11ab","\u110b\u1171\u1107\u1165\u11b8","\u110b\u1171\u1109\u1165\u11bc","\u110b\u1171\u110b\u116f\u11ab","\u110b\u1171\u1112\u1165\u11b7","\u110b\u1171\u1112\u1167\u11b8","\u110b\u1171\u11ba\u1109\u1161\u1105\u1161\u11b7","\u110b\u1172\u1102\u1161\u11ab\u1112\u1175","\u110b\u1172\u1105\u1165\u11b8","\u110b\u1172\u1106\u1167\u11bc","\u110b\u1172\u1106\u116e\u11af","\u110b\u1172\u1109\u1161\u11ab","\u110b\u1172\u110c\u1165\u11a8","\u110b\u1172\u110e\u1175\u110b\u116f\u11ab","\u110b\u1172\u1112\u1161\u11a8","\u110b\u1172\u1112\u1162\u11bc","\u110b\u1172\u1112\u1167\u11bc","\u110b\u1172\u11a8\u1100\u116e\u11ab","\u110b\u1172\u11a8\u1109\u1161\u11bc","\u110b\u1172\u11a8\u1109\u1175\u11b8","\u110b\u1172\u11a8\u110e\u1166","\u110b\u1173\u11ab\u1112\u1162\u11bc","\u110b\u1173\u11b7\u1105\u1167\u11a8","\u110b\u1173\u11b7\u1105\u116d","\u110b\u1173\u11b7\u1107\u1161\u11ab","\u110b\u1173\u11b7\u1109\u1165\u11bc","\u110b\u1173\u11b7\u1109\u1175\u11a8","\u110b\u1173\u11b7\u110b\u1161\u11a8","\u110b\u1173\u11b7\u110c\u116e","\u110b\u1174\u1100\u1167\u11ab","\u110b\u1174\u1102\u1169\u11ab","\u110b\u1174\u1106\u116e\u11ab","\u110b\u1174\u1107\u1169\u11a8","\u110b\u1174\u1109\u1175\u11a8","\u110b\u1174\u1109\u1175\u11b7","\u110b\u1174\u110b\u116c\u1105\u1169","\u110b\u1174\u110b\u116d\u11a8","\u110b\u1174\u110b\u116f\u11ab","\u110b\u1174\u1112\u1161\u11a8","\u110b\u1175\u1100\u1165\u11ba","\u110b\u1175\u1100\u1169\u11ba","\u110b\u1175\u1102\u1167\u11b7","\u110b\u1175\u1102\u1169\u11b7","\u110b\u1175\u1103\u1161\u11af","\u110b\u1175\u1103\u1162\u1105\u1169","\u110b\u1175\u1103\u1169\u11bc","\u110b\u1175\u1105\u1165\u11c2\u1100\u1166","\u110b\u1175\u1105\u1167\u11a8\u1109\u1165","\u110b\u1175\u1105\u1169\u11ab\u110c\u1165\u11a8","\u110b\u1175\u1105\u1173\u11b7","\u110b\u1175\u1106\u1175\u11ab","\u110b\u1175\u1107\u1161\u11af\u1109\u1169","\u110b\u1175\u1107\u1167\u11af","\u110b\u1175\u1107\u116e\u11af","\u110b\u1175\u1108\u1161\u11af","\u110b\u1175\u1109\u1161\u11bc","\u110b\u1175\u1109\u1165\u11bc","\u110b\u1175\u1109\u1173\u11af","\u110b\u1175\u110b\u1163\u1100\u1175","\u110b\u1175\u110b\u116d\u11bc","\u110b\u1175\u110b\u116e\u11ba","\u110b\u1175\u110b\u116f\u11af","\u110b\u1175\u110b\u1173\u11a8\u1100\u1169","\u110b\u1175\u110b\u1175\u11a8","\u110b\u1175\u110c\u1165\u11ab","\u110b\u1175\u110c\u116e\u11bc","\u110b\u1175\u1110\u1173\u11ae\u1102\u1161\u11af","\u110b\u1175\u1110\u1173\u11af","\u110b\u1175\u1112\u1169\u11ab","\u110b\u1175\u11ab\u1100\u1161\u11ab","\u110b\u1175\u11ab\u1100\u1167\u11a8","\u110b\u1175\u11ab\u1100\u1169\u11bc","\u110b\u1175\u11ab\u1100\u116e","\u110b\u1175\u11ab\u1100\u1173\u11ab","\u110b\u1175\u11ab\u1100\u1175","\u110b\u1175\u11ab\u1103\u1169","\u110b\u1175\u11ab\u1105\u1172","\u110b\u1175\u11ab\u1106\u116e\u11af","\u110b\u1175\u11ab\u1109\u1162\u11bc","\u110b\u1175\u11ab\u1109\u116b","\u110b\u1175\u11ab\u110b\u1167\u11ab","\u110b\u1175\u11ab\u110b\u116f\u11ab","\u110b\u1175\u11ab\u110c\u1162","\u110b\u1175\u11ab\u110c\u1169\u11bc","\u110b\u1175\u11ab\u110e\u1165\u11ab","\u110b\u1175\u11ab\u110e\u1166","\u110b\u1175\u11ab\u1110\u1165\u1102\u1166\u11ba","\u110b\u1175\u11ab\u1112\u1161","\u110b\u1175\u11ab\u1112\u1167\u11bc","\u110b\u1175\u11af\u1100\u1169\u11b8","\u110b\u1175\u11af\u1100\u1175","\u110b\u1175\u11af\u1103\u1161\u11ab","\u110b\u1175\u11af\u1103\u1162","\u110b\u1175\u11af\u1103\u1173\u11bc","\u110b\u1175\u11af\u1107\u1161\u11ab","\u110b\u1175\u11af\u1107\u1169\u11ab","\u110b\u1175\u11af\u1107\u116e","\u110b\u1175\u11af\u1109\u1161\u11bc","\u110b\u1175\u11af\u1109\u1162\u11bc","\u110b\u1175\u11af\u1109\u1169\u11ab","\u110b\u1175\u11af\u110b\u116d\u110b\u1175\u11af","\u110b\u1175\u11af\u110b\u116f\u11af","\u110b\u1175\u11af\u110c\u1165\u11bc","\u110b\u1175\u11af\u110c\u1169\u11bc","\u110b\u1175\u11af\u110c\u116e\u110b\u1175\u11af","\u110b\u1175\u11af\u110d\u1175\u11a8","\u110b\u1175\u11af\u110e\u1166","\u110b\u1175\u11af\u110e\u1175","\u110b\u1175\u11af\u1112\u1162\u11bc","\u110b\u1175\u11af\u1112\u116c\u110b\u116d\u11bc","\u110b\u1175\u11b7\u1100\u1173\u11b7","\u110b\u1175\u11b7\u1106\u116e","\u110b\u1175\u11b8\u1103\u1162","\u110b\u1175\u11b8\u1105\u1167\u11a8","\u110b\u1175\u11b8\u1106\u1161\u11ba","\u110b\u1175\u11b8\u1109\u1161","\u110b\u1175\u11b8\u1109\u116e\u11af","\u110b\u1175\u11b8\u1109\u1175","\u110b\u1175\u11b8\u110b\u116f\u11ab","\u110b\u1175\u11b8\u110c\u1161\u11bc","\u110b\u1175\u11b8\u1112\u1161\u11a8","\u110c\u1161\u1100\u1161\u110b\u116d\u11bc","\u110c\u1161\u1100\u1167\u11a8","\u110c\u1161\u1100\u1173\u11a8","\u110c\u1161\u1103\u1169\u11bc","\u110c\u1161\u1105\u1161\u11bc","\u110c\u1161\u1107\u116e\u1109\u1175\u11b7","\u110c\u1161\u1109\u1175\u11a8","\u110c\u1161\u1109\u1175\u11ab","\u110c\u1161\u110b\u1167\u11ab","\u110c\u1161\u110b\u116f\u11ab","\u110c\u1161\u110b\u1172\u11af","\u110c\u1161\u110c\u1165\u11ab\u1100\u1165","\u110c\u1161\u110c\u1165\u11bc","\u110c\u1161\u110c\u1169\u11ab\u1109\u1175\u11b7","\u110c\u1161\u1111\u1161\u11ab","\u110c\u1161\u11a8\u1100\u1161","\u110c\u1161\u11a8\u1102\u1167\u11ab","\u110c\u1161\u11a8\u1109\u1165\u11bc","\u110c\u1161\u11a8\u110b\u1165\u11b8","\u110c\u1161\u11a8\u110b\u116d\u11bc","\u110c\u1161\u11a8\u110b\u1173\u11ab\u1104\u1161\u11af","\u110c\u1161\u11a8\u1111\u116e\u11b7","\u110c\u1161\u11ab\u1103\u1175","\u110c\u1161\u11ab\u1104\u1173\u11a8","\u110c\u1161\u11ab\u110e\u1175","\u110c\u1161\u11af\u1106\u1169\u11ba","\u110c\u1161\u11b7\u1101\u1161\u11ab","\u110c\u1161\u11b7\u1109\u116e\u1112\u1161\u11b7","\u110c\u1161\u11b7\u1109\u1175","\u110c\u1161\u11b7\u110b\u1169\u11ba","\u110c\u1161\u11b7\u110c\u1161\u1105\u1175","\u110c\u1161\u11b8\u110c\u1175","\u110c\u1161\u11bc\u1100\u116a\u11ab","\u110c\u1161\u11bc\u1100\u116e\u11ab","\u110c\u1161\u11bc\u1100\u1175\u1100\u1161\u11ab","\u110c\u1161\u11bc\u1105\u1162","\u110c\u1161\u11bc\u1105\u1168","\u110c\u1161\u11bc\u1105\u1173","\u110c\u1161\u11bc\u1106\u1161","\u110c\u1161\u11bc\u1106\u1167\u11ab","\u110c\u1161\u11bc\u1106\u1169","\u110c\u1161\u11bc\u1106\u1175","\u110c\u1161\u11bc\u1107\u1175","\u110c\u1161\u11bc\u1109\u1161","\u110c\u1161\u11bc\u1109\u1169","\u110c\u1161\u11bc\u1109\u1175\u11a8","\u110c\u1161\u11bc\u110b\u1162\u110b\u1175\u11ab","\u110c\u1161\u11bc\u110b\u1175\u11ab","\u110c\u1161\u11bc\u110c\u1165\u11b7","\u110c\u1161\u11bc\u110e\u1161","\u110c\u1161\u11bc\u1112\u1161\u11a8\u1100\u1173\u11b7","\u110c\u1162\u1102\u1173\u11bc","\u110c\u1162\u1108\u1161\u11af\u1105\u1175","\u110c\u1162\u1109\u1161\u11ab","\u110c\u1162\u1109\u1162\u11bc","\u110c\u1162\u110c\u1161\u11a8\u1102\u1167\u11ab","\u110c\u1162\u110c\u1165\u11bc","\u110c\u1162\u110e\u1162\u1100\u1175","\u110c\u1162\u1111\u1161\u11ab","\u110c\u1162\u1112\u1161\u11a8","\u110c\u1162\u1112\u116a\u11af\u110b\u116d\u11bc","\u110c\u1165\u1100\u1165\u11ba","\u110c\u1165\u1100\u1169\u1105\u1175","\u110c\u1165\u1100\u1169\u11ba","\u110c\u1165\u1102\u1167\u11a8","\u110c\u1165\u1105\u1165\u11ab","\u110c\u1165\u1105\u1165\u11c2\u1100\u1166","\u110c\u1165\u1107\u1165\u11ab","\u110c\u1165\u110b\u116e\u11af","\u110c\u1165\u110c\u1165\u11af\u1105\u1169","\u110c\u1165\u110e\u116e\u11a8","\u110c\u1165\u11a8\u1100\u1173\u11a8","\u110c\u1165\u11a8\u1103\u1161\u11bc\u1112\u1175","\u110c\u1165\u11a8\u1109\u1165\u11bc","\u110c\u1165\u11a8\u110b\u116d\u11bc","\u110c\u1165\u11a8\u110b\u1173\u11bc","\u110c\u1165\u11ab\u1100\u1162","\u110c\u1165\u11ab\u1100\u1169\u11bc","\u110c\u1165\u11ab\u1100\u1175","\u110c\u1165\u11ab\u1103\u1161\u11af","\u110c\u1165\u11ab\u1105\u1161\u1103\u1169","\u110c\u1165\u11ab\u1106\u1161\u11bc","\u110c\u1165\u11ab\u1106\u116e\u11ab","\u110c\u1165\u11ab\u1107\u1161\u11ab","\u110c\u1165\u11ab\u1107\u116e","\u110c\u1165\u11ab\u1109\u1166","\u110c\u1165\u11ab\u1109\u1175","\u110c\u1165\u11ab\u110b\u116d\u11bc","\u110c\u1165\u11ab\u110c\u1161","\u110c\u1165\u11ab\u110c\u1162\u11bc","\u110c\u1165\u11ab\u110c\u116e","\u110c\u1165\u11ab\u110e\u1165\u11af","\u110c\u1165\u11ab\u110e\u1166","\u110c\u1165\u11ab\u1110\u1169\u11bc","\u110c\u1165\u11ab\u1112\u1167","\u110c\u1165\u11ab\u1112\u116e","\u110c\u1165\u11af\u1103\u1162","\u110c\u1165\u11af\u1106\u1161\u11bc","\u110c\u1165\u11af\u1107\u1161\u11ab","\u110c\u1165\u11af\u110b\u1163\u11a8","\u110c\u1165\u11af\u110e\u1161","\u110c\u1165\u11b7\u1100\u1165\u11b7","\u110c\u1165\u11b7\u1109\u116e","\u110c\u1165\u11b7\u1109\u1175\u11b7","\u110c\u1165\u11b7\u110b\u116f\u11ab","\u110c\u1165\u11b7\u110c\u1165\u11b7","\u110c\u1165\u11b7\u110e\u1161","\u110c\u1165\u11b8\u1100\u1173\u11ab","\u110c\u1165\u11b8\u1109\u1175","\u110c\u1165\u11b8\u110e\u1169\u11a8","\u110c\u1165\u11ba\u1100\u1161\u1105\u1161\u11a8","\u110c\u1165\u11bc\u1100\u1165\u110c\u1161\u11bc","\u110c\u1165\u11bc\u1103\u1169","\u110c\u1165\u11bc\u1105\u1172\u110c\u1161\u11bc","\u110c\u1165\u11bc\u1105\u1175","\u110c\u1165\u11bc\u1106\u1161\u11af","\u110c\u1165\u11bc\u1106\u1167\u11ab","\u110c\u1165\u11bc\u1106\u116e\u11ab","\u110c\u1165\u11bc\u1107\u1161\u11ab\u1103\u1162","\u110c\u1165\u11bc\u1107\u1169","\u110c\u1165\u11bc\u1107\u116e","\u110c\u1165\u11bc\u1107\u1175","\u110c\u1165\u11bc\u1109\u1161\u11bc","\u110c\u1165\u11bc\u1109\u1165\u11bc","\u110c\u1165\u11bc\u110b\u1169","\u110c\u1165\u11bc\u110b\u116f\u11ab","\u110c\u1165\u11bc\u110c\u1161\u11bc","\u110c\u1165\u11bc\u110c\u1175","\u110c\u1165\u11bc\u110e\u1175","\u110c\u1165\u11bc\u1112\u116a\u11a8\u1112\u1175","\u110c\u1166\u1100\u1169\u11bc","\u110c\u1166\u1100\u116a\u110c\u1165\u11b7","\u110c\u1166\u1103\u1162\u1105\u1169","\u110c\u1166\u1106\u1169\u11a8","\u110c\u1166\u1107\u1161\u11af","\u110c\u1166\u1107\u1165\u11b8","\u110c\u1166\u1109\u1161\u11ba\u1102\u1161\u11af","\u110c\u1166\u110b\u1161\u11ab","\u110c\u1166\u110b\u1175\u11af","\u110c\u1166\u110c\u1161\u11a8","\u110c\u1166\u110c\u116e\u1103\u1169","\u110c\u1166\u110e\u116e\u11af","\u110c\u1166\u1111\u116e\u11b7","\u110c\u1166\u1112\u1161\u11ab","\u110c\u1169\u1100\u1161\u11a8","\u110c\u1169\u1100\u1165\u11ab","\u110c\u1169\u1100\u1173\u11b7","\u110c\u1169\u1100\u1175\u11bc","\u110c\u1169\u1106\u1167\u11bc","\u110c\u1169\u1106\u1175\u1105\u116d","\u110c\u1169\u1109\u1161\u11bc","\u110c\u1169\u1109\u1165\u11ab","\u110c\u1169\u110b\u116d\u11bc\u1112\u1175","\u110c\u1169\u110c\u1165\u11af","\u110c\u1169\u110c\u1165\u11bc","\u110c\u1169\u110c\u1175\u11a8","\u110c\u1169\u11ab\u1103\u1162\u11ba\u1106\u1161\u11af","\u110c\u1169\u11ab\u110c\u1162","\u110c\u1169\u11af\u110b\u1165\u11b8","\u110c\u1169\u11af\u110b\u1173\u11b7","\u110c\u1169\u11bc\u1100\u116d","\u110c\u1169\u11bc\u1105\u1169","\u110c\u1169\u11bc\u1105\u1172","\u110c\u1169\u11bc\u1109\u1169\u1105\u1175","\u110c\u1169\u11bc\u110b\u1165\u11b8\u110b\u116f\u11ab","\u110c\u1169\u11bc\u110c\u1169\u11bc","\u110c\u1169\u11bc\u1112\u1161\u11b8","\u110c\u116a\u1109\u1165\u11a8","\u110c\u116c\u110b\u1175\u11ab","\u110c\u116e\u1100\u116a\u11ab\u110c\u1165\u11a8","\u110c\u116e\u1105\u1173\u11b7","\u110c\u116e\u1106\u1161\u11af","\u110c\u116e\u1106\u1165\u1102\u1175","\u110c\u116e\u1106\u1165\u11a8","\u110c\u116e\u1106\u116e\u11ab","\u110c\u116e\u1106\u1175\u11ab","\u110c\u116e\u1107\u1161\u11bc","\u110c\u116e\u1107\u1167\u11ab","\u110c\u116e\u1109\u1175\u11a8","\u110c\u116e\u110b\u1175\u11ab","\u110c\u116e\u110b\u1175\u11af","\u110c\u116e\u110c\u1161\u11bc","\u110c\u116e\u110c\u1165\u11ab\u110c\u1161","\u110c\u116e\u1110\u1162\u11a8","\u110c\u116e\u11ab\u1107\u1175","\u110c\u116e\u11af\u1100\u1165\u1105\u1175","\u110c\u116e\u11af\u1100\u1175","\u110c\u116e\u11af\u1106\u116e\u1102\u1174","\u110c\u116e\u11bc\u1100\u1161\u11ab","\u110c\u116e\u11bc\u1100\u1168\u1107\u1161\u11bc\u1109\u1169\u11bc","\u110c\u116e\u11bc\u1100\u116e\u11a8","\u110c\u116e\u11bc\u1102\u1167\u11ab","\u110c\u116e\u11bc\u1103\u1161\u11ab","\u110c\u116e\u11bc\u1103\u1169\u11a8","\u110c\u116e\u11bc\u1107\u1161\u11ab","\u110c\u116e\u11bc\u1107\u116e","\u110c\u116e\u11bc\u1109\u1166","\u110c\u116e\u11bc\u1109\u1169\u1100\u1175\u110b\u1165\u11b8","\u110c\u116e\u11bc\u1109\u116e\u11ab","\u110c\u116e\u11bc\u110b\u1161\u11bc","\u110c\u116e\u11bc\u110b\u116d","\u110c\u116e\u11bc\u1112\u1161\u11a8\u1100\u116d","\u110c\u1173\u11a8\u1109\u1165\u11a8","\u110c\u1173\u11a8\u1109\u1175","\u110c\u1173\u11af\u1100\u1165\u110b\u116e\u11b7","\u110c\u1173\u11bc\u1100\u1161","\u110c\u1173\u11bc\u1100\u1165","\u110c\u1173\u11bc\u1100\u116f\u11ab","\u110c\u1173\u11bc\u1109\u1161\u11bc","\u110c\u1173\u11bc\u1109\u1166","\u110c\u1175\u1100\u1161\u11a8","\u110c\u1175\u1100\u1161\u11b8","\u110c\u1175\u1100\u1167\u11bc","\u110c\u1175\u1100\u1173\u11a8\u1112\u1175","\u110c\u1175\u1100\u1173\u11b7","\u110c\u1175\u1100\u1173\u11b8","\u110c\u1175\u1102\u1173\u11bc","\u110c\u1175\u1105\u1173\u11b7\u1100\u1175\u11af","\u110c\u1175\u1105\u1175\u1109\u1161\u11ab","\u110c\u1175\u1107\u1161\u11bc","\u110c\u1175\u1107\u116e\u11bc","\u110c\u1175\u1109\u1175\u11a8","\u110c\u1175\u110b\u1167\u11a8","\u110c\u1175\u110b\u116e\u1100\u1162","\u110c\u1175\u110b\u116f\u11ab","\u110c\u1175\u110c\u1165\u11a8","\u110c\u1175\u110c\u1165\u11b7","\u110c\u1175\u110c\u1175\u11ab","\u110c\u1175\u110e\u116e\u11af","\u110c\u1175\u11a8\u1109\u1165\u11ab","\u110c\u1175\u11a8\u110b\u1165\u11b8","\u110c\u1175\u11a8\u110b\u116f\u11ab","\u110c\u1175\u11a8\u110c\u1161\u11bc","\u110c\u1175\u11ab\u1100\u1173\u11b8","\u110c\u1175\u11ab\u1103\u1169\u11bc","\u110c\u1175\u11ab\u1105\u1169","\u110c\u1175\u11ab\u1105\u116d","\u110c\u1175\u11ab\u1105\u1175","\u110c\u1175\u11ab\u110d\u1161","\u110c\u1175\u11ab\u110e\u1161\u11af","\u110c\u1175\u11ab\u110e\u116e\u11af","\u110c\u1175\u11ab\u1110\u1169\u11bc","\u110c\u1175\u11ab\u1112\u1162\u11bc","\u110c\u1175\u11af\u1106\u116e\u11ab","\u110c\u1175\u11af\u1107\u1167\u11bc","\u110c\u1175\u11af\u1109\u1165","\u110c\u1175\u11b7\u110c\u1161\u11a8","\u110c\u1175\u11b8\u1103\u1161\u11ab","\u110c\u1175\u11b8\u110b\u1161\u11ab","\u110c\u1175\u11b8\u110c\u116e\u11bc","\u110d\u1161\u110c\u1173\u11bc","\u110d\u1175\u1101\u1165\u1100\u1175","\u110e\u1161\u1102\u1161\u11b7","\u110e\u1161\u1105\u1161\u1105\u1175","\u110e\u1161\u1105\u1163\u11bc","\u110e\u1161\u1105\u1175\u11b7","\u110e\u1161\u1107\u1167\u11af","\u110e\u1161\u1109\u1165\u11ab","\u110e\u1161\u110e\u1173\u11b7","\u110e\u1161\u11a8\u1100\u1161\u11a8","\u110e\u1161\u11ab\u1106\u116e\u11af","\u110e\u1161\u11ab\u1109\u1165\u11bc","\u110e\u1161\u11b7\u1100\u1161","\u110e\u1161\u11b7\u1100\u1175\u1105\u1173\u11b7","\u110e\u1161\u11b7\u1109\u1162","\u110e\u1161\u11b7\u1109\u1165\u11a8","\u110e\u1161\u11b7\u110b\u1167","\u110e\u1161\u11b7\u110b\u116c","\u110e\u1161\u11b7\u110c\u1169","\u110e\u1161\u11ba\u110c\u1161\u11ab","\u110e\u1161\u11bc\u1100\u1161","\u110e\u1161\u11bc\u1100\u1169","\u110e\u1161\u11bc\u1100\u116e","\u110e\u1161\u11bc\u1106\u116e\u11ab","\u110e\u1161\u11bc\u1107\u1161\u11a9","\u110e\u1161\u11bc\u110c\u1161\u11a8","\u110e\u1161\u11bc\u110c\u1169","\u110e\u1162\u1102\u1165\u11af","\u110e\u1162\u110c\u1165\u11b7","\u110e\u1162\u11a8\u1100\u1161\u1107\u1161\u11bc","\u110e\u1162\u11a8\u1107\u1161\u11bc","\u110e\u1162\u11a8\u1109\u1161\u11bc","\u110e\u1162\u11a8\u110b\u1175\u11b7","\u110e\u1162\u11b7\u1111\u1175\u110b\u1165\u11ab","\u110e\u1165\u1107\u1165\u11af","\u110e\u1165\u110b\u1173\u11b7","\u110e\u1165\u11ab\u1100\u116e\u11a8","\u110e\u1165\u11ab\u1103\u116e\u11bc","\u110e\u1165\u11ab\u110c\u1161\u11bc","\u110e\u1165\u11ab\u110c\u1162","\u110e\u1165\u11ab\u110e\u1165\u11ab\u1112\u1175","\u110e\u1165\u11af\u1103\u1169","\u110e\u1165\u11af\u110c\u1165\u1112\u1175","\u110e\u1165\u11af\u1112\u1161\u11a8","\u110e\u1165\u11ba\u1102\u1161\u11af","\u110e\u1165\u11ba\u110d\u1162","\u110e\u1165\u11bc\u1102\u1167\u11ab","\u110e\u1165\u11bc\u1107\u1161\u110c\u1175","\u110e\u1165\u11bc\u1109\u1169","\u110e\u1165\u11bc\u110e\u116e\u11ab","\u110e\u1166\u1100\u1168","\u110e\u1166\u1105\u1167\u11a8","\u110e\u1166\u110b\u1169\u11ab","\u110e\u1166\u110b\u1172\u11a8","\u110e\u1166\u110c\u116e\u11bc","\u110e\u1166\u1112\u1165\u11b7","\u110e\u1169\u1103\u1173\u11bc\u1112\u1161\u11a8\u1109\u1162\u11bc","\u110e\u1169\u1107\u1161\u11ab","\u110e\u1169\u1107\u1161\u11b8","\u110e\u1169\u1109\u1161\u11bc\u1112\u116a","\u110e\u1169\u1109\u116e\u11ab","\u110e\u1169\u110b\u1167\u1105\u1173\u11b7","\u110e\u1169\u110b\u116f\u11ab","\u110e\u1169\u110c\u1165\u1102\u1167\u11a8","\u110e\u1169\u110c\u1165\u11b7","\u110e\u1169\u110e\u1165\u11bc","\u110e\u1169\u110f\u1169\u11af\u1105\u1175\u11ba","\u110e\u1169\u11ba\u1107\u116e\u11af","\u110e\u1169\u11bc\u1100\u1161\u11a8","\u110e\u1169\u11bc\u1105\u1175","\u110e\u1169\u11bc\u110c\u1161\u11bc","\u110e\u116a\u11af\u110b\u1167\u11bc","\u110e\u116c\u1100\u1173\u11ab","\u110e\u116c\u1109\u1161\u11bc","\u110e\u116c\u1109\u1165\u11ab","\u110e\u116c\u1109\u1175\u11ab","\u110e\u116c\u110b\u1161\u11a8","\u110e\u116c\u110c\u1169\u11bc","\u110e\u116e\u1109\u1165\u11a8","\u110e\u116e\u110b\u1165\u11a8","\u110e\u116e\u110c\u1175\u11ab","\u110e\u116e\u110e\u1165\u11ab","\u110e\u116e\u110e\u1173\u11a8","\u110e\u116e\u11a8\u1100\u116e","\u110e\u116e\u11a8\u1109\u1169","\u110e\u116e\u11a8\u110c\u1166","\u110e\u116e\u11a8\u1112\u1161","\u110e\u116e\u11af\u1100\u1173\u11ab","\u110e\u116e\u11af\u1107\u1161\u11af","\u110e\u116e\u11af\u1109\u1161\u11ab","\u110e\u116e\u11af\u1109\u1175\u11ab","\u110e\u116e\u11af\u110b\u1167\u11ab","\u110e\u116e\u11af\u110b\u1175\u11b8","\u110e\u116e\u11af\u110c\u1161\u11bc","\u110e\u116e\u11af\u1111\u1161\u11ab","\u110e\u116e\u11bc\u1100\u1167\u11a8","\u110e\u116e\u11bc\u1100\u1169","\u110e\u116e\u11bc\u1103\u1169\u11af","\u110e\u116e\u11bc\u1107\u116e\u11ab\u1112\u1175","\u110e\u116e\u11bc\u110e\u1165\u11bc\u1103\u1169","\u110e\u1171\u110b\u1165\u11b8","\u110e\u1171\u110c\u1175\u11a8","\u110e\u1171\u1112\u1163\u11bc","\u110e\u1175\u110b\u1163\u11a8","\u110e\u1175\u11ab\u1100\u116e","\u110e\u1175\u11ab\u110e\u1165\u11a8","\u110e\u1175\u11af\u1109\u1175\u11b8","\u110e\u1175\u11af\u110b\u116f\u11af","\u110e\u1175\u11af\u1111\u1161\u11ab","\u110e\u1175\u11b7\u1103\u1162","\u110e\u1175\u11b7\u1106\u116e\u11a8","\u110e\u1175\u11b7\u1109\u1175\u11af","\u110e\u1175\u11ba\u1109\u1169\u11af","\u110e\u1175\u11bc\u110e\u1161\u11ab","\u110f\u1161\u1106\u1166\u1105\u1161","\u110f\u1161\u110b\u116e\u11ab\u1110\u1165","\u110f\u1161\u11af\u1100\u116e\u11a8\u1109\u116e","\u110f\u1162\u1105\u1175\u11a8\u1110\u1165","\u110f\u1162\u11b7\u1111\u1165\u1109\u1173","\u110f\u1162\u11b7\u1111\u1166\u110b\u1175\u11ab","\u110f\u1165\u1110\u1173\u11ab","\u110f\u1165\u11ab\u1103\u1175\u1109\u1167\u11ab","\u110f\u1165\u11af\u1105\u1165","\u110f\u1165\u11b7\u1111\u1172\u1110\u1165","\u110f\u1169\u1101\u1175\u1105\u1175","\u110f\u1169\u1106\u1175\u1103\u1175","\u110f\u1169\u11ab\u1109\u1165\u1110\u1173","\u110f\u1169\u11af\u1105\u1161","\u110f\u1169\u11b7\u1111\u1173\u11af\u1105\u1166\u11a8\u1109\u1173","\u110f\u1169\u11bc\u1102\u1161\u1106\u116e\u11af","\u110f\u116b\u1100\u1161\u11b7","\u110f\u116e\u1103\u1166\u1110\u1161","\u110f\u1173\u1105\u1175\u11b7","\u110f\u1173\u11ab\u1100\u1175\u11af","\u110f\u1173\u11ab\u1104\u1161\u11af","\u110f\u1173\u11ab\u1109\u1169\u1105\u1175","\u110f\u1173\u11ab\u110b\u1161\u1103\u1173\u11af","\u110f\u1173\u11ab\u110b\u1165\u1106\u1165\u1102\u1175","\u110f\u1173\u11ab\u110b\u1175\u11af","\u110f\u1173\u11ab\u110c\u1165\u11af","\u110f\u1173\u11af\u1105\u1162\u1109\u1175\u11a8","\u110f\u1173\u11af\u1105\u1165\u11b8","\u110f\u1175\u11af\u1105\u1169","\u1110\u1161\u110b\u1175\u11b8","\u1110\u1161\u110c\u1161\u1100\u1175","\u1110\u1161\u11a8\u1100\u116e","\u1110\u1161\u11a8\u110c\u1161","\u1110\u1161\u11ab\u1109\u1162\u11bc","\u1110\u1162\u1100\u116f\u11ab\u1103\u1169","\u1110\u1162\u110b\u1163\u11bc","\u1110\u1162\u1111\u116e\u11bc","\u1110\u1162\u11a8\u1109\u1175","\u1110\u1162\u11af\u1105\u1165\u11ab\u1110\u1173","\u1110\u1165\u1102\u1165\u11af","\u1110\u1165\u1106\u1175\u1102\u1165\u11af","\u1110\u1166\u1102\u1175\u1109\u1173","\u1110\u1166\u1109\u1173\u1110\u1173","\u1110\u1166\u110b\u1175\u1107\u1173\u11af","\u1110\u1166\u11af\u1105\u1166\u1107\u1175\u110c\u1165\u11ab","\u1110\u1169\u1105\u1169\u11ab","\u1110\u1169\u1106\u1161\u1110\u1169","\u1110\u1169\u110b\u116d\u110b\u1175\u11af","\u1110\u1169\u11bc\u1100\u1168","\u1110\u1169\u11bc\u1100\u116a","\u1110\u1169\u11bc\u1105\u1169","\u1110\u1169\u11bc\u1109\u1175\u11ab","\u1110\u1169\u11bc\u110b\u1167\u11a8","\u1110\u1169\u11bc\u110b\u1175\u11af","\u1110\u1169\u11bc\u110c\u1161\u11bc","\u1110\u1169\u11bc\u110c\u1166","\u1110\u1169\u11bc\u110c\u1173\u11bc","\u1110\u1169\u11bc\u1112\u1161\u11b8","\u1110\u1169\u11bc\u1112\u116a","\u1110\u116c\u1100\u1173\u11ab","\u1110\u116c\u110b\u116f\u11ab","\u1110\u116c\u110c\u1175\u11a8\u1100\u1173\u11b7","\u1110\u1171\u1100\u1175\u11b7","\u1110\u1173\u1105\u1165\u11a8","\u1110\u1173\u11a8\u1100\u1173\u11b8","\u1110\u1173\u11a8\u1107\u1167\u11af","\u1110\u1173\u11a8\u1109\u1165\u11bc","\u1110\u1173\u11a8\u1109\u116e","\u1110\u1173\u11a8\u110c\u1175\u11bc","\u1110\u1173\u11a8\u1112\u1175","\u1110\u1173\u11ab\u1110\u1173\u11ab\u1112\u1175","\u1110\u1175\u1109\u1167\u110e\u1173","\u1111\u1161\u1105\u1161\u11ab\u1109\u1162\u11a8","\u1111\u1161\u110b\u1175\u11af","\u1111\u1161\u110e\u116e\u11af\u1109\u1169","\u1111\u1161\u11ab\u1100\u1167\u11af","\u1111\u1161\u11ab\u1103\u1161\u11ab","\u1111\u1161\u11ab\u1106\u1162","\u1111\u1161\u11ab\u1109\u1161","\u1111\u1161\u11af\u1109\u1175\u11b8","\u1111\u1161\u11af\u110b\u116f\u11af","\u1111\u1161\u11b8\u1109\u1169\u11bc","\u1111\u1162\u1109\u1167\u11ab","\u1111\u1162\u11a8\u1109\u1173","\u1111\u1162\u11a8\u1109\u1175\u1106\u1175\u11af\u1105\u1175","\u1111\u1162\u11ab\u1110\u1175","\u1111\u1165\u1109\u1166\u11ab\u1110\u1173","\u1111\u1166\u110b\u1175\u11ab\u1110\u1173","\u1111\u1167\u11ab\u1100\u1167\u11ab","\u1111\u1167\u11ab\u110b\u1174","\u1111\u1167\u11ab\u110c\u1175","\u1111\u1167\u11ab\u1112\u1175","\u1111\u1167\u11bc\u1100\u1161","\u1111\u1167\u11bc\u1100\u1172\u11ab","\u1111\u1167\u11bc\u1109\u1162\u11bc","\u1111\u1167\u11bc\u1109\u1169","\u1111\u1167\u11bc\u110b\u1163\u11bc","\u1111\u1167\u11bc\u110b\u1175\u11af","\u1111\u1167\u11bc\u1112\u116a","\u1111\u1169\u1109\u1173\u1110\u1165","\u1111\u1169\u110b\u1175\u11ab\u1110\u1173","\u1111\u1169\u110c\u1161\u11bc","\u1111\u1169\u1112\u1161\u11b7","\u1111\u116d\u1106\u1167\u11ab","\u1111\u116d\u110c\u1165\u11bc","\u1111\u116d\u110c\u116e\u11ab","\u1111\u116d\u1112\u1167\u11ab","\u1111\u116e\u11b7\u1106\u1169\u11a8","\u1111\u116e\u11b7\u110c\u1175\u11af","\u1111\u116e\u11bc\u1100\u1167\u11bc","\u1111\u116e\u11bc\u1109\u1169\u11a8","\u1111\u116e\u11bc\u1109\u1173\u11b8","\u1111\u1173\u1105\u1161\u11bc\u1109\u1173","\u1111\u1173\u1105\u1175\u11ab\u1110\u1165","\u1111\u1173\u11af\u1105\u1161\u1109\u1173\u1110\u1175\u11a8","\u1111\u1175\u1100\u1169\u11ab","\u1111\u1175\u1106\u1161\u11bc","\u1111\u1175\u110b\u1161\u1102\u1169","\u1111\u1175\u11af\u1105\u1173\u11b7","\u1111\u1175\u11af\u1109\u116e","\u1111\u1175\u11af\u110b\u116d","\u1111\u1175\u11af\u110c\u1161","\u1111\u1175\u11af\u1110\u1169\u11bc","\u1111\u1175\u11bc\u1100\u1168","\u1112\u1161\u1102\u1173\u1102\u1175\u11b7","\u1112\u1161\u1102\u1173\u11af","\u1112\u1161\u1103\u1173\u110b\u1170\u110b\u1165","\u1112\u1161\u1105\u116e\u11ba\u1107\u1161\u11b7","\u1112\u1161\u1107\u1161\u11ab\u1100\u1175","\u1112\u1161\u1109\u116e\u11a8\u110c\u1175\u11b8","\u1112\u1161\u1109\u116e\u11ab","\u1112\u1161\u110b\u1167\u1110\u1173\u11ab","\u1112\u1161\u110c\u1175\u1106\u1161\u11ab","\u1112\u1161\u110e\u1165\u11ab","\u1112\u1161\u1111\u116e\u11b7","\u1112\u1161\u1111\u1175\u11af","\u1112\u1161\u11a8\u1100\u116a","\u1112\u1161\u11a8\u1100\u116d","\u1112\u1161\u11a8\u1100\u1173\u11b8","\u1112\u1161\u11a8\u1100\u1175","\u1112\u1161\u11a8\u1102\u1167\u11ab","\u1112\u1161\u11a8\u1105\u1167\u11a8","\u1112\u1161\u11a8\u1107\u1165\u11ab","\u1112\u1161\u11a8\u1107\u116e\u1106\u1169","\u1112\u1161\u11a8\u1107\u1175","\u1112\u1161\u11a8\u1109\u1162\u11bc","\u1112\u1161\u11a8\u1109\u116e\u11af","\u1112\u1161\u11a8\u1109\u1173\u11b8","\u1112\u1161\u11a8\u110b\u116d\u11bc\u1111\u116e\u11b7","\u1112\u1161\u11a8\u110b\u116f\u11ab","\u1112\u1161\u11a8\u110b\u1171","\u1112\u1161\u11a8\u110c\u1161","\u1112\u1161\u11a8\u110c\u1165\u11b7","\u1112\u1161\u11ab\u1100\u1168","\u1112\u1161\u11ab\u1100\u1173\u11af","\u1112\u1161\u11ab\u1101\u1165\u1107\u1165\u11ab\u110b\u1166","\u1112\u1161\u11ab\u1102\u1161\u11bd","\u1112\u1161\u11ab\u1102\u116e\u11ab","\u1112\u1161\u11ab\u1103\u1169\u11bc\u110b\u1161\u11ab","\u1112\u1161\u11ab\u1104\u1162","\u1112\u1161\u11ab\u1105\u1161\u1109\u1161\u11ab","\u1112\u1161\u11ab\u1106\u1161\u1103\u1175","\u1112\u1161\u11ab\u1106\u116e\u11ab","\u1112\u1161\u11ab\u1107\u1165\u11ab","\u1112\u1161\u11ab\u1107\u1169\u11a8","\u1112\u1161\u11ab\u1109\u1175\u11a8","\u1112\u1161\u11ab\u110b\u1167\u1105\u1173\u11b7","\u1112\u1161\u11ab\u110d\u1169\u11a8","\u1112\u1161\u11af\u1106\u1165\u1102\u1175","\u1112\u1161\u11af\u110b\u1161\u1107\u1165\u110c\u1175","\u1112\u1161\u11af\u110b\u1175\u11ab","\u1112\u1161\u11b7\u1101\u1166","\u1112\u1161\u11b7\u1107\u116e\u1105\u1169","\u1112\u1161\u11b8\u1100\u1167\u11a8","\u1112\u1161\u11b8\u1105\u1175\u110c\u1165\u11a8","\u1112\u1161\u11bc\u1100\u1169\u11bc","\u1112\u1161\u11bc\u1100\u116e","\u1112\u1161\u11bc\u1109\u1161\u11bc","\u1112\u1161\u11bc\u110b\u1174","\u1112\u1162\u1100\u1167\u11af","\u1112\u1162\u1100\u116e\u11ab","\u1112\u1162\u1103\u1161\u11b8","\u1112\u1162\u1103\u1161\u11bc","\u1112\u1162\u1106\u116e\u11af","\u1112\u1162\u1109\u1165\u11a8","\u1112\u1162\u1109\u1165\u11af","\u1112\u1162\u1109\u116e\u110b\u116d\u11a8\u110c\u1161\u11bc","\u1112\u1162\u110b\u1161\u11ab","\u1112\u1162\u11a8\u1109\u1175\u11b7","\u1112\u1162\u11ab\u1103\u1173\u1107\u1162\u11a8","\u1112\u1162\u11b7\u1107\u1165\u1100\u1165","\u1112\u1162\u11ba\u1107\u1167\u11c0","\u1112\u1162\u11ba\u1109\u1161\u11af","\u1112\u1162\u11bc\u1103\u1169\u11bc","\u1112\u1162\u11bc\u1107\u1169\u11a8","\u1112\u1162\u11bc\u1109\u1161","\u1112\u1162\u11bc\u110b\u116e\u11ab","\u1112\u1162\u11bc\u110b\u1171","\u1112\u1163\u11bc\u1100\u1175","\u1112\u1163\u11bc\u1109\u1161\u11bc","\u1112\u1163\u11bc\u1109\u116e","\u1112\u1165\u1105\u1161\u11a8","\u1112\u1165\u110b\u116d\u11bc","\u1112\u1166\u11af\u1100\u1175","\u1112\u1167\u11ab\u1100\u116a\u11ab","\u1112\u1167\u11ab\u1100\u1173\u11b7","\u1112\u1167\u11ab\u1103\u1162","\u1112\u1167\u11ab\u1109\u1161\u11bc","\u1112\u1167\u11ab\u1109\u1175\u11af","\u1112\u1167\u11ab\u110c\u1161\u11bc","\u1112\u1167\u11ab\u110c\u1162","\u1112\u1167\u11ab\u110c\u1175","\u1112\u1167\u11af\u110b\u1162\u11a8","\u1112\u1167\u11b8\u1105\u1167\u11a8","\u1112\u1167\u11bc\u1107\u116e","\u1112\u1167\u11bc\u1109\u1161","\u1112\u1167\u11bc\u1109\u116e","\u1112\u1167\u11bc\u1109\u1175\u11a8","\u1112\u1167\u11bc\u110c\u1166","\u1112\u1167\u11bc\u1110\u1162","\u1112\u1167\u11bc\u1111\u1167\u11ab","\u1112\u1168\u1110\u1162\u11a8","\u1112\u1169\u1100\u1175\u1109\u1175\u11b7","\u1112\u1169\u1102\u1161\u11b7","\u1112\u1169\u1105\u1161\u11bc\u110b\u1175","\u1112\u1169\u1107\u1161\u11a8","\u1112\u1169\u1110\u1166\u11af","\u1112\u1169\u1112\u1173\u11b8","\u1112\u1169\u11a8\u1109\u1175","\u1112\u1169\u11af\u1105\u1169","\u1112\u1169\u11b7\u1111\u1166\u110b\u1175\u110c\u1175","\u1112\u1169\u11bc\u1107\u1169","\u1112\u1169\u11bc\u1109\u116e","\u1112\u1169\u11bc\u110e\u1161","\u1112\u116a\u1106\u1167\u11ab","\u1112\u116a\u1107\u116e\u11ab","\u1112\u116a\u1109\u1161\u11af","\u1112\u116a\u110b\u116d\u110b\u1175\u11af","\u1112\u116a\u110c\u1161\u11bc","\u1112\u116a\u1112\u1161\u11a8","\u1112\u116a\u11a8\u1107\u1169","\u1112\u116a\u11a8\u110b\u1175\u11ab","\u1112\u116a\u11a8\u110c\u1161\u11bc","\u1112\u116a\u11a8\u110c\u1165\u11bc","\u1112\u116a\u11ab\u1100\u1161\u11b8","\u1112\u116a\u11ab\u1100\u1167\u11bc","\u1112\u116a\u11ab\u110b\u1167\u11bc","\u1112\u116a\u11ab\u110b\u1172\u11af","\u1112\u116a\u11ab\u110c\u1161","\u1112\u116a\u11af\u1100\u1175","\u1112\u116a\u11af\u1103\u1169\u11bc","\u1112\u116a\u11af\u1107\u1161\u11af\u1112\u1175","\u1112\u116a\u11af\u110b\u116d\u11bc","\u1112\u116a\u11af\u110d\u1161\u11a8","\u1112\u116c\u1100\u1167\u11ab","\u1112\u116c\u1100\u116a\u11ab","\u1112\u116c\u1107\u1169\u11a8","\u1112\u116c\u1109\u1162\u11a8","\u1112\u116c\u110b\u116f\u11ab","\u1112\u116c\u110c\u1161\u11bc","\u1112\u116c\u110c\u1165\u11ab","\u1112\u116c\u11ba\u1109\u116e","\u1112\u116c\u11bc\u1103\u1161\u11ab\u1107\u1169\u1103\u1169","\u1112\u116d\u110b\u1172\u11af\u110c\u1165\u11a8","\u1112\u116e\u1107\u1161\u11ab","\u1112\u116e\u110e\u116e\u11ba\u1100\u1161\u1105\u116e","\u1112\u116e\u11ab\u1105\u1167\u11ab","\u1112\u116f\u11af\u110a\u1175\u11ab","\u1112\u1172\u1109\u1175\u11a8","\u1112\u1172\u110b\u1175\u11af","\u1112\u1172\u11bc\u1102\u1162","\u1112\u1173\u1105\u1173\u11b7","\u1112\u1173\u11a8\u1107\u1162\u11a8","\u1112\u1173\u11a8\u110b\u1175\u11ab","\u1112\u1173\u11ab\u110c\u1165\u11a8","\u1112\u1173\u11ab\u1112\u1175","\u1112\u1173\u11bc\u1106\u1175","\u1112\u1173\u11bc\u1107\u116e\u11ab","\u1112\u1174\u1100\u1169\u11a8","\u1112\u1174\u1106\u1161\u11bc","\u1112\u1174\u1109\u1162\u11bc","\u1112\u1174\u11ab\u1109\u1162\u11a8","\u1112\u1175\u11b7\u1101\u1165\u11ba"]')},1945:e=>{"use strict";e.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},659:e=>{"use strict";e.exports=JSON.parse('["a\u0301baco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","accio\u0301n","aceite","acelga","acento","aceptar","a\u0301cido","aclarar","acne\u0301","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","ae\u0301reo","afectar","aficio\u0301n","afinar","afirmar","a\u0301gil","agitar","agoni\u0301a","agosto","agotar","agregar","agrio","agua","agudo","a\u0301guila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacra\u0301n","alambre","alarma","alba","a\u0301lbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodo\u0301n","aliado","aliento","alivio","alma","almeja","almi\u0301bar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","a\u0301mbar","a\u0301mbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","ande\u0301n","anemia","a\u0301ngulo","anillo","a\u0301nimo","ani\u0301s","anotar","antena","antiguo","antojo","anual","anular","anuncio","an\u0303adir","an\u0303ejo","an\u0303o","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","aran\u0303a","arar","a\u0301rbitro","a\u0301rbol","arbusto","archivo","arco","arder","ardilla","arduo","a\u0301rea","a\u0301rido","aries","armoni\u0301a","arne\u0301s","aroma","arpa","arpo\u0301n","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","a\u0301spero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","a\u0301tico","atleta","a\u0301tomo","atraer","atroz","atu\u0301n","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avio\u0301n","aviso","ayer","ayuda","ayuno","azafra\u0301n","azar","azote","azu\u0301car","azufre","azul","baba","babor","bache","bahi\u0301a","baile","bajar","balanza","balco\u0301n","balde","bambu\u0301","banco","banda","ban\u0303o","barba","barco","barniz","barro","ba\u0301scula","basto\u0301n","basura","batalla","bateri\u0301a","batir","batuta","bau\u0301l","bazar","bebe\u0301","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsa\u0301i","borde","borrar","bosque","bote","boti\u0301n","bo\u0301veda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufo\u0301n","bu\u0301ho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzo\u0301n","caballo","cabeza","cabina","cabra","cacao","cada\u0301ver","cadena","caer","cafe\u0301","cai\u0301da","caima\u0301n","caja","cajo\u0301n","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","ca\u0301ncer","candil","canela","canguro","canica","canto","can\u0303a","can\u0303o\u0301n","caoba","caos","capaz","capita\u0301n","capote","captar","capucha","cara","carbo\u0301n","ca\u0301rcel","careta","carga","carin\u0303o","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","ce\u0301lebre","celoso","ce\u0301lula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","ce\u0301sped","cetro","chacal","chaleco","champu\u0301","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclo\u0301n","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","cipre\u0301s","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","cli\u0301nica","cobre","coccio\u0301n","cochino","cocina","coco","co\u0301digo","codo","cofre","coger","cohete","coji\u0301n","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","co\u0301modo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazo\u0301n","corbata","corcho","cordo\u0301n","corona","correr","coser","cosmos","costa","cra\u0301neo","cra\u0301ter","crear","crecer","crei\u0301do","crema","cri\u0301a","crimen","cripta","crisis","cromo","cro\u0301nica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupo\u0301n","cu\u0301pula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","da\u0301til","deber","de\u0301bil","de\u0301cada","decir","dedo","defensa","definir","dejar","delfi\u0301n","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvi\u0301o","detalle","detener","deuda","di\u0301a","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difi\u0301cil","digno","dilema","diluir","dinero","directo","dirigir","disco","disen\u0303o","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","drago\u0301n","droga","ducha","duda","duelo","duen\u0303o","dulce","du\u0301o","duque","durar","dureza","duro","e\u0301bano","ebrio","echar","eco","ecuador","edad","edicio\u0301n","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","e\u0301lite","elixir","elogio","eludir","embudo","emitir","emocio\u0301n","empate","empen\u0303o","empleo","empresa","enano","encargo","enchufe","enci\u0301a","enemigo","enero","enfado","enfermo","engan\u0303o","enigma","enlace","enorme","enredo","ensayo","ensen\u0303ar","entero","entrar","envase","envi\u0301o","e\u0301poca","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espi\u0301a","esposa","espuma","esqui\u0301","estar","este","estilo","estufa","etapa","eterno","e\u0301tica","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","e\u0301xito","experto","explicar","exponer","extremo","fa\u0301brica","fa\u0301bula","fachada","fa\u0301cil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","farao\u0301n","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fe\u0301rtil","fervor","festi\u0301n","fiable","fianza","fiar","fibra","ficcio\u0301n","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flu\u0301or","fobia","foca","fogata","fogo\u0301n","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","fra\u0301gil","franja","frase","fraude","frei\u0301r","freno","fresa","fri\u0301o","frito","fruta","fuego","fuente","fuerza","fuga","fumar","funcio\u0301n","funda","furgo\u0301n","furia","fusil","fu\u0301tbol","futuro","gacela","gafas","gaita","gajo","gala","galeri\u0301a","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavila\u0301n","gemelo","gemir","gen","ge\u0301nero","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gra\u0301fico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","gru\u0301a","grueso","grumo","grupo","guante","guapo","guardia","guerra","gui\u0301a","guin\u0303o","guion","guiso","guitarra","gusano","gustar","haber","ha\u0301bil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazan\u0303a","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","he\u0301roe","hervir","hielo","hierro","hi\u0301gado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","hu\u0301medo","humilde","humo","hundir","huraca\u0301n","hurto","icono","ideal","idioma","i\u0301dolo","iglesia","iglu\u0301","igual","ilegal","ilusio\u0301n","imagen","ima\u0301n","imitar","impar","imperio","imponer","impulso","incapaz","i\u0301ndice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","intere\u0301s","i\u0301ntimo","intuir","inu\u0301til","invierno","ira","iris","ironi\u0301a","isla","islote","jabali\u0301","jabo\u0301n","jamo\u0301n","jarabe","jardi\u0301n","jarra","jaula","jazmi\u0301n","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","ju\u0301piter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladro\u0301n","lagarto","la\u0301grima","laguna","laico","lamer","la\u0301mina","la\u0301mpara","lana","lancha","langosta","lanza","la\u0301piz","largo","larva","la\u0301stima","lata","la\u0301tex","latir","laurel","lavar","lazo","leal","leccio\u0301n","leche","lector","leer","legio\u0301n","legumbre","lejano","lengua","lento","len\u0303a","leo\u0301n","leopardo","lesio\u0301n","letal","letra","leve","leyenda","libertad","libro","licor","li\u0301der","lidiar","lienzo","liga","ligero","lima","li\u0301mite","limo\u0301n","limpio","lince","lindo","li\u0301nea","lingote","lino","linterna","li\u0301quido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","locio\u0301n","loco","locura","lo\u0301gica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","mai\u0301z","maldad","maleta","malla","malo","mama\u0301","mambo","mamut","manco","mando","manejar","manga","maniqui\u0301","manjar","mano","manso","manta","man\u0303ana","mapa","ma\u0301quina","mar","marco","marea","marfil","margen","marido","ma\u0301rmol","marro\u0301n","martes","marzo","masa","ma\u0301scara","masivo","matar","materia","matiz","matriz","ma\u0301ximo","mayor","mazorca","mecha","medalla","medio","me\u0301dula","mejilla","mejor","melena","melo\u0301n","memoria","menor","mensaje","mente","menu\u0301","mercado","merengue","me\u0301rito","mes","meso\u0301n","meta","meter","me\u0301todo","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millo\u0301n","mimo","mina","minero","mi\u0301nimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","mocio\u0301n","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","mon\u0303o","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","mo\u0301vil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","mun\u0303eca","mural","muro","mu\u0301sculo","museo","musgo","mu\u0301sica","muslo","na\u0301car","nacio\u0301n","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","na\u0301usea","naval","nave","navidad","necio","ne\u0301ctar","negar","negocio","negro","neo\u0301n","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","nin\u0303ez","nin\u0303o","ni\u0301tido","nivel","nobleza","noche","no\u0301mina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","nu\u0301cleo","nudillo","nudo","nuera","nueve","nuez","nulo","nu\u0301mero","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","oce\u0301ano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oi\u0301do","oi\u0301r","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opcio\u0301n","o\u0301pera","opinar","oponer","optar","o\u0301ptica","opuesto","oracio\u0301n","orador","oral","o\u0301rbita","orca","orden","oreja","o\u0301rgano","orgi\u0301a","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadi\u0301a","oscuro","osezno","oso","ostra","oton\u0303o","otro","oveja","o\u0301vulo","o\u0301xido","oxi\u0301geno","oyente","ozono","pacto","padre","paella","pa\u0301gina","pago","pai\u0301s","pa\u0301jaro","palabra","palco","paleta","pa\u0301lido","palma","paloma","palpar","pan","panal","pa\u0301nico","pantera","pan\u0303uelo","papa\u0301","papel","papilla","paquete","parar","parcela","pared","parir","paro","pa\u0301rpado","parque","pa\u0301rrafo","parte","pasar","paseo","pasio\u0301n","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peato\u0301n","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldan\u0303o","pelea","peligro","pellejo","pelo","peluca","pena","pensar","pen\u0303o\u0301n","peo\u0301n","peor","pepino","pequen\u0303o","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pe\u0301simo","pestan\u0303a","pe\u0301talo","petro\u0301leo","pez","pezun\u0303a","picar","picho\u0301n","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","pin\u0303a","piojo","pipa","pirata","pisar","piscina","piso","pista","pito\u0301n","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesi\u0301a","poeta","polen","polici\u0301a","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porcio\u0301n","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","pri\u0301ncipe","prisio\u0301n","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","pro\u0301ximo","prueba","pu\u0301blico","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmo\u0301n","pulpo","pulso","puma","punto","pun\u0303al","pun\u0303o","pupa","pupila","pure\u0301","quedar","queja","quemar","querer","queso","quieto","qui\u0301mica","quince","quitar","ra\u0301bano","rabia","rabo","racio\u0301n","radical","rai\u0301z","rama","rampa","rancho","rango","rapaz","ra\u0301pido","rapto","rasgo","raspa","rato","rayo","raza","razo\u0301n","reaccio\u0301n","realidad","reban\u0303o","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refra\u0301n","refugio","regalo","regir","regla","regreso","rehe\u0301n","reino","rei\u0301r","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","reve\u0301s","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","ri\u0301gido","rigor","rinco\u0301n","rin\u0303o\u0301n","ri\u0301o","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubi\u0301","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sa\u0301bado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmo\u0301n","salo\u0301n","salsa","salto","salud","salvar","samba","sancio\u0301n","sandi\u0301a","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sarte\u0301n","sastre","sata\u0301n","sauna","saxofo\u0301n","seccio\u0301n","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","sen\u0303al","sen\u0303or","separar","sepia","sequi\u0301a","ser","serie","sermo\u0301n","servir","sesenta","sesio\u0301n","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","si\u0301laba","silbar","silencio","silla","si\u0301mbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","so\u0301lido","soltar","solucio\u0301n","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","soste\u0301n","so\u0301tano","suave","subir","suceso","sudor","suegra","suelo","suen\u0303o","suerte","sufrir","sujeto","sulta\u0301n","sumar","superar","suplir","suponer","supremo","sur","surco","suren\u0303o","surgir","susto","sutil","tabaco","tabique","tabla","tabu\u0301","taco","tacto","tajo","talar","talco","talento","talla","talo\u0301n","taman\u0303o","tambor","tango","tanque","tapa","tapete","tapia","tapo\u0301n","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazo\u0301n","teatro","techo","tecla","te\u0301cnica","tejado","tejer","tejido","tela","tele\u0301fono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teori\u0301a","terapia","terco","te\u0301rmino","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburo\u0301n","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","ti\u0301mido","timo","tinta","ti\u0301o","ti\u0301pico","tipo","tira","tiro\u0301n","tita\u0301n","ti\u0301tere","ti\u0301tulo","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","to\u0301rax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","to\u0301xico","trabajo","tractor","traer","tra\u0301fico","trago","traje","tramo","trance","trato","trauma","trazar","tre\u0301bol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tuberi\u0301a","tubo","tuerto","tumba","tumor","tu\u0301nel","tu\u0301nica","turbina","turismo","turno","tutor","ubicar","u\u0301lcera","umbral","unidad","unir","universo","uno","untar","un\u0303a","urbano","urbe","urgente","urna","usar","usuario","u\u0301til","utopi\u0301a","uva","vaca","vaci\u0301o","vacuna","vagar","vago","vaina","vajilla","vale","va\u0301lido","valle","valor","va\u0301lvula","vampiro","vara","variar","varo\u0301n","vaso","vecino","vector","vehi\u0301culo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vi\u0301a","viaje","vibrar","vicio","vi\u0301ctima","vida","vi\u0301deo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","vin\u0303edo","violi\u0301n","viral","virgo","virtud","visor","vi\u0301spera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volca\u0301n","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},8597:e=>{"use strict";e.exports={i8:"6.5.4"}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"===typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"===typeof n.then)return n}var o=Object.create(null);r.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(o,a),o}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"static/js/"+{11:"reactPlayerFilePlayer",55:"reactPlayerWistia",121:"reactPlayerFacebook",125:"reactPlayerSoundCloud",216:"reactPlayerTwitch",261:"reactPlayerKaltura",439:"reactPlayerYouTube",546:"reactPlayerStreamable",596:"reactPlayerDailyMotion",664:"reactPlayerPreview",667:"reactPlayerMixcloud",743:"reactPlayerVimeo",888:"reactPlayerVidyard"}[e]+"."+{11:"e80ecc26",55:"3e9b92cd",121:"7cf6341d",125:"711da1b8",216:"f0b1f6ae",261:"be8ee3e8",439:"7af9731a",546:"5c7da0c4",596:"aabe77d2",664:"acebb486",667:"17f7600e",743:"bb9275d4",888:"56722b87"}[e]+".chunk.js",r.miniCssF=e=>{},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="umami:";r.l=(n,i,o,a)=>{if(e[n])e[n].push(i);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(f);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(r))),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}}})(),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="./",(()=>{var e={179:0};r.f.j=(t,n)=>{var i=r.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise(((r,n)=>i=e[t]=[r,n]));n.push(i[2]=o);var a=r.p+r.u(t),s=new Error;r.l(a,(n=>{if(r.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,o,[a,s,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(c)c(r)}for(t&&t(n);l{"use strict";var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>wC,hasStandardBrowserEnv:()=>xC,hasStandardBrowserWebWorkerEnv:()=>SC});var t={};r.r(t),r.d(t,{Decoder:()=>U6,Encoder:()=>z6,PacketType:()=>D6,protocol:()=>N6});var n=r(9652),i=r.t(n,2),o=r(2171);const a=(0,n.createContext)(null),s={didCatch:!1,error:null};class c extends n.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=s}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,r,n=arguments.length,i=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,r)=>!Object.is(e,t[r])))}(e.resetKeys,n)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:n,prev:e.resetKeys,reason:"keys"}),this.setState(s))}render(){const{children:e,fallbackRender:t,FallbackComponent:r,fallback:i}=this.props,{didCatch:o,error:s}=this.state;let c=e;if(o){const e={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)c=t(e);else if(r)c=(0,n.createElement)(r,e);else{if(null!==i&&!(0,n.isValidElement)(i))throw s;c=i}}return(0,n.createElement)(a.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){for(var r=0;re.filter(Boolean).join(" ");function y(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var b=e=>{const{condition:t,message:r}=e};function w(e,...t){return x(e)?e(...t):e}var x=e=>"function"===typeof e,_=e=>e?"":void 0,S=e=>!!e||void 0;function k(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}function E(...e){return function(t){e.forEach((e=>{null==e||e(t)}))}}var A=r(6283),P=e=>"string"===typeof e?e.replace(/!(important)?$/,"").trim():e,T=(e,t)=>r=>{const n=String(t),i=(e=>/!(important)?$/.test(e))(n),o=P(n),a=e?`${e}.${o}`:o;let s=y(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=P(s),i?`${s} !important`:s};function O(e){const{scale:t,transform:r,compose:n}=e;return(e,i)=>{var o;const a=T(t,e)(i);let s=null!=(o=null==r?void 0:r(a,i))?o:a;return n&&(s=n(s,i)),s}}var C=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function j(e,t){return r=>{const n={property:r,scale:e};return n.transform=O({scale:e,transform:t}),n}}var R=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t;var I=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var M={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},L={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var N={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},D={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},z=new Set(Object.values(D)),B=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),U=e=>e.trim();var F=e=>"string"===typeof e&&e.includes("(")&&e.includes(")");var $=e=>t=>`${e}(${t})`,H={filter:e=>"auto"!==e?e:M,backdropFilter:e=>"auto"!==e?e:L,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(H.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...I].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...I].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}})(e);return t||"number"===typeof e?`${e}px`:e},fraction:e=>"number"!==typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"===typeof e&&!e.endsWith("deg");return"number"===typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||B.has(e))return e;if(!F(e)&&!B.has(e))return`url('${e}')`;const r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=null==r?void 0:r[1],i=null==r?void 0:r[2];if(!n||!i)return e;const o=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=i.split(",").map(U).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const c=a in D?D[a]:a;return s.unshift(c),`${o}(${s.map((e=>{if(z.has(e))return e;const r=e.indexOf(" "),[n,i]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=F(i)?i:i&&i.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s})).join(", ")})`}(e,null!=t?t:{}),blur:$("blur"),opacity:$("opacity"),brightness:$("brightness"),contrast:$("contrast"),dropShadow:$("drop-shadow"),grayscale:$("grayscale"),hueRotate:e=>$("hue-rotate")(H.degree(e)),invert:$("invert"),saturate:$("saturate"),sepia:$("sepia"),bgImage(e){if(null==e)return e;return F(e)||B.has(e)?e:`url(${e})`},outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=null!=(t=N[e])?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},V={borderWidths:j("borderWidths"),borderStyles:j("borderStyles"),colors:j("colors"),borders:j("borders"),gradients:j("gradients",H.gradient),radii:j("radii",H.px),space:j("space",C(H.vh,H.px)),spaceT:j("space",C(H.vh,H.px)),degreeT:e=>({property:e,transform:H.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:O({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:j("sizes",C(H.vh,H.px)),sizesT:j("sizes",C(H.vh,H.fraction)),shadows:j("shadows"),logical:function(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:R(t),transform:r?O({scale:r,compose:n}):n}},blur:j("blur",H.blur)},q={background:V.colors("background"),backgroundColor:V.colors("backgroundColor"),backgroundImage:V.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:H.bgClip},bgSize:V.prop("backgroundSize"),bgPosition:V.prop("backgroundPosition"),bg:V.colors("background"),bgColor:V.colors("backgroundColor"),bgPos:V.prop("backgroundPosition"),bgRepeat:V.prop("backgroundRepeat"),bgAttachment:V.prop("backgroundAttachment"),bgGradient:V.gradients("backgroundImage"),bgClip:{transform:H.bgClip}};Object.assign(q,{bgImage:q.backgroundImage,bgImg:q.backgroundImage});var K={border:V.borders("border"),borderWidth:V.borderWidths("borderWidth"),borderStyle:V.borderStyles("borderStyle"),borderColor:V.colors("borderColor"),borderRadius:V.radii("borderRadius"),borderTop:V.borders("borderTop"),borderBlockStart:V.borders("borderBlockStart"),borderTopLeftRadius:V.radii("borderTopLeftRadius"),borderStartStartRadius:V.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:V.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:V.radii("borderTopRightRadius"),borderStartEndRadius:V.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:V.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:V.borders("borderRight"),borderInlineEnd:V.borders("borderInlineEnd"),borderBottom:V.borders("borderBottom"),borderBlockEnd:V.borders("borderBlockEnd"),borderBottomLeftRadius:V.radii("borderBottomLeftRadius"),borderBottomRightRadius:V.radii("borderBottomRightRadius"),borderLeft:V.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:V.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:V.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:V.borders(["borderLeft","borderRight"]),borderInline:V.borders("borderInline"),borderY:V.borders(["borderTop","borderBottom"]),borderBlock:V.borders("borderBlock"),borderTopWidth:V.borderWidths("borderTopWidth"),borderBlockStartWidth:V.borderWidths("borderBlockStartWidth"),borderTopColor:V.colors("borderTopColor"),borderBlockStartColor:V.colors("borderBlockStartColor"),borderTopStyle:V.borderStyles("borderTopStyle"),borderBlockStartStyle:V.borderStyles("borderBlockStartStyle"),borderBottomWidth:V.borderWidths("borderBottomWidth"),borderBlockEndWidth:V.borderWidths("borderBlockEndWidth"),borderBottomColor:V.colors("borderBottomColor"),borderBlockEndColor:V.colors("borderBlockEndColor"),borderBottomStyle:V.borderStyles("borderBottomStyle"),borderBlockEndStyle:V.borderStyles("borderBlockEndStyle"),borderLeftWidth:V.borderWidths("borderLeftWidth"),borderInlineStartWidth:V.borderWidths("borderInlineStartWidth"),borderLeftColor:V.colors("borderLeftColor"),borderInlineStartColor:V.colors("borderInlineStartColor"),borderLeftStyle:V.borderStyles("borderLeftStyle"),borderInlineStartStyle:V.borderStyles("borderInlineStartStyle"),borderRightWidth:V.borderWidths("borderRightWidth"),borderInlineEndWidth:V.borderWidths("borderInlineEndWidth"),borderRightColor:V.colors("borderRightColor"),borderInlineEndColor:V.colors("borderInlineEndColor"),borderRightStyle:V.borderStyles("borderRightStyle"),borderInlineEndStyle:V.borderStyles("borderInlineEndStyle"),borderTopRadius:V.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:V.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:V.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:V.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(K,{rounded:K.borderRadius,roundedTop:K.borderTopRadius,roundedTopLeft:K.borderTopLeftRadius,roundedTopRight:K.borderTopRightRadius,roundedTopStart:K.borderStartStartRadius,roundedTopEnd:K.borderStartEndRadius,roundedBottom:K.borderBottomRadius,roundedBottomLeft:K.borderBottomLeftRadius,roundedBottomRight:K.borderBottomRightRadius,roundedBottomStart:K.borderEndStartRadius,roundedBottomEnd:K.borderEndEndRadius,roundedLeft:K.borderLeftRadius,roundedRight:K.borderRightRadius,roundedStart:K.borderInlineStartRadius,roundedEnd:K.borderInlineEndRadius,borderStart:K.borderInlineStart,borderEnd:K.borderInlineEnd,borderTopStartRadius:K.borderStartStartRadius,borderTopEndRadius:K.borderStartEndRadius,borderBottomStartRadius:K.borderEndStartRadius,borderBottomEndRadius:K.borderEndEndRadius,borderStartRadius:K.borderInlineStartRadius,borderEndRadius:K.borderInlineEndRadius,borderStartWidth:K.borderInlineStartWidth,borderEndWidth:K.borderInlineEndWidth,borderStartColor:K.borderInlineStartColor,borderEndColor:K.borderInlineEndColor,borderStartStyle:K.borderInlineStartStyle,borderEndStyle:K.borderInlineEndStyle});var W={color:V.colors("color"),textColor:V.colors("color"),fill:V.colors("fill"),stroke:V.colors("stroke")},G={boxShadow:V.shadows("boxShadow"),mixBlendMode:!0,blendMode:V.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:V.prop("backgroundBlendMode"),opacity:!0};Object.assign(G,{shadow:G.boxShadow});var Z={filter:{transform:H.filter},blur:V.blur("--chakra-blur"),brightness:V.propT("--chakra-brightness",H.brightness),contrast:V.propT("--chakra-contrast",H.contrast),hueRotate:V.propT("--chakra-hue-rotate",H.hueRotate),invert:V.propT("--chakra-invert",H.invert),saturate:V.propT("--chakra-saturate",H.saturate),dropShadow:V.propT("--chakra-drop-shadow",H.dropShadow),backdropFilter:{transform:H.backdropFilter},backdropBlur:V.blur("--chakra-backdrop-blur"),backdropBrightness:V.propT("--chakra-backdrop-brightness",H.brightness),backdropContrast:V.propT("--chakra-backdrop-contrast",H.contrast),backdropHueRotate:V.propT("--chakra-backdrop-hue-rotate",H.hueRotate),backdropInvert:V.propT("--chakra-backdrop-invert",H.invert),backdropSaturate:V.propT("--chakra-backdrop-saturate",H.saturate)},Y={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:H.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:V.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:V.space("gap"),rowGap:V.space("rowGap"),columnGap:V.space("columnGap")};Object.assign(Y,{flexDir:Y.flexDirection});var X={gridGap:V.space("gridGap"),gridColumnGap:V.space("gridColumnGap"),gridRowGap:V.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},J={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:H.outline},outlineOffset:!0,outlineColor:V.colors("outlineColor")},Q={width:V.sizesT("width"),inlineSize:V.sizesT("inlineSize"),height:V.sizes("height"),blockSize:V.sizes("blockSize"),boxSize:V.sizes(["width","height"]),minWidth:V.sizes("minWidth"),minInlineSize:V.sizes("minInlineSize"),minHeight:V.sizes("minHeight"),minBlockSize:V.sizes("minBlockSize"),maxWidth:V.sizes("maxWidth"),maxInlineSize:V.sizes("maxInlineSize"),maxHeight:V.sizes("maxHeight"),maxBlockSize:V.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (min-width: ${null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (max-width: ${null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:V.propT("float",H.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Q,{w:Q.width,h:Q.height,minW:Q.minWidth,maxW:Q.maxWidth,minH:Q.minHeight,maxH:Q.maxHeight,overscroll:Q.overscrollBehavior,overscrollX:Q.overscrollBehaviorX,overscrollY:Q.overscrollBehaviorY});var ee={listStyleType:!0,listStylePosition:!0,listStylePos:V.prop("listStylePosition"),listStyleImage:!0,listStyleImg:V.prop("listStyleImage")};var te=(e=>{const t=new WeakMap;return(r,n,i,o)=>{if("undefined"===typeof r)return e(r,n,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,i,o);return a.set(n,s),s}})((function(e,t,r,n){const i="string"===typeof t?t.split("."):[t];for(n=0;n{const n={},i=te(e,t,{});for(const o in i){o in r&&null!=r[o]||(n[o]=i[o])}return n},oe={srOnly:{transform:e=>!0===e?re:"focusable"===e?ne:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>ie(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>ie(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>ie(t,e,r)}},ae={position:!0,pos:V.prop("position"),zIndex:V.prop("zIndex","zIndices"),inset:V.spaceT("inset"),insetX:V.spaceT(["left","right"]),insetInline:V.spaceT("insetInline"),insetY:V.spaceT(["top","bottom"]),insetBlock:V.spaceT("insetBlock"),top:V.spaceT("top"),insetBlockStart:V.spaceT("insetBlockStart"),bottom:V.spaceT("bottom"),insetBlockEnd:V.spaceT("insetBlockEnd"),left:V.spaceT("left"),insetInlineStart:V.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:V.spaceT("right"),insetInlineEnd:V.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ae,{insetStart:ae.insetInlineStart,insetEnd:ae.insetInlineEnd});var se={ring:{transform:H.ring},ringColor:V.colors("--chakra-ring-color"),ringOffset:V.prop("--chakra-ring-offset-width"),ringOffsetColor:V.colors("--chakra-ring-offset-color"),ringInset:V.prop("--chakra-ring-inset")},ce={margin:V.spaceT("margin"),marginTop:V.spaceT("marginTop"),marginBlockStart:V.spaceT("marginBlockStart"),marginRight:V.spaceT("marginRight"),marginInlineEnd:V.spaceT("marginInlineEnd"),marginBottom:V.spaceT("marginBottom"),marginBlockEnd:V.spaceT("marginBlockEnd"),marginLeft:V.spaceT("marginLeft"),marginInlineStart:V.spaceT("marginInlineStart"),marginX:V.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:V.spaceT("marginInline"),marginY:V.spaceT(["marginTop","marginBottom"]),marginBlock:V.spaceT("marginBlock"),padding:V.space("padding"),paddingTop:V.space("paddingTop"),paddingBlockStart:V.space("paddingBlockStart"),paddingRight:V.space("paddingRight"),paddingBottom:V.space("paddingBottom"),paddingBlockEnd:V.space("paddingBlockEnd"),paddingLeft:V.space("paddingLeft"),paddingInlineStart:V.space("paddingInlineStart"),paddingInlineEnd:V.space("paddingInlineEnd"),paddingX:V.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:V.space("paddingInline"),paddingY:V.space(["paddingTop","paddingBottom"]),paddingBlock:V.space("paddingBlock")};Object.assign(ce,{m:ce.margin,mt:ce.marginTop,mr:ce.marginRight,me:ce.marginInlineEnd,marginEnd:ce.marginInlineEnd,mb:ce.marginBottom,ml:ce.marginLeft,ms:ce.marginInlineStart,marginStart:ce.marginInlineStart,mx:ce.marginX,my:ce.marginY,p:ce.padding,pt:ce.paddingTop,py:ce.paddingY,px:ce.paddingX,pb:ce.paddingBottom,pl:ce.paddingLeft,ps:ce.paddingInlineStart,paddingStart:ce.paddingInlineStart,pr:ce.paddingRight,pe:ce.paddingInlineEnd,paddingEnd:ce.paddingInlineEnd});var le={textDecorationColor:V.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:V.shadows("textShadow")},ue={clipPath:!0,transform:V.propT("transform",H.transform),transformOrigin:!0,translateX:V.spaceT("--chakra-translate-x"),translateY:V.spaceT("--chakra-translate-y"),skewX:V.degreeT("--chakra-skew-x"),skewY:V.degreeT("--chakra-skew-y"),scaleX:V.prop("--chakra-scale-x"),scaleY:V.prop("--chakra-scale-y"),scale:V.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:V.degreeT("--chakra-rotate")},de={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:V.prop("transitionDuration","transition.duration"),transitionProperty:V.prop("transitionProperty","transition.property"),transitionTimingFunction:V.prop("transitionTimingFunction","transition.easing")},he={fontFamily:V.prop("fontFamily","fonts"),fontSize:V.prop("fontSize","fontSizes",H.px),fontWeight:V.prop("fontWeight","fontWeights"),lineHeight:V.prop("lineHeight","lineHeights"),letterSpacing:V.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},fe={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:V.spaceT("scrollMargin"),scrollMarginTop:V.spaceT("scrollMarginTop"),scrollMarginBottom:V.spaceT("scrollMarginBottom"),scrollMarginLeft:V.spaceT("scrollMarginLeft"),scrollMarginRight:V.spaceT("scrollMarginRight"),scrollMarginX:V.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:V.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:V.spaceT("scrollPadding"),scrollPaddingTop:V.spaceT("scrollPaddingTop"),scrollPaddingBottom:V.spaceT("scrollPaddingBottom"),scrollPaddingLeft:V.spaceT("scrollPaddingLeft"),scrollPaddingRight:V.spaceT("scrollPaddingRight"),scrollPaddingX:V.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:V.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function pe(e){return y(e)&&e.reference?e.reference:String(e)}var me=(e,...t)=>t.map(pe).join(` ${e} `).replace(/calc/g,""),ge=(...e)=>`calc(${me("+",...e)})`,ve=(...e)=>`calc(${me("-",...e)})`,ye=(...e)=>`calc(${me("*",...e)})`,be=(...e)=>`calc(${me("/",...e)})`,we=e=>{const t=pe(e);return null==t||Number.isNaN(parseFloat(t))?ye(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},xe=Object.assign((e=>({add:(...t)=>xe(ge(e,...t)),subtract:(...t)=>xe(ve(e,...t)),multiply:(...t)=>xe(ye(e,...t)),divide:(...t)=>xe(be(e,...t)),negate:()=>xe(we(e)),toString:()=>e.toString()})),{add:ge,subtract:ve,multiply:ye,divide:be,negate:we});function _e(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){if(e.includes("\\."))return e;const t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}function Se(e,t){return`var(${e}${t?`, ${t}`:""})`}function ke(e,t=""){return _e(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function Ee(e,t,r){const n=ke(e,r);return{variable:n,reference:Se(n,t)}}function Ae(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function Pe(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"===typeof e?`${e}px`:e}var Te=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Oe=e=>Object.fromEntries(Object.entries(e).sort(Te));function Ce(e){const t=Oe(e);return Object.assign(Object.values(t),t)}function je(e){var t;if(!e)return e;e=null!=(t=Pe(e))?t:e;return"number"===typeof e?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,(e=>`${parseFloat(e)+-.02}`))}function Re(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Pe(e)})`),t&&r.push("and",`(max-width: ${Pe(t)})`),r.join(" ")}function Ie(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const r=Ce(e),n=Object.entries(e).sort(Te).map((([e,t],r,n)=>{var i;let[,o]=null!=(i=n[r+1])?i:[];return o=parseFloat(o)>0?je(o):void 0,{_minW:je(t),breakpoint:e,minW:t,maxW:o,maxWQuery:Re(null,o),minWQuery:Re(t),minMaxQuery:Re(t,o)}})),i=function(e){const t=Object.keys(Oe(e));return new Set(t)}(e),o=Array.from(i.values());return{keys:i,normalized:r,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every((e=>i.has(e)))},asObject:Oe(e),asArray:Ce(e),details:n,get:e=>n.find((t=>t.breakpoint===e)),media:[null,...r.map((e=>Re(e))).slice(1)],toArrayValue(e){if(!y(e))throw new Error("toArrayValue: value must be an object");const t=o.map((t=>{var r;return null!=(r=e[t])?r:null}));for(;null===Ae(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,t,r)=>{const n=o[r];return null!=n&&null!=t&&(e[n]=t),e}),{})}}}var Me=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,Le=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,Ne=(e,t)=>`${e}:focus-visible ${t}`,De=(e,t)=>`${e}:focus-within ${t}`,ze=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,Be=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,Ue=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,Fe=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,$e=(e,t)=>`${e}:placeholder-shown ${t}`,He=e=>qe((t=>e(t,"&")),"[role=group]","[data-group]",".group"),Ve=e=>qe((t=>e(t,"~ &")),"[data-peer]",".peer"),qe=(e,...t)=>t.map(e).join(", "),Ke={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:He(Me),_peerHover:Ve(Me),_groupFocus:He(Le),_peerFocus:Ve(Le),_groupFocusVisible:He(Ne),_peerFocusVisible:Ve(Ne),_groupActive:He(ze),_peerActive:Ve(ze),_groupDisabled:He(Be),_peerDisabled:Ve(Be),_groupInvalid:He(Ue),_peerInvalid:Ve(Ue),_groupChecked:He(Fe),_peerChecked:Ve(Fe),_groupFocusWithin:He(De),_peerFocusWithin:Ve(De),_peerPlaceholderShown:Ve($e),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},We=Object.keys(Ke);function Ge(e,t){return Ee(String(e).replace(/\./g,"-"),void 0,t)}function Ze(e,t,r={}){const{stop:n,getKey:i}=r;return function e(r,o=[]){var a;if(function(e){return"object"===typeof e&&null!=e&&!Array.isArray(e)}(r)||Array.isArray(r)){const s={};for(const[c,l]of Object.entries(r)){const u=null!=(a=null==i?void 0:i(c))?a:c,d=[...o,u];if(null==n?void 0:n(r,d))return t(r,o);s[u]=e(l,d)}return s}return t(r,o)}(e)}var Ye=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];var Xe=e=>We.includes(e)||"default"===e;function Je(e){var t;const r=function(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}(e),n=function(e){return function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e,Ye)}(r),i=function(e){return e.semanticTokens}(r),o=function({tokens:e,semanticTokens:t}){const r={};return Ze(e,((e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})})),Ze(t,((e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})}),{stop:e=>Object.keys(e).every(Xe)}),r}({tokens:n,semanticTokens:i}),a=null==(t=r.config)?void 0:t.cssVarPrefix,{cssMap:s,cssVars:c}=function(e,t){let r={};const n={};for(const[i,o]of Object.entries(e)){const{isSemantic:a,value:s}=o,{variable:c,reference:l}=Ge(i,null==t?void 0:t.cssVarPrefix);if(!a){if(i.startsWith("space")){const e=i.split("."),[t,...r]=e,o=`${t}.-${r.join(".")}`,a=xe.negate(s),u=xe.negate(l);n[o]={value:a,var:c,varRef:u}}r[c]=s,n[i]={value:s,var:c,varRef:l};continue}const u=r=>{const n=[String(i).split(".")[0],r].join(".");if(!e[n])return r;const{reference:o}=Ge(n,null==t?void 0:t.cssVarPrefix);return o},d=y(s)?s:{default:s};r=A(r,Object.entries(d).reduce(((e,[t,r])=>{var n,i;if(!r)return e;const o=u(`${r}`);return"default"===t?(e[c]=o,e):(e[null!=(i=null==(n=Ke)?void 0:n[t])?i:t]={[c]:o},e)}),{})),n[i]={value:l,var:c,varRef:l}}return{cssVars:r,cssMap:n}}(o,{cssVarPrefix:a});return Object.assign(r,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...c},__cssMap:s,__breakpoints:Ie(r.breakpoints)}),r}var Qe=A({},q,K,W,Y,Q,Z,se,J,X,oe,ae,G,ce,fe,he,le,ue,ee,de),et=Object.assign({},ce,Q,Y,X,ae),tt=Object.keys(et),rt=[...Object.keys(Qe),...We],nt={...Qe,...Ke},it=e=>e in nt;var ot=(e,t)=>e.startsWith("--")&&"string"===typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),at=(e,t)=>{var r,n;if(null==t)return t;const i=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},o=e=>{var t;return null!=(t=i(e))?t:e},[a,s]=function(e){const t=[];let r="",n=!1;for(let i=0;i{var a,s,c;const l=w(e,n),u=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:i}=t.__breakpoints,o={};for(const a in e){let s=w(e[a],t);if(null==s)continue;if(s=y(s)&&r(s)?n(s):s,!Array.isArray(s)){o[a]=s;continue}const c=s.slice(0,i.length).length;for(let e=0;et=>st({theme:t,pseudos:Ke,configs:Qe})(e);function lt(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function ut(e,t){for(let r=t+1;r{A(s,{[e]:u?p[e]:{[f]:p[e]}})})):d?s[f]=p:u?A(s,p):s[f]=p)}return s}}function ht(e){return function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(e,["styleConfig","size","variant","colorScheme"])}var ft=new Set([...rt,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),pt=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function mt(e){return pt.has(e)||!ft.has(e)}var gt=(0,n.createContext)({});function vt(){const e=(0,n.useContext)(gt);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}gt.displayName="ColorModeContext";var yt=(e=>{const t=new WeakMap;return(r,n,i,o)=>{if("undefined"===typeof r)return e(r,n,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,i,o);return a.set(n,s),s}})((function(e,t,r,n){const i="string"===typeof t?t.split("."):[t];for(n=0;n{const i=e[n];t(i,n,e)&&(r[n]=i)})),r}var wt=e=>bt(e,(e=>null!==e&&void 0!==e));function xt(e,...t){return function(e){return"function"===typeof e}(e)?e(...t):e}function _t(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Mt(Vt,--$t):0,Ut--,10===Ht&&(Ut=1,Bt--),Ht}function Gt(){return Ht=$t2||Jt(Ht)>3?"":" "}function nr(e,t){for(;--t&&Gt()&&!(Ht<48||Ht>102||Ht>57&&Ht<65||Ht>70&&Ht<97););return Xt(e,Yt()+(t<6&&32==Zt()&&32==Gt()))}function ir(e){for(;Gt();)switch(Ht){case e:return $t;case 34:case 39:34!==e&&39!==e&&ir(Ht);break;case 40:41===e&&ir(e);break;case 92:Gt()}return $t}function or(e,t){for(;Gt()&&e+Ht!==57&&(e+Ht!==84||47!==Zt()););return"/*"+Xt(t,$t-1)+"*"+Ot(47===e?e:Gt())}function ar(e){for(;!Jt(Zt());)Gt();return Xt(e,$t)}var sr="-ms-",cr="-moz-",lr="-webkit-",ur="comm",dr="rule",hr="decl",fr="@keyframes";function pr(e,t){for(var r="",n=Dt(e),i=0;i0&&Nt(S)-d&&zt(f>32?wr(S+";",n,r,d-1):wr(Rt(S," ","")+";",n,r,d-2),c);break;case 59:S+=";";default:if(zt(_=yr(S,t,r,l,u,i,s,b,w=[],x=[],d),o),123===y)if(0===u)vr(S,t,_,_,w,o,d,s,x);else switch(99===h&&110===Mt(S,3)?100:h){case 100:case 108:case 109:case 115:vr(e,_,_,n&&zt(yr(e,_,_,0,0,i,s,b,i,w=[],d),x),i,x,d,s,n?w:x);break;default:vr(S,_,_,_,[""],x,0,s,x)}}l=u=f=0,m=v=1,b=S="",d=a;break;case 58:d=1+Nt(S),f=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Wt())continue;switch(S+=Ot(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[l++]=(Nt(S)-1)*v,v=1;break;case 64:45===Zt()&&(S+=tr(Gt())),h=Zt(),u=d=Nt(b=S+=ar(Yt())),y++;break;case 45:45===p&&2==Nt(S)&&(m=0)}}return o}function yr(e,t,r,n,i,o,a,s,c,l,u){for(var d=i-1,h=0===i?o:[""],f=Dt(h),p=0,m=0,g=0;p0?h[v]+" "+y:Rt(y,/&\f/g,h[v])))&&(c[g++]=b);return qt(e,t,r,0===i?dr:s,c,l,u)}function br(e,t,r){return qt(e,t,r,ur,Ot(Ht),Lt(e,2,-2),0)}function wr(e,t,r,n){return qt(e,t,r,hr,Lt(e,0,n),Lt(e,n+1,-1),n)}var xr=function(e,t,r){for(var n=0,i=0;n=i,i=Zt(),38===n&&12===i&&(t[r]=1),!Jt(i);)Gt();return Xt(e,$t)},_r=function(e,t){return er(function(e,t){var r=-1,n=44;do{switch(Jt(n)){case 0:38===n&&12===Zt()&&(t[r]=1),e[r]+=xr($t-1,t,r);break;case 2:e[r]+=tr(n);break;case 4:if(44===n){e[++r]=58===Zt()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ot(n)}}while(n=Gt());return e}(Qt(e),t))},Sr=new WeakMap,kr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Sr.get(r))&&!n){Sr.set(e,!0);for(var i=[],o=_r(t,i),a=r.props,s=0,c=0;s6)switch(Mt(e,t+1)){case 109:if(45!==Mt(e,t+4))break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+lr+"$2-$3$1"+cr+(108==Mt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~It(e,"stretch")?Ar(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Mt(e,t+1))break;case 6444:switch(Mt(e,Nt(e)-3-(~It(e,"!important")&&10))){case 107:return Rt(e,":",":"+lr)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lr+(45===Mt(e,14)?"inline-":"")+"box$3$1"+lr+"$2$3$1"+sr+"$2box$3")+e}break;case 5936:switch(Mt(e,t+11)){case 114:return lr+e+sr+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lr+e+sr+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lr+e+sr+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lr+e+sr+e+e}return e}var Pr=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case hr:e.return=Ar(e.value,e.length);break;case fr:return pr([Kt(e,{value:Rt(e.value,"@","@"+lr)})],n);case dr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Kt(e,{props:[Rt(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return pr([Kt(e,{props:[Rt(t,/:(plac\w+)/,":"+lr+"input-$1")]}),Kt(e,{props:[Rt(t,/:(plac\w+)/,":-moz-$1")]}),Kt(e,{props:[Rt(t,/:(plac\w+)/,sr+"input-$1")]})],n)}return""}))}}],Tr=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||Pr;var i,o,a={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+c;return{name:l,styles:i,next:Br}},$r=!!i.useInsertionEffect&&i.useInsertionEffect,Hr=$r||function(e){return e()},Vr=$r||n.useLayoutEffect,qr=n.createContext("undefined"!==typeof HTMLElement?Tr({key:"css"}):null);qr.Provider;var Kr=function(e){return(0,n.forwardRef)((function(t,r){var i=(0,n.useContext)(qr);return e(t,i,r)}))};var Wr=n.createContext({});var Gr=Cr((function(e){return Cr((function(t){return function(e,t){return"function"===typeof t?t(e):Or({},e,t)}(e,t)}))})),Zr=function(e){var t=n.useContext(Wr);return e.theme!==t&&(t=Gr(t)(e.theme)),n.createElement(Wr.Provider,{value:t},e.children)};var Yr,Xr=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Jr=function(e,t,r){Xr(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},Qr=At,en=function(e){return"theme"!==e},tn=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?Qr:en},rn=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},nn=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Xr(t,r,n),Hr((function(){return Jr(t,r,n)})),null},on=function e(t,r){var i,o,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==r&&(i=r.label,o=r.target);var c=rn(t,r,a),l=c||tn(s),u=!l("as");return function(){var d=arguments,h=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&h.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{0,h.push(d[0][0]);for(var f=d.length,p=1;pt=>{const{theme:r,css:n,__css:i,sx:o,...a}=t,s=bt(a,((e,t)=>it(t))),c=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(null!=n)for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(e in r&&delete r[e],r[e]=n[e]);return r}({},i,xt(e,t),wt(s),o),l=ct(c)(t.theme);return n?[l,n]:l};function cn(e,t){const{baseStyle:r,...i}=null!=t?t:{};i.shouldForwardProp||(i.shouldForwardProp=mt);const o=sn({baseStyle:r}),a=an(e,i)(o);return n.forwardRef((function(e,t){const{colorMode:r,forced:i}=vt();return n.createElement(a,{ref:t,"data-theme":i?r:void 0,...e})}))}var ln=function(){const e=new Map;return new Proxy(cn,{apply:(e,t,r)=>cn(...r),get:(t,r)=>(e.has(r)||e.set(r,cn(r)),e.get(r))})}(),un=r(5124),dn=g((function(e,t){const{direction:r,align:n,justify:i,wrap:o,basis:a,grow:s,shrink:c,...l}=e,u={display:"flex",flexDirection:r,alignItems:n,justifyContent:i,flexWrap:o,flexBasis:a,flexGrow:s,flexShrink:c};return(0,un.jsx)(ln.div,{ref:t,__css:u,...l})}));dn.displayName="Flex";var hn=ln("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});hn.displayName="Center";var fn={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},pn=(g((function(e,t){const{axis:r="both",...n}=e;return(0,un.jsx)(ln.div,{ref:t,__css:fn[r],...n,position:"absolute"})})),ln("div"));pn.displayName="Box";var mn=g((function(e,t){const{size:r,centerContent:n=!0,...i}=e,o=n?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,un.jsx)(pn,{ref:t,boxSize:r,__css:{...o,flexShrink:0,flexGrow:0},...i})}));mn.displayName="Square";var gn=g((function(e,t){const{size:r,...n}=e;return(0,un.jsx)(mn,{size:r,ref:t,borderRadius:"9999px",...n})}));function vn(){const e=(0,n.useContext)(Wr);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function yn(){return{...vt(),theme:vn()}}function bn(e,t,r){const n=Array.isArray(t)?t:[t],i=Array.isArray(r)?r:[r];return r=>{const o=i.filter(Boolean),a=n.map(((t,n)=>{var i,a;if("breakpoints"===e)return function(e,t,r){var n,i;if(null==t)return t;const o=t=>{var r,n;return null==(n=null==(r=e.__breakpoints)?void 0:r.asArray)?void 0:n[t]};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,t,null!=(i=o[n])?i:t);return function(e,t,r){var n,i;if(null==t)return t;const o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.value};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,`${e}.${t}`,null!=(a=o[n])?a:t)}));return Array.isArray(t)?a:a[0]}}gn.displayName="Circle";var wn=r(8366);function xn(e,t={}){var r;const{styleConfig:i,...o}=t,{theme:a,colorMode:s}=yn(),c=e?yt(a,`components.${e}`):void 0,l=i||c,u=A({theme:a,colorMode:s},null!=(r=null==l?void 0:l.defaultProps)?r:{},wt(function(e,t){const r={};return Object.keys(e).forEach((n=>{t.includes(n)||(r[n]=e[n])})),r}(o,["children"]))),d=(0,n.useRef)({});if(l){const e=function(e){return t=>{var r;const{variant:n,size:i,theme:o}=t,a=dt(o);return A({},w(null!=(r=e.baseStyle)?r:{},t),a(e,"sizes",i,t),a(e,"variants",n,t))}}(l),t=e(u);wn(d.current,t)||(d.current=t)}return d.current}function _n(e,t={}){return xn(e,t)}function Sn(e,t={}){return xn(e,t)}var kn=g((function(e,t){const r=_n("Heading",e),{className:n,...i}=ht(e);return(0,un.jsx)(ln.h2,{ref:t,className:v("chakra-heading",e.className),...i,__css:r})}));function En(e={}){const{name:t,strict:r=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,c=(0,n.createContext)(s);return c.displayName=t,[c.Provider,function e(){var t;const s=(0,n.useContext)(c);if(!s&&r){const r=new Error(null!=a?a:`${i} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw r.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,r,e),r}return s},c]}kn.displayName="Heading";var[An,Pn]=En({strict:!1,name:"ButtonGroupContext"});function Tn(e){const{children:t,className:r,...i}=e,o=(0,n.isValidElement)(t)?(0,n.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,a=v("chakra-button__icon",r);return(0,un.jsx)(ln.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:a,children:o})}Tn.displayName="ButtonIcon";r(1194);var On=Kr((function(e,t){var r=e.styles,i=Fr([r],void 0,n.useContext(Wr)),o=n.useRef();return Vr((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,a=document.querySelector('style[data-emotion="'+e+" "+i.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(n=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),o.current=[r,n],function(){r.flush()}}),[t]),Vr((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==i.next&&Jr(t,i.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",i,r,!1)}}),[t,i.name]),null}));function Cn(){for(var e=arguments.length,t=new Array(e),r=0;r{const r=_n("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...c}=ht(e),l=v("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Rn} ${o} linear infinite`,...r};return(0,un.jsx)(ln.div,{ref:t,__css:u,className:l,...c,children:n&&(0,un.jsx)(ln.span,{srOnly:!0,children:n})})}));function Mn(e){const{label:t,placement:r,spacing:i="0.5rem",children:o=(0,un.jsx)(In,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:s,...c}=e,l=v("chakra-button__spinner",a),u="start"===r?"marginEnd":"marginStart",d=(0,n.useMemo)((()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?i:0,fontSize:"1em",lineHeight:"normal",...s})),[s,t,u,i]);return(0,un.jsx)(ln.div,{className:l,...c,__css:d,children:o})}function Ln(...e){return t=>{e.forEach((e=>{!function(e,t){if(null!=e)if("function"!==typeof e)try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)}))}}function Nn(...e){return(0,n.useMemo)((()=>Ln(...e)),e)}In.displayName="Spinner",Mn.displayName="ButtonSpinner";var Dn=g(((e,t)=>{const r=Pn(),i=_n("Button",{...r,...e}),{isDisabled:o=(null==r?void 0:r.isDisabled),isLoading:a,isActive:s,children:c,leftIcon:l,rightIcon:u,loadingText:d,iconSpacing:h="0.5rem",type:f,spinner:p,spinnerPlacement:m="start",className:g,as:y,...b}=ht(e),w=(0,n.useMemo)((()=>{const e={...null==i?void 0:i._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...i,...!!r&&{_focus:e}}}),[i,r]),{ref:x,type:S}=function(e){const[t,r]=(0,n.useState)(!e),i=(0,n.useCallback)((e=>{e&&r("BUTTON"===e.tagName)}),[]);return{ref:i,type:t?"button":void 0}}(y),k={rightIcon:u,leftIcon:l,iconSpacing:h,children:c};return(0,un.jsxs)(ln.button,{ref:Nn(t,x),as:y,type:null!=f?f:S,"data-active":_(s),"data-loading":_(a),__css:w,className:v("chakra-button",g),...b,disabled:o||a,children:[a&&"start"===m&&(0,un.jsx)(Mn,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:h,children:p}),a?d||(0,un.jsx)(ln.span,{opacity:0,children:(0,un.jsx)(zn,{...k})}):(0,un.jsx)(zn,{...k}),a&&"end"===m&&(0,un.jsx)(Mn,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:h,children:p})]})}));function zn(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return(0,un.jsxs)(un.Fragment,{children:[t&&(0,un.jsx)(Tn,{marginEnd:i,children:t}),n,r&&(0,un.jsx)(Tn,{marginStart:i,children:r})]})}Dn.displayName="Button";var Bn=g((function(e,t){const r=_n("Link",e),{className:n,isExternal:i,...o}=ht(e);return(0,un.jsx)(ln.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:t,className:v("chakra-link",n),...o,__css:r})}));Bn.displayName="Link";const Un=()=>{const e=()=>{window.location.reload()};return(0,un.jsx)(dn,{alignItems:"stretch",children:(0,un.jsx)(hn,{width:"100%",marginTop:"200px",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(kn,{marginBottom:3,textAlign:"center",children:"Ooops, something went wrong!"}),(0,un.jsx)(Dn,{marginRight:2,onClick:e,children:"Refresh the page"}),(0,un.jsx)(Dn,{marginRight:2,onClick:()=>{const e=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(window.localStorage))}`,t=document.createElement("a");t.href=e,t.download="data.json",t.click()},variant:"secondary",children:"Download Backup"}),(0,un.jsx)(Dn,{marginRight:2,onClick:()=>{window.localStorage.clear(),e()},variant:"warning",children:"Offboard"}),(0,un.jsx)(Dn,{variant:"tertiary",children:(0,un.jsx)(Bn,{href:"mailto:umami-support@trili.tech?subject=Umami V2 feedback&body=What is it about? (if a bug report please consider including your account address) %0A PLEASE FILL %0A%0A What is the feedback? %0A PLEASE FILL",rel:"noopener noreferrer",target:"_blank",children:"Report Error"})})]})})})};var Fn=r(2029);const $n=new Fn.QueryClient,Hn=e=>(0,un.jsx)(Fn.QueryClientProvider,{client:$n,children:e.children});var Vn=r(5447),qn=r(2003),Kn=r(2717),Wn=r.t(Kn,2);let Gn=function(e){e()};const Zn=()=>Gn,Yn=Symbol.for("react-redux-context"),Xn="undefined"!==typeof globalThis?globalThis:{};function Jn(){var e;if(!n.createContext)return{};const t=null!=(e=Xn[Yn])?e:Xn[Yn]=new Map;let r=t.get(n.createContext);return r||(r=n.createContext(null),t.set(n.createContext,r)),r}const Qn=Jn();function ei(e=Qn){return function(){return(0,n.useContext)(e)}}const ti=ei();let ri=()=>{throw new Error("uSES not initialized!")};const ni=(e,t)=>e===t;function ii(e=Qn){const t=e===Qn?ti:ei(e);return function(e,r={}){const{equalityFn:i=ni,stabilityCheck:o,noopCheck:a}="function"===typeof r?{equalityFn:r}:r;const{store:s,subscription:c,getServerState:l,stabilityCheck:u,noopCheck:d}=t(),h=((0,n.useRef)(!0),(0,n.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,o])),f=ri(c.addNestedSub,s.getState,l||s.getState,h,i);return(0,n.useDebugValue)(f),f}}const oi=ii();r(931);const ai={notify(){},get:()=>[]};function si(e,t){let r,n=ai,i=0,o=!1;function a(){l.onStateChange&&l.onStateChange()}function s(){i++,r||(r=t?t.addNestedSub(a):e.subscribe(a),n=function(){const e=Zn();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function c(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=ai)}const l={addNestedSub:function(e){s();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),c())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,c())},getListeners:()=>n};return l}const ci=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?n.useLayoutEffect:n.useEffect;let li=null;const ui=function({store:e,context:t,children:r,serverState:i,stabilityCheck:o="once",noopCheck:a="once"}){const s=n.useMemo((()=>{const t=si(e);return{store:e,subscription:t,getServerState:i?()=>i:void 0,stabilityCheck:o,noopCheck:a}}),[e,i,o,a]),c=n.useMemo((()=>e.getState()),[e]);ci((()=>{const{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[s,c]);const l=t||Qn;return n.createElement(l.Provider,{value:s},r)};function di(e=Qn){const t=e===Qn?ti:ei(e);return function(){const{store:e}=t();return e}}const hi=di();function fi(e=Qn){const t=e===Qn?hi:di(e);return function(){return t().dispatch}}const pi=fi();var mi;function gi(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:Ei(e)?2:Ai(e)?3:0}function xi(e,t){return 2===wi(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _i(e,t){return 2===wi(e)?e.get(t):e[t]}function Si(e,t,r){var n=wi(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function ki(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Ei(e){return to&&e instanceof Map}function Ai(e){return ro&&e instanceof Set}function Pi(e){return e.o||e.t}function Ti(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=lo(e);delete t[ao];for(var r=co(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Ci),Object.freeze(e),t&&bi(e,(function(e,t){return Oi(t,!0)}),!0)),e}function Ci(){gi(2)}function ji(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Ri(e){var t=uo[e];return t||gi(18,e),t}function Ii(e,t){uo[e]||(uo[e]=t)}function Mi(){return Qi}function Li(e,t){t&&(Ri("Patches"),e.u=[],e.s=[],e.v=t)}function Ni(e){Di(e),e.p.forEach(Bi),e.p=null}function Di(e){e===Qi&&(Qi=e.l)}function zi(e){return Qi={p:[],l:Qi,h:e,m:!0,_:0}}function Bi(e){var t=e[ao];0===t.i||1===t.i?t.j():t.g=!0}function Ui(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.O||Ri("ES5").S(t,e,n),n?(r[ao].P&&(Ni(t),gi(4)),yi(e)&&(e=Fi(t,e),t.l||Hi(t,e)),t.u&&Ri("Patches").M(r[ao].t,e,t.u,t.s)):e=Fi(t,r,[]),Ni(t),t.u&&t.v(t.u,t.s),e!==io?e:void 0}function Fi(e,t,r){if(ji(t))return t;var n=t[ao];if(!n)return bi(t,(function(i,o){return $i(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Hi(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=Ti(n.k):n.o,o=i,a=!1;3===n.i&&(o=new Set(i),i.clear(),a=!0),bi(o,(function(t,o){return $i(e,n,i,t,o,r,a)})),Hi(e,i,!1),r&&e.u&&Ri("Patches").N(n,r,e.u,e.s)}return n.o}function $i(e,t,r,n,i,o,a){if(vi(i)){var s=Fi(e,i,o&&t&&3!==t.i&&!xi(t.R,n)?o.concat(n):void 0);if(Si(r,n,s),!vi(s))return;e.m=!1}else a&&r.add(i);if(yi(i)&&!ji(i)){if(!e.h.D&&e._<1)return;Fi(e,i),t&&t.A.l||Hi(e,i)}}function Hi(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&Oi(t,r)}function Vi(e,t){var r=e[ao];return(r?Pi(r):e)[t]}function qi(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ki(e){e.P||(e.P=!0,e.l&&Ki(e.l))}function Wi(e){e.o||(e.o=Ti(e.t))}function Gi(e,t,r){var n=Ei(t)?Ri("MapSet").F(t,r):Ai(t)?Ri("MapSet").T(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:Mi(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=ho;r&&(i=[n],o=fo);var a=Proxy.revocable(i,o),s=a.revoke,c=a.proxy;return n.k=c,n.j=s,c}(t,r):Ri("ES5").J(t,r);return(r?r.A:Mi()).p.push(n),n}function Zi(e){return vi(e)||gi(22,e),function e(t){if(!yi(t))return t;var r,n=t[ao],i=wi(t);if(n){if(!n.P&&(n.i<4||!Ri("ES5").K(n)))return n.t;n.I=!0,r=Yi(t,i),n.I=!1}else r=Yi(t,i);return bi(r,(function(t,i){n&&_i(n.t,t)===i||Si(r,t,e(i))})),3===i?new Set(r):r}(e)}function Yi(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ti(e)}function Xi(){function e(e,t){var r=i[e];return r?r.enumerable=t:i[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[ao];return ho.get(t,e)},set:function(t){var r=this[ao];ho.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][ao];if(!i.P)switch(i.i){case 5:n(i)&&Ki(i);break;case 4:r(i)&&Ki(i)}}}function r(e){for(var t=e.t,r=e.k,n=co(r),i=n.length-1;i>=0;i--){var o=n[i];if(o!==ao){var a=t[o];if(void 0===a&&!xi(t,o))return!0;var s=r[o],c=s&&s[ao];if(c?c.t!==a:!ki(s,a))return!0}}var l=!!t[ao];return n.length!==co(t).length+(l?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;n{ri=e})(qn.useSyncExternalStoreWithSelector),(e=>{li=e})(Vn.useSyncExternalStore),mi=Kn.unstable_batchedUpdates,Gn=mi;var Ji,Qi,eo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),to="undefined"!=typeof Map,ro="undefined"!=typeof Set,no="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,io=eo?Symbol.for("immer-nothing"):((Ji={})["immer-nothing"]=!0,Ji),oo=eo?Symbol.for("immer-draftable"):"__$immer_draftable",ao=eo?Symbol.for("immer-state"):"__$immer_state",so=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),co="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,lo=Object.getOwnPropertyDescriptors||function(e){var t={};return co(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},uo={},ho={get:function(e,t){if(t===ao)return e;var r=Pi(e);if(!xi(r,t))return function(e,t,r){var n,i=qi(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!yi(n)?n:n===Vi(e.t,t)?(Wi(e),e.o[t]=Gi(e.A.h,n,e)):n},has:function(e,t){return t in Pi(e)},ownKeys:function(e){return Reflect.ownKeys(Pi(e))},set:function(e,t,r){var n=qi(Pi(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Vi(Pi(e),t),o=null==i?void 0:i[ao];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(ki(r,i)&&(void 0!==r||xi(e.t,t)))return!0;Wi(e),Ki(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Vi(e.t,t)||t in e.t?(e.R[t]=!1,Wi(e),Ki(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Pi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){gi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){gi(12)}},fo={};bi(ho,(function(e,t){fo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),fo.deleteProperty=function(e,t){return fo.set.call(this,e,t,void 0)},fo.set=function(e,t,r){return ho.set.call(this,e[0],t,r,e[0])};var po=function(){function e(e){var t=this;this.O=no,this.D=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var i=r;r=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,a=Array(n>1?n-1:0),s=1;s1?n-1:0),o=1;o=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var i=Ri("Patches").$;return vi(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),mo=new po,go=mo.produce;mo.produceWithPatches.bind(mo),mo.setAutoFreeze.bind(mo),mo.setUseProxies.bind(mo),mo.applyPatches.bind(mo),mo.createDraft.bind(mo),mo.finishDraft.bind(mo);const vo=go;function yo(e){return yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yo(e)}function bo(e){var t=function(e,t){if("object"!==yo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==yo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yo(t)?t:String(t)}function wo(e,t,r){return(t=bo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _o(e){for(var t=1;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ia(e,t){var r=void 0!==e.version?e.version:-1,n=(e.debug,void 0===e.stateReconciler?Sa:e.stateReconciler),i=e.getStoredState||Aa,o=void 0!==e.timeout?e.timeout:5e3,a=null,s=!1,c=!0,l=function(e){return e._persist.rehydrated&&a&&!c&&a.update(e),e};return function(u,d){var h=u||{},f=h._persist,p=Ra(h,["_persist"]);if(d.type===va){var m=!1,g=function(t,r){m||(d.rehydrate(e.key,t,r),m=!0)};if(o&&setTimeout((function(){!m&&g(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),o),c=!1,a||(a=ka(e)),f)return Ca({},t(p,d),{_persist:f});if("function"!==typeof d.rehydrate||"function"!==typeof d.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),i(e).then((function(t){var n=e.migrate||function(e,t){return Promise.resolve(e)};n(t,r).then((function(e){g(e)}),(function(e){g(void 0,e)}))}),(function(e){g(void 0,e)})),Ca({},t(p,d),{_persist:{version:r,rehydrated:!1}})}if(d.type===ya)return s=!0,d.result(function(e){var t=e.storage,r="".concat(void 0!==e.keyPrefix?e.keyPrefix:fa).concat(e.key);return t.removeItem(r,Ta)}(e)),Ca({},t(p,d),{_persist:f});if(d.type===pa)return d.result(a&&a.flush()),Ca({},t(p,d),{_persist:f});if(d.type===ga)c=!0;else if(d.type===ma){if(s)return Ca({},p,{_persist:Ca({},f,{rehydrated:!0})});if(d.key===e.key){var v=t(p,d),y=d.payload,b=Ca({},!1!==n&&void 0!==y?n(y,u,v,e):v,{_persist:Ca({},f,{rehydrated:!0})});return l(b)}}if(!f)return t(u,d);var w=t(p,d);return w===p?u:l(Ca({},w,{_persist:f}))}}function Ma(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:za,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ba:return Na({},e,{registry:[].concat(Ma(e.registry),[t.key])});case ma:var r=e.registry.indexOf(t.key),n=Ma(e.registry);return n.splice(r,1),Na({},e,{registry:n,bootstrapped:0===n.length});default:return e}};var Ua=r(967);const Fa={html:"",seen:!0},$a=ra({name:"announcements",initialState:Fa,reducers:{reset:()=>Fa,setCurrent:(e,{payload:t})=>{t!==e.html&&(e.seen=!1),e.html=t},setSeen:e=>{e.seen=!0}}}),Ha={0:e=>go(e,(e=>{e.multisigs.labelsMap={}})),1:e=>go(e,(e=>{e.announcements=Fa}))};var Va=r(2354),qa=r(4872),Ka=r(4670),Wa=r(448),Ga=r(4563),Za=r.n(Ga),Ya=r(7491),Xa=r.n(Ya);class Ja extends Error{}class Qa extends Ja{}class es extends Ja{}class ts extends Ja{}class rs extends Ja{}class ns extends Ja{}class is extends Qa{constructor(e,t){super(),this.address=e,this.errorDetail=t,this.name="InvalidAddressError",this.message=`Invalid address "${e}"`,this.message+=t?` ${t}.`:"."}}class os extends Qa{constructor(e,t){super(),this.blockHash=e,this.errorDetail=t,this.name="InvalidBlockHashError",this.message=`Invalid block hash "${e}"`,this.message+=t?` ${t}.`:"."}}class as extends Qa{constructor(e){super(),this.amount=e,this.name="InvalidAmountError",this.message=`Invalid amount "${e}"`}}class ss extends Qa{constructor(e,t){super(),this.derivationPath=e,this.errorDetail=t,this.name="InvalidDerivationPathError",this.message=`Invalid derivation path "${e}"`,this.message+=t?` ${t}.`:"."}}class cs extends Qa{constructor(e,t){super(),this.hexString=e,this.errorDetail=t,this.name="InvalidHexStringError",this.message=`Invalid hex string "${e}"`,this.message+=t?` ${t}.`:"."}}class ls extends Qa{constructor(e,t){super(),this.msg=e,this.errorDetail=t,this.name="InvalidMessageError",this.message=`Invalid message "${e}"`,this.message+=t?` ${t}.`:"."}}class us extends Qa{constructor(e,t,r,n){super(),this.viewName=e,this.sigs=t,this.args=r,this.cause=n,this.name="InvalidViewParameterError",this.message=`Invalid view arguments ${JSON.stringify(r)} received for name "${e}" expecting one of the following signatures ${JSON.stringify(t)}.`}}class ds extends Qa{constructor(e){super(),this.errorDetail=e,this.name="InvalidKeyError",this.message="Invalid private key",this.message+=e?` ${e}.`:"."}}class hs extends Qa{constructor(e,t){super(),this.publicKey=e,this.errorDetail=t,this.name="InvalidPublicKeyError",this.message=`Invalid public key "${e}"`,this.message+=t?` ${t}.`:"."}}class fs extends Qa{constructor(e,t){super(),this.contractAddress=e,this.errorDetail=t,this.name="InvalidContractAddressError",this.message=`Invalid contract address "${e}"`,this.message+=t?` ${t}.`:"."}}class ps extends Qa{constructor(e,t){super(),this.chainId=e,this.errorDetail=t,this.name="InvalidChainIdError",this.message=`Invalid chain id "${e}"`,this.message+=t?` ${t}.`:"."}}class ms extends Qa{constructor(e,t){super(),this.keyHash=e,this.errorDetail=t,this.name="InvalidKeyHashError",this.message=`Invalid public key hash "${e}"`,this.message+=t?` ${t}.`:"."}}class gs extends Qa{constructor(e,t){super(),this.operationHash=e,this.errorDetail=t,this.name="InvalidOperationHashError",this.message=`Invalid operation hash "${e}"`,this.message+=t?` ${t}.`:"."}}class vs extends Qa{constructor(e,t){super(),this.operationKind=e,this.errorDetail=t,this.name="InvalidOperationKindError",this.message=`Invalid operation kind "${e}"`,this.message+=t?` ${t}.`:"."}}class ys extends rs{constructor(e){super(),this.message=e,this.name="DeprecationError"}}class bs extends rs{constructor(e){super(),this.message=e,this.name="ProhibitedActionError"}}class ws extends Ja{constructor(e,t){super(),this.pkh=e,this.cause=t,this.name="PublicKeyNotFoundError",this.message=`Public key not found of this address "${e}" in either wallet or contract API.`}}var xs=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,_s=Math.ceil,Ss=Math.floor,ks="[BigNumber Error] ",Es=ks+"Number primitive has more than 15 significant digits: ",As=1e14,Ps=14,Ts=9007199254740991,Os=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Cs=1e7,js=1e9;function Rs(e){var t=0|e;return e>0||e===t?t:t-1}function Is(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nl^r?1:-1;for(s=(c=i.length)<(l=o.length)?c:l,a=0;ao[a]^r?1:-1;return c==l?0:c>l^r?1:-1}function Ls(e,t,r,n){if(er||e!==Ss(e))throw Error(ks+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Ns(e){var t=e.c.length-1;return Rs(e.e/Ps)==t&&e.c[t]%2!=0}function Ds(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function zs(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else th?g.c=g.e=null:e.e=10;u/=10,l++);return void(l>h?g.c=g.e=null:(g.e=l,g.c=[e]))}m=String(e)}else{if(!xs.test(m=String(e)))return i(g,m,f);g.s=45==m.charCodeAt(0)?(m=m.slice(1),-1):1}(l=m.indexOf("."))>-1&&(m=m.replace(".","")),(u=m.search(/e/i))>0?(l<0&&(l=u),l+=+m.slice(u+1),m=m.substring(0,u)):l<0&&(l=m.length)}else{if(Ls(t,2,v.length,"Base"),10==t&&y)return S(g=new b(e),s+g.e+1,c);if(m=String(e),f="number"==typeof e){if(0*e!=0)return i(g,m,f,t);if(g.s=1/e<0?(m=m.slice(1),-1):1,b.DEBUG&&m.replace(/^0\.0*|\./,"").length>15)throw Error(Es+e)}else g.s=45===m.charCodeAt(0)?(m=m.slice(1),-1):1;for(r=v.slice(0,t),l=u=0,p=m.length;ul){l=p;continue}}else if(!a&&(m==m.toUpperCase()&&(m=m.toLowerCase())||m==m.toLowerCase()&&(m=m.toUpperCase()))){a=!0,u=-1,l=0;continue}return i(g,String(e),f,t)}f=!1,(l=(m=n(m,t,10,g.s)).indexOf("."))>-1?m=m.replace(".",""):l=m.length}for(u=0;48===m.charCodeAt(u);u++);for(p=m.length;48===m.charCodeAt(--p););if(m=m.slice(u,++p)){if(p-=u,f&&b.DEBUG&&p>15&&(e>Ts||e!==Ss(e)))throw Error(Es+g.s*e);if((l=l-u-1)>h)g.c=g.e=null;else if(l=u)?Ds(d,a):zs(d,a,"0");else if(o=(e=S(new b(e),t,r)).e,s=(d=Is(e.c)).length,1==n||2==n&&(t<=o||o<=l)){for(;ss){if(--t>0)for(d+=".";t--;d+="0");}else if((t+=o-s)>0)for(o+1==s&&(d+=".");t--;d+="0");return e.s<0&&i?"-"+d:d}function x(e,t){for(var r,n,i=1,o=new b(e[0]);i=10;i/=10,n++);return(r=n+r*Ps-1)>h?e.c=e.e=null:r=10;s/=10,i++);if((o=t-i)<0)o+=Ps,a=t,c=f[l=0],u=Ss(c/p[i-a-1]%10);else if((l=_s((o+1)/Ps))>=f.length){if(!n)break e;for(;f.length<=l;f.push(0));c=u=0,i=1,a=(o%=Ps)-Ps+1}else{for(c=s=f[l],i=1;s>=10;s/=10,i++);u=(a=(o%=Ps)-Ps+i)<0?0:Ss(c/p[i-a-1]%10)}if(n=n||t<0||null!=f[l+1]||(a<0?c:c%p[i-a-1]),n=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?c/p[i-a]:0:f[l-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,n?(t-=e.e+1,f[0]=p[(Ps-t%Ps)%Ps],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=l,s=1,l--):(f.length=l+1,s=p[Ps-o],f[l]=a>0?Ss(c/p[i-a]%p[a])*s:0),n)for(;;){if(0==l){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,f[0]==As&&(f[0]=1));break}if(f[l]+=s,f[l]!=As)break;f[l--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}e.e>h?e.c=e.e=null:e.e=u?Ds(t,r):zs(t,r,"0"),e.s<0?"-"+t:t)}return b.clone=e,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLID=9,b.config=b.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(ks+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(Ls(r=e[t],0,js,t),s=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(Ls(r=e[t],0,8,t),c=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(Ls(r[0],-js,0,t),Ls(r[1],0,js,t),l=r[0],u=r[1]):(Ls(r,-js,js,t),l=-(u=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)Ls(r[0],-js,-1,t),Ls(r[1],1,js,t),d=r[0],h=r[1];else{if(Ls(r,-js,js,t),!r)throw Error(ks+t+" cannot be zero: "+r);d=-(h=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(ks+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw f=!r,Error(ks+"crypto unavailable");f=r}else f=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(Ls(r=e[t],0,9,t),p=r),e.hasOwnProperty(t="POW_PRECISION")&&(Ls(r=e[t],0,js,t),m=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(ks+t+" not an object: "+r);g=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(ks+t+" invalid: "+r);y="0123456789"==r.slice(0,10),v=r}}return{DECIMAL_PLACES:s,ROUNDING_MODE:c,EXPONENTIAL_AT:[l,u],RANGE:[d,h],CRYPTO:f,MODULO_MODE:p,POW_PRECISION:m,FORMAT:g,ALPHABET:v}},b.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!b.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-js&&i<=js&&i===Ss(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%Ps)<1&&(t+=Ps),String(n[0]).length==t){for(t=0;t=As||r!==Ss(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(ks+"Invalid BigNumber: "+e)},b.maximum=b.max=function(){return x(arguments,-1)},b.minimum=b.min=function(){return x(arguments,1)},b.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return Ss(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var r,n,i,o,c,l=0,u=[],d=new b(a);if(null==e?e=s:Ls(e,0,js),o=_s(e/Ps),f)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(o*=2));l>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[l]=n[0],r[l+1]=n[1]):(u.push(c%1e14),l+=2);l=o/2}else{if(!crypto.randomBytes)throw f=!1,Error(ks+"crypto unavailable");for(r=crypto.randomBytes(o*=7);l=9e15?crypto.randomBytes(7).copy(r,l):(u.push(c%1e14),l+=7);l=o/7}if(!f)for(;l=10;c/=10,l++);lr-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,a,l){var u,d,h,f,p,g,y,w,x=n.indexOf("."),_=s,S=c;for(x>=0&&(f=m,m=0,n=n.replace(".",""),g=(w=new b(i)).pow(n.length-x),m=f,w.c=t(zs(Is(g.c),g.e,"0"),10,o,e),w.e=w.c.length),h=f=(y=t(n,i,o,l?(u=v,e):(u=e,v))).length;0==y[--f];y.pop());if(!y[0])return u.charAt(0);if(x<0?--h:(g.c=y,g.e=h,g.s=a,y=(g=r(g,w,_,S,o)).c,p=g.r,h=g.e),x=y[d=h+_+1],f=o/2,p=p||d<0||null!=y[d+1],p=S<4?(null!=x||p)&&(0==S||S==(g.s<0?3:2)):x>f||x==f&&(4==S||p||6==S&&1&y[d-1]||S==(g.s<0?8:7)),d<1||!y[0])n=p?zs(u.charAt(1),-_,u.charAt(0)):u.charAt(0);else{if(y.length=d,p)for(--o;++y[--d]>o;)y[d]=0,d||(++h,y=[1].concat(y));for(f=y.length;!y[--f];);for(x=0,n="";x<=f;n+=u.charAt(y[x++]));n=zs(n,h,u.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,l=t%Cs,u=t/Cs|0;for(e=e.slice();c--;)s=((i=l*(o=e[c]%Cs)+(n=u*o+(a=e[c]/Cs|0)*l)%Cs*Cs+s)/r|0)+(n/Cs|0)+u*a,e[c]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var c,l,u,d,h,f,p,m,g,v,y,w,x,_,k,E,A,P=n.s==i.s?1:-1,T=n.c,O=i.c;if(!T||!T[0]||!O||!O[0])return new b(n.s&&i.s&&(T?!O||T[0]!=O[0]:O)?T&&0==T[0]||!O?0*P:P/0:NaN);for(g=(m=new b(P)).c=[],P=o+(l=n.e-i.e)+1,s||(s=As,l=Rs(n.e/Ps)-Rs(i.e/Ps),P=P/Ps|0),u=0;O[u]==(T[u]||0);u++);if(O[u]>(T[u]||0)&&l--,P<0)g.push(1),d=!0;else{for(_=T.length,E=O.length,u=0,P+=2,(h=Ss(s/(O[0]+1)))>1&&(O=e(O,h,s),T=e(T,h,s),E=O.length,_=T.length),x=E,y=(v=T.slice(0,E)).length;y=s/2&&k++;do{if(h=0,(c=t(O,v,E,y))<0){if(w=v[0],E!=y&&(w=w*s+(v[1]||0)),(h=Ss(w/k))>1)for(h>=s&&(h=s-1),p=(f=e(O,h,s)).length,y=v.length;1==t(f,v,p,y);)h--,r(f,E=10;P/=10,u++);S(m,o+(m.e=u+l*Ps-1)+1,a,d)}else m.e=l,m.r=+d;return m}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,c){var l,u=s?a:a.replace(i,"");if(n.test(u))o.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,(function(e,t,r){return l="x"==(r=r.toLowerCase())?16:"b"==r?2:8,c&&c!=l?e:t})),c&&(l=c,u=u.replace(t,"$1").replace(r,"0.$1")),a!=u))return new b(u,l);if(b.DEBUG)throw Error(ks+"Not a"+(c?" base "+c:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),o.absoluteValue=o.abs=function(){var e=new b(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return Ms(this,new b(e,t))},o.decimalPlaces=o.dp=function(e,t){var r,n,i,o=this;if(null!=e)return Ls(e,0,js),null==t?t=c:Ls(t,0,8),S(new b(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-Rs(this.e/Ps))*Ps,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},o.dividedBy=o.div=function(e,t){return r(this,new b(e,t),s,c)},o.dividedToIntegerBy=o.idiv=function(e,t){return r(this,new b(e,t),0,1)},o.exponentiatedBy=o.pow=function(e,t){var r,n,i,o,s,l,u,d,h=this;if((e=new b(e)).c&&!e.isInteger())throw Error(ks+"Exponent not an integer: "+k(e));if(null!=t&&(t=new b(t)),s=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return d=new b(Math.pow(+k(h),s?e.s*(2-Ns(e)):+k(e))),t?d.mod(t):d;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new b(NaN);(n=!l&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||s&&h.c[1]>=24e7:h.c[0]<8e13||s&&h.c[0]<=9999975e7)))return o=h.s<0&&Ns(e)?-0:0,h.e>-1&&(o=1/o),new b(l?1/o:o);m&&(o=_s(m/Ps+2))}for(s?(r=new b(.5),l&&(e.s=1),u=Ns(e)):u=(i=Math.abs(+k(e)))%2,d=new b(a);;){if(u){if(!(d=d.times(h)).c)break;o?d.c.length>o&&(d.c.length=o):n&&(d=d.mod(t))}if(i){if(0===(i=Ss(i/2)))break;u=i%2}else if(S(e=e.times(r),e.e+1,1),e.e>14)u=Ns(e);else{if(0===(i=+k(e)))break;u=i%2}h=h.times(h),o?h.c&&h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}return n?d:(l&&(d=a.div(d)),t?d.mod(t):o?S(d,m,c,undefined):d)},o.integerValue=function(e){var t=new b(this);return null==e?e=c:Ls(e,0,8),S(t,t.e+1,e)},o.isEqualTo=o.eq=function(e,t){return 0===Ms(this,new b(e,t))},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return Ms(this,new b(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return 1===(t=Ms(this,new b(e,t)))||0===t},o.isInteger=function(){return!!this.c&&Rs(this.e/Ps)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return Ms(this,new b(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return-1===(t=Ms(this,new b(e,t)))||0===t},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.minus=function(e,t){var r,n,i,o,a=this,s=a.s;if(t=(e=new b(e,t)).s,!s||!t)return new b(NaN);if(s!=t)return e.s=-t,a.plus(e);var l=a.e/Ps,u=e.e/Ps,d=a.c,h=e.c;if(!l||!u){if(!d||!h)return d?(e.s=-t,e):new b(h?a:NaN);if(!d[0]||!h[0])return h[0]?(e.s=-t,e):new b(d[0]?a:3==c?-0:0)}if(l=Rs(l),u=Rs(u),d=d.slice(),s=l-u){for((o=s<0)?(s=-s,i=d):(u=l,i=h),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=d.length)<(t=h.length))?s:t,s=t=0;t0)for(;t--;d[r++]=0);for(t=As-1;n>s;){if(d[--n]=0;){for(r=0,h=w[i]%g,f=w[i]/g|0,o=i+(a=c);o>i;)r=((l=h*(l=y[--a]%g)+(s=f*l+(u=y[a]/g|0)*h)%g*g+p[o]+r)/m|0)+(s/g|0)+f*u,p[o--]=l%m;p[o]=r}return r?++n:p.splice(0,1),_(e,p,n)},o.negated=function(){var e=new b(this);return e.s=-e.s||null,e},o.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new b(e,t)).s,!i||!t)return new b(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/Ps,a=e.e/Ps,s=n.c,c=e.c;if(!o||!a){if(!s||!c)return new b(i/0);if(!s[0]||!c[0])return c[0]?e:new b(s[0]?n:0*i)}if(o=Rs(o),a=Rs(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=c):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=c.length)<0&&(r=c,c=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/As|0,s[t]=As===s[t]?0:s[t]%As;return i&&(s=[i].concat(s),++a),_(e,s,a)},o.precision=o.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return Ls(e,1,js),null==t?t=c:Ls(t,0,8),S(new b(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*Ps+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},o.shiftedBy=function(e){return Ls(e,-9007199254740991,Ts),this.times("1e"+e)},o.squareRoot=o.sqrt=function(){var e,t,n,i,o,a=this,l=a.c,u=a.s,d=a.e,h=s+4,f=new b("0.5");if(1!==u||!l||!l[0])return new b(!u||u<0&&(!l||l[0])?NaN:l?a:1/0);if(0==(u=Math.sqrt(+k(a)))||u==1/0?(((t=Is(l)).length+d)%2==0&&(t+="0"),u=Math.sqrt(+t),d=Rs((d+1)/2)-(d<0||d%2),n=new b(t=u==1/0?"5e"+d:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+d)):n=new b(u+""),n.c[0])for((u=(d=n.e)+h)<3&&(u=0);;)if(o=n,n=f.times(o.plus(r(a,o,h,1))),Is(o.c).slice(0,u)===(t=Is(n.c)).slice(0,u)){if(n.e0&&p>0){for(o=p%s||s,u=f.substr(0,o);o0&&(u+=l+f.slice(o)),h&&(u="-"+u)}n=d?u+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):u}return(r.prefix||"")+n+(r.suffix||"")},o.toFraction=function(e){var t,n,i,o,s,l,u,d,f,p,m,g,v=this,y=v.c;if(null!=e&&(!(u=new b(e)).isInteger()&&(u.c||1!==u.s)||u.lt(a)))throw Error(ks+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+k(u));if(!y)return new b(v);for(t=new b(a),f=n=new b(a),i=d=new b(a),g=Is(y),s=t.e=g.length-v.e-1,t.c[0]=Os[(l=s%Ps)<0?Ps+l:l],e=!e||u.comparedTo(t)>0?s>0?t:f:u,l=h,h=1/0,u=new b(g),d.c[0]=0;p=r(u,t,0,1),1!=(o=n.plus(p.times(i))).comparedTo(e);)n=i,i=o,f=d.plus(p.times(o=f)),d=o,t=u.minus(p.times(o=t)),u=o;return o=r(e.minus(n),i,0,1),d=d.plus(o.times(f)),n=n.plus(o.times(i)),d.s=f.s=v.s,m=r(f,i,s*=2,c).minus(v).abs().comparedTo(r(d,n,s,c).minus(v).abs())<1?[f,i]:[d,n],h=l,m},o.toNumber=function(){return+k(this)},o.toPrecision=function(e,t){return null!=e&&Ls(e,1,js),w(this,e,t,2)},o.toString=function(e){var t,r=this,i=r.s,o=r.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=l||o>=u?Ds(Is(r.c),o):zs(Is(r.c),o,"0"):10===e&&y?t=zs(Is((r=S(new b(r),s+o+1,c)).c),r.e,"0"):(Ls(e,2,v.length,"Base"),t=n(zs(Is(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},o.valueOf=o.toJSON=function(){return k(this)},o._isBigNumber=!0,o[Symbol.toStringTag]="BigNumber",o[Symbol.for("nodejs.util.inspect.custom")]=o.valueOf,null!=t&&b.set(t),b}();const Us=Bs;var Fs,$s=r(7007),Hs=r.n($s),Vs=r(1808),qs=r.n(Vs);!function(e){e.TZ1="tz1",e.TZ2="tz2",e.TZ3="tz3",e.TZ4="tz4",e.KT="KT",e.KT1="KT1",e.EDSK2="edsk2",e.SPSK="spsk",e.P2SK="p2sk",e.EDPK="edpk",e.SPPK="sppk",e.P2PK="p2pk",e.BLPK="BLpk",e.EDESK="edesk",e.SPESK="spesk",e.P2ESK="p2esk",e.EDSK="edsk",e.EDSIG="edsig",e.SPSIG="spsig",e.P2SIG="p2sig",e.SIG="sig",e.NET="Net",e.NCE="nce",e.B="B",e.O="o",e.LO="Lo",e.LLO="LLo",e.P="P",e.CO="Co",e.ID="id",e.EXPR="expr",e.TZ="TZ",e.VH="vh",e.SASK="sask",e.ZET1="zet1",e.TXR1="txr1",e.TXI="txi",e.TXM="txm",e.TXC="txc",e.TXMR="txmr",e.TXRL="txM",e.TXW="txw",e.SR1="sr1",e.SRC1="src1"}(Fs||(Fs={}));const Ks={[Fs.TZ1]:new Uint8Array([6,161,159]),[Fs.TZ2]:new Uint8Array([6,161,161]),[Fs.TZ3]:new Uint8Array([6,161,164]),[Fs.TZ4]:new Uint8Array([6,161,166]),[Fs.KT]:new Uint8Array([2,90,121]),[Fs.KT1]:new Uint8Array([2,90,121]),[Fs.EDSK]:new Uint8Array([43,246,78,7]),[Fs.EDSK2]:new Uint8Array([13,15,58,7]),[Fs.SPSK]:new Uint8Array([17,162,224,201]),[Fs.P2SK]:new Uint8Array([16,81,238,189]),[Fs.EDPK]:new Uint8Array([13,15,37,217]),[Fs.SPPK]:new Uint8Array([3,254,226,86]),[Fs.P2PK]:new Uint8Array([3,178,139,127]),[Fs.BLPK]:new Uint8Array([6,149,135,204]),[Fs.EDESK]:new Uint8Array([7,90,60,179,41]),[Fs.SPESK]:new Uint8Array([9,237,241,174,150]),[Fs.P2ESK]:new Uint8Array([9,48,57,115,171]),[Fs.EDSIG]:new Uint8Array([9,245,205,134,18]),[Fs.SPSIG]:new Uint8Array([13,115,101,19,63]),[Fs.P2SIG]:new Uint8Array([54,240,44,52]),[Fs.SIG]:new Uint8Array([4,130,43]),[Fs.NET]:new Uint8Array([87,82,0]),[Fs.NCE]:new Uint8Array([69,220,169]),[Fs.B]:new Uint8Array([1,52]),[Fs.O]:new Uint8Array([5,116]),[Fs.LO]:new Uint8Array([133,233]),[Fs.LLO]:new Uint8Array([29,159,109]),[Fs.P]:new Uint8Array([2,170]),[Fs.CO]:new Uint8Array([79,179]),[Fs.ID]:new Uint8Array([153,103]),[Fs.EXPR]:new Uint8Array([13,44,64,27]),[Fs.TZ]:new Uint8Array([2,90,121]),[Fs.VH]:new Uint8Array([1,106,242]),[Fs.SASK]:new Uint8Array([11,237,20,92]),[Fs.ZET1]:new Uint8Array([18,71,40,223]),[Fs.TXR1]:new Uint8Array([1,128,120,31]),[Fs.TXI]:new Uint8Array([79,148,196]),[Fs.TXM]:new Uint8Array([79,149,30]),[Fs.TXC]:new Uint8Array([79,148,17]),[Fs.TXMR]:new Uint8Array([18,7,206,87]),[Fs.TXRL]:new Uint8Array([79,146,82]),[Fs.TXW]:new Uint8Array([79,150,72]),[Fs.SR1]:new Uint8Array([6,124,117]),[Fs.SRC1]:new Uint8Array([17,165,134,138])},Ws={[Fs.TZ1]:20,[Fs.TZ2]:20,[Fs.TZ3]:20,[Fs.TZ4]:20,[Fs.KT]:20,[Fs.KT1]:20,[Fs.EDPK]:32,[Fs.SPPK]:33,[Fs.P2PK]:33,[Fs.BLPK]:48,[Fs.EDSIG]:64,[Fs.SPSIG]:64,[Fs.P2SIG]:64,[Fs.SIG]:64,[Fs.NET]:4,[Fs.B]:32,[Fs.P]:32,[Fs.O]:32,[Fs.VH]:32,[Fs.SASK]:169,[Fs.ZET1]:43,[Fs.TXR1]:20,[Fs.TXI]:32,[Fs.TXM]:32,[Fs.TXC]:32,[Fs.TXMR]:32,[Fs.TXRL]:32,[Fs.TXW]:32,[Fs.SR1]:20,[Fs.SRC1]:32};class Gs extends rs{constructor(e,t){super(),this.value=e,this.desiredType=t,this.name="ValueConversionError",this.message=`Unable to convert ${e} to a ${t}`}}var Zs;function Ys(e){return"string"===typeof e&&e in Ks}function Xs(e,t){const r=new RegExp(`^(${t.join("|")})`).exec(e);if(!r||0===r.length)return Zs.NO_PREFIX_MATCHED;const n=r[0];if(!Ys(n))return Zs.NO_PREFIX_MATCHED;e.includes("%")&&(e=e.split("%")[0]);if(!/^(KT1\w{33})$/.test(e)&&"KT1"===n)return Zs.INVALID_CHECKSUM;let i=Xa().decodeUnsafe(e);return i?(i=i.slice(Ks[n].length),i.length!==Ws[n]?Zs.INVALID_LENGTH:Zs.VALID):Zs.INVALID_CHECKSUM}!function(e){e[e.NO_PREFIX_MATCHED=0]="NO_PREFIX_MATCHED",e[e.INVALID_CHECKSUM=1]="INVALID_CHECKSUM",e[e.INVALID_LENGTH=2]="INVALID_LENGTH",e[e.VALID=3]="VALID"}(Zs||(Zs={}));const Js=[Fs.TZ1,Fs.TZ2,Fs.TZ3,Fs.TZ4],Qs=[Fs.KT1,Fs.TXR1],ec=[Fs.EDSIG,Fs.P2SIG,Fs.SPSIG,Fs.SIG],tc=[Fs.EDPK,Fs.SPPK,Fs.P2PK,Fs.BLPK],rc=[Fs.O],nc=(Fs.P,[Fs.B]),ic=[Fs.SR1];function oc(e){return Xs(e,[...Js,...Qs,...ic])}function ac(e){return Xs(e,[Fs.NET])}function sc(e){return Xs(e,Qs)}function cc(e){return Xs(e,Js)}function lc(e){return Xs(e,ec)}function uc(e){return Xs(e,tc)}function dc(e){return Xs(e,rc)}function hc(e){switch(e){case Zs.NO_PREFIX_MATCHED:return"with unsupported prefix";case Zs.INVALID_CHECKSUM:return"failed checksum";case Zs.INVALID_LENGTH:return"with incorrect length";default:return""}}const fc=6,pc=3;function mc(e){switch(e){case"tz":return fc;case"mtz":return pc;default:return 0}}function gc(e="mutez",t="mutez",r){const n=new Us(r);return n.isNaN()?r:n.multipliedBy(Math.pow(10,mc(e))).dividedBy(Math.pow(10,mc(t)))}function vc(e,t){const r="string"===typeof e?Uint8Array.from(qa.Buffer.from(e,"hex")):e,n=new Uint8Array(t.length+r.length);return n.set(t),n.set(r,t.length),Xa().encode(qa.Buffer.from(n.buffer))}const yc=(e,t)=>Xa().decode(e).slice(t.length);function bc(e){if("00"===e.substring(0,2)){const t={"0000":Ks.tz1,"0001":Ks.tz2,"0002":Ks.tz3};return vc(e.substring(4),t[e.substring(0,4)])}return"02"===e.substring(0,2)?vc(e.substring(2,e.length-2),Ks.txr1):vc(e.substring(2,42),Ks.KT)}function wc(e){return vc(e,Ks.tz4)}function xc(e){if("0"===e[0]){const t={"00":new Uint8Array([6,161,159]),"01":new Uint8Array([6,161,161]),"02":new Uint8Array([6,161,164])};return vc(e.substring(2),t[e.substring(0,2)])}}const _c=e=>{if(e.length%2!==0)throw new cs(e,": Expecting even number of characters");const t=Ac(e);if(!t.match(/^([\da-f]{2})*$/gi))throw new cs(e,": Only characters 0-9, a-f and A-F are expected. Optionally, it can be prefixed with '0x'");const r=new Uint8Array(t.length/2);let n=0;for(let i=0;i{const r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r},kc=e=>{const t=[];return e.forEach((e=>{const r=`00${e.toString(16)}`.slice(-2);t.push(r)})),t.join("")};function Ec(e){const t=Ac(e);if(!t.match(/^(0x)?([\da-f]{2})*$/gi))throw new cs(e,": Expecting even number of characters: 0-9, a-z, A-Z, optionally prefixed with 0x");return qa.Buffer.from(t,"hex")}function Ac(e){return e.startsWith("0x")?e.slice(2):e}var Pc=r(4872).Buffer;const Tc=async(e,t)=>Oc(Pc.from(e,"utf-8"),t,6e5),Oc=async(e,t,r)=>{const n={name:"PBKDF2",salt:t,iterations:r,hash:"SHA-256"},i=await crypto.subtle.importKey("raw",e,n.name,!1,["deriveKey"]);return await crypto.subtle.deriveKey(n,i,{name:jc,length:256},!1,["encrypt","decrypt"])};var Cc=r(4872).Buffer;const jc="AES-GCM",Rc=async(e,t)=>{const r=crypto.getRandomValues(new Uint8Array(32)),n=await Tc(t,r),i=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.encrypt({name:jc,iv:i},n,Cc.from(e,"utf-8"));return{iv:kc(Cc.from(i)),salt:kc(Cc.from(r)),data:kc(Cc.from(o))}},Ic=async(e,t,r="V2")=>{const{iv:n,salt:i,data:o}=e;try{const e="V2"===r?await Tc(t,Ec(i)):await(async(e,t)=>Oc(Pc.alloc(32,e,"utf-8"),t,1e4))(t,Ec(i)),a=await crypto.subtle.decrypt({name:jc,iv:Ec(n)},e,Ec(o));return Cc.from(a).toString("utf-8")}catch(a){throw new Error("Error decrypting data: Invalid password")}},Mc=ca("accounts/changeMnemonicPassword",(async({currentPassword:e,newPassword:t},{getState:r})=>{if(e===t)throw new Error("New password must be different from the current password");const{items:n,seedPhrases:i}=r().accounts;if(0===n.filter((e=>"mnemonic"===e.type)).length)throw new Error("No mnemonic accounts found");const o=await Promise.all(Object.entries(i).map((async([r,n])=>{if(!n)throw new Error("No encrypted mnemonic found");try{const i=await Ic(n,e);return[r,await Rc(i,t)]}catch(i){throw new Error(i.message)}})));return{newEncryptedMnemonics:(0,Va.fromPairs)(o)}})),Lc={items:[],seedPhrases:{},secretKeys:{}},Nc=ra({name:"accounts",initialState:Lc,extraReducers:e=>{e.addCase(Mc.fulfilled,((e,t)=>{const{newEncryptedMnemonics:r}=t.payload;e.seedPhrases=r}))},reducers:{reset:()=>Lc,removeMnemonicAndAccounts:(e,{payload:t})=>{const{fingerPrint:r}=t,n=e.items.filter((e=>!("mnemonic"===e.type&&e.seedFingerPrint===r)));e.items=n,delete e.seedPhrases[r]},removeNonMnemonicAccounts:(e,{payload:t})=>{e.items=(0,Va.remove)(e.items,(e=>"mnemonic"===e.type||e.type!==t.accountType))},removeAccount:(e,{payload:t})=>{(0,Va.remove)(e.items,(e=>e.address.pkh===t.address.pkh))},renameAccount:(e,{payload:t})=>{const{account:r,newName:n}=t;if(0===n.length)throw new Error("Cannot rename account to an empty name.");if(e.items.find((e=>e.label===n)))throw new Error(`Cannot rename account ${r.address.pkh} to ${n} since the name already exists.`);const i=e.items.find((e=>e.address.pkh===r.address.pkh&&e.label===r.label));i&&(i.label=n)},addAccount:(e,{payload:t})=>{e.items=Dc(e.items,[t])},addMnemonicAccounts:(e,{payload:{encryptedMnemonic:t,accounts:r,seedFingerprint:n}})=>{e.items=Dc(e.items,r),e.seedPhrases[n]=t},addMockMnemonicAccounts:(e,{payload:t})=>{e.items=Dc(e.items,t)},addSecretKey:(e,{payload:{pkh:t,encryptedSecretKey:r}})=>{e.secretKeys[t]=r},removeSecretKey:(e,{payload:t})=>{delete e.secretKeys[t.address.pkh]}}}),Dc=(e,t)=>(t.forEach((t=>{if(e.some((e=>e.address.pkh===t.address.pkh)))throw new Error(`Can't add account ${t.address.pkh} in store since it already exists.`)})),[...e,...t]);Nc.actions;var zc,Bc;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(zc||(zc={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Bc||(Bc={}));const Uc=zc.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Fc=e=>{switch(typeof e){case"undefined":return Uc.undefined;case"string":return Uc.string;case"number":return isNaN(e)?Uc.nan:Uc.number;case"boolean":return Uc.boolean;case"function":return Uc.function;case"bigint":return Uc.bigint;case"symbol":return Uc.symbol;case"object":return Array.isArray(e)?Uc.array:null===e?Uc.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?Uc.promise:"undefined"!==typeof Map&&e instanceof Map?Uc.map:"undefined"!==typeof Set&&e instanceof Set?Uc.set:"undefined"!==typeof Date&&e instanceof Date?Uc.date:Uc.object;default:return Uc.unknown}},$c=zc.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Hc extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;ne.message)){const t={},r=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Hc.create=e=>new Hc(e);const Vc=(e,t)=>{let r;switch(e.code){case $c.invalid_type:r=e.received===Uc.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case $c.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,zc.jsonStringifyReplacer)}`;break;case $c.unrecognized_keys:r=`Unrecognized key(s) in object: ${zc.joinValues(e.keys,", ")}`;break;case $c.invalid_union:r="Invalid input";break;case $c.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${zc.joinValues(e.options)}`;break;case $c.invalid_enum_value:r=`Invalid enum value. Expected ${zc.joinValues(e.options)}, received '${e.received}'`;break;case $c.invalid_arguments:r="Invalid function arguments";break;case $c.invalid_return_type:r="Invalid function return type";break;case $c.invalid_date:r="Invalid date";break;case $c.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:zc.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case $c.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case $c.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case $c.custom:r="Invalid input";break;case $c.invalid_intersection_types:r="Intersection results could not be merged";break;case $c.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case $c.not_finite:r="Number must be finite";break;default:r=t.defaultError,zc.assertNever(e)}return{message:r}};let qc=Vc;function Kc(){return qc}const Wc=e=>{const{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};let s="";const c=n.filter((e=>!!e)).slice().reverse();for(const l of c)s=l(a,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}};function Gc(e,t){const r=Wc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Kc(),Vc].filter((e=>!!e))});e.common.issues.push(r)}class Zc{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return Yc;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const n of t)r.push({key:await n.key,value:await n.value});return Zc.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:i}=n;if("aborted"===t.status)return Yc;if("aborted"===i.status)return Yc;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof i.value&&!n.alwaysSet||(r[t.value]=i.value)}return{status:e.value,value:r}}}const Yc=Object.freeze({status:"aborted"}),Xc=e=>({status:"dirty",value:e}),Jc=e=>({status:"valid",value:e}),Qc=e=>"aborted"===e.status,el=e=>"dirty"===e.status,tl=e=>"valid"===e.status,rl=e=>"undefined"!==typeof Promise&&e instanceof Promise;var nl;!function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(nl||(nl={}));class il{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ol=(e,t)=>{if(tl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Hc(e.common.issues);return this._error=t,this._error}}};function al(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:"undefined"===typeof t.data?{message:null!==n&&void 0!==n?n:t.defaultError}:{message:null!==r&&void 0!==r?r:t.defaultError},description:i}}class sl{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Fc(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Fc(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Zc,ctx:{common:e.parent.common,data:e.data,parsedType:Fc(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(rl(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const n={common:{issues:[],async:null!==(r=null===t||void 0===t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Fc(e)},i=this._parseSync({data:e,path:n.path,parent:n});return ol(n,i)}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Fc(e)},n=this._parse({data:e,path:r.path,parent:r}),i=await(rl(n)?n:Promise.resolve(n));return ol(r,i)}refine(e,t){const r=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,n)=>{const i=e(t),o=()=>n.addIssue({code:$c.custom,...r(t)});return"undefined"!==typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((r,n)=>!!e(r)||(n.addIssue("function"===typeof t?t(r,n):t),!1)))}_refinement(e){return new Gl({schema:this,typeName:au.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Zl.create(this,this._def)}nullable(){return Yl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ol.create(this,this._def)}promise(){return Wl.create(this,this._def)}or(e){return Rl.create([this,e],this._def)}and(e){return Nl.create(this,e,this._def)}transform(e){return new Gl({...al(this._def),schema:this,typeName:au.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Xl({...al(this._def),innerType:this,defaultValue:t,typeName:au.ZodDefault})}brand(){return new tu({typeName:au.ZodBranded,type:this,...al(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new Jl({...al(this._def),innerType:this,catchValue:t,typeName:au.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ru.create(this,e)}readonly(){return nu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cl=/^c[^\s-]{8,}$/i,ll=/^[a-z][a-z0-9]*$/,ul=/^[0-9A-HJKMNP-TV-Z]{26}$/,dl=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,hl=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let fl;const pl=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,ml=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class gl extends sl{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==Uc.string){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.string,received:t.parsedType}),Yc}const t=new Zc;let r;for(const a of this._def.checks)if("min"===a.kind)e.data.lengtha.value&&(r=this._getOrReturnCtx(e,r),Gc(r,{code:$c.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const n=e.data.length>a.value,i=e.data.lengthe.test(t)),{validation:t,code:$c.invalid_string,...nl.errToObj(r)})}_addCheck(e){return new gl({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...nl.errToObj(e)})}url(e){return this._addCheck({kind:"url",...nl.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...nl.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...nl.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...nl.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...nl.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...nl.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...nl.errToObj(e)})}datetime(e){var t;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,...nl.errToObj(null===e||void 0===e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...nl.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...nl.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...nl.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...nl.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...nl.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...nl.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...nl.errToObj(t)})}nonempty(e){return this.min(1,nl.errToObj(e))}trim(){return new gl({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new gl({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new gl({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuen?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}gl.create=e=>{var t;return new gl({checks:[],typeName:au.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...al(e)})};class yl extends sl{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==Uc.number){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.number,received:t.parsedType}),Yc}let t;const r=new Zc;for(const n of this._def.checks)if("int"===n.kind)zc.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Gc(t,{code:$c.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),Gc(t,{code:$c.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==vl(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),Gc(t,{code:$c.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Gc(t,{code:$c.not_finite,message:n.message}),r.dirty()):zc.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,nl.toString(t))}gt(e,t){return this.setLimit("min",e,!1,nl.toString(t))}lte(e,t){return this.setLimit("max",e,!0,nl.toString(t))}lt(e,t){return this.setLimit("max",e,!1,nl.toString(t))}setLimit(e,t,r,n){return new yl({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:nl.toString(n)}]})}_addCheck(e){return new yl({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:nl.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:nl.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:nl.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:nl.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:nl.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:nl.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:nl.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:nl.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:nl.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&zc.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew yl({checks:[],typeName:au.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...al(e)});class bl extends sl{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==Uc.bigint){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.bigint,received:t.parsedType}),Yc}let t;const r=new Zc;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),Gc(t,{code:$c.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Gc(t,{code:$c.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):zc.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,nl.toString(t))}gt(e,t){return this.setLimit("min",e,!1,nl.toString(t))}lte(e,t){return this.setLimit("max",e,!0,nl.toString(t))}lt(e,t){return this.setLimit("max",e,!1,nl.toString(t))}setLimit(e,t,r,n){return new bl({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:nl.toString(n)}]})}_addCheck(e){return new bl({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:nl.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:nl.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:nl.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:nl.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:nl.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new bl({checks:[],typeName:au.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...al(e)})};class wl extends sl{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==Uc.boolean){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.boolean,received:t.parsedType}),Yc}return Jc(e.data)}}wl.create=e=>new wl({typeName:au.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...al(e)});class xl extends sl{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==Uc.date){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.date,received:t.parsedType}),Yc}if(isNaN(e.data.getTime())){return Gc(this._getOrReturnCtx(e),{code:$c.invalid_date}),Yc}const t=new Zc;let r;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(r=this._getOrReturnCtx(e,r),Gc(r,{code:$c.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):zc.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new xl({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:nl.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:nl.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew xl({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:au.ZodDate,...al(e)});class _l extends sl{_parse(e){if(this._getType(e)!==Uc.symbol){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.symbol,received:t.parsedType}),Yc}return Jc(e.data)}}_l.create=e=>new _l({typeName:au.ZodSymbol,...al(e)});class Sl extends sl{_parse(e){if(this._getType(e)!==Uc.undefined){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.undefined,received:t.parsedType}),Yc}return Jc(e.data)}}Sl.create=e=>new Sl({typeName:au.ZodUndefined,...al(e)});class kl extends sl{_parse(e){if(this._getType(e)!==Uc.null){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.null,received:t.parsedType}),Yc}return Jc(e.data)}}kl.create=e=>new kl({typeName:au.ZodNull,...al(e)});class El extends sl{constructor(){super(...arguments),this._any=!0}_parse(e){return Jc(e.data)}}El.create=e=>new El({typeName:au.ZodAny,...al(e)});class Al extends sl{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Jc(e.data)}}Al.create=e=>new Al({typeName:au.ZodUnknown,...al(e)});class Pl extends sl{_parse(e){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.never,received:t.parsedType}),Yc}}Pl.create=e=>new Pl({typeName:au.ZodNever,...al(e)});class Tl extends sl{_parse(e){if(this._getType(e)!==Uc.undefined){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.void,received:t.parsedType}),Yc}return Jc(e.data)}}Tl.create=e=>new Tl({typeName:au.ZodVoid,...al(e)});class Ol extends sl{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==Uc.array)return Gc(t,{code:$c.invalid_type,expected:Uc.array,received:t.parsedType}),Yc;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,i=t.data.lengthn.maxLength.value&&(Gc(t,{code:$c.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map(((e,r)=>n.type._parseAsync(new il(t,e,t.path,r))))).then((e=>Zc.mergeArray(r,e)));const i=[...t.data].map(((e,r)=>n.type._parseSync(new il(t,e,t.path,r))));return Zc.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new Ol({...this._def,minLength:{value:e,message:nl.toString(t)}})}max(e,t){return new Ol({...this._def,maxLength:{value:e,message:nl.toString(t)}})}length(e,t){return new Ol({...this._def,exactLength:{value:e,message:nl.toString(t)}})}nonempty(e){return this.min(1,e)}}function Cl(e){if(e instanceof jl){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=Zl.create(Cl(n))}return new jl({...e._def,shape:()=>t})}return e instanceof Ol?new Ol({...e._def,type:Cl(e.element)}):e instanceof Zl?Zl.create(Cl(e.unwrap())):e instanceof Yl?Yl.create(Cl(e.unwrap())):e instanceof Dl?Dl.create(e.items.map((e=>Cl(e)))):e}Ol.create=(e,t)=>new Ol({type:e,minLength:null,maxLength:null,exactLength:null,typeName:au.ZodArray,...al(t)});class jl extends sl{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=zc.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Uc.object){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.object,received:t.parsedType}),Yc}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Pl&&"strip"===this._def.unknownKeys))for(const s in r.data)i.includes(s)||o.push(s);const a=[];for(const s of i){const e=n[s],t=r.data[s];a.push({key:{status:"valid",value:s},value:e._parse(new il(r,t,r.path,s)),alwaysSet:s in r.data})}if(this._def.catchall instanceof Pl){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of o)a.push({key:{status:"valid",value:t},value:{status:"valid",value:r.data[t]}});else if("strict"===e)o.length>0&&(Gc(r,{code:$c.unrecognized_keys,keys:o}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of o){const n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new il(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>Zc.mergeObjectSync(t,e))):Zc.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return nl.errToObj,new jl({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,o,a;const s=null!==(o=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=nl.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new jl({...this._def,unknownKeys:"strip"})}passthrough(){return new jl({...this._def,unknownKeys:"passthrough"})}extend(e){return new jl({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new jl({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:au.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new jl({...this._def,catchall:e})}pick(e){const t={};return zc.objectKeys(e).forEach((r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])})),new jl({...this._def,shape:()=>t})}omit(e){const t={};return zc.objectKeys(this.shape).forEach((r=>{e[r]||(t[r]=this.shape[r])})),new jl({...this._def,shape:()=>t})}deepPartial(){return Cl(this)}partial(e){const t={};return zc.objectKeys(this.shape).forEach((r=>{const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()})),new jl({...this._def,shape:()=>t})}required(e){const t={};return zc.objectKeys(this.shape).forEach((r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof Zl;)e=e._def.innerType;t[r]=e}})),new jl({...this._def,shape:()=>t})}keyof(){return Vl(zc.objectKeys(this.shape))}}jl.create=(e,t)=>new jl({shape:()=>e,unknownKeys:"strip",catchall:Pl.create(),typeName:au.ZodObject,...al(t)}),jl.strictCreate=(e,t)=>new jl({shape:()=>e,unknownKeys:"strict",catchall:Pl.create(),typeName:au.ZodObject,...al(t)}),jl.lazycreate=(e,t)=>new jl({shape:e,unknownKeys:"strip",catchall:Pl.create(),typeName:au.ZodObject,...al(t)});class Rl extends sl{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map((async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const r=e.map((e=>new Hc(e.ctx.common.issues)));return Gc(t,{code:$c.invalid_union,unionErrors:r}),Yc}));{let e;const n=[];for(const o of r){const r={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=n.map((e=>new Hc(e)));return Gc(t,{code:$c.invalid_union,unionErrors:i}),Yc}}get options(){return this._def.options}}Rl.create=(e,t)=>new Rl({options:e,typeName:au.ZodUnion,...al(t)});const Il=e=>e instanceof $l?Il(e.schema):e instanceof Gl?Il(e.innerType()):e instanceof Hl?[e.value]:e instanceof ql?e.options:e instanceof Kl?Object.keys(e.enum):e instanceof Xl?Il(e._def.innerType):e instanceof Sl?[void 0]:e instanceof kl?[null]:null;class Ml extends sl{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Uc.object)return Gc(t,{code:$c.invalid_type,expected:Uc.object,received:t.parsedType}),Yc;const r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(Gc(t,{code:$c.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Yc)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const n=new Map;for(const i of t){const t=Il(i.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(n.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);n.set(r,i)}}return new Ml({typeName:au.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...al(r)})}}function Ll(e,t){const r=Fc(e),n=Fc(t);if(e===t)return{valid:!0,data:e};if(r===Uc.object&&n===Uc.object){const r=zc.objectKeys(t),n=zc.objectKeys(e).filter((e=>-1!==r.indexOf(e))),i={...e,...t};for(const o of n){const r=Ll(e[o],t[o]);if(!r.valid)return{valid:!1};i[o]=r.data}return{valid:!0,data:i}}if(r===Uc.array&&n===Uc.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let n=0;n{if(Qc(e)||Qc(n))return Yc;const i=Ll(e.value,n.value);return i.valid?((el(e)||el(n))&&t.dirty(),{status:t.value,value:i.data}):(Gc(r,{code:$c.invalid_intersection_types}),Yc)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Nl.create=(e,t,r)=>new Nl({left:e,right:t,typeName:au.ZodIntersection,...al(r)});class Dl extends sl{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Uc.array)return Gc(r,{code:$c.invalid_type,expected:Uc.array,received:r.parsedType}),Yc;if(r.data.lengththis._def.items.length&&(Gc(r,{code:$c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map(((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new il(r,e,r.path,t)):null})).filter((e=>!!e));return r.common.async?Promise.all(n).then((e=>Zc.mergeArray(t,e))):Zc.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Dl({...this._def,rest:e})}}Dl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Dl({items:e,typeName:au.ZodTuple,rest:null,...al(t)})};class zl extends sl{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Uc.object)return Gc(r,{code:$c.invalid_type,expected:Uc.object,received:r.parsedType}),Yc;const n=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)n.push({key:i._parse(new il(r,a,r.path,a)),value:o._parse(new il(r,r.data[a],r.path,a))});return r.common.async?Zc.mergeObjectAsync(t,n):Zc.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new zl(t instanceof sl?{keyType:e,valueType:t,typeName:au.ZodRecord,...al(r)}:{keyType:gl.create(),valueType:e,typeName:au.ZodRecord,...al(t)})}}class Bl extends sl{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Uc.map)return Gc(r,{code:$c.invalid_type,expected:Uc.map,received:r.parsedType}),Yc;const n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map((([e,t],o)=>({key:n._parse(new il(r,e,r.path,[o,"key"])),value:i._parse(new il(r,t,r.path,[o,"value"]))})));if(r.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const r of o){const n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return Yc;"dirty"!==n.status&&"dirty"!==i.status||t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const r of o){const n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return Yc;"dirty"!==n.status&&"dirty"!==i.status||t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}Bl.create=(e,t,r)=>new Bl({valueType:t,keyType:e,typeName:au.ZodMap,...al(r)});class Ul extends sl{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Uc.set)return Gc(r,{code:$c.invalid_type,expected:Uc.set,received:r.parsedType}),Yc;const n=this._def;null!==n.minSize&&r.data.sizen.maxSize.value&&(Gc(r,{code:$c.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const i=this._def.valueType;function o(e){const r=new Set;for(const n of e){if("aborted"===n.status)return Yc;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const a=[...r.data.values()].map(((e,t)=>i._parse(new il(r,e,r.path,t))));return r.common.async?Promise.all(a).then((e=>o(e))):o(a)}min(e,t){return new Ul({...this._def,minSize:{value:e,message:nl.toString(t)}})}max(e,t){return new Ul({...this._def,maxSize:{value:e,message:nl.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ul.create=(e,t)=>new Ul({valueType:e,minSize:null,maxSize:null,typeName:au.ZodSet,...al(t)});class Fl extends sl{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Uc.function)return Gc(t,{code:$c.invalid_type,expected:Uc.function,received:t.parsedType}),Yc;function r(e,r){return Wc({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Kc(),Vc].filter((e=>!!e)),issueData:{code:$c.invalid_arguments,argumentsError:r}})}function n(e,r){return Wc({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Kc(),Vc].filter((e=>!!e)),issueData:{code:$c.invalid_return_type,returnTypeError:r}})}const i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Wl){const e=this;return Jc((async function(...t){const a=new Hc([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw a.addIssue(r(t,e)),a})),c=await Reflect.apply(o,this,s),l=await e._def.returns._def.type.parseAsync(c,i).catch((e=>{throw a.addIssue(n(c,e)),a}));return l}))}{const e=this;return Jc((function(...t){const a=e._def.args.safeParse(t,i);if(!a.success)throw new Hc([r(t,a.error)]);const s=Reflect.apply(o,this,a.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new Hc([n(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Fl({...this._def,args:Dl.create(e).rest(Al.create())})}returns(e){return new Fl({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new Fl({args:e||Dl.create([]).rest(Al.create()),returns:t||Al.create(),typeName:au.ZodFunction,...al(r)})}}class $l extends sl{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}$l.create=(e,t)=>new $l({getter:e,typeName:au.ZodLazy,...al(t)});class Hl extends sl{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Gc(t,{received:t.data,code:$c.invalid_literal,expected:this._def.value}),Yc}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Vl(e,t){return new ql({values:e,typeName:au.ZodEnum,...al(t)})}Hl.create=(e,t)=>new Hl({value:e,typeName:au.ZodLiteral,...al(t)});class ql extends sl{_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return Gc(t,{expected:zc.joinValues(r),received:t.parsedType,code:$c.invalid_type}),Yc}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return Gc(t,{received:t.data,code:$c.invalid_enum_value,options:r}),Yc}return Jc(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return ql.create(e)}exclude(e){return ql.create(this.options.filter((t=>!e.includes(t))))}}ql.create=Vl;class Kl extends sl{_parse(e){const t=zc.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Uc.string&&r.parsedType!==Uc.number){const e=zc.objectValues(t);return Gc(r,{expected:zc.joinValues(e),received:r.parsedType,code:$c.invalid_type}),Yc}if(-1===t.indexOf(e.data)){const e=zc.objectValues(t);return Gc(r,{received:r.data,code:$c.invalid_enum_value,options:e}),Yc}return Jc(e.data)}get enum(){return this._def.values}}Kl.create=(e,t)=>new Kl({values:e,typeName:au.ZodNativeEnum,...al(t)});class Wl extends sl{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Uc.promise&&!1===t.common.async)return Gc(t,{code:$c.invalid_type,expected:Uc.promise,received:t.parsedType}),Yc;const r=t.parsedType===Uc.promise?t.data:Promise.resolve(t.data);return Jc(r.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Wl.create=(e,t)=>new Wl({type:e,typeName:au.ZodPromise,...al(t)});class Gl extends sl{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===au.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{Gc(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){const e=n.transform(r.data,i);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r}))):this._def.schema._parseSync({data:e,path:r.path,parent:r})}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?Yc:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?Yc:("dirty"===r.status&&t.dirty(),e(r.value).then((()=>({status:t.value,value:r.value}))))))}if("transform"===n.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!tl(e))return e;const o=n.transform(e.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((e=>tl(e)?Promise.resolve(n.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}zc.assertNever(n)}}Gl.create=(e,t,r)=>new Gl({schema:e,typeName:au.ZodEffects,effect:t,...al(r)}),Gl.createWithPreprocess=(e,t,r)=>new Gl({schema:t,effect:{type:"preprocess",transform:e},typeName:au.ZodEffects,...al(r)});class Zl extends sl{_parse(e){return this._getType(e)===Uc.undefined?Jc(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Zl.create=(e,t)=>new Zl({innerType:e,typeName:au.ZodOptional,...al(t)});class Yl extends sl{_parse(e){return this._getType(e)===Uc.null?Jc(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Yl.create=(e,t)=>new Yl({innerType:e,typeName:au.ZodNullable,...al(t)});class Xl extends sl{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===Uc.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Xl.create=(e,t)=>new Xl({innerType:e,typeName:au.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...al(t)});class Jl extends sl{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return rl(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Hc(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new Hc(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Jl.create=(e,t)=>new Jl({innerType:e,typeName:au.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...al(t)});class Ql extends sl{_parse(e){if(this._getType(e)!==Uc.nan){const t=this._getOrReturnCtx(e);return Gc(t,{code:$c.invalid_type,expected:Uc.nan,received:t.parsedType}),Yc}return{status:"valid",value:e.data}}}Ql.create=e=>new Ql({typeName:au.ZodNaN,...al(e)});const eu=Symbol("zod_brand");class tu extends sl{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ru extends sl{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Yc:"dirty"===e.status?(t.dirty(),Xc(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?Yc:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ru({in:e,out:t,typeName:au.ZodPipeline})}}class nu extends sl{_parse(e){const t=this._def.innerType._parse(e);return tl(t)&&(t.value=Object.freeze(t.value)),t}}nu.create=(e,t)=>new nu({innerType:e,typeName:au.ZodReadonly,...al(t)});const iu=(e,t={},r)=>e?El.create().superRefine(((n,i)=>{var o,a;if(!e(n)){const e="function"===typeof t?t(n):"string"===typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===a||a,c="string"===typeof e?{message:e}:e;i.addIssue({code:"custom",...c,fatal:s})}})):El.create(),ou={object:jl.lazycreate};var au;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(au||(au={}));const su=gl.create,cu=yl.create,lu=Ql.create,uu=bl.create,du=wl.create,hu=xl.create,fu=_l.create,pu=Sl.create,mu=kl.create,gu=El.create,vu=Al.create,yu=Pl.create,bu=Tl.create,wu=Ol.create,xu=jl.create,_u=jl.strictCreate,Su=Rl.create,ku=Ml.create,Eu=Nl.create,Au=Dl.create,Pu=zl.create,Tu=Bl.create,Ou=Ul.create,Cu=Fl.create,ju=$l.create,Ru=Hl.create,Iu=ql.create,Mu=Kl.create,Lu=Wl.create,Nu=Gl.create,Du=Zl.create,zu=Yl.create,Bu=Gl.createWithPreprocess,Uu=ru.create,Fu={string:e=>gl.create({...e,coerce:!0}),number:e=>yl.create({...e,coerce:!0}),boolean:e=>wl.create({...e,coerce:!0}),bigint:e=>bl.create({...e,coerce:!0}),date:e=>xl.create({...e,coerce:!0})},$u=Yc;var Hu=Object.freeze({__proto__:null,defaultErrorMap:Vc,setErrorMap:function(e){qc=e},getErrorMap:Kc,makeIssue:Wc,EMPTY_PATH:[],addIssueToContext:Gc,ParseStatus:Zc,INVALID:Yc,DIRTY:Xc,OK:Jc,isAborted:Qc,isDirty:el,isValid:tl,isAsync:rl,get util(){return zc},get objectUtil(){return Bc},ZodParsedType:Uc,getParsedType:Fc,ZodType:sl,ZodString:gl,ZodNumber:yl,ZodBigInt:bl,ZodBoolean:wl,ZodDate:xl,ZodSymbol:_l,ZodUndefined:Sl,ZodNull:kl,ZodAny:El,ZodUnknown:Al,ZodNever:Pl,ZodVoid:Tl,ZodArray:Ol,ZodObject:jl,ZodUnion:Rl,ZodDiscriminatedUnion:Ml,ZodIntersection:Nl,ZodTuple:Dl,ZodRecord:zl,ZodMap:Bl,ZodSet:Ul,ZodFunction:Fl,ZodLazy:$l,ZodLiteral:Hl,ZodEnum:ql,ZodNativeEnum:Kl,ZodPromise:Wl,ZodEffects:Gl,ZodTransformer:Gl,ZodOptional:Zl,ZodNullable:Yl,ZodDefault:Xl,ZodCatch:Jl,ZodNaN:Ql,BRAND:eu,ZodBranded:tu,ZodPipeline:ru,ZodReadonly:nu,custom:iu,Schema:sl,ZodSchema:sl,late:ou,get ZodFirstPartyTypeKind(){return au},coerce:Fu,any:gu,array:wu,bigint:uu,boolean:du,date:hu,discriminatedUnion:ku,effect:Nu,enum:Iu,function:Cu,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>iu((t=>t instanceof e),t),intersection:Eu,lazy:ju,literal:Ru,map:Tu,nan:lu,nativeEnum:Mu,never:yu,null:mu,nullable:zu,number:cu,object:xu,oboolean:()=>du().optional(),onumber:()=>cu().optional(),optional:Du,ostring:()=>su().optional(),pipeline:Uu,preprocess:Bu,promise:Lu,record:Pu,set:Ou,strictObject:_u,string:su,symbol:fu,transformer:Nu,tuple:Au,undefined:pu,union:Su,unknown:vu,void:bu,NEVER:$u,ZodIssueCode:$c,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:Hc});const Vu=Hu.object({address:Hu.string()}),qu=e=>{if(Wu(e))return Zu(e);if(Gu(e))return Yu(e);throw new Error(`Cannot parse address type: ${e}`)},Ku=e=>oc(e)===Zs.VALID,Wu=e=>Ku(e)&&e.match(/^KT1\w+/),Gu=e=>Ku(e)&&e.match(/^tz[1234]\w+/),Zu=e=>{if(Wu(e))return{type:"contract",pkh:e};throw new Error(`Invalid contract address: ${e}`)},Yu=e=>{if(Gu(e))return{type:"implicit",pkh:e};throw new Error(`Invalid implicit address: ${e}`)},Xu=Hu.object({standard:Hu.string().regex(/^fa1\.2$/i),contract:Vu}),Ju=Hu.object({standard:Hu.string().regex(/^fa2$/i),tokenId:Hu.string(),contract:Vu}),Qu=Hu.object({id:Hu.number(),standard:Hu.string().regex(/^fa2$/i),tokenId:Hu.string(),contract:Vu,totalSupply:Hu.string().optional(),metadata:Hu.object({displayUri:Hu.string(),decimals:Hu.void().or(Hu.string().regex(/^0$/))})}),ed=e=>{const t=e.metadata;if("fa1.2"===e.standard){const r=Xu.safeParse(e);return r.success?{type:"fa1.2",metadata:t,contract:r.data.contract.address,tokenId:"0"}:(console.warn("Invalid FA1 token: "+JSON.stringify(e)),null)}const r=Qu.safeParse(e);if(r.success)return{metadata:t,type:"nft",id:r.data.id,contract:r.data.contract.address,tokenId:r.data.tokenId,displayUri:r.data.metadata.displayUri,totalSupply:r.data.totalSupply};const n=Ju.safeParse(e);return n.success?{type:"fa2",metadata:t,contract:n.data.contract.address,tokenId:n.data.tokenId}:(console.warn("Invalid FA2 token: "+JSON.stringify(e)),null)},td=e=>`${e.contract}:${e.tokenId}`,rd=e=>nd(e)||(e=>{switch(e.type){case"fa1.2":return md;case"fa2":return gd;case"nft":return vd}})(e),nd=e=>{var t;return null===(t=e.metadata)||void 0===t?void 0:t.name},id=e=>od(e)||(e=>{switch(e.type){case"fa1.2":return yd;case"fa2":return bd;case"nft":return wd}})(e),od=e=>{var t;return null===(t=e.metadata)||void 0===t?void 0:t.symbol},ad=e=>{var t,r;return null!==(t=null===(r=e.metadata)||void 0===r?void 0:r.decimals)&&void 0!==t?t:xd},sd=(e,t)=>{const r=new Us(t),n=ad(e);return r.multipliedBy(new Us(10).exponentiatedBy(n)).toFixed()},cd=(e,t=xd)=>{const r=Us(e).dividedBy(Us(10).pow(t));try{return new Intl.NumberFormat("en-US",{minimumFractionDigits:Number(t),maximumFractionDigits:Number(t)}).format(r.toNumber())}catch(n){return console.warn(`Can't format token amount with decimals = ${t}`),cd(e,"0")}},ld=(e,t,r)=>{var n;if("nft"===t.type)return e;const i=id(t),o=null===(n=t.metadata)||void 0===n?void 0:n.decimals,a=null!==r&&void 0!==r&&r.showSymbol?` ${i}`:"";return`${cd(e,o)}${a}`},ud=e=>e.metadata.artifactUri||e.displayUri,dd=e=>e.metadata.thumbnailUri||e.displayUri,hd=e=>{var t,r;return null===(t=e.metadata.formats)||void 0===t||null===(r=t.find((t=>t.uri===ud(e))))||void 0===r?void 0:r.mimeType},fd=(e,t)=>`${pd(e,t)}/metadata`,pd=({contract:e,tokenId:t},r)=>`${r.tzktExplorerUrl}/${e}/tokens/${t}`,md="FA1.2 token",gd="FA2 token",vd="NFT",yd="FA1.2",bd="FA2",wd="NFT",xd="0",_d=e=>{const t=ed(e.token);return t&&e.balance?{balance:e.balance,lastLevel:e.lastLevel,...t}:null},Sd={blockLevel:null,balances:{mutez:{},tokens:{}},transfers:{tez:{},tokens:{}},delegationLevels:{},bakers:[],conversionRate:null,refetchTrigger:0,isLoading:!1,lastTimeUpdated:null},kd=ra({name:"assets",initialState:Sd,extraReducers:e=>e.addCase(Nc.actions.reset,(()=>Sd)),reducers:{reset:()=>Sd,updateBlockLevel:(e,{payload:t})=>{e.blockLevel=t},updateTokenTransfers:(e,{payload:t})=>{t.forEach((t=>{e.transfers.tokens[t.transactionId]=t}))},updateTezBalance:(e,{payload:t})=>{e.balances.mutez=t.reduce(((e,t)=>({...e,[t.address]:String(t.balance)})),{}),e.delegationLevels=t.reduce(((e,t)=>({...e,[t.address]:t.delegationLevel})),{})},updateTokenBalance:(e,{payload:t})=>{const r=(0,Va.groupBy)(t,(e=>e.account.address));e.balances.tokens=(0,Va.mapValues)(r,(e=>(0,Va.compact)(e.map(_d)).map((({balance:e,contract:t,tokenId:r,lastLevel:n})=>({balance:e,contract:t,tokenId:r,lastLevel:n})))))},updateBakers:(e,{payload:t})=>{e.bakers=t},updateConversionRate:(e,{payload:{rate:t}})=>{e.conversionRate=t},refetch:e=>{e.refetchTrigger+=1},setIsLoading:(e,{payload:t})=>{e.isLoading=t},setLastTimeUpdated:(e,{payload:t})=>{e.lastTimeUpdated=t}}}),Ed=kd.actions,Ad={name:"mainnet",rpcUrl:"https://prod.tcinfra.net/rpc/mainnet/",tzktApiUrl:"https://api.mainnet.tzkt.io",tzktExplorerUrl:"https://tzkt.io",buyTezUrl:"https://widget.wert.io"},Pd=e=>Td.map((e=>e.name)).includes(e.name),Td=[Ad,{name:"ghostnet",rpcUrl:"https://ghostnet.ecadinfra.com",tzktApiUrl:"https://api.ghostnet.tzkt.io",tzktExplorerUrl:"https://ghostnet.tzkt.io",buyTezUrl:"https://faucet.ghostnet.teztnets.xyz/"}],Od=(0,Va.fromPairs)(Td.map((e=>[e.name,[]]))),Cd=ra({name:"batches",initialState:Od,reducers:{reset:()=>Od,add:(e,{payload:{operations:t,network:r}})=>{r.name in e||(e[r.name]=[]);const n=e[r.name],i=n.find((e=>e.sender.address.pkh===t.sender.address.pkh));i?i.operations.push(...t.operations):n.push(t)},clear:(e,{payload:{pkh:t,network:r}})=>{const n=e[r.name]||[],i=(0,Va.findIndex)(n,(e=>e.sender.address.pkh===t));-1!==i&&n.splice(i,1)},removeItem:(e,{payload:{pkh:t,index:r,network:n}})=>{const i=e[n.name]||[],o=(0,Va.findIndex)(i,(e=>e.sender.address.pkh===t));if(-1===o)return;const a=i[o];rRd,addConnection:(e,{payload:t})=>{e[t.dAppId]={accountPkh:t.accountPkh,networkType:t.networkType}},removeConnection:(e,{payload:t})=>{delete e[t.dAppId]}}}),Md=(Id.actions,(e,t)=>Object.values(e).map((e=>e.name)).includes(t)),Ld={},Nd=ra({name:"contacts",initialState:Ld,reducers:{reset:()=>Ld,upsert:(e,{payload:t})=>{Md(e,t.name)||(e[t.pkh]=t)},remove:(e,{payload:t})=>{delete e[t]}}}),Dd=Nd.actions,zd=[],Bd=ra({name:"errors",initialState:zd,reducers:{reset:()=>zd,add(e,{payload:t}){100===e.length&&e.shift(),e.push(t)}}}),Ud={items:[],pendingOperations:{},labelsMap:{}},Fd=ra({name:"multisigs",initialState:Ud,reducers:{reset:()=>Ud,setMultisigs:(e,{payload:t})=>{const r=(0,Va.fromPairs)(e.items.map((e=>[e.address.pkh,e.label])));e.items=t.map(((t,n)=>({...t,label:r[t.address.pkh]||e.labelsMap[t.address.pkh]||`Multisig Account ${n}`,type:"multisig"})))},addMultisigLabel:(e,{payload:{pkh:t,label:r}})=>{e.labelsMap[t]=r},setPendingOperations:(e,{payload:t})=>{e.pendingOperations=(0,Va.groupBy)(t,(e=>e.bigmapId))},setName:(e,{payload:t})=>{const{account:{address:{pkh:r}},newName:n}=t,i=e.items.find((e=>e.address.pkh===r));i&&(i.label=n)}}}),$d=Fd.actions,Hd={available:Td,current:Ad},Vd=ra({name:"networks",initialState:Hd,reducers:{reset:()=>Hd,setCurrent:(e,{payload:t})=>{e.current=t},upsertNetwork:(e,{payload:t})=>{if(Pd(t))return;const r=e.available.findIndex((e=>e.name===t.name));e.current.name===t.name&&(e.current=t),-1===r?e.available.push(t):e.available[r]=t},removeNetwork:(e,{payload:t})=>{Pd(t)||(0,Va.remove)(e.available,(e=>e.name===t.name))}}}),qd=Vd.actions,Kd=(0,Va.fromPairs)(Td.map((e=>[e.name,{}]))),Wd=ra({name:"tokens",initialState:Kd,reducers:{reset:()=>Kd,addTokens:(e,{payload:{network:t,tokens:r}})=>{(0,Va.compact)(r.map(ed)).forEach((r=>{(0,Va.setWith)(e,[t.name,r.contract,r.tokenId],r,Object)}))}}}),Gd=Wd.actions,Zd={key:"root",version:1,storage:Ua.Z,blacklist:["accounts"],migrate:function(e,t){return(t||{}).debug,function(t,r){if(!t)return Promise.resolve(void 0);var n=t._persist&&void 0!==t._persist.version?t._persist.version:-1;if(n===r)return Promise.resolve(t);if(n>r)return Promise.resolve(t);var i=Object.keys(e).map((function(e){return parseInt(e)})).filter((function(e){return r>=e&&e>n})).sort((function(e,t){return e-t}));try{var o=i.reduce((function(t,r){return e[r](t)}),t);return Promise.resolve(o)}catch(a){return Promise.reject(a)}}}(Ha,{debug:!1})},Yd=Oo({accounts:Ia({key:"accounts",version:1,storage:Ua.Z},Nc.reducer),announcement:$a.reducer,assets:kd.reducer,batches:Cd.reducer,beacon:Id.reducer,contacts:Nd.reducer,errors:Bd.reducer,multisigs:Fd.reducer,networks:Vd.reducer,tokens:Wd.reducer}),Xd=function(e){var t,r=ea(),n=e||{},i=n.reducer,o=void 0===i?void 0:i,a=n.middleware,s=void 0===a?r():a,c=n.devTools,l=void 0===c||c,u=n.preloadedState,d=void 0===u?void 0:u,h=n.enhancers,f=void 0===h?void 0:h;if("function"===typeof o)t=o;else{if(!Zo(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Oo(o)}var p=s;"function"===typeof p&&(p=p(r));var m=jo.apply(void 0,p),g=Co;l&&(g=Go(qo({trace:!1},"object"===typeof l&&l)));var v=new Jo(m),y=v;return Array.isArray(f)?y=Do([m],f):"function"===typeof f&&(y=f(v)),To(t,d,g.apply(void 0,y))}({reducer:Ia(Zd,Yd),middleware:e=>e({serializableCheck:{ignoredActions:[pa,ma,ga,va,ya,ba]}})}),Jd=e=>(0,un.jsx)(ui,{store:Xd,children:e.children});var Qd=String.raw,eh=Qd` :root, :host { @@ -278,5 +278,5 @@ } ${eh} - `}),[nh,ih]=En({strict:!1,name:"PortalManagerContext"});function oh(e){const{children:t,zIndex:r}=e;return(0,un.jsx)(nh,{value:{zIndex:r},children:t})}function ah(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=(0,n.createContext)(void 0);return o.displayName=i,[o.Provider,function e(){var i;const a=(0,n.useContext)(o);if(!a&&t){const t=new Error(r);throw t.name="ContextError",null==(i=Error.captureStackTrace)||i.call(Error,t,e),t}return a},o]}function sh(e){const{cssVarsRoot:t,theme:r,children:i}=e,o=(0,n.useMemo)((()=>Je(r)),[r]);return(0,un.jsxs)(Zr,{theme:o,children:[(0,un.jsx)(ch,{root:t}),i]})}function ch({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,un.jsx)(On,{styles:e=>({[t]:e.__cssVars})})}oh.displayName="PortalManager";var[lh,uh]=ah({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function dh(){const{colorMode:e}=vt();return(0,un.jsx)(On,{styles:t=>{const r=xt(yt(t,"styles.global"),{theme:t,colorMode:e});if(!r)return;return ct(r)(t)}})}var hh={light:"chakra-ui-light",dark:"chakra-ui-dark"};var fh="chakra-ui-color-mode";var ph,mh=(ph=fh,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(ph)||e}catch(r){}return t||e},set(e){try{localStorage.setItem(ph,e)}catch(t){}}});function gh(e,t){const r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return null==r?void 0:r[2]}function vh(e,t){return{ssr:!!t,type:"cookie",get:r=>t?gh(t,e):(null==globalThis?void 0:globalThis.document)&&gh(document.cookie,e)||r,set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}vh(fh);var yh=Boolean(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect,bh=()=>{};function wh(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function xh(e){const{value:t,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:s=mh}=e,c="dark"===o?"dark":"light",[l,u]=(0,n.useState)((()=>wh(s,c))),[d,h]=(0,n.useState)((()=>wh(s))),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:g}=(0,n.useMemo)((()=>function(e={}){const{preventTransition:t=!0}=e,r={setDataset:e=>{const n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?hh.dark:hh.light),document.body.classList.remove(e?hh.light:hh.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"===typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"===typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(e)}))}))}}};return r}({preventTransition:a})),[a]),v="system"!==o||l?l:d,y=(0,n.useCallback)((e=>{const t="system"===e?f():e;u(t),p("dark"===t),m(t),s.set(t)}),[s,f,p,m]);yh((()=>{"system"===o&&h(f())}),[]),(0,n.useEffect)((()=>{const e=s.get();y(e||("system"!==o?c:"system"))}),[s,c,o,y]);const b=(0,n.useCallback)((()=>{y("dark"===v?"light":"dark")}),[v,y]);(0,n.useEffect)((()=>{if(i)return g(y)}),[i,g,y]);const w=(0,n.useMemo)((()=>({colorMode:null!=t?t:v,toggleColorMode:t?bh:b,setColorMode:t?bh:y,forced:void 0!==t})),[v,b,y,t]);return(0,un.jsx)(gt.Provider,{value:w,children:r})}xh.displayName="ColorModeProvider";var _h=(0,n.createContext)({getDocument:()=>document,getWindow:()=>window});function Sh(e){const{children:t,environment:r,disabled:i}=e,o=(0,n.useRef)(null),a=(0,n.useMemo)((()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument.defaultView)?t:window}}),[r]),s=!i||!r;return(0,un.jsxs)(_h.Provider,{value:a,children:[t,s&&(0,un.jsx)("span",{id:"__chakra_env",hidden:!0,ref:o})]})}_h.displayName="EnvironmentContext",Sh.displayName="EnvironmentProvider";var kh=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:c,disableEnvironment:l,disableGlobalStyle:u}=e,d=(0,un.jsx)(Sh,{environment:s,disabled:l,children:t});return(0,un.jsx)(sh,{theme:a,cssVarsRoot:c,children:(0,un.jsxs)(xh,{colorModeManager:r,options:a.config,children:[o?(0,un.jsx)(rh,{scope:i}):(0,un.jsx)(th,{}),!u&&(0,un.jsx)(dh,{}),n?(0,un.jsx)(oh,{zIndex:n,children:d}):d]})})},Eh={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},Ah={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},Ph={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Th={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Oh={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Ch={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},jh={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},Rh={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Ih={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Mh={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Lh={...Mh,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},Nh={breakpoints:Th,zIndices:Ah,radii:Ch,blur:Rh,colors:Oh,...Ih,sizes:Lh,shadows:jh,space:Mh,borders:Ph,transition:Eh},{defineMultiStyleConfig:Dh,definePartsStyle:zh}=lt(["stepper","step","title","description","indicator","separator","icon","number"]),Bh=Ee("stepper-indicator-size"),Uh=Ee("stepper-icon-size"),Fh=Ee("stepper-title-font-size"),$h=Ee("stepper-description-font-size"),Hh=Ee("stepper-accent-color"),Vh=zh((({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Hh.variable]:`colors.${e}.500`,_dark:{[Hh.variable]:`colors.${e}.200`}},title:{fontSize:Fh.reference,fontWeight:"medium"},description:{fontSize:$h.reference,color:"chakra-subtle-text"},number:{fontSize:Fh.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Uh.reference,height:Uh.reference},indicator:{flexShrink:0,borderRadius:"full",width:Bh.reference,height:Bh.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Hh.reference},"&[data-status=complete]":{bg:Hh.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Hh.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Bh.reference} - 8px)`,top:`calc(${Bh.reference} + 4px)`,insetStart:`calc(${Bh.reference} / 2 - 1px)`}}}))),qh=Dh({baseStyle:Vh,sizes:{xs:zh({stepper:{[Bh.variable]:"sizes.4",[Uh.variable]:"sizes.3",[Fh.variable]:"fontSizes.xs",[$h.variable]:"fontSizes.xs"}}),sm:zh({stepper:{[Bh.variable]:"sizes.6",[Uh.variable]:"sizes.4",[Fh.variable]:"fontSizes.sm",[$h.variable]:"fontSizes.xs"}}),md:zh({stepper:{[Bh.variable]:"sizes.8",[Uh.variable]:"sizes.5",[Fh.variable]:"fontSizes.md",[$h.variable]:"fontSizes.sm"}}),lg:zh({stepper:{[Bh.variable]:"sizes.10",[Uh.variable]:"sizes.6",[Fh.variable]:"fontSizes.lg",[$h.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Kh(e,t={}){let r=!1;function n(t){const r=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...i){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const e of i)t[e]=n(e);return Kh(e,t)},toPart:n,extend:function(...r){for(const e of r)e in t||(t[e]=n(e));return Kh(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])));return e},get keys(){return Object.keys(t)},__type:{}}}var Wh=Kh("accordion").parts("root","container","button","panel").extend("icon"),Gh=Kh("alert").parts("title","description","container").extend("icon","spinner"),Zh=Kh("avatar").parts("label","badge","container").extend("excessLabel","group"),Yh=Kh("breadcrumb").parts("link","item","container").extend("separator"),Xh=(Kh("button").parts(),Kh("checkbox").parts("control","icon","container").extend("label")),Jh=(Kh("progress").parts("track","filledTrack").extend("label"),Kh("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),Qh=Kh("editable").parts("preview","input","textarea"),ef=Kh("form").parts("container","requiredIndicator","helperText"),tf=Kh("formError").parts("text","icon"),rf=Kh("input").parts("addon","field","element","group"),nf=Kh("list").parts("container","item","icon"),of=Kh("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),af=Kh("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),sf=Kh("numberinput").parts("root","field","stepperGroup","stepper"),cf=(Kh("pininput").parts("field"),Kh("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),lf=Kh("progress").parts("label","filledTrack","track"),uf=Kh("radio").parts("container","control","label"),df=Kh("select").parts("field","icon"),hf=Kh("slider").parts("container","track","thumb","filledTrack","mark"),ff=Kh("stat").parts("container","label","helpText","number","icon"),pf=Kh("switch").parts("container","track","thumb","label"),mf=Kh("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),gf=Kh("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),vf=Kh("tag").parts("container","label","closeButton"),yf=Kh("card").parts("container","header","body","footer");Kh("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function bf(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function wf(e,t){return`var(${bf(e)}${t?`, ${t}`:""})`}function xf(e,t=""){return`--${function(e,t=""){return[t,bf(e)].filter(Boolean).join("-")}(e,t)}`}function _f(e,t){const r=xf(e,null==t?void 0:t.prefix);return{variable:r,reference:wf(r,Sf(null==t?void 0:t.fallback))}}function Sf(e){return"string"===typeof e?e:null==e?void 0:e.reference}function kf(e){return y(e)&&e.reference?e.reference:String(e)}var Ef=(e,...t)=>t.map(kf).join(` ${e} `).replace(/calc/g,""),Af=(...e)=>`calc(${Ef("+",...e)})`,Pf=(...e)=>`calc(${Ef("-",...e)})`,Tf=(...e)=>`calc(${Ef("*",...e)})`,Of=(...e)=>`calc(${Ef("/",...e)})`,Cf=e=>{const t=kf(e);return null==t||Number.isNaN(parseFloat(t))?Tf(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},jf=Object.assign((e=>({add:(...t)=>jf(Af(e,...t)),subtract:(...t)=>jf(Pf(e,...t)),multiply:(...t)=>jf(Tf(e,...t)),divide:(...t)=>jf(Of(e,...t)),negate:()=>jf(Cf(e)),toString:()=>e.toString()})),{add:Af,subtract:Pf,multiply:Tf,divide:Of,negate:Cf}),{defineMultiStyleConfig:Rf,definePartsStyle:If}=lt(pf.keys),Mf=_f("switch-track-width"),Lf=_f("switch-track-height"),Nf=_f("switch-track-diff"),Df=jf.subtract(Mf,Lf),zf=_f("switch-thumb-x"),Bf=_f("switch-bg"),Uf=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Mf.reference],height:[Lf.reference],transitionProperty:"common",transitionDuration:"fast",[Bf.variable]:"colors.gray.300",_dark:{[Bf.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Bf.variable]:`colors.${t}.500`,_dark:{[Bf.variable]:`colors.${t}.200`}},bg:Bf.reference}},Ff={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Lf.reference],height:[Lf.reference],_checked:{transform:`translateX(${zf.reference})`}},$f=Rf({baseStyle:If((e=>({container:{[Nf.variable]:Df,[zf.variable]:Nf.reference,_rtl:{[zf.variable]:jf(Nf).negate().toString()}},track:Uf(e),thumb:Ff}))),sizes:{sm:If({container:{[Mf.variable]:"1.375rem",[Lf.variable]:"sizes.3"}}),md:If({container:{[Mf.variable]:"1.875rem",[Lf.variable]:"sizes.4"}}),lg:If({container:{[Mf.variable]:"2.875rem",[Lf.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Hf(e,t){return r=>"dark"===r.colorMode?t:e}function Vf(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:qf,definePartsStyle:Kf}=lt(mf.keys),Wf=Kf({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Gf={"&[data-is-numeric=true]":{textAlign:"end"}},Zf=Kf((e=>{const{colorScheme:t}=e;return{th:{color:Hf("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e),...Gf},td:{borderBottom:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e),...Gf},caption:{color:Hf("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),Yf=Kf((e=>{const{colorScheme:t}=e;return{th:{color:Hf("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e),...Gf},td:{borderBottom:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e),...Gf},caption:{color:Hf("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e)},td:{background:Hf(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),Xf=qf({baseStyle:Wf,variants:{simple:Zf,striped:Yf,unstyled:{}},sizes:{sm:Kf({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Kf({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Kf({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function Jf(e,t,r){return Math.min(Math.max(e,r),t)}class Qf extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ep=Qf;function tp(e){if("string"!==typeof e)throw new ep(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=lp.test(e)?function(e){const t=e.toLowerCase().trim(),r=np[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new ep(e);return`#${r}`}(e):e;const r=op.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(ip(e,2),16))),parseInt(ip(e[3]||"f",2),16)/255]}const n=ap.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const i=sp.exec(t);if(i){const e=Array.from(i).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const o=cp.exec(t);if(o){const[t,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(Jf(0,100,r)!==r)throw new ep(e);if(Jf(0,100,n)!==n)throw new ep(e);return[...dp(t,r,n),Number.isNaN(i)?1:i]}throw new ep(e)}const rp=e=>parseInt(e.replace(/_/g,""),36),np="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=rp(t.substring(0,3)),n=rp(t.substring(3)).toString(16);let i="";for(let o=0;o<6-n.length;o++)i+="0";return e[r]=`${i}${n}`,e}),{});const ip=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),op=new RegExp(`^#${ip("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ap=new RegExp(`^#${ip("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),sp=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ip(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),cp=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,lp=/^[a-z]+$/i,up=e=>Math.round(255*e),dp=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(up);const i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),a=o*(1-Math.abs(i%2-1));let s=0,c=0,l=0;i>=0&&i<1?(s=o,c=a):i>=1&&i<2?(s=a,c=o):i>=2&&i<3?(c=o,l=a):i>=3&&i<4?(c=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);const u=n-o/2;return[s+u,c+u,l+u].map(up)};function hp(e,t,r,n){return`rgba(${Jf(0,255,e).toFixed()}, ${Jf(0,255,t).toFixed()}, ${Jf(0,255,r).toFixed()}, ${parseFloat(Jf(0,1,n).toFixed(3))})`}function fp(e,t){const[r,n,i,o]=tp(e);return hp(r,n,i,o-t)}var pp=(e,t,r)=>{const n=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n{const t=Jf(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(n),i<1&&o(Math.round(255*i))}(n),n}catch{return null!=r?r:"#000000"}},mp=e=>t=>{const r=(e=>{const[t,r,n]=tp(e);return(299*t+587*r+114*n)/1e3})(pp(t,e));return r<128?"dark":"light"},gp=(e,t)=>r=>fp(pp(r,e),1-t);function vp(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}function yp(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(r=e,0!==Object.keys(r).length)?e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let n=0;n>8*n&255).toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var r}var bp=Ee("tabs-color"),wp=Ee("tabs-bg"),xp=Ee("tabs-border-color"),{defineMultiStyleConfig:_p,definePartsStyle:Sp}=lt(gf.keys),kp=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Ep=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Ap=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===r?"column":"row"}},Pp={p:4},Tp=Sp((e=>({root:kp(e),tab:Ep(e),tablist:Ap(e),tabpanel:Pp}))),Op={sm:Sp({tab:{py:1,px:4,fontSize:"sm"}}),md:Sp({tab:{fontSize:"md",py:2,px:4}}),lg:Sp({tab:{fontSize:"lg",py:3,px:4}})},Cp=Sp((e=>{const{colorScheme:t,orientation:r}=e,n="vertical"===r,i=n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[bp.variable]:`colors.${t}.600`,_dark:{[bp.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[wp.variable]:"colors.gray.200",_dark:{[wp.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:bp.reference,bg:wp.reference}}})),jp=Sp((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[xp.variable]:"transparent",_selected:{[bp.variable]:`colors.${t}.600`,[xp.variable]:"colors.white",_dark:{[bp.variable]:`colors.${t}.300`,[xp.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:xp.reference},color:bp.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Rp=Sp((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[wp.variable]:"colors.gray.50",_dark:{[wp.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[wp.variable]:"colors.white",[bp.variable]:`colors.${t}.600`,_dark:{[wp.variable]:"colors.gray.800",[bp.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:bp.reference,bg:wp.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Ip=Sp((e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:pp(r,`${t}.700`),bg:pp(r,`${t}.100`)}}}})),Mp=Sp((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[bp.variable]:"colors.gray.600",_dark:{[bp.variable]:"inherit"},_selected:{[bp.variable]:"colors.white",[wp.variable]:`colors.${t}.600`,_dark:{[bp.variable]:"colors.gray.800",[wp.variable]:`colors.${t}.300`}},color:bp.reference,bg:wp.reference}}})),Lp=_p({baseStyle:Tp,sizes:Op,variants:{line:Cp,enclosed:jp,"enclosed-colored":Rp,"soft-rounded":Ip,"solid-rounded":Mp,unstyled:Sp({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Np=function(e,t){const r={};for(const n of t)if(Array.isArray(n)){const[t,i]=n;r[t]=Ee(`${e}-${t}`,i)}else r[n]=Ee(`${e}-${n}`);return r}("badge",["bg","color","shadow"]),Dp=e=>{const{colorScheme:t,theme:r}=e,n=gp(`${t}.500`,.6)(r);return{[Np.bg.variable]:`colors.${t}.500`,[Np.color.variable]:"colors.white",_dark:{[Np.bg.variable]:n,[Np.color.variable]:"colors.whiteAlpha.800"}}},zp=e=>{const{colorScheme:t,theme:r}=e,n=gp(`${t}.200`,.16)(r);return{[Np.bg.variable]:`colors.${t}.100`,[Np.color.variable]:`colors.${t}.800`,_dark:{[Np.bg.variable]:n,[Np.color.variable]:`colors.${t}.200`}}},Bp=e=>{const{colorScheme:t,theme:r}=e,n=gp(`${t}.200`,.8)(r);return{[Np.color.variable]:`colors.${t}.500`,_dark:{[Np.color.variable]:n},[Np.shadow.variable]:`inset 0 0 0px 1px ${Np.color.reference}`}},Up={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Np.bg.reference,color:Np.color.reference,boxShadow:Np.shadow.reference},variants:{solid:Dp,subtle:zp,outline:Bp},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Fp,definePartsStyle:$p}=lt(vf.keys),Hp=Ee("tag-bg"),Vp=Ee("tag-color"),qp=Ee("tag-shadow"),Kp=Ee("tag-min-height"),Wp=Ee("tag-min-width"),Gp=Ee("tag-font-size"),Zp=Ee("tag-padding-inline"),Yp=$p({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[Vp.variable]:Np.color.reference,[Hp.variable]:Np.bg.reference,[qp.variable]:Np.shadow.reference,color:Vp.reference,bg:Hp.reference,boxShadow:qp.reference,borderRadius:"md",minH:Kp.reference,minW:Wp.reference,fontSize:Gp.reference,px:Zp.reference,_focusVisible:{[qp.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),Xp={sm:$p({container:{[Kp.variable]:"sizes.5",[Wp.variable]:"sizes.5",[Gp.variable]:"fontSizes.xs",[Zp.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:$p({container:{[Kp.variable]:"sizes.6",[Wp.variable]:"sizes.6",[Gp.variable]:"fontSizes.sm",[Zp.variable]:"space.2"}}),lg:$p({container:{[Kp.variable]:"sizes.8",[Wp.variable]:"sizes.8",[Gp.variable]:"fontSizes.md",[Zp.variable]:"space.3"}})},Jp={subtle:$p((e=>{var t;return{container:null==(t=Up.variants)?void 0:t.subtle(e)}})),solid:$p((e=>{var t;return{container:null==(t=Up.variants)?void 0:t.solid(e)}})),outline:$p((e=>{var t;return{container:null==(t=Up.variants)?void 0:t.outline(e)}}))},Qp=Fp({variants:Jp,baseStyle:Yp,sizes:Xp,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:em,defineMultiStyleConfig:tm}=lt(rf.keys),rm=Ee("input-height"),nm=Ee("input-font-size"),im=Ee("input-padding"),om=Ee("input-border-radius"),am=em({addon:{height:rm.reference,fontSize:nm.reference,px:im.reference,borderRadius:om.reference},field:{width:"100%",height:rm.reference,fontSize:nm.reference,px:im.reference,borderRadius:om.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),sm={lg:{[nm.variable]:"fontSizes.lg",[im.variable]:"space.4",[om.variable]:"radii.md",[rm.variable]:"sizes.12"},md:{[nm.variable]:"fontSizes.md",[im.variable]:"space.4",[om.variable]:"radii.md",[rm.variable]:"sizes.10"},sm:{[nm.variable]:"fontSizes.sm",[im.variable]:"space.3",[om.variable]:"radii.sm",[rm.variable]:"sizes.8"},xs:{[nm.variable]:"fontSizes.xs",[im.variable]:"space.2",[om.variable]:"radii.sm",[rm.variable]:"sizes.6"}},cm={lg:em({field:sm.lg,group:sm.lg}),md:em({field:sm.md,group:sm.md}),sm:em({field:sm.sm,group:sm.sm}),xs:em({field:sm.xs,group:sm.xs})};function lm(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||Hf("blue.500","blue.300")(e),errorBorderColor:r||Hf("red.500","red.300")(e)}}var um,dm,hm,fm,pm,mm,gm,vm,ym,bm,wm,xm=em((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=lm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Hf("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pp(t,n),boxShadow:`0 0 0 1px ${pp(t,n)}`},_focusVisible:{zIndex:1,borderColor:pp(t,r),boxShadow:`0 0 0 1px ${pp(t,r)}`}},addon:{border:"1px solid",borderColor:Hf("inherit","whiteAlpha.50")(e),bg:Hf("gray.100","whiteAlpha.300")(e)}}})),_m=em((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=lm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Hf("gray.100","whiteAlpha.50")(e),_hover:{bg:Hf("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pp(t,n)},_focusVisible:{bg:"transparent",borderColor:pp(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:Hf("gray.100","whiteAlpha.50")(e)}}})),Sm=em((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=lm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pp(t,n),boxShadow:`0px 1px 0px 0px ${pp(t,n)}`},_focusVisible:{borderColor:pp(t,r),boxShadow:`0px 1px 0px 0px ${pp(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),km=tm({baseStyle:am,sizes:cm,variants:{outline:xm,filled:_m,flushed:Sm,unstyled:em({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Em={...null==(um=km.baseStyle)?void 0:um.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Am={outline:e=>{var t,r;return null!=(r=null==(t=km.variants)?void 0:t.outline(e).field)?r:{}},flushed:e=>{var t,r;return null!=(r=null==(t=km.variants)?void 0:t.flushed(e).field)?r:{}},filled:e=>{var t,r;return null!=(r=null==(t=km.variants)?void 0:t.filled(e).field)?r:{}},unstyled:null!=(hm=null==(dm=km.variants)?void 0:dm.unstyled.field)?hm:{}},Pm={baseStyle:Em,sizes:{xs:null!=(pm=null==(fm=km.sizes)?void 0:fm.xs.field)?pm:{},sm:null!=(gm=null==(mm=km.sizes)?void 0:mm.sm.field)?gm:{},md:null!=(ym=null==(vm=km.sizes)?void 0:vm.md.field)?ym:{},lg:null!=(wm=null==(bm=km.sizes)?void 0:bm.lg.field)?wm:{}},variants:Am,defaultProps:{size:"md",variant:"outline"}},Tm=_f("tooltip-bg"),Om=_f("tooltip-fg"),Cm=_f("popper-arrow-bg"),jm={baseStyle:{bg:Tm.reference,color:Om.reference,[Tm.variable]:"colors.gray.700",[Om.variable]:"colors.whiteAlpha.900",_dark:{[Tm.variable]:"colors.gray.300",[Om.variable]:"colors.gray.900"},[Cm.variable]:Tm.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:Rm,definePartsStyle:Im}=lt(lf.keys),Mm=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=Hf(vp(),vp("1rem","rgba(0,0,0,0.1)"))(e),a=Hf(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${pp(r,a)} 50%,\n transparent 100%\n )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}},Lm={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Nm=e=>({bg:Hf("gray.100","whiteAlpha.300")(e)}),Dm=e=>({transitionProperty:"common",transitionDuration:"slow",...Mm(e)}),zm=Im((e=>({label:Lm,filledTrack:Dm(e),track:Nm(e)}))),Bm=Rm({sizes:{xs:Im({track:{h:"1"}}),sm:Im({track:{h:"2"}}),md:Im({track:{h:"3"}}),lg:Im({track:{h:"4"}})},baseStyle:zm,defaultProps:{size:"md",colorScheme:"blue"}});function Um(e,...t){return(e=>"function"===typeof e)(e)?e(...t):e}var Fm,$m,Hm,Vm,qm,Km,Wm,Gm,Zm,{definePartsStyle:Ym,defineMultiStyleConfig:Xm}=lt(Xh.keys),Jm=Ee("checkbox-size"),Qm=e=>{const{colorScheme:t}=e;return{w:Jm.reference,h:Jm.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Hf(`${t}.500`,`${t}.200`)(e),borderColor:Hf(`${t}.500`,`${t}.200`)(e),color:Hf("white","gray.900")(e),_hover:{bg:Hf(`${t}.600`,`${t}.300`)(e),borderColor:Hf(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Hf("gray.200","transparent")(e),bg:Hf("gray.200","whiteAlpha.300")(e),color:Hf("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Hf(`${t}.500`,`${t}.200`)(e),borderColor:Hf(`${t}.500`,`${t}.200`)(e),color:Hf("white","gray.900")(e)},_disabled:{bg:Hf("gray.100","whiteAlpha.100")(e),borderColor:Hf("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Hf("red.500","red.300")(e)}}},eg={_disabled:{cursor:"not-allowed"}},tg={userSelect:"none",_disabled:{opacity:.4}},rg={transitionProperty:"transform",transitionDuration:"normal"},ng=Xm({baseStyle:Ym((e=>({icon:rg,container:eg,control:Um(Qm,e),label:tg}))),sizes:{sm:Ym({control:{[Jm.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ym({control:{[Jm.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ym({control:{[Jm.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ig,definePartsStyle:og}=lt(uf.keys),ag=e=>{var t;const r=null==(t=Um(ng.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},sg=og((e=>{var t,r,n,i;return{label:null==(r=(t=ng).baseStyle)?void 0:r.call(t,e).label,container:null==(i=(n=ng).baseStyle)?void 0:i.call(n,e).container,control:ag(e)}})),cg=ig({baseStyle:sg,sizes:{md:og({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:og({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:og({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lg,definePartsStyle:ug}=lt(df.keys),dg=Ee("select-bg"),hg={paddingInlineEnd:"8"},fg=lg({baseStyle:ug({field:{...null==(Fm=km.baseStyle)?void 0:Fm.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:dg.reference,[dg.variable]:"colors.white",_dark:{[dg.variable]:"colors.gray.700"},"> option, > optgroup":{bg:dg.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==($m=km.sizes)?void 0:$m.lg,field:{...null==(Hm=km.sizes)?void 0:Hm.lg.field,...hg}},md:{...null==(Vm=km.sizes)?void 0:Vm.md,field:{...null==(qm=km.sizes)?void 0:qm.md.field,...hg}},sm:{...null==(Km=km.sizes)?void 0:Km.sm,field:{...null==(Wm=km.sizes)?void 0:Wm.sm.field,...hg}},xs:{...null==(Gm=km.sizes)?void 0:Gm.xs,field:{...null==(Zm=km.sizes)?void 0:Zm.xs.field,...hg},icon:{insetEnd:"1"}}},variants:km.variants,defaultProps:km.defaultProps}),pg=Ee("skeleton-start-color"),mg=Ee("skeleton-end-color"),gg={baseStyle:{[pg.variable]:"colors.gray.100",[mg.variable]:"colors.gray.400",_dark:{[pg.variable]:"colors.gray.800",[mg.variable]:"colors.gray.600"},background:pg.reference,borderColor:mg.reference,opacity:.7,borderRadius:"sm"}},vg=Ee("skip-link-bg"),yg={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[vg.variable]:"colors.white",_dark:{[vg.variable]:"colors.gray.700"},bg:vg.reference}}},{defineMultiStyleConfig:bg,definePartsStyle:wg}=lt(hf.keys),xg=Ee("slider-thumb-size"),_g=Ee("slider-track-size"),Sg=Ee("slider-bg"),kg=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Vf({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Eg=e=>({...Vf({orientation:e.orientation,horizontal:{h:_g.reference},vertical:{w:_g.reference}}),overflow:"hidden",borderRadius:"sm",[Sg.variable]:"colors.gray.200",_dark:{[Sg.variable]:"colors.whiteAlpha.200"},_disabled:{[Sg.variable]:"colors.gray.300",_dark:{[Sg.variable]:"colors.whiteAlpha.300"}},bg:Sg.reference}),Ag=e=>{const{orientation:t}=e;return{...Vf({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:xg.reference,h:xg.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},Pg=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Sg.variable]:`colors.${t}.500`,_dark:{[Sg.variable]:`colors.${t}.200`},bg:Sg.reference}},Tg=bg({baseStyle:wg((e=>({container:kg(e),track:Eg(e),thumb:Ag(e),filledTrack:Pg(e)}))),sizes:{lg:wg({container:{[xg.variable]:"sizes.4",[_g.variable]:"sizes.1"}}),md:wg({container:{[xg.variable]:"sizes.3.5",[_g.variable]:"sizes.1"}}),sm:wg({container:{[xg.variable]:"sizes.2.5",[_g.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Og=_f("spinner-size"),Cg={baseStyle:{width:[Og.reference],height:[Og.reference]},sizes:{xs:{[Og.variable]:"sizes.3"},sm:{[Og.variable]:"sizes.4"},md:{[Og.variable]:"sizes.6"},lg:{[Og.variable]:"sizes.8"},xl:{[Og.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:jg,definePartsStyle:Rg}=lt(ff.keys),Ig=jg({baseStyle:Rg({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:Rg({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),Mg=Ee("kbd-bg"),Lg={baseStyle:{[Mg.variable]:"colors.gray.100",_dark:{[Mg.variable]:"colors.whiteAlpha.100"},bg:Mg.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},Ng={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},{defineMultiStyleConfig:Dg,definePartsStyle:zg}=lt(nf.keys),Bg=Dg({baseStyle:zg({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:Ug,definePartsStyle:Fg}=lt(of.keys),$g=Ee("menu-bg"),Hg=Ee("menu-shadow"),Vg=Ug({baseStyle:Fg({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[$g.variable]:"#fff",[Hg.variable]:"shadows.sm",_dark:{[$g.variable]:"colors.gray.700",[Hg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:$g.reference,boxShadow:Hg.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[$g.variable]:"colors.gray.100",_dark:{[$g.variable]:"colors.whiteAlpha.100"}},_active:{[$g.variable]:"colors.gray.200",_dark:{[$g.variable]:"colors.whiteAlpha.200"}},_expanded:{[$g.variable]:"colors.gray.100",_dark:{[$g.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:$g.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:qg,definePartsStyle:Kg}=lt(af.keys),Wg=Ee("modal-bg"),Gg=Ee("modal-shadow"),Zg={bg:"blackAlpha.600",zIndex:"modal"},Yg=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}},Xg=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[Wg.variable]:"colors.white",[Gg.variable]:"shadows.lg",_dark:{[Wg.variable]:"colors.gray.700",[Gg.variable]:"shadows.dark-lg"},bg:Wg.reference,boxShadow:Gg.reference}},Jg={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Qg={position:"absolute",top:"2",insetEnd:"3"},ev=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},tv={px:"6",py:"4"};function rv(e){return Kg("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var nv=qg({baseStyle:Kg((e=>({overlay:Zg,dialogContainer:Um(Yg,e),dialog:Um(Xg,e),header:Jg,closeButton:Qg,body:Um(ev,e),footer:tv}))),sizes:{xs:rv("xs"),sm:rv("sm"),md:rv("md"),lg:rv("lg"),xl:rv("xl"),"2xl":rv("2xl"),"3xl":rv("3xl"),"4xl":rv("4xl"),"5xl":rv("5xl"),"6xl":rv("6xl"),full:rv("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:iv,definePartsStyle:ov}=lt(sf.keys),av=_f("number-input-stepper-width"),sv=_f("number-input-input-padding"),cv=jf(av).add("0.5rem").toString(),lv=_f("number-input-bg"),uv=_f("number-input-color"),dv=_f("number-input-border-color"),hv={[av.variable]:"sizes.6",[sv.variable]:cv},fv=e=>{var t,r;return null!=(r=null==(t=Um(km.baseStyle,e))?void 0:t.field)?r:{}},pv={width:av.reference},mv={borderStart:"1px solid",borderStartColor:dv.reference,color:uv.reference,bg:lv.reference,[uv.variable]:"colors.chakra-body-text",[dv.variable]:"colors.chakra-border-color",_dark:{[uv.variable]:"colors.whiteAlpha.800",[dv.variable]:"colors.whiteAlpha.300"},_active:{[lv.variable]:"colors.gray.200",_dark:{[lv.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},gv=ov((e=>{var t;return{root:hv,field:null!=(t=Um(fv,e))?t:{},stepperGroup:pv,stepper:mv}}));function vv(e){var t,r,n;const i=null==(t=km.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=i.field)?void 0:r.fontSize)?n:"md",s=Ih.fontSizes[a];return ov({field:{...i.field,paddingInlineEnd:sv.reference,verticalAlign:"top"},stepper:{fontSize:jf(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var yv,bv,wv,xv=iv({baseStyle:gv,sizes:{xs:vv("xs"),sm:vv("sm"),md:vv("md"),lg:vv("lg")},variants:km.variants,defaultProps:km.defaultProps}),_v={...null==(yv=km.baseStyle)?void 0:yv.field,textAlign:"center"},Sv={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},kv={outline:e=>{var t,r,n;return null!=(n=null==(r=Um(null==(t=km.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}},flushed:e=>{var t,r,n;return null!=(n=null==(r=Um(null==(t=km.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}},filled:e=>{var t,r,n;return null!=(n=null==(r=Um(null==(t=km.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}},unstyled:null!=(wv=null==(bv=km.variants)?void 0:bv.unstyled.field)?wv:{}},Ev={baseStyle:_v,sizes:Sv,variants:kv,defaultProps:km.defaultProps},{defineMultiStyleConfig:Av,definePartsStyle:Pv}=lt(cf.keys),Tv=_f("popper-bg"),Ov=_f("popper-arrow-bg"),Cv=_f("popper-arrow-shadow-color"),jv=Av({baseStyle:Pv({popper:{zIndex:10},content:{[Tv.variable]:"colors.white",bg:Tv.reference,[Ov.variable]:Tv.reference,[Cv.variable]:"colors.gray.200",_dark:{[Tv.variable]:"colors.gray.700",[Cv.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{definePartsStyle:Rv,defineMultiStyleConfig:Iv}=lt(Jh.keys),Mv=Ee("drawer-bg"),Lv=Ee("drawer-box-shadow");function Nv(e){return Rv("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Dv={bg:"blackAlpha.600",zIndex:"modal"},zv={display:"flex",zIndex:"modal",justifyContent:"center"},Bv=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Mv.variable]:"colors.white",[Lv.variable]:"shadows.lg",_dark:{[Mv.variable]:"colors.gray.700",[Lv.variable]:"shadows.dark-lg"},bg:Mv.reference,boxShadow:Lv.reference}},Uv={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Fv={position:"absolute",top:"2",insetEnd:"3"},$v={px:"6",py:"2",flex:"1",overflow:"auto"},Hv={px:"6",py:"4"},Vv=Iv({baseStyle:Rv((e=>({overlay:Dv,dialogContainer:zv,dialog:Um(Bv,e),header:Uv,closeButton:Fv,body:$v,footer:Hv}))),sizes:{xs:Nv("xs"),sm:Nv("md"),md:Nv("lg"),lg:Nv("2xl"),xl:Nv("4xl"),full:Nv("full")},defaultProps:{size:"xs"}}),{definePartsStyle:qv,defineMultiStyleConfig:Kv}=lt(Qh.keys),Wv=Kv({baseStyle:qv({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:Gv,defineMultiStyleConfig:Zv}=lt(ef.keys),Yv=Ee("form-control-color"),Xv=Zv({baseStyle:Gv({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[Yv.variable]:"colors.red.500",_dark:{[Yv.variable]:"colors.red.300"},color:Yv.reference},helperText:{mt:"2",[Yv.variable]:"colors.gray.600",_dark:{[Yv.variable]:"colors.whiteAlpha.600"},color:Yv.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:Jv,defineMultiStyleConfig:Qv}=lt(tf.keys),ey=Ee("form-error-color"),ty=Qv({baseStyle:Jv({text:{[ey.variable]:"colors.red.500",_dark:{[ey.variable]:"colors.red.300"},color:ey.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[ey.variable]:"colors.red.500",_dark:{[ey.variable]:"colors.red.300"},color:ey.reference}})}),ry={baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},ny={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},{defineMultiStyleConfig:iy,definePartsStyle:oy}=lt(Yh.keys),ay=Ee("breadcrumb-link-decor"),sy=iy({baseStyle:oy({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ay.reference,[ay.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ay.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),cy=e=>{const{colorScheme:t,theme:r}=e;if("gray"===t)return{color:Hf("gray.800","whiteAlpha.900")(e),_hover:{bg:Hf("gray.100","whiteAlpha.200")(e)},_active:{bg:Hf("gray.200","whiteAlpha.300")(e)}};const n=gp(`${t}.200`,.12)(r),i=gp(`${t}.200`,.24)(r);return{color:Hf(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Hf(`${t}.50`,n)(e)},_active:{bg:Hf(`${t}.100`,i)(e)}}},ly=e=>{const{colorScheme:t}=e,r=Hf("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Um(cy,e)}},uy={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},dy=e=>{var t;const{colorScheme:r}=e;if("gray"===r){const t=Hf("gray.100","whiteAlpha.200")(e);return{bg:t,color:Hf("gray.800","whiteAlpha.900")(e),_hover:{bg:Hf("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:Hf("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=uy[r])?t:{},s=Hf(n,`${r}.200`)(e);return{bg:s,color:Hf(i,"gray.800")(e),_hover:{bg:Hf(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:Hf(a,`${r}.400`)(e)}}},hy=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Hf(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Hf(`${t}.700`,`${t}.500`)(e)}}},fy={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:cy,outline:ly,solid:dy,link:hy,unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:py,defineMultiStyleConfig:my}=lt(yf.keys),gy=Ee("card-bg"),vy=Ee("card-padding"),yy=Ee("card-shadow"),by=Ee("card-radius"),wy=Ee("card-border-width","0"),xy=Ee("card-border-color"),_y=py({container:{[gy.variable]:"colors.chakra-body-bg",backgroundColor:gy.reference,boxShadow:yy.reference,borderRadius:by.reference,color:"chakra-body-text",borderWidth:wy.reference,borderColor:xy.reference},body:{padding:vy.reference,flex:"1 1 0%"},header:{padding:vy.reference},footer:{padding:vy.reference}}),Sy={sm:py({container:{[by.variable]:"radii.base",[vy.variable]:"space.3"}}),md:py({container:{[by.variable]:"radii.md",[vy.variable]:"space.5"}}),lg:py({container:{[by.variable]:"radii.xl",[vy.variable]:"space.7"}})},ky=my({baseStyle:_y,variants:{elevated:py({container:{[yy.variable]:"shadows.base",_dark:{[gy.variable]:"colors.gray.700"}}}),outline:py({container:{[wy.variable]:"1px",[xy.variable]:"colors.chakra-border-color"}}),filled:py({container:{[gy.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[vy.variable]:0},header:{[vy.variable]:0},footer:{[vy.variable]:0}}},sizes:Sy,defaultProps:{variant:"elevated",size:"md"}}),Ey=_f("close-button-size"),Ay=_f("close-button-bg"),Py={baseStyle:{w:[Ey.reference],h:[Ey.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ay.variable]:"colors.blackAlpha.100",_dark:{[Ay.variable]:"colors.whiteAlpha.100"}},_active:{[Ay.variable]:"colors.blackAlpha.200",_dark:{[Ay.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ay.reference},sizes:{lg:{[Ey.variable]:"sizes.10",fontSize:"md"},md:{[Ey.variable]:"sizes.8",fontSize:"xs"},sm:{[Ey.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:Ty,defaultProps:Oy}=Up,Cy={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Np.bg.reference,color:Np.color.reference,boxShadow:Np.shadow.reference},variants:Ty,defaultProps:Oy},jy={baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Ry={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},{definePartsStyle:Iy,defineMultiStyleConfig:My}=lt(Wh.keys),Ly=My({baseStyle:Iy({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),{definePartsStyle:Ny,defineMultiStyleConfig:Dy}=lt(Gh.keys),zy=Ee("alert-fg"),By=Ee("alert-bg"),Uy=Ny({container:{bg:By.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:zy.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:zy.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Fy(e){const{theme:t,colorScheme:r}=e;return{light:`colors.${r}.100`,dark:gp(`${r}.200`,.16)(t)}}var $y=Ny((e=>{const{colorScheme:t}=e,r=Fy(e);return{container:{[zy.variable]:`colors.${t}.600`,[By.variable]:r.light,_dark:{[zy.variable]:`colors.${t}.200`,[By.variable]:r.dark}}}})),Hy=Ny((e=>{const{colorScheme:t}=e,r=Fy(e);return{container:{[zy.variable]:`colors.${t}.600`,[By.variable]:r.light,_dark:{[zy.variable]:`colors.${t}.200`,[By.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:zy.reference}}})),Vy=Ny((e=>{const{colorScheme:t}=e,r=Fy(e);return{container:{[zy.variable]:`colors.${t}.600`,[By.variable]:r.light,_dark:{[zy.variable]:`colors.${t}.200`,[By.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:zy.reference}}})),qy=Ny((e=>{const{colorScheme:t}=e;return{container:{[zy.variable]:"colors.white",[By.variable]:`colors.${t}.600`,_dark:{[zy.variable]:"colors.gray.900",[By.variable]:`colors.${t}.200`},color:zy.reference}}})),Ky=Dy({baseStyle:Uy,variants:{subtle:$y,"left-accent":Hy,"top-accent":Vy,solid:qy},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Wy,defineMultiStyleConfig:Gy}=lt(Zh.keys),Zy=Ee("avatar-border-color"),Yy=Ee("avatar-bg"),Xy=Ee("avatar-font-size"),Jy=Ee("avatar-size"),Qy={borderRadius:"full",border:"0.2em solid",borderColor:Zy.reference,[Zy.variable]:"white",_dark:{[Zy.variable]:"colors.gray.800"}},eb={bg:Yy.reference,fontSize:Xy.reference,width:Jy.reference,height:Jy.reference,lineHeight:"1",[Yy.variable]:"colors.gray.200",_dark:{[Yy.variable]:"colors.whiteAlpha.400"}},tb=e=>{const{name:t,theme:r}=e,n=t?yp({string:t}):"colors.gray.400",i=(e=>t=>"dark"===mp(e)(t))(n)(r);let o="white";return i||(o="gray.800"),{bg:Yy.reference,fontSize:Xy.reference,color:o,borderColor:Zy.reference,verticalAlign:"top",width:Jy.reference,height:Jy.reference,"&:not([data-loaded])":{[Yy.variable]:n},[Zy.variable]:"colors.white",_dark:{[Zy.variable]:"colors.gray.800"}}},rb={fontSize:Xy.reference,lineHeight:"1"};function nb(e){const t="100%"!==e?Lh[e]:void 0;return Wy({container:{[Jy.variable]:null!=t?t:e,[Xy.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[Jy.variable]:null!=t?t:e,[Xy.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var ib={Accordion:Ly,Alert:Ky,Avatar:Gy({baseStyle:Wy((e=>({badge:Um(Qy,e),excessLabel:Um(eb,e),container:Um(tb,e),label:rb}))),sizes:{"2xs":nb(4),xs:nb(6),sm:nb(8),md:nb(12),lg:nb(16),xl:nb(24),"2xl":nb(32),full:nb("100%")},defaultProps:{size:"md"}}),Badge:Up,Breadcrumb:sy,Button:fy,Checkbox:ng,CloseButton:Py,Code:Cy,Container:jy,Divider:Ry,Drawer:Vv,Editable:Wv,Form:Xv,FormError:ty,FormLabel:ry,Heading:ny,Input:km,Kbd:Lg,Link:Ng,List:Bg,Menu:Vg,Modal:nv,NumberInput:xv,PinInput:Ev,Popover:jv,Progress:Bm,Radio:cg,Select:fg,Skeleton:gg,SkipLink:yg,Slider:Tg,Spinner:Cg,Stat:Ig,Switch:$f,Table:Xf,Tabs:Lp,Tag:Qp,Textarea:Pm,Tooltip:jm,Card:ky,Stepper:qh},ob={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},ab={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},sb={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},cb={semanticTokens:ob,direction:"ltr",...Nh,components:ib,styles:ab,config:sb},lb={semanticTokens:ob,direction:"ltr",components:{},...Nh,styles:ab,config:sb},ub=(e,t)=>e.find((e=>e.id===t));function db(e,t){const r=hb(e,t);return{position:r,index:r?e[r].findIndex((e=>e.id===t)):-1}}function hb(e,t){for(const[r,n]of Object.entries(e))if(ub(n,t))return r}function fb(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function pb(e,t=[]){const r=(0,n.useRef)(e);return(0,n.useEffect)((()=>{r.current=e})),(0,n.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}function mb(e,t){const r=(0,n.useRef)(!1),i=(0,n.useRef)(!1);(0,n.useEffect)((()=>{if(r.current&&i.current)return e();i.current=!0}),t),(0,n.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])}const gb=(0,n.createContext)(null);function vb(){const e=(0,n.useContext)(gb);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:i}=e,o=(0,n.useId)();(0,n.useEffect)((()=>i(o)),[]);return!t&&r?[!1,()=>r&&r(o)]:[!0]}function yb(){return function(e){return null===e||e.isPresent}((0,n.useContext)(gb))}const bb=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),wb=(0,n.createContext)({}),xb="undefined"!==typeof document,_b=xb?n.useLayoutEffect:n.useEffect,Sb=(0,n.createContext)({strict:!1}),kb=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Eb="data-"+kb("framerAppearId"),Ab=!1,Pb=!1;class Tb{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Ob=["prepare","read","update","preRender","render","postRender"];function Cb(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ob.reduce(((e,t)=>(e[t]=function(e){let t=new Tb,r=new Tb,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const c=s&&i,l=c?t:r;return o&&a.add(e),l.add(e)&&c&&i&&(n=t.order.length),e},cancel:e=>{r.remove(e),a.delete(e)},process:c=>{if(i)o=!0;else{if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let r=0;rr=!0)),e)),{}),a=e=>{o[e].process(i)},s=()=>{const o=Pb?i.timestamp:performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,Ob.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},c=Ob.reduce(((t,a)=>{const c=o[a];return t[a]=(t,o=!1,a=!1)=>(r||(r=!0,n=!0,i.isProcessing||e(s)),c.schedule(t,o,a)),t}),{});return{schedule:c,cancel:e=>Ob.forEach((t=>o[t].cancel(e))),state:i,steps:o}}const{schedule:jb,cancel:Rb}=Cb(queueMicrotask,!1);function Ib(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Mb(e){return"string"===typeof e||Array.isArray(e)}function Lb(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const Nb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Db=["initial",...Nb];function zb(e){return Lb(e.animate)||Db.some((t=>Mb(e[t])))}function Bb(e){return Boolean(zb(e)||e.variants)}function Ub(e){const{initial:t,animate:r}=function(e,t){if(zb(e)){const{initial:t,animate:r}=e;return{initial:!1===t||Mb(t)?t:void 0,animate:Mb(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(wb));return(0,n.useMemo)((()=>({initial:t,animate:r})),[Fb(t),Fb(r)])}function Fb(e){return Array.isArray(e)?e.join(" "):e}const $b={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hb={};for(const r in $b)Hb[r]={isEnabled:e=>$b[r].some((t=>!!e[t]))};const Vb=(0,n.createContext)({}),qb=(0,n.createContext)({}),Kb=Symbol.for("motionComponentSymbol");function Wb({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(const t in e)Hb[t]={...Hb[t],...e[t]}}(e);const a=(0,n.forwardRef)((function(a,s){let c;const l={...(0,n.useContext)(bb),...a,layoutId:Gb(a)},{isStatic:u}=l,d=Ub(a),h=i(a,u);if(!u&&xb){d.visualElement=function(e,t,r,i){const{visualElement:o}=(0,n.useContext)(wb),a=(0,n.useContext)(Sb),s=(0,n.useContext)(gb),c=(0,n.useContext)(bb).reducedMotion,l=(0,n.useRef)();i=i||a.renderer,!l.current&&i&&(l.current=i(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:c}));const u=l.current;(0,n.useInsertionEffect)((()=>{u&&u.update(r,s)}));const d=(0,n.useRef)(Boolean(r[Eb]&&!window.HandoffComplete));return _b((()=>{u&&(jb.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,n.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),u}(o,h,l,t);const r=(0,n.useContext)(qb),i=(0,n.useContext)(Sb).strict;d.visualElement&&(c=d.visualElement.loadFeatures(l,i,e,r))}return n.createElement(wb.Provider,{value:d},c&&d.visualElement?n.createElement(c,{visualElement:d.visualElement,...l}):null,r(o,a,function(e,t,r){return(0,n.useCallback)((n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"===typeof r?r(n):Ib(r)&&(r.current=n))}),[t])}(h,d.visualElement,s),h,u,d.visualElement))}));return a[Kb]=o,a}function Gb({layoutId:e}){const t=(0,n.useContext)(Vb).id;return t&&void 0!==e?t+"-"+e:e}function Zb(e){function t(t,r={}){return Wb(e(t,r))}if("undefined"===typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const Yb=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xb(e){return"string"===typeof e&&!e.includes("-")&&!!(Yb.indexOf(e)>-1||/[A-Z]/.test(e))}const Jb={};const Qb=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ew=new Set(Qb);function tw(e,{layout:t,layoutId:r}){return ew.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!Jb[e]||"opacity"===e)}const rw=e=>Boolean(e&&e.getVelocity),nw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iw=Qb.length;const ow=e=>t=>"string"===typeof t&&t.startsWith(e),aw=ow("--"),sw=ow("var(--"),cw=(e,t)=>t&&"number"===typeof e?t.transform(e):e,lw=(e,t,r)=>Math.min(Math.max(r,e),t),uw={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},dw={...uw,transform:e=>lw(0,1,e)},hw={...uw,default:1},fw=e=>Math.round(1e5*e)/1e5,pw=/(-)?([\d]*\.?[\d])+/g,mw=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gw=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function vw(e){return"string"===typeof e}const yw=e=>({test:t=>vw(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),bw=yw("deg"),ww=yw("%"),xw=yw("px"),_w=yw("vh"),Sw=yw("vw"),kw={...ww,parse:e=>ww.parse(e)/100,transform:e=>ww.transform(100*e)},Ew={...uw,transform:Math.round},Aw={borderWidth:xw,borderTopWidth:xw,borderRightWidth:xw,borderBottomWidth:xw,borderLeftWidth:xw,borderRadius:xw,radius:xw,borderTopLeftRadius:xw,borderTopRightRadius:xw,borderBottomRightRadius:xw,borderBottomLeftRadius:xw,width:xw,maxWidth:xw,height:xw,maxHeight:xw,size:xw,top:xw,right:xw,bottom:xw,left:xw,padding:xw,paddingTop:xw,paddingRight:xw,paddingBottom:xw,paddingLeft:xw,margin:xw,marginTop:xw,marginRight:xw,marginBottom:xw,marginLeft:xw,rotate:bw,rotateX:bw,rotateY:bw,rotateZ:bw,scale:hw,scaleX:hw,scaleY:hw,scaleZ:hw,skew:bw,skewX:bw,skewY:bw,distance:xw,translateX:xw,translateY:xw,translateZ:xw,x:xw,y:xw,z:xw,perspective:xw,transformPerspective:xw,opacity:dw,originX:kw,originY:kw,originZ:xw,zIndex:Ew,fillOpacity:dw,strokeOpacity:dw,numOctaves:Ew};function Pw(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let c=!1,l=!1,u=!0;for(const d in t){const e=t[d];if(aw(d)){o[d]=e;continue}const r=Aw[d],n=cw(e,r);if(ew.has(d)){if(c=!0,a[d]=n,!u)continue;e!==(r.default||0)&&(u=!1)}else d.startsWith("origin")?(l=!0,s[d]=n):i[d]=n}if(t.transform||(c||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function Ow(e,t,r){for(const n in t)rw(t[n])||tw(n,r)||(e[n]=t[n])}function Cw(e,t,r){const i={};return Ow(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},t,r){return(0,n.useMemo)((()=>{const n=Tw();return Pw(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)}),[t])}(e,t,r)),i}function jw(e,t,r){const n={},i=Cw(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Rw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Iw(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Rw.has(e)}let Mw=e=>!Iw(e);try{(Lw=require("@emotion/is-prop-valid").default)&&(Mw=e=>e.startsWith("on")?!Iw(e):Lw(e))}catch(Yr){}var Lw;function Nw(e,t,r){return"string"===typeof e?e:xw.transform(t+r*e)}const Dw={offset:"stroke-dashoffset",array:"stroke-dasharray"},zw={offset:"strokeDashoffset",array:"strokeDasharray"};function Bw(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:c=0,...l},u,d,h){if(Pw(e,l,u,h),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){return`${Nw(t,e.x,e.width)} ${Nw(r,e.y,e.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?Dw:zw;e[o.offset]=xw.transform(-n);const a=xw.transform(t),s=xw.transform(r);e[o.array]=`${a} ${s}`}(f,a,s,c,!1)}const Uw=()=>({...Tw(),attrs:{}}),Fw=e=>"string"===typeof e&&"svg"===e.toLowerCase();function $w(e,t,r,i){const o=(0,n.useMemo)((()=>{const r=Uw();return Bw(r,t,{enableHardwareAcceleration:!1},Fw(i),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};Ow(t,e.style,e),o.style={...t,...o.style}}return o}function Hw(e=!1){return(t,r,i,{latestValues:o},a)=>{const s=(Xb(t)?$w:jw)(r,o,a,t),c=function(e,t,r){const n={};for(const i in e)"values"===i&&"object"===typeof e.values||(Mw(i)||!0===r&&Iw(i)||!t&&!Iw(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"===typeof t,e),l={...c,...s,ref:i},{children:u}=r,d=(0,n.useMemo)((()=>rw(u)?u.get():u),[u]);return(0,n.createElement)(t,{...l,children:d})}}function Vw(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const qw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Kw(e,t,r,n){Vw(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(qw.has(i)?i:kb(i),t.attrs[i])}function Ww(e,t){const{style:r}=e,n={};for(const i in r)(rw(r[i])||t.style&&rw(t.style[i])||tw(i,e))&&(n[i]=r[i]);return n}function Gw(e,t){const r=Ww(e,t);for(const n in e)if(rw(e[n])||rw(t[n])){r[-1!==Qb.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function Zw(e,t,r,n={},i={}){return"function"===typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}function Yw(e){const t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Xw=e=>Array.isArray(e),Jw=e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue),Qw=e=>Xw(e)?e[e.length-1]||0:e;function ex(e){const t=rw(e)?e.get():e;return Jw(t)?t.toValue():t}const tx=e=>(t,r)=>{const i=(0,n.useContext)(wb),o=(0,n.useContext)(gb),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:rx(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a}(e,t,i,o);return r?a():Yw(a)};function rx(e,t,r,n){const i={},o=n(e,{});for(const h in o)i[h]=ex(o[h]);let{initial:a,animate:s}=e;const c=zb(e),l=Bb(e);t&&l&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!==typeof d&&!Lb(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const r=Zw(e,t);if(!r)return;const{transitionEnd:n,transition:o,...a}=r;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in n)i[e]=n[e]}))}return i}const nx=e=>e,{schedule:ix,cancel:ox,state:ax,steps:sx}=Cb("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:nx,!0),cx={useVisualState:tx({scrapeMotionValuesFromProps:Gw,createRenderState:Uw,onMount:(e,t,{renderState:r,latestValues:n})=>{ix.read((()=>{try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),ix.render((()=>{Bw(r,n,{enableHardwareAcceleration:!1},Fw(t.tagName),e.transformTemplate),Kw(t,r)}))}})},lx={useVisualState:tx({scrapeMotionValuesFromProps:Ww,createRenderState:Tw})};function ux(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const dx=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function hx(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const fx=e=>t=>dx(t)&&e(t,hx(t));function px(e,t,r,n){return ux(e,t,fx(r),n)}const mx=(e,t)=>r=>t(e(r)),gx=(...e)=>e.reduce(mx);function vx(e){let t=null;return()=>{const r=()=>{t=null};return null===t&&(t=e,r)}}const yx=vx("dragHorizontal"),bx=vx("dragVertical");function wx(e){let t=!1;if("y"===e)t=bx();else if("x"===e)t=yx();else{const e=yx(),r=bx();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function xx(){const e=wx(!0);return!e||(e(),!1)}class _x{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Sx(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End");return px(e.current,r,((r,i)=>{if("touch"===r.pointerType||xx())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&ix.update((()=>o[n](r,i)))}),{passive:!e.getProps()[n]})}const kx=(e,t)=>!!t&&(e===t||kx(e,t.parentElement));function Ex(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,hx(r))}const Ax=new WeakMap,Px=new WeakMap,Tx=e=>{const t=Ax.get(e.target);t&&t(e)},Ox=e=>{e.forEach(Tx)};function Cx(e,t,r){const n=function({root:e,...t}){const r=e||document;Px.has(r)||Px.set(r,{});const n=Px.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Ox,{root:e,...t})),n[i]}(t);return Ax.set(e,r),n.observe(e),()=>{Ax.delete(e),n.unobserve(e)}}const jx={some:0,all:1};const Rx={inView:{Feature:class extends _x{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"===typeof n?n:jx[n]};return Cx(this.node.current,o,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends _x{constructor(){super(...arguments),this.removeStartListeners=nx,this.removeEndListeners=nx,this.removeAccessibleListeners=nx,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),n=px(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();ix.update((()=>{i||kx(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)}))}),{passive:!(r.onTap||r.onPointerUp)}),i=px(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=gx(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=ux(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=ux(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Ex("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&ix.update((()=>r(e,t)))}))})),Ex("down",((e,t)=>{this.startPress(e,t)}))})),t=ux(this.node.current,"blur",(()=>{this.isPressing&&Ex("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=gx(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&ix.update((()=>r(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xx()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&ix.update((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=px(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=ux(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=gx(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends _x{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=gx(ux(this.node.current,"focus",(()=>this.onFocus())),ux(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends _x{mount(){this.unmount=gx(Sx(this.node,!0),Sx(this.node,!1))}unmount(){}}}};function Ix(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[r]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.getVelocity())),t}(e))}let Lx=nx,Nx=nx;const Dx=e=>1e3*e,zx=e=>e/1e3,Bx=!1,Ux=e=>Array.isArray(e)&&"number"===typeof e[0];function Fx(e){return Boolean(!e||"string"===typeof e&&Hx[e]||Ux(e)||Array.isArray(e)&&e.every(Fx))}const $x=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Hx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$x([0,.65,.55,1]),circOut:$x([.55,0,1,.45]),backIn:$x([.31,.01,.66,-.59]),backOut:$x([.33,1.53,.69,.99])};function Vx(e){if(e)return Ux(e)?$x(e):Array.isArray(e)?e.map(Vx):Hx[e]}const qx=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Kx=1e-7,Wx=12;function Gx(e,t,r,n){if(e===t&&r===n)return nx;const i=t=>function(e,t,r,n,i){let o,a,s=0;do{a=t+(r-t)/2,o=qx(a,n,i)-e,o>0?r=a:t=a}while(Math.abs(o)>Kx&&++s0===e||1===e?e:qx(i(e),t,n)}const Zx=Gx(.42,0,1,1),Yx=Gx(0,0,.58,1),Xx=Gx(.42,0,.58,1),Jx=e=>Array.isArray(e)&&"number"!==typeof e[0],Qx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,e_=e=>t=>1-e(1-t),t_=e=>1-Math.sin(Math.acos(e)),r_=e_(t_),n_=Qx(t_),i_=Gx(.33,1.53,.69,.99),o_=e_(i_),a_=Qx(o_),s_={linear:nx,easeIn:Zx,easeInOut:Xx,easeOut:Yx,circIn:t_,circInOut:n_,circOut:r_,backIn:o_,backInOut:a_,backOut:i_,anticipate:e=>(e*=2)<1?.5*o_(e):.5*(2-Math.pow(2,-10*(e-1)))},c_=e=>{if(Array.isArray(e)){Nx(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return Gx(t,r,n,i)}return"string"===typeof e?(Nx(void 0!==s_[e],`Invalid easing type '${e}'`),s_[e]):e},l_=(e,t)=>r=>Boolean(vw(r)&&gw.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),u_=(e,t,r)=>n=>{if(!vw(n))return n;const[i,o,a,s]=n.match(pw);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},d_={...uw,transform:e=>Math.round((e=>lw(0,255,e))(e))},h_={test:l_("rgb","red"),parse:u_("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+d_.transform(e)+", "+d_.transform(t)+", "+d_.transform(r)+", "+fw(dw.transform(n))+")"};const f_={test:l_("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:h_.transform},p_={test:l_("hsl","hue"),parse:u_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ww.transform(fw(t))+", "+ww.transform(fw(r))+", "+fw(dw.transform(n))+")"},m_={test:e=>h_.test(e)||f_.test(e)||p_.test(e),parse:e=>h_.test(e)?h_.parse(e):p_.test(e)?p_.parse(e):f_.parse(e),transform:e=>vw(e)?e:e.hasOwnProperty("red")?h_.transform(e):p_.transform(e)},g_=(e,t,r)=>-r*e+r*t+e;function v_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}const y_=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},b_=[f_,h_,p_];function w_(e){const t=(e=>b_.find((t=>t.test(e))))(e);Nx(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===p_&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=v_(s,n,e+1/3),o=v_(s,n,e),a=v_(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(r)),r}const x_=(e,t)=>{const r=w_(e),n=w_(t),i={...r};return e=>(i.red=y_(r.red,n.red,e),i.green=y_(r.green,n.green,e),i.blue=y_(r.blue,n.blue,e),i.alpha=g_(r.alpha,n.alpha,e),h_.transform(i))};const __={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:nx},S_={regex:mw,countKey:"Colors",token:"${c}",parse:m_.parse},k_={regex:pw,countKey:"Numbers",token:"${n}",parse:uw.parse};function E_(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function A_(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&E_(r,__),E_(r,S_),E_(r,k_),r}function P_(e){return A_(e).values}function T_(e){const{values:t,numColors:r,numVars:n,tokenised:i}=A_(e),o=t.length;return e=>{let t=i;for(let i=0;i"number"===typeof e?0:e;const C_={test:function(e){var t,r;return isNaN(e)&&vw(e)&&((null===(t=e.match(pw))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(mw))||void 0===r?void 0:r.length)||0)>0},parse:P_,createTransformer:T_,getAnimatableNone:function(e){const t=P_(e);return T_(e)(t.map(O_))}},j_=(e,t)=>r=>`${r>0?t:e}`;function R_(e,t){return"number"===typeof e?r=>g_(e,t,r):m_.test(e)?x_(e,t):e.startsWith("var(")?j_(e,t):L_(e,t)}const I_=(e,t)=>{const r=[...e],n=r.length,i=e.map(((e,r)=>R_(e,t[r])));return e=>{for(let t=0;t{const r={...e,...t},n={};for(const i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=R_(e[i],t[i]));return e=>{for(const t in n)r[t]=n[t](e);return r}},L_=(e,t)=>{const r=C_.createTransformer(t),n=A_(e),i=A_(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?gx(I_(n.values,i.values),r):(Lx(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),j_(e,t))},N_=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},D_=(e,t)=>r=>g_(e,t,r);function z_(e,t,r){const n=[],i=r||function(e){return"number"===typeof e?D_:"string"===typeof e?m_.test(e)?x_:L_:Array.isArray(e)?I_:"object"===typeof e?M_:D_}(e[0]),o=e.length-1;for(let a=0;at[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=z_(t,n,i),s=a.length,c=t=>{let r=0;if(s>1)for(;rc(lw(e[0],e[o-1],t)):c}function U_(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=N_(0,t,n);e.push(g_(r,1,i))}}(t,e.length-1),t}function F_({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=Jx(n)?n.map(c_):c_(n),o={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:U_(t),e),s=B_(a,t,{ease:Array.isArray(i)?i:(c=t,l=i,c.map((()=>l||Xx)).splice(0,c.length-1))});var c,l;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}function $_(e,t){return t?e*(1e3/t):0}const H_=5;function V_(e,t,r){const n=Math.max(t-H_,0);return $_(r-e(n),t-n)}const q_=.001,K_=.01,W_=10,G_=.05,Z_=1;function Y_({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Lx(e<=Dx(W_),"Spring duration must be 10 seconds or less");let a=1-t;a=lw(G_,Z_,a),e=lw(K_,W_,zx(e)),a<1?(i=t=>{const n=t*a,i=n*e,o=n-r,s=J_(t,a),c=Math.exp(-i);return q_-o/s*c},o=t=>{const n=t*a*e,o=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,c=Math.exp(-n),l=J_(Math.pow(t,2),a);return(-i(t)+q_>0?-1:1)*((o-s)*c)/l}):(i=t=>Math.exp(-t*e)*((t-r)*e+1)-q_,o=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let i=1;ivoid 0!==e[t]))}function rS({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:c,mass:l,duration:u,velocity:d,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tS(e,eS)&&tS(e,Q_)){const r=Y_(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-zx(n.velocity||0)}),f=d||0,p=c/(2*Math.sqrt(s*l)),m=o-i,g=zx(Math.sqrt(s/l)),v=Math.abs(m)<5;let y;if(r||(r=v?.01:2),t||(t=v?.005:.5),p<1){const e=J_(g,p);y=t=>{const r=Math.exp(-p*g*t);return o-r*((f+p*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===p)y=e=>o-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const r=Math.exp(-p*g*t),n=Math.min(e*t,300);return o-r*((f+p*g*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}return{calculatedDuration:h&&u||null,next:e=>{const n=y(e);if(h)a.done=e>=u;else{let i=f;0!==e&&(i=p<1?V_(y,e,n):0);const s=Math.abs(i)<=r,c=Math.abs(o-n)<=t;a.done=s&&c}return a.value=a.done?o:n,a}}}function nS({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=e=>void 0===s?c:void 0===c||Math.abs(s-e)-p*Math.exp(-e/n),y=e=>g+v(e),b=e=>{const t=v(e),r=y(e);h.done=Math.abs(t)<=l,h.value=h.done?g:r};let w,x;const _=e=>{(e=>void 0!==s&&ec)(h.value)&&(w=e,x=rS({keyframes:[h.value,f(h.value)],velocity:V_(y,e,h.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),_(e)),void 0!==w&&e>w?x.next(e-w):(!t&&b(e),h)}}}let iS;function oS(){iS=void 0}const aS={now:()=>(void 0===iS&&aS.set(ax.isProcessing||Pb?ax.timestamp:performance.now()),iS),set:e=>{iS=e,queueMicrotask(oS)}},sS=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ix.update(t,!0),stop:()=>ox(t),now:()=>ax.isProcessing?ax.timestamp:aS.now()}},cS=2e4;function lS(e){let t=0;let r=e.next(t);for(;!r.done&&t=cS?1/0:t}const uS={decay:nS,inertia:nS,tween:F_,keyframes:F_,spring:rS};function dS({autoplay:e=!0,delay:t=0,driver:r=sS,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:c,onStop:l,onComplete:u,onUpdate:d,...h}){let f,p,m=1,g=!1;const v=()=>{p=new Promise((e=>{f=e}))};let y;v();const b=uS[i]||F_;let w;b!==F_&&"number"!==typeof n[0]&&(w=B_([0,100],n,{clamp:!1}),n=[0,100]);const x=b({...h,keyframes:n});let _;"mirror"===s&&(_=b({...h,keyframes:[...n].reverse(),velocity:-(h.velocity||0)}));let S="idle",k=null,E=null,A=null;null===x.calculatedDuration&&o&&(x.calculatedDuration=lS(x));const{calculatedDuration:P}=x;let T=1/0,O=1/0;null!==P&&(T=P+a,O=T*(o+1)-a);let C=0;const j=e=>{if(null===E)return;m>0&&(E=Math.min(E,e)),m<0&&(E=Math.min(e-O/m,E)),C=null!==k?k:Math.round(e-E)*m;const r=C-t*(m>=0?1:-1),i=m>=0?r<0:r>O;C=Math.max(r,0),"finished"===S&&null===k&&(C=O);let c=C,l=x;if(o){const e=Math.min(C,O)/T;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,o+1);Boolean(t%2)&&("reverse"===s?(r=1-r,a&&(r-=a/T)):"mirror"===s&&(l=_)),c=lw(0,1,r)*T}const u=i?{done:!1,value:n[0]}:l.next(c);w&&(u.value=w(u.value));let{done:h}=u;i||null===P||(h=m>=0?C>=O:C<=0);const f=null===k&&("finished"===S||"running"===S&&h);return d&&d(u.value),f&&M(),u},R=()=>{y&&y.stop(),y=void 0},I=()=>{S="idle",R(),f(),v(),E=A=null},M=()=>{S="finished",u&&u(),R(),f()},L=()=>{if(g)return;y||(y=r(j));const e=y.now();c&&c(),null!==k?E=e-k:E&&"finished"!==S||(E=e),"finished"===S&&v(),A=E,k=null,S="running",y.start()};e&&L();const N={then:(e,t)=>p.then(e,t),get time(){return zx(C)},set time(e){e=Dx(e),C=e,null===k&&y&&0!==m?E=y.now()-e/m:k=e},get duration(){const e=null===x.calculatedDuration?lS(x):x.calculatedDuration;return zx(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,N.time=zx(C))},get state(){return S},play:L,pause:()=>{S="paused",k=C},stop:()=>{g=!0,"idle"!==S&&(S="idle",l&&l(),I())},cancel:()=>{null!==A&&j(A),I()},complete:()=>{S="finished"},sample:e=>(E=0,j(e))};return N}const hS=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),fS=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function pS(e,t,{onUpdate:r,onComplete:n,...i}){if(!(hS()&&fS.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,a,s=!1,c=!1;const l=()=>{a=new Promise((e=>{o=e}))};l();let{keyframes:u,duration:d=300,ease:h,times:f}=i;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Fx(t.ease))(t,i)){const e=dS({...i,repeat:0,delay:0});let t={done:!1,value:u[0]};const r=[];let n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;f=void 0,u=r,d=n-10,h="linear"}const p=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:c}={}){const l={[t]:r};c&&(l.offset=c);const u=Vx(s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,u,{...i,duration:d,ease:h,times:f}),m=()=>{c=!1,p.cancel()},g=()=>{c=!0,ix.update(m),o(),l()};p.onfinish=()=>{c||(e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2===1?0:e.length-1]}(u,i)),n&&n(),g())};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,nx),get time(){return zx(p.currentTime||0)},set time(e){p.currentTime=Dx(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return zx(d)},play:()=>{s||(p.play(),ox(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const r=dS({...i,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}g()},complete:()=>{c||p.finish()},cancel:g}}const mS={type:"spring",stiffness:500,damping:25,restSpeed:10},gS={type:"keyframes",duration:.8},vS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yS=(e,{keyframes:t})=>t.length>2?gS:ew.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:mS:vS,bS=(e,t)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!C_.test(t)&&"0"!==t||t.startsWith("url("))),wS=new Set(["brightness","contrast","saturate","opacity"]);function xS(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(pw)||[];if(!n)return e;const i=r.replace(n,"");let o=wS.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const _S=/([a-z-]*)\(.*?\)/g,SS={...C_,getAnimatableNone:e=>{const t=e.match(_S);return t?t.map(xS).join(" "):e}},kS={...Aw,color:m_,backgroundColor:m_,outlineColor:m_,fill:m_,stroke:m_,borderColor:m_,borderTopColor:m_,borderRightColor:m_,borderBottomColor:m_,borderLeftColor:m_,filter:SS,WebkitFilter:SS},ES=e=>kS[e];function AS(e,t){let r=ES(e);return r!==SS&&(r=C_),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const PS=e=>/^0[^.\s]+$/.test(e);function TS(e){return"number"===typeof e?0===e:null!==e?"none"===e||"0"===e||PS(e):void 0}function OS(e,t){return e[t]||e.default||e}const CS=(e,t,r,n={})=>i=>{const o=OS(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s-=Dx(a);const c=function(e,t,r,n){const i=bS(t,r);let o;o=Array.isArray(r)?[...r]:[null,r];const a=void 0!==n.from?n.from:e.get();let s;const c=[];for(let l=0;l{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}(o)||(f={...f,...yS(e,f)}),f.duration&&(f.duration=Dx(f.duration)),f.repeatDelay&&(f.repeatDelay=Dx(f.repeatDelay)),!d||!h||Bx||!1===o.type||Ab)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:nx,pause:nx,stop:nx,then:e=>(e(),Promise.resolve()),cancel:nx,complete:nx});return t?dS({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(Bx?{...f,delay:0}:f);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=pS(t,e,f);if(r)return r}return dS(f)};function jS(e){return Boolean(rw(e)&&e.add)}const RS=e=>/^\-?\d*\.?\d+$/.test(e);function IS(e,t){-1===e.indexOf(t)&&e.push(t)}function MS(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class LS{constructor(){this.subscriptions=[]}add(e){return IS(this.subscriptions,e),()=>MS(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i{const r=aS.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=aS.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new LS);const r=this.events[e].add(t);return"change"===e?()=>{r(),ix.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return NS.current&&NS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=aS.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return $_(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zS(e,t){return new DS(e,t)}const BS=e=>t=>t.test(e),US=[uw,xw,ww,bw,Sw,_w,{test:e=>"auto"===e,parse:e=>e}],FS=e=>US.find(BS(e)),$S=[...US,m_,C_],HS=e=>$S.find(BS(e));function VS(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,zS(r))}function qS(e,t){const r=Mx(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){VS(e,a,Qw(o[a]))}}function KS(e,t){if(!t)return;return(t[e]||t.default||t).from}function WS({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function GS(e,t){const r=e.get();if(!Array.isArray(t))return r!==t;for(let n=0;nc.remove(d)))),l.push(h)}return a&&Promise.all(l).then((()=>{a&&qS(e,a)})),l}function YS(e,t,r={}){const n=Mx(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(ZS(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,c=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(XS).forEach(((e,n)=>{e.notify("AnimationStart",t),a.push(YS(e,t,{...o,delay:r+c(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then((()=>t()))}return Promise.all([o(),a(r.delay)])}function XS(e,t){return e.sortNodePosition(t)}const JS=[...Nb].reverse(),QS=Nb.length;function ek(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>YS(e,t,r)));n=Promise.all(i)}else if("string"===typeof t)n=YS(e,t,r);else{const i="function"===typeof t?Mx(e,t,r.custom):t;n=Promise.all(ZS(e,i,r))}return n.then((()=>e.notify("AnimationComplete",t)))}(e,t,r))))}function tk(e){let t=ek(e);const r={animate:nk(!0),whileInView:nk(),whileHover:nk(),whileTap:nk(),whileDrag:nk(),whileFocus:nk(),exit:nk()};let n=!0;const i=(t,r)=>{const n=Mx(e,r);if(n){const{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){const s=e.getProps(),c=e.getVariantContext(!0)||{},l=[],u=new Set;let d={},h=1/0;for(let t=0;th&&g,w=!1;const x=Array.isArray(m)?m:[m];let _=x.reduce(i,{});!1===v&&(_={});const{prevResolvedValues:S={}}=p,k={...S,..._},E=e=>{b=!0,u.has(e)&&(w=!0,u.delete(e)),p.needsAnimating[e]=!0};for(const e in k){const t=_[e],r=S[e];if(d.hasOwnProperty(e))continue;let n=!1;n=Xw(t)&&Xw(r)?!Ix(t,r):t!==r,n?void 0!==t?E(e):u.add(e):void 0!==t&&u.has(e)?E(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=_,p.isActive&&(d={...d,..._}),n&&e.blockInitialAnimation&&(b=!1),!b||y&&!w||l.push(...x.map((e=>({animation:e,options:{type:f,...o}}))))}if(u.size){const t={};u.forEach((r=>{const n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)})),l.push({animation:t})}let f=Boolean(l.length);return!n||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(f=!1),n=!1,f?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const s=o(i,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function rk(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!Ix(t,e)}function nk(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ik=0;const ok={animation:{Feature:class extends _x{constructor(e){super(e),e.animationState||(e.animationState=tk(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Lb(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends _x{constructor(){super(...arguments),this.id=ik++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!==r&&void 0!==r?r:this.node.getProps().custom});t&&!e&&i.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},ak=(e,t)=>Math.abs(e-t);class sk{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=uk(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=ak(e.x,t.x),n=ak(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:i}=ax;this.history.push({...n,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ck(t,this.transformPagePoint),ix.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=uk("pointercancel"===e.type?this.lastMoveEventInfo:ck(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!dx(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const o=ck(hx(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=ax;this.history=[{...a,timestamp:s}];const{onSessionStart:c}=t;c&&c(e,uk(o,this.history)),this.removeListeners=gx(px(this.contextWindow,"pointermove",this.handlePointerMove),px(this.contextWindow,"pointerup",this.handlePointerUp),px(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ox(this.updatePoint)}}function ck(e,t){return t?{point:t(e.point)}:e}function lk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uk({point:e},t){return{point:e,delta:lk(e,hk(t)),offset:lk(e,dk(t)),velocity:fk(t,.1)}}function dk(e){return e[0]}function hk(e){return e[e.length-1]}function fk(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=hk(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Dx(t)));)r--;if(!n)return{x:0,y:0};const o=zx(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function pk(e){return e.max-e.min}function mk(e,t=0,r=.01){return Math.abs(e-t)<=r}function gk(e,t,r,n=.5){e.origin=n,e.originPoint=g_(t.min,t.max,e.origin),e.scale=pk(r)/pk(t),(mk(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=g_(r.min,r.max,e.origin)-e.originPoint,(mk(e.translate)||isNaN(e.translate))&&(e.translate=0)}function vk(e,t,r,n){gk(e.x,t.x,r.x,n?n.originX:void 0),gk(e.y,t.y,r.y,n?n.originY:void 0)}function yk(e,t,r){e.min=r.min+t.min,e.max=e.min+pk(t)}function bk(e,t,r){e.min=t.min-r.min,e.max=e.min+pk(t)}function wk(e,t,r){bk(e.x,t.x,r.x),bk(e.y,t.y,r.y)}function xk(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function _k(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Pk=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Tk(e){return[e("x"),e("y")]}function Ok({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Ck(e){return void 0===e||1===e}function jk({scale:e,scaleX:t,scaleY:r}){return!Ck(e)||!Ck(t)||!Ck(r)}function Rk(e){return jk(e)||Ik(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ik(e){return Mk(e.x)||Mk(e.y)}function Mk(e){return e&&"0%"!==e}function Lk(e,t,r){return r+t*(e-r)}function Nk(e,t,r,n,i){return void 0!==i&&(e=Lk(e,i,n)),Lk(e,r,n)+t}function Dk(e,t=0,r=1,n,i){e.min=Nk(e.min,t,r,n,i),e.max=Nk(e.max,t,r,n,i)}function zk(e,{x:t,y:r}){Dk(e.x,t.translate,t.scale,t.originPoint),Dk(e.y,r.translate,r.scale,r.originPoint)}function Bk(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Uk(e,t){e.min=e.min+t,e.max=e.max+t}function Fk(e,t,[r,n,i]){const o=void 0!==t[i]?t[i]:.5,a=g_(e.min,e.max,o);Dk(e,t[r],t[n],a,t.scale)}const $k=["x","scaleX","originX"],Hk=["y","scaleY","originY"];function Vk(e,t){Fk(e.x,t,$k),Fk(e.y,t,Hk)}function qk(e,t){return Ok(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const Kk=({current:e})=>e?e.ownerDocument.defaultView:null,Wk=new WeakMap;class Gk{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pk(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new sk(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(hx(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=wx(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tk((e=>{let t=this.getAxisMotionValue(e).get()||0;if(ww.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=pk(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&ix.update((()=>i(e,t)),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Tk((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:Kk(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:i}=this.getProps();i&&ix.update((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!Zk(e,n,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?g_(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&Ib(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:i}){return{x:xk(e.x,r,i),y:xk(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=Sk){return!1===e?e=0:!0===e&&(e=Sk),{x:kk(e,"left","right"),y:kk(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Tk((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ib(e))return!1;const r=e.current;Nx(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const i=function(e,t,r){const n=qk(e,r),{scroll:i}=t;return i&&(Uk(n.x,i.offset.x),Uk(n.y,i.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:_k(e.x,t.x),y:_k(e.y,t.y)}}(n.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=Ok(e))}return o}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},c=Tk((a=>{if(!Zk(a,t,this.currentDirection))return;let c=s&&s[a]||{};o&&(c={min:0,max:0});const l=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(a,d)}));return Promise.all(c).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(CS(e,r,0,t))}stopAnimation(){Tk((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Tk((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Tk((t=>{const{drag:r}=this.getProps();if(!Zk(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-g_(r,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!Ib(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};Tk((e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();n[e]=function(e,t){let r=.5;const n=pk(e),i=pk(t);return i>n?r=N_(t.min,t.max-n,e.min):n>i&&(r=N_(e.min,e.max-i,t.min)),lw(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Tk((t=>{if(!Zk(t,e,null))return;const r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(g_(i,o,n[t]))}))}addListeners(){if(!this.visualElement.current)return;Wk.set(this.visualElement,this);const e=px(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Ib(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const i=ux(window,"resize",(()=>this.scalePositionWithinConstraints())),o=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Tk((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{i(),e(),n(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=Sk,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Zk(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}const Yk=e=>(t,r)=>{e&&ix.update((()=>e(t,r)))};const Xk={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qk={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!xw.test(e))return e;e=parseFloat(e)}return`${Jk(e,t.target.x)}% ${Jk(e,t.target.y)}%`}},eE={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=C_.parse(e);if(i.length>5)return n;const o=C_.createTransformer(e),a="number"!==typeof i[0]?1:0,s=r.x.scale*t.x,c=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=c;const l=g_(s,c,.5);return"number"===typeof i[2+a]&&(i[2+a]/=l),"number"===typeof i[3+a]&&(i[3+a]/=l),o(i)}};class tE extends n.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;var o;o=nE,Object.assign(Jb,o),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Xk.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o?(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||ix.postRender((()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),jb.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rE(e){const[t,r]=vb(),i=(0,n.useContext)(Vb);return n.createElement(tE,{...e,layoutGroup:i,switchLayoutGroup:(0,n.useContext)(qb),isPresent:t,safeToRemove:r})}const nE={borderRadius:{...Qk,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qk,borderTopRightRadius:Qk,borderBottomLeftRadius:Qk,borderBottomRightRadius:Qk,boxShadow:eE},iE=["TopLeft","TopRight","BottomLeft","BottomRight"],oE=iE.length,aE=e=>"string"===typeof e?parseFloat(e):e,sE=e=>"number"===typeof e||xw.test(e);function cE(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const lE=dE(0,.5,r_),uE=dE(.5,.95,nx);function dE(e,t,r){return n=>nt?1:r(N_(e,t,n))}function hE(e,t){e.min=t.min,e.max=t.max}function fE(e,t){hE(e.x,t.x),hE(e.y,t.y)}function pE(e,t,r,n,i){return e=Lk(e-=t,1/r,n),void 0!==i&&(e=Lk(e,1/i,n)),e}function mE(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){ww.test(t)&&(t=parseFloat(t),t=g_(a.min,a.max,t/100)-a.min);if("number"!==typeof t)return;let s=g_(o.min,o.max,n);e===o&&(s-=t),e.min=pE(e.min,t,r,s,i),e.max=pE(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}const gE=["x","scaleX","originX"],vE=["y","scaleY","originY"];function yE(e,t,r,n){mE(e.x,t,gE,r?r.x:void 0,n?n.x:void 0),mE(e.y,t,vE,r?r.y:void 0,n?n.y:void 0)}function bE(e){return 0===e.translate&&1===e.scale}function wE(e){return bE(e.x)&&bE(e.y)}function xE(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function _E(e){return pk(e.x)/pk(e.y)}class SE{constructor(){this.members=[]}add(e){IS(this.members,e),e.scheduleRender()}remove(e){if(MS(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let n=t;n>=0;n--){const e=this.members[n];if(!1!==e.isPresent){r=e;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kE(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(n+=`scale(${a}, ${s})`),n||"none"}const EE=(e,t)=>e.depth-t.depth;class AE{constructor(){this.children=[],this.isDirty=!1}add(e){IS(this.children,e),this.isDirty=!0}remove(e){MS(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(EE),this.isDirty=!1,this.children.forEach(e)}}const PE=["","X","Y","Z"],TE={visibility:"hidden"};let OE=0;const CE={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jE({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=(null===t||void 0===t?void 0:t())){this.id=OE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,CE.totalNodes=CE.resolvedTargetDeltas=CE.recalculatedProjection=0,this.nodes.forEach(ME),this.nodes.forEach(FE),this.nodes.forEach($E),this.nodes.forEach(LE),e=CE,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=aS.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(ox(n),e(o-t))};return ix.read(n,!0),()=>ox(n)}(n,250),Xk.hasAnimatedSinceResize&&(Xk.hasAnimatedSinceResize=!1,this.nodes.forEach(UE))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||a.getDefaultTransition()||GE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),c=!this.targetLayout||!xE(this.targetLayout,n)||r,l=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);const t={...OS(i,"layout"),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||UE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ox(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(HE),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;ithis.update())))}clearAllSnapshots(){this.nodes.forEach(NE),this.sharedNodes.forEach(VE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ix.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ix.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let r=0;r{const r=t/1e3;qE(o.x,e.x,r),qE(o.y,e.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wk(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,n){KE(e.x,t.x,r.x,n),KE(e.y,t.y,r.y,n)}(this.relativeTarget,this.relativeTargetOrigin,a,r),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Pk()),fE(d,this.relativeTarget)),s&&(this.animationValues=i,function(e,t,r,n,i,o){i?(e.opacity=g_(0,void 0!==r.opacity?r.opacity:1,lE(n)),e.opacityExit=g_(void 0!==t.opacity?t.opacity:1,0,uE(n))):o&&(e.opacity=g_(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let a=0;a{Xk.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=rw(e)?e:zS(e);return n.start(CS("",n,t,r)),n.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&JE(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||Pk();const t=pk(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=pk(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}fE(t,r),Vk(t,i),vk(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new SE);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const n={};for(let i=0;i{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(DE),this.root.sharedNodes.clear()}}}function RE(e){e.updateLayout()}function IE(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?Tk((e=>{const n=o?r.measuredBox[e]:r.layoutBox[e],i=pk(n);n.min=t[e].min,n.max=n.min+i})):JE(i,r.layoutBox,t)&&Tk((n=>{const i=o?r.measuredBox[n]:r.layoutBox[n],a=pk(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a=Ak();vk(a,t,r.layoutBox);const s=Ak();o?vk(s,e.applyTransform(n,!0),r.measuredBox):vk(s,t,r.layoutBox);const c=!wE(a);let l=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:i,layout:o}=n;if(i&&o){const a=Pk();wk(a,r.layoutBox,i.layoutBox);const s=Pk();wk(s,t,o.layoutBox),xE(a,s)||(l=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ME(e){CE.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function LE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function NE(e){e.clearSnapshot()}function DE(e){e.clearMeasurements()}function zE(e){e.isLayoutDirty=!1}function BE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function UE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FE(e){e.resolveTargetDelta()}function $E(e){e.calcProjection()}function HE(e){e.resetRotation()}function VE(e){e.removeLeadSnapshot()}function qE(e,t,r){e.translate=g_(t.translate,0,r),e.scale=g_(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function KE(e,t,r,n){e.min=g_(t.min,r.min,n),e.max=g_(t.max,r.max,n)}function WE(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const GE={duration:.45,ease:[.4,0,.1,1]},ZE=e=>"undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().includes(e),YE=ZE("applewebkit/")&&!ZE("chrome/")?Math.round:nx;function XE(e){e.min=YE(e.min),e.max=YE(e.max)}function JE(e,t,r){return"position"===e||"preserve-aspect"===e&&!mk(_E(t),_E(r),.2)}const QE=jE({attachResizeListener:(e,t)=>ux(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eA={current:void 0},tA=jE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!eA.current){const e=new QE({});e.mount(window),e.setOptions({layoutScroll:!0}),eA.current=e}return eA.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),rA={pan:{Feature:class extends _x{constructor(){super(...arguments),this.removePointerDownListener=nx}onPointerDown(e){this.session=new sk(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kk(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:Yk(e),onStart:Yk(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&ix.update((()=>n(e,t)))}}}mount(){this.removePointerDownListener=px(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends _x{constructor(e){super(e),this.removeGroupControls=nx,this.removeListeners=nx,this.controls=new Gk(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nx}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:tA,MeasureLayout:rE}},nA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const iA=4;function oA(e,t,r=1){Nx(r<=iA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=function(e){const t=nA.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const e=o.trim();return RS(e)?parseFloat(e):e}return sw(i)?oA(i,t,r+1):i}const aA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),sA=e=>aA.has(e),cA=e=>e===uw||e===xw,lA=(e,t)=>parseFloat(e.split(", ")[t]),uA=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return lA(i[1],t);{const t=n.match(/^matrix\((.+)\)$/);return t?lA(t[1],e):0}},dA=new Set(["x","y","z"]),hA=Qb.filter((e=>!dA.has(e)));const fA={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:uA(4,13),y:uA(5,14)};fA.translateX=fA.x,fA.translateY=fA.y;const pA=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(sA);let o=[],a=!1;const s=[];if(i.forEach((i=>{const c=e.getValue(i);if(!e.hasValue(i))return;let l=r[i],u=FS(l);const d=t[i];let h;if(Xw(d)){const e=d.length,t=null===d[0]?1:0;l=d[t],u=FS(l);for(let r=t;r{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],c.jump(d))})),s.length){const r=s.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach((e=>{s[e]=fA[e](n,o)})),t.render();const c=t.measureViewportBox();return r.forEach((r=>{const n=t.getValue(r);n&&n.jump(s[r]),e[r]=fA[r](c,o)})),e})(t,e,s);return o.length&&o.forEach((([t,r])=>{e.getValue(t).set(r)})),e.render(),xb&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}return{target:t,transitionEnd:n}};function mA(e,t,r,n){return(e=>Object.keys(e).some(sA))(t)?pA(e,t,r,n):{target:t,transitionEnd:n}}const gA=(e,t,r,n)=>{const i=function(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach((e=>{const t=e.get();if(!sw(t))return;const r=oA(t,n);r&&e.set(r)}));for(const i in t){const e=t[i];if(!sw(e))continue;const o=oA(e,n);o&&(t[i]=o,r||(r={}),void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return mA(e,t=i.target,r,n=i.transitionEnd)},vA={current:null},yA={current:!1};const bA=new WeakMap,wA=Object.keys(Hb),xA=wA.length,_A=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],SA=Db.length;class kA{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ix.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=zb(t),this.isVariantNode=Bb(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...l}=this.scrapeMotionValuesFromProps(t,{});for(const u in l){const e=l[u];void 0!==a[u]&&rw(e)&&(e.set(a[u],!1),jS(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,bA.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),yA.current||function(){if(yA.current=!0,xb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vA.current=e.matches;e.addListener(t),t()}else vA.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||vA.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bA.delete(this.current),this.projection&&this.projection.unmount(),ox(this.notifyUpdate),ox(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=ew.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&ix.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{n(),i()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let s=0;sthis.scheduleRender(),animationType:"string"===typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:c})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pk()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let r=0;r<_A.length;r++){const t=_A[r];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const n=e["on"+t];n&&(this.propEventSubscriptions[t]=this.on(t,n))}this.prevMotionValues=function(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if(rw(o))e.addValue(i,o),jS(n)&&n.add(i);else if(rw(a))e.addValue(i,zS(o,{owner:e})),jS(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){const t=e.getValue(i);!t.hasAnimated&&t.set(o)}else{const t=e.getStaticValue(i);e.addValue(i,zS(void 0!==t?t:o,{owner:e}))}}for(const i in r)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let r=0;rt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=zS(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,n="string"===typeof r||"object"===typeof r?null===(t=Zw(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||rw(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new LS),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class EA extends kA{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},n){const i=function(e,t,r){const n={};for(const i in e){const e=KS(i,t);if(void 0!==e)n[i]=e;else{const e=r.getValue(i);e&&(n[i]=e.get())}}return n}(r,e||{},this);if(n){!function(e,t,r){var n,i;const o=Object.keys(t).filter((t=>!e.hasValue(t))),a=o.length;if(a)for(let s=0;s{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,n){Vw(e,t,r,n)}}class PA extends EA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ew.has(t)){const e=ES(t);return e&&e.default||0}return t=qw.has(t)?t:kb(t),e.getAttribute(t)}measureInstanceViewportBox(){return Pk()}scrapeMotionValuesFromProps(e,t){return Gw(e,t)}build(e,t,r,n){Bw(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){Kw(e,t,0,n)}mount(e){this.isSVGTag=Fw(e.tagName),super.mount(e)}}const TA=(e,t)=>Xb(e)?new PA(t,{enableHardwareAcceleration:!1}):new AA(t,{enableHardwareAcceleration:!0}),OA={...ok,...Rx,...rA,...{layout:{ProjectionNode:tA,MeasureLayout:rE}}},CA=Zb(((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...Xb(e)?cx:lx,preloadedFeatures:r,useRender:Hw(t),createVisualElement:n,Component:e}}(e,t,OA,TA)));var jA={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},RA=(0,n.memo)((e=>{const{id:t,message:r,onCloseComplete:i,onRequestRemove:o,requestClose:a=!1,position:s="bottom",duration:c=5e3,containerStyle:l,motionVariants:u=jA,toastSpacing:d="0.5rem"}=e,[h,f]=(0,n.useState)(c),p=yb();mb((()=>{p||null==i||i()}),[p]),mb((()=>{f(c)}),[c]);const m=()=>{p&&o()};(0,n.useEffect)((()=>{p&&a&&o()}),[p,a,o]),function(e,t){const r=pb(e);(0,n.useEffect)((()=>{if(null==t)return;let e=null;return e=window.setTimeout((()=>{r()}),t),()=>{e&&window.clearTimeout(e)}}),[t,r])}(m,h);const g=(0,n.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l})),[l,d]),v=(0,n.useMemo)((()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s)),[s]);return(0,un.jsx)(CA.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(c),custom:{position:s},style:v,children:(0,un.jsx)(ln.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:w(r,{id:t,onClose:m})})})}));function IA(e,t){var r;const n=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==i?void 0:i[t])?r:n}RA.displayName="ToastComponent";var MA={path:(0,un.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,un.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,un.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,un.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},LA=g(((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:o=!1,children:a,className:s,__css:c,...l}=e,u={ref:t,focusable:o,className:v("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,..._n("Icon",e)}},d=null!=n?n:MA.viewBox;if(r&&"string"!==typeof r)return(0,un.jsx)(ln.svg,{as:r,...u,...l});const h=null!=a?a:MA.path;return(0,un.jsx)(ln.svg,{verticalAlign:"middle",viewBox:d,...u,...l,children:h})}));LA.displayName="Icon";function NA(e){return(0,un.jsx)(LA,{viewBox:"0 0 24 24",...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[DA,zA]=En({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[BA,UA]=En({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),FA={info:{icon:function(e){return(0,un.jsx)(LA,{viewBox:"0 0 24 24",...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:NA,colorScheme:"orange"},success:{icon:function(e){return(0,un.jsx)(LA,{viewBox:"0 0 24 24",...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:NA,colorScheme:"red"},loading:{icon:In,colorScheme:"blue"}};var $A=g((function(e,t){var r;const{status:n="info",addRole:i=!0,...o}=ht(e),a=null!=(r=e.colorScheme)?r:function(e){return FA[e].colorScheme}(n),s=Sn("Alert",{...e,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,un.jsx)(DA,{value:{status:n},children:(0,un.jsx)(BA,{value:s,children:(0,un.jsx)(ln.div,{"data-status":n,role:i?"alert":void 0,ref:t,...o,className:v("chakra-alert",e.className),__css:c})})})}));function HA(e){const{status:t}=zA(),r=function(e){return FA[e].icon}(t),n=UA(),i="loading"===t?n.spinner:n.icon;return(0,un.jsx)(ln.span,{display:"inherit","data-status":t,...e,className:v("chakra-alert__icon",e.className),__css:i,children:e.children||(0,un.jsx)(r,{h:"100%",w:"100%"})})}$A.displayName="Alert",HA.displayName="AlertIcon";var VA=g((function(e,t){const r=UA(),{status:n}=zA();return(0,un.jsx)(ln.div,{ref:t,"data-status":n,...e,className:v("chakra-alert__title",e.className),__css:r.title})}));VA.displayName="AlertTitle";var qA=g((function(e,t){const r=UA(),{status:n}=zA(),i={display:"inline",...r.description};return(0,un.jsx)(ln.div,{ref:t,"data-status":n,...e,className:v("chakra-alert__desc",e.className),__css:i})}));function KA(e){return(0,un.jsx)(LA,{focusable:"false","aria-hidden":!0,...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}qA.displayName="AlertDescription";var WA=g((function(e,t){const r=_n("CloseButton",e),{children:n,isDisabled:i,__css:o,...a}=ht(e);return(0,un.jsx)(ln.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...o},...a,children:n||(0,un.jsx)(KA,{width:"1em",height:"1em"})})}));WA.displayName="CloseButton";var GA=function(e){let t=e;const r=new Set,n=e=>{t=e(t),r.forEach((e=>e()))};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{n((()=>e)),r.delete(t)}),removeToast:(e,t)=>{n((r=>({...r,[t]:r[t].filter((t=>t.id!=e))})))},notify:(e,t)=>{const r=function(e,t={}){var r,n;ZA+=1;const i=null!=(r=t.id)?r:ZA,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>GA.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:i,id:o}=r;return n((e=>{var t,n;const o=i.includes("top")?[r,...null!=(t=e[i])?t:[]]:[...null!=(n=e[i])?n:[],r];return{...e,[i]:o}})),o},update:(e,t)=>{e&&n((r=>{const n={...r},{position:i,index:o}=db(n,e);return i&&-1!==o&&(n[i][o]={...n[i][o],...t,message:XA(t)}),n}))},closeAll:({positions:e}={})=>{n((t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((e,r)=>(e[r]=t[r].map((e=>({...e,requestClose:!0}))),e)),{...t})))},close:e=>{n((t=>{const r=hb(t,e);return r?{...t,[r]:t[r].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(db(GA.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var ZA=0;var YA=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:a,description:s,colorScheme:c,icon:l}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,un.jsxs)($A,{addRole:!1,status:t,variant:r,id:null==u?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[(0,un.jsx)(HA,{children:l}),(0,un.jsxs)(ln.div,{flex:"1",maxWidth:"100%",children:[i&&(0,un.jsx)(VA,{id:null==u?void 0:u.title,children:i}),s&&(0,un.jsx)(qA,{id:null==u?void 0:u.description,display:"block",children:s})]}),o&&(0,un.jsx)(WA,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function XA(e={}){const{render:t,toastComponent:r=YA}=e;return n=>"function"===typeof t?t({...n,...e}):(0,un.jsx)(r,{...n,...e})}function JA(){const e=(0,n.useRef)(!1);return _b((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class QA extends n.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function eP({children:e,isPresent:t}){const r=(0,n.useId)(),i=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)((()=>{const{width:e,height:n,top:a,left:s}=o.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${n}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),n.createElement(QA,{isPresent:t,childRef:i,sizeRef:o},n.cloneElement(e,{ref:i}))}const tP=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:s})=>{const c=Yw(rP),l=(0,n.useId)(),u=(0,n.useMemo)((()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:e=>{c.set(e,!0);for(const t of c.values())if(!t)return;i&&i()},register:e=>(c.set(e,!1),()=>c.delete(e))})),a?void 0:[r]);return(0,n.useMemo)((()=>{c.forEach(((e,t)=>c.set(t,!1)))}),[r]),n.useEffect((()=>{!r&&!c.size&&i&&i()}),[r]),"popLayout"===s&&(e=n.createElement(eP,{isPresent:r},e)),n.createElement(gb.Provider,{value:u},e)};function rP(){return new Map}const nP=e=>e.key||"";const iP=({children:e,custom:t,initial:r=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Nx(!o,"Replace exitBeforeEnter with mode='wait'");const c=(0,n.useContext)(Vb).forceRender||function(){const e=JA(),[t,r]=(0,n.useState)(0),i=(0,n.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,n.useCallback)((()=>ix.postRender(i)),[i]),t]}()[0],l=JA(),u=function(e){const t=[];return n.Children.forEach(e,(e=>{(0,n.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const h=(0,n.useRef)(new Map).current,f=(0,n.useRef)(d),p=(0,n.useRef)(new Map).current,m=(0,n.useRef)(!0);var g;if(_b((()=>{m.current=!1,function(e,t){e.forEach((e=>{const r=nP(e);t.set(r,e)}))}(u,p),f.current=d})),g=()=>{m.current=!0,p.clear(),h.clear()},(0,n.useEffect)((()=>()=>g()),[]),m.current)return n.createElement(n.Fragment,null,d.map((e=>n.createElement(tP,{key:nP(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},e))));d=[...d];const v=f.current.map(nP),y=u.map(nP),b=v.length;for(let n=0;n{if(-1!==y.indexOf(r))return;const o=p.get(r);if(!o)return;const m=v.indexOf(r);let g=e;if(!g){const e=()=>{h.delete(r);const e=Array.from(p.keys()).filter((e=>!y.includes(e)));if(e.forEach((e=>p.delete(e))),f.current=u.filter((t=>{const n=nP(t);return n===r||e.includes(n)})),!h.size){if(!1===l.current)return;c(),i&&i()}};g=n.createElement(tP,{key:nP(o),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:a,mode:s},o),h.set(r,g)}d.splice(m,0,g)})),d=d.map((e=>{const t=e.key;return h.has(t)?e:n.createElement(tP,{key:nP(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)})),n.createElement(n.Fragment,null,h.size?d:d.map((e=>(0,n.cloneElement)(e))))};var[oP,aP]=En({strict:!1,name:"PortalContext"}),sP="chakra-portal",cP=e=>(0,un.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),lP=e=>{const{appendToParentPortal:t,children:r}=e,[i,o]=(0,n.useState)(null),a=(0,n.useRef)(null),[,s]=(0,n.useState)({});(0,n.useEffect)((()=>s({})),[]);const c=aP(),l=ih();yh((()=>{if(!i)return;const e=i.ownerDocument,r=t&&null!=c?c:e.body;if(!r)return;a.current=e.createElement("div"),a.current.className=sP,r.appendChild(a.current),s({});const n=a.current;return()=>{r.contains(n)&&r.removeChild(n)}}),[i]);const u=(null==l?void 0:l.zIndex)?(0,un.jsx)(cP,{zIndex:null==l?void 0:l.zIndex,children:r}):r;return a.current?(0,Kn.createPortal)((0,un.jsx)(oP,{value:a.current,children:u}),a.current):(0,un.jsx)("span",{ref:e=>{e&&o(e)}})},uP=e=>{const{children:t,containerRef:r,appendToParentPortal:i}=e,o=r.current,a=null!=o?o:"undefined"!==typeof window?document.body:void 0,s=(0,n.useMemo)((()=>{const e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=sP),e}),[o]),[,c]=(0,n.useState)({});return yh((()=>c({})),[]),yh((()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}}),[s,a]),a&&s?(0,Kn.createPortal)((0,un.jsx)(oP,{value:i?s:null,children:t}),s):null};function dP(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,un.jsx)(uP,{containerRef:r,...n}):(0,un.jsx)(lP,{...n})}dP.className=sP,dP.selector=".chakra-portal",dP.displayName="Portal";var[hP,fP]=En({name:"ToastOptionsContext",strict:!1}),pP=e=>{const t=(0,n.useSyncExternalStore)(GA.subscribe,GA.getState,GA.getState),{motionVariants:r,component:i=RA,portalProps:o}=e,a=Object.keys(t).map((e=>{const n=t[e];return(0,un.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:fb(e),children:(0,un.jsx)(iP,{initial:!1,children:n.map((e=>(0,un.jsx)(i,{motionVariants:r,...e},e.id)))})},e)}));return(0,un.jsx)(dP,{...o,children:a})},mP=e=>function({children:t,theme:r=e,toastOptions:n,...i}){return(0,un.jsxs)(kh,{theme:r,...i,children:[(0,un.jsx)(hP,{value:null==n?void 0:n.defaultOptions,children:t}),(0,un.jsx)(pP,{...n})]})},gP=mP(cb),vP=(mP(lb),new Set(["dark","light","system"]));function yP(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,i=function(e){let t=e;return vP.has(t)||(t="light"),t}(t);return`!${"cookie"===r?`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();\n `:`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();\n `}`.trim()}function bP(e={}){const{nonce:t}=e;return(0,un.jsx)("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:yP(e)}})}var wP=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function xP(e){return"function"===typeof e}var _P=e=>function(...t){let r=[...t],n=t[t.length-1];var i;return y(i=n)&&wP.every((e=>Object.prototype.hasOwnProperty.call(i,e)))&&r.length>1?r=r.slice(0,r.length-1):n=e,function(...e){return t=>e.reduce(((e,t)=>t(e)),t)}(...r.map((e=>t=>xP(e)?e(t):function(...e){return A({},...e,kP)}(t,e))))(n)},SP=_P(cb);_P(lb);function kP(e,t,r,n){if((xP(e)||xP(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>{const n=xP(e)?e(...r):e,i=xP(t)?t(...r):t;return A({},n,i,kP)}}const EP={orange:"#FB4F57",orangeL:"#FC7884",blue:"#0D99FF",blueL:"#4FA2FF",green:"#00C39A",greenL:"#00E7B6",black:"#000000",white:"#FFFFFF",gray:{900:"#121212",800:"#181818",700:"#282828",600:"#2C2B2B",500:"#414141",450:"#707070",400:"#C2C2C2",300:"#D6D6D6",200:"#EBEBEB",100:"#F0F0F0",50:"#F5F5F5"}},AP={borderRadius:"full",bg:EP.gray[600],_disabled:{bg:EP.gray[700],color:EP.gray[450]},_hover:{color:EP.green,bg:EP.gray[500],_disabled:{bg:EP.gray[700],color:EP.gray[450]}}},PP={sizes:{md:{height:"38px",fontSize:"14px",minWidth:"38px"},lg:{height:"48px",fontSize:"16px",minWidth:"48px"}},variants:{primary:{bg:EP.blue,_disabled:{bg:EP.gray[500],color:EP.gray[450],opacity:1},_hover:{_disabled:{bg:EP.gray[500],color:EP.gray[450],opacity:1},bg:EP.blueL}},secondary:{border:"1px solid",borderColor:EP.green,_disabled:{color:EP.gray[450],borderColor:EP.gray[500],opacity:1},_hover:{bg:EP.green,_disabled:{color:EP.gray[450],borderColor:EP.gray[500],opacity:1}}},tertiary:{bg:"transparent",border:"1px solid",borderColor:EP.gray[500],_disabled:{color:EP.gray[450],opacity:1},_hover:{border:"1px solid",borderColor:EP.gray[600],bg:EP.gray[600],_disabled:{borderColor:EP.gray[500],color:EP.gray[450],opacity:1}}},warning:{bg:EP.orange,_disabled:{bg:EP.gray[500],color:EP.gray[450],opacity:1},_hover:{bg:EP.orangeL,_disabled:{bg:EP.gray[500],color:EP.gray[450],opacity:1}}},circle_without_hover_color:{...AP,_hover:{color:EP.green,_disabled:{bg:EP.gray[700],color:EP.gray[450]}}},circle_without_color:AP,circle:{...AP,color:EP.gray[300]},specialCTA:{color:EP.greenL,_hover:{color:EP.green}},CTAWithIcon:{padding:"8px 7px",color:EP.gray[300],_hover:{color:EP.green},_disabled:{color:EP.gray[450]}},popover:{color:EP.gray[300],stroke:EP.gray[450],width:"100%",padding:0,height:"24px",justifyContent:"end",_hover:{color:EP.green,stroke:EP.green}}},defaultProps:{variant:"primary",size:"md"}},{definePartsStyle:TP,defineMultiStyleConfig:OP}=lt(Xh.keys),CP=OP({baseStyle:TP({icon:{color:"white"},control:{marginTop:"-20px",width:"20px",height:"20px",borderWidth:"2px",borderColor:EP.gray[400],borderRadius:"2px",_checked:{borderColor:EP.green,bg:EP.green,color:EP.white,_hover:{bg:EP.green,borderColor:EP.green}}}})}),{definePartsStyle:jP,defineMultiStyleConfig:RP}=lt(Jh.keys),IP=RP({baseStyle:jP((e=>({body:{padding:"18px 30px 30px 30px",borderLeft:`1px solid ${EP.gray[800]}`},dialog:{bg:EP.gray[900]}}))),sizes:{md:{dialog:{maxW:"594px"}}},defaultProps:{size:"md"}}),{definePartsStyle:MP,defineMultiStyleConfig:LP}=lt(nf.keys),NP=LP({variants:{onboardingNotice:MP({item:{"&::marker":{color:EP.gray[400]}}}),suggestions:MP({item:{_hover:{background:EP.gray[500]},background:EP.gray[700],borderRadius:"4px",cursor:"pointer",height:"28px",listStyleType:"none"},container:{background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px",listStyleType:"none",marginLeft:"0 !important",overflowX:"hidden",padding:"10px",position:"absolute",width:"100%",zIndex:2,maxHeight:"130px"}})}}),{definePartsStyle:DP,defineMultiStyleConfig:zP}=lt(af.keys),BP={top:"10px",position:"absolute",color:EP.gray[400],borderRadius:"18px"},UP={...BP,insetEnd:"10px"},FP={...BP,insetStart:"10px"},$P=zP({baseStyle:DP({dialog:{padding:"40px",_dark:{bg:EP.gray[900],border:"1px solid",borderColor:EP.gray[700],borderRadius:"8px"}},overlay:{_dark:{bg:"rgba(0, 0, 0, 0.85)"}},closeButton:UP,body:{padding:0},footer:{padding:"32px 0 0 0"},header:{padding:0}}),sizes:{md:{dialog:{maxW:"482px"}}}}),{definePartsStyle:HP,defineMultiStyleConfig:VP}=lt(uf.keys),qP=VP({variants:{primary:HP({control:{height:"16px",width:"16px",_dark:{borderColor:EP.gray[400]},_checked:{backgroundColor:EP.green,borderColor:EP.green,border:"none",color:"white"}}})}}),{definePartsStyle:KP,defineMultiStyleConfig:WP}=lt(gf.keys),GP={xs:{fontSize:"12px"},sm:{fontSize:"14px"},md:{fontSize:"16px"},lg:{fontSize:"18px"},xl:{fontSize:"20px"},"2xl":{fontSize:"24px"},"3xl":{fontSize:"30px"},"4xl":{fontSize:"36px"},"5xl":{fontSize:"48px"},"6xl":{fontSize:"69px"}},ZP=SP({components:{Tabs:WP({baseStyle:KP({tab:{_selected:{fontWeight:600,color:EP.white,borderColor:EP.orange,borderBottom:`2px solid ${EP.orange}`}}})}),Text:{baseStyle:{fontWeight:"400"},sizes:GP},Heading:{baseStyle:{fontWeight:"600"},sizes:GP},Checkbox:CP,Input:{sizes:{md:{field:{height:"48px"}}},defaultProps:{variant:"filled"},variants:{filled:{field:{bg:EP.gray[800],border:"1px solid",borderColor:EP.gray[500],_invalid:{borderColor:EP.orange},_hover:{bg:EP.gray[800]},_focusVisible:{bg:EP.gray[800],borderColor:EP.gray[450]}}}}},Button:PP,FormLabel:{baseStyle:{fontWeight:"600",marginBottom:"12px",size:"md"},sizes:GP},Modal:$P,Drawer:IP,Radio:qP,List:NP},config:{initialColorMode:"dark",useSystemColorMode:!1},colors:{umami:EP,text:{dark:EP.gray[400]}},styles:{global:{body:{bg:EP.black,color:EP.white}}}}),YP=e=>(0,un.jsxs)(gP,{theme:ZP,children:[(0,un.jsx)(bP,{initialColorMode:ZP.config.initialColorMode}),e.children]});function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function aT(e,t,r,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=JP.Pop,c=null,l=u();function u(){return(a.state||{idx:null}).idx}function d(){s=JP.Pop;let e=u(),t=null==e?null:e-l;l=e,c&&c({action:s,location:f.location,delta:t})}function h(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,r="string"===typeof e?e:iT(e);return eT(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==l&&(l=0,a.replaceState(XP({},a.state,{idx:l}),""));let f={get action(){return s},get location(){return e(i,a)},listen(e){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(QP,d),c=e,()=>{i.removeEventListener(QP,d),c=null}},createHref:e=>t(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=JP.Push;let n=nT(f.location,e,t);r&&r(n,e),l=u()+1;let d=rT(n,l),h=f.createHref(n);try{a.pushState(d,"",h)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(h)}o&&c&&c({action:s,location:f.location,delta:1})},replace:function(e,t){s=JP.Replace;let n=nT(f.location,e,t);r&&r(n,e),l=u();let i=rT(n,l),d=f.createHref(n);a.replaceState(i,"",d),o&&c&&c({action:s,location:f.location,delta:0})},go:e=>a.go(e)};return f}var sT;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(sT||(sT={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function cT(e,t,r){void 0===r&&(r="/");let n=_T(("string"===typeof t?oT(t):t).pathname||"/",r);if(null==n)return null;let i=lT(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let a=0;null==o&&a{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(eT(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let s=PT([n,a.relativePath]),c=r.concat(a);e.children&&e.children.length>0&&(eT(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),lT(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:yT(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of uT(e.path))i(e,t,n);else i(e,t)})),t}function uT(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return i?[o,""]:[o];let a=uT(n.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const dT=/^:\w+$/,hT=3,fT=2,pT=1,mT=10,gT=-2,vT=e=>"*"===e;function yT(e,t){let r=e.split("/"),n=r.length;return r.some(vT)&&(n+=gT),t&&(n+=fT),r.filter((e=>!vT(e))).reduce(((e,t)=>e+(dT.test(t)?hT:""===t?pT:mT)),n)}function bT(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let a=0;a(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1),c=n.reduce(((e,t,r)=>{let{paramName:n,isOptional:i}=t;if("*"===n){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const c=s[r];return e[n]=i&&!c?void 0:function(e,t){try{return decodeURIComponent(e)}catch(r){return tT(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(c||"",n),e}),{});return{params:c,pathname:o,pathnameBase:a,pattern:e}}function xT(e){try{return decodeURI(e)}catch(t){return tT(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function _T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function ST(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function kT(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function ET(e,t){let r=kT(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function AT(e,t,r,n){let i;void 0===n&&(n=!1),"string"===typeof e?i=oT(e):(i=XP({},e),eT(!i.pathname||!i.pathname.includes("?"),ST("?","pathname","search",i)),eT(!i.pathname||!i.pathname.includes("#"),ST("#","pathname","hash",i)),eT(!i.search||!i.search.includes("#"),ST("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"===typeof e?oT(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:OT(n),hash:CT(i)}}(i,o),l=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return c.pathname.endsWith("/")||!l&&!u||(c.pathname+="/"),c}const PT=e=>e.join("/").replace(/\/\/+/g,"/"),TT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OT=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",CT=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function jT(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const RT=["post","put","patch","delete"],IT=(new Set(RT),["get",...RT]);new Set(IT),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function MT(){return MT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r.current=!0}));let i=n.useCallback((function(n,i){void 0===i&&(i={}),r.current&&("number"===typeof n?e.navigate(n):e.navigate(n,MT({fromRouteId:t},i)))}),[e,t]);return i}():function(){FT()||eT(!1);let e=n.useContext(LT),{basename:t,future:r,navigator:i}=n.useContext(DT),{matches:o}=n.useContext(BT),{pathname:a}=$T(),s=JSON.stringify(ET(o,r.v7_relativeSplatPath)),c=n.useRef(!1);HT((()=>{c.current=!0}));let l=n.useCallback((function(r,n){if(void 0===n&&(n={}),!c.current)return;if("number"===typeof r)return void i.go(r);let o=AT(r,JSON.parse(s),a,"path"===n.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:PT([t,o.pathname])),(n.replace?i.replace:i.push)(o,n.state,n)}),[t,i,s,a,e]);return l}()}function qT(e,t){let{relative:r}=void 0===t?{}:t,{future:i}=n.useContext(DT),{matches:o}=n.useContext(BT),{pathname:a}=$T(),s=JSON.stringify(ET(o,i.v7_relativeSplatPath));return n.useMemo((()=>AT(e,JSON.parse(s),a,"path"===r)),[e,s,a,r])}function KT(e,t,r,i){FT()||eT(!1);let{navigator:o}=n.useContext(DT),{matches:a}=n.useContext(BT),s=a[a.length-1],c=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,d=$T();if(t){var h;let e="string"===typeof t?oT(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||eT(!1),u=e}else u=d;let f=u.pathname||"/",p=cT(e,{pathname:"/"===l?f:f.slice(l.length)||"/"});let m=XT(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:PT([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:PT([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,r,i);return t&&m?n.createElement(zT.Provider,{value:{location:MT({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:JP.Pop}},m):m}function WT(){let e=function(){var e;let t=n.useContext(UT),r=tO(QT.UseRouteError),i=rO(QT.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[i]}(),t=jT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:o},r):null,null)}const GT=n.createElement(WT,null);class ZT extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(BT.Provider,{value:this.props.routeContext},n.createElement(UT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function YT(e){let{routeContext:t,match:r,children:i}=e,o=n.useContext(LT);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(BT.Provider,{value:t},i)}function XT(e,t,r,i){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===i&&(i=null),null==e){var a;if(null==(a=r)||!a.errors)return null;e=r.matches}let s=e,c=null==(o=r)?void 0:o.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||eT(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,u=-1;if(r&&i&&i.v7_partialHydration)for(let n=0;n=0?s.slice(0,u+1):[s[0]];break}}}return s.reduceRight(((e,i,o)=>{let a,d=!1,h=null,f=null;r&&(a=c&&i.route.id?c[i.route.id]:void 0,h=i.route.errorElement||GT,l&&(u<0&&0===o?(!function(e,t,r){t||nO[e]||(nO[e]=!0)}("route-fallback",!1),d=!0,f=null):u===o&&(d=!0,f=i.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,o+1)),m=()=>{let t;return t=a?h:d?f:i.route.Component?n.createElement(i.route.Component,null):i.route.element?i.route.element:e,n.createElement(YT,{match:i,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?n.createElement(ZT,{location:r.location,revalidation:r.revalidation,component:h,error:a,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}var JT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(JT||{}),QT=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(QT||{});function eO(e){let t=n.useContext(LT);return t||eT(!1),t}function tO(e){let t=n.useContext(NT);return t||eT(!1),t}function rO(e){let t=function(e){let t=n.useContext(BT);return t||eT(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||eT(!1),r.route.id}const nO={};i.startTransition;function iO(e){let{to:t,replace:r,state:i,relative:o}=e;FT()||eT(!1);let{future:a,static:s}=n.useContext(DT),{matches:c}=n.useContext(BT),{pathname:l}=$T(),u=VT(),d=AT(t,ET(c,a.v7_relativeSplatPath),l,"path"===o),h=JSON.stringify(d);return n.useEffect((()=>u(JSON.parse(h),{replace:r,state:i,relative:o})),[u,h,o,r,i]),null}function oO(e){eT(!1)}function aO(e){let{basename:t="/",children:r=null,location:i,navigationType:o=JP.Pop,navigator:a,static:s=!1,future:c}=e;FT()&&eT(!1);let l=t.replace(/^\/*/,"/"),u=n.useMemo((()=>({basename:l,navigator:a,static:s,future:MT({v7_relativeSplatPath:!1},c)})),[l,c,a,s]);"string"===typeof i&&(i=oT(i));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:m="default"}=i,g=n.useMemo((()=>{let e=_T(d,l);return null==e?null:{location:{pathname:e,search:h,hash:f,state:p,key:m},navigationType:o}}),[l,d,h,f,p,m,o]);return null==g?null:n.createElement(DT.Provider,{value:u},n.createElement(zT.Provider,{children:r,value:g}))}function sO(e){let{children:t,location:r}=e;return KT(cO(t),r)}new Promise((()=>{}));n.Component;function cO(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,((e,i)=>{if(!n.isValidElement(e))return;let o=[...t,i];if(e.type===n.Fragment)return void r.push.apply(r,cO(e.props.children,o));e.type!==oO&&eT(!1),e.props.index&&e.props.children&&eT(!1);let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=cO(e.props.children,o)),r.push(a)})),r}function lO(){return lO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}function dO(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const hO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];new Map;const fO=i.startTransition;Wn.flushSync;function pO(e){let{basename:t,children:r,future:i,window:o}=e,a=n.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),aT((function(e,t){let{pathname:r="/",search:n="",hash:i=""}=oT(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),nT("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"===typeof t?t:iT(t))}),(function(e,t){tT("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}({window:o,v5Compat:!0}));let s=a.current,[c,l]=n.useState({action:s.action,location:s.location}),{v7_startTransition:u}=i||{},d=n.useCallback((e=>{u&&fO?fO((()=>l(e))):l(e)}),[l,u]);return n.useLayoutEffect((()=>s.listen(d)),[s,d]),n.createElement(aO,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:s,future:i})}const mO="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,gO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vO=n.forwardRef((function(e,t){let r,{onClick:i,relative:o,reloadDocument:a,replace:s,state:c,target:l,to:u,preventScrollReset:d,unstable_viewTransition:h}=e,f=uO(e,hO),{basename:p}=n.useContext(DT),m=!1;if("string"===typeof u&&gO.test(u)&&(r=u,mO))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=_T(t.pathname,p);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(y){}let g=function(e,t){let{relative:r}=void 0===t?{}:t;FT()||eT(!1);let{basename:i,navigator:o}=n.useContext(DT),{hash:a,pathname:s,search:c}=qT(e,{relative:r}),l=s;return"/"!==i&&(l="/"===s?i:PT([i,s])),o.createHref({pathname:l,search:c,hash:a})}(u,{relative:o}),v=function(e,t){let{target:r,replace:i,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:c}=void 0===t?{}:t,l=VT(),u=$T(),d=qT(e,{relative:s});return n.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let r=void 0!==i?i:iT(u)===iT(d);l(e,{replace:r,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:c})}}),[u,l,d,i,o,r,e,a,s,c])}(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:h});return n.createElement("a",lO({},f,{href:r||g,onClick:m||a?i:function(e){i&&i(e),e.defaultPrevented||v(e)},ref:t,target:l}))}));var yO,bO;function wO(e){let t=n.useRef(dO(e)),r=n.useRef(!1),i=$T(),o=n.useMemo((()=>function(e,t){let r=dO(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(i.search,r.current?null:t.current)),[i.search]),a=VT(),s=n.useCallback(((e,t)=>{const n=dO("function"===typeof e?e(o):e);r.current=!0,a("?"+n,t)}),[a,o]);return[o,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(yO||(yO={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(bO||(bO={}));function xO(e,t){return function(){return e.apply(t,arguments)}}const{toString:_O}=Object.prototype,{getPrototypeOf:SO}=Object,kO=(e=>t=>{const r=_O.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),EO=e=>(e=e.toLowerCase(),t=>kO(t)===e),AO=e=>t=>typeof t===e,{isArray:PO}=Array,TO=AO("undefined");const OO=EO("ArrayBuffer");const CO=AO("string"),jO=AO("function"),RO=AO("number"),IO=e=>null!==e&&"object"===typeof e,MO=e=>{if("object"!==kO(e))return!1;const t=SO(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},LO=EO("Date"),NO=EO("File"),DO=EO("Blob"),zO=EO("FileList"),BO=EO("URLSearchParams");function UO(e,t,{allOwnKeys:r=!1}={}){if(null===e||"undefined"===typeof e)return;let n,i;if("object"!==typeof e&&(e=[e]),PO(e))for(n=0,i=e.length;n0;)if(n=r[i],t===n.toLowerCase())return n;return null}const $O="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,HO=e=>!TO(e)&&e!==$O;const VO=(qO="undefined"!==typeof Uint8Array&&SO(Uint8Array),e=>qO&&e instanceof qO);var qO;const KO=EO("HTMLFormElement"),WO=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),GO=EO("RegExp"),ZO=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};UO(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},YO="abcdefghijklmnopqrstuvwxyz",XO="0123456789",JO={DIGIT:XO,ALPHA:YO,ALPHA_DIGIT:YO+YO.toUpperCase()+XO};const QO=EO("AsyncFunction"),eC={isArray:PO,isArrayBuffer:OO,isBuffer:function(e){return null!==e&&!TO(e)&&null!==e.constructor&&!TO(e.constructor)&&jO(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||jO(e.append)&&("formdata"===(t=kO(e))||"object"===t&&jO(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&OO(e.buffer),t},isString:CO,isNumber:RO,isBoolean:e=>!0===e||!1===e,isObject:IO,isPlainObject:MO,isUndefined:TO,isDate:LO,isFile:NO,isBlob:DO,isRegExp:GO,isFunction:jO,isStream:e=>IO(e)&&jO(e.pipe),isURLSearchParams:BO,isTypedArray:VO,isFileList:zO,forEach:UO,merge:function e(){const{caseless:t}=HO(this)&&this||{},r={},n=(n,i)=>{const o=t&&FO(r,i)||i;MO(r[o])&&MO(n)?r[o]=e(r[o],n):MO(n)?r[o]=e({},n):PO(n)?r[o]=n.slice():r[o]=n};for(let i=0,o=arguments.length;i(UO(t,((t,n)=>{r&&jO(t)?e[n]=xO(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&SO(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:kO,kindOfTest:EO,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(PO(e))return e;let t=e.length;if(!RO(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:KO,hasOwnProperty:WO,hasOwnProp:WO,reduceDescriptors:ZO,freezeMethods:e=>{ZO(e,((t,r)=>{if(jO(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];jO(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return PO(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:FO,global:$O,isContextDefined:HO,ALPHABET:JO,generateString:(e=16,t=JO.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&jO(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(IO(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=PO(e)?[]:{};return UO(e,((e,t)=>{const o=r(e,n+1);!TO(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:QO,isThenable:e=>e&&(IO(e)||jO(e))&&jO(e.then)&&jO(e.catch)};function tC(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}eC.inherits(tC,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eC.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rC=tC.prototype,nC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{nC[e]={value:e}})),Object.defineProperties(tC,nC),Object.defineProperty(rC,"isAxiosError",{value:!0}),tC.from=(e,t,r,n,i,o)=>{const a=Object.create(rC);return eC.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),tC.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const iC=tC;var oC=r(4872).Buffer;function aC(e){return eC.isPlainObject(e)||eC.isArray(e)}function sC(e){return eC.endsWith(e,"[]")?e.slice(0,-2):e}function cC(e,t,r){return e?e.concat(t).map((function(e,t){return e=sC(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const lC=eC.toFlatObject(eC,{},null,(function(e){return/^is[A-Z]/.test(e)}));const uC=function(e,t,r){if(!eC.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=eC.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!eC.isUndefined(t[e])}))).metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!==typeof Blob&&Blob)&&eC.isSpecCompliantForm(t);if(!eC.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(eC.isDate(e))return e.toISOString();if(!s&&eC.isBlob(e))throw new iC("Blob is not supported. Use a Buffer instead.");return eC.isArrayBuffer(e)||eC.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):oC.from(e):e}function l(e,r,i){let s=e;if(e&&!i&&"object"===typeof e)if(eC.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(eC.isArray(e)&&function(e){return eC.isArray(e)&&!e.some(aC)}(e)||(eC.isFileList(e)||eC.endsWith(r,"[]"))&&(s=eC.toArray(e)))return r=sC(r),s.forEach((function(e,n){!eC.isUndefined(e)&&null!==e&&t.append(!0===a?cC([r],n,o):null===a?r:r+"[]",c(e))})),!1;return!!aC(e)||(t.append(cC(i,r,o),c(e)),!1)}const u=[],d=Object.assign(lC,{defaultVisitor:l,convertValue:c,isVisitable:aC});if(!eC.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!eC.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),eC.forEach(r,(function(r,o){!0===(!(eC.isUndefined(r)||null===r)&&i.call(t,r,eC.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])})),u.pop()}}(e),t};function dC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function hC(e,t){this._pairs=[],e&&uC(e,this,t)}const fC=hC.prototype;fC.append=function(e,t){this._pairs.push([e,t])},fC.toString=function(e){const t=e?function(t){return e.call(this,t,dC)}:dC;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const pC=hC;function mC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gC(e,t,r){if(!t)return e;const n=r&&r.encode||mC,i=r&&r.serialize;let o;if(o=i?i(t,r):eC.isURLSearchParams(t)?t.toString():new pC(t,r).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const vC=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){eC.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},yC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bC={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:pC,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},wC="undefined"!==typeof window&&"undefined"!==typeof document,xC=(_C="undefined"!==typeof navigator&&navigator.product,wC&&["ReactNative","NativeScript","NS"].indexOf(_C)<0);var _C;const SC="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,kC={...e,...bC};const EC=function(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&eC.isArray(n)?n.length:o,s)return eC.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a;n[o]&&eC.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&eC.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n{t(function(e){return eC.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const AC={transitional:yC,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=eC.isObject(e);i&&eC.isHTMLForm(e)&&(e=new FormData(e));if(eC.isFormData(e))return n&&n?JSON.stringify(EC(e)):e;if(eC.isArrayBuffer(e)||eC.isBuffer(e)||eC.isStream(e)||eC.isFile(e)||eC.isBlob(e))return e;if(eC.isArrayBufferView(e))return e.buffer;if(eC.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return uC(e,new kC.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return kC.isNode&&eC.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=eC.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return uC(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(eC.isString(e))try{return(t||JSON.parse)(e),eC.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||AC.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&eC.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(r){if("SyntaxError"===i.name)throw iC.from(i,iC.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kC.classes.FormData,Blob:kC.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eC.forEach(["delete","get","head","post","put","patch"],(e=>{AC.headers[e]={}}));const PC=AC,TC=eC.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),OC=Symbol("internals");function CC(e){return e&&String(e).trim().toLowerCase()}function jC(e){return!1===e||null==e?e:eC.isArray(e)?e.map(jC):String(e)}function RC(e,t,r,n,i){return eC.isFunction(n)?n.call(this,t,r):(i&&(t=r),eC.isString(t)?eC.isString(n)?-1!==t.indexOf(n):eC.isRegExp(n)?n.test(t):void 0:void 0)}class IC{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=CC(t);if(!i)throw new Error("header name must be a non-empty string");const o=eC.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=jC(e))}const o=(e,t)=>eC.forEach(e,((e,r)=>i(e,r,t)));return eC.isPlainObject(e)||e instanceof this.constructor?o(e,t):eC.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&TC[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=CC(e)){const r=eC.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(eC.isFunction(t))return t.call(this,e,r);if(eC.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=CC(e)){const r=eC.findKey(this,e);return!(!r||void 0===this[r]||t&&!RC(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=CC(e)){const i=eC.findKey(r,e);!i||t&&!RC(0,r[i],i,t)||(delete r[i],n=!0)}}return eC.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!RC(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return eC.forEach(this,((n,i)=>{const o=eC.findKey(r,i);if(o)return t[o]=jC(n),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();a!==i&&delete t[i],t[a]=jC(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return eC.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&eC.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[OC]=this[OC]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=CC(e);t[n]||(!function(e,t){const r=eC.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return eC.isArray(e)?e.forEach(n):n(e),this}}IC.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eC.reduceDescriptors(IC.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),eC.freezeMethods(IC);const MC=IC;function LC(e,t){const r=this||PC,n=t||r,i=MC.from(n.headers);let o=n.data;return eC.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function NC(e){return!(!e||!e.__CANCEL__)}function DC(e,t,r){iC.call(this,null==e?"canceled":e,iC.ERR_CANCELED,t,r),this.name="CanceledError"}eC.inherits(DC,iC,{__CANCEL__:!0});const zC=DC;const BC=kC.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];eC.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),eC.isString(n)&&a.push("path="+n),eC.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function UC(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const FC=kC.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=eC.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};const $C=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];i||(i=c),r[o]=s,n[o]=c;let u=a,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s);r=o;const l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const VC="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const i=MC.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(eC.isFormData(n))if(kC.hasStandardBrowserEnv||kC.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}const d=UC(e.baseURL,e.url);function h(){if(!u)return;const n=MC.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new iC("Request failed with status code "+r.status,[iC.ERR_BAD_REQUEST,iC.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),l()}),(function(e){r(e),l()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),gC(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(r(new iC("Request aborted",iC.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new iC("Network Error",iC.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||yC;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new iC(t,n.clarifyTimeoutError?iC.ETIMEDOUT:iC.ECONNABORTED,e,u)),u=null},kC.hasStandardBrowserEnv&&(c&&eC.isFunction(c)&&(c=c(e)),c||!1!==c&&FC(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&BC.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===n&&i.setContentType(null),"setRequestHeader"in u&&eC.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),eC.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",HC(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",HC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(r(!t||t.type?new zC(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===kC.protocols.indexOf(f)?r(new iC("Unsupported protocol "+f+":",iC.ERR_BAD_REQUEST,e)):u.send(n||null)}))},qC={http:null,xhr:VC};eC.forEach(qC,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const KC=e=>`- ${e}`,WC=e=>eC.isFunction(e)||null===e||!1===e,GC=e=>{e=eC.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(KC).join("\n"):" "+KC(e[0]):"as no adapter specified";throw new iC("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function ZC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zC(null,e)}function YC(e){ZC(e),e.headers=MC.from(e.headers),e.data=LC.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return GC(e.adapter||PC.adapter)(e).then((function(t){return ZC(e),t.data=LC.call(e,e.transformResponse,t),t.headers=MC.from(t.headers),t}),(function(t){return NC(t)||(ZC(e),t&&t.response&&(t.response.data=LC.call(e,e.transformResponse,t.response),t.response.headers=MC.from(t.response.headers))),Promise.reject(t)}))}const XC=e=>e instanceof MC?e.toJSON():e;function JC(e,t){t=t||{};const r={};function n(e,t,r){return eC.isPlainObject(e)&&eC.isPlainObject(t)?eC.merge.call({caseless:r},e,t):eC.isPlainObject(t)?eC.merge({},t):eC.isArray(t)?t.slice():t}function i(e,t,r){return eC.isUndefined(t)?eC.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!eC.isUndefined(t))return n(void 0,t)}function a(e,t){return eC.isUndefined(t)?eC.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(XC(e),XC(t),!0)};return eC.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=c[n]||i,a=o(e[n],t[n],n);eC.isUndefined(a)&&o!==s||(r[n]=a)})),r}const QC="1.6.5",ej={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ej[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const tj={};ej.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.5] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new iC(n(i," has been removed"+(t?" in "+t:"")),iC.ERR_DEPRECATED);return t&&!tj[i]&&(tj[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};const rj={assertOptions:function(e,t,r){if("object"!==typeof e)throw new iC("options must be an object",iC.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new iC("option "+o+" must be "+r,iC.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new iC("Unknown option "+o,iC.ERR_BAD_OPTION)}},validators:ej},nj=rj.validators;class ij{constructor(e){this.defaults=e,this.interceptors={request:new vC,response:new vC}}request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=JC(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&rj.assertOptions(r,{silentJSONParsing:nj.transitional(nj.boolean),forcedJSONParsing:nj.transitional(nj.boolean),clarifyTimeoutError:nj.transitional(nj.boolean)},!1),null!=n&&(eC.isFunction(n)?t.paramsSerializer={serialize:n}:rj.assertOptions(n,{encode:nj.function,serialize:nj.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&eC.merge(i.common,i[t.method]);i&&eC.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=MC.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[YC.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new zC(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new aj((function(t){e=t}));return{token:t,cancel:e}}}const sj=aj;const cj={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cj).forEach((([e,t])=>{cj[t]=e}));const lj=cj;const uj=function e(t){const r=new oj(t),n=xO(oj.prototype.request,r);return eC.extend(n,oj.prototype,r,{allOwnKeys:!0}),eC.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(JC(t,r))},n}(PC);uj.Axios=oj,uj.CanceledError=zC,uj.CancelToken=sj,uj.isCancel=NC,uj.VERSION=QC,uj.toFormData=uC,uj.AxiosError=iC,uj.Cancel=uj.CanceledError,uj.all=function(e){return Promise.all(e)},uj.spread=function(e){return function(t){return e.apply(null,t)}},uj.isAxiosError=function(e){return eC.isObject(e)&&!0===e.isAxiosError},uj.mergeConfig=JC,uj.AxiosHeaders=MC,uj.formToJSON=e=>EC(eC.isHTMLForm(e)?new FormData(e):e),uj.getAdapter=GC,uj.HttpStatusCode=lj,uj.default=uj;const dj=uj,hj=e=>(0,un.jsxs)(LA,{width:"24px",height:"24px",fill:"none",textAlign:"center",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,un.jsx)("path",{d:"M14 5.6C14 5.03995 14 4.75992 14.109 4.54601C14.2049 4.35785 14.3578 4.20487 14.546 4.10899C14.7599 4 15.0399 4 15.6 4H18.4C18.9601 4 19.2401 4 19.454 4.10899C19.6422 4.20487 19.7951 4.35785 19.891 4.54601C20 4.75992 20 5.03995 20 5.6V8.4C20 8.96005 20 9.24008 19.891 9.45399C19.7951 9.64215 19.6422 9.79513 19.454 9.89101C19.2401 10 18.9601 10 18.4 10H15.6C15.0399 10 14.7599 10 14.546 9.89101C14.3578 9.79513 14.2049 9.64215 14.109 9.45399C14 9.24008 14 8.96005 14 8.4V5.6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M4 5.6C4 5.03995 4 4.75992 4.10899 4.54601C4.20487 4.35785 4.35785 4.20487 4.54601 4.10899C4.75992 4 5.03995 4 5.6 4H8.4C8.96005 4 9.24008 4 9.45399 4.10899C9.64215 4.20487 9.79513 4.35785 9.89101 4.54601C10 4.75992 10 5.03995 10 5.6V8.4C10 8.96005 10 9.24008 9.89101 9.45399C9.79513 9.64215 9.64215 9.79513 9.45399 9.89101C9.24008 10 8.96005 10 8.4 10H5.6C5.03995 10 4.75992 10 4.54601 9.89101C4.35785 9.79513 4.20487 9.64215 4.10899 9.45399C4 9.24008 4 8.96005 4 8.4V5.6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M4 15.6C4 15.0399 4 14.7599 4.10899 14.546C4.20487 14.3578 4.35785 14.2049 4.54601 14.109C4.75992 14 5.03995 14 5.6 14H8.4C8.96005 14 9.24008 14 9.45399 14.109C9.64215 14.2049 9.79513 14.3578 9.89101 14.546C10 14.7599 10 15.0399 10 15.6V18.4C10 18.9601 10 19.2401 9.89101 19.454C9.79513 19.6422 9.64215 19.7951 9.45399 19.891C9.24008 20 8.96005 20 8.4 20H5.6C5.03995 20 4.75992 20 4.54601 19.891C4.35785 19.7951 4.20487 19.6422 4.10899 19.454C4 19.2401 4 18.9601 4 18.4V15.6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M14 15.6C14 15.0399 14 14.7599 14.109 14.546C14.2049 14.3578 14.3578 14.2049 14.546 14.109C14.7599 14 15.0399 14 15.6 14H18.4C18.9601 14 19.2401 14 19.454 14.109C19.6422 14.2049 19.7951 14.3578 19.891 14.546C20 14.7599 20 15.0399 20 15.6V18.4C20 18.9601 20 19.2401 19.891 19.454C19.7951 19.6422 19.6422 19.7951 19.454 19.891C19.2401 20 18.9601 20 18.4 20H15.6C15.0399 20 14.7599 20 14.546 19.891C14.3578 19.7951 14.2049 19.6422 14.109 19.454C14 19.2401 14 18.9601 14 18.4V15.6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),fj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M8.25 13.5H4.65C3.80992 13.5 3.38988 13.5 3.06901 13.3365C2.78677 13.1927 2.5573 12.9632 2.41349 12.681C2.25 12.3601 2.25 11.9401 2.25 11.1V5.4C2.25 4.55992 2.25 4.13988 2.41349 3.81901C2.5573 3.53677 2.78677 3.3073 3.06901 3.16349C3.38988 3 3.80992 3 4.65 3H13.35C14.1901 3 14.6101 3 14.931 3.16349C15.2132 3.3073 15.4427 3.53677 15.5865 3.81901C15.75 4.13988 15.75 4.55992 15.75 5.4V8.25M2.25 6H15.75M13.5 15V10.5M15.75 12.7506L11.25 12.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),pj=e=>(0,un.jsx)(LA,{fill:"none",viewBox:"0 0 13 17",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M13 12.5L10.75 12.5M10.75 12.5L8.5 12.5M10.75 12.5V10.25M10.75 12.5V14.75M6.25 14.75H1C1 11.8505 3.35051 9.5 6.25 9.5C6.77123 9.5 7.27472 9.57596 7.75 9.71741M9.25 4.25C9.25 5.90685 7.90685 7.25 6.25 7.25C4.59315 7.25 3.25 5.90685 3.25 4.25C3.25 2.59315 4.59315 1.25 6.25 1.25C7.90685 1.25 9.25 2.59315 9.25 4.25Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),mj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M13.5 15.5C13.2164 14.3589 11.981 13.5 10.5 13.5C9.019 13.5 7.78364 14.3589 7.5 15.5M21 5V7M21 11V13M21 17V19M6.2 21H14.8C15.9201 21 16.4802 21 16.908 20.782C17.2843 20.5903 17.5903 20.2843 17.782 19.908C18 19.4802 18 18.9201 18 17.8V6.2C18 5.0799 18 4.51984 17.782 4.09202C17.5903 3.71569 17.2843 3.40973 16.908 3.21799C16.4802 3 15.9201 3 14.8 3H6.2C5.0799 3 4.51984 3 4.09202 3.21799C3.71569 3.40973 3.40973 3.71569 3.21799 4.09202C3 4.51984 3 5.07989 3 6.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21ZM11.5 9.5C11.5 10.0523 11.0523 10.5 10.5 10.5C9.94772 10.5 9.5 10.0523 9.5 9.5C9.5 8.94772 9.94772 8.5 10.5 8.5C11.0523 8.5 11.5 8.94772 11.5 9.5Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),gj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],"data-testid":"baker-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3.74946 5.25V8.25M7.49946 1.5V4.5M13.4995 12V15M2.24946 6.75H5.24946M5.99946 3H8.99946M11.9995 13.5H14.9995M10.4995 5.25L12.6208 7.37132M14.6369 2.80959L15.0612 3.23385C15.3582 3.53086 15.5067 3.67937 15.5624 3.85062C15.6113 4.00125 15.6113 4.16351 15.5624 4.31414C15.5067 4.48539 15.3582 4.6339 15.0612 4.93091L4.89356 15.0985C4.59655 15.3955 4.44804 15.5441 4.2768 15.5997C4.12617 15.6486 3.9639 15.6486 3.81327 15.5997C3.64203 15.5441 3.49352 15.3955 3.19651 15.0985L2.77224 14.6743C2.47523 14.3773 2.32672 14.2288 2.27108 14.0575C2.22214 13.9069 2.22214 13.7446 2.27108 13.594C2.32672 13.4227 2.47523 13.2742 2.77224 12.9772L12.9399 2.80959C13.2369 2.51258 13.3854 2.36407 13.5566 2.30843C13.7073 2.25948 13.8695 2.25948 14.0202 2.30843C14.1914 2.36407 14.3399 2.51258 14.6369 2.80959Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),vj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",strokeWidth:"1.2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M10 4V20M14 4V20M4 8C4 8.92997 4 9.39496 4.10222 9.77646C4.37962 10.8117 5.18827 11.6204 6.22354 11.8978C6.60504 12 7.07003 12 8 12H16C16.93 12 17.395 12 17.7765 11.8978C18.8117 11.6204 19.6204 10.8117 19.8978 9.77646C20 9.39496 20 8.92997 20 8M4 8C4 7.07003 4 6.60504 4.10222 6.22354C4.37962 5.18827 5.18827 4.37962 6.22354 4.10222C6.60504 4 7.07003 4 8 4H16C16.93 4 17.395 4 17.7765 4.10222C18.8117 4.37962 19.6204 5.18827 19.8978 6.22354C20 6.60504 20 7.07003 20 8M4 8V16C4 16.93 4 17.395 4.10222 17.7765C4.37962 18.8117 5.18827 19.6204 6.22354 19.8978C6.60504 20 7.07003 20 8 20H16C16.93 20 17.395 20 17.7765 19.8978C18.8117 19.6204 19.6204 18.8117 19.8978 17.7765C20 17.395 20 16.93 20 16V8M10 16H8C7.07003 16 6.60504 16 6.22354 15.8978C5.18827 15.6204 4.37962 14.8117 4.10222 13.7765C4 13.395 4 12.93 4 12M14 16H16C16.93 16 17.395 16 17.7765 15.8978C18.8117 15.6204 19.6204 14.8117 19.8978 13.7765C20 13.395 20 12.93 20 12M7 8H7.01M17 8H17.01",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round"})}),yj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],textAlign:"center",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4 6H20M4 12H20M4 18H20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),bj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M6 9.25L7.84615 11.25L12 6.75M15.75 9C15.75 12.7279 12.7279 15.75 9 15.75C5.27208 15.75 2.25 12.7279 2.25 9C2.25 5.27208 5.27208 2.25 9 2.25C12.7279 2.25 15.75 5.27208 15.75 9Z",stroke:"#00C39A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),wj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4.5 6.75L9 11.25L13.5 6.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),xj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M7 14L11.5 9.5L7 5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),_j=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4.5 11.25L9 6.75L13.5 11.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Sj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12 10V14M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),kj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none","data-testid":"contact-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3.75 15.75C3.75 12.8505 6.10051 10.5 9 10.5C11.8995 10.5 14.25 12.8505 14.25 15.75M12 5.25C12 6.90685 10.6569 8.25 9 8.25C7.34315 8.25 6 6.90685 6 5.25C6 3.59315 7.34315 2.25 9 2.25C10.6569 2.25 12 3.59315 12 5.25Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Ej=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M7.5 12.75L6 11.25L7.5 9.75M10.5 9.75L12 11.25L10.5 12.75M9.75 2.25H6.15C5.30992 2.25 4.88988 2.25 4.56901 2.41349C4.28677 2.5573 4.0573 2.78677 3.91349 3.06901C3.75 3.38988 3.75 3.80992 3.75 4.65V13.35C3.75 14.1901 3.75 14.6101 3.91349 14.931C4.0573 15.2132 4.28677 15.4427 4.56901 15.5865C4.88988 15.75 5.30992 15.75 6.15 15.75H11.85C12.6901 15.75 13.1101 15.75 13.431 15.5865C13.7132 15.4427 13.9427 15.2132 14.0865 14.931C14.25 14.6101 14.25 14.1901 14.25 13.35V6.75M9.75 2.25L14.25 6.75M9.75 2.25V6C9.75 6.41421 10.0858 6.75 10.5 6.75H14.25",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Aj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M13.773 13.773C14.9945 12.5515 15.75 10.864 15.75 9C15.75 5.27208 12.7279 2.25 9 2.25C7.13604 2.25 5.44854 3.00552 4.22703 4.22703M13.773 13.773C12.5515 14.9945 10.864 15.75 9 15.75C5.27208 15.75 2.25 12.7279 2.25 9C2.25 7.13604 3.00552 5.44854 4.22703 4.22703M13.773 13.773L4.22703 4.22703",stroke:"#FB4F57",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Pj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3.125 9H20.875M12 3L8 9L12 20.6667L16 9L12 3ZM12.64 20.1467L20.64 9.48C20.7691 9.30787 20.8336 9.22181 20.8585 9.12728C20.8805 9.04385 20.8805 8.95615 20.8585 8.87272C20.8336 8.77819 20.7691 8.69213 20.64 8.52L16.74 3.32C16.652 3.20267 16.608 3.144 16.5522 3.10169C16.5028 3.06421 16.4469 3.03625 16.3873 3.01922C16.32 3 16.2467 3 16.1 3H7.9C7.75333 3 7.68 3 7.61269 3.01922C7.55308 3.03625 7.49715 3.06421 7.44776 3.10169C7.392 3.144 7.348 3.20267 7.26 3.32L3.36 8.52C3.2309 8.69213 3.16635 8.77819 3.14147 8.87271C3.11951 8.95615 3.11951 9.04385 3.14147 9.12728C3.16635 9.2218 3.2309 9.30787 3.36 9.48L11.36 20.1467C11.5771 20.4362 11.6857 20.5809 11.8188 20.6327C11.9353 20.678 12.0647 20.678 12.1812 20.6327C12.3143 20.5809 12.4229 20.4362 12.64 20.1467Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Tj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M9 17H13M9 13H13M9 9H10M17 18V21M17 15H17.01M13 3H8.2C7.0799 3 6.51984 3 6.09202 3.21799C5.71569 3.40973 5.40973 3.71569 5.21799 4.09202C5 4.51984 5 5.0799 5 6.2V17.8C5 18.9201 5 19.4802 5.21799 19.908C5.40973 20.2843 5.71569 20.5903 6.09202 20.782C6.51984 21 7.0799 21 8.2 21H13M13 3L19 9M13 3V7.4C13 7.96005 13 8.24008 13.109 8.45399C13.2049 8.64215 13.3578 8.79513 13.546 8.89101C13.7599 9 14.0399 9 14.6 9H19M19 9V11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Oj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4 14L9 19L20 8M6 8.88889L9.07692 12L16 5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Cj=e=>(0,un.jsx)(LA,{width:"16px",height:"16px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M5 7.25L8 10.25M8 10.25L11 7.25M8 10.25V1.25M14.75 7.25V12.3494C14.75 13.1895 14.75 13.6095 14.5865 13.9304C14.4427 14.2126 14.2132 14.4421 13.931 14.5859C13.6101 14.7494 13.1901 14.7494 12.35 14.7494H3.65C2.80992 14.7494 2.38988 14.7494 2.06901 14.5859C1.78677 14.4421 1.5573 14.2126 1.41349 13.9304C1.25 13.6095 1.25 13.1895 1.25 12.3494V7.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),jj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M8.5 21H4C4 17.134 7.13401 14 11 14C11.1681 14 11.3348 14.0059 11.5 14.0176M15 7C15 9.20914 13.2091 11 11 11C8.79086 11 7 9.20914 7 7C7 4.79086 8.79086 3 11 3C13.2091 3 15 4.79086 15 7ZM12.5898 21L14.6148 20.595C14.7914 20.5597 14.8797 20.542 14.962 20.5097C15.0351 20.4811 15.1045 20.4439 15.1689 20.399C15.2414 20.3484 15.3051 20.2848 15.4324 20.1574L19.5898 16C20.1421 15.4477 20.1421 14.5523 19.5898 14C19.0376 13.4477 18.1421 13.4477 17.5898 14L13.4324 18.1574C13.3051 18.2848 13.2414 18.3484 13.1908 18.421C13.1459 18.4853 13.1088 18.5548 13.0801 18.6279C13.0478 18.7102 13.0302 18.7985 12.9948 18.975L12.5898 21Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Rj=e=>(0,un.jsx)(LA,{width:"12px",height:"12px",fill:"none",stroke:EP.orange,viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M6 3.66667V6.58333M6 8.33333H6.00583M11.25 6C11.25 8.89949 8.89949 11.25 6 11.25C3.1005 11.25 0.75 8.89949 0.75 6C0.75 3.1005 3.1005 0.75 6 0.75C8.89949 0.75 11.25 3.1005 11.25 6Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Ij=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M15 3V15M3 9H12M12 9L9 6M12 9L9 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Mj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M15 3L9 9M15 3V6.375M15 3H11.625M14.25 9.375V12.6C14.25 13.4401 14.25 13.8601 14.0865 14.181C13.9427 14.4632 13.7132 14.6927 13.431 14.8365C13.1101 15 12.6901 15 11.85 15H5.4C4.55992 15 4.13988 15 3.81901 14.8365C3.53677 14.6927 3.3073 14.4632 3.16349 14.181C3 13.8601 3 13.4401 3 12.6V6.15C3 5.30992 3 4.88988 3.16349 4.56901C3.3073 4.28677 3.53677 4.0573 3.81901 3.91349C4.13988 3.75 4.55992 3.75 5.4 3.75H8.625",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Lj=e=>(0,un.jsxs)(LA,{width:"16px",height:"12px",fill:"none",viewBox:"0 0 16 12",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,un.jsx)("path",{d:"M10.2501 6C10.2501 7.24264 9.2427 8.25 8.00006 8.25C6.75742 8.25 5.75006 7.24264 5.75006 6C5.75006 4.75736 6.75742 3.75 8.00006 3.75C9.2427 3.75 10.2501 4.75736 10.2501 6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M8.00039 0.75C4.64217 0.75 1.79946 2.95716 0.84375 5.99997C1.79944 9.04282 4.64217 11.25 8.00041 11.25C11.3586 11.25 14.2013 9.04284 15.157 6.00003C14.2014 2.95719 11.3586 0.75 8.00039 0.75Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),Nj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M2.25024 2.25L15.7502 15.75M7.38345 7.43523C6.99147 7.84016 6.75024 8.39191 6.75024 9C6.75024 10.2426 7.7576 11.25 9.00024 11.25C9.6171 11.25 10.176 11.0018 10.5824 10.5997M4.87524 4.98536C3.45076 5.92525 2.36577 7.33796 1.84375 8.99997C2.79944 12.0428 5.64217 14.25 9.00041 14.25C10.4921 14.25 11.882 13.8145 13.0501 13.0638M8.25024 3.78705C8.49697 3.76254 8.74722 3.75 9.00039 3.75C12.3586 3.75 15.2014 5.95719 16.157 9.00003C15.9465 9.67048 15.6443 10.3004 15.2651 10.875",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Dj=e=>(0,un.jsx)(LA,{width:"30px",height:"15px",fill:EP.gray[450],viewBox:"1 1 30 15",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M1.2429 13V4.27273H7.02131V5.79403H3.08807V7.87358H6.63778V9.39489H3.08807V13H1.2429ZM8.67685 13H6.69957L9.71236 4.27273H12.0902L15.0987 13H13.1214L10.9354 6.26705H10.8672L8.67685 13ZM8.55327 9.5696H13.2237V11.0099H8.55327V9.5696ZM19.4847 4.27273V13H17.6396V6.02415H17.5884L15.5898 7.27699V5.64062L17.7504 4.27273H19.4847ZM22.1683 13.1108C21.8871 13.1108 21.6456 13.0114 21.4439 12.8125C21.245 12.6108 21.1456 12.3693 21.1456 12.0881C21.1456 11.8097 21.245 11.571 21.4439 11.3722C21.6456 11.1733 21.8871 11.0739 22.1683 11.0739C22.4411 11.0739 22.6797 11.1733 22.8842 11.3722C23.0888 11.571 23.1911 11.8097 23.1911 12.0881C23.1911 12.2756 23.1428 12.4474 23.0462 12.6037C22.9524 12.7571 22.8288 12.8807 22.6754 12.9744C22.522 13.0653 22.353 13.1108 22.1683 13.1108ZM24.6644 13V11.6705L27.771 8.79403C28.0352 8.53835 28.2567 8.30824 28.4357 8.10369C28.6175 7.89915 28.7553 7.69886 28.8491 7.50284C28.9428 7.30398 28.9897 7.08949 28.9897 6.85938C28.9897 6.60369 28.9315 6.38352 28.815 6.19886C28.6985 6.01136 28.5394 5.8679 28.3377 5.76847C28.136 5.66619 27.9073 5.61506 27.6516 5.61506C27.3846 5.61506 27.1516 5.66903 26.9528 5.77699C26.7539 5.88494 26.6005 6.03977 26.4925 6.24148C26.3846 6.44318 26.3306 6.68324 26.3306 6.96165H24.5792C24.5792 6.39062 24.7085 5.89489 24.967 5.47443C25.2255 5.05398 25.5877 4.72869 26.0536 4.49858C26.5195 4.26847 27.0565 4.15341 27.6644 4.15341C28.2894 4.15341 28.8335 4.2642 29.2965 4.4858C29.7624 4.70455 30.1246 5.00852 30.3832 5.39773C30.6417 5.78693 30.771 6.23295 30.771 6.7358C30.771 7.06534 30.7056 7.39062 30.5749 7.71165C30.4471 8.03267 30.2184 8.3892 29.8888 8.78125C29.5593 9.17045 29.0948 9.63778 28.4954 10.1832L27.2212 11.4318V11.4915H30.886V13H24.6644Z"})}),zj=e=>(0,un.jsx)(LA,{width:"23px",height:"18px",fill:EP.gray[450],viewBox:"0 0 23 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M1.0261 13V4.27273H6.80451V5.79403H2.87127V7.87358H6.42099V9.39489H2.87127V13H1.0261ZM8.46005 13H6.48278L9.49556 4.27273H11.8734L14.8819 13H12.9047L10.7186 6.26705H10.6504L8.46005 13ZM8.33647 9.5696H13.0069V11.0099H8.33647V9.5696ZM15.8812 13V11.6705L18.9877 8.79403C19.252 8.53835 19.4735 8.30824 19.6525 8.10369C19.8343 7.89915 19.9721 7.69886 20.0659 7.50284C20.1596 7.30398 20.2065 7.08949 20.2065 6.85938C20.2065 6.60369 20.1483 6.38352 20.0318 6.19886C19.9153 6.01136 19.7562 5.8679 19.5545 5.76847C19.3528 5.66619 19.1241 5.61506 18.8684 5.61506C18.6014 5.61506 18.3684 5.66903 18.1696 5.77699C17.9707 5.88494 17.8173 6.03977 17.7093 6.24148C17.6014 6.44318 17.5474 6.68324 17.5474 6.96165H15.796C15.796 6.39062 15.9252 5.89489 16.1838 5.47443C16.4423 5.05398 16.8045 4.72869 17.2704 4.49858C17.7363 4.26847 18.2733 4.15341 18.8812 4.15341C19.5062 4.15341 20.0502 4.2642 20.5133 4.4858C20.9792 4.70455 21.3414 5.00852 21.6 5.39773C21.8585 5.78693 21.9877 6.23295 21.9877 6.7358C21.9877 7.06534 21.9224 7.39062 21.7917 7.71165C21.6639 8.03267 21.4352 8.3892 21.1056 8.78125C20.7761 9.17045 20.3116 9.63778 19.7122 10.1832L18.438 11.4318V11.4915H22.1028V13H15.8812Z"})}),Bj=e=>(0,un.jsx)(LA,{width:"19px",height:"19px",fill:"none",stroke:EP.gray[400],viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M15.7842 10.2916C15.8165 10.0323 15.8332 9.76807 15.8332 9.49996C15.8332 6.00216 12.9976 3.16663 9.49984 3.16663C7.52021 3.16663 5.75273 4.07488 4.59135 5.49742M3.2155 8.70829C3.18316 8.96764 3.1665 9.23185 3.1665 9.49996C3.1665 12.9978 6.00203 15.8333 9.49984 15.8333C11.3914 15.8333 13.0893 15.004 14.2498 13.6892M11.8748 13.4583H14.2498V13.6892M4.59135 3.16663V5.49742M4.59135 5.49742V5.54157L6.96635 5.54163M14.2498 15.8333V13.6892",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Uj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M9 8.25V12.75M9 12.75L7.5 11.25M9 12.75L10.5 11.25M9.75 2.25H6.15C5.30992 2.25 4.88988 2.25 4.56901 2.41349C4.28677 2.5573 4.0573 2.78677 3.91349 3.06901C3.75 3.38988 3.75 3.80992 3.75 4.65V13.35C3.75 14.1901 3.75 14.6101 3.91349 14.931C4.0573 15.2132 4.28677 15.4427 4.56901 15.5865C4.88988 15.75 5.30992 15.75 6.15 15.75H11.85C12.6901 15.75 13.1101 15.75 13.431 15.5865C13.7132 15.4427 13.9427 15.2132 14.0865 14.931C14.25 14.6101 14.25 14.1901 14.25 13.35V6.75M9.75 2.25L14.25 6.75M9.75 2.25V5.55C9.75 5.97004 9.75 6.18006 9.83175 6.34049C9.90365 6.48161 10.0184 6.59635 10.1595 6.66825C10.3199 6.75 10.53 6.75 10.95 6.75H14.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Fj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M11.25 2.25V4.8C11.25 5.22004 11.25 5.43006 11.3317 5.59049C11.4037 5.73161 11.5184 5.84635 11.6595 5.91825C11.8199 6 12.03 6 12.45 6H15M7.5 6H4.5C3.67157 6 3 6.67157 3 7.5V14.25C3 15.0784 3.67157 15.75 4.5 15.75H9C9.82843 15.75 10.5 15.0784 10.5 14.25V12M12 2.25H9.9C9.05992 2.25 8.63988 2.25 8.31901 2.41349C8.03677 2.5573 7.8073 2.78677 7.66349 3.06901C7.5 3.38988 7.5 3.80992 7.5 4.65V9.6C7.5 10.4401 7.5 10.8601 7.66349 11.181C7.8073 11.4632 8.03677 11.6927 8.31901 11.8365C8.63988 12 9.05992 12 9.9 12H12.6C13.4401 12 13.8601 12 14.181 11.8365C14.4632 11.6927 14.6927 11.4632 14.8365 11.181C15 10.8601 15 10.4401 15 9.6V5.25L12 2.25Z",strokeLinejoin:"round",strokeWidth:"1.2"})}),$j=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:"black",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M2.95314 5.997C4.05824 3.77605 6.35091 2.25 9 2.25C12.4718 2.25 15.3314 4.87105 15.708 8.24231M2.2912 9.74998C2.66427 13.125 5.52558 15.75 9 15.75C11.6496 15.75 13.9427 14.2234 15.0475 12.0017M2.25 3V6.375H5.625M15.75 15.375V12H12.375M8.625 6.75L7.5 9H10.5L9.375 11.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Hj=e=>(0,un.jsxs)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,un.jsx)("path",{d:"M15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M12.9046 3.06005C12.6988 3 12.4659 3 12 3C11.5341 3 11.3012 3 11.0954 3.06005C10.7942 3.14794 10.5281 3.32808 10.3346 3.57511C10.2024 3.74388 10.1159 3.96016 9.94291 4.39272C9.69419 5.01452 9.00393 5.33471 8.36857 5.123L7.79779 4.93281C7.3929 4.79785 7.19045 4.73036 6.99196 4.7188C6.70039 4.70181 6.4102 4.77032 6.15701 4.9159C5.98465 5.01501 5.83376 5.16591 5.53197 5.4677C5.21122 5.78845 5.05084 5.94882 4.94896 6.13189C4.79927 6.40084 4.73595 6.70934 4.76759 7.01551C4.78912 7.2239 4.87335 7.43449 5.04182 7.85566C5.30565 8.51523 5.05184 9.26878 4.44272 9.63433L4.16521 9.80087C3.74031 10.0558 3.52786 10.1833 3.37354 10.3588C3.23698 10.5141 3.13401 10.696 3.07109 10.893C3 11.1156 3 11.3658 3 11.8663C3 12.4589 3 12.7551 3.09462 13.0088C3.17823 13.2329 3.31422 13.4337 3.49124 13.5946C3.69158 13.7766 3.96395 13.8856 4.50866 14.1035C5.06534 14.3261 5.35196 14.9441 5.16236 15.5129L4.94721 16.1584C4.79819 16.6054 4.72367 16.829 4.7169 17.0486C4.70875 17.3127 4.77049 17.5742 4.89587 17.8067C5.00015 18.0002 5.16678 18.1668 5.5 18.5C5.83323 18.8332 5.99985 18.9998 6.19325 19.1041C6.4258 19.2295 6.68733 19.2913 6.9514 19.2831C7.17102 19.2763 7.39456 19.2018 7.84164 19.0528L8.36862 18.8771C9.00393 18.6654 9.6942 18.9855 9.94291 19.6073C10.1159 20.0398 10.2024 20.2561 10.3346 20.4249C10.5281 20.6719 10.7942 20.8521 11.0954 20.94C11.3012 21 11.5341 21 12 21C12.4659 21 12.6988 21 12.9046 20.94C13.2058 20.8521 13.4719 20.6719 13.6654 20.4249C13.7976 20.2561 13.8841 20.0398 14.0571 19.6073C14.3058 18.9855 14.9961 18.6654 15.6313 18.8773L16.1579 19.0529C16.605 19.2019 16.8286 19.2764 17.0482 19.2832C17.3123 19.2913 17.5738 19.2296 17.8063 19.1042C17.9997 18.9999 18.1664 18.8333 18.4996 18.5001C18.8328 18.1669 18.9994 18.0002 19.1037 17.8068C19.2291 17.5743 19.2908 17.3127 19.2827 17.0487C19.2759 16.8291 19.2014 16.6055 19.0524 16.1584L18.8374 15.5134C18.6477 14.9444 18.9344 14.3262 19.4913 14.1035C20.036 13.8856 20.3084 13.7766 20.5088 13.5946C20.6858 13.4337 20.8218 13.2329 20.9054 13.0088C21 12.7551 21 12.4589 21 11.8663C21 11.3658 21 11.1156 20.9289 10.893C20.866 10.696 20.763 10.5141 20.6265 10.3588C20.4721 10.1833 20.2597 10.0558 19.8348 9.80087L19.5569 9.63416C18.9478 9.26867 18.6939 8.51514 18.9578 7.85558C19.1262 7.43443 19.2105 7.22383 19.232 7.01543C19.2636 6.70926 19.2003 6.40077 19.0506 6.13181C18.9487 5.94875 18.7884 5.78837 18.4676 5.46762C18.1658 5.16584 18.0149 5.01494 17.8426 4.91583C17.5894 4.77024 17.2992 4.70174 17.0076 4.71872C16.8091 4.73029 16.6067 4.79777 16.2018 4.93273L15.6314 5.12287C14.9961 5.33464 14.3058 5.0145 14.0571 4.39272C13.8841 3.96016 13.7976 3.74388 13.6654 3.57511C13.4719 3.32808 13.2058 3.14794 12.9046 3.06005Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),Vj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M18.3795 5.65166L14.1055 9.86303M9.89445 14.137L5.63994 18.3679M5.63408 5.63799L9.89445 9.86303M14.1056 14.137L18.364 18.364M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),qj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M15 2.25H3M15 15.75H3M3.75 2.25C3.75 4.13267 4.65921 5.89944 6.1912 6.99371L11.8088 11.0063C13.3408 12.1006 14.25 13.8673 14.25 15.75M14.25 2.25C14.25 4.13267 13.3408 5.89944 11.8088 6.99371L6.1912 11.0063C4.65921 12.1006 3.75 13.8673 3.75 15.75",stroke:"#FB4F57",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Kj=e=>(0,un.jsx)(cR,{css:{rotate:"180deg"},...e}),Wj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none","data-testid":"key-icon",strokeWidth:"1.2",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M9.24092 8.01389L3 14.25L4.5 15.75M5.25 12L6.75 13.5M15 5.625C15 7.48896 13.489 9 11.625 9C9.76104 9 8.25 7.48896 8.25 5.625C8.25 3.76104 9.76104 2.25 11.625 2.25C13.489 2.25 15 3.76104 15 5.625Z",strokeLinecap:"round",strokeLinejoin:"round"})});var Gj={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Zj=n.createContext&&n.createContext(Gj),Yj=function(){return Yj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r(0,un.jsx)(LA,{as:tR,width:"18px",height:"18px","data-testid":"ledger-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e}),nR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M9.16586 17.6508C8.9261 17.8747 8.74055 18.0245 8.55093 18.134C7.62273 18.6699 6.47914 18.6699 5.55093 18.134C5.20889 17.9365 4.88009 17.6077 4.22251 16.9501C3.56492 16.2925 3.23612 15.9637 3.03864 15.6217C2.50274 14.6935 2.50274 13.5499 3.03864 12.6217C3.23612 12.2797 3.56492 11.9509 4.2225 11.2933L7.05093 8.46484C7.70852 7.80725 8.03732 7.47846 8.37936 7.28098C9.30756 6.74508 10.4512 6.74508 11.3794 7.28098C11.7214 7.47846 12.0502 7.80725 12.7078 8.46484C13.3654 9.12243 13.6942 9.45123 13.8916 9.79327C14.4275 10.7215 14.4275 11.8651 13.8916 12.7933C13.7822 12.9829 13.6323 13.1684 13.4085 13.4082M10.5929 10.5926C10.369 10.8323 10.2192 11.0179 10.1097 11.2075C9.57381 12.1357 9.57381 13.2793 10.1097 14.2075C10.3072 14.5495 10.636 14.8783 11.2936 15.5359C11.9512 16.1935 12.28 16.5223 12.622 16.7198C13.5502 17.2557 14.6938 17.2557 15.622 16.7198C15.964 16.5223 16.2928 16.1935 16.9504 15.5359L19.7789 12.7075C20.4364 12.0499 20.7652 11.7211 20.9627 11.3791C21.4986 10.4509 21.4986 9.30726 20.9627 8.37906C20.7652 8.03701 20.4364 7.70822 19.7789 7.05063C19.1213 6.39304 18.7925 6.06425 18.4504 5.86677C17.5222 5.33087 16.3786 5.33087 15.4504 5.86677C15.2608 5.97625 15.0753 6.12608 14.8355 6.34992",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),iR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12 14.5V16.5M7 10.0288C7.47142 10 8.05259 10 8.8 10H15.2C15.9474 10 16.5286 10 17 10.0288M7 10.0288C6.41168 10.0647 5.99429 10.1455 5.63803 10.327C5.07354 10.6146 4.6146 11.0735 4.32698 11.638C4 12.2798 4 13.1198 4 14.8V16.2C4 17.8802 4 18.7202 4.32698 19.362C4.6146 19.9265 5.07354 20.3854 5.63803 20.673C6.27976 21 7.11984 21 8.8 21H15.2C16.8802 21 17.7202 21 18.362 20.673C18.9265 20.3854 19.3854 19.9265 19.673 19.362C20 18.7202 20 17.8802 20 16.2V14.8C20 13.1198 20 12.2798 19.673 11.638C19.3854 11.0735 18.9265 10.6146 18.362 10.327C18.0057 10.1455 17.5883 10.0647 17 10.0288M7 10.0288V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V10.0288",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),oR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:"black",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12.182 5.81859C13.9393 7.57595 13.9393 10.4252 12.182 12.1825M5.81802 12.1825C4.06066 10.4252 4.06066 7.57592 5.81802 5.81856M3.6967 14.3039C0.767767 11.3749 0.767767 6.6262 3.6967 3.69727M14.3033 3.6973C17.2322 6.62623 17.2322 11.375 14.3033 14.3039M10.5 9.00057C10.5 9.82899 9.82843 10.5006 9 10.5006C8.17157 10.5006 7.5 9.82899 7.5 9.00057C7.5 8.17214 8.17157 7.50057 9 7.50057C9.82843 7.50057 10.5 8.17214 10.5 9.00057Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),aR=({fishColor:e,...t})=>(0,un.jsxs)(LA,{width:"38px",height:"38px",fill:"none",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,un.jsx)("path",{d:"M34.9985 26.2751C34.6599 26.8629 34.2436 27.4106 33.7512 27.9032C32.2815 29.3727 30.3277 30.1819 28.2496 30.1819H24.8477V34.9996H26.8032H28.2497C30.0524 34.9996 31.7472 34.2976 33.022 33.0229C34.2967 31.7481 34.9986 30.0533 34.9985 28.2507V26.2751Z",fill:"black"}),(0,un.jsx)("path",{d:"M34.9989 20.9441C34.6603 21.5318 34.2439 22.0796 33.7514 22.572C32.2819 24.0416 30.328 24.8509 28.2499 24.8509H18.9983C17.8104 24.8511 16.8477 25.814 16.8477 27.0019C16.8477 28.1898 17.8104 29.1528 18.9983 29.153H28.25C30.0526 29.153 31.7474 28.4511 33.0222 27.1763C34.2965 25.902 34.9986 24.2076 34.9989 22.4054V20.9441ZM18.9988 27.8361C18.5381 27.8361 18.1645 27.4626 18.1645 27.0018C18.1645 26.5412 18.5381 26.1675 18.9988 26.1675C19.4596 26.1675 19.8331 26.5412 19.8331 27.0018C19.8331 27.4626 19.4596 27.8361 18.9988 27.8361Z",fill:"black"}),(0,un.jsx)("path",{d:"M35 9.74895C35 6.02751 31.9724 3 28.2509 3H9.74908C6.02761 3 3 6.02751 3 9.74895V28.2511C3 31.9725 6.02761 35 9.74899 35H23.8176V30.1824H18.9995C17.2418 30.1824 15.8171 28.7576 15.8171 27.0001C15.8171 25.2426 17.2418 23.8179 18.9995 23.8179H23.8176V18.9998H9.74899C6.5911 18.9998 4.03113 16.4402 4.03113 13.2824V9.74905C4.03113 6.59127 6.5911 4.03131 9.74899 4.03131H28.2508C31.4087 4.03131 33.9686 6.59127 33.9686 9.74905V13.2824C33.9686 16.4403 31.4089 19.0001 28.251 19.0001L24.8491 18.9998V23.8179H28.2511C30.0539 23.8179 31.7487 23.1159 33.0233 21.8411C34.2977 20.5668 34.9997 18.8725 35 17.0703V9.74895Z",fill:"black"}),(0,un.jsx)("path",{d:"M28.251 4.03174C31.4088 4.03174 33.9687 6.59167 33.9687 9.74952V13.2828C33.9687 16.4406 31.4089 19.0005 28.2511 19.0005L9.74908 19.0003C6.59124 19.0003 4.03125 16.4406 4.03125 13.2829V9.74954C4.03125 6.59167 6.5912 4.03174 9.74908 4.03174H28.251Z",fill:"white"}),(0,un.jsx)("path",{d:"M28.2511 6.73267C29.611 6.73267 30.7641 7.6364 31.1394 8.87525C31.1926 9.05118 31.0527 9.22558 30.869 9.21814C28.2867 9.11348 25.877 8.32896 23.8154 7.038C23.6751 6.95014 23.739 6.73267 23.9045 6.73267H28.2511Z",fill:e}),(0,un.jsx)("path",{d:"M21.9973 7.02488C24.4283 8.9081 27.4326 10.0842 30.7 10.2428C31.0172 10.2581 31.2679 10.5166 31.2679 10.8342V12.8702C31.2674 12.9124 31.2661 13.0446 31.2638 13.1857C31.2603 13.4148 31.069 13.5949 30.8401 13.5876C25.3913 13.4117 20.5215 10.9067 17.1937 7.03888C17.0905 6.91878 17.175 6.73267 17.3334 6.73267H21.1443C21.4533 6.73267 21.753 6.83569 21.9973 7.02488Z",fill:e}),(0,un.jsx)("path",{d:"M15.9653 7.17305C19.4649 11.5395 24.7681 14.4013 30.735 14.6156C30.8376 14.6193 30.9004 14.7309 30.8481 14.8191C30.3219 15.7056 29.3544 16.3012 28.2505 16.3012H23.1255C22.9317 16.3012 22.7392 16.2646 22.5603 16.1899C18.0848 14.3242 14.3146 11.0926 11.7745 7.01866C11.6968 6.89417 11.7878 6.73267 11.9345 6.73267H15.0503C15.4065 6.73267 15.7426 6.89513 15.9653 7.17305Z",fill:e}),(0,un.jsx)("path",{d:"M9.75058 6.73267H10.1145C10.294 6.73267 10.4589 6.82889 10.5496 6.98379C12.776 10.7844 16.0081 13.9276 19.8791 16.0439C20.0039 16.1122 19.9556 16.3012 19.8134 16.3012H15.1194C14.5651 16.3012 14.0261 16.1087 13.6043 15.7491C11.1433 13.6507 9.05479 11.1267 7.45371 8.29236C7.34983 8.10846 7.3762 7.87733 7.51835 7.72112C8.07107 7.11383 8.86658 6.73267 9.75058 6.73267Z",fill:e}),(0,un.jsx)("path",{d:"M12.3071 15.9829C12.4313 16.0951 12.3514 16.3013 12.184 16.3013H9.71437C8.06547 16.2829 6.73047 14.9363 6.73047 13.2836V9.7504L6.73065 9.54576C6.73077 9.42446 6.89048 9.37962 6.95305 9.48354C8.41152 11.9061 10.2194 14.096 12.3071 15.9829Z",fill:e})]}),sR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12 8H12.01M12 11V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),cR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],"data-testid":"outgoing-arrow-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M5.25 12.75L12.75 5.25M12.75 5.25H6M12.75 5.25V12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),lR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M11.3348 4.66483L13.2208 6.55082M3 15L3.03164 14.7785C3.1436 13.9948 3.19958 13.6029 3.32692 13.2371C3.43992 12.9124 3.59428 12.6037 3.78619 12.3185C4.00247 11.9971 4.28237 11.7172 4.84218 11.1574L12.609 3.3906C13.1298 2.8698 13.9742 2.8698 14.495 3.3906C15.0158 3.9114 15.0158 4.75578 14.495 5.27658L6.58565 13.1859C6.07779 13.6938 5.82386 13.9477 5.53462 14.1497C5.27789 14.3289 5.001 14.4774 4.70965 14.5921C4.3814 14.7213 4.02937 14.7923 3.32535 14.9344L3 15Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),uR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[300],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4 12H20M12 4V20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),dR=e=>(0,un.jsx)(LA,{width:"18",height:"18",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3 9C3 12.3137 5.68629 15 9 15C12.3137 15 15 12.3137 15 9C15 5.68629 12.3137 3 9 3C7.20796 3 5.59942 3.78563 4.5 5.03126C4.43696 5.10268 4.3756 5.17562 4.31597 5.25M9 6V9L10.875 10.875M4.31543 3.00293V5.25293H6.56543",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),hR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],"data-testid":"rotate-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12.5 18.5C17.1944 18.5 21 14.6944 21 10C21 5.30558 17.1944 1.5 12.5 1.5C7.80558 1.5 4 5.30558 4 10C4 11.5433 4.41128 12.9905 5.13022 14.238M1.5 13L5.13022 14.238M6.82531 10.3832L5.47107 14.3542L5.13022 14.238",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),fR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M16 3L8 21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),pR=e=>(0,un.jsx)(LA,{width:"32px",height:"32px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M16 7.33333C16 9.17428 14.5076 10.6667 12.6667 10.6667C10.8257 10.6667 9.33333 9.17428 9.33333 7.33333M16 7.33333C16 5.49238 14.5076 4 12.6667 4C10.8257 4 9.33333 5.49238 9.33333 7.33333M16 7.33333H28M9.33333 7.33333H4M25.3333 16C25.3333 17.8409 23.8409 19.3333 22 19.3333C20.1591 19.3333 18.6667 17.8409 18.6667 16M25.3333 16C25.3333 14.1591 23.8409 12.6667 22 12.6667C20.1591 12.6667 18.6667 14.1591 18.6667 16M25.3333 16H28M18.6667 16H4M13.3333 24.6667C13.3333 26.5076 11.8409 28 10 28C8.15905 28 6.66667 26.5076 6.66667 24.6667M13.3333 24.6667C13.3333 22.8257 11.8409 21.3333 10 21.3333C8.15905 21.3333 6.66667 22.8257 6.66667 24.6667M13.3333 24.6667H28M6.66667 24.6667H4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),mR=e=>(0,un.jsx)(LA,{width:"28px",height:"28px",fill:"none",stroke:"transparent","data-testid":"social-icon",viewBox:"0 0 28 28",...e,children:(0,un.jsx)("g",{id:"Group 40429",children:(0,un.jsx)("g",{id:"Group 40428",children:(0,un.jsxs)("g",{id:"Group 39769",children:[(0,un.jsx)("path",{d:"M27.4398 14.3177C27.4398 13.325 27.3507 12.3705 27.1852 11.4541H14V16.8695H21.5344C21.2099 18.6194 20.2235 20.1021 18.7408 21.0949V24.6075H23.2653C25.9125 22.1703 27.4398 18.5813 27.4398 14.3177Z",fill:"#4285F4",clipRule:"evenodd",fillRule:"evenodd",id:"Shape"}),(0,un.jsx)("path",{d:"M14.0009 28C17.7809 28 20.9499 26.7464 23.2663 24.6082L18.7418 21.0955C17.4882 21.9355 15.8846 22.4319 14.0009 22.4319C10.3546 22.4319 7.26832 19.9692 6.16743 16.6602H1.49023V20.2874C3.79383 24.8628 8.5283 28 14.0009 28Z",fill:"#34A853",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_2"}),(0,un.jsx)("path",{d:"M6.16627 16.66C5.88627 15.82 5.72718 14.9228 5.72718 14.0001C5.72718 13.0774 5.88627 12.1801 6.16627 11.3401V7.71289H1.48907C0.5409 9.60286 0 11.741 0 14.0001C0 16.2591 0.5409 18.3973 1.48907 20.2872L6.16627 16.66Z",fill:"#FBBC05",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_3"}),(0,un.jsx)("path",{d:"M14.0009 5.56809C16.0564 5.56809 17.9018 6.27445 19.3527 7.6617L23.3681 3.64631C20.9436 1.38725 17.7745 0 14.0009 0C8.5283 0 3.79383 3.13722 1.49023 7.7126L6.16743 11.3398C7.26832 8.03078 10.3546 5.56809 14.0009 5.56809Z",fill:"#EA4335",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_4"})]})})})}),gR=e=>(0,un.jsxs)(LA,{width:"30px",height:"30px",fill:"none","data-testid":"tez-icon",viewBox:"0 0 30 30",...e,children:[(0,un.jsx)("rect",{width:"30",height:"30",fill:"white",rx:"4"}),(0,un.jsx)("rect",{width:"30",height:"30",fill:"url(#pattern0)",rx:"4"}),(0,un.jsxs)("defs",{children:[(0,un.jsx)("pattern",{width:"1",height:"1",id:"pattern0",patternContentUnits:"objectBoundingBox",children:(0,un.jsx)("use",{transform:"translate(0.1753 0.101557) scale(0.00532296)",xlinkHref:"#image0_2912_38337"})}),(0,un.jsx)("image",{width:"122",height:"150",id:"image0_2912_38337",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAACWCAYAAAAR35wdAAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkEBooUsJvQkiNYCUEFrovdkISYBQYgwEFXtZVHDtogI2dFVEwQqIBUUUC4ti74sFFWVdLNiVNymg677yvfm+ufPff87858y5M/feAUDtBEckykPVAcgXForjQgLoKalpdNJTQAS6gAyUgTOHWyBixsREAFiG2r+Xd9cBIm2vOEi1/tn/X4sGj1/ABQCJgTiDV8DNh/ggAHgVVyQuBIAo5c2nFIqk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UPwqZoN/6HfG2gmYD/jaCbgM8dSMyj3jfANqP8P4yqo230aj6J8KsvgY80IWsf0kd36M8QRXo5lSk8Ic+bQV60jtM/ARRobTdd2cBZwFnAWcBZwFnAWeB/wO9yrSXP8OnPQAAAABJRU5ErkJggg=="})]})]});var vR=g((function(e,t){const{htmlWidth:r,htmlHeight:n,alt:i,...o}=e;return(0,un.jsx)("img",{width:r,height:n,ref:t,alt:i,...o})}));vR.displayName="NativeImage";function yR(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var bR=g((function(e,t){const{fallbackSrc:r,fallback:i,src:o,srcSet:a,align:s,fit:c,loading:l,ignoreFallback:u,crossOrigin:d,fallbackStrategy:h="beforeLoadOrError",referrerPolicy:f,...p}=e,m=null!=l||u||!(void 0!==r||void 0!==i),g=function(e){const{loading:t,src:r,srcSet:i,onLoad:o,onError:a,crossOrigin:s,sizes:c,ignoreFallback:l}=e,[u,d]=(0,n.useState)("pending");(0,n.useEffect)((()=>{d(r?"loading":"pending")}),[r]);const h=(0,n.useRef)(),f=(0,n.useCallback)((()=>{if(!r)return;p();const e=new Image;e.src=r,s&&(e.crossOrigin=s),i&&(e.srcset=i),c&&(e.sizes=c),t&&(e.loading=t),e.onload=e=>{p(),d("loaded"),null==o||o(e)},e.onerror=e=>{p(),d("failed"),null==a||a(e)},h.current=e}),[r,s,i,c,o,a,t]),p=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return yh((()=>{if(!l)return"loading"===u&&f(),()=>{p()}}),[u,f,l]),l?"loaded":u}({...e,crossOrigin:d,ignoreFallback:m}),v=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(g,h),y={ref:t,objectFit:c,objectPosition:s,...m?p:yR(p,["onError","onLoad"])};return v?i||(0,un.jsx)(ln.img,{as:vR,className:"chakra-image__placeholder",src:r,...y}):(0,un.jsx)(ln.img,{as:vR,src:o,srcSet:a,crossOrigin:d,loading:l,referrerPolicy:f,className:"chakra-image",...y})}));bR.displayName="Image";const wR=({contract:e,...t})=>{const r=`https://services.tzkt.io/v1/avatars/${e}`;return(0,un.jsx)(bR,{fallbackSrc:"/static/media/coin-front.svg",src:r,...t})},xR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3 4.5H15M12 4.5L11.797 3.89105C11.6003 3.30094 11.502 3.00588 11.3195 2.78774C11.1584 2.5951 10.9516 2.44599 10.7179 2.35408C10.4532 2.25 10.1422 2.25 9.52018 2.25H8.47982C7.85779 2.25 7.54677 2.25 7.28213 2.35408C7.04844 2.44599 6.84156 2.5951 6.68047 2.78774C6.49804 3.00588 6.39969 3.30094 6.20298 3.89105L6 4.5M13.5 4.5V12.15C13.5 13.4101 13.5 14.0402 13.2548 14.5215C13.039 14.9448 12.6948 15.289 12.2715 15.5048C11.7902 15.75 11.1601 15.75 9.9 15.75H8.1C6.83988 15.75 6.20982 15.75 5.72852 15.5048C5.30516 15.289 4.96095 14.9448 4.74524 14.5215C4.5 14.0402 4.5 13.4101 4.5 12.15V4.5M10.5 7.5V12.75M7.5 7.5V12.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),_R=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none","data-testid":"unknown-contact-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3.16602 15.5625C3.16602 12.7435 5.45123 10.4583 8.27018 10.4583C8.51775 10.4583 8.7612 10.476 8.99935 10.51M13.3722 13.375C14.1014 12.6458 14.8305 12.3575 14.8305 11.5521C14.8305 10.7467 14.1776 10.0938 13.3722 10.0938C12.6927 10.0938 12.1217 10.5585 11.9598 11.1875M13.3722 15.5625H13.3795M11.1868 5.35417C11.1868 6.965 9.88101 8.27083 8.27018 8.27083C6.65935 8.27083 5.35352 6.965 5.35352 5.35417C5.35352 3.74334 6.65935 2.4375 8.27018 2.4375C9.88101 2.4375 11.1868 3.74334 11.1868 5.35417Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),SR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M20.5 11L18.7396 7.60473C18.253 6.65855 18.0097 6.18545 17.6514 5.84012C17.3346 5.5347 16.9544 5.30272 16.5379 5.16065C16.067 5 15.535 5 14.471 5H9.52901C8.46503 5 7.93304 5 7.46209 5.16065C7.04558 5.30272 6.66542 5.5347 6.34859 5.84012C5.99034 6.18545 5.74703 6.65855 5.26042 7.60473L3.5 11M20.5 11C20.6981 11.3853 20.7658 11.5446 20.8357 11.747C20.8977 11.9267 20.9426 12.1119 20.9696 12.3002C21 12.5121 21 12.7287 21 13.162V14.2C21 15.8802 21 16.7202 20.673 17.362C20.3854 17.9265 19.9265 18.3854 19.362 18.673C18.7202 19 17.8802 19 16.2 19H7.8C6.11984 19 5.27976 19 4.63803 18.673C4.07354 18.3854 3.6146 17.9265 3.32698 17.362C3 16.7202 3 15.8802 3 14.2V13.162C3 12.7287 3 12.5121 3.03041 12.3002C3.05741 12.1119 3.10225 11.9267 3.16432 11.747C3.23421 11.5446 3.30186 11.3853 3.5 11M20.5 11H3.5M15 15H17",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),kR=()=>(0,un.jsxs)(dn,{position:"relative",alignItems:"center",justifyContent:"center","data-testid":"verified-icon",children:[(0,un.jsx)(ER,{}),(0,un.jsx)(dn,{position:"absolute",alignItems:"center",justifyContent:"center",children:(0,un.jsx)(AR,{})})]}),ER=e=>(0,un.jsx)(LA,{width:"14px",height:"14px",fill:EP.gray[450],viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M6.51019 0.479749C6.78233 0.213196 7.21767 0.213195 7.48981 0.479749L8.86158 1.82333C8.99061 1.94972 9.16351 2.02134 9.34412 2.02321L11.2642 2.04314C11.6451 2.04709 11.9529 2.35492 11.9569 2.73584L11.9768 4.65588C11.9787 4.83649 12.0503 5.00939 12.1767 5.13842L13.5203 6.51019C13.7868 6.78233 13.7868 7.21767 13.5203 7.48981L12.1767 8.86158C12.0503 8.99061 11.9787 9.16351 11.9768 9.34412L11.9569 11.2642C11.9529 11.6451 11.6451 11.9529 11.2642 11.9569L9.34412 11.9768C9.16351 11.9787 8.99061 12.0503 8.86158 12.1767L7.48981 13.5203C7.21767 13.7868 6.78233 13.7868 6.51019 13.5203L5.13842 12.1767C5.00939 12.0503 4.83649 11.9787 4.65588 11.9768L2.73584 11.9569C2.35492 11.9529 2.04709 11.6451 2.04314 11.2642L2.02321 9.34412C2.02134 9.16351 1.94972 8.99061 1.82333 8.86158L0.479749 7.48981C0.213196 7.21767 0.213195 6.78233 0.479749 6.51019L1.82333 5.13842C1.94972 5.00939 2.02134 4.83649 2.02321 4.65588L2.04314 2.73584C2.04709 2.35492 2.35492 2.04709 2.73584 2.04314L4.65588 2.02321C4.83649 2.02134 5.00939 1.94972 5.13842 1.82333L6.51019 0.479749Z",strokeLinecap:"square",strokeLinejoin:"round"})}),AR=e=>(0,un.jsx)(LA,{width:"7px",height:"5px",fill:"none",stroke:"white",viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M1.66699 2.19314L3.0281 3.55425L5.75033 0.832031",strokeLinecap:"square",strokeLinejoin:"round"})}),PR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M10 16V14.0003M10 14.0003V12M10 14.0003L12 14.0005M10 14.0003L8 14M21 12V11.2C21 10.0799 21 9.51984 20.782 9.09202C20.5903 8.7157 20.2843 8.40973 19.908 8.21799C19.4802 8 18.9201 8 17.8 8H3M21 12V16M21 12H19C17.8954 12 17 12.8954 17 14C17 15.1046 17.8954 16 19 16H21M21 16V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8V8M18 8V7.2C18 6.0799 18 5.51984 17.782 5.09202C17.5903 4.71569 17.2843 4.40973 16.908 4.21799C16.4802 4 15.9201 4 14.8 4H6.2C5.07989 4 4.51984 4 4.09202 4.21799C3.71569 4.40973 3.40973 4.71569 3.21799 5.09202C3 5.51984 3 6.0799 3 7.2V8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),TR=e=>(0,un.jsx)(LA,{width:"36",height:"32",fill:"none",viewBox:"0 0 36 32",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M18.0004 24.3332H18.0171M18.0004 12.6665V19.3332M8.68719 30.9999H27.3136C30.2831 30.9999 31.7678 30.9999 32.6386 30.3754C33.3985 29.8305 33.8946 28.9915 34.0058 28.0631C34.1333 26.9991 33.4178 25.6982 31.9868 23.0963L22.6736 6.16318C21.1499 3.39292 20.3881 2.00779 19.3814 1.54954C18.5041 1.15015 17.4968 1.15015 16.6194 1.54954C15.6127 2.00779 14.8509 3.39292 13.3273 6.16317L4.01404 23.0963C2.58301 25.6982 1.8675 26.9991 1.99498 28.0631C2.10622 28.9915 2.6023 29.8305 3.36219 30.3754C4.23304 30.9999 5.71776 30.9999 8.68719 30.9999Z",stroke:EP.orangeL,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),OR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4.5 4.5L13.5 13.5M13.5 4.5L4.5 13.5","data-testid":"xmark-icon-path",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),CR=pi,jR=oi,RR=()=>{const{html:e,seen:t}=jR((e=>e.announcement)),r=CR();return(0,n.useEffect)((()=>{const e=()=>{dj.get("https://storage.googleapis.com/umami-artifacts/announcement.html").then((e=>{r($a.actions.setCurrent(e.data))})).catch((e=>{}))};e();const t=setInterval(e,36e5);return()=>clearInterval(t)}),[r]),t||!e?null:(0,un.jsx)($A,{className:"announcement-banner",color:"black",background:EP.orangeL,"data-testid":"announcement",paddingX:"30px",children:(0,un.jsxs)(dn,{justifyContent:"space-between",width:"100%",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(oR,{marginRight:"4px"}),(0,un.jsx)(qA,{fontSize:"14px",dangerouslySetInnerHTML:{__html:e}})]}),(0,un.jsx)(WA,{"data-testid":"close",onClick:()=>r($a.actions.setSeen())})]})})};function IR(e,t){const r=(0,n.useId)();return(0,n.useMemo)((()=>e||[t,r].filter(Boolean).join("-")),[e,t,r])}function MR(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function LR(e){var t;return MR(e)&&null!=(t=e.ownerDocument)?t:document}function NR(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var DR=NR()?n.useLayoutEffect:n.useEffect;function zR(e,t=[]){const r=(0,n.useRef)(e);return DR((()=>{r.current=e})),(0,n.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}function BR(e={}){const{onClose:t,onOpen:r,isOpen:i,id:o}=e,a=zR(r),s=zR(t),[c,l]=(0,n.useState)(e.defaultIsOpen||!1),[u,d]=function(e,t){const r=void 0!==e;return[r,r&&"undefined"!==typeof e?e:t]}(i,c),h=IR(o,"disclosure"),f=(0,n.useCallback)((()=>{u||l(!1),null==s||s()}),[u,s]),p=(0,n.useCallback)((()=>{u||l(!0),null==a||a()}),[u,a]),m=(0,n.useCallback)((()=>{(d?f:p)()}),[d,p,f]);return{isOpen:!!d,onOpen:p,onClose:f,onToggle:m,isControlled:u,getButtonProps:(e={})=>({...e,"aria-expanded":d,"aria-controls":h,onClick:_t(e.onClick,m)}),getDisclosureProps:(e={})=>({...e,hidden:!d,id:h})}}var UR=Object.defineProperty,FR=(e,t,r)=>(((e,t,r)=>{t in e?UR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),$R=new class{constructor(){FR(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function HR(e,t){const[r,i]=(0,n.useState)(0);return(0,n.useEffect)((()=>{const r=e.current;if(r){if(t){const e=$R.add(r);i(e)}return()=>{$R.remove(r),i(0)}}}),[t,e]),r}var VR=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},qR=new WeakMap,KR=new WeakMap,WR={},GR=0,ZR=function(e){return e&&(e.host||ZR(e.parentNode))},YR=function(e,t,r,n){var i=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=ZR(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);WR[r]||(WR[r]=new WeakMap);var o=WR[r],a=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(n),i=null!==t&&"false"!==t,c=(qR.get(e)||0)+1,l=(o.get(e)||0)+1;qR.set(e,c),o.set(e,l),a.push(e),1===c&&i&&KR.set(e,!0),1===l&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}}))};return u(t),s.clear(),GR++,function(){a.forEach((function(e){var t=qR.get(e)-1,i=o.get(e)-1;qR.set(e,t),o.set(e,i),t||(KR.has(e)||e.removeAttribute(n),KR.delete(e)),i||e.removeAttribute(r)})),--GR||(qR=new WeakMap,qR=new WeakMap,KR=new WeakMap,WR={})}},XR=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||VR(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),YR(n,i,r,"aria-hidden")):function(){return null}};function JR(e){const{isOpen:t,onClose:r,id:i,closeOnOverlayClick:o=!0,closeOnEsc:a=!0,useInert:s=!0,onOverlayClick:c,onEsc:l}=e,u=(0,n.useRef)(null),d=(0,n.useRef)(null),[h,f,p]=function(e,...t){const r=(0,n.useId)(),i=e||r;return(0,n.useMemo)((()=>t.map((e=>`${e}-${i}`))),[i,t])}(i,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){const r=e.current;(0,n.useEffect)((()=>{if(e.current&&t)return XR(e.current)}),[t,e,r])}(u,t&&s);const m=HR(u,t),g=(0,n.useRef)(null),v=(0,n.useCallback)((e=>{g.current=e.target}),[]),y=(0,n.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),a&&(null==r||r()),null==l||l())}),[a,r,l]),[b,w]=(0,n.useState)(!1),[x,_]=(0,n.useState)(!1),S=(0,n.useCallback)(((e={},t=null)=>({role:"dialog",...e,ref:Ln(t,u),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?f:void 0,"aria-describedby":x?p:void 0,onClick:k(e.onClick,(e=>e.stopPropagation()))})),[p,x,h,f,b]),E=(0,n.useCallback)((e=>{e.stopPropagation(),g.current===e.target&&$R.isTopModal(u.current)&&(o&&(null==r||r()),null==c||c())}),[r,o,c]),A=(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(t,d),onClick:k(e.onClick,E),onKeyDown:k(e.onKeyDown,y),onMouseDown:k(e.onMouseDown,v)})),[y,v,E]);return{isOpen:t,onClose:r,headerId:f,bodyId:p,setBodyMounted:_,setHeaderMounted:w,dialogRef:u,overlayRef:d,getDialogProps:S,getDialogContainerProps:A,index:m}}var[QR,eI]=En({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[tI,rI]=En({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),nI=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:h,lockFocusAcrossFrames:f,onCloseComplete:p}=t,m=Sn("Modal",t),g={...JR(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:h,lockFocusAcrossFrames:f};return(0,un.jsx)(tI,{value:g,children:(0,un.jsx)(QR,{value:m,children:(0,un.jsx)(iP,{onExitComplete:p,children:g.isOpen&&(0,un.jsx)(dP,{...r,children:n})})})})};nI.displayName="Modal";var iI={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},oI={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},aI={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},sI={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},cI={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function lI(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return aI;case"left":return oI;case"bottom":return cI;case"top":return sI}}var uI={enter:{duration:.2,ease:iI.easeOut},exit:{duration:.1,ease:iI.easeIn}},dI=(e,t)=>({...e,delay:"number"===typeof t?t:null==t?void 0:t.enter}),hI=(e,t)=>({...e,delay:"number"===typeof t?t:null==t?void 0:t.exit}),fI={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:null!=(n=null==e?void 0:e.enter)?n:dI(uI.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:null!=(n=null==e?void 0:e.exit)?n:hI(uI.exit,r),transitionEnd:null==t?void 0:t.exit}}},pI={initial:"exit",animate:"enter",exit:"exit",variants:fI},mI=(0,n.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,className:i,transition:o,transitionEnd:a,delay:s,...c}=e,l=n||r?"enter":"exit",u=!r||n&&r,d={transition:o,transitionEnd:a,delay:s};return(0,un.jsx)(iP,{custom:d,children:u&&(0,un.jsx)(CA.div,{ref:t,className:v("chakra-fade",i),custom:d,...pI,animate:l,...c})})}));mI.displayName="Fade";var gI=ln(CA.div),vI=g(((e,t)=>{const{className:r,transition:n,motionProps:i,...o}=e,a=v("chakra-modal__overlay",r),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...eI().overlay},{motionPreset:c}=rI(),l=i||("none"===c?{}:pI);return(0,un.jsx)(gI,{...l,__css:s,ref:t,className:a,...o})}));vI.displayName="ModalOverlay";var yI=function(e,t){return yI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},yI(e,t)};function bI(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}yI(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var wI=function(){return wI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function EI(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function AI(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof PI?Promise.resolve(e.value.v).then(c,l):u(o[0][2],e)}(i[e](t))}catch(r){u(o[0][3],r)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function OI(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=kI(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}Object.create;"function"===typeof SuppressedError&&SuppressedError;var CI="right-scroll-bar-position",jI="width-before-scroll-bar";function RI(e,t){return function(e,t){var r=(0,n.useState)((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=t,r.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function II(e){return e}function MI(e,t){void 0===t&&(t=II);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}};return i}function LI(e,t){return void 0===t&&(t=II),MI(e,t)}function NI(e){void 0===e&&(e={});var t=MI(null);return t.options=wI({async:!0,ssr:!1},e),t}var DI=NI(),zI=function(){},BI=n.forwardRef((function(e,t){var r=n.useRef(null),i=n.useState({onScrollCapture:zI,onWheelCapture:zI,onTouchMoveCapture:zI}),o=i[0],a=i[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=e.gapMode,w=xI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,_=RI([r,t]),S=wI(wI({},w),o);return n.createElement(n.Fragment,null,d&&n.createElement(x,{sideCar:DI,removeScrollBar:u,shards:h,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:b}),s?n.cloneElement(n.Children.only(c),wI(wI({},S),{ref:_})):n.createElement(y,wI({},S,{className:l,ref:_}),c))}));BI.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},BI.classNames={fullWidth:jI,zeroRight:CI};var UI,FI=function(e){var t=e.sideCar,r=xI(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return n.createElement(i,wI({},r))};FI.isSideCarExport=!0;function $I(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=UI||r.nc;return t&&e.setAttribute("nonce",t),e}var HI=function(){var e=0,t=null;return{add:function(r){var n;0==e&&(t=$I())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),n=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(n)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},VI=function(){var e=function(){var e=HI();return function(t,r){n.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}},qI={left:0,top:0,right:0,gap:0},KI=function(e){return parseInt(e||"",10)||0},WI=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return qI;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[KI(r),KI(n),KI(i)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},GI=VI(),ZI=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(CI," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(jI," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(CI," .").concat(CI," {\n right: 0 ").concat(n,";\n }\n \n .").concat(jI," .").concat(jI," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},YI=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i,a=n.useMemo((function(){return WI(o)}),[o]);return n.createElement(GI,{styles:ZI(a,!t,o,r?"":"!important")})},XI=!1;if("undefined"!==typeof window)try{var JI=Object.defineProperty({},"passive",{get:function(){return XI=!0,!0}});window.addEventListener("test",JI,JI),window.removeEventListener("test",JI,JI)}catch(Tle){XI=!1}var QI=!!XI&&{passive:!1},eM=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},tM=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),rM(e,n)){var i=nM(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},rM=function(e,t){return"v"===e?function(e){return eM(e,"overflowY")}(t):function(e){return eM(e,"overflowX")}(t)},nM=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},iM=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oM=function(e){return[e.deltaX,e.deltaY]},aM=function(e){return e&&"current"in e?e.current:e},sM=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},cM=0,lM=[];function uM(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dM=(hM=function(e){var t=n.useRef([]),r=n.useRef([0,0]),i=n.useRef(),o=n.useState(cM++)[0],a=n.useState(VI)[0],s=n.useRef(e);n.useEffect((function(){s.current=e}),[e]),n.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=AI([e.lockRef.current],(e.shards||[]).map(aM),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=n.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var n,o=iM(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-o[0],l="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=tM(d,u);if(!h)return!0;if(h?n=d:(n="v"===d?"h":"v",h=tM(d,u)),!h)return!1;if(!i.current&&"changedTouches"in e&&(c||l)&&(i.current=n),!n)return!0;var f=i.current||n;return function(e,t,r,n,i){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,c=t.contains(s),l=!1,u=a>0,d=0,h=0;do{var f=nM(e,s),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&rM(e,s)&&(d+=m,h+=p),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&a>d)||!u&&(i&&Math.abs(h)<1||!i&&-a>h))&&(l=!0),l}(f,t,e,"h"===f?c:l,!0)}),[]),l=n.useCallback((function(e){var r=e;if(lM.length&&lM[lM.length-1]===a){var n="deltaY"in r?oM(r):iM(r),i=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,n)}))[0];if(i&&i.should)r.cancelable&&r.preventDefault();else if(!i){var o=(s.current.shards||[]).map(aM).filter(Boolean).filter((function(e){return e.contains(r.target)}));(o.length>0?c(r,o[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),u=n.useCallback((function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:uM(n)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),d=n.useCallback((function(e){r.current=iM(e),i.current=void 0}),[]),h=n.useCallback((function(t){u(t.type,oM(t),t.target,c(t,e.lockRef.current))}),[]),f=n.useCallback((function(t){u(t.type,iM(t),t.target,c(t,e.lockRef.current))}),[]);n.useEffect((function(){return lM.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,QI),document.addEventListener("touchmove",l,QI),document.addEventListener("touchstart",d,QI),function(){lM=lM.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,QI),document.removeEventListener("touchmove",l,QI),document.removeEventListener("touchstart",d,QI)}}),[]);var p=e.removeScrollBar,m=e.inert;return n.createElement(n.Fragment,null,m?n.createElement(a,{styles:sM(o)}):null,p?n.createElement(YI,{gapMode:e.gapMode}):null)},DI.useMedium(hM),FI);var hM,fM=n.forwardRef((function(e,t){return n.createElement(BI,wI({},e,{ref:t,sideCar:dM}))}));fM.classNames=BI.classNames;const pM=fM,mM=(0,n.createContext)({openWith:e=>Promise.resolve(),onClose:()=>{},isOpen:!1}),gM=()=>{const{isOpen:e,onClose:t,onOpen:r}=BR(),[i,o]=(0,n.useState)(null),[a,s]=(0,n.useState)("md");return{isOpen:e,onClose:t,openWith:async(e,t="md")=>{s(t),o(e),r()},content:(0,un.jsxs)(nI,{autoFocus:!1,blockScrollOnMount:!1,closeOnOverlayClick:!1,isCentered:!0,isOpen:e,motionPreset:localStorage.getItem("chakra-modal-motion-preset")||void 0,onClose:t,size:a,children:[(0,un.jsx)(vI,{}),(0,un.jsx)(pM,{enabled:e,children:i})]})}};function vM(e){return Object.keys(e)}var yM;!function(e){e.PENDING="pending",e.RESOLVED="resolved",e.REJECTED="rejected"}(yM||(yM={}));const bM=()=>{throw new Error("ExposedPromise not initialized yet.")};class wM{_promise;_resolve=bM;_reject=bM;_status=yM.PENDING;_promiseResult;_promiseError;get promise(){return this._promise}get resolve(){return this._resolve}get reject(){return this._reject}get status(){return this._status}get promiseResult(){return this._promiseResult}get promiseError(){return this._promiseError}constructor(){this._promise=new Promise(((e,t)=>{this._resolve=t=>{this.isSettled()||(this._promiseResult=t,e(t),this._status=yM.RESOLVED)},this._reject=e=>{this.isSettled()||(this._promiseError=e,t(e),this._status=yM.REJECTED)}}))}static resolve(e){const t=new wM;return t.resolve(e),t}static reject(e){const t=new wM;return t.reject(e),t}isPending(){return this.status===yM.PENDING}isResolved(){return this.status===yM.RESOLVED}isRejected(){return this.status===yM.REJECTED}isSettled(){return this.isResolved()||this.isRejected()}}var xM=r(427),_M=r(8945),SM=r(5164),kM=r(9070),EM=r(4082),AM=r(4872).Buffer;function PM(e){return AM.from(e).toString("hex")}async function TM(e){return PM("string"===typeof e?(0,Wa.hash)((0,kM.cv)(e),32):(0,Wa.hash)(e,32))}async function OM(e){return(0,Ka._w)((0,Wa.hash)((0,kM.cv)(e),32))}function CM(e,t){return`@${e}:${t}`}var jM=r(4872).Buffer;async function RM(){const e=(0,SM.randomBytes)(16);return[e.slice(0,4),e.slice(4,6),e.slice(6,8),e.slice(8,10),e.slice(10,16)].map((function(e){return jM.from(e).toString("hex")})).join("-")}var IM,MM,LM,NM,DM,zM,BM,UM,FM,$M;!function(e){e.BlockchainRequest="blockchain_request",e.PermissionRequest="permission_request",e.SignPayloadRequest="sign_payload_request",e.OperationRequest="operation_request",e.BroadcastRequest="broadcast_request",e.ChangeAccountRequest="change_account_request",e.BlockchainResponse="blockchain_response",e.PermissionResponse="permission_response",e.SignPayloadResponse="sign_payload_response",e.ProofOfEventChallengeRequest="proof_of_event_challenge_request",e.ProofOfEventChallengeResponse="proof_of_event_challenge_response",e.ProofOfEventChallengeRecorded="proof_of_event_challenge_recorded",e.OperationResponse="operation_response",e.BroadcastResponse="broadcast_response",e.Acknowledge="acknowledge",e.Disconnect="disconnect",e.Error="error"}(IM||(IM={})),function(e){e.SIGN="sign",e.OPERATION_REQUEST="operation_request",e.ENCRYPT="encrypt",e.NOTIFICATION="notification",e.THRESHOLD="threshold"}(MM||(MM={})),function(e){e.MAINNET="mainnet",e.GHOSTNET="ghostnet",e.WEEKLYNET="weeklynet",e.DAILYNET="dailynet",e.DELPHINET="delphinet",e.EDONET="edonet",e.FLORENCENET="florencenet",e.GRANADANET="granadanet",e.HANGZHOUNET="hangzhounet",e.ITHACANET="ithacanet",e.JAKARTANET="jakartanet",e.KATHMANDUNET="kathmandunet",e.LIMANET="limanet",e.MUMBAINET="mumbainet",e.NAIROBINET="nairobinet",e.OXFORDNET="oxfordnet",e.CUSTOM="custom"}(LM||(LM={})),function(e){e.ENDORSEMENT="endorsement",e.SEED_NONCE_REVELATION="seed_nonce_revelation",e.DOUBLE_ENDORSEMENT_EVIDENCE="double_endorsement_evidence",e.DOUBLE_BAKING_EVIDENCE="double_baking_evidence",e.ACTIVATE_ACCOUNT="activate_account",e.PROPOSALS="proposals",e.BALLOT="ballot",e.REVEAL="reveal",e.TRANSACTION="transaction",e.ORIGINATION="origination",e.DELEGATION="delegation"}(NM||(NM={})),function(e){e.WEBSITE="website",e.EXTENSION="extension",e.P2P="p2p",e.WALLETCONNECT="walletconnect"}(DM||(DM={})),function(e){e.BACKGROUND="toBackground",e.PAGE="toPage",e.EXTENSION="toExtension"}(zM||(zM={})),function(e){e.BROADCAST_ERROR="BROADCAST_ERROR",e.NETWORK_NOT_SUPPORTED="NETWORK_NOT_SUPPORTED",e.NO_ADDRESS_ERROR="NO_ADDRESS_ERROR",e.NO_PRIVATE_KEY_FOUND_ERROR="NO_PRIVATE_KEY_FOUND_ERROR",e.NOT_GRANTED_ERROR="NOT_GRANTED_ERROR",e.PARAMETERS_INVALID_ERROR="PARAMETERS_INVALID_ERROR",e.TOO_MANY_OPERATIONS="TOO_MANY_OPERATIONS",e.TRANSACTION_INVALID_ERROR="TRANSACTION_INVALID_ERROR",e.SIGNATURE_TYPE_NOT_SUPPORTED="SIGNATURE_TYPE_NOT_SUPPORTED",e.ABORTED_ERROR="ABORTED_ERROR",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(BM||(BM={})),function(e){e.NOT_CONNECTED="NOT_CONNECTED",e.CONNECTING="CONNECTING",e.CONNECTED="CONNECTED"}(UM||(UM={})),function(e){e.CHROME_MESSAGE="chrome_message",e.WALLETCONNECT="walletconnect",e.POST_MESSAGE="post_message",e.LEDGER="ledger",e.P2P="p2p"}(FM||(FM={}));class HM{static isSupported(){return Promise.resolve(!1)}}!function(e){e.TRANSPORT_P2P_PEERS_DAPP="beacon:communication-peers-dapp",e.TRANSPORT_P2P_PEERS_WALLET="beacon:communication-peers-wallet",e.TRANSPORT_POSTMESSAGE_PEERS_DAPP="beacon:postmessage-peers-dapp",e.TRANSPORT_POSTMESSAGE_PEERS_WALLET="beacon:postmessage-peers-wallet",e.TRANSPORT_WALLETCONNECT_PEERS_DAPP="beacon:walletconnect-peers-dapp",e.LAST_SELECTED_WALLET="beacon:last-selected-wallet",e.ACCOUNTS="beacon:accounts",e.ACTIVE_ACCOUNT="beacon:active-account",e.PUSH_TOKENS="beacon:push-tokens",e.BEACON_SDK_SECRET_SEED="beacon:sdk-secret-seed",e.APP_METADATA_LIST="beacon:app-metadata-list",e.PERMISSION_LIST="beacon:permissions",e.ONGOING_PROOF_OF_EVENT_CHALLENGES="beacon:ongoing-proof-of-event-challenges",e.BEACON_SDK_VERSION="beacon:sdk_version",e.MATRIX_PRESERVED_STATE="beacon:sdk-matrix-preserved-state",e.MATRIX_PEER_ROOM_IDS="beacon:matrix-peer-rooms",e.MATRIX_SELECTED_NODE="beacon:matrix-selected-node",e.MULTI_NODE_SETUP_DONE="beacon:multi-node-setup",e.WC_2_CORE_PAIRING="wc@2:core:0.3//pairing",e.WC_2_CLIENT_SESSION="wc@2:client:0.3//session",e.WC_2_CORE_KEYCHAIN="wc@2:core:0.3//keychain",e.WC_2_CORE_MESSAGES="wc@2:core:0.3//messages",e.WC_2_CLIENT_PROPOSAL="wc@2:client:0.3//proposal",e.WC_2_CORE_SUBSCRIPTION="wc@2:core:0.3//subscription",e.WC_2_CORE_HISTORY="wc@2:core:0.3//history",e.WC_2_CORE_EXPIRER="wc@2:core:0.3//expirer"}($M||($M={}));const VM={[$M.TRANSPORT_P2P_PEERS_DAPP]:[],[$M.TRANSPORT_P2P_PEERS_WALLET]:[],[$M.TRANSPORT_POSTMESSAGE_PEERS_DAPP]:[],[$M.TRANSPORT_POSTMESSAGE_PEERS_WALLET]:[],[$M.TRANSPORT_WALLETCONNECT_PEERS_DAPP]:[],[$M.LAST_SELECTED_WALLET]:void 0,[$M.ACCOUNTS]:[],[$M.ACTIVE_ACCOUNT]:void 0,[$M.PUSH_TOKENS]:[],[$M.BEACON_SDK_SECRET_SEED]:void 0,[$M.APP_METADATA_LIST]:[],[$M.PERMISSION_LIST]:[],[$M.ONGOING_PROOF_OF_EVENT_CHALLENGES]:[],[$M.BEACON_SDK_VERSION]:void 0,[$M.MATRIX_PRESERVED_STATE]:{},[$M.MATRIX_PEER_ROOM_IDS]:{},[$M.MATRIX_SELECTED_NODE]:void 0,[$M.MULTI_NODE_SETUP_DONE]:void 0,[$M.WC_2_CLIENT_SESSION]:void 0,[$M.WC_2_CORE_PAIRING]:void 0,[$M.WC_2_CORE_KEYCHAIN]:void 0,[$M.WC_2_CORE_MESSAGES]:void 0,[$M.WC_2_CLIENT_PROPOSAL]:void 0,[$M.WC_2_CORE_SUBSCRIPTION]:void 0,[$M.WC_2_CORE_HISTORY]:void 0,[$M.WC_2_CORE_EXPIRER]:void 0};class qM{type="p2p-pairing-request";relayServer;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.relayServer=i}}class KM extends qM{senderId;constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,a,s),this.senderId=o}}var WM,GM,ZM;!function(e){e.RAW="raw",e.OPERATION="operation",e.MICHELINE="micheline"}(WM||(WM={}));class YM{type="p2p-pairing-request";relayServer;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.relayServer=i}}class XM{type="postmessage-pairing-request";id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o){this.id=e,this.name=t,this.icon=i,this.appUrl=o,this.publicKey=r,this.version=n}}class JM extends XM{senderId;constructor(e,t,r,n,i,o,a){super(e,t,r,n,o,a),this.senderId=i}}class QM{type="walletconnect-pairing-request";uri;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.uri=i}}class eL extends QM{senderId;constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,o,a,s),this.senderId=i}}!function(e){e.LIGHT="light",e.DARK="dark"}(GM||(GM={})),function(e){e.EUROPE_EAST="europe-east",e.EUROPE_WEST="europe-west",e.NORTH_AMERICA_EAST="north-america-east",e.NORTH_AMERICA_WEST="north-america-west",e.CENTRAL_AMERICA="central-america",e.SOUTH_AMERICA="south-america",e.ASIA_EAST="asia-east",e.ASIA_WEST="asia-west",e.AFRICA="africa",e.AUSTRALIA="australia"}(ZM||(ZM={}));const tL="https://beacon-notification-oracle.dev.gke.papers.tech",rL=[e=>{}];let nL={postMessage:(e,t)=>{console.log("GOT MOCK POST MESSAGE",e),rL.forEach((t=>{t({data:e})}))},addEventListener:(e,t)=>{rL.push(t)},removeEventListener:(e,t)=>{rL.splice(rL.indexOf((e=>e===t)),1)},location:{origin:"*"}};try{"undefined"!==typeof window&&(nL=window)}catch(Ole){console.log(`not defined: ${Ole}`)}class iL{track(e,t,r,n){}}class oL{name;iconUrl;appUrl;_beaconId=new wM;get beaconId(){return this._beaconId.promise}storage;analytics;_keyPair=new wM;get keyPair(){return this._keyPair.promise}constructor(e){if(!e.name)throw new Error("Name not set");if(!e.storage)throw new Error("Storage not set");this.name=e.name,this.iconUrl=e.iconUrl,this.appUrl=e.appUrl??nL.location.origin,this.storage=e.storage,this.analytics=e.analytics??new iL,nL.beaconCreatedClientInstance?console.error("[BEACON] It looks like you created multiple Beacon SDK Client instances. This can lead to problems. Only create one instance and re-use it everywhere."):nL.beaconCreatedClientInstance=!0,this.initSDK().catch(console.error)}async destroy(){await this.removeBeaconEntriesFromStorage(),nL.beaconCreatedClientInstance=!1}async initSDK(){return this.storage.set($M.BEACON_SDK_VERSION,"4.1.0").catch(console.error),this.loadOrCreateBeaconSecret().catch(console.error),this.keyPair.then((e=>{this._beaconId.resolve(PM(e.publicKey))}))}async removeBeaconEntriesFromStorage(){const e=Object.values($M);await Promise.all(e.map((e=>this.storage.delete(e))))}async loadOrCreateBeaconSecret(){const e=await this.storage.get($M.BEACON_SDK_SECRET_SEED);if(e&&"string"===typeof e)this._keyPair.resolve(await OM(e));else{const e=await RM();await this.storage.set($M.BEACON_SDK_SECRET_SEED,e),this._keyPair.resolve(await OM(e))}}}class aL{storage;storageKey;constructor(e,t){this.storage=e,this.storageKey=t}async getAll(){return await this.storage.get(this.storageKey)??[]}async getOne(e){return(await this.storage.get(this.storageKey)).find(e)}async addOne(e,t,r=!0){const n=await this.storage.get(this.storageKey);if(n.some(t)){if(r)for(let i=0;i!e(t)));return this.storage.set(this.storageKey,t)}async removeAll(){return this.storage.delete(this.storageKey)}}var sL=r(4872).Buffer;const cL=async(e,t)=>{const r=[e,t.type];t.name&&r.push(`name:${t.name}`),t.rpcUrl&&r.push(`rpc:${t.rpcUrl}`);const n=sL.from((0,Wa.hash)((0,kM.cv)(r.join("-")),10));return xM.encode(n)};class lL{static async hasPermission(e,t,r){switch(e.type){case IM.PermissionRequest:case IM.BroadcastRequest:return!0;case IM.OperationRequest:{const r=await cL(e.sourceAddress,e.network),n=await t(r);return!!n&&n.scopes.includes(MM.OPERATION_REQUEST)}case IM.SignPayloadRequest:{const t=(await r()).filter((t=>t.address===e.sourceAddress));return 0!==t.length&&t.some((e=>e.scopes.includes(MM.SIGN)))}default:throw new Error("Message not handled")}}}class uL{storageManager;constructor(e){this.storageManager=new aL(e,$M.ACCOUNTS)}async getAccounts(){return await this.storageManager.getAll()??[]}async getAccount(e){return this.storageManager.getOne((t=>t.accountIdentifier===e))}async addAccount(e){return this.storageManager.addOne(e,(t=>t.accountIdentifier===e.accountIdentifier))}async updateAccount(e,t){const r=await this.getAccount(e);if(!r)return;const n={...r,...t};return await this.storageManager.addOne(n,(t=>t.accountIdentifier===e),!0),n}async removeAccount(e){return this.storageManager.remove((t=>t.accountIdentifier===e))}async removeAccounts(e){return this.storageManager.remove((t=>e.includes(t.accountIdentifier)))}async removeAllAccounts(){return this.storageManager.removeAll()}async hasPermission(e){return lL.hasPermission(e,this.getAccount.bind(this),this.getAccounts.bind(this))}}var dL=r(4872).Buffer;const hL=async e=>{const t=dL.from((0,Wa.hash)(dL.from(e,"hex"),5));return xM.encode(t)};let fL=!!nL.beaconSdkDebugEnabled;fL&&console.log("[BEACON]: Debug mode is ON (turned on either by the developer or a browser extension)");class pL{name;constructor(e){this.name=e}debug(e,...t){mL.debug(this.name,e,t)}log(e,...t){mL.log(this.name,e,t)}warn(e,...t){mL.warn(this.name,e,t)}error(e,...t){mL.error(this.name,e,t)}time(e,t){mL.time(e,t)}timeLog(e,...t){mL.timeLog(e,t)}}new pL("");let mL=new class{constructor(){}debug(e,t,...r){this._log("debug",e,t,r)}log(e,t,...r){this._log("log",e,t,r)}warn(e,t,...r){this._log("warn",e,t,r)}error(e,t,...r){this._log("error",e,t,r)}time(e,t){e?console.time(t):console.timeEnd(t)}timeLog(e,t,...r){this._log("timeLog",e,t,r)}_log(e,t,r,n=[]){if(!fL)return;let i=`[BEACON] ${(new Date).toISOString()} [${t}](${r})`,o=n;switch(n[0]&&"string"===typeof n[0]&&(i+=` ${n[0]}`,o=n.slice(1)),e){case"error":console.group(i),console.error(...o);break;case"warn":console.group(i),console.warn(...o);break;case"debug":console.groupCollapsed(i),console.debug(...o);break;case"timeLog":console.group(i),console.timeLog(...o);break;default:console.group(i),console.log(...o)}console.groupEnd()}};const gL=new pL("Client");class vL extends oL{accountManager;handleResponse;rateLimit=2;rateLimitWindowInSeconds=5;requestCounter=[];matrixNodes;_transport=new wM;get transport(){return this._transport.promise}get connectionStatus(){return this._transport.promiseResult?.connectionStatus??UM.NOT_CONNECTED}get ready(){return this.transport.then((()=>{}))}constructor(e){super(e),this.accountManager=new uL(e.storage),this.matrixNodes=e.matrixNodes??{},this.handleResponse=(e,t)=>{throw new Error(`not overwritten${JSON.stringify(e)} - ${JSON.stringify(t)}`)}}async getAccounts(){return this.accountManager.getAccounts()}async getAccount(e){return this.accountManager.getAccount(e)}async removeAccount(e){return this.accountManager.removeAccount(e)}async removeAllAccounts(){return this.accountManager.removeAllAccounts()}async addRequestAndCheckIfRateLimited(){const e=(new Date).getTime();return this.requestCounter=this.requestCounter.filter((t=>t+1e3*this.rateLimitWindowInSeconds>e)),this.requestCounter.push(e),this.requestCounter.length>this.rateLimit}async init(e){return this._transport.status===yM.RESOLVED?(await this.transport).type:(await this.setTransport(e),e.type)}async getOwnAppMetadata(){return{senderId:await hL(await this.beaconId),name:this.name,icon:this.iconUrl}}async getPeers(){return(await this.transport).getPeers()}async addPeer(e){return(await this.transport).addPeer(e)}async destroy(){this._transport.status===yM.RESOLVED&&await(await this.transport).disconnect(),await super.destroy()}async setTransport(e){e?this._transport.isSettled()?this._transport=wM.resolve(e):this._transport.resolve(e):this._transport.isSettled()&&(this._transport=new wM)}async addListener(e){e.addListener((async(e,t)=>{if("string"===typeof e){const r=await(new _L).deserialize(e);this.handleResponse(r,t)}})).catch((e=>gL.error("addListener",e)))}async sendDisconnectToPeer(e,t){const r={id:await RM(),version:e.version,senderId:await hL(await this.beaconId),type:IM.Disconnect},n=await(new _L).serialize(r),i=t??await this.transport;await i.send(n,e)}}const yL=new pL("Transport");class bL{type=FM.POST_MESSAGE;name;_isConnected=UM.NOT_CONNECTED;peerManager;client;newPeerListener;setEventHandler(e,t){this.client.eventHandlers.set(e,t)}listeners=[];get connectionStatus(){return this._isConnected}constructor(e,t,r){this.name=e,this.client=t,this.peerManager=r}static async isAvailable(){return Promise.resolve(!1)}async connect(){yL.log("connect"),this._isConnected=UM.CONNECTED}async disconnect(){yL.log("disconnect"),this._isConnected=UM.NOT_CONNECTED}async send(e,t){if(t)return this.client.sendMessage(e,t);{const t=(await this.getPeers()).map((t=>this.client.sendMessage(e,t)));return(await Promise.all(t))[0]}}async addListener(e){yL.debug("addListener"),this.listeners.push(e)}async removeListener(e){yL.log("removeListener"),this.listeners=this.listeners.filter((t=>t!==e))}async getPeers(){return this.peerManager.getPeers()}async addPeer(e,t=!0){yL.log("addPeer","adding peer",e),await this.peerManager.addPeer(e),await this.listen(e.publicKey)}async removePeer(e){yL.log("removePeer","removing peer",e),await this.peerManager.removePeer(e.publicKey),this.client&&await this.client.unsubscribeFromEncryptedMessage(e.publicKey)}async removeAllPeers(){yL.log("removeAllPeers"),await this.peerManager.removeAllPeers(),this.client&&await this.client.unsubscribeFromEncryptedMessages()}async notifyListeners(e,t){0===this.listeners.length?yL.warn("notifyListeners","0 listeners notified!",this):yL.log("notifyListeners",`Notifying ${this.listeners.length} listeners`,this),this.listeners.forEach((r=>{r(e,t)}))}}class wL extends HM{prefix;constructor(e){super(),this.prefix=e}static async isSupported(){return Promise.resolve(Boolean("undefined"!==typeof window)&&Boolean(window.localStorage))}async get(e){const t=localStorage.getItem(this.getPrefixedKey(e));if(!t)return"object"===typeof VM[e]?JSON.parse(JSON.stringify(VM[e])):VM[e];try{return JSON.parse(t)}catch(r){return t}}async set(e,t){return"string"===typeof t?localStorage.setItem(this.getPrefixedKey(e),t):localStorage.setItem(this.getPrefixedKey(e),JSON.stringify(t))}async delete(e){return Promise.resolve(localStorage.removeItem(this.getPrefixedKey(e)))}async subscribeToStorageChanged(e){window.addEventListener("storage",(t=>{t.key?e({eventType:"entryModified",key:this.getPrefixedKey(t.key),oldValue:t.oldValue,newValue:t.newValue}):e({eventType:"storageCleared",key:null,oldValue:null,newValue:null})}),!1)}getPrefixedKey(e){return this.prefix?`${this.prefix}-${e}`:e}}new pL("STORAGE");var xL=r(4872).Buffer;class _L{async serialize(e){const t=JSON.stringify(e);return xM.encode(xL.from(t))}async deserialize(e){if("string"!==typeof e)throw new Error("Encoded payload needs to be a string");return JSON.parse(xM.decode(e).toString())}}class SL{storageManager;constructor(e){this.storageManager=new aL(e,$M.APP_METADATA_LIST)}async getAppMetadataList(){return await this.storageManager.getAll()??[]}async getAppMetadata(e){return this.storageManager.getOne((t=>t.senderId===e))}async addAppMetadata(e){return this.storageManager.addOne(e,(t=>t.senderId===e.senderId))}async removeAppMetadata(e){return this.storageManager.remove((t=>t.senderId===e))}async removeAppMetadatas(e){return this.storageManager.remove((t=>e.includes(t.senderId)))}async removeAllAppMetadata(){return this.storageManager.removeAll()}}class kL{storageManager;constructor(e){this.storageManager=new aL(e,$M.PERMISSION_LIST)}async getPermissions(){return await this.storageManager.getAll()??[]}async getPermission(e){return this.storageManager.getOne((t=>t.accountIdentifier===e))}async addPermission(e){return this.storageManager.addOne(e,(t=>t.accountIdentifier===e.accountIdentifier&&t.senderId===e.senderId))}async removePermission(e){return this.storageManager.remove((t=>t.accountIdentifier===e))}async removePermissions(e){return this.storageManager.remove((t=>e.includes(t.accountIdentifier)))}async removeAllPermissions(){return this.storageManager.removeAll()}async hasPermission(e){return lL.hasPermission(e,this.getPermission.bind(this),this.getPermissions.bind(this))}}class EL{storageManager;constructor(e,t){this.storageManager=new aL(e,t)}async hasPeer(e){return!!await this.getPeer(e)}async getPeers(){return await this.storageManager.getAll()??[]}async getPeer(e){return this.storageManager.getOne((t=>t.publicKey===e))}async addPeer(e){return this.storageManager.addOne(e,(t=>t.publicKey===e.publicKey))}async removePeer(e){return this.storageManager.remove((t=>t.publicKey===e))}async removePeers(e){return this.storageManager.remove((t=>e.includes(t.publicKey)))}async removeAllPeers(){return this.storageManager.removeAll()}}var AL=r(347),PL=r(4872).Buffer;class TL{keyPair;constructor(e){this.keyPair=e}eventHandlers=new Map;async getPublicKey(){return PM(this.keyPair?.publicKey)}async getPublicKeyHash(){return TM(this.keyPair.publicKey)}async createCryptoBoxServer(e,t){return(0,AL.serverSessionKeys)({publicKey:(0,Ka.SH)(t.publicKey),secretKey:(0,Ka.zh)(t.secretKey)},(0,Ka.SH)(PL.from(e,"hex")))}async createCryptoBoxClient(e,t){return(0,AL.clientSessionKeys)({publicKey:(0,Ka.SH)(t.publicKey),secretKey:(0,Ka.zh)(t.secretKey)},(0,Ka.SH)(PL.from(e,"hex")))}async encryptMessageAsymmetric(e,t){return async function(e,t){const r=(0,Ka.SH)(AM.from(t)),n=(0,_M.generateKeyPair)(),i=new Wa.BLAKE2b(24).update(n.publicKey,32).update(r,32).digest(),o="string"===typeof e?(0,kM.cv)(e):e,a=(0,_M.box)(r,n.secretKey,i,o);return PM((0,EM.z)(n.publicKey,a))}(t,PL.from(e,"hex"))}}r(4872).Buffer;new pL("IndexedDBStorage");var OL;!function(e){e.TEXT="m.text"}(OL||(OL={}));class CL{type;sender;content;timestamp;static from(e){if(RL(e))return new CL(e.content.msgtype,e.sender,e.content.body,e.origin_server_ts)}constructor(e,t,r,n){this.type=e,this.sender=t,this.content=r,this.timestamp=n}}const jL=e=>"m.room.message"===e.type,RL=e=>jL(e)&&e.content instanceof Object&&"msgtype"in e.content&&e.content.msgtype===OL.TEXT;var IL;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.JOINED=1]="JOINED",e[e.INVITED=2]="INVITED",e[e.LEFT=3]="LEFT"}(IL||(IL={}));class ML{id;status;members;messages;static fromSync(e){if(!e)return[];function t(e,t){return Object.entries(e).map((([e,r])=>t(e,r)))}return[...t(e.join??{},ML.fromJoined),...t(e.invite??{},ML.fromInvited),...t(e.leave??{},ML.fromLeft)]}static from(e,t){return"string"===typeof e?new ML(e,t||IL.UNKNOWN):void 0!==t?new ML(e.id,t,e.members,e.messages):e}static merge(e,t){return t&&t.id===e.id?new ML(e.id,e.status,[...t.members,...e.members].filter(((e,t,r)=>r.indexOf(e)===t)),[...t.messages,...e.messages]):ML.from(e)}static fromJoined(e,t){const r=[...t.state.events,...t.timeline.events],n=ML.getMembersFromEvents(r),i=ML.getMessagesFromEvents(r);return new ML(e,IL.JOINED,n,i)}static fromInvited(e,t){const r=ML.getMembersFromEvents(t.invite_state.events);return new ML(e,IL.INVITED,r)}static fromLeft(e,t){const r=[...t.state.events,...t.timeline.events],n=ML.getMembersFromEvents(r),i=ML.getMessagesFromEvents(r);return new ML(e,IL.LEFT,n,i)}static getMembersFromEvents(e){return ML.getUniqueEvents(e.filter((e=>(e=>"m.room.create"===e.type&&e.content instanceof Object&&"creator"in e.content)(e)||(e=>"m.room.member"===e.type&&e.content instanceof Object&&"membership"in e.content&&"join"===e.content.membership)(e)))).map((e=>e.sender)).filter(((e,t,r)=>r.indexOf(e)===t))}static getMessagesFromEvents(e){return ML.getUniqueEvents(e.filter(jL)).map((e=>CL.from(e))).filter(Boolean)}static getUniqueEvents(e){const t={},r=[];return e.forEach(((e,n)=>{const i=e.event_id;void 0!==i&&i in t||(void 0!==i&&(t[i]=n),r.push(e))})),r}constructor(e,t=IL.UNKNOWN,r=[],n=[]){this.id=e,this.status=t,this.members=r,this.messages=n}}const LL=["syncToken","rooms"];class NL{storage;state={isRunning:!1,userId:void 0,deviceId:void 0,txnNo:0,accessToken:void 0,syncToken:void 0,pollingTimeout:void 0,pollingRetries:0,rooms:{}};onStateChangedListeners=new Map;waitReadyPromise;constructor(e){this.storage=e,this.waitReadyPromise=new Promise((async(e,t)=>{try{await this.initFromStorage(),e()}catch(r){t(r)}}))}get(e){return this.state[e]}getRoom(e){const t=ML.from(e,IL.UNKNOWN);return this.state.rooms[t.id]||t}async update(e){await this.waitReady();const t=Object.assign({},this.state);this.setState(e),this.updateStorage(e),this.notifyListeners(t,this.state,e)}onStateChanged(e,...t){t.length>0?t.forEach((t=>{this.onStateChangedListeners.set(t,e)})):this.onStateChangedListeners.set("all",e)}async waitReady(){return this.waitReadyPromise}async initFromStorage(){const e=await this.storage.get($M.MATRIX_PRESERVED_STATE);this.setState(e)}prepareData(e){const t=["rooms"].some((t=>void 0!==e[t]))?JSON.parse(JSON.stringify(e)):e;return Object.values(t.rooms||{}).forEach((e=>{e.messages=[]})),t}updateStorage(e){const t=Object.entries(e).filter((([e,t])=>LL.includes(e)&&Boolean(t)));if(t.length>0){const e={};LL.forEach((t=>{e[t]=this.state[t]})),this.storage.set($M.MATRIX_PRESERVED_STATE,this.prepareData(e))}}setState(e){this.state={isRunning:e.isRunning||this.state.isRunning,userId:e.userId||this.state.userId,deviceId:e.deviceId||this.state.deviceId,txnNo:e.txnNo||this.state.txnNo,accessToken:e.accessToken||this.state.accessToken,syncToken:e.syncToken||this.state.syncToken,pollingTimeout:e.pollingTimeout||this.state.pollingTimeout,pollingRetries:e.pollingRetries||this.state.pollingRetries,rooms:this.mergeRooms(this.state.rooms,e.rooms)}}mergeRooms(e,t){if(!t)return e;const r=Array.isArray(t)?t:Object.values(t),n=Object.assign({},e);return r.forEach((t=>{n[t.id]=ML.merge(t,e[t.id])})),n}notifyListeners(e,t,r){const n=this.onStateChangedListeners.get("all");n&&n(e,t,r),vM(r).filter((e=>void 0!==r[e])).forEach((n=>{const i=this.onStateChangedListeners.get(n);i&&i(e,t,r)}))}}const DL=new pL("MatrixHttpClient");class zL{baseUrl;cancelTokenSource;constructor(e){this.baseUrl=e,this.cancelTokenSource=dj.CancelToken.source()}async get(e,t,r){return this.send("GET",e,r,t)}async post(e,t,r,n){return this.send("POST",e,r,n,t)}async put(e,t,r,n){return this.send("PUT",e,r,n,t)}async cancelAllRequests(){return this.cancelTokenSource.cancel("Manually cancelled")}async send(e,t,r,n,i){const o=r?this.getHeaders(r):void 0,a=n?this.getParams(n):void 0;let s;try{s=await dj.request({method:e,url:t,baseURL:this.apiUrl("/_matrix/client/r0"),headers:o,data:i,params:a,cancelToken:this.cancelTokenSource.token})}catch(c){const e=c;throw DL.error("send",e.code,e.message,e.response.data),c.response.data}return s.data}getHeaders(e){const t={},r=[];if(e.accessToken&&r.push(["Authorization",`Bearer ${e.accessToken}`]),0!==r.length){for(const[e,n]of r)t[e]=n;return t}}getParams(e){if(!e)return;const t=Object.assign(e,{});return vM(t).forEach((e=>void 0===t[e]&&delete t[e])),t}apiUrl(...e){return[this.baseUrl.endsWith("/")?this.baseUrl.substr(0,this.baseUrl.length-1):this.baseUrl,...e.map((e=>e.startsWith("/")?e.substr(1):e))].join("/")}}class BL{httpClient;constructor(e){this.httpClient=e}async createRoom(e,t={}){return this.httpClient.post("/createRoom",t,{accessToken:e})}async inviteToRoom(e,t,r){return r.status!==IL.JOINED&&r.status!==IL.UNKNOWN?Promise.reject(`User is not a member of room ${r.id}.`):this.httpClient.post(`/rooms/${encodeURIComponent(r.id)}/invite`,{user_id:t},{accessToken:e})}async joinRoom(e,t){return t.status===IL.JOINED?Promise.resolve({room_id:t.id}):this.httpClient.post(`/rooms/${encodeURIComponent(t.id)}/join`,{},{accessToken:e})}async getJoinedRooms(e){return this.httpClient.get("/joined_rooms",void 0,{accessToken:e})}}class UL{httpClient;constructor(e){this.httpClient=e}async login(e,t,r){return this.httpClient.post("/login",{type:"m.login.password",identifier:{type:"m.id.user",user:e},password:t,device_id:r})}}class FL{httpClient;cachedPromises=new Map;constructor(e){this.httpClient=e}async sync(e,t){return this.withCache("sync",(()=>this.httpClient.get("/sync",{timeout:t?t.pollingTimeout:void 0,since:t?t.syncToken:void 0},{accessToken:e})))}async sendMessage(e,t,r,n){return new Promise(((i,o)=>this.scheduleEvent({accessToken:e,roomId:t,type:"m.room.message",content:r,txnId:n,onSuccess:i,onError:o})))}scheduleEvent(e){this.sendEvent(e)}async sendEvent(e){const{roomId:t,type:r,txnId:n,content:i,accessToken:o}=e;try{const a=await this.httpClient.put(`/rooms/${encodeURIComponent(t)}/send/${r}/${encodeURIComponent(n)}`,i,{accessToken:o});e.onSuccess(a)}catch(a){e.onError(a)}}withCache(e,t){let r=this.cachedPromises.get(e);return r||(r=t().finally((()=>{this.cachedPromises.delete(e)})),this.cachedPromises.set(e,r)),r}}class $L{events={};on(e,t){return"object"!==typeof this.events[e]&&(this.events[e]=[]),this.events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if("object"!==typeof this.events[e])return;if(!t)return void(this.events[e]=[]);const r=this.events[e].indexOf(t);r>-1&&this.events[e].splice(r,1)}removeAllListeners(){Object.keys(this.events).forEach((e=>this.events[e].splice(0,this.events[e].length)))}emit(e,...t){"object"===typeof this.events[e]&&[...this.events[e]].forEach((e=>e.apply(this,t)))}once(e,t){const r=this.on(e,((...e)=>{r(),t.apply(this,e)}));return r}}var HL;!function(e){e.INVITE="invite",e.MESSAGE="message"}(HL||(HL={}));class VL extends $L{eventEmitProviders=new Map([[HL.INVITE,()=>[this.isInvite,this.emitInvite.bind(this)]],[HL.MESSAGE,()=>[this.isMessage,this.emitMessage.bind(this)]]]);onStateChanged(e,t,r){for(const n of vM(HL))this.emitIfEvent(HL[n],r)}emitIfEvent(e,t){const r=this.eventEmitProviders.get(e);if(r){const[n,i]=r();n(t)&&i(e,t)}}emitClientEvent(e,t,r){this.emit(e,{type:e,content:t,timestamp:r})}isInvite(e){return!!e.rooms&&e.rooms.some((e=>e.status===IL.INVITED))}emitInvite(e,t){t.rooms.filter((e=>e.status===IL.INVITED)).map((e=>[e.id,e.members])).forEach((([t,r])=>{this.emitClientEvent(e,{roomId:t,members:r})}))}isMessage(e){return!!e.rooms&&e.rooms.some((e=>e.messages.length>0))}emitMessage(e,t){t.rooms.filter((e=>e.messages.length>0)).map((e=>e.messages.map((t=>[e.id,t,t.timestamp])))).reduce(((e,t)=>e.concat(t)),[]).forEach((([t,r,n])=>{this.emitClientEvent(e,{roomId:t,message:r},n)}))}}const qL=new pL("MatrixClient");class KL{store;eventEmitter;userService;roomService;eventService;httpClient;isActive=!0;_isReady=new wM;constructor(e,t,r,n,i,o){this.store=e,this.eventEmitter=t,this.userService=r,this.roomService=n,this.eventService=i,this.httpClient=o,this.store.onStateChanged(((e,t,r)=>{this.eventEmitter.onStateChanged(e,t,r)}),"rooms")}static create(e){const t=new NL(e.storage),r=new VL,n=new zL(e.baseUrl),i=new UL(n),o=new BL(n),a=new FL(n);return new KL(t,r,i,o,a,n)}get joinedRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===IL.JOINED)))}))}get invitedRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===IL.INVITED)))}))}get leftRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===IL.LEFT)))}))}async start(e){const t=await this.userService.login(e.id,e.password,e.deviceId);await this.store.update({accessToken:t.access_token});const r=new Promise((async(e,t)=>{await this.poll(0,(async t=>{this.store.get("isRunning")||e(),await this.store.update({isRunning:!0,syncToken:t.next_batch,pollingTimeout:3e4,pollingRetries:0,rooms:ML.fromSync(t.rooms)})}),(async e=>{this.store.get("isRunning")||t(e),await this.store.update({isRunning:!1,pollingRetries:this.store.get("pollingRetries")+1})}))}));return r.then((()=>{this._isReady.resolve()})).catch(console.error),r}async isConnected(){return this._isReady.promise}async stop(){return qL.log("MATRIX CLIENT STOPPED"),this.isActive=!1,this._isReady=new wM,this.httpClient.cancelAllRequests()}subscribe(e,t){this.eventEmitter.on(e,t)}unsubscribe(e,t){t&&this.eventEmitter.removeListener(e,t)}unsubscribeAll(e){this.eventEmitter.removeListener(e)}async getRoomById(e){return await this.isConnected(),this.store.getRoom(e)}async createTrustedPrivateRoom(...e){return await this.isConnected(),this.requiresAuthorization("createRoom",(async t=>(await this.roomService.createRoom(t,{room_version:"5",invite:e,preset:"public_chat",is_direct:!0})).room_id))}async inviteToRooms(e,...t){await this.isConnected(),await this.requiresAuthorization("invite",(r=>Promise.all(t.map((t=>{const n=this.store.getRoom(t);this.roomService.inviteToRoom(r,e,n).catch((e=>qL.warn("inviteToRooms",e)))})))))}async joinRooms(...e){await this.isConnected(),await this.requiresAuthorization("join",(t=>Promise.all(e.map((e=>{const r=this.store.getRoom(e);return this.roomService.joinRoom(t,r)})))))}async sendTextMessage(e,t){await this.isConnected(),await this.requiresAuthorization("send",(async r=>{const n=await this.createTxnId();return this.eventService.sendMessage(r,e,{msgtype:"m.text",body:t},n)}))}async poll(e,t,r){const n=this.store,i=this.sync.bind(this),o=async(a,s)=>{let c=0;try{const e=await i();t(e)}catch(l){r(l),c=n.get("pollingRetries"),this.isActive&&qL.log(`Retry syncing... ${c} retries so far`)}finally{this.isActive?setTimeout((async()=>{await o(a,s)}),c>3?5e3+e:e):s(new Error("Syncing stopped manually."))}};return new Promise(o)}async sync(){return this.requiresAuthorization("sync",(async e=>this.eventService.sync(e,{pollingTimeout:this.store.get("pollingTimeout"),syncToken:this.store.get("syncToken")})))}async requiresAuthorization(e,t){const r=this.store.get("accessToken");return r?t(r):Promise.reject(`${e} requires authorization but no access token has been provided.`)}async createTxnId(){const e=(new Date).getTime(),t=this.store.get("txnNo");return await this.store.update({txnNo:t+1}),`m${e}.${t}`}}var WL=r(4872).Buffer;const GL=new pL("P2PCommunicationClient"),ZL={[ZM.EUROPE_WEST]:["beacon-node-1.diamond.papers.tech","beacon-node-1.sky.papers.tech","beacon-node-2.sky.papers.tech","beacon-node-1.hope.papers.tech","beacon-node-1.hope-2.papers.tech","beacon-node-1.hope-3.papers.tech","beacon-node-1.hope-4.papers.tech","beacon-node-1.hope-5.papers.tech"],[ZM.NORTH_AMERICA_EAST]:["beacon-node-1.beacon-server-1.papers.tech"],[ZM.NORTH_AMERICA_WEST]:["beacon-node-1.beacon-server-2.papers.tech"],[ZM.ASIA_EAST]:["beacon-node-1.beacon-server-3.papers.tech"],[ZM.AUSTRALIA]:["beacon-node-1.beacon-server-4.papers.tech"]},YL=e=>new Promise((t=>setTimeout(t,e)));class XL extends TL{name;replicationCount;storage;iconUrl;appUrl;client=new wM;initialEvent;initialListener;selectedRegion;ENABLED_RELAY_SERVERS;relayServer;activeListeners=new Map;ignoredRooms=[];loginCounter=0;constructor(e,t,r,n,i,o,a){super(t),this.name=e,this.replicationCount=r,this.storage=n,this.iconUrl=o,this.appUrl=a,GL.log("constructor","P2PCommunicationClient created"),this.ENABLED_RELAY_SERVERS=ZL,i&&(this.ENABLED_RELAY_SERVERS={...ZL,...i})}async getPairingRequestInfo(){const e=new qM(await RM(),this.name,await this.getPublicKey(),"3",(await this.getRelayServer()).server);return this.iconUrl&&(e.icon=this.iconUrl),this.appUrl&&(e.appUrl=this.appUrl),e}async getPairingResponseInfo(e){const t=new YM(e.id,this.name,await this.getPublicKey(),e.version,(await this.getRelayServer()).server);return this.iconUrl&&(t.icon=this.iconUrl),this.appUrl&&(t.appUrl=this.appUrl),t}async findBestRegionAndGetServer(){if(this.selectedRegion)return this.relayServer?.promiseResult;const e=Object.keys(this.ENABLED_RELAY_SERVERS),t=[],r=new wM;let n=0;const i=new wM;e.forEach((e=>{const o=this.ENABLED_RELAY_SERVERS[e]??[];if(0===o.length)return;n+=2;const a=(o=!0)=>{const c=Date.now();Promise.race([this.getBeaconInfo(s),i.promise]).then((i=>{"boolean"!==typeof i&&(t.push({time:Date.now()-c,server:s,region:e,result:i}),t.length>=n&&r.resolve(void 0),o||a(!0))}))},s=o[Math.floor(Math.random()*o.length)];a(!1)})),await Promise.race([r.promise,YL(1e3)]);let o=0;for(;t.length<=0;){if(o>=100)throw new Error("No server responded.");await YL(50),o++}i.resolve(!0);const a=t.reduce(((e,t)=>e.time0){const t=await this.getBeaconInfo(e);return this.relayServer.resolve({server:e,timestamp:t.timestamp,localTimestamp:(new Date).getTime()}),{server:e,timestamp:t.timestamp}}const t=await this.findBestRegionAndGetServer();if(!t)throw new Error("No servers found");return this.storage.set($M.MATRIX_SELECTED_NODE,t.server).catch((e=>GL.log(e))),this.relayServer.resolve({server:t.server,timestamp:t.timestamp,localTimestamp:(new Date).getTime()}),{server:t.server,timestamp:t.timestamp}}async getBeaconInfo(e){return dj.get(`https://${e}/_synapse/client/beacon/info`).then((e=>({region:e.data.region,known_servers:e.data.known_servers,timestamp:Math.floor(e.data.timestamp)})))}async tryJoinRooms(e,t=1){try{await(await this.client.promise).joinRooms(e)}catch(r){t<=10&&"M_FORBIDDEN"===r.errcode?(GL.log("Retrying to join...",r),setTimeout((async()=>{await this.tryJoinRooms(e,t+1)}),200)):GL.log(`Failed to join after ${t} tries.`,r)}}async start(){GL.log("start","starting client"),GL.log("start","connecting to server");const e=await this.getRelayServer(),t=KL.create({baseUrl:`https://${e.server}`,storage:this.storage});if(this.initialListener=async e=>{this.initialEvent&&this.initialEvent.timestamp&&e&&e.timestamp?this.initialEvent.timestamp{let t;1===e.content.members.length&&(t=e.content.members[0]),await this.tryJoinRooms(e.content.roomId),t&&(await this.updateRelayServer(t),await this.updatePeerRoom(t,e.content.roomId))})),!e.timestamp)throw new Error("No timestamp received from relay server");const r=Math.floor(e.timestamp),n=`login:${Math.floor(r/300)}`;GL.log("start",`login ${n}, ${await this.getPublicKeyHash()} on ${e.server}`);const i=(0,Wa.hash)((0,kM.cv)(n),32),o=this.keyPair.secretKey??this.keyPair.privateKey,a=(0,Ka.Xx)(o,i);try{await t.start({id:await this.getPublicKeyHash(),password:`ed:${PM(a)}:${await this.getPublicKey()}`,deviceId:PM(this.keyPair.publicKey)})}catch(s){if(GL.error("start","Could not log in, retrying"),await this.reset(),!this.selectedRegion)throw new Error("No region selected.");if(this.loginCounter<=(this.ENABLED_RELAY_SERVERS[this.selectedRegion]??[]).length)return this.loginCounter++,void this.start();throw GL.error("start","Tried to log in to every known beacon node, but no login was successful."),new Error("Could not connect to any beacon nodes. Try again later.")}GL.log("start","login successful, client is ready"),this.client.resolve(t)}async stop(){GL.log("stop","stopping client"),this.client.isResolved()&&await(await this.client.promise).stop().catch((e=>GL.error(e))),await this.reset()}async reset(){GL.log("reset","resetting connection"),await this.storage.delete($M.MATRIX_PEER_ROOM_IDS).catch((e=>GL.log(e))),await this.storage.delete($M.MATRIX_PRESERVED_STATE).catch((e=>GL.log(e))),await this.storage.delete($M.MATRIX_SELECTED_NODE).catch((e=>GL.log(e))),this.relayServer=void 0,this.client=new wM,this.initialEvent=void 0,this.initialListener=void 0}async listenForEncryptedMessage(e,t){if(this.activeListeners.has(e))return;GL.log("listenForEncryptedMessage",`start listening for encrypted messages from publicKey ${e}`);const r=await this.createCryptoBoxServer(e,this.keyPair),n=async n=>{if(this.isTextMessage(n.content)&&await this.isSender(n,e)){let o;await this.updateRelayServer(n.content.message.sender),await this.updatePeerRoom(n.content.message.sender,n.content.roomId);try{o=WL.from(n.content.message.content,"hex")}catch{}if(o&&o.length>=40)try{const n=await async function(e,t){const r=e.slice(0,24),n=e.slice(24),i=(0,_M.openSecretBox)(t,r,n);if(!i)throw new Error("Decryption failed");return AM.from(i).toString("utf8")}(o,r.receive);GL.log("listenForEncryptedMessage",`received a message from ${e}`,n),t(n)}catch(i){}}};this.activeListeners.set(e,n),(await this.client.promise).subscribe(HL.MESSAGE,n);const i=this.initialEvent;i&&i.timestamp&&(new Date).getTime()-i.timestamp<3e5?(GL.log("listenForEncryptedMessage","Handling previous event"),await n(i)):GL.log("listenForEncryptedMessage","No previous event found");const o=this.initialListener;o&&(await this.client.promise).unsubscribe(HL.MESSAGE,o),this.initialListener=void 0,this.initialEvent=void 0}async unsubscribeFromEncryptedMessage(e){const t=this.activeListeners.get(e);t&&((await this.client.promise).unsubscribe(HL.MESSAGE,t),this.activeListeners.delete(e))}async unsubscribeFromEncryptedMessages(){(await this.client.promise).unsubscribeAll(HL.MESSAGE),this.activeListeners.clear()}async sendMessage(e,t){const r=await this.createCryptoBoxClient(t.publicKey,this.keyPair),n=CM(await TM(WL.from(t.publicKey,"hex")),t.relayServer),i=await this.getRelevantRoom(n);await this.waitForJoin(i);const o=await async function(e,t){const r=AM.from((0,SM.randomBytes)(24));return PM(AM.concat([r,AM.from((0,_M.secretBox)(t,r,AM.from(e,"utf8")))]))}(e,r.send);GL.log("sendMessage","sending encrypted message",t.publicKey,i,e),(await this.client.promise).sendTextMessage(i,o).catch((async e=>{if("M_FORBIDDEN"===e.errcode){GL.log("sendMessage","M_FORBIDDEN",i,e),await this.deleteRoomIdFromRooms(i);const t=await this.getRelevantRoom(n);GL.log("sendMessage","Old room deleted, new room created",t),(await this.client.promise).sendTextMessage(t,o).catch((async e=>{GL.log("sendMessage","inner error",t,e)}))}else GL.log("sendMessage","unexpected error",e)}))}async updatePeerRoom(e,t){GL.log("updatePeerRoom",e,t);const r=e.split(":");if(r.length<2||!r[0].startsWith("@"))throw new Error("Invalid sender");const n=await this.storage.get($M.MATRIX_PEER_ROOM_IDS),i=n[e];i===t&&GL.debug("updatePeerRoom","rooms are the same, not updating"),GL.debug("updatePeerRoom","current room",i,"new room",t),i&&i[1]&&(GL.log("updatePeerRoom",`adding room "${i[1]}" to ignored array`),this.ignoredRooms.push(i[1])),n[e]=t,await this.storage.set($M.MATRIX_PEER_ROOM_IDS,n)}async deleteRoomIdFromRooms(e){const t=await this.storage.get($M.MATRIX_PEER_ROOM_IDS),r=Object.entries(t).filter((t=>t[1]!==e)).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{});await this.storage.set($M.MATRIX_PEER_ROOM_IDS,r),this.ignoredRooms.push(e)}async listenForChannelOpening(e){GL.debug("listenForChannelOpening"),(await this.client.promise).subscribe(HL.MESSAGE,(async t=>{if(this.isTextMessage(t.content)&&await this.isChannelOpenMessage(t.content)){GL.log("listenForChannelOpening","channel opening received, trying to decrypt",JSON.stringify(t)),await this.updateRelayServer(t.content.message.sender),await this.updatePeerRoom(t.content.message.sender,t.content.roomId);const n=t.content.message.content.split(":"),i=WL.from(n[n.length-1],"hex");if(i.length>=40)try{const t=JSON.parse(await async function(e,t,r){const n=(0,Ka.zh)(AM.from(r)),i=(0,Ka.SH)(AM.from(t)),o="string"===typeof e?(0,kM.cv)(e):e,a=o.slice(0,32),s=o.slice(32),c=new Wa.BLAKE2b(24).update(a,32).update(i,32).digest(),l=(0,_M.openBox)(a,n,c,s);if(!l)throw new Error("Decryption failed");return AM.from(l).toString()}(i,this.keyPair.publicKey,this.keyPair.secretKey));GL.log("listenForChannelOpening","channel opening received and decrypted",JSON.stringify(t)),e({...t,senderId:await hL(t.publicKey)})}catch(r){}}}))}async waitForJoin(e,t=0){const r=await(await this.client.promise).getRoomById(e);if(GL.log("waitForJoin",`Currently ${r.members.length} members, we need at least 2`),!(r.members.length>=2)){if(t<=200)return GL.log(`Waiting for join... Try: ${t}`),new Promise((r=>{setTimeout((()=>{r(this.waitForJoin(e,t+1))}),100*(t>50?10:1))}));throw new Error(`No one joined after ${t} tries.`)}}async sendPairingResponse(e){GL.log("sendPairingResponse");const t=CM(await TM(WL.from(e.publicKey,"hex")),e.relayServer),r=await(await this.client.promise).createTrustedPrivateRoom(t);GL.debug("sendPairingResponse",`Connecting to room "${r}"`),await this.updatePeerRoom(t,r),await this.waitForJoin(r),GL.debug("sendPairingResponse","Successfully joined room.");const n="undefined"===typeof e.version?await this.getPublicKey():JSON.stringify(await this.getPairingResponseInfo(e));GL.debug("sendPairingResponse","Sending pairing response",n);const i=await this.encryptMessageAsymmetric(e.publicKey,n),o=["@channel-open",t,i].join(":");(await this.client.promise).sendTextMessage(r,o).catch((async e=>{if("M_FORBIDDEN"===e.errcode){GL.log("sendPairingResponse","M_FORBIDDEN",r,e),await this.deleteRoomIdFromRooms(r);const n=await this.getRelevantRoom(t);GL.log("sendPairingResponse","Old room deleted, new room created",n),(await this.client.promise).sendTextMessage(n,o).catch((async e=>{GL.log("sendPairingResponse","inner error",n,e)}))}else GL.log("sendPairingResponse","unexpected error",e)}))}isTextMessage(e){return e.message.type===OL.TEXT}async updateRelayServer(e){GL.log("updateRelayServer",e);const t=e.split(":");if(t.length<2||!t[0].startsWith("@"))throw new Error("Invalid sender");const r=t.shift(),n=t.join(":"),i=localStorage.getItem("beacon:communication-peers-dapp")?new EL(this.storage,$M.TRANSPORT_P2P_PEERS_DAPP):new EL(this.storage,$M.TRANSPORT_P2P_PEERS_WALLET),o=(await i.getPeers()).map((async e=>{`@${await TM(WL.from(e.publicKey,"hex"))}`===r&&e.relayServer!==n&&(e.relayServer=n,await i.addPeer(e))}));await Promise.all(o)}async isChannelOpenMessage(e){return e.message.content.startsWith(`@channel-open:@${await TM(WL.from(await this.getPublicKey(),"hex"))}`)}async isSender(e,t){return e.content.message.sender.startsWith(`@${await TM(WL.from(t,"hex"))}`)}async getRelevantRoom(e){const t=await this.storage.get($M.MATRIX_PEER_ROOM_IDS);let r=t[e];if(!r){GL.log("getRelevantRoom",`No room found for peer ${e}, checking joined ones.`);const n=await this.getRelevantJoinedRoom(e);r=n.id,t[e]=n.id,await this.storage.set($M.MATRIX_PEER_ROOM_IDS,t)}return GL.log("getRelevantRoom",`Using room ${r}`),r}async getRelevantJoinedRoom(e){const t=await(await this.client.promise).joinedRooms;GL.log("checking joined rooms",t,e);const r=t.filter((e=>!this.ignoredRooms.some((t=>e.id===t)))).filter((t=>t.members.some((t=>t===e))));let n;if(0===r.length||this.ignoredRooms.length>0){GL.log("getRelevantJoinedRoom","no relevant rooms found, creating new one");const t=await(await this.client.promise).createTrustedPrivateRoom(e);n=await(await this.client.promise).getRoomById(t),GL.log("getRelevantJoinedRoom",`waiting for other party to join room: ${n.id}`),await this.waitForJoin(t),GL.log("getRelevantJoinedRoom",`new room created and peer invited: ${n.id}`)}else n=r[0],GL.log("getRelevantJoinedRoom",`channel already open, reusing room ${n.id}`);return n}}const JL=new pL("P2PTransport");class QL extends bL{type=FM.P2P;constructor(e,t,r,n,i,o,a){super(e,new XL(e,t,1,r,n,o,a),new EL(r,i))}static async isAvailable(){return Promise.resolve(!0)}async connect(){if(this._isConnected!==UM.NOT_CONNECTED)return;JL.log("connect"),this._isConnected=UM.CONNECTING,await this.client.start();const e=await this.getPeers();if(e.length>0){JL.log("connect",`connecting to ${e.length} peers`);const t=e.map((async e=>this.listen(e.publicKey)));Promise.all(t).catch((e=>JL.error("connect",e)))}return await this.startOpenChannelListener(),super.connect()}async disconnect(){return await this.client.stop(),super.disconnect()}async startOpenChannelListener(){}async getPairingRequestInfo(){return this.client.getPairingRequestInfo()}async listen(e){await this.client.listenForEncryptedMessage(e,(t=>{const r={origin:DM.P2P,id:e};this.notifyListeners(t,r).catch((e=>{throw e}))})).catch((e=>{throw e}))}}class eN extends QL{constructor(e,t,r,n,i,o){super(e,t,r,n,$M.TRANSPORT_P2P_PEERS_WALLET,i,o)}async addPeer(e,t=!0){await super.addPeer(e),t&&await this.client.sendPairingResponse(e)}}const tN=new pL("IncomingRequestInterceptor");class rN{static async intercept(e){tN.log("INTERCEPTING REQUEST",e.message),"2"===e.message.version?rN.handleV2Message(e):"3"===e.message.version&&rN.handleV3Message(e)}static async getAppMetadata(e,t){const r=await e.getAppMetadata(t);if(!r)throw new Error("AppMetadata not found");return r}static async handleV2Message(e){const{message:t,connectionInfo:r,appMetadataManager:n,interceptorCallback:i}=e;switch(t.type){case IM.PermissionRequest:tN.log("PERMISSION REQUEST V*",t),t.appMetadata.beaconId&&!t.appMetadata.senderId&&(t.appMetadata.senderId=t.appMetadata.beaconId,delete t.appMetadata.beaconId),await n.addAppMetadata(t.appMetadata);i(t,r);break;case IM.OperationRequest:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;case IM.SignPayloadRequest:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;case IM.BroadcastRequest:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;case IM.ProofOfEventChallengeRequest:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;case IM.ProofOfEventChallengeRecorded:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;default:tN.log("intercept","Message not handled"),nN(t)}}static async handleV3Message(e){const{message:t,connectionInfo:r,appMetadataManager:n,interceptorCallback:i}=e,o=t,a=o.message;switch(a.type){case IM.PermissionRequest:await n.addAppMetadata({...a.blockchainData.appMetadata,senderId:t.senderId});i(o,r);break;case IM.BlockchainRequest:i({...o},r);break;default:tN.log("intercept","Message not handled"),nN(a)}}}function nN(e){throw new Error("Function not implemented.")}const iN=new pL("OutgoingResponseInterceptor");class oN{static async intercept(e){"2"===e.request.version?oN.handleV2Message(e):"3"===e.request.version&&oN.handleV3Message(e)}static async handleV3Message(e){const{message:t,appMetadataManager:r,interceptorCallback:n}=e,i=t.message;iN.log("LOGGING OUTGOING V3",i,r),n(t)}static async handleV2Message(e){const{senderId:t,request:r,message:n,ownAppMetadata:i,permissionManager:o,appMetadataManager:a,interceptorCallback:s}=e;switch(n.type){case IM.Error:{const e={type:n.type,version:"2",senderId:t,id:n.id,errorType:n.errorType};if(n.errorType===BM.TRANSACTION_INVALID_ERROR&&n.errorData){const t=n.errorData;Array.isArray(t)&&t.every((e=>Boolean(e.kind)&&Boolean(e.id)))?e.errorData=n.errorData:iN.warn("ErrorData provided is not in correct format. It needs to be an array of RPC errors. It will not be included in the message sent to the dApp")}s(e);break}case IM.Acknowledge:s({type:n.type,version:"2",senderId:t,id:n.id});break;case IM.PermissionResponse:{const e={senderId:t,version:"2",appMetadata:i,...n};if(!e.address&&!e.publicKey)throw new Error("Address or PublicKey must be defined");const c=e.publicKey,l=e.address??await async function(e){const t={edpk:{length:54,prefix:AM.from(new Uint8Array([6,161,159]))},sppk:{length:55,prefix:AM.from(new Uint8Array([6,161,161]))},p2pk:{length:55,prefix:AM.from(new Uint8Array([6,161,164]))}};let r,n;if(64===e.length)r=t.edpk.prefix,n=e;else{const i=Object.entries(t);for(let t=0;t{if(!["tz1","tz2","tz3","tz4","KT1","txr1","sr1"].some((t=>e.toLowerCase().startsWith(t.toLowerCase()))))return!1;try{xM.decode(e)}catch(t){return!1}return!0})(l))throw new Error(`Invalid address: "${l}"`);if("abstracted_account"===n.walletType&&"KT1"!==l.substring(0,3))throw new Error(`Invalid abstracted account address "${l}", it should be a KT1 address`);const u=await a.getAppMetadata(r.senderId);if(!u)throw new Error("AppMetadata not found");const d={accountIdentifier:await cL(l,e.network),senderId:r.senderId,appMetadata:u,website:"",address:l,publicKey:c,network:e.network,scopes:e.scopes,connectedAt:(new Date).getTime()};o.addPermission(d).catch(console.error),s(e);break}case IM.OperationResponse:s({senderId:t,version:"2",...n});break;case IM.SignPayloadResponse:s({senderId:t,version:"2",...n});break;case IM.BroadcastResponse:s({senderId:t,version:"2",...n});break;case IM.ProofOfEventChallengeResponse:s({senderId:t,version:"2",...n});break;default:iN.log("intercept","Message not handled"),function(e){throw new Error("Function not implemented.")}()}}}const aN=new pL("WalletClient");class sN extends vL{_isConnected=new wM;get isConnected(){return this._isConnected.promise}permissionManager;appMetadataManager;pendingRequests=[];constructor(e){super({storage:e&&e.storage?e.storage:new wL,...e}),this.permissionManager=new kL(this.storage),this.appMetadataManager=new SL(this.storage)}async init(){const e=await this.keyPair,t=new eN(this.name,e,this.storage,this.matrixNodes,this.iconUrl,this.appUrl);return super.init(t)}async connect(e){return this.handleResponse=async(t,r)=>{if("3"===t.version){const n=t;if(n.message.type===IM.Disconnect)return this.disconnect(n.senderId);this.pendingRequests.some((e=>e[0].id===t.id))||(this.pendingRequests.push([n,r]),await this.sendAcknowledgeResponse(n,r),await rN.intercept({message:n,connectionInfo:r,appMetadataManager:this.appMetadataManager,interceptorCallback:e}))}else{const n=t;if(n.type===IM.Disconnect)return this.disconnect(n.senderId);this.pendingRequests.some((e=>e[0].id===t.id))||(this.pendingRequests.push([n,r]),"1"!==n.version&&await this.sendAcknowledgeResponse(n,r),await rN.intercept({message:n,connectionInfo:r,appMetadataManager:this.appMetadataManager,interceptorCallback:e}))}},this._connect()}async getRegisterPushChallenge(e,t,r=tL){const n=(await dj.get(`${r}/challenge`)).data,i=PM(["Tezos Signed Message: ",n.id,n.timestamp,t,e].join(" "));return{challenge:n,payloadToSign:"0501"+i.length.toString(16).padStart(8,"0")+i}}async registerPush(e,t,r,n,i,o,a=tL){const s=await this.storage.get($M.PUSH_TOKENS),c=s.find((e=>e.publicKey===n&&e.backendUrl===r));if(c)return c;const l=(await dj.post(`${a}/register`,{name:this.name,challenge:e,accountPublicKey:n,signature:t,backendUrl:r,protocolIdentifier:i,deviceId:o})).data,u={publicKey:n,backendUrl:r,accessToken:l.accessToken,managementToken:l.managementToken};return s.push(u),await this.storage.set($M.PUSH_TOKENS,s),u}async _connect(){const e=await this.transport;e.connectionStatus===UM.NOT_CONNECTED&&(await e.connect(),e.addListener((async(e,t)=>{if("string"===typeof e){const r=await(new _L).deserialize(e);this.handleResponse(r,t)}})).catch((e=>aN.log("_connect",e))),this._isConnected.resolve(!0))}async respond(e){aN.log("RESPONSE",e);const t=this.pendingRequests.find((t=>t[0].id===e.id));if(!t)throw new Error("No matching request found!");this.pendingRequests=this.pendingRequests.filter((t=>t[0].id!==e.id)),await oN.intercept({senderId:await hL(await this.beaconId),request:t[0],message:e,ownAppMetadata:await this.getOwnAppMetadata(),permissionManager:this.permissionManager,appMetadataManager:this.appMetadataManager,interceptorCallback:async e=>{await this.respondToMessage(e,t[1])}})}async getAppMetadataList(){return this.appMetadataManager.getAppMetadataList()}async getAppMetadata(e){return this.appMetadataManager.getAppMetadata(e)}async removeAppMetadata(e){return this.appMetadataManager.removeAppMetadata(e)}async removeAllAppMetadata(){return this.appMetadataManager.removeAllAppMetadata()}async getPermissions(){return this.permissionManager.getPermissions()}async getPermission(e){return this.permissionManager.getPermission(e)}async removePermission(e){return this.permissionManager.removePermission(e)}async removeAllPermissions(){return this.permissionManager.removeAllPermissions()}async getPeerInfo(e){const t=await hL(e.publicKey);return e instanceof XM?new JM(e.id,e.name,e.publicKey,e.version,t):e instanceof qM?new KM(e.id,e.name,e.publicKey,e.version,e.relayServer,t):e instanceof eL?new eL(e.id,e.name,e.publicKey,e.version,t,e.uri):{...e,senderId:t}}async addPeer(e,t=!0){return(await this.transport).addPeer(await this.getPeerInfo(e),t)}async removePeer(e,t=!1){const r=(await this.transport).removePeer(e);return await this.removePermissionsForPeers([e]),t&&await this.sendDisconnectToPeer(e),r}async removeAllPeers(e=!1){const t=await(await this.transport).getPeers(),r=(await this.transport).removeAllPeers();if(await this.removePermissionsForPeers(t),e){const e=t.map((e=>this.sendDisconnectToPeer(e)));await Promise.all(e)}return r}async removePermissionsForPeers(e){const t=await this.permissionManager.getPermissions(),r=e.map((e=>e.senderId)),n=t.filter((e=>r.includes(e.appMetadata.senderId))).map((e=>e.accountIdentifier));await this.permissionManager.removePermissions(n)}async sendAcknowledgeResponse(e,t){const r={id:e.id,type:IM.Acknowledge};await oN.intercept({senderId:await hL(await this.beaconId),request:e,message:r,ownAppMetadata:await this.getOwnAppMetadata(),permissionManager:this.permissionManager,appMetadataManager:this.appMetadataManager,interceptorCallback:async e=>{await this.respondToMessage(e,t)}})}async respondToMessage(e,t){const r=await(new _L).serialize(e);if(t){const e=(await this.getPeers()).find((e=>e.publicKey===t.id));await(await this.transport).send(r,e)}else await(await this.transport).send(r)}async disconnect(e){const t=await this.transport,r=(await t.getPeers()).find((t=>t.senderId===e));r&&await this.removePeer(r)}}function cN(e){const{theme:t}=yn(),r=fP();return(0,n.useMemo)((()=>function(e,t){const r=r=>{var n;return{...t,...r,position:IA(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{const t=r(e),n=XA(t);return GA.notify(n,t)};return n.update=(e,t)=>{GA.update(e,r(t))},n.promise=(e,t)=>{const r=n({...t.loading,status:"loading",duration:null});e.then((e=>n.update(r,{status:"success",duration:5e3,...w(t.success,e)}))).catch((e=>n.update(r,{status:"error",duration:5e3,...w(t.error,e)})))},n.closeAll=GA.closeAll,n.close=GA.close,n.isActive=GA.isActive,n}(t.direction,{...r,...e})),[e,t.direction,r])}var lN={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,x:e,y:t,transition:null!=(o=null==r?void 0:r.exit)?o:hI(uI.exit,i),transitionEnd:null==n?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:null!=(n=null==e?void 0:e.enter)?n:dI(uI.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:i,delay:o})=>{var a;const s={x:t,y:e};return{opacity:0,transition:null!=(a=null==r?void 0:r.exit)?a:hI(uI.exit,o),...i?{...s,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{...s,...null==n?void 0:n.exit}}}}},uN={initial:"initial",animate:"enter",exit:"exit",variants:lN},dN=(0,n.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,reverse:i=!0,className:o,offsetX:a=0,offsetY:s=8,transition:c,transitionEnd:l,delay:u,...d}=e,h=!r||n&&r,f=n||r?"enter":"exit",p={offsetX:a,offsetY:s,reverse:i,transition:c,transitionEnd:l,delay:u};return(0,un.jsx)(iP,{custom:p,children:h&&(0,un.jsx)(CA.div,{ref:t,className:v("chakra-offset-slide",o),custom:p,...uN,animate:f,...d})})}));dN.displayName="SlideFade";var hN={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{scale:t,...null==n?void 0:n.exit}},transition:null!=(o=null==r?void 0:r.exit)?o:hI(uI.exit,i)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:null!=(n=null==t?void 0:t.enter)?n:dI(uI.enter,r),transitionEnd:null==e?void 0:e.enter}}},fN={initial:"exit",animate:"enter",exit:"exit",variants:hN},pN=(0,n.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,reverse:i=!0,initialScale:o=.95,className:a,transition:s,transitionEnd:c,delay:l,...u}=e,d=!r||n&&r,h=n||r?"enter":"exit",f={initialScale:o,reverse:i,transition:s,transitionEnd:c,delay:l};return(0,un.jsx)(iP,{custom:f,children:d&&(0,un.jsx)(CA.div,{ref:t,className:v("chakra-offset-slide",a),...fN,animate:h,custom:f,...u})})}));pN.displayName="ScaleFade";var mN={slideInBottom:{...uN,custom:{offsetY:16,reverse:!0}},slideInRight:{...uN,custom:{offsetX:16,reverse:!0}},slideInTop:{...uN,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...uN,custom:{offsetX:-16,reverse:!0}},scale:{...fN,custom:{initialScale:.95,reverse:!0}},none:{}},gN=ln(CA.section),vN=e=>mN[e||"none"],yN=(0,n.forwardRef)(((e,t)=>{const{preset:r,motionProps:n=vN(r),...i}=e;return(0,un.jsx)(gN,{ref:t,...n,...i})}));function bN(){return bN=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0})).sort(YN)},JN=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),QN="".concat(JN,", [data-focus-guard]"),eD=function(e,t){return LN((e.shadowRoot||e).children).reduce((function(e,r){return e.concat(r.matches(t?QN:JN)?[r]:[],eD(r))}),[])},tD=function(e,t){return e.reduce((function(e,r){var n,i=eD(r,t),o=(n=[]).concat.apply(n,i.map((function(e){return function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?tD([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(o,r.parentNode?LN(r.parentNode.querySelectorAll(JN)).filter((function(e){return e===r})):[])}),[])},rD=function(e,t){return LN(e).filter((function(e){return FN(t,e)})).filter((function(e){return function(e){return!((VN(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},nD=function(e,t){return void 0===t&&(t=new Map),LN(e).filter((function(e){return $N(t,e)}))},iD=function(e,t,r){return XN(rD(tD(e,r),t),!0,r)},oD=function(e,t){return XN(rD(tD(e),t),!1)},aD=function(e,t){return rD(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return LN(t).map((function(e){return tD([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},sD=function(e,t){return e.shadowRoot?sD(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||LN(e.children).some((function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&sD(n,t)}return sD(e,t)}))},cD=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?cD(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(t){return}}((function(){return t.contentWindow.document}))?cD(t.contentWindow.document):t}},lD=function(e){return e.parentNode?lD(e.parentNode):e},uD=function(e){return NN(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(wN);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter((function(e,r){return!t.has(r)}))}(LN(lD(t).querySelectorAll("[".concat(wN,'="').concat(r,'"]:not([').concat(xN,'="disabled"])')))):[t]),e}),[])},dD=function(e,t){return void 0===t&&(t=cD(DN(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&uD(e).some((function(e){return sD(e,t)||function(e,t){return Boolean(LN(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},hD=function(e,t){return qN(e)&&e.name?function(e,t){return t.filter(qN).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},fD=function(e){return e[0]&&e.length>1?hD(e[0],e):e[0]},pD=function(e,t){return e.length>1?e.indexOf(hD(e[t],e)):t},mD="NEW_FOCUS",gD=function(e,t,r,n){var i=e.length,o=e[0],a=e[i-1],s=WN(r);if(!(r&&e.indexOf(r)>=0)){var c=void 0!==r?t.indexOf(r):-1,l=n?t.indexOf(n):c,u=n?e.indexOf(n):-1,d=c-l,h=t.indexOf(o),f=t.indexOf(a),p=function(e){var t=new Set;return e.forEach((function(r){return t.add(hD(r,e))})),e.filter((function(e){return t.has(e)}))}(t),m=(void 0!==r?p.indexOf(r):-1)-(n?p.indexOf(n):c),g=pD(e,0),v=pD(e,i-1);return-1===c||-1===u?mD:!d&&u>=0?u:c<=h&&s&&Math.abs(d)>1?v:c>=f&&s&&Math.abs(d)>1?g:d&&Math.abs(m)>1?u:c<=h?v:c>f?g:d?Math.abs(d)>1?u:(i+u+d)%i:void 0}},vD=function(e,t,r){var n,i=e.map((function(e){return e.node})),o=nD(i.filter((n=r,function(e){var t,r=null===(t=HN(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return o&&o.length?fD(o):fD(nD(t))},yD=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&yD(e.parentNode.host||e.parentNode,t),t},bD=function(e,t){for(var r=yD(e),n=yD(t),i=0;i=0)return o}return!1},wD=function(e,t,r){var n=NN(e),i=NN(t),o=n[0],a=!1;return i.filter(Boolean).forEach((function(e){a=bD(a||e,e)||a,r.filter(Boolean).forEach((function(e){var t=bD(o,e);t&&(a=!a||sD(t,a)?t:bD(t,a))}))})),a},xD=function(e,t){var r=cD(NN(e).length>0?document:DN(e).ownerDocument),n=uD(e).filter(GN),i=wD(r||e,e,n),o=new Map,a=oD(n,o),s=iD(n,o).filter((function(e){var t=e.node;return GN(t)}));if(s[0]||(s=a)[0]){var c=oD([i],o).map((function(e){return e.node})),l=function(e,t){var r=new Map;return t.forEach((function(e){return r.set(e.node,e)})),e.map((function(e){return r.get(e)})).filter(ZN)}(c,s),u=l.map((function(e){return e.node})),d=gD(u,c,r,t);if(d===mD){var h=vD(a,u,function(e,t){return e.reduce((function(e,r){return e.concat(aD(r,t))}),[])}(n,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:l[d]}},_D=0,SD=!1,kD=function(e,t,r){void 0===r&&(r={});var n,i,o=xD(e,t);if(!SD&&o){if(_D>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),SD=!0,void setTimeout((function(){SD=!1}),1);_D++,n=o.node,i=r.focusOptions,"focus"in n&&n.focus(i),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),_D--}};function ED(e){setTimeout(e,1)}var AD=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=cD(e);return!!t&&LN(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return sD(e,t)}))}()},PD=null,TD=null,OD=null,CD=!1,jD=function(){return!0};function RD(e,t,r,n){var i=null,o=e;do{var a=n[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=r)!==t);i&&(i.node.tabIndex=0)}var ID=function(e){return e&&"current"in e?e.current:e},MD=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},LD=function(){var e,t=!1;if(PD){var r=PD,n=r.observed,i=r.persistentFocus,o=r.autoFocus,a=r.shards,s=r.crossFrame,c=r.focusOptions,l=n||OD&&OD.portaledElement,u=document&&document.activeElement;if(l){var d=[l].concat(a.map(ID).filter(Boolean));if(u&&!function(e){return(PD.whiteList||jD)(e)}(u)||(i||(s?Boolean(CD):"meanwhile"===CD)||!AD()||!TD&&o)&&(l&&!(dD(d)||u&&function(e,t){return t.some((function(t){return MD(e,t,t)}))}(u,d)||(e=u,OD&&OD.portaledElement===e))&&(document&&!TD&&u&&!o?(u.blur&&u.blur(),document.body.focus()):(t=kD(d,TD,{focusOptions:c}),OD={})),CD=!1,TD=document&&document.activeElement),document){var h=document&&document.activeElement,f=function(e){var t=uD(e).filter(GN),r=wD(e,e,t),n=new Map,i=iD([r],n,!0),o=iD(t,n).filter((function(e){var t=e.node;return GN(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:WN(t)}}))}(d),p=f.map((function(e){return e.node})).indexOf(h);p>-1&&(f.filter((function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),RD(p,f.length,1,f),RD(p,-1,-1,f))}}}return t},ND=function(e){LD()&&e&&(e.stopPropagation(),e.preventDefault())},DD=function(){return ED(LD)},zD=function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(OD={observerNode:r,portaledElement:t})},BD=function(){CD="just",ED((function(){CD="meanwhile"}))};kN.assignSyncMedium(zD),EN.assignMedium(DD),AN.assignMedium((function(e){return e({moveFocusInside:kD,focusInside:dD})}));const UD=MN((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!PD&&(document.addEventListener("focusin",ND),document.addEventListener("focusout",DD),window.addEventListener("blur",BD));var r=PD,n=r&&t&&t.id===r.id;PD=t,r&&!n&&(r.onDeactivation(),e.filter((function(e){return e.id===r.id})).length||r.returnFocus(!t)),t?(TD=null,n&&r.observed===t.observed||t.onActivation(),LD(),ED(LD)):(document.removeEventListener("focusin",ND),document.removeEventListener("focusout",DD),window.removeEventListener("blur",BD),TD=null)}))((function(){return null}));var FD=n.forwardRef((function(e,t){return n.createElement(CN,bN({sideCar:UD,ref:t},e))})),$D=CN.propTypes||{};$D.sideCar,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r])}($D,["sideCar"]);FD.propTypes={};const HD=FD;function VD(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function qD(e){var t;if(!VD(e))return!1;return e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function KD(e){return VD(e)?e.ownerDocument:document}var WD=e=>e.hasAttribute("tabindex"),GD=e=>WD(e)&&-1===e.tabIndex;function ZD(e){return!(!e.parentElement||!ZD(e.parentElement))||e.hidden}function YD(e){if(!qD(e)||ZD(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||WD(e)}var XD,JD=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join(),QD=e=>e.offsetWidth>0&&e.offsetHeight>0;function ez(e){const t=Array.from(e.querySelectorAll(JD));return t.unshift(e),t.filter((e=>YD(e)&&QD(e)))}var tz=null!=(XD=HD.default)?XD:HD,rz=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:i,restoreFocus:o,children:a,isDisabled:s,autoFocus:c,persistentFocus:l,lockFocusAcrossFrames:u}=e,d=(0,n.useCallback)((()=>{if(null==t?void 0:t.current)t.current.focus();else if(null==i?void 0:i.current){0===ez(i.current).length&&requestAnimationFrame((()=>{var e;null==(e=i.current)||e.focus()}))}}),[t,i]),h=(0,n.useCallback)((()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()}),[r]),f=o&&!r;return(0,un.jsx)(tz,{crossFrame:u,persistentFocus:l,autoFocus:c,disabled:s,onActivation:d,onDeactivation:h,returnFocus:f,children:a})};rz.displayName="FocusLock";function nz(e){const{autoFocus:t,trapFocus:r,dialogRef:i,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:c,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:h}=rI(),[f,p]=vb();(0,n.useEffect)((()=>{!f&&p&&setTimeout(p)}),[f,p]);const m=HR(i,h);return(0,un.jsx)(rz,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:c,restoreFocus:l,contentRef:i,lockFocusAcrossFrames:d,children:(0,un.jsx)(pM,{removeScrollBar:!u,allowPinchZoom:s,enabled:1===m&&a,forwardProps:!0,children:e.children})})}var iz=g(((e,t)=>{const{className:r,children:n,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:c}=rI(),l=s(a,t),u=c(i),d=v("chakra-modal__content",r),h=eI(),f={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:m}=rI();return(0,un.jsx)(nz,{children:(0,un.jsx)(ln.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:p,children:(0,un.jsx)(yN,{preset:m,motionProps:o,className:d,...l,__css:f,children:n})})})}));iz.displayName="ModalContent";var oz=g(((e,t)=>{const{className:r,...i}=e,{headerId:o,setHeaderMounted:a}=rI();(0,n.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=v("chakra-modal__header",r),c={flex:0,...eI().header};return(0,un.jsx)(ln.header,{ref:t,className:s,id:o,...i,__css:c})}));function az(e){const t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}oz.displayName="ModalHeader";var sz=g((function(e,t){const r=_n("Text",e),{className:n,align:i,decoration:o,casing:a,...s}=ht(e),c=az({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,un.jsx)(ln.p,{ref:t,className:v("chakra-text",e.className),...c,...s,__css:r})}));sz.displayName="Text";var cz=g(((e,t)=>{const{onClick:r,className:n,...i}=e,{onClose:o}=rI(),a=v("chakra-modal__close-btn",n),s=eI();return(0,un.jsx)(WA,{ref:t,__css:s.closeButton,className:a,onClick:k(r,(e=>{e.stopPropagation(),o()})),...i})}));cz.displayName="ModalCloseButton";var lz=g(((e,t)=>{const{className:r,...i}=e,{bodyId:o,setBodyMounted:a}=rI();(0,n.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=v("chakra-modal__body",r),c=eI();return(0,un.jsx)(ln.div,{ref:t,className:s,id:o,...i,__css:c.body})}));lz.displayName="ModalBody";Object.freeze(["base","sm","md","lg","xl","2xl"]);function uz(e,t){return Array.isArray(e)?e.map((e=>null===e?null:t(e))):y(e)?Object.keys(e).reduce(((r,n)=>(r[n]=t(e[n]),r)),{}):null!=e?t(e):null}var dz=g((function(e,t){const{ratio:r=4/3,children:i,className:o,...a}=e,s=n.Children.only(i),c=v("chakra-aspect-ratio",o);return(0,un.jsx)(ln.div,{ref:t,position:"relative",className:c,_before:{height:0,content:'""',display:"block",paddingBottom:uz(r,(e=>1/e*100+"%"))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...a,children:s})}));dz.displayName="AspectRatio";var hz=Object.defineProperty,fz=(e,t,r)=>(((e,t,r)=>{t in e?hz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r);function pz(e){return e.sort(((e,t)=>{const r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function mz(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function gz(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var vz="undefined"!==typeof window?n.useLayoutEffect:n.useEffect,yz=e=>e,bz=class{constructor(){fz(this,"descendants",new Map),fz(this,"register",(e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),fz(this,"unregister",(e=>{this.descendants.delete(e);const t=pz(Array.from(this.descendants.keys()));this.assignIndex(t)})),fz(this,"destroy",(()=>{this.descendants.clear()})),fz(this,"assignIndex",(e=>{this.descendants.forEach((t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()}))})),fz(this,"count",(()=>this.descendants.size)),fz(this,"enabledCount",(()=>this.enabledValues().length)),fz(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),fz(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),fz(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),fz(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),fz(this,"first",(()=>this.item(0))),fz(this,"firstEnabled",(()=>this.enabledItem(0))),fz(this,"last",(()=>this.item(this.descendants.size-1))),fz(this,"lastEnabled",(()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)})),fz(this,"indexOf",(e=>{var t,r;return e&&null!=(r=null==(t=this.descendants.get(e))?void 0:t.index)?r:-1})),fz(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),fz(this,"next",((e,t=!0)=>{const r=mz(e,this.count(),t);return this.item(r)})),fz(this,"nextEnabled",((e,t=!0)=>{const r=this.item(e);if(!r)return;const n=mz(this.enabledIndexOf(r.node),this.enabledCount(),t);return this.enabledItem(n)})),fz(this,"prev",((e,t=!0)=>{const r=gz(e,this.count()-1,t);return this.item(r)})),fz(this,"prevEnabled",((e,t=!0)=>{const r=this.item(e);if(!r)return;const n=gz(this.enabledIndexOf(r.node),this.enabledCount()-1,t);return this.enabledItem(n)})),fz(this,"registerNode",((e,t)=>{if(!e||this.descendants.has(e))return;const r=pz(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const n={node:e,index:-1,...t};this.descendants.set(e,n),this.assignIndex(r)}))}};var[wz,xz]=En({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function _z(){return[yz(wz),()=>yz(xz()),()=>function(){const e=(0,n.useRef)(new bz);return vz((()=>()=>e.current.destroy())),e.current}(),e=>function(e){const t=xz(),[r,i]=(0,n.useState)(-1),o=(0,n.useRef)(null);vz((()=>()=>{o.current&&t.unregister(o.current)}),[]),vz((()=>{if(!o.current)return;const e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||i(e)}));const a=yz(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:Ln(a,o)}}(e)]}var[Sz,kz]=En({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[Ez,Az]=En({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[Pz,Tz,Oz,Cz]=_z();function jz(e){const{value:t,defaultValue:r,onChange:i,shouldUpdate:o=((e,t)=>e!==t)}=e,a=pb(i),s=pb(o),[c,l]=(0,n.useState)(r),u=void 0!==t,d=u?t:c,h=pb((e=>{const t="function"===typeof e?e(d):e;s(d,t)&&(u||l(t),a(t))}),[u,a,d,s]);return[d,h]}function Rz(e){const{onChange:t,defaultIndex:r,index:i,allowMultiple:o,allowToggle:a,...s}=e;!function(e){const t=e.index||e.defaultIndex,r=null!=t&&!Array.isArray(t)&&e.allowMultiple;b({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}(e),function(e){b({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);const c=Oz(),[l,u]=(0,n.useState)(-1);(0,n.useEffect)((()=>()=>{u(-1)}),[]);const[d,h]=jz({value:i,defaultValue:()=>o?null!=r?r:[]:null!=r?r:-1,onChange:t});return{index:d,setIndex:h,htmlProps:s,getAccordionItemProps:e=>{let t=!1;null!==e&&(t=Array.isArray(d)?d.includes(e):d===e);return{isOpen:t,onChange:t=>{if(null!==e)if(o&&Array.isArray(d)){const r=t?d.concat(e):d.filter((t=>t!==e));h(r)}else t?h(e):a&&h(-1)}}},focusedIndex:l,setFocusedIndex:u,descendants:c}}var[Iz,Mz]=En({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function Lz(e){const{isDisabled:t,isFocusable:r,id:i,...o}=e,{getAccordionItemProps:a,setFocusedIndex:s}=Mz(),c=(0,n.useRef)(null),l=(0,n.useId)(),u=null!=i?i:l,d=`accordion-button-${u}`,h=`accordion-panel-${u}`;!function(e){b({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n "})}(e);const{register:f,index:p,descendants:m}=Cz({disabled:t&&!r}),{isOpen:g,onChange:v}=a(-1===p?null:p);!function(e){b({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:g,isDisabled:t});const y=(0,n.useCallback)((()=>{null==v||v(!g),s(p)}),[p,s,g,v]),w=(0,n.useCallback)((e=>{const t={ArrowDown:()=>{const e=m.nextEnabled(p);null==e||e.node.focus()},ArrowUp:()=>{const e=m.prevEnabled(p);null==e||e.node.focus()},Home:()=>{const e=m.firstEnabled();null==e||e.node.focus()},End:()=>{const e=m.lastEnabled();null==e||e.node.focus()}},r=t[e.key];r&&(e.preventDefault(),r(e))}),[m,p]),x=(0,n.useCallback)((()=>{s(p)}),[s,p]),_=(0,n.useCallback)((function(e={},r=null){return{...e,type:"button",ref:Ln(f,c,r),id:d,disabled:!!t,"aria-expanded":!!g,"aria-controls":h,onClick:k(e.onClick,y),onFocus:k(e.onFocus,x),onKeyDown:k(e.onKeyDown,w)}}),[d,t,g,y,x,w,h,f]),S=(0,n.useCallback)((function(e={},t=null){return{...e,ref:t,role:"region",id:h,"aria-labelledby":d,hidden:!g}}),[d,g,h]);return{isOpen:g,isDisabled:t,isFocusable:r,onOpen:()=>{null==v||v(!0)},onClose:()=>{null==v||v(!1)},getButtonProps:_,getPanelProps:S,htmlProps:o}}var Nz=g((function({children:e,reduceMotion:t,...r},i){const o=Sn("Accordion",r),a=ht(r),{htmlProps:s,descendants:c,...l}=Rz(a),u=(0,n.useMemo)((()=>({...l,reduceMotion:!!t})),[l,t]);return(0,un.jsx)(Pz,{value:c,children:(0,un.jsx)(Iz,{value:u,children:(0,un.jsx)(Sz,{value:o,children:(0,un.jsx)(ln.div,{ref:i,...s,className:v("chakra-accordion",r.className),__css:o.root,children:e})})})})}));Nz.displayName="Accordion";var Dz=g((function(e,t){const{children:r,className:i}=e,{htmlProps:o,...a}=Lz(e),s={...kz().container,overflowAnchor:"none"},c=(0,n.useMemo)((()=>a),[a]);return(0,un.jsx)(Ez,{value:c,children:(0,un.jsx)(ln.div,{ref:t,...o,className:v("chakra-accordion__item",i),__css:s,children:"function"===typeof r?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})}));Dz.displayName="AccordionItem";var zz=g((function(e,t){const{getButtonProps:r}=Az(),n=r(e,t),i={display:"flex",alignItems:"center",width:"100%",outline:0,...kz().button};return(0,un.jsx)(ln.button,{...n,className:v("chakra-accordion__button",e.className),__css:i})}));function Bz(e){const{isOpen:t,isDisabled:r}=Az(),{reduceMotion:n}=Mz(),i=v("chakra-accordion__icon",e.className),o={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...kz().icon};return(0,un.jsx)(LA,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:o,...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}zz.displayName="AccordionButton",Bz.displayName="AccordionIcon";var Uz=e=>null!=e&&parseInt(e.toString(),10)>0,Fz={exit:{height:{duration:.2,ease:iI.ease},opacity:{duration:.3,ease:iI.ease}},enter:{height:{duration:.3,ease:iI.ease},opacity:{duration:.4,ease:iI.ease}}},$z={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{...e&&{opacity:Uz(t)?1:0},height:t,transitionEnd:null==n?void 0:n.exit,transition:null!=(o=null==r?void 0:r.exit)?o:hI(Fz.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{...e&&{opacity:1},height:t,transitionEnd:null==n?void 0:n.enter,transition:null!=(o=null==r?void 0:r.enter)?o:dI(Fz.enter,i)}}},Hz=(0,n.forwardRef)(((e,t)=>{const{in:r,unmountOnExit:i,animateOpacity:o=!0,startingHeight:a=0,endingHeight:s="auto",style:c,className:l,transition:u,transitionEnd:d,...h}=e,[f,p]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=setTimeout((()=>{p(!0)}));return()=>clearTimeout(e)}),[]),b({condition:Number(a)>0&&!!i,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(a.toString())>0,g={startingHeight:a,endingHeight:s,animateOpacity:o,transition:f?u:{enter:{duration:0}},transitionEnd:{enter:null==d?void 0:d.enter,exit:i?null==d?void 0:d.exit:{...null==d?void 0:d.exit,display:m?"block":"none"}}},y=!i||r,w=r||i?"enter":"exit";return(0,un.jsx)(iP,{initial:!1,custom:g,children:y&&(0,un.jsx)(CA.div,{ref:t,...h,className:v("chakra-collapse",l),style:{overflow:"hidden",display:"block",...c},custom:g,variants:$z,initial:!!i&&"exit",animate:w,exit:"exit"})})}));Hz.displayName="Collapse";var Vz=g((function(e,t){const{className:r,motionProps:n,...i}=e,{reduceMotion:o}=Mz(),{getPanelProps:a,isOpen:s}=Az(),c=a(i,t),l=v("chakra-accordion__panel",r),u=kz();o||delete c.hidden;const d=(0,un.jsx)(ln.div,{...c,__css:u.panel,className:l});return o?d:(0,un.jsx)(Hz,{in:s,...n,children:d})}));Vz.displayName="AccordionPanel";var[qz,Kz]=En({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[Wz,Gz]=En({strict:!1,name:"FormControlContext"});var Zz=g((function(e,t){const r=Sn("Form",e),i=ht(e),{getRootProps:o,htmlProps:a,...s}=function(e){const{id:t,isRequired:r,isInvalid:i,isDisabled:o,isReadOnly:a,...s}=e,c=(0,n.useId)(),l=t||`field-${c}`,u=`${l}-label`,d=`${l}-feedback`,h=`${l}-helptext`,[f,p]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1),[v,y]=(0,n.useState)(!1),b=(0,n.useCallback)(((e={},t=null)=>({id:h,...e,ref:Ln(t,(e=>{e&&g(!0)}))})),[h]),w=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-focus":_(v),"data-disabled":_(o),"data-invalid":_(i),"data-readonly":_(a),id:void 0!==e.id?e.id:u,htmlFor:void 0!==e.htmlFor?e.htmlFor:l})),[l,o,v,i,a,u]),x=(0,n.useCallback)(((e={},t=null)=>({id:d,...e,ref:Ln(t,(e=>{e&&p(!0)})),"aria-live":"polite"})),[d]),S=(0,n.useCallback)(((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":_(v),"data-disabled":_(o),"data-invalid":_(i),"data-readonly":_(a)})),[s,o,v,i,a]),k=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})),[]);return{isRequired:!!r,isInvalid:!!i,isReadOnly:!!a,isDisabled:!!o,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:g,id:l,labelId:u,feedbackId:d,helpTextId:h,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:x,getRootProps:S,getLabelProps:w,getRequiredIndicatorProps:k}}(i),c=v("chakra-form-control",e.className);return(0,un.jsx)(Wz,{value:s,children:(0,un.jsx)(qz,{value:r,children:(0,un.jsx)(ln.div,{...o({},t),className:c,__css:r.container})})})}));Zz.displayName="FormControl";var Yz=g((function(e,t){const r=Gz(),n=Kz(),i=v("chakra-form__helper-text",e.className);return(0,un.jsx)(ln.div,{...null==r?void 0:r.getHelpTextProps(e,t),__css:n.helperText,className:i})}));Yz.displayName="FormHelperText";var[Xz,Jz]=En({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),Qz=g(((e,t)=>{const r=Sn("FormError",e),n=ht(e),i=Gz();return(null==i?void 0:i.isInvalid)?(0,un.jsx)(Xz,{value:r,children:(0,un.jsx)(ln.div,{...null==i?void 0:i.getErrorMessageProps(n,t),className:v("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null}));Qz.displayName="FormErrorMessage";var eB=g(((e,t)=>{const r=Jz(),n=Gz();if(!(null==n?void 0:n.isInvalid))return null;const i=v("chakra-form__error-icon",e.className);return(0,un.jsx)(LA,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:i,children:(0,un.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}));eB.displayName="FormErrorIcon";var tB=g(((e,t)=>{const{className:r,...n}=e,i=v("chakra-modal__footer",r),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...eI().footer};return(0,un.jsx)(ln.footer,{ref:t,...n,__css:o,className:i})}));tB.displayName="ModalFooter";var rB=e=>"checkbox"===e.type,nB=e=>e instanceof Date,iB=e=>null==e;const oB=e=>"object"===typeof e;var aB=e=>!iB(e)&&!Array.isArray(e)&&oB(e)&&!nB(e),sB=e=>aB(e)&&e.target?rB(e.target)?e.target.checked:e.target.value:e,cB=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),lB=e=>{const t=e.constructor&&e.constructor.prototype;return aB(t)&&t.hasOwnProperty("isPrototypeOf")},uB="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function dB(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(uB&&(e instanceof Blob||e instanceof FileList)||!r&&!aB(e))return e;if(t=r?[]:{},r||lB(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=dB(e[r]));else t=e}return t}var hB=e=>Array.isArray(e)?e.filter(Boolean):[],fB=e=>void 0===e,pB=(e,t,r)=>{if(!t||!aB(e))return r;const n=hB(t.split(/[,[\].]+?/)).reduce(((e,t)=>iB(e)?e:e[t]),e);return fB(n)||n===e?fB(e[t])?r:e[t]:n},mB=e=>"boolean"===typeof e;const gB={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},vB={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},yB="max",bB="min",wB="maxLength",xB="minLength",_B="pattern",SB="required",kB="validate",EB=n.createContext(null),AB=()=>n.useContext(EB),PB=e=>{const{children:t,...r}=e;return n.createElement(EB.Provider,{value:r},t)};var TB=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==vB.all&&(t._proxyFormState[i]=!n||vB.all),r&&(r[i]=!0),e[i]}});return i},OB=e=>aB(e)&&!Object.keys(e).length,CB=(e,t,r,n)=>{r(e);const{name:i,...o}=e;return OB(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||vB.all)))},jB=e=>Array.isArray(e)?e:[e];function RB(e){const t=n.useRef(e);t.current=e,n.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}var IB=e=>"string"===typeof e,MB=(e,t,r,n,i)=>IB(e)?(n&&t.watch.add(e),pB(r,e,i)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),pB(r,e)))):(n&&(t.watchAll=!0),r);var LB=e=>/^\w*$/.test(e),NB=e=>hB(e.replace(/["|']|\]/g,"").split(/\.|\[/));function DB(e,t,r){let n=-1;const i=LB(t)?[t]:NB(t),o=i.length,a=o-1;for(;++nt?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{};const BB=(e,t,r)=>{for(const n of r||Object.keys(e)){const r=pB(e,n);if(r){const{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else aB(n)&&BB(n,t)}}};var UB=()=>{const e="undefined"===typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},FB=(e,t,r={})=>r.shouldFocus||fB(r.shouldFocus)?r.focusName||`${e}.${fB(r.focusIndex)?t:r.focusIndex}.`:"",$B=e=>({isOnSubmit:!e||e===vB.onSubmit,isOnBlur:e===vB.onBlur,isOnChange:e===vB.onChange,isOnAll:e===vB.all,isOnTouch:e===vB.onTouched}),HB=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),VB=(e,t,r)=>{const n=hB(pB(e,r));return DB(n,"root",t[r]),DB(e,r,n),e},qB=e=>"file"===e.type,KB=e=>"function"===typeof e,WB=e=>{if(!uB)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},GB=e=>IB(e),ZB=e=>"radio"===e.type,YB=e=>e instanceof RegExp;const XB={value:!1,isValid:!1},JB={value:!0,isValid:!0};var QB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!fB(e[0].attributes.value)?fB(e[0].value)||""===e[0].value?JB:{value:e[0].value,isValid:!0}:JB:XB}return XB};const eU={isValid:!1,value:null};var tU=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),eU):eU;function rU(e,t,r="validate"){if(GB(e)||Array.isArray(e)&&e.every(GB)||mB(e)&&!e)return{type:r,message:GB(e)?e:"",ref:t}}var nU=e=>aB(e)&&!YB(e)?e:{value:e,message:""},iU=async(e,t,r,n,i)=>{const{ref:o,refs:a,required:s,maxLength:c,minLength:l,min:u,max:d,pattern:h,validate:f,name:p,valueAsNumber:m,mount:g,disabled:v}=e._f,y=pB(t,p);if(!g||v)return{};const b=a?a[0]:o,w=e=>{n&&b.reportValidity&&(b.setCustomValidity(mB(e)?"":e||""),b.reportValidity())},x={},_=ZB(o),S=rB(o),k=_||S,E=(m||qB(o))&&fB(o.value)&&fB(y)||WB(o)&&""===o.value||""===y||Array.isArray(y)&&!y.length,A=zB.bind(null,p,r,x),P=(e,t,r,n=wB,i=xB)=>{const a=e?t:r;x[p]={type:e?n:i,message:a,ref:o,...A(e?n:i,a)}};if(i?!Array.isArray(y)||!y.length:s&&(!k&&(E||iB(y))||mB(y)&&!y||S&&!QB(a).isValid||_&&!tU(a).isValid)){const{value:e,message:t}=GB(s)?{value:!!s,message:s}:nU(s);if(e&&(x[p]={type:SB,message:t,ref:b,...A(SB,t)},!r))return w(t),x}if(!E&&(!iB(u)||!iB(d))){let e,t;const n=nU(d),i=nU(u);if(iB(y)||isNaN(y)){const r=o.valueAsDate||new Date(y),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,c="week"==o.type;IB(n.value)&&y&&(e=s?a(y)>a(n.value):c?y>n.value:r>new Date(n.value)),IB(i.value)&&y&&(t=s?a(y)n.value),iB(i.value)||(t=r+e.value,i=!iB(t.value)&&y.length<+t.value;if((n||i)&&(P(n,e.message,t.message),!r))return w(x[p].message),x}if(h&&!E&&IB(y)){const{value:e,message:t}=nU(h);if(YB(e)&&!y.match(e)&&(x[p]={type:_B,message:t,ref:o,...A(_B,t)},!r))return w(t),x}if(f)if(KB(f)){const e=rU(await f(y,t),b);if(e&&(x[p]={...e,...A(kB,e.message)},!r))return w(e.message),x}else if(aB(f)){let e={};for(const n in f){if(!OB(e)&&!r)break;const i=rU(await f[n](y,t),b,n);i&&(e={...i,...A(n,i.message)},w(i.message),r&&(x[p]=e))}if(!OB(e)&&(x[p]={ref:b,...e},!r))return x}return w(!0),x};function oU(e,t){return[...e,...jB(t)]}var aU=e=>Array.isArray(e)?e.map((()=>{})):void 0;function sU(e,t,r){return[...e.slice(0,t),...jB(r),...e.slice(t)]}var cU=(e,t,r)=>Array.isArray(e)?(fB(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[];function lU(e,t){return[...jB(t),...jB(e)]}var uU=(e,t)=>fB(t)?[]:function(e,t){let r=0;const n=[...e];for(const i of t)n.splice(i-r,1),r++;return hB(n).length?n:[]}(e,jB(t).sort(((e,t)=>e-t))),dU=(e,t,r)=>{e[t]=[e[r],e[r]=e[t]][0]};function hU(e,t){const r=Array.isArray(t)?t:LB(t)?[t]:NB(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function pU(){let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var mU=e=>iB(e)||!oB(e);function gU(e,t){if(mU(e)||mU(t))return e===t;if(nB(e)&&nB(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const r=e[i];if(!n.includes(i))return!1;if("ref"!==i){const e=t[i];if(nB(r)&&nB(e)||aB(r)&&aB(e)||Array.isArray(r)&&Array.isArray(e)?!gU(r,e):r!==e)return!1}}return!0}var vU=e=>"select-multiple"===e.type,yU=e=>ZB(e)||rB(e),bU=e=>WB(e)&&e.isConnected,wU=e=>{for(const t in e)if(KB(e[t]))return!0;return!1};function xU(e,t={}){const r=Array.isArray(e);if(aB(e)||r)for(const n in e)Array.isArray(e[n])||aB(e[n])&&!wU(e[n])?(t[n]=Array.isArray(e[n])?[]:{},xU(e[n],t[n])):iB(e[n])||(t[n]=!0);return t}function _U(e,t,r){const n=Array.isArray(e);if(aB(e)||n)for(const i in e)Array.isArray(e[i])||aB(e[i])&&!wU(e[i])?fB(t)||mU(r[i])?r[i]=Array.isArray(e[i])?xU(e[i],[]):{...xU(e[i])}:_U(e[i],iB(t)?{}:t[i],r[i]):r[i]=!gU(e[i],t[i]);return r}var SU=(e,t)=>_U(e,t,xU(t)),kU=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>fB(e)?e:t?""===e?NaN:e?+e:e:r&&IB(e)?new Date(e):n?n(e):e;function EU(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return qB(t)?t.files:ZB(t)?tU(e.refs).value:vU(t)?[...t.selectedOptions].map((({value:e})=>e)):rB(t)?QB(e.refs).value:kU(fB(t.value)?e.ref.value:t.value,e)}var AU=(e,t,r,n)=>{const i={};for(const o of e){const e=pB(t,o);e&&DB(i,o,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},PU=e=>fB(e)?e:YB(e)?e.source:aB(e)?YB(e.value)?e.value.source:e.value:e,TU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function OU(e,t,r){const n=pB(e,r);if(n||LB(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const n=i.join("."),o=pB(t,n),a=pB(e,n);if(o&&!Array.isArray(o)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var CU=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:!(r?n.isOnChange:i.isOnChange)||e),jU=(e,t)=>!hB(pB(e,t)).length&&hU(e,t);const RU={mode:vB.onSubmit,reValidateMode:vB.onChange,shouldFocusError:!0};function IU(e={},t){let r,n={...RU,...e},i={submitCount:0,isDirty:!1,isLoading:KB(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=(aB(n.defaultValues)||aB(n.values))&&dB(n.defaultValues||n.values)||{},s=n.shouldUnregister?{}:dB(a),c={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:pU(),array:pU(),state:pU()},f=e.resetOptions&&e.resetOptions.keepDirtyValues,p=$B(n.mode),m=$B(n.reValidateMode),g=n.criteriaMode===vB.all,v=async e=>{if(d.isValid||e){const e=n.resolver?OB((await _()).errors):await S(o,!0);e!==i.isValid&&h.state.next({isValid:e})}},y=e=>d.isValidating&&h.state.next({isValidating:e}),b=(e,t,r,n)=>{const i=pB(o,e);if(i){const o=pB(s,e,fB(r)?pB(a,e):r);fB(o)||n&&n.defaultChecked||t?DB(s,e,t?o:EU(i._f)):A(e,o),c.mount&&v()}},w=(e,t,r,n,o)=>{let s=!1,c=!1;const l={name:e};if(!r||n){d.isDirty&&(c=i.isDirty,i.isDirty=l.isDirty=k(),s=c!==l.isDirty);const r=gU(pB(a,e),t);c=pB(i.dirtyFields,e),r?hU(i.dirtyFields,e):DB(i.dirtyFields,e,!0),l.dirtyFields=i.dirtyFields,s=s||d.dirtyFields&&c!==!r}if(r){const t=pB(i.touchedFields,e);t||(DB(i.touchedFields,e,r),l.touchedFields=i.touchedFields,s=s||d.touchedFields&&t!==r)}return s&&o&&h.state.next(l),s?l:{}},x=(t,n,o,a)=>{const s=pB(i.errors,t),c=d.isValid&&mB(n)&&i.isValid!==n;var l;if(e.delayError&&o?(l=()=>((e,t)=>{DB(i.errors,e,t),h.state.next({errors:i.errors})})(t,o),r=e=>{clearTimeout(u),u=setTimeout(l,e)},r(e.delayError)):(clearTimeout(u),r=null,o?DB(i.errors,t,o):hU(i.errors,t)),(o?!gU(s,o):s)||!OB(a)||c){const e={...a,...c&&mB(n)?{isValid:n}:{},errors:i.errors,name:t};i={...i,...e},h.state.next(e)}y(!1)},_=async e=>n.resolver(s,n.context,AU(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),S=async(e,t,r={valid:!0})=>{for(const o in e){const a=e[o];if(a){const{_f:e,...o}=a;if(e){const o=l.array.has(e.name),c=await iU(a,s,g,n.shouldUseNativeValidation&&!t,o);if(c[e.name]&&(r.valid=!1,t))break;!t&&(pB(c,e.name)?o?VB(i.errors,c,e.name):DB(i.errors,e.name,c[e.name]):hU(i.errors,e.name))}o&&await S(o,t,r)}}return r.valid},k=(e,t)=>(e&&t&&DB(s,e,t),!gU(j(),a)),E=(e,t,r)=>MB(e,l,{...c.mount?s:fB(t)?a:IB(e)?{[e]:t}:t},r,t),A=(e,t,r={})=>{const n=pB(o,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&DB(s,e,kU(t,r)),i=WB(r.ref)&&iB(t)?"":t,vU(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?rB(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):qB(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||h.values.next({name:e,values:{...s}})))}(r.shouldDirty||r.shouldTouch)&&w(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&C(e)},P=(e,t,r)=>{for(const n in t){const i=t[n],a=`${e}.${n}`,s=pB(o,a);!l.array.has(e)&&mU(i)&&(!s||s._f)||nB(i)?A(a,i,r):P(a,i,r)}},T=(e,r,n={})=>{const u=pB(o,e),f=l.array.has(e),p=dB(r);DB(s,e,p),f?(h.array.next({name:e,values:{...s}}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&h.state.next({name:e,dirtyFields:SU(a,s),isDirty:k(e,p)})):!u||u._f||iB(p)?A(e,p,n):P(e,p,n),HB(e,l)&&h.state.next({...i}),h.values.next({name:e,values:{...s}}),!c.mount&&t()},O=async e=>{const t=e.target;let a=t.name,c=!0;const u=pB(o,a);if(u){let f,b;const k=t.type?EU(u._f):sB(e),E=e.type===gB.BLUR||e.type===gB.FOCUS_OUT,A=!TU(u._f)&&!n.resolver&&!pB(i.errors,a)&&!u._f.deps||CU(E,pB(i.touchedFields,a),i.isSubmitted,m,p),P=HB(a,l,E);DB(s,a,k),E?(u._f.onBlur&&u._f.onBlur(e),r&&r(0)):u._f.onChange&&u._f.onChange(e);const T=w(a,k,E,!1),O=!OB(T)||P;if(!E&&h.values.next({name:a,type:e.type,values:{...s}}),A)return d.isValid&&v(),O&&h.state.next({name:a,...P?{}:T});if(!E&&P&&h.state.next({...i}),y(!0),n.resolver){const{errors:e}=await _([a]),t=OU(i.errors,o,a),r=OU(e,o,t.name||a);f=r.error,a=r.name,b=OB(e)}else f=(await iU(u,s,g,n.shouldUseNativeValidation))[a],c=Number.isNaN(k)||k===pB(s,a,k),c&&(f?b=!1:d.isValid&&(b=await S(o,!0)));c&&(u._f.deps&&C(u._f.deps),x(a,b,f,T))}},C=async(e,t={})=>{let r,a;const s=jB(e);if(y(!0),n.resolver){const t=await(async e=>{const{errors:t}=await _(e);if(e)for(const r of e){const e=pB(t,r);e?DB(i.errors,r,e):hU(i.errors,r)}else i.errors=t;return t})(fB(e)?e:s);r=OB(t),a=e?!s.some((e=>pB(t,e))):r}else e?(a=(await Promise.all(s.map((async e=>{const t=pB(o,e);return await S(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||i.isValid)&&v()):a=r=await S(o);return h.state.next({...!IB(e)||d.isValid&&r!==i.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:i.errors,isValidating:!1}),t.shouldFocus&&!a&&BB(o,(e=>e&&pB(i.errors,e)),e?s:l.mount),a},j=e=>{const t={...a,...c.mount?s:{}};return fB(e)?t:IB(e)?pB(t,e):e.map((e=>pB(t,e)))},R=(e,t)=>({invalid:!!pB((t||i).errors,e),isDirty:!!pB((t||i).dirtyFields,e),isTouched:!!pB((t||i).touchedFields,e),error:pB((t||i).errors,e)}),I=(e,t,r)=>{const n=(pB(o,e,{_f:{}})._f||{}).ref;DB(i.errors,e,{...t,ref:n}),h.state.next({name:e,errors:i.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},M=(e,t={})=>{for(const r of e?jB(e):l.mount)l.mount.delete(r),l.array.delete(r),t.keepValue||(hU(o,r),hU(s,r)),!t.keepError&&hU(i.errors,r),!t.keepDirty&&hU(i.dirtyFields,r),!t.keepTouched&&hU(i.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&hU(a,r);h.values.next({values:{...s}}),h.state.next({...i,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&v()},L=({disabled:e,name:t,field:r,fields:n})=>{if(mB(e)){const i=e?void 0:pB(s,t,EU(r?r._f:pB(n,t)._f));DB(s,t,i),w(t,i,!1,!1,!0)}},N=(e,t={})=>{let r=pB(o,e);const i=mB(t.disabled);return DB(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:t.disabled,name:e}):b(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:PU(t.min),max:PU(t.max),minLength:PU(t.minLength),maxLength:PU(t.maxLength),pattern:PU(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:i=>{if(i){N(e,t),r=pB(o,e);const n=fB(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=yU(n),c=r._f.refs||[];if(s?c.find((e=>e===n)):n===r._f.ref)return;DB(o,e,{_f:{...r._f,...s?{refs:[...c.filter(bU),n,...Array.isArray(pB(a,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),b(e,!1,void 0,n)}else r=pB(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!cB(l.array,e)||!c.action)&&l.unMount.add(e)}}},D=()=>n.shouldFocusError&&BB(o,(e=>e&&pB(i.errors,e)),l.mount),z=(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let a=dB(s);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await _();i.errors=e,a=t}else await S(o);hU(i.errors,"root"),OB(i.errors)?(h.state.next({errors:{}}),await e(a,r)):(t&&await t({...i.errors},r),D(),setTimeout(D)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:OB(i.errors),submitCount:i.submitCount+1,errors:i.errors})},B=(r,n={})=>{const u=r?dB(r):a,p=dB(u),m=r&&!OB(r)?p:a;if(n.keepDefaultValues||(a=u),!n.keepValues){if(n.keepDirtyValues||f)for(const e of l.mount)pB(i.dirtyFields,e)?DB(m,e,pB(s,e)):T(e,pB(m,e));else{if(uB&&fB(r))for(const e of l.mount){const t=pB(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(WB(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}s=e.shouldUnregister?n.keepDefaultValues?dB(a):{}:dB(m),h.array.next({values:{...m}}),h.values.next({values:{...m}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&t(),c.mount=!d.isValid||!!n.keepIsValid,c.watch=!!e.shouldUnregister,h.state.next({submitCount:n.keepSubmitCount?i.submitCount:0,isDirty:n.keepDirty?i.isDirty:!(!n.keepDefaultValues||gU(r,a)),isSubmitted:!!n.keepIsSubmitted&&i.isSubmitted,dirtyFields:n.keepDirtyValues?i.dirtyFields:n.keepDefaultValues&&r?SU(a,r):{},touchedFields:n.keepTouched?i.touchedFields:{},errors:n.keepErrors?i.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&i.isSubmitSuccessful,isSubmitting:!1})},U=(e,t)=>B(KB(e)?e(s):e,t);return{control:{register:N,unregister:M,getFieldState:R,handleSubmit:z,setError:I,_executeSchema:_,_getWatch:E,_getDirty:k,_updateValid:v,_removeUnmounted:()=>{for(const e of l.unMount){const t=pB(o,e);t&&(t._f.refs?t._f.refs.every((e=>!bU(e))):!bU(t._f.ref))&&M(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],r,n,l=!0,u=!0)=>{if(n&&r){if(c.action=!0,u&&Array.isArray(pB(o,e))){const t=r(pB(o,e),n.argA,n.argB);l&&DB(o,e,t)}if(u&&Array.isArray(pB(i.errors,e))){const t=r(pB(i.errors,e),n.argA,n.argB);l&&DB(i.errors,e,t),jU(i.errors,e)}if(d.touchedFields&&u&&Array.isArray(pB(i.touchedFields,e))){const t=r(pB(i.touchedFields,e),n.argA,n.argB);l&&DB(i.touchedFields,e,t)}d.dirtyFields&&(i.dirtyFields=SU(a,s)),h.state.next({name:e,isDirty:k(e,t),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else DB(s,e,t)},_updateDisabledField:L,_getFieldArray:t=>hB(pB(c.mount?s:a,t,e.shouldUnregister?pB(a,t,[]):[])),_reset:B,_resetDefaultValues:()=>KB(n.defaultValues)&&n.defaultValues().then((e=>{U(e,n.resetOptions),h.state.next({isLoading:!1})})),_updateFormState:e=>{i={...i,...e}},_subjects:h,_proxyFormState:d,get _fields(){return o},get _formValues(){return s},get _state(){return c},set _state(e){c=e},get _defaultValues(){return a},get _names(){return l},set _names(e){l=e},get _formState(){return i},set _formState(e){i=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:C,register:N,handleSubmit:z,watch:(e,t)=>KB(e)?h.values.subscribe({next:r=>e(E(void 0,t),r)}):E(e,t,!0),setValue:T,getValues:j,reset:U,resetField:(e,t={})=>{pB(o,e)&&(fB(t.defaultValue)?T(e,pB(a,e)):(T(e,t.defaultValue),DB(a,e,t.defaultValue)),t.keepTouched||hU(i.touchedFields,e),t.keepDirty||(hU(i.dirtyFields,e),i.isDirty=t.defaultValue?k(e,pB(a,e)):k()),t.keepError||(hU(i.errors,e),d.isValid&&v()),h.state.next({...i}))},clearErrors:e=>{e&&jB(e).forEach((e=>hU(i.errors,e))),h.state.next({errors:e?i.errors:{}})},unregister:M,setError:I,setFocus:(e,t={})=>{const r=pB(o,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:R}}function MU(e={}){const t=n.useRef(),r=n.useRef(),[i,o]=n.useState({isDirty:!1,isValidating:!1,isLoading:KB(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:KB(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...IU(e,(()=>o((e=>({...e}))))),formState:i});const a=t.current.control;return a._options=e,RB({subject:a._subjects.state,next:e=>{CB(e,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),n.useEffect((()=>{e.values&&!gU(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values):a._resetDefaultValues()}),[e.values,a]),n.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),t.current.formState=TB(i,a),t.current}var LU,[NU,DU]=ah({name:`${LU="Card"}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${LU} />" `}),zU=g((function(e,t){const{className:r,children:n,direction:i="column",justify:o,align:a,...s}=ht(e),c=Sn("Card",e);return(0,un.jsx)(ln.div,{ref:t,className:v("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:o,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...s,children:(0,un.jsx)(NU,{value:c,children:n})})})),BU=g((function(e,t){const{className:r,...n}=e,i=DU();return(0,un.jsx)(ln.div,{ref:t,className:v("chakra-card__body",r),__css:i.body,...n})}));const UU=({value:e,space:t=2})=>(0,un.jsx)(zU,{background:EP.gray[700],borderRadius:"5px",children:(0,un.jsx)(BU,{children:(0,un.jsx)("pre",{style:{whiteSpace:"pre-wrap",fontSize:"12px",lineHeight:"18px"},children:JSON.stringify(e,null,t)})})});var FU=g((function(e,t){var r;const n=_n("FormLabel",e),i=ht(e),{className:o,children:a,requiredIndicator:s=(0,un.jsx)($U,{}),optionalIndicator:c=null,...l}=i,u=Gz(),d=null!=(r=null==u?void 0:u.getLabelProps(l,t))?r:{ref:t,...l};return(0,un.jsxs)(ln.label,{...d,className:v("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...n},children:[a,(null==u?void 0:u.isRequired)?s:c]})}));FU.displayName="FormLabel";var $U=g((function(e,t){const r=Gz(),n=Kz();if(!(null==r?void 0:r.isRequired))return null;const i=v("chakra-form__required-indicator",e.className);return(0,un.jsx)(ln.span,{...null==r?void 0:r.getRequiredIndicatorProps(e,t),__css:n.requiredIndicator,className:i})}));function HU(e){return n.Children.toArray(e).filter((e=>(0,n.isValidElement)(e)))}$U.displayName="RequiredIndicator";var[VU,qU]=En({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),KU=g((function(e,t){const r=Sn("Input",e),{children:i,className:o,...a}=ht(e),s=v("chakra-input__group",o),c={},l=HU(i),u=r.field;l.forEach((e=>{var t,n;r&&(u&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=u.height)?t:u.h),u&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(n=u.height)?n:u.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))}));const d=l.map((t=>{var r,i;const o=az({size:(null==(r=t.props)?void 0:r.size)||e.size,variant:(null==(i=t.props)?void 0:i.variant)||e.variant});return"Input"!==t.type.id?(0,n.cloneElement)(t,o):(0,n.cloneElement)(t,Object.assign(o,c,t.props))}));return(0,un.jsx)(ln.div,{className:s,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:(0,un.jsx)(VU,{value:r,children:d})})}));function WU(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...o}=GU(e);return{...o,disabled:t,readOnly:n,required:i,"aria-invalid":S(r),"aria-required":S(i),"aria-readonly":S(n)}}function GU(e){var t,r,n;const i=Gz(),{id:o,disabled:a,readOnly:s,required:c,isRequired:l,isInvalid:u,isReadOnly:d,isDisabled:h,onFocus:f,onBlur:p,...m}=e,g=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==i?void 0:i.hasFeedbackText)&&(null==i?void 0:i.isInvalid)&&g.push(i.feedbackId),(null==i?void 0:i.hasHelpText)&&g.push(i.helpTextId),{...m,"aria-describedby":g.join(" ")||void 0,id:null!=o?o:null==i?void 0:i.id,isDisabled:null!=(t=null!=a?a:h)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(r=null!=s?s:d)?r:null==i?void 0:i.isReadOnly,isRequired:null!=(n=null!=c?c:l)?n:null==i?void 0:i.isRequired,isInvalid:null!=u?u:null==i?void 0:i.isInvalid,onFocus:k(null==i?void 0:i.onFocus,f),onBlur:k(null==i?void 0:i.onBlur,p)}}KU.displayName="InputGroup";var ZU=g((function(e,t){const{htmlSize:r,...n}=e,i=Sn("Input",n),o=WU(ht(n)),a=v("chakra-input",e.className);return(0,un.jsx)(ln.input,{size:r,...o,__css:i.field,ref:t,className:a})}));ZU.displayName="Input",ZU.id="Input";var YU=ln("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),XU=g((function(e,t){var r,n;const{placement:i="left",...o}=e,a=qU(),s=a.field,c={["left"===i?"insetStart":"insetEnd"]:"0",width:null!=(r=null==s?void 0:s.height)?r:null==s?void 0:s.h,height:null!=(n=null==s?void 0:s.height)?n:null==s?void 0:s.h,fontSize:null==s?void 0:s.fontSize,...a.element};return(0,un.jsx)(YU,{ref:t,__css:c,...o})}));XU.id="InputElement",XU.displayName="InputElement";var JU=g((function(e,t){const{className:r,...n}=e,i=v("chakra-input__left-element",r);return(0,un.jsx)(XU,{ref:t,placement:"left",className:i,...n})}));JU.id="InputLeftElement",JU.displayName="InputLeftElement";var QU=g((function(e,t){const{className:r,...n}=e,i=v("chakra-input__right-element",r);return(0,un.jsx)(XU,{ref:t,placement:"right",className:i,...n})}));QU.id="InputRightElement",QU.displayName="InputRightElement";var[eF,tF]=En({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),rF=g((function(e,t){const r=Sn("List",e),{children:n,styleType:i="none",stylePosition:o,spacing:a,...s}=ht(e),c=HU(n),l=a?{"& > *:not(style) ~ *:not(style)":{mt:a}}:{};return(0,un.jsx)(eF,{value:r,children:(0,un.jsx)(ln.ul,{ref:t,listStyleType:i,listStylePosition:o,role:"list",__css:{...r.container,...l},...s,children:c})})}));rF.displayName="List";var nF=g(((e,t)=>{const{as:r,...n}=e;return(0,un.jsx)(rF,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})}));nF.displayName="OrderedList";var iF=g((function(e,t){const{as:r,...n}=e;return(0,un.jsx)(rF,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...n})}));iF.displayName="UnorderedList";var oF=g((function(e,t){const r=tF();return(0,un.jsx)(ln.li,{ref:t,...e,__css:r.item})}));oF.displayName="ListItem";var aF=g((function(e,t){const r=tF();return(0,un.jsx)(LA,{ref:t,role:"presentation",...e,__css:r.icon})}));aF.displayName="ListIcon";var sF={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function cF(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:qD(e)&&function(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+i+n)}(e)?e:cF(function(e){return"html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}(e))}var lF=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),uF={arrowShadowColor:lF("--popper-arrow-shadow-color"),arrowSize:lF("--popper-arrow-size","8px"),arrowSizeHalf:lF("--popper-arrow-size-half"),arrowBg:lF("--popper-arrow-bg"),transformOrigin:lF("--popper-transform-origin"),arrowOffset:lF("--popper-arrow-offset")};var dF={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},hF={scroll:!0,resize:!0};function fF(e){let t;return t="object"===typeof e?{enabled:!0,options:{...hF,...e}}:{enabled:e,options:hF},t}var pF={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},mF={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{gF(e)},effect:({state:e})=>()=>{gF(e)}},gF=e=>{var t;e.elements.popper.style.setProperty(uF.transformOrigin.var,(t=e.placement,dF[t]))},vF={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{yF(e)}},yF=e=>{var t;if(!e.placement)return;const r=bF(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:uF.arrowSize.varRef,height:uF.arrowSize.varRef,zIndex:-1});const t={[uF.arrowSizeHalf.var]:`calc(${uF.arrowSize.varRef} / 2 - 1px)`,[uF.arrowOffset.var]:`calc(${uF.arrowSizeHalf.varRef} * -1)`};for(const r in t)e.elements.arrow.style.setProperty(r,t[r])}},bF=e=>e.startsWith("top")?{property:"bottom",value:uF.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:uF.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:uF.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:uF.arrowOffset.varRef}:void 0,wF={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{xF(e)},effect:({state:e})=>()=>{xF(e)}},xF=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=(n=e.placement).includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0;var n;r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:uF.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},_F={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},SF={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function kF(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function EF(e){return e instanceof kF(e).Element||e instanceof Element}function AF(e){return e instanceof kF(e).HTMLElement||e instanceof HTMLElement}function PF(e){return"undefined"!==typeof ShadowRoot&&(e instanceof kF(e).ShadowRoot||e instanceof ShadowRoot)}var TF=Math.max,OF=Math.min,CF=Math.round;function jF(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function RF(){return!/^((?!chrome|android).)*safari/i.test(jF())}function IF(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&AF(e)&&(i=e.offsetWidth>0&&CF(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&CF(n.height)/e.offsetHeight||1);var a=(EF(e)?kF(e):window).visualViewport,s=!RF()&&r,c=(n.left+(s&&a?a.offsetLeft:0))/i,l=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/i,d=n.height/o;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function MF(e){var t=kF(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function LF(e){return e?(e.nodeName||"").toLowerCase():null}function NF(e){return((EF(e)?e.ownerDocument:e.document)||window.document).documentElement}function DF(e){return IF(NF(e)).left+MF(e).scrollLeft}function zF(e){return kF(e).getComputedStyle(e)}function BF(e){var t=zF(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function UF(e,t,r){void 0===r&&(r=!1);var n=AF(t),i=AF(t)&&function(e){var t=e.getBoundingClientRect(),r=CF(t.width)/e.offsetWidth||1,n=CF(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),o=NF(t),a=IF(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==LF(t)||BF(o))&&(s=function(e){return e!==kF(e)&&AF(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:MF(e);var t}(t)),AF(t)?((c=IF(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=DF(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function FF(e){var t=IF(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function $F(e){return"html"===LF(e)?e:e.assignedSlot||e.parentNode||(PF(e)?e.host:null)||NF(e)}function HF(e){return["html","body","#document"].indexOf(LF(e))>=0?e.ownerDocument.body:AF(e)&&BF(e)?e:HF($F(e))}function VF(e,t){var r;void 0===t&&(t=[]);var n=HF(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=kF(n),a=i?[o].concat(o.visualViewport||[],BF(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(VF($F(a)))}function qF(e){return["table","td","th"].indexOf(LF(e))>=0}function KF(e){return AF(e)&&"fixed"!==zF(e).position?e.offsetParent:null}function WF(e){for(var t=kF(e),r=KF(e);r&&qF(r)&&"static"===zF(r).position;)r=KF(r);return r&&("html"===LF(r)||"body"===LF(r)&&"static"===zF(r).position)?t:r||function(e){var t=/firefox/i.test(jF());if(/Trident/i.test(jF())&&AF(e)&&"fixed"===zF(e).position)return null;var r=$F(e);for(PF(r)&&(r=r.host);AF(r)&&["html","body"].indexOf(LF(r))<0;){var n=zF(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var GF="top",ZF="bottom",YF="right",XF="left",JF="auto",QF=[GF,ZF,YF,XF],e$="start",t$="end",r$="clippingParents",n$="viewport",i$="popper",o$="reference",a$=QF.reduce((function(e,t){return e.concat([t+"-"+e$,t+"-"+t$])}),[]),s$=[].concat(QF,[JF]).reduce((function(e,t){return e.concat([t,t+"-"+e$,t+"-"+t$])}),[]),c$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function l$(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}function u$(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var d$={placement:"bottom",modifiers:[],strategy:"absolute"};function h$(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function b$(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?g$(i):null,a=i?v$(i):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(o){case GF:t={x:s,y:r.y-n.height};break;case ZF:t={x:s,y:r.y+r.height};break;case YF:t={x:r.x+r.width,y:c};break;case XF:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var l=o?y$(o):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case e$:t[l]=t[l]-(r[u]/2-n[u]/2);break;case t$:t[l]=t[l]+(r[u]/2-n[u]/2)}}return t}const w$={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=b$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var x$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _$(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,f=void 0===h?0:h,p=a.y,m=void 0===p?0:p,g="function"===typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=XF,w=GF,x=window;if(l){var _=WF(r),S="clientHeight",k="clientWidth";if(_===kF(r)&&"static"!==zF(_=NF(r)).position&&"absolute"===s&&(S="scrollHeight",k="scrollWidth"),i===GF||(i===XF||i===YF)&&o===t$)w=ZF,m-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[S])-n.height,m*=c?1:-1;if(i===XF||(i===GF||i===ZF)&&o===t$)b=YF,f-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-n.width,f*=c?1:-1}var E,A=Object.assign({position:s},l&&x$),P=!0===u?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:CF(r*i)/i||0,y:CF(n*i)/i||0}}({x:f,y:m},kF(r)):{x:f,y:m};return f=P.x,m=P.y,c?Object.assign({},A,((E={})[w]=y?"0":"",E[b]=v?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},A,((t={})[w]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}const S$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,c=void 0===s||s,l={placement:g$(t.placement),variation:v$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_$(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_$(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const k$={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];AF(i)&&LF(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});AF(n)&&LF(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};const E$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=s$.reduce((function(e,r){return e[r]=function(e,t,r){var n=g$(e),i=[XF,GF].indexOf(n)>=0?-1:1,o="function"===typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[XF,YF].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,o),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}};var A$={left:"right",right:"left",bottom:"top",top:"bottom"};function P$(e){return e.replace(/left|right|bottom|top/g,(function(e){return A$[e]}))}var T$={start:"end",end:"start"};function O$(e){return e.replace(/start|end/g,(function(e){return T$[e]}))}function C$(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&PF(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function j$(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R$(e,t,r){return t===n$?j$(function(e,t){var r=kF(e),n=NF(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=RF();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+DF(e),y:c}}(e,r)):EF(t)?function(e,t){var r=IF(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):j$(function(e){var t,r=NF(e),n=MF(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=TF(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=TF(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+DF(e),c=-n.scrollTop;return"rtl"===zF(i||r).direction&&(s+=TF(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(NF(e)))}function I$(e,t,r,n){var i="clippingParents"===t?function(e){var t=VF($F(e)),r=["absolute","fixed"].indexOf(zF(e).position)>=0&&AF(e)?WF(e):e;return EF(r)?t.filter((function(e){return EF(e)&&C$(e,r)&&"body"!==LF(e)})):[]}(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce((function(t,r){var i=R$(e,r,n);return t.top=TF(i.top,t.top),t.right=OF(i.right,t.right),t.bottom=OF(i.bottom,t.bottom),t.left=TF(i.left,t.left),t}),R$(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function M$(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function L$(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function N$(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,a=void 0===o?e.strategy:o,s=r.boundary,c=void 0===s?r$:s,l=r.rootBoundary,u=void 0===l?n$:l,d=r.elementContext,h=void 0===d?i$:d,f=r.altBoundary,p=void 0!==f&&f,m=r.padding,g=void 0===m?0:m,v=M$("number"!==typeof g?g:L$(g,QF)),y=h===i$?o$:i$,b=e.rects.popper,w=e.elements[p?y:h],x=I$(EF(w)?w:w.contextElement||NF(e.elements.popper),c,u,a),_=IF(e.elements.reference),S=b$({reference:_,element:b,strategy:"absolute",placement:i}),k=j$(Object.assign({},b,S)),E=h===i$?k:_,A={top:x.top-E.top+v.top,bottom:E.bottom-x.bottom+v.bottom,left:x.left-E.left+v.left,right:E.right-x.right+v.right},P=e.modifiersData.offset;if(h===i$&&P){var T=P[i];Object.keys(A).forEach((function(e){var t=[YF,ZF].indexOf(e)>=0?1:-1,r=[GF,ZF].indexOf(e)>=0?"y":"x";A[e]+=T[r]*t}))}return A}const D$={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,l=r.padding,u=r.boundary,d=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,p=void 0===f||f,m=r.allowedAutoPlacements,g=t.options.placement,v=g$(g),y=c||(v===g||!p?[P$(g)]:function(e){if(g$(e)===JF)return[];var t=P$(e);return[O$(e),t,O$(t)]}(g)),b=[g].concat(y).reduce((function(e,r){return e.concat(g$(r)===JF?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=void 0===c?s$:c,u=v$(n),d=u?s?a$:a$.filter((function(e){return v$(e)===u})):QF,h=d.filter((function(e){return l.indexOf(e)>=0}));0===h.length&&(h=d);var f=h.reduce((function(t,r){return t[r]=N$(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[g$(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:l,flipVariations:p,allowedAutoPlacements:m}):r)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,S=!0,k=b[0],E=0;E=0,C=O?"width":"height",j=N$(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:h,padding:l}),R=O?T?YF:XF:T?ZF:GF;w[C]>x[C]&&(R=P$(R));var I=P$(R),M=[];if(o&&M.push(j[P]<=0),s&&M.push(j[R]<=0,j[I]<=0),M.every((function(e){return e}))){k=A,S=!1;break}_.set(A,M)}if(S)for(var L=function(e){var t=b.find((function(t){var r=_.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=p?3:1;N>0;N--){if("break"===L(N))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function z$(e,t,r){return TF(e,OF(t,r))}const B$={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,d=r.padding,h=r.tether,f=void 0===h||h,p=r.tetherOffset,m=void 0===p?0:p,g=N$(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),v=g$(t.placement),y=v$(t.placement),b=!y,w=y$(v),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,E="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(_){if(o){var O,C="y"===w?GF:XF,j="y"===w?ZF:YF,R="y"===w?"height":"width",I=_[w],M=I+g[C],L=I-g[j],N=f?-k[R]/2:0,D=y===e$?S[R]:k[R],z=y===e$?-k[R]:-S[R],B=t.elements.arrow,U=f&&B?FF(B):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=F[C],H=F[j],V=z$(0,S[R],U[R]),q=b?S[R]/2-N-V-$-A.mainAxis:D-V-$-A.mainAxis,K=b?-S[R]/2+N+V+H+A.mainAxis:z+V+H+A.mainAxis,W=t.elements.arrow&&WF(t.elements.arrow),G=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Z=null!=(O=null==P?void 0:P[w])?O:0,Y=I+K-Z,X=z$(f?OF(M,I+q-Z-G):M,I,f?TF(L,Y):L);_[w]=X,T[w]=X-I}if(s){var J,Q="x"===w?GF:XF,ee="x"===w?ZF:YF,te=_[x],re="y"===x?"height":"width",ne=te+g[Q],ie=te-g[ee],oe=-1!==[GF,XF].indexOf(v),ae=null!=(J=null==P?void 0:P[x])?J:0,se=oe?ne:te-S[re]-k[re]-ae+A.altAxis,ce=oe?te+S[re]+k[re]-ae-A.altAxis:ie,le=f&&oe?function(e,t,r){var n=z$(e,t,r);return n>r?r:n}(se,te,ce):z$(f?se:ne,te,f?ce:ie);_[x]=le,T[x]=le-te}t.modifiersData[n]=T}},requiresIfExists:["offset"]};const U$={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=g$(r.placement),c=y$(s),l=[XF,YF].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return M$("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:L$(e,QF))}(i.padding,r),d=FF(o),h="y"===c?GF:XF,f="y"===c?ZF:YF,p=r.rects.reference[l]+r.rects.reference[c]-a[c]-r.rects.popper[l],m=a[c]-r.rects.reference[c],g=WF(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,b=u[h],w=v-d[l]-u[f],x=v/2-d[l]/2+y,_=z$(b,x,w),S=c;r.modifiersData[n]=((t={})[S]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&C$(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function F$(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function $$(e){return[GF,YF,ZF,XF].some((function(t){return e[t]>=0}))}const H$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=N$(t,{elementContext:"reference"}),s=N$(t,{altBoundary:!0}),c=F$(a,n),l=F$(s,i,o),u=$$(c),d=$$(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var V$=f$({defaultModifiers:[m$,w$,S$,k$,E$,D$,B$,U$,H$]});function q$(e={}){const{enabled:t=!0,modifiers:r,placement:i="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:c,gutter:l=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:h=!0,matchWidth:f,direction:p="ltr"}=e,m=(0,n.useRef)(null),g=(0,n.useRef)(null),v=(0,n.useRef)(null),y=function(e,t="ltr"){var r,n;const i=(null==(r=_F[e])?void 0:r[t])||e;return"ltr"===t?i:null!=(n=SF[e])?n:i}(i,p),b=(0,n.useRef)((()=>{})),w=(0,n.useCallback)((()=>{var e;t&&m.current&&g.current&&(null==(e=b.current)||e.call(b),v.current=V$(m.current,g.current,{placement:y,modifiers:[wF,vF,mF,{...pF,enabled:!!f},{name:"eventListeners",...fF(s)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=c?c:[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:d}},...null!=r?r:[]],strategy:o}),v.current.forceUpdate(),b.current=v.current.destroy)}),[y,t,r,f,s,a,c,l,u,h,d,o]);(0,n.useEffect)((()=>()=>{var e;m.current||g.current||(null==(e=v.current)||e.destroy(),v.current=null)}),[]);const x=(0,n.useCallback)((e=>{m.current=e,w()}),[w]),_=(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(x,t)})),[x]),S=(0,n.useCallback)((e=>{g.current=e,w()}),[w]),k=(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(S,t),style:{...e.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}})),[o,S,f]),E=(0,n.useCallback)(((e={},t=null)=>{const{size:r,shadowColor:n,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:K$(e)}}),[]),A=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""})),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:uF.transformOrigin.varRef,referenceRef:x,popperRef:S,getPopperProps:k,getArrowProps:E,getArrowInnerProps:A,getReferenceProps:_}}function K$(e){const{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function W$(e={}){const{onClose:t,onOpen:r,isOpen:i,id:o}=e,a=pb(r),s=pb(t),[c,l]=(0,n.useState)(e.defaultIsOpen||!1),u=void 0!==i?i:c,d=void 0!==i,h=(0,n.useId)(),f=null!=o?o:`disclosure-${h}`,p=(0,n.useCallback)((()=>{d||l(!1),null==s||s()}),[d,s]),m=(0,n.useCallback)((()=>{d||l(!0),null==a||a()}),[d,a]),g=(0,n.useCallback)((()=>{u?p():m()}),[u,m,p]);return{isOpen:u,onOpen:m,onClose:p,onToggle:g,isControlled:d,getButtonProps:function(e={}){return{...e,"aria-expanded":u,"aria-controls":f,onClick(t){var r;null==(r=e.onClick)||r.call(e,t),g()}}},getDisclosureProps:function(e={}){return{...e,hidden:!u,id:f}}}}function G$(e,t,r,i){const o=pb(r);return(0,n.useEffect)((()=>{const n="function"===typeof e?e():null!=e?e:document;if(r&&n)return n.addEventListener(t,o,i),()=>{n.removeEventListener(t,o,i)}}),[t,e,i,o,r]),()=>{const r="function"===typeof e?e():null!=e?e:document;null==r||r.removeEventListener(t,o,i)}}var Z$=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},Y$=e=>{var t,r;return(null==(r=null==(t=e.current)?void 0:t.ownerDocument)?void 0:r.defaultView)||window};function X$(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:i=!0,closeOnMouseDown:o,closeOnScroll:a,closeOnPointerDown:s=o,closeOnEsc:c=!0,onOpen:l,onClose:u,placement:d,id:h,isOpen:f,defaultIsOpen:p,arrowSize:m=10,arrowShadowColor:g,arrowPadding:v,modifiers:y,isDisabled:b,gutter:w,offset:x,direction:_,...S}=e,{isOpen:E,onOpen:A,onClose:P}=W$({isOpen:f,defaultIsOpen:p,onOpen:l,onClose:u}),{referenceRef:T,getPopperProps:O,getArrowInnerProps:C,getArrowProps:j}=q$({enabled:E,placement:d,arrowPadding:v,modifiers:y,gutter:w,offset:x,direction:_}),R=(0,n.useId)(),I=`tooltip-${null!=h?h:R}`,M=(0,n.useRef)(null),L=(0,n.useRef)(),N=(0,n.useCallback)((()=>{L.current&&(clearTimeout(L.current),L.current=void 0)}),[]),D=(0,n.useRef)(),z=(0,n.useCallback)((()=>{D.current&&(clearTimeout(D.current),D.current=void 0)}),[]),B=(0,n.useCallback)((()=>{z(),P()}),[P,z]),U=function(e,t){return(0,n.useEffect)((()=>{const r=Z$(e);return r.addEventListener(J$,t),()=>r.removeEventListener(J$,t)}),[t,e]),()=>{const t=Z$(e),r=Y$(e);t.dispatchEvent(new r.CustomEvent(J$))}}(M,B),F=(0,n.useCallback)((()=>{if(!b&&!L.current){E&&U();const e=Y$(M);L.current=e.setTimeout(A,t)}}),[U,b,E,A,t]),$=(0,n.useCallback)((()=>{N();const e=Y$(M);D.current=e.setTimeout(B,r)}),[r,B,N]),H=(0,n.useCallback)((()=>{E&&i&&$()}),[i,$,E]),V=(0,n.useCallback)((()=>{E&&s&&$()}),[s,$,E]),q=(0,n.useCallback)((e=>{E&&"Escape"===e.key&&$()}),[E,$]);G$((()=>Z$(M)),"keydown",c?q:void 0),G$((()=>{if(!a)return null;const e=M.current;if(!e)return null;const t=cF(e);return"body"===t.localName?Y$(M):t}),"scroll",(()=>{E&&a&&B()}),{passive:!0,capture:!0}),(0,n.useEffect)((()=>{b&&(N(),E&&P())}),[b,E,P,N]),(0,n.useEffect)((()=>()=>{N(),z()}),[N,z]),G$((()=>M.current),"pointerleave",$);const K=(0,n.useCallback)(((e={},t=null)=>{const r={...e,ref:Ln(M,t,T),onPointerEnter:k(e.onPointerEnter,(e=>{"touch"!==e.pointerType&&F()})),onClick:k(e.onClick,H),onPointerDown:k(e.onPointerDown,V),onFocus:k(e.onFocus,F),onBlur:k(e.onBlur,$),"aria-describedby":E?I:void 0};return r}),[F,$,V,E,I,H,T]),W=(0,n.useCallback)(((e={},t=null)=>O({...e,style:{...e.style,[uF.arrowSize.var]:m?`${m}px`:void 0,[uF.arrowShadowColor.var]:g}},t)),[O,m,g]),G=(0,n.useCallback)(((e={},t=null)=>{const r={...e.style,position:"relative",transformOrigin:uF.transformOrigin.varRef};return{ref:t,...S,...e,id:I,role:"tooltip",style:r}}),[S,I]);return{isOpen:E,show:F,hide:$,getTriggerProps:K,getTooltipProps:G,getTooltipPositionerProps:W,getArrowProps:j,getArrowInnerProps:C}}var J$="chakra-ui:close-tooltip";var Q$=ln(CA.div),eH=g(((e,t)=>{var r,i;const o=_n("Tooltip",e),a=ht(e),s=vn(),{children:c,label:l,shouldWrapChildren:u,"aria-label":d,hasArrow:h,bg:f,portalProps:p,background:m,backgroundColor:g,bgColor:v,motionProps:y,...b}=a,w=null!=(i=null!=(r=null!=m?m:g)?r:f)?i:v;if(w){o.bg=w;const e=function(e,t,r){var n,i,o;return null!=(o=null==(i=null==(n=e.__cssMap)?void 0:n[`${t}.${r}`])?void 0:i.varRef)?o:r}(s,"colors",w);o[uF.arrowBg.var]=e}const x=X$({...b,direction:s.direction});let _;if("string"===typeof c||u)_=(0,un.jsx)(ln.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:c});else{const e=n.Children.only(c);_=(0,n.cloneElement)(e,x.getTriggerProps(e.props,e.ref))}const S=!!d,k=x.getTooltipProps({},t),E=S?function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(k,["role","id"]):k,A=function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(k,["role","id"]);return l?(0,un.jsxs)(un.Fragment,{children:[_,(0,un.jsx)(iP,{children:x.isOpen&&(0,un.jsx)(dP,{...p,children:(0,un.jsx)(ln.div,{...x.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:(0,un.jsxs)(Q$,{variants:sF,initial:"exit",animate:"enter",exit:"exit",...y,...E,__css:o,children:[l,S&&(0,un.jsx)(ln.span,{srOnly:!0,...A,children:d}),h&&(0,un.jsx)(ln.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,un.jsx)(ln.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):(0,un.jsx)(un.Fragment,{children:c})}));eH.displayName="Tooltip";var tH=r(9685),rH=r.n(tH),nH=r(9378),iH=r.n(nH);const oH="default"in iH()?iH().default:iH(),aH=({address:e,identiconSize:t,...r})=>(0,un.jsx)(pn,{sx:{canvas:{borderRadius:"4px"}},zIndex:10,background:"white",borderRadius:"4px","data-testid":"identicon",...r,children:(0,un.jsx)(oH,{background:"white",size:t,string:e,style:{borderRadius:4}})}),sH={stroke:EP.gray[400],borderRadius:"4px",padding:"5px",background:EP.gray[500]},cH=({addressKind:e,size:t="sm",identiconSize:r=20})=>{let n;switch(t){case"sm":n="30px";break;case"md":n="38.5px";break;case"lg":n="45.5px"}switch(e.type){case"secret_key":case"mnemonic":return(0,un.jsx)(aH,{width:n,height:n,padding:"5px",address:e.pkh,identiconSize:r});case"social":return(0,un.jsx)(mR,{width:n,height:n,...sH,stroke:"transparent",background:"white"});case"ledger":return(0,un.jsx)(rR,{width:n,height:n,...sH,color:EP.gray[400]});case"multisig":return(0,un.jsx)(Wj,{width:n,height:n,...sH});case"contact":return(0,un.jsx)(kj,{width:n,height:n,...sH});case"unknown":return(0,un.jsx)(_R,{width:n,height:n,...sH});case"baker":{const t=`https://services.tzkt.io/v1/avatars/${e.pkh}`;return(0,un.jsx)(dz,{width:"30px",height:"30px",marginRight:"8px","data-testid":"baker-icon",ratio:1,children:(0,un.jsx)(bR,{src:t})})}}};var lH=r(8614),uH=r(4200),dH=r(1787),hH=r(4516),fH=r(292),pH=r.n(fH);function mH(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))}"function"===typeof SuppressedError&&SuppressedError;class gH{constructor(e,t,r){this.key=e;const n=e.substring(0,t?5:4);if(!Ys(n))throw new ds(`${hc(Zs.NO_PREFIX_MATCHED)} expecting either '${Fs.EDESK}' or '${Fs.EDSK}'.`);if(this._key=r(yc(this.key,Ks[n])),this._publicKey=this._key.slice(32),!this._key)throw new ds("unable to decode");this.isInit=this.init()}init(){return mH(this,void 0,void 0,(function*(){if(64!==this._key.length){const{publicKey:e,secretKey:t}=(0,Ka._w)(new Uint8Array(this._key));this._publicKey=e,this._key=t}return!0}))}sign(e,t){return mH(this,void 0,void 0,(function*(){yield this.isInit;const r=(0,Ka.Xx)(new Uint8Array(this._key),new Uint8Array(t)),n=qs()(r),i=e+kc(n);return{bytes:e,sig:vc(r,Ks.sig),prefixSig:vc(r,Ks.edsig),sbytes:i}}))}publicKey(){return mH(this,void 0,void 0,(function*(){return yield this.isInit,vc(this._publicKey,Ks.edpk)}))}publicKeyHash(){return mH(this,void 0,void 0,(function*(){return yield this.isInit,vc((0,Wa.hash)(new Uint8Array(this._publicKey),20),Ks.tz1)}))}secretKey(){return mH(this,void 0,void 0,(function*(){yield this.isInit;let e=this._key;const{secretKey:t}=(0,Ka._w)(new Uint8Array(e).slice(0,32));return e=qs()(t),vc(e,Ks.edsk)}))}}const vH={p256:{pk:Ks.p2pk,sk:Ks.p2sk,pkh:Ks.tz3,sig:Ks.p2sig},secp256k1:{pk:Ks.sppk,sk:Ks.spsk,pkh:Ks.tz2,sig:Ks.spsig}};class yH{constructor(e,t,r,n){this.curve=e,this.key=t;const i=t.substring(0,r?5:4);if(!Ys(i))throw new ds(hc(Zs.NO_PREFIX_MATCHED)+` expecting one of the following prefix '${Fs.SPSK}', '${Fs.SPESK}', '${Fs.P2SK}' or '${Fs.P2ESK}'.`);this._key=n(yc(this.key,Ks[i]));const o=new(Hs().ec)(this.curve).keyFromPrivate(this._key),a=o.getPublic().getY().toArray(),s=(a.length<32?a[a.length-1]:a[31])%2?3:2,c=new Array(32).fill(0);this._publicKey=qs()(new Uint8Array([s].concat(c.concat(o.getPublic().getX().toArray()).slice(-32))))}sign(e,t){return mH(this,void 0,void 0,(function*(){const r=new(Hs().ec)(this.curve).keyFromPrivate(this._key).sign(t,{canonical:!0}),n=r.r.toString("hex",64)+r.s.toString("hex",64),i=e+n;return{bytes:e,sig:vc(n,Ks.sig),prefixSig:vc(n,vH[this.curve].sig),sbytes:i}}))}publicKey(){return mH(this,void 0,void 0,(function*(){return vc(this._publicKey,vH[this.curve].pk)}))}publicKeyHash(){return mH(this,void 0,void 0,(function*(){return vc((0,Wa.hash)(new Uint8Array(this._publicKey),20),vH[this.curve].pkh)}))}secretKey(){return mH(this,void 0,void 0,(function*(){return vc(this._key,vH[this.curve].sk)}))}}const bH=yH.bind(null,"p256"),wH=yH.bind(null,"secp256k1");function xH(e){const t=[];for(let r=0;r64)throw new EH(o.length);if(!Object.prototype.hasOwnProperty.call(TH,r))throw new kH(`Unsupported curve "${r}" expecting either "p256" or "secp256k1"`);const a=new $s.ec(r);if(256!==(null===(n=a.n)||void 0===n?void 0:n.bitLength()))throw new SH(`Invalid curve "${r}" with bit size "${null===(i=a.n)||void 0===i?void 0:i.bitLength()}" expecting bit size "256"`);const s=(new TextEncoder).encode(TH[r]);let c=null,l=new Uint8Array,u=0;for(;0===u;){const e=new dH.zU(hH.SHA512,s).update(o).digest();c=new(pH())(e.subarray(0,32)),l=e.subarray(32),c.isZero()||c.cmp(a.n)>=0?o=e:u++}const d=a.keyPair({});return d.priv=c,new e(d,l)}derive(t){const r=new Uint8Array(37);0!==(t&CH)?r.set(this.keyPair.getPrivate().toArray(),1):r.set(this.keyPair.getPublic().encodeCompressed(),0),new DataView(r.buffer).setUint32(33,t);let n=new(pH())(0),i=new Uint8Array,o=0;for(;0===o;){const e=new dH.zU(hH.SHA512,this.chainCode).update(r).digest();n=new(pH())(e.subarray(0,32)),i=e.subarray(32),this.keyPair.ec.n&&n.cmp(this.keyPair.ec.n)<0&&(n=n.add(this.keyPair.getPrivate()).mod(this.keyPair.ec.n),n.isZero()||o++),r.set(i,1),r[0]=1}const a=this.keyPair.ec.keyPair({});return a.priv=n,new e(a,i)}derivePath(e){let t=this;for(const r of e)t=t.derive(r);return t}bytes(){if(!this.keyPair.priv)throw new ds("missing private key");const e=this.keyPair.priv.toArray(),t=new Uint8Array(32);return t.set(e,t.length-e.length),t}};const CH=2147483648;class jH extends Array{static from(e){return super.from(e).map((e=>e>>>0))}static fromString(e){if(0===e.length)return new jH;let t=e.split("/");const r=[];"m"===t[0]&&(t=t.slice(1));for(let n of t){if(0===n.length)throw new ss(e,": Invalid BIP32 path");let t=0;const i=n[n.length-1];"'"!==i&&"h"!==i&&"H"!==i||(t=CH,n=n.slice(0,n.length-1));const o=(parseInt(n,10)|t)>>>0;r.push(o)}return jH.from(r)}}class RH{constructor(e,t){this.priv=e,this.chainCode=t}static fromSeed(e){const t="string"===typeof e?xH(e):e;if(t.length<16||t.length>64)throw new EH(t.length);const r=(new TextEncoder).encode("ed25519 seed"),n=new dH.zU(hH.SHA512,r).update(t).digest();return new RH((0,Ka._w)(n.subarray(0,32)).secretKey,n.subarray(32))}seed(){return this.priv.subarray(0,32)}derive(e){if(0===(e&CH))throw new ss(e.toString(),": Non-hardened derivation path.");const t=new Uint8Array(37);t.set(this.seed(),1),new DataView(t.buffer).setUint32(33,e);const r=new dH.zU(hH.SHA512,this.chainCode).update(t).digest();return new RH((0,Ka._w)(r.subarray(0,32)).secretKey,r.subarray(32))}derivePath(e){let t=this;for(const r of e)t=t.derive(r);return t}}class IH{static fromFundraiser(e,t,r){if(!uH._I(r))throw new _H(r);const n=vc(uH.Z1(r,`${e}${t}`).slice(0,32),Ks.edsk2);return new IH(n)}static fromSecretKey(e,t){return mH(this,void 0,void 0,(function*(){return new IH(e,t)}))}static fromMnemonic({mnemonic:e,password:t="",derivationPath:r="44'/1729'/0'/0'",curve:n="ed25519"}){if(!uH._I(e))throw new _H(e);const i=((e,t,r)=>{const n=jH.fromString(t);let i;switch(r){case"ed25519":return i=RH.fromSeed(e).derivePath(n),vc(i.seed().slice(0,32),Ks.edsk2);case"secp256k1":case"p256":{const t="secp256k1"===r?Ks.spsk:Ks.p2sk;let i=OH.fromSeed(e,r);return i=i.derivePath(n),vc(new Uint8Array(i.keyPair.getPrivate().toArray()),t)}case"bip25519":throw new AH;default:throw new kH(`Unsupported curve "${r}" expecting one of the following "ed25519", "secp256k1", "p256"`)}})(uH.Z1(e,t),r,n);return new IH(i)}constructor(e,t){const r="e"===e.substring(2,3);let n=e=>e;if(r){if(!t)throw new PH("No passphrase provided to decrypt encrypted key");n=e=>{const r=qs()(e.slice(0,8)),n=e.slice(8),i=lH.pbkdf2Sync(t,r,32768,32,"sha512");return(0,_M.openSecretBox)(new Uint8Array(i),new Uint8Array(24),new Uint8Array(n))}}switch(e.substring(0,4)){case"edes":case"edsk":this._key=new gH(e,r,n);break;case"spsk":case"spes":this._key=new wH(e,r,n);break;case"p2sk":case"p2es":this._key=new bH(e,r,n);break;default:throw new ds(`${hc(Zs.NO_PREFIX_MATCHED)} expecting one of the following '${Fs.EDESK}', '${Fs.EDSK}', '${Fs.SPSK}', '${Fs.SPESK}', '${Fs.P2SK}' or '${Fs.P2ESK}'.`)}}sign(e,t){return mH(this,void 0,void 0,(function*(){let r=_c(e);"undefined"!==typeof t&&(r=Sc(t,r));const n=(0,Wa.hash)(r,32);return this._key.sign(e,n)}))}publicKey(){return mH(this,void 0,void 0,(function*(){return this._key.publicKey()}))}publicKeyHash(){return mH(this,void 0,void 0,(function*(){return this._key.publicKeyHash()}))}secretKey(){return mH(this,void 0,void 0,(function*(){return this._key.secretKey()}))}}const MH="44'/1729'/?'/0'",LH={label:"Default - m/44'/1729'/?'/0'",value:MH},NH=[LH,{label:"m/44'/1729'/0'/?'",value:"44'/1729'/0'/?'"},{label:"m/44'/1729'/?'/0'/0'",value:"44'/1729'/?'/0'/0'"},{label:"m/44'/1729'/0'/0'/?'",value:"44'/1729'/0'/0'/?'"}],DH=(e,t)=>e.replace("?",t.toString()),zH=(e,t,r,n,i,o)=>({curve:"ed25519",derivationPath:r,derivationPathPattern:n,pk:e,address:Yu(t),seedFingerPrint:i,label:o,type:"mnemonic"}),BH=()=>jR((e=>e.contacts)),UH=()=>{const e=BH();return{addressExistsInContacts:t=>t in e,nameExistsInContacts:t=>Md(e,t)}},FH=()=>{const e=BH();return t=>t in e?e[t].name:void 0},$H=()=>jR((e=>e.accounts.seedPhrases)),HH=()=>jR((e=>e.accounts.items)),VH=()=>{const e=HH();return t=>e.find((e=>e.address.pkh===t))},qH=()=>{const e=HH(),t=jR((e=>e.multisigs.items));return[...e,...t]},KH=()=>{const e=qH().map((e=>e.label)),t=Object.values(BH()).map((e=>e.name));return r=>![...e,...t].includes(r)},WH=()=>{const e=KH();return(t,r=1)=>{const n=[];for(let i=1;n.length{const e=qH();return t=>e.find((e=>e.address.pkh===t))},ZH=()=>{const e=GH();return t=>{const r=e(t);if(!r)throw new Error(`You do not own account:${t}`);return r}},YH=e=>qH().map((e=>e.address.pkh)).includes(e),XH=()=>{const e=(()=>{const e=HH();return t=>{const r=e.filter((e=>t.signers.some((t=>t.pkh===e.address.pkh))));return 0===r.length&&console.warn("Wallet doesn't own any signers for multisig contract "+t.address.pkh),r}})();return t=>{switch(t.type){case"ledger":case"mnemonic":case"social":case"secret_key":return[t];case"multisig":return e(t)}}},JH=()=>{const e=XH(),t=i3();return r=>(0,Va.maxBy)(e(r),(e=>t(e.address.pkh)||"0"))};var QH=r(4062),eV=r.n(QH);const tV={},rV={},nV=(e,t)=>{rV[e]=t},iV=e=>{class t extends Error{constructor(r,n,i){if(super(r||e,i),Object.setPrototypeOf(this,t.prototype),this.name=e,n)for(const e in n)this[e]=n[e];if(i&&function(e){return"object"===typeof e}(i)&&"cause"in i&&!("cause"in this)){const e=i.cause;this.cause=e,"stack"in e&&(this.stack=this.stack+"\nCAUSE: "+e.stack)}}}return tV[e]=t,t};iV("AccountNameRequired"),iV("AccountNotSupported"),iV("AmountRequired"),iV("BluetoothRequired"),iV("BtcUnmatchedApp"),iV("CantOpenDevice"),iV("CashAddrNotSupported"),iV("ClaimRewardsFeesWarning"),iV("CurrencyNotSupported"),iV("DeviceAppVerifyNotSupported"),iV("DeviceGenuineSocketEarlyClose"),iV("DeviceNotGenuine"),iV("DeviceOnDashboardExpected"),iV("DeviceOnDashboardUnexpected"),iV("DeviceInOSUExpected"),iV("DeviceHalted"),iV("DeviceNameInvalid"),iV("DeviceSocketFail"),iV("DeviceSocketNoBulkStatus"),iV("DeviceSocketNoBulkStatus"),iV("UnresponsiveDeviceError");const oV=iV("DisconnectedDevice"),aV=iV("DisconnectedDeviceDuringOperation"),sV=(iV("DeviceExtractOnboardingStateError"),iV("DeviceOnboardingStatePollingError"),iV("EnpointConfig"),iV("EthAppPleaseEnableContractData"),iV("FeeEstimationFailed"),iV("FirmwareNotRecognized"),iV("HardResetFail"),iV("InvalidXRPTag"),iV("InvalidAddress"),iV("InvalidNonce"),iV("InvalidAddressBecauseDestinationIsAlsoSource"),iV("LatestMCUInstalledError"),iV("UnknownMCU"),iV("LedgerAPIError"),iV("LedgerAPIErrorWithMessage"),iV("LedgerAPINotAvailable"),iV("ManagerAppAlreadyInstalled"),iV("ManagerAppRelyOnBTC"),iV("ManagerAppDepInstallRequired"),iV("ManagerAppDepUninstallRequired"),iV("ManagerDeviceLocked"),iV("ManagerFirmwareNotEnoughSpace"),iV("ManagerNotEnoughSpace"),iV("ManagerUninstallBTCDep"),iV("NetworkDown"),iV("NetworkError"),iV("NoAddressesFound"),iV("NotEnoughBalance"),iV("NotEnoughBalanceToDelegate"),iV("NotEnoughBalanceInParentAccount"),iV("NotEnoughSpendableBalance"),iV("NotEnoughBalanceBecauseDestinationNotCreated"),iV("NoAccessToCamera"),iV("NotEnoughGas"),iV("NotEnoughGasSwap"),iV("NotSupportedLegacyAddress"),iV("GasLessThanEstimate"),iV("PriorityFeeTooLow"),iV("PriorityFeeTooHigh"),iV("PriorityFeeHigherThanMaxFee"),iV("MaxFeeTooLow"),iV("PasswordsDontMatch"),iV("PasswordIncorrect"),iV("RecommendSubAccountsToEmpty"),iV("RecommendUndelegation"),iV("TimeoutTagged"),iV("UnexpectedBootloader"),iV("MCUNotGenuineToDashboard"),iV("RecipientRequired"),iV("UnavailableTezosOriginatedAccountReceive"),iV("UnavailableTezosOriginatedAccountSend"),iV("UpdateFetchFileFail"),iV("UpdateIncorrectHash"),iV("UpdateIncorrectSig"),iV("UpdateYourApp"),iV("UserRefusedDeviceNameChange"),iV("UserRefusedAddress"),iV("UserRefusedFirmwareUpdate"),iV("UserRefusedAllowManager"),iV("UserRefusedOnDevice"),iV("ExpertModeRequired"),iV("TransportOpenUserCancelled")),cV=iV("TransportInterfaceNotAvailable"),lV=iV("TransportRaceCondition"),uV=iV("TransportWebUSBGestureRequired");iV("TransactionHasBeenValidatedError"),iV("TransportExchangeTimeoutError"),iV("DeviceShouldStayInApp"),iV("WebsocketConnectionError"),iV("WebsocketConnectionFailed"),iV("WrongDeviceForAccount"),iV("WrongAppForCurrency"),iV("ETHAddressNonEIP"),iV("CantScanQRCode"),iV("FeeNotLoaded"),iV("FeeNotLoadedSwap"),iV("FeeRequired"),iV("FeeTooHigh"),iV("PendingOperation"),iV("SyncError"),iV("PairingFailed"),iV("PeerRemovedPairing"),iV("GenuineCheckFailed"),iV("LedgerAPI4xx"),iV("LedgerAPI5xx"),iV("FirmwareOrAppUpdateRequired"),iV("ReplacementTransactionUnderpriced"),iV("OpReturnSizeLimit"),iV("DustLimit"),iV("LanguageNotFound"),iV("NoDBPathGiven"),iV("DBWrongPassword"),iV("DBNotReset");var dV;!function(e){e.Unknown="Unknown",e.LocationServicesDisabled="LocationServicesDisabled",e.LocationServicesUnauthorized="LocationServicesUnauthorized",e.BluetoothScanStartFailed="BluetoothScanStartFailed"}(dV||(dV={}));class hV extends Error{constructor(e,t){const r="TransportError";super(e||r),this.name=r,this.message=e,this.stack=new Error(e).stack,this.id=t}}nV("TransportError",(e=>new hV(e.message,e.id)));const fV={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};class pV extends Error{constructor(e,{canBeMappedToChildError:t=!0}={}){const r=Object.keys(fV).find((t=>fV[t]===e))||"UNKNOWN_ERROR",n=function(e){switch(e){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=e&&e<=28671)return"Internal error, please report"}(e)||r,i=`Ledger device: ${n} (0x${e.toString(16)})`;if(super(i),this.name="TransportStatusError",this.statusCode=e,this.statusText=r,t&&e===fV.LOCKED_DEVICE)return new mV(i)}}class mV extends pV{constructor(e){super(fV.LOCKED_DEVICE,{canBeMappedToChildError:!1}),e&&(this.message=e),this.name="LockedDeviceError"}}nV("TransportStatusError",(e=>new pV(e.statusCode)));let gV=0;const vV=[],yV=(e,t,r)=>{const n={type:e,id:String(++gV),date:new Date};t&&(n.message=t),r&&(n.data=r),xV(n)};class bV{constructor(e,t){this.type=e,this.context=t}trace(e,t){(({type:e,message:t,data:r,context:n})=>{const i={type:e,id:String(++gV),date:new Date};t&&(i.message=t),r&&(i.data=r),n&&(i.context=n),xV(i)})({type:this.type,message:e,data:t,context:this.context})}getContext(){return this.context}setContext(e){this.context=e}updateContext(e){this.context=Object.assign(Object.assign({},this.context),e)}getType(){return this.type}setType(e){this.type=e}withType(e){return new bV(e,this.context)}withContext(e){return new bV(this.type,e)}withUpdatedContext(e){return new bV(this.type,Object.assign(Object.assign({},this.context),e))}}const wV=e=>(vV.push(e),()=>{const t=vV.indexOf(e);-1!==t&&(vV[t]=vV[vV.length-1],vV.pop())});function xV(e){for(let r=0;rSV(this,void 0,void 0,(function*(){const s=this.tracer.withUpdatedContext({function:"send"});if(i.length>=256)throw s.trace("data.length exceeded 256 bytes limit",{dataLength:i.length}),new hV("data.length exceed 256 bytes limit. Got: "+i.length,"DataLengthTooBig");s.trace("Starting an exchange",{abortTimeoutMs:a});const c=yield this.exchange(_V.concat([_V.from([e,t,r,n]),_V.from([i.length]),i]),{abortTimeoutMs:a});s.trace("Received response from exchange");const l=c.readUInt16BE(c.length-2);if(!o.some((e=>e===l)))throw new pV(l);return c})),this._appAPIlock=null,this.tracer=new bV(null!==t&&void 0!==t?t:"transport",e)}exchange(e,{abortTimeoutMs:t}={}){throw new Error("exchange not implemented")}exchangeBulk(e,t){let r=!1;return(()=>SV(this,void 0,void 0,(function*(){if(!r)for(const n of e){const e=yield this.exchange(n);if(r)return;const i=e.readUInt16BE(e.length-2);if(i!==fV.OK)throw new pV(i);t.next(e)}})))().then((()=>!r&&t.complete()),(e=>!r&&t.error(e))),{unsubscribe:()=>{r=!0}}}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise(((r,n)=>{let i=!1;const o=this.listen({next:t=>{i=!0,o&&o.unsubscribe(),a&&clearTimeout(a),this.open(t.descriptor,e).then(r,n)},error:e=>{a&&clearTimeout(a),n(e)},complete:()=>{a&&clearTimeout(a),i||n(new hV(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),a=t?setTimeout((()=>{o.unsubscribe(),n(new hV(this.ErrorMessage_ListenTimeout,"ListenTimeout"))}),t):null}))}exchangeAtomicImpl(e){return SV(this,void 0,void 0,(function*(){const t=this.tracer.withUpdatedContext({function:"exchangeAtomicImpl"});if(this.exchangeBusyPromise)throw t.trace("Atomic exchange is already busy"),new lV("An action was already pending on the Ledger device. Please deny or reconnect.");let r;const n=new Promise((e=>{r=e}));this.exchangeBusyPromise=n;let i=!1;const o=setTimeout((()=>{t.trace('Timeout reached, emitting Transport event "unresponsive"',{unresponsiveTimeout:this.unresponsiveTimeout}),i=!0,this.emit("unresponsive")}),this.unresponsiveTimeout);try{const r=yield e();return i&&(t.trace("Device was unresponsive, emitting responsive"),this.emit("responsive")),r}finally{t.trace("Finalize, clearing busy guard"),clearTimeout(o),r&&r(),this.exchangeBusyPromise=null}}))}decorateAppAPIMethods(e,t,r){for(const n of t)e[n]=this.decorateAppAPIMethod(n,e[n],e,r)}decorateAppAPIMethod(e,t,r,n){return(...i)=>SV(this,void 0,void 0,(function*(){const{_appAPIlock:o}=this;if(o)return Promise.reject(new hV("Ledger Device is busy (lock "+o+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(n),yield t.apply(r,i)}finally{this._appAPIlock=null}}))}setTraceContext(e){this.tracer=this.tracer.withContext(e)}updateTraceContext(e){this.tracer.updateContext(e)}getTraceContext(){return this.tracer.getContext()}}kV.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",kV.ErrorMessage_NoDeviceFound="No Ledger device found";const EV=kV;var AV=r(4872).Buffer;function PV(e){const t=AV.alloc(2);return t.writeUInt16BE(e,0),t}const TV={data:AV.alloc(0),dataLength:0,sequence:0},OV=(e,t)=>({makeBlocks(r){let n=AV.concat([PV(r.length),r]);const i=t-5,o=Math.ceil(n.length/i);n=AV.concat([n,AV.alloc(o*i-n.length+1).fill(0)]);const a=[];for(let t=0;ti&&(n=n.slice(0,i)),{data:n,dataLength:i,sequence:o}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}});var CV=r(5353),jV=r.n(CV);var RV;!function(e){e.blue="blue",e.nanoS="nanoS",e.nanoSP="nanoSP",e.nanoX="nanoX",e.stax="stax"}(RV||(RV={}));const IV={[RV.blue]:{id:RV.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:e=>4096},[RV.nanoS]:{id:RV.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:e=>{var t;return jV().lt(null!==(t=jV().coerce(e))&&void 0!==t?t:"","2.0.0")?4096:2048}},[RV.nanoSP]:{id:RV.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:e=>32},[RV.nanoX]:{id:RV.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:e=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[RV.stax]:{id:RV.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:e=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}},MV=(RV.blue,RV.nanoS,RV.nanoSP,RV.nanoX,RV.stax,Object.values(IV)),LV=11415,NV=e=>{const t=MV.find((t=>t.legacyUsbProductId===e));if(t)return t;const r=e>>8,n=MV.find((e=>e.productIdMM===r));return n},DV=[],zV={};for(const r in IV){const e=IV[r],{bluetoothSpec:t}=e;if(t)for(let r=0;re.vendorId===LV))}))}var HV=r(4872).Buffer,VV=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class qV extends EV{constructor(e,t){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.device=e,this.interfaceNumber=t,this.deviceModel=NV(e.productId)}static request(){return VV(this,void 0,void 0,(function*(){const e=yield FV();return qV.open(e)}))}static openConnected(){return VV(this,void 0,void 0,(function*(){const e=yield $V();return 0===e.length?null:qV.open(e[0])}))}static open(e){return VV(this,void 0,void 0,(function*(){yield e.open(),null===e.configuration&&(yield e.selectConfiguration(1)),yield WV(e);const t=e.configurations[0].interfaces.find((({alternates:e})=>e.some((e=>255===e.interfaceClass))));if(!t)throw new cV("No WebUSB interface found for your Ledger device. Please upgrade firmware or contact techsupport.");const r=t.interfaceNumber;try{yield e.claimInterface(r)}catch(o){throw yield e.close(),new cV(o.message)}const n=new qV(e,r),i=t=>{e===t.device&&(navigator.usb.removeEventListener("disconnect",i),n._emitDisconnect(new oV))};return navigator.usb.addEventListener("disconnect",i),n}))}close(){return VV(this,void 0,void 0,(function*(){yield this.exchangeBusyPromise,yield this.device.releaseInterface(this.interfaceNumber),yield WV(this.device),yield this.device.close()}))}exchange(e){return VV(this,void 0,void 0,(function*(){const t=yield this.exchangeAtomicImpl((()=>VV(this,void 0,void 0,(function*(){const{channel:t,packetSize:r}=this;yV("apdu","=> "+e.toString("hex"));const n=OV(t,r),i=n.makeBlocks(e);for(let e=0;e{if(e&&e.message&&e.message.includes("disconnected"))throw this._emitDisconnect(e),new aV(e.message);throw e}));return t}))}setScrambleKey(){}}qV.isSupported=()=>Promise.resolve(!!navigator&&!!navigator.usb&&"function"===typeof navigator.usb.getDevices),qV.list=$V,qV.listen=e=>{let t=!1;return function(){return BV(this,void 0,void 0,(function*(){const e=yield $V();return e.length>0?e[0]:FV()}))}().then((r=>{if(!t){const t=NV(r.productId);e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}}),(t=>{window.DOMException&&t instanceof window.DOMException&&18===t.code?e.error(new uV(t.message)):e.error(new sV(t.message))})),{unsubscribe:function(){t=!0}}};const KV=qV;function WV(e){return VV(this,void 0,void 0,(function*(){try{yield e.reset()}catch(Tle){console.warn(Tle)}}))}var GV=r(4872).Buffer;function ZV(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))}"function"===typeof SuppressedError&&SuppressedError;function YV(e){const t=[];e.split("/").forEach((e=>{let r=parseInt(e,10);Number.isNaN(r)||(e.length>1&&"'"===e[e.length-1]&&(r+=2147483648),t.push(r))}));const r=GV.alloc(1+4*t.length);return r[0]=t.length,t.forEach(((e,t)=>{r.writeUInt32BE(e,1+4*t)})),r}function XV(e,t){const r=GV.alloc(32);r.fill(0);let n=t[e],i=e+1;return n>32&&(i+=n-32,n=32),t.copy(r,32-n,i,i+n),{buffer:r,idxValueStart:i,length:n}}class JV extends Ja{constructor(e){super(),this.message=e,this.name="InvalidLedgerResponseError"}}class QV extends Ja{constructor(e){super(),this.cause=e,this.name="PublicKeyRetrievalError",this.message="Unable to retrieve Public Key from Ledger"}}class eq extends Ja{constructor(){super(),this.name="PublicKeyHashRetrievalError",this.message="Unable to retrieve Public Key Hash from Ledger"}}class tq extends Qa{constructor(e){super(),this.derivationType=e,this.name="InvalidDerivationTypeError",this.message=`Invalid derivation type ${e} expecting one of the following: DerivationType.ED25519, DerivationType.SECP256K1, DerivationType.P256 or DerivationType.BIP32_ED25519`}}var rq;!function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256",e[e.BIP32_ED25519=3]="BIP32_ED25519"}(rq||(rq={}));class nq{constructor(e,t="44'/1729'/0'/0'",r=!0,n=rq.ED25519){if(this.transport=e,this.path=t,this.prompt=r,this.derivationType=n,this.CLA=128,this.INS_GET_PUBLIC_KEY=2,this.INS_PROMPT_PUBLIC_KEY=3,this.INS_SIGN=4,this.FIRST_MESSAGE_SEQUENCE=0,this.LAST_MESSAGE_SEQUENCE=129,this.OTHER_MESSAGE_SEQUENCE=1,this.transport.setScrambleKey("XTZ"),!t.startsWith("44'/1729'"))throw new ss(t,`${hc(Zs.NO_PREFIX_MATCHED)} expecting prefix "44'/1729'".`);if(!Object.values(rq).includes(n))throw new tq(n.toString())}publicKeyHash(){return ZV(this,void 0,void 0,(function*(){if(this._publicKeyHash||(yield this.publicKey()),this._publicKeyHash)return this._publicKeyHash;throw new eq}))}publicKey(){return ZV(this,void 0,void 0,(function*(){if(this._publicKey)return this._publicKey;const e=yield this.getLedgerPublicKey(),t=e[0],r=function(e,t){return 0===t||3===t?e=e.slice(1):(e[0]=2+(1&e[64]),e=e.slice(0,33)),e}(e.slice(1,1+t),this.derivationType),n=this.getPrefixes(),i=vc(r,n.prefPk),o=vc((0,Wa.hash)(r,20),n.prefPkh);return this._publicKey=i,this._publicKeyHash=o,i}))}getLedgerPublicKey(){return ZV(this,void 0,void 0,(function*(){try{let e=this.INS_PROMPT_PUBLIC_KEY;!1===this.prompt&&(e=this.INS_GET_PUBLIC_KEY);return yield this.transport.send(this.CLA,e,this.FIRST_MESSAGE_SEQUENCE,this.derivationType,YV(this.path))}catch(e){throw new QV(e)}}))}secretKey(){return ZV(this,void 0,void 0,(function*(){throw new bs("Secret key cannot be exposed")}))}sign(e,t){return ZV(this,void 0,void 0,(function*(){const r=function(e,t){let r=e;"undefined"!==typeof t&&(r=GV.from(t).toString("hex").concat(e));return r}(e,t),n=GV.from(r,"hex");let i=[];i.push(YV(this.path)),i=function(e,t){let r=0;for(;r!==t.length;){const n=r+230>=t.length?t.length-r:230,i=GV.alloc(n);t.copy(i,0,r,r+n),e.push(i),r+=n}return e}(i,n);const o=yield this.signWithLedger(i);let a;if(this.derivationType===rq.ED25519||this.derivationType===rq.BIP32_ED25519)a=o.slice(0,o.length-2).toString("hex");else{if(!function(e){let t=!0;49!==e[0]&&48!==e[0]&&(t=!1),e[1]+4!==e.length&&(t=!1),2!==e[2]&&(t=!1);const r=e[3];2!==e[4+r]&&(t=!1);const n=5+r;return n+1+e[n]+2!==e.length&&(t=!1),t}(o))throw new JV("Invalid signature return by ledger unable to parse the response");const e=XV(3,o),t=XV(e.idxValueStart+e.length+1,o);a=GV.concat([e.buffer,t.buffer]).toString("hex")}return{bytes:e,sig:vc(a,Ks[Fs.SIG]),prefixSig:vc(a,this.getPrefixes().prefSig),sbytes:e+a}}))}signWithLedger(e){return ZV(this,void 0,void 0,(function*(){let t=yield this.transport.send(this.CLA,this.INS_SIGN,this.FIRST_MESSAGE_SEQUENCE,this.derivationType,e[0]);for(let r=1;r{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}));continue}t.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}const r=t.join("&");return r?`?${r}`:""}createRequest({url:e,method:t,timeout:r=this.timeout,query:n,headers:i={},json:o=!0},a){return aq(this,void 0,void 0,(function*(){const s=e+this.serialize(n);i["Content-Type"]||(i["Content-Type"]="application/json");const c=new AbortController,l=setTimeout((()=>c.abort()),r);try{const e=yield dq(s,{method:t,headers:i,body:JSON.stringify(a),signal:c.signal});if("undefined"===typeof e)throw new Error("Response is undefined");if(e.status>=400){const t=yield e.text();throw new cq(`Http error response: (${e.status}) ${t}`,e.status,e.statusText,t,s)}return o?e.json():e.text()}catch(u){throw u instanceof Error&&"AbortError"===u.name?new lq(r,s):u instanceof cq?u:new sq(String(t),s,u)}finally{clearTimeout(l)}}))}}function fq(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{const r=e[t];let i;if("undefined"!==typeof r){if(Array.isArray(r))return i=vq(r),void(n[t]=i);i=new Us(r),n[t]=i}})),n}!function(e){e.GET_BAKING_RIGHTS="getBakingRights",e.GET_BALLOTS="getBallots",e.GET_BALLOT_LIST="getBallotList",e.GET_BIG_MAP_KEY="getBigMapKey",e.GET_BIG_MAP_EXPR="getBigMapExpr",e.GET_BLOCK_HASH="getBlockHash",e.GET_BLOCK="getBlock",e.GET_BLOCK_HEADER="getBlockHeader",e.GET_BLOCK_METADATA="getBlockMetadata",e.GET_BALANCE="getBalance",e.GET_CHAIN_ID="getChainId",e.GET_CONSTANTS="getConstants",e.GET_CONTRACT="getContract",e.GET_CURRENT_PERIOD="getCurrentPeriod",e.GET_CURRENT_PROPOSAL="getCurrentProposal",e.GET_CURRENT_QUORUM="getCurrentQuorum",e.GET_DELEGATE="getDelegate",e.GET_DELEGATES="getDelegates",e.GET_VOTING_INFO="getVotingInfo",e.GET_ENDORSING_RIGHTS="getEndorsingRights",e.GET_ENTRYPOINTS="getEntrypoints",e.GET_LIVE_BLOCKS="getLiveBlocks",e.GET_MANAGER_KEY="getManagerKey",e.GET_NORMALIZED_SCRIPT="getNormalizedScript",e.GET_PROPOSALS="getProposals",e.GET_PROTOCOLS="getProtocols",e.GET_SAPLING_DIFF_BY_CONTRACT="getSaplingDiffByContract",e.GET_SAPLING_DIFF_BY_ID="getSaplingDiffById",e.GET_SCRIPT="getScript",e.GET_STORAGE="getStorage",e.GET_SUCCESSOR_PERIOD="getSuccessorPeriod",e.GET_TX_ROLLUP_INBOX="getTxRollupInbox",e.GET_TX_ROLLUP_STATE="getTxRollupState",e.GET_VOTES_LISTINGS="getVotesListings",e.PACK_DATA="packData",e.GET_STORAGE_USED_SPACE="getStorageUsedSpace",e.GET_STORAGE_PAID_SPACE="getStoragePaidSpace",e.GET_TICKET_BALANCE="getTicketBalance",e.GET_ALL_TICKET_BALANCES="getAllTicketBalances",e.GET_PENDING_OPERATIONS="getPendingOperations",e.GET_ORIGINATION_PROOF="getOriginationProof"}(gq||(gq={}));var yq,bq,wq,xq,_q,Sq,kq,Eq,Aq,Pq;!function(e){e.TOO_LARGE="too large"}(yq||(yq={})),function(e){e.BAKING_REWARDS="baking rewards",e.REWARDS="rewards",e.FEES="fees",e.DEPOSITS="deposits",e.LEGACY_REWARDS="legacy_rewards",e.LEGACY_FEES="legacy_fees",e.LEGACY_DEPOSITS="legacy_deposits",e.BLOCK_FEES="block fees",e.NONCE_REVELATION_REWARDS="nonce revelation rewards",e.DOUBLE_SIGNING_EVIDENCE_REWARDS="double signing evidence rewards",e.ENDORSING_REWARDS="endorsing rewards",e.BAKING_BONUSES="baking bonuses",e.STORAGE_FEES="storage fees",e.PUNISHMENTS="punishments",e.LOST_ENDORSING_REWARDS="lost endorsing rewards",e.SUBSIDY="subsidy",e.BURNED="burned",e.COMMITMENT="commitment",e.BOOTSTRAP="bootstrap",e.INVOICE="invoice",e.MINTED="minted",e.TX_ROLLUP_REJECTION_REWARDS="tx_rollup_rejection_rewards",e.TX_ROLLUP_REJECTION_PUNISHMENTS="tx_rollup_rejection_punishments",e.BONDS="bonds"}(bq||(bq={})),function(e){e.WASM2="wasm_2_0_0",e.ARITH="arith"}(wq||(wq={})),function(e){e.START="start",e.MOVE="move"}(xq||(xq={})),function(e){e.INBOX_PROOF="inbox_proof",e.REVEAL_PROOF="reveal_proof",e.FIRST_INPUT="first_input"}(_q||(_q={})),function(e){e.RAW_DATA_PROOF="raw_data_proof",e.METADATA_PROOF="metadata_proof",e.DAL_PAGE_PROOF="dal_page_proof"}(Sq||(Sq={})),function(e){e.ONGOING="ongoing",e.ENDED="ended"}(kq||(kq={})),function(e){e.LOSER="loser",e.DRAW="draw"}(Eq||(Eq={})),function(e){e.CONFLICT_RESOLVED="conflict_resolved",e.TIMEOUT="timeout"}(Aq||(Aq={})),function(e){e.ORIGINATION="origination",e.DELEGATION="delegation",e.REVEAL="reveal",e.TRANSACTION="transaction",e.ACTIVATION="activate_account",e.ENDORSEMENT="endorsement",e.PREENDORSEMENT="preendorsement",e.SET_DEPOSITS_LIMIT="set_deposits_limit",e.DOUBLE_PREENDORSEMENT_EVIDENCE="double_preendorsement_evidence",e.ENDORSEMENT_WITH_SLOT="endorsement_with_slot",e.SEED_NONCE_REVELATION="seed_nonce_revelation",e.DOUBLE_ENDORSEMENT_EVIDENCE="double_endorsement_evidence",e.DOUBLE_BAKING_EVIDENCE="double_baking_evidence",e.PROPOSALS="proposals",e.BALLOT="ballot",e.FAILING_NOOP="failing_noop",e.REGISTER_GLOBAL_CONSTANT="register_global_constant",e.TX_ROLLUP_ORIGINATION="tx_rollup_origination",e.TX_ROLLUP_SUBMIT_BATCH="tx_rollup_submit_batch",e.TX_ROLLUP_COMMIT="tx_rollup_commit",e.TX_ROLLUP_RETURN_BOND="tx_rollup_return_bond",e.TX_ROLLUP_FINALIZE_COMMITMENT="tx_rollup_finalize_commitment",e.TX_ROLLUP_REMOVE_COMMITMENT="tx_rollup_remove_commitment",e.TX_ROLLUP_REJECTION="tx_rollup_rejection",e.TX_ROLLUP_DISPATCH_TICKETS="tx_rollup_dispatch_tickets",e.TRANSFER_TICKET="transfer_ticket",e.INCREASE_PAID_STORAGE="increase_paid_storage",e.UPDATE_CONSENSUS_KEY="update_consensus_key",e.DRAIN_DELEGATE="drain_delegate",e.VDF_REVELATION="vdf_revelation",e.EVENT="event",e.TICKET_UPDATES="ticket_updates",e.SMART_ROLLUP_ORIGINATE="smart_rollup_originate",e.SMART_ROLLUP_ADD_MESSAGES="smart_rollup_add_messages",e.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE="smart_rollup_execute_outbox_message",e.SMART_ROLLUP_PUBLISH="smart_rollup_publish",e.SMART_ROLLUP_CEMENT="smart_rollup_cement",e.SMART_ROLLUP_RECOVER_BOND="smart_rollup_recover_bond",e.SMART_ROLLUP_REFUTE="smart_rollup_refute",e.SMART_ROLLUP_TIMEOUT="smart_rollup_timeout"}(Pq||(Pq={}));class Tq{constructor(e,t="main",r=new hq){this.url=e,this.chain=t,this.httpBackend=r}createURL(e){let t=this.url;for(;t.endsWith("/");)t=t.slice(0,-1);return`${t}${e}`}validateAddress(e){const t=oc(e);if(t!==Zs.VALID)throw new is(e,hc(t))}validateContract(e){const t=sc(e);if(t!==Zs.VALID)throw new fs(e,hc(t))}getBlockHash({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/hash`),method:"GET"})}))}getLiveBlocks({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/live_blocks`),method:"GET"})}))}getBalance(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/balance`),method:"GET"});return new Us(r)}))}getStorage(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage`),method:"GET"})}))}getScript(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/script`),method:"GET"})}))}getNormalizedScript(e,t={unparsing_mode:"Readable"},{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/script/normalized`),method:"POST"},t)}))}getContract(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}`),method:"GET"});return Object.assign(Object.assign({},r),{balance:new Us(r.balance)})}))}getManagerKey(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.validateAddress(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/manager_key`),method:"GET"})}))}getDelegate(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){let r;this.validateAddress(e);try{r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/delegate`),method:"GET"})}catch(n){if(!(n instanceof cq&&n.status===iq.NOT_FOUND))throw n;r=null}return r}))}getBigMapKey(e,t,{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.validateAddress(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/big_map_get`),method:"POST"},t)}))}getBigMapExpr(e,t,{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/big_maps/${e}/${t}`),method:"GET"})}))}getDelegates(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/delegates/${e}`),method:"GET"}),n=vq(r,["balance","full_balance","current_frozen_deposits","frozen_deposits","frozen_balance","frozen_deposits_limit","staking_balance","delegated_balance","voting_power"]);return Object.assign(Object.assign(Object.assign({},r),n),{frozen_balance_by_cycle:r.frozen_balance_by_cycle?r.frozen_balance_by_cycle.map((e=>{var{deposit:t,deposits:r,fees:n,rewards:i}=e,o=fq(e,["deposit","deposits","fees","rewards"]);const a=vq({deposit:t,deposits:r,fees:n,rewards:i},["deposit","deposits","fees","rewards"]);return Object.assign(Object.assign({},o),{deposit:a.deposit,deposits:a.deposits,fees:a.fees,rewards:a.rewards})})):void 0})}))}getVotingInfo(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.validateAddress(e),yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/delegates/${e}/voting_info`),method:"GET"})}))}getConstants({block:e}=mq){return pq(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/context/constants`),method:"GET"}),r=vq(t,["time_between_blocks","hard_gas_limit_per_operation","hard_gas_limit_per_block","proof_of_work_threshold","tokens_per_roll","seed_nonce_revelation_tip","block_security_deposit","endorsement_security_deposit","block_reward","endorsement_reward","cost_per_byte","hard_storage_limit_per_operation","test_chain_duration","baking_reward_per_endorsement","delay_per_missing_endorsement","minimal_block_delay","liquidity_baking_subsidy","cache_layout","baking_reward_fixed_portion","baking_reward_bonus_per_slot","endorsing_reward_per_slot","double_baking_punishment","delay_increment_per_round","tx_rollup_commitment_bond","vdf_difficulty","sc_rollup_stake_amount","minimal_stake"]);return Object.assign(Object.assign({},t),r)}))}getBlock({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}`),method:"GET"})}))}getBlockHeader({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/header`),method:"GET"})}))}getBlockMetadata({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/metadata`),method:"GET"})}))}getBakingRights(e={},{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/baking_rights`),method:"GET",query:e})}))}getEndorsingRights(e={},{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/endorsing_rights`),method:"GET",query:e})}))}getBallotList({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/ballot_list`),method:"GET"})}))}getBallots({block:e}=mq){return pq(this,void 0,void 0,(function*(){return vq(yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/ballots`),method:"GET"}),["yay","nay","pass"])}))}getCurrentProposal({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_proposal`),method:"GET"})}))}getCurrentQuorum({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_quorum`),method:"GET"})}))}getVotesListings({block:e}=mq){return pq(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/listings`),method:"GET"});return t.map((e=>(e.voting_power&&(e.voting_power=new Us(e.voting_power)),e))),t}))}getProposals({block:e}=mq){return pq(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/proposals`),method:"GET"});return t.map((e=>e[1]=new Us(e[1]))),t}))}forgeOperations(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/forge/operations`),method:"POST"},e)}))}injectOperation(e){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL("/injection/operation"),method:"POST"},e)}))}preapplyOperations(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/preapply/operations`),method:"POST"},e)}))}getEntrypoints(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){this.validateContract(e);return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/entrypoints`),method:"GET"})}))}runOperation(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/run_operation`),method:"POST"},e)}))}simulateOperation(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/simulate_operation`),method:"POST"},e)}))}runCode(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/run_code`),method:"POST"},e)}))}runScriptView(e,t){var{unparsing_mode:r="Readable"}=e,n=fq(e,["unparsing_mode"]),i=(void 0===t?mq:t).block;return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${i}/helpers/scripts/run_script_view`),method:"POST"},Object.assign({unparsing_mode:r},n))}))}runView(e,t){var{unparsing_mode:r="Readable"}=e,n=fq(e,["unparsing_mode"]),i=(void 0===t?mq:t).block;return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${i}/helpers/scripts/run_view`),method:"POST"},Object.assign({unparsing_mode:r},n))}))}getChainId(){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/chain_id`),method:"GET"})}))}packData(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/pack_data`),method:"POST"},e),{gas:n}=r,i=fq(r,["gas"]);let o=n;const a=new Us(n||"");return a.isNaN()||(o=a),Object.assign({gas:o},i)}))}getRpcUrl(){return this.url}getCurrentPeriod({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_period`),method:"GET"})}))}getSuccessorPeriod({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/successor_period`),method:"GET"})}))}getSaplingDiffById(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/sapling/${e}/get_diff`),method:"GET"})}))}getSaplingDiffByContract(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/single_sapling_get_diff`),method:"GET"})}))}getProtocols({block:e}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/protocols`),method:"GET"})}))}getTxRollupState(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/tx_rollup/${e}/state`),method:"GET"})}))}getTxRollupInbox(e,t,{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/tx_rollup/${e}/inbox/${t}`),method:"GET"})}))}getStorageUsedSpace(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage/used_space`),method:"GET"})}))}getStoragePaidSpace(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage/paid_space`),method:"GET"})}))}getTicketBalance(e,t,{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/ticket_balance`),method:"POST"},t)}))}getAllTicketBalances(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/all_ticket_balances`),method:"GET"})}))}getPendingOperations(e={}){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/mempool/pending_operations`),method:"GET",query:e})}))}getOriginationProof(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/smart_rollups/all/origination_proof`),method:"POST"},e)}))}}function Oq(e){return"function"===typeof e}function Cq(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var jq=Cq((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Rq(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Iq=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=kI(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(f){e={error:f}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(Oq(c))try{c()}catch(p){i=p instanceof jq?p.errors:[p]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=kI(l),d=u.next();!d.done;d=u.next()){var h=d.value;try{Nq(h)}catch(Tle){i=null!==i&&void 0!==i?i:[],Tle instanceof jq?i=AI(AI([],EI(i)),EI(Tle.errors)):i.push(Tle)}}}catch(m){r={error:m}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(i)throw new jq(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Nq(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Rq(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&Rq(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Mq=Iq.EMPTY;function Lq(e){return e instanceof Iq||e&&"closed"in e&&Oq(e.remove)&&Oq(e.add)&&Oq(e.unsubscribe)}function Nq(e){Oq(e)?e():e.unsubscribe()}var Dq={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zq={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?Mq:(this.currentObservers=null,o.push(e),new Iq((function(){t.currentObservers=null,Rq(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new rK;return e.source=this,e},t.create=function(e,t){return new aK(e,t)},t}(rK),aK=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return bI(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:Mq},t}(oK),sK={now:function(){return(sK.delegate||Date).now()},delegate:void 0},cK=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=sK);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return bI(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i0&&d(i)}),void 0,void 0,(function(){(null===o||void 0===o?void 0:o.closed)||null===o||void 0===o||o.unsubscribe(),s=null}))),!l&&d(null!=n?"number"===typeof n?n:+n-c.now():i)}))}function dW(e){throw new lW(e)}function hW(e,t){return Oq(t)?ZK(e,t,1):ZK(e,1)}function fW(){for(var e=[],t=0;t0&&(t=new Zq({next:function(e){return m.next(e)},error:function(e){u=!0,d(),n=gW(h,i,e),m.error(e)},complete:function(){l=!0,d(),n=gW(h,a),m.complete()}}),wK(e).subscribe(t))}))(e)}}function gW(e,t){for(var r=[],n=2;n=2;return function(n){return n.pipe(e?yW((function(t,r){return e(t,r,n)})):eK,(o=1)<=0?function(){return SK}:CK((function(e,t){var r=0;e.subscribe(jK(t,(function(e){++r<=o&&(t.next(e),o<=r&&t.complete())})))})),r?function(e){return CK((function(t,r){var n=!1;t.subscribe(jK(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))}(t):(void 0===(i=function(){return new bW})&&(i=wW),CK((function(e,t){var r=!1;e.subscribe(jK(t,(function(e){r=!0,t.next(e)}),(function(){return r?t.complete():t.error(i())})))}))));var i,o}}function _W(e){return CK((function(t,r){var n,i=null,o=!1;i=t.subscribe(jK(r,void 0,void 0,(function(a){n=wK(e(a,_W(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0}))),o&&(i.unsubscribe(),i=null,n.subscribe(r))}))}function SW(e,t){return void 0===t&&(t=eK),e=null!==e&&void 0!==e?e:kW,CK((function(r,n){var i,o=!0;r.subscribe(jK(n,(function(r){var a=t(r);!o&&e(i,a)||(o=!1,i=a,n.next(r))})))}))}function kW(e,t){return e===t}function EW(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"===typeof e?e:{count:e}).count,n=void 0===r?1/0:r,i=t.delay,o=t.resetOnSuccess,a=void 0!==o&&o;return n<=0?eK:CK((function(e,t){var r,o=0,s=function(){var c=!1;r=e.subscribe(jK(t,(function(e){a&&(o=0),t.next(e)}),void 0,(function(e){if(o++{r.set(t,e[t])})),r}typecheckKey(e){this.keySchema&&this.keySchema.Typecheck(e)}typecheckValue(e){this.valueSchema&&this.valueSchema.Typecheck(e)}assertTypecheckValue(e){try{this.typecheckValue(e)}catch(t){throw new zW(e,this.valueSchema,"value",t)}}assertTypecheckKey(e){try{this.typecheckKey(e)}catch(t){throw new zW(e,this.keySchema,"key",t)}}serializeDeterministically(e){return MW()(e)}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){for(const e of this.valueMap.keys())yield[this.keyMap.get(e),this.valueMap.get(e)]}get(e){this.assertTypecheckKey(e);const t=this.serializeDeterministically(e);return this.valueMap.get(t)}set(e,t){this.assertTypecheckKey(e),this.assertTypecheckValue(t);const r=this.serializeDeterministically(e);this.keyMap.set(r,e),this.valueMap.set(r,t)}delete(e){this.assertTypecheckKey(e),this.keyMap.delete(this.serializeDeterministically(e)),this.valueMap.delete(this.serializeDeterministically(e))}has(e){this.assertTypecheckKey(e);const t=this.serializeDeterministically(e);return this.keyMap.has(t)&&this.valueMap.has(t)}clear(){this.keyMap.clear(),this.valueMap.clear()}get size(){return this.keyMap.size}forEach(e){for(const[t,r]of this.entries())e(r,t,this)}}RW=DW;class UW extends Ja{constructor(e,t,r){super(),this.value=e,this.token=t,this.name="TokenValidationError";const n=this.token.annot(),i=n?`[${n}] `:"";this.message=`${i}${r}`}}class FW{constructor(e,t,r){this.val=e,this.idx=t,this.fac=r,this.createToken=this.fac}typeWithoutAnnotations(){const e=t=>{if("object"===typeof t){if(Array.isArray(t)){return t.map((t=>e(t)))}const r=t;return r.args?{prim:r.prim,args:r.args.map((t=>e(t)))}:{prim:r.prim}}return t};return(t=this.val).args?{prim:t.prim,args:t.args.map((t=>e(t)))}:{prim:t.prim};var t}annot(){return(Array.isArray(this.val.annots)&&this.val.annots.length>0?this.val.annots[0]:String(this.idx)).replace(/(%|:)(_Liq_entry_)?/,"")}hasAnnotations(){return Array.isArray(this.val.annots)&&this.val.annots.length}get tokenVal(){return this.val}ExtractSignature(){return[[this.ExtractSchema()]]}}class $W extends FW{compare(e,t){return e===t?0:ethis.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(t.get(e))]})))}EncodeObject(e,t){const r=this.objLitToMichelsonMap(e);return this.validate(r),t&&t[VW.prim]?t[VW.prim](r,this.val):Array.from(r.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(r.get(e))]})))}Execute(e,t){if(t&&t[VW.prim])return t[VW.prim](e,this.val);if(Array.isArray(e)){const t=new BW(this.val);return e.forEach((e=>{t.set(this.KeySchema.ToKey(e.args[0]),this.ValueSchema.Execute(e.args[1]))})),t}if("int"in e)return e.int;throw new HW(e,this,`Big map is expecting either an array (Athens) or an object with an int property (Babylon). Got ${JSON.stringify(e)}`)}findAndReturnTokens(e,t){return VW.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),this.ValueSchema.findAndReturnTokens(e,t),t}}VW.prim="big_map";class qW extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="OrValidationError"}}class KW extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Encode(e){const t=e[e.length-1],r=this.createToken(this.val.args[0],this.idx);let n=1;r instanceof KW&&(n=Object.keys(r.ExtractSchema()).length);const i=this.createToken(this.val.args[1],this.idx+n);if(String(r.annot())!==String(t)||r instanceof KW){if(String(i.annot())!==String(t)||i instanceof KW){if(r instanceof KW){const t=r.Encode(e);if(t)return{prim:"Left",args:[t]}}if(i instanceof KW){const t=i.Encode(e);if(t)return{prim:"Right",args:[t]}}return null}return e.pop(),{prim:"Right",args:[i.Encode(e)]}}return e.pop(),{prim:"Left",args:[r.Encode(e)]}}ExtractSignature(){const e=this.createToken(this.val.args[0],this.idx);let t=1;e instanceof KW&&(t=Object.keys(e.ExtractSchema()).length);const r=this.createToken(this.val.args[1],this.idx+t),n=[];if(e instanceof KW)n.push(...e.ExtractSignature());else for(const i of e.ExtractSignature())n.push([e.annot(),...i]);if(r instanceof KW)n.push(...r.ExtractSignature());else for(const i of r.ExtractSignature())n.push([r.annot(),...i]);return n}EncodeObject(e,t){this.validateJavascriptObject(e);const r=Object.keys(e)[0],n=this.createToken(this.val.args[0],this.idx);let i=1;n instanceof KW&&(i=Object.keys(n.ExtractSchema()).length);const o=this.createToken(this.val.args[1],this.idx+i);if(String(n.annot())!==String(r)||n instanceof KW){if(String(o.annot())!==String(r)||o instanceof KW){if(n instanceof KW){const r=n.EncodeObject(e,t);if(r)return{prim:"Left",args:[r]}}if(o instanceof KW){const r=o.EncodeObject(e,t);if(r)return{prim:"Right",args:[r]}}return null}return{prim:"Right",args:[o.EncodeObject(e[r],t)]}}return{prim:"Left",args:[n.EncodeObject(e[r],t)]}}validateJavascriptObject(e){if("object"!==typeof e||Array.isArray(e)||null===e||1!==Object.keys(e).length)throw new qW(e,this,`EncodeObject expects an object with a single key but got: ${JSON.stringify(e)}`)}Execute(e,t){const r=this.createToken(this.val.args[0],this.idx);let n=1;r instanceof KW&&(n=Object.keys(r.ExtractSchema()).length);const i=this.createToken(this.val.args[1],this.idx+n);if("Right"===e.prim)return i instanceof KW?i.Execute(e.args[0],t):{[i.annot()]:i.Execute(e.args[0],t)};if("Left"===e.prim)return r instanceof KW?r.Execute(e.args[0],t):{[r.annot()]:r.Execute(e.args[0],t)};throw new qW(e,this,`Was expecting Left or Right prim but got: ${JSON.stringify(e.prim)}`)}traversal(e,t,r){const n=this.createToken(this.val.args[0],this.idx);let i,o=1;n instanceof KW?(i=e(n),o=Object.keys(n.ExtractSchema()).length):i={[n.annot()]:e(n)};const a=this.createToken(this.val.args[1],this.idx+o);let s;s=a instanceof KW?t(a):{[a.annot()]:t(a)};return r(i,s)}ExtractSchema(){return this.traversal((e=>e.ExtractSchema()),(e=>e.ExtractSchema()),((e,t)=>Object.assign(Object.assign({},e),t)))}generateSchema(){return{__michelsonType:KW.prim,schema:this.traversal((e=>e instanceof KW?e.generateSchema().schema:e.generateSchema()),(e=>e instanceof KW?e.generateSchema().schema:e.generateSchema()),((e,t)=>Object.assign(Object.assign({},e),t)))}}findToken(e){const t=this.createToken(this.val.args[0],this.idx);let r=1;t instanceof KW&&(r=Object.keys(t.ExtractSchema()).length);const n=this.createToken(this.val.args[1],this.idx+r);if(String(t.annot())===String(e)&&!(t instanceof KW)&&t instanceof $W)return t;if(String(n.annot())===String(e)&&!(n instanceof KW)&&n instanceof $W)return n;if(t instanceof KW){const r=t.findToken(e);if(r)return r}if(n instanceof KW){const t=n.findToken(e);if(t)return t}return null}compare(e,t){const r=Object.keys(e)[0];if(r!==Object.keys(t)[0]){return JSON.stringify(this.EncodeObject(e))r.findAndReturnTokens(e,t)),(r=>r.findAndReturnTokens(e,t)),((e,t)=>Object.assign(Object.assign({},e),t))),t}}KW.prim="or";class WW extends Ja{constructor(e){super(e),this.message=e,this.name="TokenArgumentValidationError"}}class GW extends Ja{constructor(e,t){super(),this.val1=e,this.val2=t,this.name="TokenComparisonError",this.message=`Tokens ${JSON.stringify(e)} and ${JSON.stringify(t)} are not comparable`}}function ZW(e,t=YW.prim){if(Array.isArray(e))return ZW({prim:t,args:e},t);if(void 0===e.args)throw new WW(`The value ${JSON.stringify(e)} is an invalid PairToken with no arguments, a pair must have two or more arguments.`);return e.args.length>2?[e.args[0],{prim:t,args:e.args.slice(1)}]:[e.args[0],e.args[1]]}class YW extends $W{constructor(e,t,r){super(Array.isArray(e)?{prim:YW.prim,args:e}:e.prim?e:{prim:YW.prim,args:e},t,r)}args(){return ZW(this.val)}tokens(){let e=0;return this.args().map((t=>{const r=this.createToken(t,this.idx+e);return r instanceof YW?e+=Object.keys(r.ExtractSchema()).length:e++,r}))}Encode(e){return{prim:"Pair",args:this.tokens().map((t=>t.Encode(e)))}}ExtractSignature(){const e=this.args(),t=this.createToken(e[0],this.idx);let r=1;t instanceof KW&&(r=Object.keys(t.ExtractSchema()).length);const n=this.createToken(e[1],this.idx+r),i=[];for(const o of t.ExtractSignature())for(const e of n.ExtractSignature())i.push([...o,...e]);return i}ToBigMapKey(e){return{key:this.EncodeObject(e),type:this.typeWithoutAnnotations()}}ToKey(e){return this.Execute(e)}EncodeObject(e,t){const[r,n]=this.tokens();let i,o;return i=r instanceof YW&&!r.hasAnnotations()?e:e[r.annot()],o=n instanceof YW&&!n.hasAnnotations()?e:e[n.annot()],{prim:"Pair",args:[r.EncodeObject(i,t),n.EncodeObject(o,t)]}}traversal(e,t){const r=this.args(),n=this.createToken(r[0],this.idx);let i,o=1;n instanceof YW&&!n.hasAnnotations()?(i=e(n),n instanceof YW&&(o=Object.keys(n.ExtractSchema()).length)):i={[n.annot()]:e(n)};const a=this.createToken(r[1],this.idx+o);let s;s=a instanceof YW&&!a.hasAnnotations()?t(a):{[a.annot()]:t(a)};return Object.assign(Object.assign({},i),s)}Execute(e,t){const r=ZW(e,"Pair");return this.traversal((e=>e.Execute(r[0],t)),(e=>e.Execute(r[1],t)))}ExtractSchema(){return this.traversal((e=>e.ExtractSchema()),(e=>e.ExtractSchema()))}generateSchema(){return{__michelsonType:YW.prim,schema:this.traversal((e=>e instanceof YW&&!e.hasAnnotations()?e.generateSchema().schema:e.generateSchema()),(e=>e instanceof YW&&!e.hasAnnotations()?e.generateSchema().schema:e.generateSchema()))}}compare(e,t){const[r,n]=this.tokens(),i=(e,t)=>e instanceof YW&&!e.hasAnnotations()?t:t[e.annot()];if(r instanceof $W&&n instanceof $W){const o=r.compare(i(r,e),i(r,t));return 0===o?n.compare(i(n,e),i(n,t)):o}throw new GW(e,t)}findAndReturnTokens(e,t){return YW.prim===e&&t.push(this),this.tokens().map((r=>r.findAndReturnTokens(e,t))),t}}YW.prim="pair";class XW extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="NatValidationError"}}class JW extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return new Us(e[Object.keys(e)[0]])}Encode(e){const t=e.pop();return this.validate(t),{int:new Us(t).toFixed()}}validate(e){const t=new Us(e);if(t.isNaN())throw new XW(e,this,`Value is not a number: ${JSON.stringify(e)}`);if(t.isNegative())throw new XW(e,this,`Value cannot be negative: ${JSON.stringify(e)}`)}EncodeObject(e,t){return this.validate(e),t&&t[JW.prim]?t[JW.prim](e):{int:new Us(e).toFixed()}}ExtractSchema(){return JW.prim}generateSchema(){return{__michelsonType:JW.prim,schema:JW.prim}}ToBigMapKey(e){return{key:{int:String(e)},type:{prim:JW.prim}}}ToKey({int:e}){return new Us(e)}compare(e,t){const r=Number(e),n=Number(t);return r===n?0:re.startsWith("tz"),n=r(e),i=r(t);return n&&!i?-1:i&&!n?1:super.compare(e,t)}findAndReturnTokens(e,t){return tG.prim===e&&t.push(this),t}}tG.prim="address";class rG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="MapValidationError"}}class nG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get ValueSchema(){return this.createToken(this.val.args[1],0)}get KeySchema(){return this.createToken(this.val.args[0],0)}validate(e){if(!BW.isMichelsonMap(e))throw new rG(e,this,`Value ${JSON.stringify(e)} is not a valid MichelsonMap`)}Execute(e,t){const r=new BW(this.val);return e.forEach((e=>{r.set(this.KeySchema.ToKey(e.args[0]),this.ValueSchema.Execute(e.args[1],t))})),r}objLitToMichelsonMap(e){return e instanceof BW?e:"object"===typeof e?0===Object.keys(e).length?new BW:BW.fromLiteral(e):e}Encode(e){const t=this.objLitToMichelsonMap(e.pop());return this.validate(t),Array.from(t.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(t.get(e))]})))}EncodeObject(e,t){const r=this.objLitToMichelsonMap(e);return this.validate(r),t&&t[nG.prim]?t[nG.prim](r):Array.from(r.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(r.get(e))]})))}ExtractSchema(){return{map:{key:this.KeySchema.ExtractSchema(),value:this.ValueSchema.ExtractSchema()}}}generateSchema(){return{__michelsonType:nG.prim,schema:{key:this.KeySchema.generateSchema(),value:this.ValueSchema.generateSchema()}}}findAndReturnTokens(e,t){return nG.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),this.ValueSchema.findAndReturnTokens(e,t),t}}nG.prim="map";class iG extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return"true"===String(e.prim).toLowerCase()}Encode(e){return{prim:e.pop()?"True":"False"}}EncodeObject(e,t){return t&&t[iG.prim]?t[iG.prim](e):{prim:e?"True":"False"}}ExtractSchema(){return iG.prim}generateSchema(){return{__michelsonType:iG.prim,schema:iG.prim}}ToBigMapKey(e){return{key:this.EncodeObject(e),type:{prim:iG.prim}}}ToKey(e){return this.EncodeObject(e)}compare(e,t){return e&&t||!e&&!t?0:e?1:-1}findAndReturnTokens(e,t){return iG.prim===e&&t.push(this),t}}iG.prim="bool";class oG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="TxRollupL2AddressValidationError"}}class aG extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}ToBigMapKey(e){return{key:{bytes:function(e){const t=Xa().decode(e);return kc(t.slice(3,42))}(e)},type:{prim:"bytes"}}}validate(e){if(oc(e)!==Zs.VALID)throw new oG(e,this,`tx_rollup_l2_address is not valid: ${JSON.stringify(e)}`)}Encode(e){const t=e.pop();if(!t)throw new oG(t,this,`arg missing to encode: this -> "${JSON.stringify(t)}"`);return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[aG.prim]?t[aG.prim](e):{string:e}}Execute(e){if(e.string)return e.string;if(!e.bytes)throw new oG(e,this,`value cannot be missing string and byte value. must have one ${JSON.stringify(e)}`);return wc(e.bytes)}ExtractSchema(){return aG.prim}generateSchema(){return{__michelsonType:aG.prim,schema:aG.prim}}ToKey({bytes:e,string:t}){if(t)return t;if(!e)throw new oG(e,this,`value cannot be missing string and byte value. must have one: bytes = ${JSON.stringify(e)}`);return wc(e)}findAndReturnTokens(e,t){return aG.prim===e&&t.push(this),t}}aG.prim="tx_rollup_l2_address";class sG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ContractValidationError"}}class cG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(oc(e)!==Zs.VALID)throw new sG(e,this,`Value ${JSON.stringify(e)} is not a valid contract address.`);return null}Execute(e){if(e.string)return e.string;if(!e.bytes)throw new sG(e,this,`Value ${JSON.stringify(e)} is not a valid contract address. must contain bytes or string.`);return bc(e.bytes)}Encode(e){const t=e.pop();return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[cG.prim]?t[cG.prim](e):{string:e}}ExtractSchema(){return cG.prim}generateSchema(){const e=this.createToken(this.val.args[0],0);return{__michelsonType:cG.prim,schema:{parameter:this.val.args[0]?e.generateSchema():{}}}}findAndReturnTokens(e,t){return cG.prim===e&&t.push(this),t}}cG.prim="contract";class lG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ListValidationError"}}class uG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueSchema(){return this.createToken(this.val.args[0],this.idx)}validate(e){if(!Array.isArray(e))throw new lG(e,this,`Value ${JSON.stringify(e)} is not a valid array`)}Encode(e){const t=e.pop();this.validate(t);const r=this.createToken(this.val.args[0],0);return t.reduce(((e,t)=>[...e,r.EncodeObject(t)]),[])}Execute(e,t){const r=this.createToken(this.val.args[0],0);return this.validate(e),e.reduce(((e,n)=>[...e,r.Execute(n,t)]),[])}EncodeObject(e,t){const r=this.createToken(this.val.args[0],0);return this.validate(e),t&&t[uG.prim]?t[uG.prim](e):e.reduce(((e,t)=>[...e,r.EncodeObject(t)]),[])}ExtractSchema(){return{[uG.prim]:this.valueSchema.ExtractSchema()}}generateSchema(){return{__michelsonType:uG.prim,schema:this.valueSchema.generateSchema()}}findAndReturnTokens(e,t){return uG.prim===e&&t.push(this),this.createToken(this.val.args[0],this.idx).findAndReturnTokens(e,t),t}}uG.prim="list";class dG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="MutezValidationError"}}class hG extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return new Us(e[Object.keys(e)[0]])}ExtractSchema(){return hG.prim}generateSchema(){return{__michelsonType:hG.prim,schema:hG.prim}}validate(e){if(new Us(e).isNaN())throw new dG(e,this,`Value is not a number: ${e}`)}Encode(e){const t=e.pop();return this.validate(t),{int:String(t).toString()}}EncodeObject(e,t){return this.validate(e),t&&t[hG.prim]?t[hG.prim](e):{int:String(e).toString()}}ToBigMapKey(e){return{key:{int:String(e)},type:{prim:hG.prim}}}ToKey({int:e}){return e}compare(e,t){const r=Number(e),n=Number(t);return r===n?0:rthis.KeySchema.compare(e,t))).reduce(((e,t)=>[...e,this.KeySchema.EncodeObject(t)]),[])}Execute(e,t){return e.reduce(((e,r)=>[...e,this.KeySchema.Execute(r,t)]),[])}EncodeObject(e,t){return this.validate(e),t&&t[OG.prim]?t[OG.prim](e):e.sort(((e,t)=>this.KeySchema.compare(e,t))).reduce(((e,t)=>[...e,this.KeySchema.EncodeObject(t)]),[])}ExtractSchema(){return OG.prim}generateSchema(){return{__michelsonType:OG.prim,schema:this.KeySchema.generateSchema()}}findAndReturnTokens(e,t){return OG.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),t}}OG.prim="set";class CG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChainIDValidationError"}}class jG extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(ac(e)!==Zs.VALID)throw new CG(e,this,`Value ${JSON.stringify(e)} is not a valid ChainID`)}Execute(e){return e[Object.keys(e)[0]]}ExtractSchema(){return jG.prim}generateSchema(){return{__michelsonType:jG.prim,schema:jG.prim}}Encode(e){const t=e.pop();return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[jG.prim]?t[jG.prim](e):{string:e}}ToKey({string:e}){return e}ToBigMapKey(e){return{key:{string:e},type:{prim:jG.prim}}}findAndReturnTokens(e,t){return jG.prim===e&&t.push(this),t}}jG.prim="chain_id";class RG extends Ja{constructor(){super(),this.name="TicketEncodeError",this.message="Tickets cannot be sent to the blockchain; they are created on-chain"}}const IG={prim:"contract"},MG={prim:"int"};class LG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueToken(){return this.createToken(this.val.args[0],this.idx)}Encode(e){throw new RG}EncodeObject(e,t){if(t&&t[LG.prim])return t[LG.prim](e,this.val);throw new RG}Execute(e,t){if(t&&t[LG.prim])return t[LG.prim](e,this.val);const r=this.createToken(IG,this.idx),n=this.valueToken,i=this.createToken(MG,this.idx);return void 0===e.args[2]&&void 0!==e.args[1].args?{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1].args[0],t),amount:i.Execute(e.args[1].args[1],t)}:{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1],t),amount:i.Execute(e.args[2],t)}}ExtractSchema(){return{ticketer:cG.prim,value:this.valueToken.ExtractSchema(),amount:yG.prim}}generateSchema(){return{__michelsonType:LG.prim,schema:{value:this.valueToken.generateSchema(),ticketer:{__michelsonType:cG.prim,schema:cG.prim},amount:{__michelsonType:yG.prim,schema:yG.prim}}}}findAndReturnTokens(e,t){return LG.prim===e&&t.push(this),this.valueToken.findAndReturnTokens(e,t),t}}LG.prim="ticket";class NG extends Ja{constructor(){super(),this.name="TicketDeprecatedEncodeError",this.message="Ticket_deprecated cannot be sent to the blockchain; they are created on-chain"}}const DG={prim:"contract"},zG={prim:"int"};class BG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueToken(){return this.createToken(this.val.args[0],this.idx)}Encode(e){throw new NG}EncodeObject(e,t){if(t&&t[BG.prim])return t[BG.prim](e,this.val);throw new NG}Execute(e,t){if(t&&t[BG.prim])return t[BG.prim](e,this.val);const r=this.createToken(DG,this.idx),n=this.valueToken,i=this.createToken(zG,this.idx);return void 0===e.args[2]&&void 0!==e.args[1].args?{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1].args[0],t),amount:i.Execute(e.args[1].args[1],t)}:{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1],t),amount:i.Execute(e.args[2],t)}}ExtractSchema(){return{ticketer:cG.prim,value:this.valueToken.ExtractSchema(),amount:yG.prim}}generateSchema(){return{__michelsonType:BG.prim,schema:{value:this.valueToken.generateSchema(),ticketer:{__michelsonType:cG.prim,schema:cG.prim},amount:{__michelsonType:yG.prim,schema:yG.prim}}}}findAndReturnTokens(e,t){return BG.prim===e&&t.push(this),this.valueToken.findAndReturnTokens(e,t),t}}BG.prim="ticket_deprecated";class UG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="NeverTokenError"}}class FG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Encode(e){const t=e.pop();throw new UG(t,this,`Assigning a value to the type never is forbidden. Trying to assign ${JSON.stringify(t)}.`)}EncodeObject(e,t){if(t&&t[FG.prim])return t[FG.prim](e);throw new UG(e,this,`Assigning a value to the type never is forbidden. Trying to assign ${JSON.stringify(e)}.`)}Execute(e){throw new UG(e,this,`There is no literal value for the type never. Trying to execute ${JSON.stringify(e)}.`)}ExtractSchema(){return FG.prim}generateSchema(){return{__michelsonType:FG.prim,schema:FG.prim}}findAndReturnTokens(e,t){return FG.prim===e&&t.push(this),t}}FG.prim="never";class $G extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingStateValidationError"}}class HG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}isValid(e){return"object"===typeof e&&0===Object.keys(e).length}Execute(e,t){if(t&&t[HG.prim])return t[HG.prim](e,this.val);if("int"in e)return e.int;throw new $G(e,this,`Sapling state is expecting an object with an int property. Got ${JSON.stringify(e)}`)}Encode(e){const t=e.pop();if(this.isValid(t))return[];throw new $G(t,this,`Invalid sapling_state. Received: ${JSON.stringify(t)} while expecting: {}`)}EncodeObject(e,t){if(t&&t[HG.prim])return t[HG.prim](e);if(this.isValid(e))return[];throw new $G(e,this,`Invalid sapling_state. Received: ${JSON.stringify(e)} while expecting: {}`)}ExtractSchema(){return{[HG.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:HG.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return HG.prim===e&&t.push(this),t}}HG.prim="sapling_state";class VG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingTransactionValidationError"}}class qG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){throw new VG(e,this,`There is no literal value for the sapling_transaction type. Got: ${JSON.stringify(e)}.`)}validateBytes(e){const t=/^(0x|0X)?([0-9a-fA-F]*$)/.exec(e);if(t&&t[2].length%2===0)return t[2];throw new VG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.validateBytes(this.convertUint8ArrayToHexString(t)),{bytes:String(t).toString()}}EncodeObject(e,t){return e=this.validateBytes(this.convertUint8ArrayToHexString(e)),t&&t[qG.prim]?t[qG.prim](e):{bytes:String(e).toString()}}ExtractSchema(){return{[qG.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:qG.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return qG.prim===e&&t.push(this),t}}qG.prim="sapling_transaction";class KG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingTransactionDeprecatedValidationError"}}class WG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){throw new KG(e,this,`There is no literal value for the sapling_transaction_deprecated type. Got: ${JSON.stringify(e)}.`)}validateBytes(e){const t=/^(0x|0X)?([0-9a-fA-F]*$)/.exec(e);if(t&&t[2].length%2===0)return t[2];throw new KG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.validateBytes(this.convertUint8ArrayToHexString(t)),{bytes:String(t).toString()}}EncodeObject(e,t){return e=this.validateBytes(this.convertUint8ArrayToHexString(e)),t&&t[WG.prim]?t[WG.prim](e):{bytes:String(e).toString()}}ExtractSchema(){return{[WG.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:WG.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return WG.prim===e&&t.push(this),t}}WG.prim="sapling_transaction_deprecated";class GG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381frValidationError"}}class ZG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new GG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return"number"===typeof t?{int:t.toString()}:(t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t})}EncodeObject(e,t){return t&&t[ZG.prim]?t[ZG.prim](e):"number"===typeof e?{int:e.toString()}:(e=this.convertUint8ArrayToHexString(e),this.validate(e),{bytes:e})}Execute(e){return e.bytes}ExtractSchema(){return ZG.prim}generateSchema(){return{__michelsonType:ZG.prim,schema:ZG.prim}}findAndReturnTokens(e,t){return ZG.prim===e&&t.push(this),t}}ZG.prim="bls12_381_fr";class YG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381g1ValidationError"}}class XG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new YG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[XG.prim]?t[XG.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return XG.prim}generateSchema(){return{__michelsonType:XG.prim,schema:XG.prim}}findAndReturnTokens(e,t){return XG.prim===e&&t.push(this),t}}XG.prim="bls12_381_g1";class JG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381g2ValidationError"}}class QG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new JG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[QG.prim]?t[QG.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return QG.prim}generateSchema(){return{__michelsonType:QG.prim,schema:QG.prim}}findAndReturnTokens(e,t){return QG.prim===e&&t.push(this),t}}QG.prim="bls12_381_g2";class eZ extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChestValidationError"}}class tZ extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!=0)throw new eZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[tZ.prim]?t[tZ.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return tZ.prim}generateSchema(){return{__michelsonType:tZ.prim,schema:tZ.prim}}findAndReturnTokens(e,t){return tZ.prim===e&&t.push(this),t}}tZ.prim="chest";class rZ extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChestKeyValidationError"}}class nZ extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new rZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[nZ.prim]?t[nZ.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return nZ.prim}generateSchema(){return{__michelsonType:nZ.prim,schema:nZ.prim}}findAndReturnTokens(e,t){return nZ.prim===e&&t.push(this),t}}nZ.prim="chest_key";class iZ extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="GlobalConstantEncodingError"}}class oZ extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="GlobalConstantDecodingError"}}class aZ extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e,t){if(t&&t[aZ.prim])return t[aZ.prim](e,this.val);throw new oZ(e,this,`Unable to decode a value represented by a global constants. Please provide an expanded script to the Michelson-Encoder or semantics for the decoding. The following global constant hash was encountered: ${this.val.args[0].string}.`)}Encode(e){throw new iZ(e,this,`Unable to encode a script containing global constants. Please provide an expanded script to the Michelson-Encoder. The following global constant hash was encountered: ${this.val.args[0].string}.`)}EncodeObject(e,t){if(t&&t[aZ.prim])return t[aZ.prim](e);throw new iZ(e,this,`Unable to encode a script containing global constants. Please provide an expanded script to the Michelson-Encoder. The following global constant hash was encountered: ${this.val.args[0].string}.`)}ExtractSchema(){return aZ.prim}generateSchema(){return{__michelsonType:aZ.prim,schema:{hash:this.val.args[0].string}}}findAndReturnTokens(e,t){return aZ.prim===e&&t.push(this),t}}aZ.prim="constant";const sZ=[YW,JW,QW,VW,tG,aG,nG,iG,KW,cG,uG,hG,pG,mG,gG,yG,bG,xG,SG,EG,AG,PG,OG,jG,LG,BG,FG,HG,qG,WG,ZG,XG,QG,tZ,nZ,aZ];class cZ extends Ja{constructor(e,t){super(e),this.message=e,this.data=t,this.name="Invalid token error"}}function lZ(e,t){if(Array.isArray(e))return new YW(e,t,lZ);const r=sZ.find((t=>t.prim===e.prim));if(!r)throw new cZ(`Malformed data: ${JSON.stringify(e)}. Expected a value with a valid prim property`,e);return new r(e,t,lZ)}class uZ extends us{constructor(e,t,r,n){super(e,t,r,n),this.viewName=e,this.sigs=t,this.args=r,this.cause=n,this.name="ParameterEncodingError",this.message=`Could not encode parameter ${JSON.stringify(r)} received for name "${e}" expecting one of the following signatures ${JSON.stringify(t)}`}}class dZ extends Ja{constructor(e,t){super(),this.script=e,this.reason=t,this.name="InvalidScriptError";let r="Invalid on-chain view found in the following script.";t&&(r+=` Reason: ${t}.`),r+=`Script: ${JSON.stringify(e)}`,this.message=r}}class hZ extends Ja{constructor(e,t){super(),this.script=e,this.reason=t,this.name="InvalidRpcResponseError";let r="Invalid RPC response passed as argument(s).";t&&(r+=` Reason: ${t}.`),r+=` Received: ${JSON.stringify(e)}`,this.message=r}}class fZ extends Ja{constructor(e){super(e),this.message=e,this.name="InvalidBigMapSchemaError"}}class pZ extends Ja{constructor(e,t){super(e),this.message=e,this.value=t,this.name="InvalidBigMapDiffError"}}class mZ extends Ja{constructor(e,t,r,n){super(),this.details=t,this.schema=r,this.value=n,this.name="BigMapEncodingError",this.message=`Unable to encode the big map ${e}. Schema is: ${JSON.stringify(r)}. The ${e} is: ${JSON.stringify(n)}. Error details: ${t}`}}class gZ extends Ja{constructor(e,t,r,n,i){super(),this.details=t,this.schema=r,this.value=n,this.semantics=i,this.name="StorageEncodingError",this.message=`Unable to encode ${e}. The schema is: ${JSON.stringify(r)}, the value is: ${JSON.stringify(n)}.${i?`And the semantic is: ${JSON.stringify(i)}`:""}. Error details: ${t}`}}class vZ extends Ja{constructor(e){super(e),this.message=e,this.name="MissingArgumentError"}}var yZ;const bZ=Symbol.for("taquito-schema-type-symbol");function wZ(e,t=YW.prim){var r,n;if(Array.isArray(e))return wZ({prim:t,args:e},t);const i=e;return i.prim===t&&i.args&&i.args.length>2?Object.assign(Object.assign({},i),{args:[null===(r=i.args)||void 0===r?void 0:r[0],{prim:t,args:null===(n=i.args)||void 0===n?void 0:n.slice(1)}]}):i}function xZ(e,t){if(void 0===e||void 0===t)return e===t;const r=wZ(e),n=wZ(t);return r.prim===n.prim&&(void 0===r.args&&void 0===n.args||void 0!==r.args&&void 0!==n.args&&r.args.length===n.args.length&&r.args.every(((e,t)=>{var r,i;return xZ(e,null!==(i=null===(r=n.args)||void 0===r?void 0:r[t])&&void 0!==i?i:{})})))&&(void 0===r.annots&&void 0===n.annots||void 0!==r.annots&&void 0!==n.annots&&r.annots.length===n.annots.length&&r.annots.every(((e,t)=>{var r;return e===(null===(r=n.annots)||void 0===r?void 0:r[t])})))}class _Z{static isSchema(e){return e&&!0===e[bZ]}static fromRPCResponse(e){if(!e)throw new hZ(e,"the RPC response is empty");if(!e.script)throw new hZ(e,"the RPC response has no script");if(!Array.isArray(e.script.code))throw new hZ(e,"The response.script.code should be an array");let t=e.script.code;for(;1===t.length&&Array.isArray(t[0]);)t=t[0];const r=t.find((e=>"prim"in e&&"storage"===e.prim));if(!r||!Array.isArray(r.args))throw new hZ(e,'The response.script.code has an element of type {prim: "storage"}, but its args is not an array');return new _Z(r.args[0])}isExpressionExtended(e){return"prim"in e&&Array.isArray(e.args)}constructor(e){if(this.val=e,this[yZ]=!0,this.root=lZ(e,0),this.root instanceof VW)this.bigMap=this.root;else if(this.isExpressionExtended(e)&&"pair"===e.prim){const t=e.args[0];this.isExpressionExtended(t)&&"big_map"===t.prim&&(this.bigMap=new VW(t,0,lZ))}}removeTopLevelAnnotation(e){return(this.root instanceof YW||this.root instanceof KW)&&this.root.hasAnnotations()&&"object"===typeof e&&1===Object.keys(e).length?e[Object.keys(e)[0]]:e}Execute(e,t){const r=this.root.Execute(e,t);return this.removeTopLevelAnnotation(r)}Typecheck(e){this.root instanceof VW&&Number.isInteger(Number(e))||this.root instanceof LG&&e.ticketer&&e.value&&e.amount||this.root instanceof BG&&e.ticketer&&e.value&&e.amount||this.root instanceof nG&&this.root.ValueSchema instanceof VW||this.root.EncodeObject(e)}ExecuteOnBigMapDiff(e,t){if(!this.bigMap)throw new fZ("Big map schema is undefined");if(!Array.isArray(e))throw new pZ(`Big map diff must be an array, got: ${JSON.stringify(e)}`,e);const r=e.map((({key:e,value:t})=>({args:[e,t]})));return this.bigMap.Execute(r,t)}ExecuteOnBigMapValue(e,t){if(!this.bigMap)throw new fZ("Big map schema is undefined");return this.bigMap.ValueSchema.Execute(e,t)}EncodeBigMapKey(e){if(!this.bigMap)throw new fZ("Big map schema is undefined");try{return this.bigMap.KeySchema.ToBigMapKey(e)}catch(t){throw new mZ("key",t,this.bigMap.KeySchema,e)}}Encode(e,t){try{return this.root.EncodeObject(e,t)}catch(r){if(r instanceof UW)throw r;throw new gZ("storage object",r,this.root,e,t)}}ExtractSchema(){return this.removeTopLevelAnnotation(this.root.ExtractSchema())}generateSchema(){return this.removeTopLevelAnnotation(this.root.generateSchema())}ComputeState(e,t){if(!this.bigMap)throw new fZ("Big map schema is undefined");const r=e.reduce(((e,t)=>Object.assign(Object.assign({},e),this.ExecuteOnBigMapDiff(t.contents[0].metadata.operation_result.big_map_diff))),{});return Object.assign(Object.assign({},this.Execute(t)),{[this.bigMap.annot()]:r})}FindFirstInTopLevelPair(e,t){return this.findValue(this.root.val,e,t)}findValue(e,t,r){if(xZ(r,e))return t;if(Array.isArray(e)||"pair"===e.prim){const n=wZ(e),i=wZ(t,"Pair");if(void 0===n.args||void 0===i.args)throw new vZ("Tokens have no arguments");if(n.args[0])return this.findValue(n.args[0],i.args[0],r)||this.findValue(n.args[1],i.args[1],r)}}findToken(e){return this.root.findAndReturnTokens(e,[])}}yZ=bZ;class SZ{static fromRPCResponse(e){if(!e)throw new hZ(e,"the RPC response is empty");if(!e.script)throw new hZ(e,"the RPC response has no script");if(!Array.isArray(e.script.code))throw new hZ(e,"The response.script.code should be an array");const t=e.script.code.find((e=>"prim"in e&&"parameter"===e.prim));if(!t)throw new hZ(e,'The response.script.code should have an element of type {prim: "parameter"}');if(!Array.isArray(t.args))throw new hZ(e,'The response.script.code has an element of type {prim: "parameter"}, but its args is not an array');return new SZ(t.args[0])}get isMultipleEntryPoint(){return this.root instanceof KW||this.root instanceof mG&&this.root.subToken()instanceof KW}get hasAnnotation(){return!this.isMultipleEntryPoint||"0"!==Object.keys(this.ExtractSchema())[0]}constructor(e){this.root=lZ(e,0)}Execute(e,t){return this.root.Execute(e,t)}Encode(...e){try{return this.root.Encode(e.reverse())}catch(t){if(t instanceof UW)throw t;throw new uZ("Unable to encode parameter",this.root,e,t)}}EncodeObject(e,t){try{return this.root.EncodeObject(e,t)}catch(r){if(r instanceof UW)throw r;throw new uZ("Unable to encode parameter object",this.root,e,r)}}ExtractSchema(){return this.root.ExtractSchema()}generateSchema(){return this.root.generateSchema()}ExtractSignatures(){return this.root.ExtractSignature()}}class kZ{static fromRPCResponse(e){const t=[],r=e&&e.script&&Array.isArray(e.script.code)&&e.script.code.filter((e=>"view"===e.prim));return r&&r.forEach((e=>{t.push(new kZ(e.args))})),t}constructor(e){if(!e)throw new dZ(e,"the args are not defined");if(4!==e.length)throw new dZ(e,"there should be exactly 4 arguments");if(!("string"in e[0])||!e[0].string)throw new dZ(e,"The first argument should be a string, representing the view name. It should be in the form: { string: 'viewName' }");this.viewName=e[0].string,this.viewArgsType=e[1],this.viewReturnType=e[2],this.instructions=e[3],this.rootArgsType=lZ(this.viewArgsType,0),this.rootReturnType=lZ(this.viewReturnType,0)}encodeViewArgs(e){try{return this.rootArgsType.EncodeObject(e)}catch(t){throw new uZ(this.viewName,void 0,e,t)}}decodeViewResult(e,t){return this.rootReturnType.Execute(e,t)}extractArgsSchema(){return this.rootArgsType.ExtractSchema()}extractResultSchema(){return this.rootReturnType.ExtractSchema()}}class EZ{constructor(e,t){this.tag=e,this.type=t}static fromMichelineValue(e){var t,r;return new EZ(null===(t=e.annots)||void 0===t?void 0:t[0],null===(r=e.args)||void 0===r?void 0:r[0])}static fromRPCResponse(e){const t=[];return e.script.code.forEach((e=>{"prim"in e&&"code"===e.prim&&"args"in e&&e.args&&t.push(...EZ.extractEventsRecursively(e.args))})),EZ.removeDuplicates(t)}static removeDuplicates(e){const t=[];return e.forEach((e=>{const r=t.findIndex((t=>t.tag===e.tag&&xZ(t.type,e.type)));-1===r&&t.push(e)})),t}static extractEventsRecursively(e){return Array.isArray(e)?e.flatMap((e=>EZ.extractEventsRecursively(e))):"prim"in e?"EMIT"===e.prim?[EZ.fromMichelineValue(e)]:"args"in e&&e.args?e.args.flatMap((e=>EZ.extractEventsRecursively(e))):[]:[]}}const AZ=Symbol(),PZ=Symbol("source_reference");class TZ extends Ja{constructor(e,t,r){super(),this.src=e,this.idx=t,this.message=r,this.name="ScanError"}}var OZ;!function(e){e[e.Comment=0]="Comment",e[e.Number=1]="Number",e[e.String=2]="String",e[e.Bytes=3]="Bytes",e[e.Ident=4]="Ident"}(OZ||(OZ={}));const CZ=new RegExp("\\s"),jZ=new RegExp("[:@%_A-Za-z]"),RZ=new RegExp("[@%_\\.A-Za-z0-9]"),IZ=new RegExp("[0-9]"),MZ=new RegExp("[0-9a-fA-F]");function*LZ(e,t=!1){let r=0;for(;r1&&"0x"===e.substring(r,r+2)){for(r+=2;r1&&"/*"===e.substring(r,r+2)){for(r+=2;r1&&"*/"===e.substring(r,r+2));)r++;if(r===e.length)throw new TZ(e,r,"Unterminated C style comment");r+=2,t&&(yield{t:OZ.Comment,v:e.slice(i,r),first:i,last:r})}else{if("("!==n&&")"!==n&&"{"!==n&&"}"!==n&&";"!==n)throw new TZ(e,r,`Invalid character at offset ${r}: \`${n}'`);r++,yield{t:n,v:n,first:i,last:r}}}}const NZ=Symbol("ref_contract");var DZ;!function(e){e.Ps9mPmXa="Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P",e.PtCJ7pwo="PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY",e.PsYLVpVv="PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt",e.PsddFKi3="PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP",e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdoTez="PtEdoTezd3RHSC31mpxxo1npxFjoWWcFgQtxapi51Z8TLu6v6Uq",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangzH="PtHangzHogokSuiMHemCuowEavgYTP8J5qQ9fQS793MHYFpCY3r",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.PsiThaCa="PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakarta="PtJakartaiDz69SfDDLXJSiuZqTSeSKRDbKVZC8MNzJnvRjvnGw",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(DZ||(DZ={}));const zZ=DZ.Psithaca2,BZ={Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P:0,PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY:1,PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt:2,PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP:3,Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd:4,PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU:5,PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS:5,PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb:6,PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo:7,PtEdoTezd3RHSC31mpxxo1npxFjoWWcFgQtxapi51Z8TLu6v6Uq:8,PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA:8,PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i:9,PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV:10,PtHangzHogokSuiMHemCuowEavgYTP8J5qQ9fQS793MHYFpCY3r:11,PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx:11,PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP:12,Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A:12,PtJakartaiDz69SfDDLXJSiuZqTSeSKRDbKVZC8MNzJnvRjvnGw:13,PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY:13,PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg:14,PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW:15,PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc:16,PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1:16,PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf:17,ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK:18};function UZ(e,t){return BZ[e][e+1,t])),i+=s,o+=l;break}case"I":o!==r.length&&(a[1]=r[o++]);break;default:throw new FZ(e,`${e.prim}: unexpected character: ${l}`)}return{r:n(s,c,[0,a]),n:i,an:o}}function KZ(e,t,r,n){const i=t[0];switch(i){case"A":return t.length>1?[{prim:"DUP"},{prim:"DIP",args:[[{prim:"CAR",annots:["@%%"]},KZ(e,t.slice(1),[],n)]]},{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:["%@","%@",...r]}]:n.a;case"D":return t.length>1?[{prim:"DUP"},{prim:"DIP",args:[[{prim:"CDR",annots:["@%%"]},KZ(e,t.slice(1),[],n)]]},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@","%@",...r]}]:n.d;default:throw new FZ(e,`${e.prim}: unexpected character: ${i}`)}}function WZ(e,t){let r=e.length;for(;r>0&&e[r-1]===t;)r--;return e.slice(0,r)}function GZ(e){const t=[],r=[];if(void 0!==e)for(const n of e)(0!==n.length&&"%"===n[0]?t:r).push(n);return{fields:t,rest:r}}function ZZ({prim:e,annots:t,args:r}){return Object.assign(Object.assign({prim:e},t&&{annots:t}),r&&{args:r})}const YZ=/^P[PAI]{3,}R$/,XZ=/^UNP[PAI]{2,}R$/,JZ=/^C[AD]{2,}R$/,QZ=/^SET_C[AD]+R$/,eY=/^MAP_C[AD]+R$/,tY=/^DI{2,}P$/,rY=/^DU+P$/;class nY extends Ja{constructor(e,t){super(),this.token=e,this.message=t,this.name="MichelineParseError"}}class iY extends Ja{constructor(e,t){super(),this.node=e,this.message=t,this.name="JSONParseError"}}const oY=new nY(null,"Unexpected EOF");function aY(e){return e.t===OZ.Ident&&("@"===e.v[0]||"%"===e.v[0]||":"===e.v[0])}const sY=new RegExp("^-?[0-9]+$"),cY=new RegExp("^([0-9a-fA-F]{2})*$");class lY{constructor(e){this.opt=e}expand(e){var t,r,n;if(void 0!==(null===(t=this.opt)||void 0===t?void 0:t.expandGlobalConstant)&&"constant"===e.prim){const t=function(e,t){return void 0!==e.args&&1===e.args.length&&"string"in e.args[0]&&e.args[0].string in t?t[e.args[0].string]:e}(e,this.opt.expandGlobalConstant);return t!==e&&(t[PZ]=Object.assign(Object.assign({},e[PZ]||{first:0,last:0}),{globalConstant:e})),t}if(void 0===(null===(r=this.opt)||void 0===r?void 0:r.expandMacros)||(null===(n=this.opt)||void 0===n?void 0:n.expandMacros)){const t=function(e,t){const r=(null===t||void 0===t?void 0:t.protocol)||zZ;function n(e){return void 0!==e?[{prim:"RENAME",annots:e}]:[]}switch(e.prim){case"CMPEQ":case"CMPNEQ":case"CMPLT":case"CMPGT":case"CMPLE":case"CMPGE":if($Z(e,0))return[{prim:"COMPARE"},ZZ({prim:e.prim.slice(3),annots:e.annots})];break;case"IFEQ":case"IFNEQ":case"IFLT":case"IFGT":case"IFLE":case"IFGE":if($Z(e,2))return[{prim:e.prim.slice(2)},ZZ({prim:"IF",annots:e.annots,args:e.args})];break;case"IFCMPEQ":case"IFCMPNEQ":case"IFCMPLT":case"IFCMPGT":case"IFCMPLE":case"IFCMPGE":if($Z(e,2))return[{prim:"COMPARE"},{prim:e.prim.slice(5)},ZZ({prim:"IF",annots:e.annots,args:e.args})];break;case"FAIL":if($Z(e,0)&&HZ(e))return[{prim:"UNIT"},{prim:"FAILWITH"}];break;case"ASSERT":if($Z(e,0)&&HZ(e))return[{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_EQ":case"ASSERT_NEQ":case"ASSERT_LT":case"ASSERT_GT":case"ASSERT_LE":case"ASSERT_GE":if($Z(e,0)&&HZ(e))return[{prim:e.prim.slice(7)},{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_CMPEQ":case"ASSERT_CMPNEQ":case"ASSERT_CMPLT":case"ASSERT_CMPGT":case"ASSERT_CMPLE":case"ASSERT_CMPGE":if($Z(e,0)&&HZ(e))return[[{prim:"COMPARE"},{prim:e.prim.slice(10)}],{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_NONE":if($Z(e,0)&&HZ(e))return[{prim:"IF_NONE",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_SOME":if($Z(e,0))return[{prim:"IF_NONE",args:[[[{prim:"UNIT"},{prim:"FAILWITH"}]],n(e.annots)]}];break;case"ASSERT_LEFT":if($Z(e,0))return[{prim:"IF_LEFT",args:[n(e.annots),[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_RIGHT":if($Z(e,0))return[{prim:"IF_LEFT",args:[[[{prim:"UNIT"},{prim:"FAILWITH"}]],n(e.annots)]}];break;case"IF_SOME":if($Z(e,2))return[ZZ({prim:"IF_NONE",annots:e.annots,args:[e.args[1],e.args[0]]})];break;case"IF_RIGHT":if($Z(e,2))return[ZZ({prim:"IF_LEFT",annots:e.annots,args:[e.args[1],e.args[0]]})];break;case"CAR":case"CDR":if(void 0===e.args)return e;if($Z(e,1)&&VZ(e,e.args[0])){const t=parseInt(e.args[0].int,10);return ZZ({prim:"GET",args:[{int:"CAR"===e.prim?String(2*t+1):String(2*t)}],annots:e.annots})}}if(YZ.test(e.prim)&&$Z(e,0)){const{fields:t,rest:r}=GZ(e.annots),{r:n}=qZ(e,e.prim.slice(1),t,((e,t,r)=>[...e||[],...t||[],r]));return n.map((([e,t],i)=>{const o=[...WZ(t,null).map((e=>null===e?"%":e)),...0===e&&i===n.length-1?r:[]],a=ZZ({prim:"PAIR",annots:0!==o.length?o:void 0});return 0===e?a:{prim:"DIP",args:1===e?[[a]]:[{int:String(e)},[a]]}}))}if(XZ.test(e.prim)){if(UZ(r,DZ.PtEdo2Zk)&&$Z(e,0)){const{r:t}=qZ(e,e.prim.slice(3),e.annots||[],((e,t,r)=>[r,...t||[],...e||[]]));return t.map((([e,t])=>{const r=[{prim:"DUP"},ZZ({prim:"CAR",annots:null!==t[0]?[t[0]]:void 0}),{prim:"DIP",args:[[ZZ({prim:"CDR",annots:null!==t[1]?[t[1]]:void 0})]]}];return 0===e?r:{prim:"DIP",args:1===e?[[r]]:[{int:String(e)},[r]]}}))}if("UNPAIR"===e.prim)return e;if($Z(e,0)){const{r:t}=qZ(e,e.prim.slice(3),[],((e,t,r)=>[r,...t||[],...e||[]]));return t.map((([e])=>{const t=ZZ({prim:"UNPAIR"});return 0===e?t:{prim:"DIP",args:1===e?[[t]]:[{int:String(e)},[t]]}}))}}if(JZ.test(e.prim)&&$Z(e,0)){const t=[...e.prim.slice(1,e.prim.length-1)];return t.map(((r,n)=>{const i=n===t.length-1?e.annots:void 0;switch(r){case"A":return ZZ({prim:"CAR",annots:i});case"D":return ZZ({prim:"CDR",annots:i});default:throw new FZ(e,`unexpected character: ${r}`)}}))}if(QZ.test(e.prim)&&$Z(e,0)){const{fields:t,rest:r}=GZ(e.annots);if(t.length>1)throw new FZ(e,`unexpected annotation on macro ${e.prim}: ${t}`);const n=0!==t.length?{a:[{prim:"DUP"},{prim:"CAR",annots:t},{prim:"DROP"},{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:[t[0],"%@"]}],d:[{prim:"DUP"},{prim:"CDR",annots:t},{prim:"DROP"},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@",t[0]]}]}:{a:[{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:["%","%@"]}],d:[{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@","%"]}]};return KZ(e,e.prim.slice(5,e.prim.length-1),r,n)}if(eY.test(e.prim)&&$Z(e,1)){const{fields:t}=GZ(e.annots);if(t.length>1)throw new FZ(e,`unexpected annotation on macro ${e.prim}: ${t}`);const r={a:[{prim:"DUP"},{prim:"CDR",annots:["@%%"]},{prim:"DIP",args:[[ZZ({prim:"CAR",annots:0!==t.length?["@"+t[0].slice(1)]:void 0}),e.args[0]]]},{prim:"SWAP"},{prim:"PAIR",annots:[0!==t.length?t[0]:"%","%@"]}],d:[{prim:"DUP"},ZZ({prim:"CDR",annots:0!==t.length?["@"+t[0].slice(1)]:void 0}),e.args[0],{prim:"SWAP"},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@",0!==t.length?t[0]:"%"]}]};return KZ(e,e.prim.slice(5,e.prim.length-1),[],r)}if(tY.test(e.prim)&&$Z(e,1)){let t=0;for(;"I"===e.prim[1+t];)t++;return ZZ({prim:"DIP",args:[{int:String(t)},e.args[0]]})}if(rY.test(e.prim)){let t=0;for(;"U"===e.prim[1+t];)t++;if(UZ(r,DZ.PtEdo2Zk)){if(1===t){if(void 0===e.args)return e;$Z(e,1)&&VZ(e,e.args[0])&&(t=parseInt(e.args[0].int,10))}else $Z(e,0);return 1===t?[ZZ({prim:"DUP",annots:e.annots})]:2===t?[{prim:"DIP",args:[[ZZ({prim:"DUP",annots:e.annots})]]},{prim:"SWAP"}]:[{prim:"DIP",args:[{int:String(t-1)},[ZZ({prim:"DUP",annots:e.annots})]]},{prim:"DIG",args:[{int:String(t)}]}]}if(1===t)return e;if($Z(e,0))return ZZ({prim:"DUP",args:[{int:String(t)}],annots:e.annots})}return e}(e,this.opt);return t!==e&&(t[PZ]=Object.assign(Object.assign({},e[PZ]||{first:0,last:0}),{macro:e})),t}return e}parseListExpr(e,t){var r;const n={first:t.first,last:t.last},i="("===t.t;let o;if(i){if(o=e.next(),o.done)throw oY;n.last=o.value.last}else o={value:t};if(o.value.t!==OZ.Ident)throw new nY(o.value,`not an identifier: ${o.value.v}`);const a={prim:o.value.v,[PZ]:n};for(;;){const t=e.next();if(t.done){if(i)throw oY;break}if(")"===t.value.t){if(!i)throw new nY(t.value,"unexpected closing bracket");n.last=t.value.last;break}if(aY(t.value))a.annots=a.annots||[],a.annots.push(t.value.v),n.last=t.value.last;else{a.args=a.args||[];const i=this.parseExpr(e,t.value);n.last=(null===(r=i[PZ])||void 0===r?void 0:r.last)||n.last,a.args.push(i)}}return this.expand(a)}parseArgs(e,t){var r;const n={first:t.first,last:t.last},i={prim:t.v,[PZ]:n};for(;;){const t=e.next();if(t.done||"}"===t.value.t||";"===t.value.t)return[i,t];if(aY(t.value))n.last=t.value.last,i.annots=i.annots||[],i.annots.push(t.value.v);else{const o=this.parseExpr(e,t.value);n.last=(null===(r=o[PZ])||void 0===r?void 0:r.last)||n.last,i.args=i.args||[],i.args.push(o)}}}parseSequenceExpr(e,t){var r,n;const i={first:t.first,last:t.last},o=[];o[PZ]=i;const a="{"===t.t;let s="{"===t.t?null:{value:t};for(;;){if(null===s&&(s=e.next(),s.done||(i.last=s.value.last)),s.done){if(a)throw oY;return o}if("}"===s.value.t){if(a)return o;throw new nY(s.value,"unexpected closing bracket")}if(s.value.t===OZ.Ident){const[t,n]=this.parseArgs(e,s.value);i.last=(null===(r=t[PZ])||void 0===r?void 0:r.last)||i.last,o.push(this.expand(t)),s=n}else{const t=this.parseExpr(e,s.value);i.last=(null===(n=t[PZ])||void 0===n?void 0:n.last)||i.last,o.push(t),s=null}null===s&&(s=e.next(),s.done||(i.last=s.value.last)),s.done||";"!==s.value.t||(s=null)}}parseExpr(e,t){switch(t.t){case OZ.Ident:return this.expand({prim:t.v,[PZ]:{first:t.first,last:t.last}});case OZ.Number:return{int:t.v,[PZ]:{first:t.first,last:t.last}};case OZ.String:return{string:JSON.parse(t.v),[PZ]:{first:t.first,last:t.last}};case OZ.Bytes:return{bytes:t.v.slice(2),[PZ]:{first:t.first,last:t.last}};case"{":return this.parseSequenceExpr(e,t);default:return this.parseListExpr(e,t)}}parseSequence(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=LZ(e),r=t.next();return r.done?null:this.parseSequenceExpr(t,r.value)}parseList(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=LZ(e),r=t.next();return r.done?null:this.parseListExpr(t,r.value)}parseMichelineExpression(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=LZ(e),r=t.next();return r.done?null:this.parseExpr(t,r.value)}parseScript(e){return this.parseSequence(e)}parseData(e){return this.parseList(e)}parseJSON(e){if("object"!==typeof e)throw new TypeError(`object type was expected, got ${typeof e} instead`);if(Array.isArray(e)){const t=[];for(const r of e){if(null===r||"object"!==typeof r)throw new iY(r,`unexpected sequence element: ${r}`);t.push(this.parseJSON(r))}return t}if("prim"in e){const t=e;if("string"===typeof t.prim&&(void 0===t.annots||Array.isArray(t.annots))&&(void 0===t.args||Array.isArray(t.args))){const e={prim:t.prim};if(void 0!==t.annots){for(const e of t.annots)if("string"!==typeof e)throw new iY(e,`string expected: ${e}`);e.annots=t.annots}if(void 0!==t.args){e.args=[];for(const r of t.args){if(null===r||"object"!==typeof r)throw new iY(r,`unexpected argument: ${r}`);e.args.push(this.parseJSON(r))}}return this.expand(e)}throw new iY(e,`malformed prim expression: ${e}`)}if("string"in e){if("string"===typeof e.string)return{string:e.string};throw new iY(e,`malformed string literal: ${e}`)}if("int"in e){if("string"===typeof e.int&&sY.test(e.int))return{int:e.int};throw new iY(e,`malformed int literal: ${e}`)}if("bytes"in e){if("string"===typeof e.bytes&&cY.test(e.bytes))return{bytes:e.bytes};throw new iY(e,`malformed bytes literal: ${e}`)}throw new iY(e,`unexpected object: ${e}`)}}const uY=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],dY=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];class hY extends Ja{constructor(e){super(),this.message=e,this.name="Base58DecodingError"}}function fY(e){const t=(e.length+9)%64,r=0===t?0:64-t;if(e.length>268435455)throw new ls("",`: Invalid length ${e.length} is too big -- SHA-256.`);const n=e.length<<3,i=[...e,128,...new Array(r).fill(0),0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n];function o(e,t){return e>>>t|e<<32-t}const a=[...uY],s=new Array(64),c=new Array(8);for(let u=0;u>>3,r=o(s[t-2],17)^o(s[t-2],19)^s[t-2]>>>10;s[t]=(0|r)+s[t-7]+e+s[t-16]|0,t++}for(let r=0;r<8;r++)c[r]=a[r];for(let r=0;r<64;r++){const e=o(c[0],2)^o(c[0],13)^o(c[0],22),t=o(c[4],6)^o(c[4],11)^o(c[4],25),n=c[7]+t+(c[4]&c[5]^~c[4]&c[6])+dY[r]+s[r]|0,i=e+(c[0]&c[1]^c[0]&c[2]^c[1]&c[2])|0;c[7]=c[6],c[6]=c[5],c[5]=c[4],c[4]=c[3]+n|0,c[3]=c[2],c[2]=c[1],c[1]=c[0],c[0]=n+i|0}for(let r=0;r<8;r++)a[r]=a[r]+c[r]|0}const l=[];for(const u of a)l.push(u>>24&255),l.push(u>>16&255),l.push(u>>8&255),l.push(255&u);return l}const pY=[0,1,2,3,4,5,6,7,8,-1,-1,-1,-1,-1,-1,-1,9,10,11,12,13,14,15,16,-1,17,18,19,20,21,-1,22,23,24,25,26,27,28,29,30,31,32,-1,-1,-1,-1,-1,-1,33,34,35,36,37,38,39,40,41,42,43,-1,44,45,46,47,48,49,50,51,52,53,54,55,56,57];function mY(e,t){const r=e.charCodeAt(t)-49;if(r>=pY.length||-1===pY[r])throw new hY(`Unexpected character at position ${t}: ${e[t]}`);return pY[r]}function gY(e){const t=function(e){const t=[];let r=0;for(;r0;)t.push(0);return t.reverse()}(e);if(t.length<4)throw new hY(`Data is too short ${t.length}`);const r=t.slice(0,t.length-4),n=t.slice(t.length-4),i=fY(fY(r));if(n[0]!==i[0]||n[1]!==i[1]||n[2]!==i[2]||n[3]!==i[3])throw new hY("Invalid checksum");return r}class vY extends Qa{constructor(e){super(),this.message=e,this.name="InvalidMichelsonError"}}class yY extends Qa{constructor(e){super(),this.message=e,this.name="InvalidTypeExpressionError"}}class bY extends Qa{constructor(e){super(),this.message=e,this.name="InvalidDataExpressionError"}}class wY extends Qa{constructor(e){super(),this.entrypoint=e,this.name="InvalidEntrypointError",this.message=`Contract has no entrypoint named: "${e}"`}}class xY extends Ja{constructor(e){super(),this.message=e,this.name="LongIntegerError"}}class _Y extends Ja{constructor(e,t){super(),this.val=e,this.message=t,this.name="MichelsonError"}}class SY extends _Y{constructor(e,t,r){super(e,t),this.val=e,this.message=t,this.name="MichelsonTypeError",void 0!==r&&(this.data=r)}}class kY{append(e){let t=0;for(;0!==e||t57)throw new xY(`unexpected character in integer constant "${e[t]}"`);this.append(r-48)}}else e<0?(this.neg=!0,this.append(-e)):this.append(e)}cmp(e){if(this.neg!==e.neg)return(e.neg?1:0)-(this.neg?1:0);{let t=0;if(this.buf.length!==e.buf.length)t=this.buf.length=0&&this.buf[r]===e.buf[r];)r--;t=r<0?0:this.buf[r]=0}catch(Yr){return!1}}const TY=/^(@%|@%%|%@|[@:%]([_0-9a-zA-Z][_0-9a-zA-Z.%@]*)?)$/;function OY(e,t){if(Array.isArray(e))return{};let r,n,i;if(void 0!==e.annots)for(const o of e.annots)if(0!==o.length){if(!TY.test(o)||!(null===t||void 0===t?void 0:t.specialVar)&&("@%"===o||"@%%"===o)||!(null===t||void 0===t?void 0:t.specialFields)&&"%@"===o)throw new _Y(e,`${e.prim}: unexpected annotation: ${o}`);switch(o[0]){case"%":((null===t||void 0===t?void 0:t.emptyFields)||o.length>1)&&(r=r||[],r.push(o));break;case":":o.length>1&&(n=n||[],n.push(o));break;case"@":((null===t||void 0===t?void 0:t.emptyVar)||o.length>1)&&(i=i||[],i.push(o))}}return{f:r,t:n,v:i}}const CY={BlockHash:[32,[1,52]],OperationHash:[32,[5,116]],OperationListHash:[32,[133,233]],OperationListListHash:[32,[29,159,109]],ProtocolHash:[32,[2,170]],ContextHash:[32,[79,199]],ED25519PublicKeyHash:[20,[6,161,159]],SECP256K1PublicKeyHash:[20,[6,161,161]],P256PublicKeyHash:[20,[6,161,164]],ContractHash:[20,[2,90,121]],CryptoboxPublicKeyHash:[16,[153,103]],ED25519Seed:[32,[13,15,58,7]],ED25519PublicKey:[32,[13,15,37,217]],SECP256K1SecretKey:[32,[17,162,224,201]],P256SecretKey:[32,[16,81,238,189]],ED25519EncryptedSeed:[56,[7,90,60,179,41]],SECP256K1EncryptedSecretKey:[56,[9,237,241,174,150]],P256EncryptedSecretKey:[56,[9,48,57,115,171]],SECP256K1PublicKey:[33,[3,254,226,86]],P256PublicKey:[33,[3,178,139,127]],SECP256K1Scalar:[33,[38,248,136]],SECP256K1Element:[33,[5,92,0]],ED25519SecretKey:[64,[43,246,78,7]],ED25519Signature:[64,[9,245,205,134,18]],SECP256K1Signature:[64,[13,115,101,19,63]],P256Signature:[64,[54,240,44,52]],GenericSignature:[64,[4,130,43]],ChainID:[4,[87,82,0]],RollupAddress:[20,[1,128,120,31]],TxRollupL2Address:[20,[6,161,166]]};function jY(e,...t){const r=gY(e);for(const n of t){const[e,t]=CY[n];if(r.length===e+t.length){let e=0;for(;e0?YY(e,1):YY(e,0);break;default:throw new $Y(e,"instruction expected")}}return!0}function JY(e){if(KY(e))if(Array.isArray(e)||"pair"===e.prim||"or"===e.prim||"option"===e.prim)sX(e,(e=>JY(e)));else if(!Object.prototype.hasOwnProperty.call(UY,e.prim))throw new $Y(e,`${e.prim}: type is not comparable`);return!0}function QY(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim||"ticket"===e.prim)throw new $Y(e,`${e.prim}: type can't be used inside PACK/UNPACK instructions`);sX(e,(e=>QY(e)))}return!0}function eX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim||"ticket"===e.prim||"contract"===e.prim)throw new $Y(e,`${e.prim}: type can't be pushed`);sX(e,(e=>eX(e)))}return!0}function tX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"operation"===e.prim||"contract"===e.prim)throw new $Y(e,`${e.prim}: type can't be used as part of a storage`);sX(e,(e=>tX(e)))}return!0}function rX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"operation"===e.prim)throw new $Y(e,`${e.prim}: type can't be used as part of a parameter`);sX(e,(e=>rX(e)))}return!0}function nX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim)throw new $Y(e,`${e.prim}: type can't be used inside a big_map`);sX(e,(e=>nX(e)))}return!0}const iX=new RegExp("^[a-zA-Z0-9_.%@]*$");function oX(e){if(e.string.length>DY)throw new $Y(e,`view name too long: ${e.string}`);if(!iX.test(e.string))throw new $Y(e,`invalid character(s) in view name: ${e.string}`)}function aX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim))throw new $Y(e,"type expected");sX(e,(e=>aX(e)))}return!0}function sX(e,t){if(Array.isArray(e)||"pair"===e.prim){const r=Array.isArray(e)?e:e.args;if(void 0===r||r.length<2)throw new $Y(e,"at least 2 arguments expected");return r.forEach((e=>{KY(e)&&t(e)})),!0}switch(e.prim){case"option":case"list":YY(e,1)&&KY(e.args[0])&&t(e.args[0]);break;case"contract":YY(e,1)&&rX(e.args[0]);break;case"or":YY(e,2)&&KY(e.args[0])&&KY(e.args[1])&&(t(e.args[0]),t(e.args[1]));break;case"lambda":YY(e,2)&&(aX(e.args[0]),aX(e.args[1]));break;case"set":YY(e,1)&&JY(e.args[0]);break;case"map":YY(e,2)&&KY(e.args[0])&&KY(e.args[1])&&(JY(e.args[0]),t(e.args[1]));break;case"big_map":YY(e,2)&&KY(e.args[0])&&KY(e.args[1])&&(JY(e.args[0]),nX(e.args[1]),t(e.args[1]));break;case"ticket":YY(e,1)&&KY(e.args[0])&&JY(e.args[0]);break;case"sapling_state":case"sapling_transaction":YY(e,1)&&GY(e.args[0]);break;default:YY(e,0)}return!0}function cX(e){if("int"in e||"string"in e||"bytes"in e)return!0;if(Array.isArray(e)){let t=0;for(const r of e)HY(r)&&"Elt"===r.prim?(YY(r,2)&&(cX(r.args[0]),cX(r.args[1])),t++):cX(r);if(0!==t&&t!==e.length)throw new $Y(e,"data entries and map elements can't be intermixed");return!0}if(!HY(e))throw new $Y(e,"data entry expected");switch(e.prim){case"Unit":case"True":case"False":case"None":YY(e,0);break;case"Pair":if(void 0===e.args||e.args.length<2)throw new $Y(e,"at least 2 arguments expected");for(const t of e.args)cX(t);break;case"Left":case"Right":case"Some":YY(e,1)&&cX(e.args[0]);break;case"Lambda_rec":e.args&&XY(e.args);break;default:if(!Object.prototype.hasOwnProperty.call(BY,e.prim))throw new $Y(e,"data entry or instruction expected");XY(e)}return!0}function lX(e){if(qY(e)){const t={},r={};for(const n of e)if(VY(n)){if("view"!==n.prim){if(n.prim in t)throw new $Y(e,`duplicate contract section: ${n.prim}`);t[n.prim]=!0}switch(n.prim){case"code":YY(n,1)&&qY(n.args[0])&&XY(n.args[0]);break;case"parameter":if(YY(n,1)&&rX(n.args[0]),n.annots)throw new $Y(n,"Annotation must be part of the parameter type");break;case"storage":YY(n,1)&&tX(n.args[0]);break;case"view":if(YY(n,4)){if(ZY(n.args[0])){const t=n.args[0];if(t.string in r)throw new $Y(e,`duplicate view name: ${t.string}`);r[t.string]=!0,oX(t)}eX(n.args[1]),eX(n.args[2]),qY(n.args[3])&&XY(n.args[3])}break;default:throw new $Y(e,`unexpected contract section: ${n.prim}`)}}}return!0}function uX(e){return Object.prototype.hasOwnProperty.call(BY,e.prim)}function dX(e){if(!Array.isArray(e))return!1;for(const t of e)if("prim"in t){if(uX(t))throw new _Y(e,`Instruction outside of a lambda: ${JSON.stringify(e)}`);if("Elt"===t.prim)throw new _Y(e,`Elt item outside of a map literal: ${JSON.stringify(e)}`)}return!0}"function"===typeof SuppressedError&&SuppressedError;const hX=["parameter","storage","code","False","Elt","Left","None","Pair","Right","Some","True","Unit","PACK","UNPACK","BLAKE2B","SHA256","SHA512","ABS","ADD","AMOUNT","AND","BALANCE","CAR","CDR","CHECK_SIGNATURE","COMPARE","CONCAT","CONS","CREATE_ACCOUNT","CREATE_CONTRACT","IMPLICIT_ACCOUNT","DIP","DROP","DUP","EDIV","EMPTY_MAP","EMPTY_SET","EQ","EXEC","FAILWITH","GE","GET","GT","HASH_KEY","IF","IF_CONS","IF_LEFT","IF_NONE","INT","LAMBDA","LE","LEFT","LOOP","LSL","LSR","LT","MAP","MEM","MUL","NEG","NEQ","NIL","NONE","NOT","NOW","OR","PAIR","PUSH","RIGHT","SIZE","SOME","SOURCE","SENDER","SELF","STEPS_TO_QUOTA","SUB","SWAP","TRANSFER_TOKENS","SET_DELEGATE","UNIT","UPDATE","XOR","ITER","LOOP_LEFT","ADDRESS","CONTRACT","ISNAT","CAST","RENAME","bool","contract","int","key","key_hash","lambda","list","map","big_map","nat","option","or","pair","set","signature","string","bytes","mutez","timestamp","unit","operation","address","SLICE","DIG","DUG","EMPTY_BIG_MAP","APPLY","chain_id","CHAIN_ID","LEVEL","SELF_ADDRESS","never","NEVER","UNPAIR","VOTING_POWER","TOTAL_VOTING_POWER","KECCAK","SHA3","PAIRING_CHECK","bls12_381_g1","bls12_381_g2","bls12_381_fr","sapling_state","sapling_transaction_deprecated","SAPLING_EMPTY_STATE","SAPLING_VERIFY_UPDATE","ticket","TICKET_DEPRECATED","READ_TICKET","SPLIT_TICKET","JOIN_TICKETS","GET_AND_UPDATE","chest","chest_key","OPEN_CHEST","VIEW","view","constant","SUB_MUTEZ","tx_rollup_l2_address","MIN_BLOCK_TIME","sapling_transaction","EMIT","Lambda_rec","LAMBDA_REC","TICKET","BYTES","NAT"];Object.assign({},...hX.map(((e,t)=>({[e]:t}))));var fX;!function(e){e[e.Int=0]="Int",e[e.String=1]="String",e[e.Sequence=2]="Sequence",e[e.Prim0=3]="Prim0",e[e.Prim0Annot=4]="Prim0Annot",e[e.Prim1=5]="Prim1",e[e.Prim1Annot=6]="Prim1Annot",e[e.Prim2=7]="Prim2",e[e.Prim2Annot=8]="Prim2Annot",e[e.Prim=9]="Prim",e[e.Bytes=10]="Bytes"}(fX||(fX={}));const pX=new Error("bounds out of range");class mX{constructor(e,t=0,r=e.length){this.buffer=e,this.idx=t,this.cap=r}get length(){return this.cap-this.idx}readBytes(e){if(this.cap-this.idx>>0}readUint16(){if(this.cap-this.idx<2)throw pX;return(this.buffer[this.idx++]<<8|this.buffer[this.idx++])>>>0}readUint32(){if(this.cap-this.idx<4)throw pX;return(this.buffer[this.idx++]<<24|this.buffer[this.idx++]<<16|this.buffer[this.idx++]<<8|this.buffer[this.idx++])>>>0}readInt8(){if(this.cap-this.idx<1)throw pX;return this.buffer[this.idx++]<<24>>24}readInt16(){if(this.cap-this.idx<2)throw pX;return(this.buffer[this.idx++]<<8|this.buffer[this.idx++])<<16>>16}readInt32(){if(this.cap-this.idx<4)throw pX;return this.buffer[this.idx++]<<24|this.buffer[this.idx++]<<16|this.buffer[this.idx++]<<8|this.buffer[this.idx++]}}var gX,vX,yX;function bX(e){let t;const r=e.readUint8();switch(r){case vX.ED25519:t="ED25519PublicKeyHash";break;case vX.SECP256K1:t="SECP256K1PublicKeyHash";break;case vX.P256:t="P256PublicKeyHash";break;default:throw new Error(`unknown public key hash tag: ${r}`)}return{type:t,hash:e.readBytes(20)}}function wX(e){let t;const r=e.readUint8();switch(r){case gX.Implicit:t=bX(e);break;case gX.Originated:t={type:"ContractHash",hash:e.readBytes(20)},e.readBytes(1);break;default:throw new Error(`unknown address tag: ${r}`)}if(0!==e.length){const r=new TextDecoder;t.entryPoint=r.decode(new Uint8Array(e.readBytes(e.length)))}return t}function xX(e){let t,r;const n=e.readUint8();switch(n){case yX.ED25519:r="ED25519PublicKey",t=32;break;case yX.SECP256K1:r="SECP256K1PublicKey",t=33;break;case yX.P256:r="P256PublicKey",t=33;break;default:throw new Error(`unknown public key tag: ${n}`)}return{type:r,publicKey:e.readBytes(t)}}!function(e){e[e.Implicit=0]="Implicit",e[e.Originated=1]="Originated"}(gX||(gX={})),function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256"}(vX||(vX={})),function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256"}(yX||(yX={}));class _X extends _Y{constructor(e,t,r){super(e,r),this.val=e,this.stackState=t,this.message=r,this.name="MichelsonInstructionError"}}function SX(e){return Array.isArray(e)?"pair":e.prim}function kX(e){return"prim"in e?e.args:e}function EX(e,t,r=!1){if(SX(e)!==SX(t))throw new SY(e,`types mismatch: ${SX(e)} != ${SX(t)}`,void 0);const n=[OY(e),OY(t)];if(n[0].t&&n[1].t&&n[0].t[0]!==n[1].t[0])throw new SY(e,`${SX(e)}: type names mismatch: ${n[0].t[0]} != ${n[1].t[0]}`,void 0);if(r&&n[0].f&&n[1].f&&n[0].f[0]!==n[1].f[0])throw new SY(e,`${SX(e)}: field names mismatch: ${n[0].f[0]} != ${n[1].f}`,void 0);if(IY(e)){const r=RY("pair",e),n=RY("pair",t);return EX(r.args[0],n.args[0],!0),void EX(r.args[1],n.args[1],!0)}switch(e.prim){case"option":case"list":case"contract":case"set":case"ticket":EX(e.args[0],t.args[0]);break;case"or":EX(e.args[0],t.args[0],!0),EX(e.args[1],t.args[1],!0);break;case"lambda":case"map":case"big_map":EX(e.args[0],t.args[0]),EX(e.args[1],t.args[1]);break;case"sapling_state":case"sapling_transaction":if(parseInt(e.args[0].int,10)!==parseInt(t.args[0].int,10))throw new SY(e,`${SX(e)}: type argument mismatch: ${e.args[0].int} != ${t.args[0].int}`,void 0)}}function AX(e,t){if(e.length!==t.length)throw new SY(e,`stack length mismatch: ${e.length} != ${t.length}`,void 0);for(let r=0;r1)throw new SY(e,`${e.prim}: at most one type annotation allowed: ${e.annots}`,void 0);if(t){if(((null===(n=o.f)||void 0===n?void 0:n.length)||0)>1)throw new SY(e,`${e.prim}: at most one field annotation allowed: ${e.annots}`,void 0)}else if(((null===(i=o.f)||void 0===i?void 0:i.length)||0)>0)throw new SY(e,`${e.prim}: field annotations aren't allowed: ${e.annots}`,void 0)}if(IY(e)){const t=kX(e);for(const e of t)PX(e,!0)}else switch(e.prim){case"option":case"list":case"contract":case"set":PX(e.args[0]);break;case"or":for(const t of e.args)PX(t,!0);break;case"lambda":case"map":case"big_map":PX(e.args[0]),PX(e.args[1])}}function TX(e){if(!Array.isArray(e))return!1;for(const t of e)if(!(Array.isArray(t)&&TX(t)||"prim"in t&&uX(t)))return!1;return!0}function OX(e,t,r){if(IY(t)){if(MY(e)){dX(e);const n=RY("Pair",e),i=RY("pair",t);return OX(n.args[0],i.args[0],r),void OX(n.args[1],i.args[1],r)}throw new SY(t,`pair expected: ${JSON.stringify(e)}`,e)}switch(t.prim){case"int":if("int"in e&&AY(e.int))return;throw new SY(t,`integer value expected: ${JSON.stringify(e)}`,e);case"nat":case"mutez":if("int"in e&&PY(e.int))return;throw new SY(t,`natural value expected: ${JSON.stringify(e)}`,e);case"string":if("string"in e)return;throw new SY(t,`string value expected: ${JSON.stringify(e)}`,e);case"bytes":case"bls12_381_g1":case"bls12_381_g2":if("bytes"in e&&null!==EY(e.bytes))return;throw new SY(t,`bytes value expected: ${JSON.stringify(e)}`,e);case"bool":if("prim"in e&&("True"===e.prim||"False"===e.prim))return;throw new SY(t,`boolean value expected: ${JSON.stringify(e)}`,e);case"key_hash":if("string"in e&&null!==jY(e.string,"ED25519PublicKeyHash","SECP256K1PublicKeyHash","P256PublicKeyHash"))return;if("bytes"in e)try{return void function(e){const t=EY(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);bX(new mX(new Uint8Array(t)))}(e)}catch(Tle){}throw new SY(t,`key hash expected: ${JSON.stringify(e)}`,e);case"timestamp":if(("string"in e||"int"in e)&&null!==NY(e))return;throw new SY(t,`timestamp expected: ${JSON.stringify(e)}`,e);case"address":if("string"in e){let t=e.string;const r=e.string.indexOf("%");if(r>=0&&(t=e.string.slice(0,r)),null!==jY(t,"ED25519PublicKeyHash","SECP256K1PublicKeyHash","P256PublicKeyHash","ContractHash","TxRollupL2Address","RollupAddress"))return}else if("bytes"in e)try{return void function(e){const t=EY(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);wX(new mX(new Uint8Array(t)))}(e)}catch(Tle){}throw new SY(t,`address expected: ${JSON.stringify(e)}`,e);case"key":if("string"in e&&null!==jY(e.string,"ED25519PublicKey","SECP256K1PublicKey","P256PublicKey"))return;if("bytes"in e)try{return void function(e){const t=EY(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);xX(new mX(new Uint8Array(t)))}(e)}catch(Tle){}throw new SY(t,`public key expected: ${JSON.stringify(e)}`,e);case"unit":if("prim"in e&&"Unit"===e.prim)return;throw new SY(t,`unit value expected: ${JSON.stringify(e)}`,e);case"signature":if("bytes"in e||"string"in e&&null!==jY(e.string,"ED25519Signature","SECP256K1Signature","P256Signature","GenericSignature"))return;throw new SY(t,`signature expected: ${JSON.stringify(e)}`,e);case"chain_id":if("bytes"in e||"string"in e){if(null!==("string"in e?gY(e.string):EY(e.bytes)))return}throw new SY(t,`chain id expected: ${JSON.stringify(e)}`,e);case"option":if("prim"in e){if("None"===e.prim)return;if("Some"===e.prim)return void OX(e.args[0],t.args[0],r)}throw new SY(t,`option expected: ${JSON.stringify(e)}`,e);case"list":case"set":if(dX(e)){for(const n of e)OX(n,t.args[0],r);return}throw new SY(t,`${t.prim} expected: ${JSON.stringify(e)}`,e);case"or":if("prim"in e){if("Left"===e.prim)return void OX(e.args[0],t.args[0],r);if("Right"===e.prim)return void OX(e.args[0],t.args[1],r)}throw new SY(t,`union (or) expected: ${JSON.stringify(e)}`,e);case"lambda":if(TX(e)){const n=CX(e,[t.args[0]],r);if("failed"in n)throw new SY(t,`function is failed with error type: ${n.failed}`,e);if(1!==n.length)throw new SY(t,"function must return a value",e);return void EX(t.args[1],n[0])}throw new SY(t,`function expected: ${JSON.stringify(e)}`,e);case"map":case"big_map":if(Array.isArray(e)){for(const n of e){if(!("prim"in n)||"Elt"!==n.prim)throw new SY(t,`map elements expected: ${JSON.stringify(e)}`,e);OX(n.args[0],t.args[0],r),OX(n.args[1],t.args[1],r)}return}throw new SY(t,`${t.prim} expected: ${JSON.stringify(e)}`,e);case"bls12_381_fr":if("int"in e&&AY(e.int)||"bytes"in e&&null!==EY(e.bytes))return;throw new SY(t,`BLS12-381 element expected: ${JSON.stringify(e)}`,e);case"sapling_state":if(Array.isArray(e))return;throw new SY(t,`sapling state expected: ${JSON.stringify(e)}`,e);case"ticket":return void OX(e,{prim:"pair",args:[{prim:"address"},t.args[0],{prim:"nat"}]},r);default:throw new SY(t,`type ${SX(t)} don't have Michelson literal representation`,e)}}function CX(e,t,r){const n=(null===r||void 0===r?void 0:r.protocol)||zZ;if(Array.isArray(e))return function(e,t,r){let n=t,i=t,o=0;for(const a of e){const e=CX(a,i,r);if(n=e,"failed"in e)break;i=e,o++}if("failed"in n&&0==n.level&&(!("prim"in n.failed)||"never"!==n.failed.prim)&&o!==e.length-1)throw new _X(e,n,"FAIL must appear in a tail position");if(void 0!==(null===r||void 0===r?void 0:r.traceCallback)){const i={op:e,in:t,out:n};r.traceCallback(i)}return"failed"in n?{failed:n.failed,level:n.level+1}:n}(e,t,r);const i=e;function o(e,...r){if(t.length{try{return e(...r)}catch(Tle){throw Tle instanceof _Y?new _X(i,t,Tle.message):Tle}}}function s(e){return r=>{try{return e(r)}catch(Tle){throw Tle instanceof _Y?new _X(i,t,Tle.message):Tle}}}const c=a(OY),l=a(AX),u=a(EX),d=s(JY),h=s(QY),f=s(tX),p=s(eX),m=s(nX);function g(e,r){const n=c(i,Object.assign(Object.assign({},r),{emptyFields:void 0!==e.f&&e.f>1,emptyVar:void 0!==e.v&&e.v>1})),o=(e,r,n)=>{if(e&&e.length>(r||0))throw new _X(i,t,`${i.prim}: at most ${r||0} ${n} annotations allowed`)};return o(n.f,e.f,"field"),o(n.t,e.t,"type"),o(n.v,e.v,"variable"),n}function v(e,t){const r=e,n=Array.isArray(r)?{prim:"pair",args:r}:r,i=c(n),o=void 0!==t.v||void 0!==t.t||void 0!==t.f?[...(null===t.v?i.v:t.v)||[],...(null===t.t?i.t:t.t)||[],...(null===t.f?i.f:t.f)||[]]:void 0,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i["@"+(e.v?e.v[0].slice(1)+".":"")+t];function k(e,t){return"failed"in e||"failed"in t?"failed"in e?t:e:(l(e,t),e)}const E=(e=>{var i,a,s,E,A;switch(e.prim){case"DUP":{const r=e.args?parseInt(e.args[0].int,10):1;if(0===r)throw new _X(e,t,"DUP 0 is forbidden");const n=o(r-1,null)[0];if("ticket"===SX(n))throw new _X(e,t,"ticket can't be DUPed");return[n,...t]}case"SWAP":{const e=o(0,null,null);return g({}),[e[1],e[0],...t.slice(2)]}case"SOME":return[v({prim:"option",args:[o(0,null)[0]]},g({t:1,v:1})),...t.slice(1)];case"UNIT":return[v({prim:"unit"},g({v:1,t:1})),...t];case"PAIR":{const r=e.args?parseInt(e.args[0].int,10):2;if(r<2)throw new _X(e,t,`PAIR ${r} is forbidden`);const n=o(0,...new Array(r).fill(null)),i=g({f:r,t:1,v:1},{specialFields:!0}),a=e=>{const t=e.lastIndexOf(".");return e.slice(t>0?t+1:1)},s=n.map(((e,t)=>{var r;const n=c(e);return v(e,{v:null,t:null,f:i.f&&i.f.length>t&&"%"!==i.f[t]?"%@"===i.f[t]?n.v?["%"+a((null===(r=n.v)||void 0===r?void 0:r[0])||"")]:void 0:[i.f[t]]:void 0})}));return[v({prim:"pair",args:s},{t:i.t,v:i.v}),...t.slice(r)]}case"UNPAIR":{const r=e.args?parseInt(e.args[0].int,10):2;if(r<2)throw new _X(e,t,`UNPAIR ${r} is forbidden`);const n=o(0,["pair"])[0],i=g({f:2,v:2},{specialVar:!0});return[...w(n,r).map(((e,t)=>b(n,e,i,t,0===t?"car":"cdr"))),...t.slice(1)]}case"CAR":case"CDR":{const r=RY("pair",o(0,["pair"])[0]);return[b(r,r.args["CAR"===e.prim?0:1],g({f:1,v:1},{specialVar:!0}),0,e.prim.toLocaleLowerCase()),...t.slice(1)]}case"CONS":{const e=o(0,null,["list"]);return u(e[0],e[1].args[0]),[y({prim:"list",args:[e[1].args[0]]}),...t.slice(2)]}case"SIZE":return o(0,["string","list","set","map","bytes"]),[y({prim:"nat"}),...t.slice(1)];case"MEM":{const e=o(0,null,["set","map","big_map"]);return d(e[0]),u(e[0],e[1].args[0]),[y({prim:"bool"}),...t.slice(2)]}case"GET":if(e.args){const r=parseInt(e.args[0].int,10);return[y(x(o(0,["pair"])[0],r)),...t.slice(1)]}{const e=o(0,null,["map","big_map"]);return d(e[0]),u(e[0],e[1].args[0]),[y({prim:"option",args:[e[1].args[1]]}),...t.slice(2)]}case"UPDATE":if(e.args){const r=parseInt(e.args[0].int,10),n=o(0,null,["pair"]);return[y(_(n[1],n[0],r)),...t.slice(2)]}{const e=o(0,null,["bool","option"]);if(d(e[0]),"bool"===e[1].prim){const r=o(2,["set"]);return u(e[0],r[0].args[0]),[y({prim:"set",args:[v(e[0],{t:null})]}),...t.slice(3)]}const r=o(2,["map","big_map"]);return u(e[0],r[0].args[0]),"map"===r[0].prim?[y({prim:"map",args:[v(e[0],{t:null}),v(e[1].args[0],{t:null})]}),...t.slice(3)]:(m(e[1].args[0]),[y({prim:"big_map",args:[v(e[0],{t:null}),v(e[1].args[0],{t:null})]}),...t.slice(3)])}case"GET_AND_UPDATE":{const e=g({v:2}),r=o(0,null,["option"],["map","big_map"]);d(r[0]),u(r[0],r[2].args[0]),u(r[1].args[0],r[2].args[1]);const n=null===(i=e.v)||void 0===i?void 0:i.map((e=>"@"!==e?[e]:void 0));return"map"===r[2].prim?[v({prim:"option",args:[r[2].args[1]]},{v:null===n||void 0===n?void 0:n[0]}),v({prim:"map",args:[v(r[0],{t:null}),v(r[1].args[0],{t:null})]},{v:null===n||void 0===n?void 0:n[1]}),...t.slice(3)]:(m(r[1].args[0]),[v({prim:"option",args:[r[2].args[1]]},{v:null===n||void 0===n?void 0:n[0]}),v({prim:"big_map",args:[v(r[0],{t:null}),v(r[1].args[0],{t:null})]},{v:null===n||void 0===n?void 0:n[1]}),...t.slice(3)])}case"EXEC":{const e=o(0,null,["lambda"]);return u(e[0],e[1].args[0]),[y(e[1].args[1]),...t.slice(2)]}case"APPLY":{const r=o(0,null,["lambda"]);if(f(r[0]),p(r[0]),!IY(r[1].args[0]))throw new _X(e,t,`${e.prim}: function's argument must be a pair: ${SX(r[1].args[0])}`);const n=r[1].args[0];return u(r[0],kX(n)[0]),[y({prim:"lambda",args:[kX(n)[1],r[1].args[1]]}),...t.slice(2)]}case"FAILWITH":{const e=o(0,null)[0];return UZ(n,DZ.PtEdo2Zk)||h(e),{failed:e,level:0}}case"NEVER":return o(0,["never"]),{failed:{prim:"never"},level:0};case"RENAME":return[y(o(0,null)[0]),...t.slice(1)];case"CONCAT":{const r=o(0,["string","list","bytes"]);if("list"===r[0].prim){if("string"!==SX(r[0].args[0])&&"bytes"!==SX(r[0].args[0]))throw new _X(e,t,`${e.prim}: can't concatenate list of ${SX(r[0].args[0])}'s`);return[y(r[0].args[0]),...t.slice(1)]}const n=o(1,["string","bytes"]);if(r[0].prim!==n[0].prim)throw new _X(e,t,`${e.prim}: can't concatenate ${r[0].prim} with ${n[0].prim}`);return[y(n[0]),...t.slice(2)]}case"SLICE":return[y({prim:"option",args:[o(0,["nat"],["nat"],["string","bytes"])[2]]},"@slice"),...t.slice(3)];case"PACK":{const e=o(0,null)[0];return h(e),[y({prim:"bytes"},"@packed"),...t.slice(1)]}case"ADD":{const r=o(0,["nat","int","timestamp","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"],["nat","int","timestamp","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"]);if("nat"===r[0].prim&&"int"===r[1].prim||"int"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("int"===r[0].prim&&"timestamp"===r[1].prim||"timestamp"===r[0].prim&&"int"===r[1].prim)return[y({prim:"timestamp"}),...t.slice(2)];if(("int"===r[0].prim||"nat"===r[0].prim||"mutez"===r[0].prim||"bls12_381_g1"===r[0].prim||"bls12_381_g2"===r[0].prim||"bls12_381_fr"===r[0].prim)&&r[0].prim===r[1].prim)return[y(r[0]),...t.slice(2)];throw new _X(e,t,`${e.prim}: can't add ${r[0].prim} to ${r[1].prim}`)}case"SUB":{const r=UZ(n,DZ.PsiThaCa)?o(0,["nat","int","timestamp","mutez"],["nat","int","timestamp","mutez"]):o(0,["nat","int","timestamp"],["nat","int","timestamp"]);if(("nat"===r[0].prim||"int"===r[0].prim)&&("nat"===r[1].prim||"int"===r[1].prim)||"timestamp"===r[0].prim&&"timestamp"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("timestamp"===r[0].prim&&"int"===r[1].prim)return[y({prim:"timestamp"}),...t.slice(2)];if("mutez"===r[0].prim&&"mutez"===r[1].prim)return[y({prim:"mutez"}),...t.slice(2)];throw new _X(e,t,`${e.prim}: can't subtract ${r[0].prim} from ${r[1].prim}`)}case"SUB_MUTEZ":return o(0,["mutez"],["mutez"]),[y({prim:"option",args:[{prim:"mutez"}]}),...t.slice(2)];case"MUL":{const r=o(0,["nat","int","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"],["nat","int","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"]);if("nat"===r[0].prim&&"int"===r[1].prim||"int"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("nat"===r[0].prim&&"mutez"===r[1].prim||"mutez"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"mutez"}),...t.slice(2)];if(("bls12_381_g1"===r[0].prim||"bls12_381_g2"===r[0].prim||"bls12_381_fr"===r[0].prim)&&"bls12_381_fr"===r[1].prim||("nat"===r[0].prim||"int"===r[0].prim)&&r[0].prim===r[1].prim)return[y(r[0]),...t.slice(2)];if(("nat"===r[0].prim||"int"===r[0].prim)&&"bls12_381_fr"===r[1].prim||("nat"===r[1].prim||"int"===r[1].prim)&&"bls12_381_fr"===r[0].prim)return[y({prim:"bls12_381_fr"}),...t.slice(2)];throw new _X(e,t,`${e.prim}: can't multiply ${r[0].prim} by ${r[1].prim}`)}case"EDIV":{const r=(e,t)=>({prim:"option",args:[{prim:"pair",args:[{prim:e},{prim:t}]}]}),n=o(0,["nat","int","mutez"],["nat","int","mutez"]);if("nat"===n[0].prim&&"nat"===n[1].prim)return[y(r("nat","nat")),...t.slice(2)];if(!("nat"!==n[0].prim&&"int"!==n[0].prim||"nat"!==n[1].prim&&"int"!==n[1].prim))return[y(r("int","nat")),...t.slice(2)];if("mutez"===n[0].prim&&"nat"===n[1].prim)return[y(r("mutez","mutez")),...t.slice(2)];if("mutez"===n[0].prim&&"mutez"===n[1].prim)return[y(r("nat","mutez")),...t.slice(2)];throw new _X(e,t,`${e.prim}: can't euclideally divide ${n[0].prim} by ${n[1].prim}`)}case"ABS":return o(0,["int"]),[y({prim:"nat"}),...t.slice(1)];case"ISNAT":return o(0,["int"]),[y({prim:"option",args:[{prim:"nat"}]}),...t.slice(1)];case"INT":return o(0,["nat","bls12_381_fr","bytes"]),[y({prim:"int"}),...t.slice(1)];case"BYTES":return o(0,["nat","int"]),[y({prim:"bytes"}),...t.slice(1)];case"NAT":return o(0,["bytes"]),[y({prim:"nat"}),...t.slice(1)];case"NEG":{const e=o(0,["nat","int","bls12_381_g1","bls12_381_g2","bls12_381_fr"])[0];return"nat"===e.prim||"int"===e.prim?[y({prim:"int"}),...t.slice(1)]:[y(e),...t.slice(1)]}case"LSL":case"LSR":return o(0,["nat","bytes"],["nat","bytes"]),[y({prim:"nat"}),...t.slice(2)];case"OR":case"XOR":{const r=o(0,["nat","bytes","bool"],["nat","bytes","bool"]);if(r[0].prim!==r[1].prim)throw new _X(e,t,`${e.prim}: both arguments must be of the same type: ${r[0].prim}, ${r[1].prim}`);return[y(r[1]),...t.slice(2)]}case"AND":{const r=o(0,["nat","bytes","bool","int"],["nat","bytes","bool"]);if(("int"!==r[0].prim||"nat"!==r[1].prim)&&r[0].prim!==r[1].prim)throw new _X(e,t,`${e.prim}: both arguments must be of the same type: ${r[0].prim}, ${r[1].prim}`);return[y(r[1]),...t.slice(2)]}case"NOT":return"bool"===o(0,["nat","bytes","bool","int"])[0].prim?[y({prim:"bool"}),...t.slice(1)]:[y({prim:"int"}),...t.slice(1)];case"COMPARE":{const e=o(0,null,null);return d(e[0]),d(e[1]),[y({prim:"int"}),...t.slice(2)]}case"EQ":case"NEQ":case"LT":case"GT":case"LE":case"GE":return o(0,["int"]),[y({prim:"bool"}),...t.slice(1)];case"SELF":{if(void 0===(null===r||void 0===r?void 0:r.contract))throw new _X(e,t,`${e.prim}: contract required`);const n=g({f:1,v:1}),i=IX(r.contract,null===(a=n.f)||void 0===a?void 0:a[0]);if(null===i)throw new _X(e,t,`${e.prim}: contract has no entrypoint ${i}`);return[v({prim:"contract",args:[i]},{v:n.v?n.v:["@self"]}),...t]}case"TRANSFER_TOKENS":{const e=o(0,null,["mutez"],["contract"]);return u(e[0],e[2].args[0]),[y({prim:"operation"}),...t.slice(3)]}case"SET_DELEGATE":{const r=o(0,["option"])[0];if("key_hash"!==SX(r.args[0]))throw new _X(e,t,`${e.prim}: key hash expected: ${SX(r.args[0])}`);return[y({prim:"operation"}),...t.slice(1)]}case"IMPLICIT_ACCOUNT":return o(0,["key_hash"]),[y({prim:"contract",args:[{prim:"unit"}]}),...t.slice(1)];case"NOW":return[y({prim:"timestamp"},"@now"),...t];case"AMOUNT":return[y({prim:"mutez"},"@amount"),...t];case"BALANCE":return[y({prim:"mutez"},"@balance"),...t];case"CHECK_SIGNATURE":return o(0,["key"],["signature"],["bytes"]),[y({prim:"bool"}),...t.slice(3)];case"BLAKE2B":case"SHA256":case"SHA512":case"KECCAK":case"SHA3":return o(0,["bytes"]),[y({prim:"bytes"}),...t.slice(1)];case"HASH_KEY":return o(0,["key"]),[y({prim:"key_hash"}),...t.slice(1)];case"SOURCE":return[y({prim:"address"},"@source"),...t];case"SENDER":return[y({prim:"address"},"@sender"),...t];case"ADDRESS":{const e=o(0,["contract"])[0],r=g({v:1});return[v({prim:"address",[NZ]:e},{v:r.v?r.v:S(c(e),"address")}),...t.slice(1)]}case"SELF_ADDRESS":{const e={prim:"address"};return void 0!==(null===r||void 0===r?void 0:r.contract)&&(e[NZ]={prim:"contract",args:[jX(r.contract,"parameter").args[0]]}),[y(e,"@address"),...t]}case"CHAIN_ID":return[y({prim:"chain_id"}),...t];case"DROP":{g({});const r=void 0!==e.args?parseInt(e.args[0].int,10):1;return o(r-1,null),t.slice(r)}case"DIG":{g({});const r=parseInt(e.args[0].int,10);return[o(r,null)[0],...t.slice(0,r),...t.slice(r+1)]}case"DUG":{g({});const r=parseInt(e.args[0].int,10);return[...t.slice(1,r+1),o(0,null)[0],...t.slice(r+1)]}case"NONE":return PX(e.args[0]),[v({prim:"option",args:[e.args[0]]},g({t:1,v:1})),...t];case"LEFT":case"RIGHT":{const r=o(0,null)[0],n=g({f:2,t:1,v:1},{specialFields:!0}),i=c(r),a=[v(r,{t:null,v:null,f:n.f&&n.f.length>0&&"%"!==n.f[0]?"%@"===n.f[0]?i.v?["%"+i.v[0].slice(1)]:void 0:n.f:void 0}),v(e.args[0],{t:null,f:n.f&&n.f.length>1&&"%"!==n.f[1]?n.f:void 0})];return[v({prim:"or",args:"LEFT"===e.prim?a:[a[1],a[0]]},{t:n.t,v:n.v}),...t.slice(1)]}case"NIL":return PX(e.args[0]),[v({prim:"list",args:[e.args[0]]},g({t:1,v:1})),...t];case"UNPACK":return o(0,["bytes"]),PX(e.args[0]),[y({prim:"option",args:[e.args[0]]},"@unpacked"),...t.slice(1)];case"CONTRACT":{const r=o(0,["address"])[0];PX(e.args[0]);const n=g({v:1,f:1}),i=r[NZ];if(void 0!==i){const r=IX(i,null===(s=n.f)||void 0===s?void 0:s[0]);if(null===r)throw new _X(e,t,`${e.prim}: contract has no entrypoint ${r}`);u(r,e.args[0])}return[v({prim:"option",args:[{prim:"contract",args:[e.args[0]]}]},{v:n.v?n.v:S(c(r),"contract")}),...t.slice(1)]}case"CAST":{g({});const r=o(0,null)[0];return PX(e.args[0]),u(e.args[0],r),[e.args[0],...t.slice(1)]}case"IF_NONE":{g({});const n=o(0,["option"])[0],i=t.slice(1);return k(CX(e.args[0],i,r),CX(e.args[1],[v(n.args[0],{t:null,v:S(c(n),"some")}),...i],r))}case"IF_LEFT":{g({});const n=o(0,["or"])[0],i=c(n),a=c(n.args[0]),s=c(n.args[1]),l=t.slice(1);return k(CX(e.args[0],[v(n.args[0],{t:null,v:S(i,a.f?a.f[0].slice(1):"left")}),...l],r),CX(e.args[1],[v(n.args[1],{t:null,v:S(i,s.f?s.f[0].slice(1):"right")}),...l],r))}case"IF_CONS":{g({});const n=o(0,["list"])[0],i=c(n),a=t.slice(1);return k(CX(e.args[0],[v(n.args[0],{t:null,v:S(i,"hd")}),v(n,{t:null,v:S(i,"tl")}),...a],r),CX(e.args[1],a,r))}case"IF":{g({}),o(0,["bool"]);const n=t.slice(1);return k(CX(e.args[0],n,r),CX(e.args[1],n,r))}case"MAP":{const n=o(0,["list","map","option"])[0],i=t.slice(1),a="map"===n.prim?{prim:"pair",args:n.args}:n.args[0],s=CX(e.args[0],[v(a,{t:null,v:S(c(n),"elt")}),...i],r);if("failed"in s){if(!("prim"in s.failed)||"never"!==s.failed.prim)throw new _X(e,t,`${e.prim}: FAIL is not allowed in MAP`);return{failed:s.failed,level:s.level+1}}if(s.length<1)throw new _X(e,t,`${e.prim}: function must return a value`);return l(s.slice(1),i),"list"===n.prim?[y({prim:"list",args:[s[0]]}),...i]:"map"===n.prim?[y({prim:"map",args:[n.args[0],s[0]]}),...i]:[y({prim:"option",args:[s[0]]}),...i]}case"ITER":{g({});const n=o(0,["set","list","map"])[0],i=t.slice(1),a="map"===n.prim?{prim:"pair",args:n.args}:n.args[0],s=CX(e.args[0],[v(a,{t:null,v:S(c(n),"elt")}),...i],r);return"failed"in s?{failed:s.failed,level:s.level+1}:(l(s,i),i)}case"LOOP":{g({}),o(0,["bool"]);const n=t.slice(1),i=CX(e.args[0],n,r);return"failed"in i?{failed:i.failed,level:i.level+1}:(l(i,[{prim:"bool"},...n]),n)}case"LOOP_LEFT":{g({});const n=o(0,["or"])[0],i=t.slice(1),a=CX(e.args[0],[v(n.args[0],{t:null,v:S(c(n),"left")}),...i],r);return"failed"in a?{failed:a.failed,level:a.level+1}:(l(a,[n,...i]),[v(n.args[1],{t:null,v:g({v:1}).v}),...i])}case"DIP":{g({});const n=2===e.args.length?parseInt(e.args[0].int,10):1;o(n-1,null);const i=t.slice(0,n),a=t.slice(n),s=2===e.args.length?CX(e.args[1],a,r):CX(e.args[0],a,r);return"failed"in s?{failed:s.failed,level:s.level+1}:[...i,...s]}case"CREATE_CONTRACT":{const r=g({v:2}),n=o(0,["option"],["mutez"],null);if("key_hash"!==SX(n[0].args[0]))throw new _X(e,t,`${e.prim}: key hash expected: ${SX(n[0].args[0])}`);f(n[2])&&(LX(e.args[0]),EX(jX(e.args[0],"storage").args[0],n[2]));const i=null===(E=r.v)||void 0===E?void 0:E.map((e=>"@"!==e?[e]:void 0));return[v({prim:"operation"},{v:null===i||void 0===i?void 0:i[0]}),v({prim:"address",[NZ]:{prim:"contract",args:[jX(e.args[0],"parameter").args[0]]}},{v:null===i||void 0===i?void 0:i[1]}),...t.slice(3)]}case"PUSH":return PX(e.args[0]),OX(e.args[1],e.args[0],Object.assign(Object.assign({},r),{contract:void 0})),[y(e.args[0]),...t];case"EMPTY_SET":return PX(e.args[0]),d(e.args[0]),[v({prim:"set",args:e.args},g({t:1,v:1})),...t];case"EMPTY_MAP":return PX(e.args[0]),d(e.args[0]),PX(e.args[1]),[v({prim:"map",args:e.args},g({t:1,v:1})),...t];case"EMPTY_BIG_MAP":return PX(e.args[0]),d(e.args[0]),PX(e.args[1]),m(e.args[0]),[v({prim:"big_map",args:e.args},g({t:1,v:1})),...t];case"LAMBDA_REC":case"LAMBDA":{PX(e.args[0]),PX(e.args[1]);const n=[e.args[0]];"LAMBDA_REC"===e.prim&&n.push({prim:"lambda",args:[e.args[0],e.args[1]]});const i=CX(e.args[2],n,Object.assign(Object.assign({},r),{contract:void 0}));if("failed"in i)return{failed:i.failed,level:i.level+1};if(1!==i.length)throw new _X(e,t,`${e.prim}: function must return a value`);return u(e.args[1],i[0]),[y({prim:"lambda",args:[e.args[0],e.args[1]]}),...t]}case"LEVEL":return[y({prim:"nat"},"@level"),...t];case"TOTAL_VOTING_POWER":case"MIN_BLOCK_TIME":return[y({prim:"nat"}),...t];case"VOTING_POWER":return o(0,["key_hash"]),[y({prim:"nat"}),...t.slice(1)];case"TICKET":{const e=o(0,null,["nat"])[0];return d(e),UZ(n,DZ.PtLimaPtL)?[v({prim:"ticket",args:[e]},g({t:1,v:1})),...t.slice(2)]:[y({prim:"option",args:[v({prim:"ticket",args:[e]},g({t:1,v:1}))]}),...t.slice(2)]}case"JOIN_TICKETS":{const r=RY("pair",o(0,["pair"])[0]);if("ticket"!==SX(r.args[0]))throw new _X(e,t,`${e.prim}: ticket expected: ${SX(r.args[0])}`);return u(r.args[0],r.args[1]),[y({prim:"option",args:[v(r.args[0],{t:null})]}),...t.slice(1)]}case"SPLIT_TICKET":{const r=o(0,["ticket"],["pair"]),n=RY("pair",r[1]);if("nat"!==SX(n.args[0]))throw new _X(e,t,`${e.prim}: nat expected: ${SX(n.args[0])}`);return u(n.args[0],n.args[1]),[y({prim:"option",args:[{prim:"pair",args:[v(r[0],{t:null}),v(r[0],{t:null})]}]}),...t.slice(2)]}case"READ_TICKET":{const e=g({v:2}),r=o(0,["ticket"])[0],n=null===(A=e.v)||void 0===A?void 0:A.map((e=>"@"!==e?[e]:void 0));return[v({prim:"pair",args:[{prim:"address"},v(r.args[0],{t:null}),{prim:"nat"}]},{v:null===n||void 0===n?void 0:n[0]}),v(r,{v:null===n||void 0===n?void 0:n[1],t:null}),...t.slice(1)]}case"PAIRING_CHECK":{const r=o(0,["list"])[0].args[0];if(!IY(r))throw new _X(e,t,`${e.prim}: pair expected: ${SX(r)}`);const n=RY("pair",r);if("bls12_381_g1"!==SX(n.args[0]))throw new _X(e,t,`${e.prim}: bls12_381_g1 expected: ${SX(n.args[0])}`);if("bls12_381_g2"!==SX(n.args[1]))throw new _X(e,t,`${e.prim}: bls12_381_g2 expected: ${SX(n.args[1])}`);return[y({prim:"bool"}),...t.slice(1)]}case"SAPLING_EMPTY_STATE":return[v({prim:"sapling_state",args:[e.args[0]]},g({v:1,t:1})),...t];case"SAPLING_VERIFY_UPDATE":{const r=o(0,["sapling_transaction"],["sapling_state"]);if(parseInt(r[0].args[0].int,10)!==parseInt(r[1].args[0].int,10))throw new _X(e,t,`${e.prim}: sapling memo size mismatch: ${r[0].args[0].int} != ${r[1].args[0].int}`);return UZ(n,DZ.PtJakarta)?[y({prim:"option",args:[{prim:"pair",args:[{prim:"int"},v(r[1],{t:null})]}]}),...t.slice(2)]:[y({prim:"option",args:[{prim:"pair",args:[{prim:"bytes"},{prim:"pair",args:[{prim:"int"},v(r[1],{t:null})]}]}]}),...t.slice(2)]}case"OPEN_CHEST":return o(0,["chest_key"],["chest"],["nat"]),[y({prim:"or",args:[{prim:"bytes"},{prim:"bool"}]}),...t.slice(3)];case"VIEW":{const r=o(0,null,["address"]);return p(r[0]),[y({prim:"option",args:[e.args[1]]}),...t.slice(2)]}case"EMIT":{const r=g({f:1,t:1});if(e.args){const n=o(0,null);return u(n[0],e.args[0]),[v({prim:"operation"},r),...t.slice(1)]}return[v({prim:"operation"},r),...t.slice(1)]}default:throw new _Y(e,`unexpected instruction: ${e.prim}`)}})(i);if(void 0!==(null===r||void 0===r?void 0:r.traceCallback)){const e={op:i,in:t,out:E};r.traceCallback(e)}return E}function jX(e,t){for(const r of e)if(r.prim===t)return r;throw new _Y(e,`missing contract section: ${t}`)}function RX(e){if(Array.isArray(e))for(const t of e)if("prim"in t&&("parameter"===t.prim||"storage"===t.prim||"code"===t.prim))return!0;return!1}function IX(e,t){t=t||"%default";const r=MX(e).find((e=>e[0]===t));return void 0!==r?r[1]:"%default"===t?RX(e)?jX(e,"parameter").args[0]:e:null}function MX(e){if(RX(e)){const t=jX(e,"parameter"),r=MX(t.args[0]),n=OY(t);return n.f?[[n.f[0],t.args[0]],...r]:r}if(function(e){return Array.isArray(e)||"or"===e.prim}(e)){const t=kX(e),r=e=>{const r=OY(t[e]);if("or"===SX(t[e])){const n=MX(t[e]);return r.f?[[r.f[0],t[e]],...n]:n}return r.f?[[r.f[0],t[e]]]:[]};return[...r(0),...r(1)]}return[]}function LX(e,t){const r=(r,n,i,o)=>{PX(r,!0),PX(n);const a=CX(o,[{prim:"pair",args:[Object.assign(Object.assign({},r),{annots:["@parameter"]}),Object.assign(Object.assign({},n),{annots:["@storage"]})]}],Object.assign(Object.assign({},t),{contract:e}));if("failed"in a)return a;try{AX(a,[i])}catch(Tle){throw Tle instanceof _Y?new _X(o,a,Tle.message):Tle}return a},n=jX(e,"parameter").args[0],i=jX(e,"storage").args[0],o=r(n,i,{prim:"pair",args:[{prim:"list",args:[{prim:"operation"}]},i]},jX(e,"code").args[0]);for(const a of Object.values(function(e){const t={};for(const r of e)"view"===r.prim&&(t[r.args[0].string]=r);return t}(e)))r(a.args[1],i,a.args[2],a.args[3]);return o}function NX(e,t,r){PX(t),OX(e,t,r||null)}class DX{constructor(e,t){this.contract=e,this.ctx=Object.assign({contract:e},t),this.output=LX(e,this.ctx)}static parse(e,t){const r=new lY(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new vY("empty Michelson");if(lX(n))return new DX(n,t)}static parseTypeExpression(e,t){const r=new lY(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new yY("empty type expression");if(aX(n))return PX(n),n}static parseDataExpression(e,t){const r=new lY(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new bY("empty data expression");if(cX(n))return n;throw void 0}section(e){return jX(this.contract,e)}entryPoints(){return MX(this.contract)}entryPoint(e){return IX(this.contract,e)}assertDataValid(e,t){NX(e,t,this.ctx)}isDataValid(e,t){return function(e,t,r){try{return NX(e,t,r),!0}catch(Yr){return!1}}(e,t,this.ctx)}assertParameterValid(e,t){const r=this.entryPoint(e||void 0);if(null===r)throw new wY(null===e||void 0===e?void 0:e.toString());this.assertDataValid(t,r)}isParameterValid(e,t){try{return this.assertParameterValid(e,t),!0}catch(Yr){return!1}}functionType(e,t){return function(e,t,r){for(const n of t)PX(n);if(void 0!==(null===r||void 0===r?void 0:r.contract))for(const n of["parameter","storage"])PX(jX(r.contract,n).args[0]);return CX(e,t,r||null)}(e,t,this.ctx)}}new DX([{prim:"parameter",args:[{prim:"unit"}]},{prim:"storage",args:[{prim:"unit"}]},{prim:"code",args:[[{prim:"CAR"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PAIR"}]]}]);var zX=r(4872).Buffer;const BX=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),UX=(e,t=8)=>e.toString(16).padStart(t,"0");var FX;!function(e){e.SECRET="secret",e.RAW="raw",e.TZ1="tz1",e.BRANCH="branch",e.ZARITH="zarith",e.PUBLIC_KEY="public_key",e.PKH="pkh",e.DELEGATE="delegate",e.SCRIPT="script",e.BALLOT_STATEMENT="ballotStmt",e.PROPOSAL="proposal",e.PROPOSAL_ARR="proposalArr",e.INT32="int32",e.INT16="int16",e.PARAMETERS="parameters",e.ADDRESS="address",e.SMART_CONTRACT_ADDRESS="smart_contract_address",e.SMART_ROLLUP_ADDRESS="smart_rollup_address",e.SMART_ROLLUP_COMMITMENT_HASH="smart_rollup_commitment_hash",e.VALUE="value",e.PADDED_BYTES="padded_bytes",e.SMART_ROLLUP_MESSAGE="smart_rollup_message",e.MANAGER="manager",e.BLOCK_PAYLOAD_HASH="blockPayloadHash",e.ENTRYPOINT="entrypoint",e.OPERATION="operation",e.OP_ACTIVATE_ACCOUNT="activate_account",e.OP_DELEGATION="delegation",e.OP_TRANSACTION="transaction",e.OP_ORIGINATION="origination",e.OP_BALLOT="ballot",e.OP_FAILING_NOOP="failing_noop",e.OP_ENDORSEMENT="endorsement",e.OP_SEED_NONCE_REVELATION="seed_nonce_revelation",e.OP_REVEAL="reveal",e.OP_PROPOSALS="proposals",e.OP_REGISTER_GLOBAL_CONSTANT="register_global_constant",e.OP_TRANSFER_TICKET="transfer_ticket",e.OP_TX_ROLLUP_ORIGINATION="tx_rollup_origination",e.OP_TX_ROLLUP_SUBMIT_BATCH="tx_rollup_submit_batch",e.BURN_LIMIT="burn_limit",e.TX_ROLLUP_ORIGINATION_PARAM="tx_rollup_origination_param",e.TX_ROLLUP_ID="tx_rollup_id",e.TX_ROLLUP_BATCH_CONTENT="tx_rollup_batch_content",e.OP_INCREASE_PAID_STORAGE="increase_paid_storage",e.OP_UPDATE_CONSENSUS_KEY="update_consensus_key",e.OP_DRAIN_DELEGATE="drain_delegate",e.DEPOSITS_LIMIT="deposits_limit",e.OP_SET_DEPOSITS_LIMIT="set_deposits_limit",e.OP_SMART_ROLLUP_ORIGINATE="smart_rollup_originate",e.PVM_KIND="pvm_kind",e.OP_SMART_ROLLUP_ADD_MESSAGES="smart_rollup_add_messages",e.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE="smart_rollup_execute_outbox_message"}(FX||(FX={}));const $X={"00":"parameter","01":"storage","02":"code","03":"False","04":"Elt","05":"Left","06":"None","07":"Pair","08":"Right","09":"Some","0a":"True","0b":"Unit","0c":"PACK","0d":"UNPACK","0e":"BLAKE2B","0f":"SHA256",10:"SHA512",11:"ABS",12:"ADD",13:"AMOUNT",14:"AND",15:"BALANCE",16:"CAR",17:"CDR",18:"CHECK_SIGNATURE",19:"COMPARE","1a":"CONCAT","1b":"CONS","1c":"CREATE_ACCOUNT","1d":"CREATE_CONTRACT","1e":"IMPLICIT_ACCOUNT","1f":"DIP",20:"DROP",21:"DUP",22:"EDIV",23:"EMPTY_MAP",24:"EMPTY_SET",25:"EQ",26:"EXEC",27:"FAILWITH",28:"GE",29:"GET","2a":"GT","2b":"HASH_KEY","2c":"IF","2d":"IF_CONS","2e":"IF_LEFT","2f":"IF_NONE",30:"INT",31:"LAMBDA",32:"LE",33:"LEFT",34:"LOOP",35:"LSL",36:"LSR",37:"LT",38:"MAP",39:"MEM","3a":"MUL","3b":"NEG","3c":"NEQ","3d":"NIL","3e":"NONE","3f":"NOT",40:"NOW",41:"OR",42:"PAIR",43:"PUSH",44:"RIGHT",45:"SIZE",46:"SOME",47:"SOURCE",48:"SENDER",49:"SELF","4a":"STEPS_TO_QUOTA","4b":"SUB","4c":"SWAP","4d":"TRANSFER_TOKENS","4e":"SET_DELEGATE","4f":"UNIT",50:"UPDATE",51:"XOR",52:"ITER",53:"LOOP_LEFT",54:"ADDRESS",55:"CONTRACT",56:"ISNAT",57:"CAST",58:"RENAME",59:"bool","5a":"contract","5b":"int","5c":"key","5d":"key_hash","5e":"lambda","5f":"list",60:"map",61:"big_map",62:"nat",63:"option",64:"or",65:"pair",66:"set",67:"signature",68:"string",69:"bytes","6a":"mutez","6b":"timestamp","6c":"unit","6d":"operation","6e":"address","6f":"SLICE",70:"DIG",71:"DUG",72:"EMPTY_BIG_MAP",73:"APPLY",74:"chain_id",75:"CHAIN_ID",76:"LEVEL",77:"SELF_ADDRESS",78:"never",79:"NEVER","7a":"UNPAIR","7b":"VOTING_POWER","7c":"TOTAL_VOTING_POWER","7d":"KECCAK","7e":"SHA3","7f":"PAIRING_CHECK",80:"bls12_381_g1",81:"bls12_381_g2",82:"bls12_381_fr",83:"sapling_state",84:"sapling_transaction_deprecated",85:"SAPLING_EMPTY_STATE",86:"SAPLING_VERIFY_UPDATE",87:"ticket",88:"TICKET_DEPRECATED",89:"READ_TICKET","8a":"SPLIT_TICKET","8b":"JOIN_TICKETS","8c":"GET_AND_UPDATE","8d":"chest","8e":"chest_key","8f":"OPEN_CHEST",90:"VIEW",91:"view",92:"constant",93:"SUB_MUTEZ",94:"tx_rollup_l2_address",95:"MIN_BLOCK_TIME",96:"sapling_transaction",97:"EMIT",98:"Lambda_rec",99:"LAMBDA_REC","9a":"TICKET","9b":"BYTES","9c":"NAT"},HX=(()=>{const e={};return Object.keys($X).forEach((t=>{e[$X[t]]=t})),e})(),VX={4:"activate_account",107:"reveal",110:"delegation",108:"transaction",109:"origination",6:"ballot",21:"endorsement",1:"seed_nonce_revelation",5:"proposals",111:"register_global_constant",150:"tx_rollup_origination",151:"tx_rollup_submit_batch",158:"transfer_ticket",112:"set_deposits_limit",113:"increase_paid_storage",114:"update_consensus_key",9:"drain_delegate",200:"smart_rollup_originate",201:"smart_rollup_add_messages",206:"smart_rollup_execute_outbox_message",17:"failing_noop"},qX=(()=>{const e={};return Object.keys(VX).forEach((t=>{const r="string"===typeof t?parseInt(t,10):t;e[VX[r]]=UX(r,2)})),e})(),KX={"00":"default","01":"root","02":"do","03":"set_delegate","04":"remove_delegate","05":"deposit"},WX=(()=>{const e={};return Object.keys(KX).forEach((t=>{e[KX[t]]=t})),e})();class GX extends Qa{constructor(e,t){super(),this.operation=e,this.errorDetail=t,this.name="InvalidOperationSchemaError",this.message="Invalid operation content recevied",t&&(this.message+=` ${t}.`)}}class ZX extends Qa{constructor(e){super(),this.entrypoint=e,this.name="OversizedEntryPointError",this.message=`Invalid entrypoint length "${e.length}", maximum length is "31".`}}class YX extends Qa{constructor(e){super(),this.ballotValue=e,this.name="InvalidBallotValueError",this.message=`Invalid ballot value "${e}" expecting one of the following: "yay", "nay", "pass".`}}class XX extends Qa{constructor(e){super(),this.ballotValue=e,this.name="DecodeBallotValueError",this.message=`Invalid ballot value "${e}", cannot be decoded.`}}class JX extends Qa{constructor(e){super(),this.value=e,this.name="UnexpectedMichelsonValueError",this.message=`Invalid Michelson value "${e}", unalbe to encode.`}}class QX extends Qa{constructor(e){super(),this.message=e,this.name="OperationDecodingError"}}class eJ extends Qa{constructor(e){super(),this.message=e,this.name="OperationEncodingError"}}class tJ extends Qa{constructor(e){super(),this.op=e,this.name="UnsupportedOperationError",this.message=`Unsupported operation "${e}", can submit an issue on our github for feature request.`}}class rJ extends Qa{constructor(e){super(),this.pvm=e,this.name="UnsupportedPvmKindError",this.message=`Invalid Pvm kind "${e}" expecting either "arith" or "wasm_2_0_0".`}}class nJ extends Qa{constructor(e){super(),this.pvm=e,this.name="DecodePvmKindError",this.message=`Invalid Pvm kind "${e}", cannot be decoded.`}}class iJ extends Qa{constructor(e,t){super(),this.address=e,this.errorDetail=t,this.name="InvalidSmartRollupAddress",this.message=`Invalid smart rollup address "${e}"`,t&&(this.message+=` ${t}.`)}}class oJ extends Qa{constructor(e,t){super(),this.hash=e,this.errorDetail=t,this.name="InvalidSmartRollupCommitmentHashError",this.message=`Invalid smart rollup commitment hash "${e}"`,t&&(this.message+=` ${t}.`)}}class aJ{static fromHexString(e){const t=e.toLowerCase();if(/^(([a-f]|\d){2})*$/.test(t)){const e=new Uint8Array((t.match(/([a-z]|\d){2}/g)||[]).map((e=>parseInt(e,16))));return new aJ(e)}throw new cs(t)}constructor(e,t=0){this.arr=e,this.offset=t}consume(e){const t=this.arr.subarray(this.offset,this.offset+e);return this.offset+=e,t}get(e){return this.arr[this.offset+e]}length(){return this.arr.length-this.offset}slice(e,t){return new aJ(this.arr.slice(e,t))}}const sJ=e=>{if(Array.isArray(e)){const t=e.map((e=>sJ(e))).join(""),r=t.length/2;return`02${UX(r)}${t}`}if((e=>"prim"in e)(e))return gJ(e);if((e=>"bytes"in e&&"string"===typeof e.bytes)(e))return uJ(e);if((e=>"string"in e&&"string"===typeof e.string)(e))return hJ(e);if((e=>"int"in e&&"string"===typeof e.int)(e))return pJ(e);throw new JX(JSON.stringify(e))},cJ=e=>{const t=e.consume(1);switch(t[0]){case 10:return dJ(e);case 1:return fJ(e);case 0:return mJ(e);case 2:{const t=new aJ(lJ(e)),r=[];for(;t.length()>0;)r.push(cJ(t));return r}default:return vJ(e,t)}},lJ=(e,t=4)=>{const r=e.consume(t),n=parseInt(zX.from(r).toString("hex"),16);return e.consume(n)},uJ=e=>{if(!/^([A-Fa-f0-9]{2})*$/.test(e.bytes))throw new cs(e.bytes);const t=e.bytes.length/2;return`0a${UX(t)}${e.bytes}`},dJ=e=>{const t=lJ(e);return{bytes:zX.from(t).toString("hex")}},hJ=e=>{const t=zX.from(e.string,"utf8").toString("hex"),r=t.length/2;return`01${UX(r)}${t}`},fJ=e=>{const t=lJ(e);return{string:zX.from(t).toString("utf8")}},pJ=({int:e})=>{const t=new Bs(e,10),r="-"===t.toString(2)[0]?"1":"0",n=t.toString(2).replace(/-/g,""),i=n.length<=6?6:(n.length-6)%7?n.length+7-(n.length-6)%7:n.length,o=n.padStart(i,"0").match(/\d{6,7}/g).reverse();o[0]=r+o[0];const a=o.map(((e,t)=>parseInt((t===o.length-1?"0":"1")+e,2).toString(16).padStart(2,"0")));return`00${a.join("")}`},mJ=e=>{let t=e.consume(1)[0];const r=[];for(;128&t;)r.push(t),t=e.consume(1)[0];r.push(t);const n=!!(64&r[0]);r[0]=127&r[0];const i=r.map(((e,t)=>e.toString(2).slice(0===t?-6:-7).padStart(0===t?6:7,"0"))).reverse();let o=new Bs(i.join(""),2);return n&&(o=o.times(-1)),{int:o.toFixed()}},gJ=e=>{const t=+Array.isArray(e.annots),r=Array.isArray(e.args)?e.args.length:0,n=UX(Math.min(2*r+t+3,9),2),i=HX[e.prim];let o=(e.args||[]).map((e=>sJ(e))).join("");const a=Array.isArray(e.annots)?wJ(e.annots):"";return"LAMBDA"!==e.prim&&"LAMBDA_REC"!==e.prim||!r||(o=UX(o.length/2)+o+UX(0)),("pair"===e.prim||"Pair"===e.prim)&&r>2&&(o=""===a?UX(o.length/2)+o+UX(0):UX(o.length/2)+o),"view"===e.prim&&e.args&&(o=UX(o.length/2)+o+UX(0)),`${n}${i}${o}${a}`},vJ=(e,t)=>{const r=(t[0]-3)%2===1;let n=Math.floor((t[0]-3)/2);const i=e.consume(1)[0].toString(16).padStart(2,"0"),o={prim:$X[i]};if("LAMBDA"!==$X[i]&&"LAMBDA_REC"!==$X[i]||e.consume(4),"view"===$X[i])return 0!=n?yJ(e,o):o;let a,s;("pair"===$X[i]||"Pair"===$X[i])&&n>2&&(a=bJ(e),n=0,s=xJ(e));const c=new Array(n).fill(0).map((()=>cJ(e)));return"LAMBDA"!==$X[i]&&"LAMBDA_REC"!==$X[i]||e.consume(4),a?o.args=a:c.length&&(o.args=c),s&&""!==s[0]?o.annots=s:r&&(o.annots=xJ(e)),o},yJ=(e,t)=>(e.consume(4),t.args=new Array(4).fill(0).map((()=>cJ(e))),e.consume(4),t),bJ=e=>{const t=new aJ(lJ(e)),r=[];for(;t.length()>0;)r.push(cJ(t));return r},wJ=e=>{const t=e.map((e=>zX.from(e,"utf8").toString("hex"))).join("20"),r=t.length/2;return`${UX(r)}${t}`},xJ=e=>{const t=e.consume(4),r=parseInt(zX.from(t).toString("hex"),16),n=e.consume(r);return zX.from(n).toString("hex").split("20").map((e=>zX.from(e,"hex").toString("utf8")))},_J=e=>t=>kc(zX.from(yc(t,Ks[e]))),SJ=e=>t=>vc(t.consume(Ws[e]),Ks[e]),kJ=SJ(Fs.TZ1),EJ=SJ(Fs.B),AJ=e=>{const t=e.consume(1);return 0===t[0]?SJ(Fs.TZ1)(e):1===t[0]?SJ(Fs.TZ2)(e):2===t[0]?SJ(Fs.TZ3)(e):void 0},PJ=_J(Fs.B),TJ=_J(Fs.TZ1),OJ=e=>e?"ff":"00",CJ=e=>_J(Fs.P)(e),jJ=e=>SJ(Fs.P)(e),RJ=e=>{switch(e.substring(0,3)){case Fs.TZ1:return"00"+_J(Fs.TZ1)(e);case Fs.TZ2:return"01"+_J(Fs.TZ2)(e);case Fs.TZ3:return"02"+_J(Fs.TZ3)(e);case Fs.TZ4:return"03"+_J(Fs.TZ4)(e);default:throw new ms(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting one for the following "${Fs.TZ1}", "${Fs.TZ2}", "${Fs.TZ3}" or "${Fs.TZ4}".`)}},IJ=e=>{const t=[];let r=new Us(e,10);if(r.isNaN())throw new TypeError(`Invalid zarith number ${e}`);for(;;){if(r.lt(128)){r.lt(16)&&t.push("0"),t.push(r.toString(16));break}{let e=r.mod(128);r=r.minus(e),r=r.dividedBy(128),e=e.plus(128),t.push(e.toString(16))}}return t.join("")},MJ=e=>{let t=0;for(;t=0;n-=1){const t=127&e.get(n);r=r.multipliedBy(128),r=r.plus(t)}return e.consume(t+1),new Us(r).toString()},LJ=_J(Fs.VH),NJ=SJ(Fs.VH),DJ=_J(Fs.TXR1),zJ=SJ(Fs.TXR1),BJ={branch:FX.BRANCH,contents:[FX.OPERATION]},UJ={pkh:FX.TZ1,secret:FX.SECRET},FJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,public_key:FX.PUBLIC_KEY},$J={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,delegate:FX.DELEGATE},HJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,amount:FX.ZARITH,destination:FX.ADDRESS,parameters:FX.PARAMETERS},VJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,balance:FX.ZARITH,delegate:FX.DELEGATE,script:FX.SCRIPT},qJ={source:FX.PKH,period:FX.INT32,proposal:FX.PROPOSAL,ballot:FX.BALLOT_STATEMENT},KJ={slot:FX.INT16,level:FX.INT32,round:FX.INT32,block_payload_hash:FX.BLOCK_PAYLOAD_HASH},WJ={level:FX.INT32,nonce:FX.RAW},GJ={source:FX.PKH,period:FX.INT32,proposals:FX.PROPOSAL_ARR},ZJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,value:FX.VALUE},YJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,ticket_contents:FX.VALUE,ticket_ty:FX.VALUE,ticket_ticketer:FX.ADDRESS,ticket_amount:FX.ZARITH,destination:FX.ADDRESS,entrypoint:FX.ENTRYPOINT},XJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,tx_rollup_origination:FX.TX_ROLLUP_ORIGINATION_PARAM},JJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,rollup:FX.TX_ROLLUP_ID,content:FX.TX_ROLLUP_BATCH_CONTENT,burn_limit:FX.BURN_LIMIT},QJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,amount:FX.ZARITH,destination:FX.SMART_CONTRACT_ADDRESS},eQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,pk:FX.PUBLIC_KEY},tQ={consensus_key:FX.PKH,delegate:FX.PKH,destination:FX.PKH},rQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,limit:FX.DEPOSITS_LIMIT},nQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,pvm_kind:FX.PVM_KIND,kernel:FX.PADDED_BYTES,origination_proof:FX.PADDED_BYTES,parameters_ty:FX.VALUE},iQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,message:FX.SMART_ROLLUP_MESSAGE},oQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,rollup:FX.SMART_ROLLUP_ADDRESS,cemented_commitment:FX.SMART_ROLLUP_COMMITMENT_HASH,output_proof:FX.PADDED_BYTES},aQ={arbitrary:FX.PADDED_BYTES},sQ=e=>t=>r=>Object.keys(t).reduce(((n,i)=>{const o=t[i];if(r&&Array.isArray(o)){const t=e[o[0]],a=r[i];if(!Array.isArray(a))throw new eJ(`Invalid operation value "${JSON.stringify(a)}" of key "${i}, expected value to be Array.`);return n+a.reduce(((e,r)=>e+t(r)),"")}return n+(0,e[o])(r[i])}),""),cQ=e=>t=>r=>Object.keys(t).reduce(((n,i)=>{const o=t[i];if(Array.isArray(o)){const t=e[o[0]],a=[],s=r.length();for(;r.length()>0;)if(a.push(t(r)),s===r.length())throw new QX("Unable to decode value");return Object.assign(Object.assign({},n),{[i]:a})}{const t=(0,e[o])(r);return"undefined"!==typeof t?Object.assign(Object.assign({},n),{[i]:t}):Object.assign({},n)}}),{}),lQ={[FX.SECRET]:e=>BX(e.consume(20)),[FX.RAW]:e=>BX(e.consume(32)),[FX.TZ1]:kJ,[FX.BRANCH]:EJ,[FX.ZARITH]:MJ,[FX.PUBLIC_KEY]:e=>{switch(e.consume(1)[0]){case 0:return SJ(Fs.EDPK)(e);case 1:return SJ(Fs.SPPK)(e);case 2:return SJ(Fs.P2PK)(e);default:throw new hs(e.toString(),hc(Zs.NO_PREFIX_MATCHED))}},[FX.PKH]:AJ,[FX.DELEGATE]:e=>{const t=(e=>255===e.consume(1)[0])(e);if(t)return AJ(e)},[FX.INT32]:e=>{const t=e.consume(4);let r=0;for(let n=0;n{const t=lJ(e),r=lJ(e);return{code:cJ(new aJ(t)),storage:cJ(new aJ(r))}},[FX.BALLOT_STATEMENT]:e=>{const t=e.consume(1);switch(t[0]){case 0:return"yay";case 1:return"nay";case 2:return"pass";default:throw new XX(t[0].toString())}},[FX.PROPOSAL]:jJ,[FX.PROPOSAL_ARR]:e=>{const t=[];for(e.consume(4);e.length()>0;)t.push(jJ(e));return t},[FX.PARAMETERS]:e=>{if(0!==e.consume(1)[0]){const t=(e=>{const t=UX(e.consume(1)[0],2);if(t in KX)return KX[t];{const t=lJ(e,1),r=zX.from(t).toString("utf8");if(r.length>31)throw new ZX(r);return r}})(e),r=lJ(e);return{entrypoint:t,value:cJ(new aJ(r))}}},[FX.ADDRESS]:e=>{switch(e.consume(1)[0]){case 0:return AJ(e);case 1:{const t=SJ(Fs.KT1)(e);return e.consume(1),t}default:throw new is(e.toString(),": Unable to decode.")}},[FX.SMART_ROLLUP_ADDRESS]:e=>{const t=SJ(Fs.SR1)(e);if(t.substring(0,3)!==Fs.SR1)throw new iJ(t,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.SR1}'.`);return t},[FX.SMART_CONTRACT_ADDRESS]:e=>{if(1===e.consume(1)[0]){const t=SJ(Fs.KT1)(e);return e.consume(1),t}throw new fs(e.toString(),hc(Zs.NO_PREFIX_MATCHED))},[FX.SMART_ROLLUP_COMMITMENT_HASH]:e=>{const t=SJ(Fs.SRC1)(e);if(t.substring(0,4)!==Fs.SRC1)throw new oJ(t,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.SRC1}'`);return t},[FX.VALUE]:e=>{const t=lJ(e);return cJ(new aJ(t))},[FX.INT16]:e=>{const t=e.consume(2);let r=0;for(let n=0;n{const t=lJ(e);return zX.from(t).toString("utf8")},[FX.TX_ROLLUP_ORIGINATION_PARAM]:e=>({}),[FX.TX_ROLLUP_ID]:zJ,[FX.TX_ROLLUP_BATCH_CONTENT]:e=>{const t=lJ(e);return zX.from(t).toString("hex")},[FX.BURN_LIMIT]:e=>{const t=e.consume(1);if("00"!==zX.from(t).toString("hex"))return MJ(e)},[FX.DEPOSITS_LIMIT]:e=>{const t=e.consume(1);if("00"!==zX.from(t).toString("hex"))return MJ(e)},[FX.PVM_KIND]:e=>{const t=e.consume(1);switch(t[0]){case 0:return"arith";case 1:return"wasm_2_0_0";default:throw new nJ(t[0].toString())}},[FX.PADDED_BYTES]:e=>{const t=lJ(e);return zX.from(t).toString("hex")},[FX.SMART_ROLLUP_MESSAGE]:e=>{const t=lJ(e),r=((e,t=4)=>{const r=[];let n=e;for(;n.length();){const e=n.consume(t),i=parseInt(zX.from(e).toString("hex"),16);r.push(n.consume(i)),n=n.slice(i+t)}return r})(new aJ(t));return r.map((e=>zX.from(e).toString("hex")))}};lQ[FX.OPERATION]=(e=>t=>{const r=t.consume(1),n=VX[r[0]];if(void 0===n)throw new tJ(r[0].toString());const i=e[n](t);if("object"!==typeof i)throw new QX("Invalid operation, cannot be decoded.");return Object.assign({kind:n},i)})(lQ),lQ[FX.OP_ACTIVATE_ACCOUNT]=e=>cQ(lQ)(UJ)(e),lQ[FX.OP_FAILING_NOOP]=e=>cQ(lQ)(aQ)(e),lQ[FX.OP_DELEGATION]=e=>cQ(lQ)($J)(e),lQ[FX.OP_TRANSACTION]=e=>cQ(lQ)(HJ)(e),lQ[FX.OP_ORIGINATION]=e=>cQ(lQ)(VJ)(e),lQ[FX.OP_BALLOT]=e=>cQ(lQ)(qJ)(e),lQ[FX.OP_ENDORSEMENT]=e=>cQ(lQ)(KJ)(e),lQ[FX.OP_SEED_NONCE_REVELATION]=e=>cQ(lQ)(WJ)(e),lQ[FX.OP_PROPOSALS]=e=>cQ(lQ)(GJ)(e),lQ[FX.OP_REVEAL]=e=>cQ(lQ)(FJ)(e),lQ[FX.OP_REGISTER_GLOBAL_CONSTANT]=e=>cQ(lQ)(ZJ)(e),lQ[FX.OP_TRANSFER_TICKET]=e=>cQ(lQ)(YJ)(e),lQ[FX.OP_TX_ROLLUP_ORIGINATION]=e=>cQ(lQ)(XJ)(e),lQ[FX.OP_TX_ROLLUP_SUBMIT_BATCH]=e=>cQ(lQ)(JJ)(e),lQ[FX.OP_INCREASE_PAID_STORAGE]=e=>cQ(lQ)(QJ)(e),lQ[FX.OP_UPDATE_CONSENSUS_KEY]=e=>cQ(lQ)(eQ)(e),lQ[FX.OP_DRAIN_DELEGATE]=e=>cQ(lQ)(tQ)(e),lQ[FX.OP_SMART_ROLLUP_ORIGINATE]=e=>cQ(lQ)(nQ)(e),lQ[FX.OP_SMART_ROLLUP_ADD_MESSAGES]=e=>cQ(lQ)(iQ)(e),lQ[FX.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE]=e=>cQ(lQ)(oQ)(e),lQ[FX.MANAGER]=cQ(lQ)(BJ),lQ[FX.OP_SET_DEPOSITS_LIMIT]=e=>cQ(lQ)(rQ)(e);const uQ={[FX.SECRET]:e=>e,[FX.RAW]:e=>e,[FX.TZ1]:TJ,[FX.BRANCH]:PJ,[FX.ZARITH]:IJ,[FX.PUBLIC_KEY]:e=>{switch(e.substring(0,4)){case Fs.EDPK:return"00"+_J(Fs.EDPK)(e);case Fs.SPPK:return"01"+_J(Fs.SPPK)(e);case Fs.P2PK:return"02"+_J(Fs.P2PK)(e);default:throw new hs(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting one of the following '${Fs.EDPK}', '${Fs.SPPK}', '${Fs.P2PK}' or '${Fs.BLPK}'.`)}},[FX.PKH]:RJ,[FX.DELEGATE]:e=>e?OJ(!0)+RJ(e):OJ(!1),[FX.SCRIPT]:e=>{const t=sJ(e.code),r=sJ(e.storage);return`${UX(t.length/2,8)}${t}${UX(r.length/2,8)}${r}`},[FX.BALLOT_STATEMENT]:e=>{switch(e){case"yay":return"00";case"nay":return"01";case"pass":return"02";default:throw new YX(e)}},[FX.PROPOSAL]:CJ,[FX.PROPOSAL_ARR]:e=>UX(32*e.length)+e.map((e=>CJ(e))).join(""),[FX.INT32]:e=>{const t=parseInt(String(e),10),r=[];for(let n=0;n<4;n++){const e=8*(4-(n+1));r.push((t&255<>e)}return zX.from(r).toString("hex")},[FX.PARAMETERS]:e=>{if(!e||"default"===e.entrypoint&&"prim"in e.value&&"Unit"===e.value.prim)return"00";const t=(e=>{if(e in WX)return`${WX[e]}`;if(e.length>31)throw new ZX(e);return`ff${sJ({string:e}).slice(8)}`})(e.entrypoint),r=sJ(e.value);return`ff${t}${(r.length/2).toString(16).padStart(8,"0")}${r}`},[FX.ADDRESS]:e=>{switch(e.substring(0,3)){case Fs.TZ1:case Fs.TZ2:case Fs.TZ3:case Fs.TZ4:return"00"+RJ(e);case Fs.KT1:return"01"+_J(Fs.KT1)(e)+"00";default:throw new is(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting one of the following prefix '${Fs.TZ1}', ${Fs.TZ2}', '${Fs.TZ3}', '${Fs.TZ4}' or '${Fs.KT1}'.`)}},[FX.SMART_ROLLUP_ADDRESS]:e=>{if(e.substring(0,3)!==Fs.SR1)throw new iJ(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.SR1}'.`);return _J(Fs.SR1)(e)},[FX.SMART_CONTRACT_ADDRESS]:e=>{if(e.substring(0,3)===Fs.KT1)return"01"+_J(Fs.KT1)(e)+"00";throw new fs(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.KT1}'.`)},[FX.SMART_ROLLUP_COMMITMENT_HASH]:e=>{if(e.substring(0,4)===Fs.SRC1)return _J(Fs.SRC1)(e);throw new oJ(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.SRC1}'`)},[FX.VALUE]:e=>{const t=sJ(e);return`${UX(t.length/2)}${t}`},[FX.INT16]:e=>{const t=parseInt(String(e),10),r=[];for(let n=0;n<2;n++){const e=8*(2-(n+1));r.push((t&255<>e)}return zX.from(r).toString("hex")},[FX.BLOCK_PAYLOAD_HASH]:LJ,[FX.ENTRYPOINT]:e=>`${sJ({string:e}).slice(2)}`,[FX.TX_ROLLUP_ORIGINATION_PARAM]:e=>"",[FX.TX_ROLLUP_ID]:DJ,[FX.TX_ROLLUP_BATCH_CONTENT]:e=>`${UX(e.length/2)}${e}`,[FX.BURN_LIMIT]:e=>e?`ff${IJ(e)}`:"00",[FX.DEPOSITS_LIMIT]:e=>e?`ff${IJ(e)}`:"00",[FX.PVM_KIND]:e=>{switch(e){case"arith":return"00";case"wasm_2_0_0":return"01";default:throw new rJ(e)}},[FX.PADDED_BYTES]:(e,t=8)=>`${UX(e.length/2,t)}${e}`,[FX.SMART_ROLLUP_MESSAGE]:e=>{const t=e.reduce(((e,t)=>e+`${UX(t.length/2)}${t}`),"");return`${UX(t.length/2)}${t}`}};uQ[FX.OPERATION]=(e=>t=>{if(!(t.kind in e)||!(t.kind in qX))throw new vs(t.kind);return qX[t.kind]+e[t.kind](t)})(uQ),uQ[FX.OP_ACTIVATE_ACCOUNT]=e=>sQ(uQ)(UJ)(e),uQ[FX.OP_DELEGATION]=e=>sQ(uQ)($J)(e),uQ[FX.OP_TRANSACTION]=e=>sQ(uQ)(HJ)(e),uQ[FX.OP_ORIGINATION]=e=>sQ(uQ)(VJ)(e),uQ[FX.OP_BALLOT]=e=>sQ(uQ)(qJ)(e),uQ[FX.OP_ENDORSEMENT]=e=>sQ(uQ)(KJ)(e),uQ[FX.OP_SEED_NONCE_REVELATION]=e=>sQ(uQ)(WJ)(e),uQ[FX.OP_PROPOSALS]=e=>sQ(uQ)(GJ)(e),uQ[FX.OP_REVEAL]=e=>sQ(uQ)(FJ)(e),uQ[FX.OP_REGISTER_GLOBAL_CONSTANT]=e=>sQ(uQ)(ZJ)(e),uQ[FX.OP_TRANSFER_TICKET]=e=>sQ(uQ)(YJ)(e),uQ[FX.OP_TX_ROLLUP_ORIGINATION]=e=>sQ(uQ)(XJ)(e),uQ[FX.OP_TX_ROLLUP_SUBMIT_BATCH]=e=>sQ(uQ)(JJ)(e),uQ[FX.OP_INCREASE_PAID_STORAGE]=e=>sQ(uQ)(QJ)(e),uQ[FX.OP_UPDATE_CONSENSUS_KEY]=e=>sQ(uQ)(eQ)(e),uQ[FX.OP_DRAIN_DELEGATE]=e=>sQ(uQ)(tQ)(e),uQ[FX.OP_SMART_ROLLUP_ORIGINATE]=e=>sQ(uQ)(nQ)(e),uQ[FX.OP_SMART_ROLLUP_ADD_MESSAGES]=e=>sQ(uQ)(iQ)(e),uQ[FX.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE]=e=>sQ(uQ)(oQ)(e),uQ[FX.MANAGER]=sQ(uQ)(BJ),uQ[FX.OP_SET_DEPOSITS_LIMIT]=e=>sQ(uQ)(rQ)(e),uQ[FX.OP_FAILING_NOOP]=e=>sQ(uQ)(aQ)(e);const dQ={activate_account:UJ,reveal:FJ,delegation:$J,transaction:HJ,origination:VJ,ballot:qJ,endorsement:KJ,seed_nonce_revelation:WJ,proposals:GJ,register_global_constant:ZJ,transfer_ticket:YJ,tx_rollup_origination:XJ,tx_rollup_submit_batch:JJ,increase_paid_storage:QJ,update_consensus_key:eQ,drain_delegate:tQ,set_deposits_limit:rQ,smart_rollup_originate:nQ,smart_rollup_add_messages:iQ,smart_rollup_execute_outbox_message:oQ,failing_noop:aQ},hQ=e=>{const t=e.kind,r=Object.keys(e),n=(i="kind",r.filter((e=>e!==i)));var i;const o=Object.keys(dQ[t]);return a=n,o.filter((e=>!a.includes(e)));var a};var fQ;!function(e){e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(fQ||(fQ={}));const pQ=fQ.PtMumbai2;class mQ{constructor(e=pQ){var t;this.protocolHash=e,this.codec=(t=FX.MANAGER,this.protocolHash,{encoder:uQ[t],decoder:e=>{const r=aJ.fromHexString(e);return lQ[t](r)}})}forge(e){const t=function(e){return Xs(e,nc)}(e.branch);if(t!==Zs.VALID)throw new os(e.branch,hc(t));for(const i of e.contents){if(r=i.kind,!Object.keys(dQ).includes(r))throw new vs(i.kind);const e=hQ(i);if(1===e.length){if("delegation"===i.kind&&"delegate"===e[0])continue;if("origination"===i.kind&&"delegate"===e[0])continue;if("transaction"===i.kind&&"parameters"===e[0])continue;if("set_deposits_limit"===i.kind&&"limit"===e[0])continue;if("tx_rollup_submit_batch"===i.kind&&"burn_limit"===e[0])continue;throw new GX(i,`missing properties "${e.join(", ")}"`)}if(e.length>1)throw new GX(i,`missing properties "${e.join(", ")}"`)}var r;const n=this.codec.encoder(e).toLowerCase();return Promise.resolve(n)}parse(e){return Promise.resolve(this.codec.decoder(e))}}new mQ;function gQ(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i(e.on("data",(e=>{t.next(e)})),e.on("error",(e=>{t.error(e)})),e.on("close",(()=>{t.complete()})),()=>{e.close()})))}const kQ=10600,EQ=10600,AQ=10600,PQ=1e3,TQ=1e3,OQ=2e3,CQ=2e3,jQ=1257,RQ=1e4,IQ=1e4,MQ=374,LQ=0,NQ=257,DQ=257,zQ=0;var BQ;!function(e){e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.PsiThaCa="PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(BQ||(BQ={}));BQ.Pt24m4xi,BQ.PsBABY5H,BQ.PsBabyM1,BQ.PsCARTHA,BQ.PsDELPH1,BQ.PtEdo2Zk,BQ.PsFLorena,BQ.PtGRANADs,BQ.PtHangz2,BQ.PsiThaCa,BQ.Psithaca2,BQ.PtJakart2,BQ.PtKathman,BQ.PtLimaPtL,BQ.PtMumbai2,BQ.PtNairobi,BQ.ProtoALpha;var UQ;!function(e){e.MAINNET="NetXdQprcVkpaWU",e.CARTHAGENET="NetXjD3HPJJjmcd",e.DELPHINET="NetXm8tYqnMWky1",e.EDONET="NetXSgo1ZT2DRUG",e.FLORENCENET="NetXxkAx4woPLyu",e.GRANADANET="NetXz969SFaFn8k",e.HANGZHOUNET="NetXZSsxBpMQeAT",e.ITHACANET="NetXbhmtAbMukLc",e.ITHACANET2="NetXnHfVqm9iesp",e.JAKARTANET2="NetXLH1uAxK7CCh",e.KATHMANDUNET="NetXazhm4yetmff",e.LIMANET="NetXizpkH94bocH",e.MUMBAINET="NetXQw6nWSnrJ5t",e.MUMBAINET2="NetXgbcrNtXD2yA",e.NAIROBINET="NetXyuzvDo2Ugzb"}(UQ||(UQ={}));const FQ=e=>Math.round(11*$Q(e)/10),$Q=e=>{switch(e.substring(0,3)){case"tz1":return PQ;case"tz2":return TQ;case"tz3":return OQ;case"tz4":return CQ;default:throw new Error(`Cannot estimate reveal gas limit for ${e}`)}};class HQ extends Qa{constructor(e,t,r){super(),this.smartContractMethodName=e,this.sigs=t,this.invalidParams=r,this.name="InvalidParameterError",this.message=`${e} Received ${r.length} arguments while expecting one of the following signatures (${JSON.stringify(t)})`}}class VQ extends Qa{constructor(e){super(),this.source=e,this.name="InvalidDelegationSource",this.message=`Since Babylon delegation source can no longer be a contract address ${e}. Please use the smart contract abstraction to set your delegate.`}}class qQ extends Qa{constructor(e,t){super(),this.message=e,this.data=t,this.name="InvalidCodeParameter"}}class KQ extends Qa{constructor(e,t){super(),this.message=e,this.data=t,this.name="InvalidInitParameter"}}class WQ extends es{constructor(e,t,r,n){super(),this.message=e,this.viewName=t,this.failWith=r,this.cause=n,this.name="ViewSimulationError"}}const GQ=e=>{try{JSON.parse(e)}catch(t){return!1}return!0};class ZQ extends Qa{constructor(e){super(),this.info=e,this.name="InvalidViewSimulationContext",this.message=`${e} Please configure the context of the view execution in the executeView method.`}}class YQ extends es{constructor(e){super(),this.message=e,this.name="RevealOperationError"}}class XQ extends Qa{constructor(e){super(),this.message=e,this.name}}class JQ extends Qa{constructor(e){super(),this.message=e,this.name="InvalidBalanceError"}}const QQ=({code:e,init:t,balance:r="0",delegate:n,storage:i,fee:o=RQ,gasLimit:a=EQ,storageLimit:s=NQ,mutez:c=!1})=>vQ(void 0,void 0,void 0,(function*(){if(void 0!==i&&void 0!==t)throw new XQ("Storage and Init cannot be set a the same time. Please either use storage or init but not both.");if(!Array.isArray(e))throw new qQ("Wrong code parameter type, expected an array",e);let l;if(void 0!==i){const t=e.find((e=>"prim"in e&&"storage"===e.prim));if(void 0===(null===t||void 0===t?void 0:t.args))throw new qQ("The storage section is missing from the script",e);l=new _Z(t.args[0]).Encode(i)}else{if(void 0===t||"object"!==typeof t)throw new KQ("Wrong init parameter type, expected JSON Michelson",t);l=t}const u={code:e,storage:l};if(isNaN(Number(r)))throw new JQ(`Invalid Balance "${r}", cannot be converted to a number`);const d={kind:Pq.ORIGINATION,fee:o,gas_limit:a,storage_limit:s,balance:c?r.toString():gc("tz","mutez",r).toString(),script:u};return n&&(d.delegate=n),d})),e0=({to:e,amount:t,parameter:r,fee:n=IQ,gasLimit:i=AQ,storageLimit:o=DQ,mutez:a=!1})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.TRANSACTION,fee:n,gas_limit:i,storage_limit:o,amount:a?t.toString():gc("tz","mutez",t).toString(),destination:e,parameters:r}})),t0=({delegate:e,source:t,fee:r=jQ,gasLimit:n=kQ,storageLimit:i=LQ})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.DELEGATION,source:t,fee:r,gas_limit:n,storage_limit:i,delegate:e}})),r0=({fee:e=MQ,gasLimit:t,storageLimit:r=zQ},n,i)=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.REVEAL,fee:e,public_key:i,source:n,gas_limit:null!==t&&void 0!==t?t:FQ(n),storage_limit:r}})),n0=({value:e,source:t,fee:r,gasLimit:n,storageLimit:i})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.REGISTER_GLOBAL_CONSTANT,value:e,fee:r,gas_limit:n,storage_limit:i,source:t}})),i0=({ticketContents:e,ticketTy:t,ticketTicketer:r,ticketAmount:n,destination:i,entrypoint:o,source:a,fee:s,gasLimit:c,storageLimit:l})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.TRANSFER_TICKET,fee:s,gas_limit:c,storage_limit:l,source:a,ticket_contents:e,ticket_ty:t,ticket_ticketer:r,ticket_amount:n,destination:i,entrypoint:o}})),o0=({source:e,fee:t,gasLimit:r,storageLimit:n,amount:i,destination:o})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.INCREASE_PAID_STORAGE,source:e,fee:t,gas_limit:r,storage_limit:n,amount:i,destination:o}})),a0=({source:e,fee:t,gasLimit:r,storageLimit:n,message:i})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.SMART_ROLLUP_ADD_MESSAGES,source:e,fee:t,gas_limit:r,storage_limit:n,message:i}})),s0=({source:e,fee:t,gasLimit:r,storageLimit:n,pvmKind:i,kernel:o,originationProof:a,parametersType:s})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.SMART_ROLLUP_ORIGINATE,source:e,fee:t,gas_limit:r,storage_limit:n,pvm_kind:i,kernel:o,origination_proof:a,parameters_ty:s}})),c0=(e,t)=>Object.assign(Object.assign({},e),{kind:t}),l0=(e,t)=>{if(Array.isArray(e)){const r=e.find((e=>e.kind===t));if(r&&u0(r,t))return r}},u0=(e,t)=>e.kind===t,d0=e=>-1!==["transaction","delegation","origination","reveal","register_global_constant","increase_paid_storage","tx_rollup_origination","tx_rollup_submit_batch","transfer_ticket","update_consensus_key","smart_rollup_add_messages","smart_rollup_originate"].indexOf(e.kind),h0=e=>-1!==["transaction","delegation","origination","register_global_constant","increase_paid_storage","tx_rollup_origination","tx_rollup_submit_batch","transfer_ticket","update_consensus_key","smart_rollup_add_messages","smart_rollup_originate"].indexOf(e.kind),f0=e=>"metadata"in e,p0=e=>f0(e)&&"operation_result"in e.metadata;class m0 extends es{constructor(e,t){super(),this.errors=e,this.errorDetails=t,this.name="TezosOperationError";const r=e[e.length-1];this.id=r.id,this.kind=r.kind,this.message=`(${this.kind}) ${this.id}`,(e=>"with"in e)(r)&&(r.with.string?this.message=r.with.string:r.with.int?this.message=r.with.int:this.message=JSON.stringify(r.with))}}class g0 extends Error{constructor(e){super(),this.result=e,this.name="TezosPreapplyFailureError",this.message="Preapply returned an unexpected result"}}const v0=e=>{const t=Array.isArray(e)?e:[e],r=[];for(let n=0;nr.push(e.result))))}return r},y0=(e,t="failed")=>{const r=Array.isArray(e)?e:[e];let n=[];for(let o=0;onew lK(e).pipe(uW({each:1e3*e.timeout,with:()=>uK((()=>new _0("Confirmation polling timed out")))})))),cW((()=>_K((()=>SQ(this.context.stream.subscribeBlock("head")))).pipe(cW((e=>{var t,r;const n=null!==(r=null===(t=this.lastHead)||void 0===t?void 0:t.header.level)&&void 0!==r?r:e.header.level-1;return kK(n+1,e.header.level-n-1).pipe(hW((e=>this.context.readProvider.getBlock(e))),fW(e))})),pW((e=>this.lastHead=e))))),vW({refCount:!0})),this.confirmed$=this.currentHead$.pipe(VK((e=>{for(let t=3;t>=0;t--)e.operations[t].forEach((t=>{t.hash===this.hash&&(this._foundAt=e.header.level)}));if(e.header.level-this._foundAt>=0)return this._foundAt})),yW((e=>void 0!==e)),xW(),vW()),this._foundAt=Number.POSITIVE_INFINITY,dc(this.hash)!==Zs.VALID)throw new gs(this.hash);this.confirmed$.pipe(xW(),_W((()=>zK(SK)))).subscribe()}get revealOperation(){return Array.isArray(this.results)&&this.results.find((e=>"reveal"===e.kind))}get revealStatus(){return this.revealOperation?this.revealOperation.metadata.operation_result.status:"unknown"}get status(){return this.results.map((e=>p0(e)?e.metadata.operation_result.status:"unknown"))[0]||"unknown"}confirmation(e,t){return vQ(this,void 0,void 0,(function*(){if("undefined"!==typeof e&&e<1)throw new x0(e);const{defaultConfirmationCount:r,confirmationPollingTimeoutSecond:n}=this.context.config;this._pollingConfig$.next({timeout:t||n});const i=void 0!==e?e:r;return new Promise(((e,t)=>{this.confirmed$.pipe(cW((()=>this.currentHead$)),yW((e=>e.header.level-this._foundAt>=i-1)),xW()).subscribe((t=>{e(this._foundAt+(i-1))}),t)}))}))}}class E0 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}getOriginatedContractAddresses(){const e=this.results.filter((e=>"origination"===e.kind));let t=[];for(const r of e)r.metadata.operation_result.originated_contracts&&(t=[...t,...r.metadata.operation_result.originated_contracts]);return t}get status(){return this.results.filter((e=>-1!==Q0.indexOf(e.kind))).map((e=>{if(p0(e)){return e.metadata.operation_result.status}return"unknown"}))[0]||"unknown"}get fee(){return this.sumProp(this.params,"fee")}get gasLimit(){return this.sumProp(this.params,"gas_limit")}get storageLimit(){return this.sumProp(this.params,"storage_limit")}get consumedGas(){return Us.config({DECIMAL_PLACES:0,ROUNDING_MODE:Us.ROUND_UP}),new Us(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(v0({contents:this.results}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(v0({contents:this.results}),"paid_storage_size_diff"))}get errors(){return y0({contents:this.results})}}class A0{get rpc(){return this.context.rpc}get signer(){return this.context.signer}constructor(e){this.context=e}forge({opOb:{branch:e,contents:t,protocol:r},counter:n}){return vQ(this,void 0,void 0,(function*(){return{opbytes:yield this.context.forger.forge({branch:e,contents:t}),opOb:{branch:e,contents:t,protocol:r},counter:n}}))}estimate(e,t){var{fee:r,gasLimit:n,storageLimit:i}=e,o=gQ(e,["fee","gasLimit","storageLimit"]);return vQ(this,void 0,void 0,(function*(){let e=r,a=n,s=i;if(e&&e%1!==0)throw new w0(`Fee value must not be a decimal: ${e}`);if(a&&a%1!==0)throw new w0(`Gas Limit value must not be a decimal: ${a}`);if(s&&s%1!==0)throw new w0(`Storage Limit value must not be a decimal: ${s}`);if(void 0===r||void 0===n||void 0===i){const c=yield t(Object.assign({fee:r,gasLimit:n,storageLimit:i},o));null!==e&&void 0!==e||(e=c.suggestedFeeMutez),null!==a&&void 0!==a||(a=c.gasLimit),null!==s&&void 0!==s||(s=c.storageLimit)}return{fee:e,gasLimit:a,storageLimit:s}}))}getRPCOp(e){return vQ(this,void 0,void 0,(function*(){switch(e.kind){case Pq.TRANSACTION:return e0(Object.assign({},e));case Pq.ORIGINATION:return QQ(yield this.context.parser.prepareCodeOrigination(Object.assign({},e)));case Pq.DELEGATION:return t0(Object.assign({},e));case Pq.REGISTER_GLOBAL_CONSTANT:return n0(Object.assign({},e));case Pq.INCREASE_PAID_STORAGE:return o0(Object.assign({},e));case Pq.TRANSFER_TICKET:return i0(Object.assign({},e));case Pq.SMART_ROLLUP_ADD_MESSAGES:return a0(Object.assign({},e));case Pq.SMART_ROLLUP_ORIGINATE:return s0(Object.assign({},e));default:throw new vs(e.kind)}}))}runOperation(e){return vQ(this,void 0,void 0,(function*(){return{opResponse:yield this.rpc.runOperation(e),op:e,context:this.context.clone()}}))}simulate(e){return vQ(this,void 0,void 0,(function*(){return{opResponse:yield this.rpc.simulateOperation(e),op:e,context:this.context.clone()}}))}isRevealOpNeeded(e,t){return vQ(this,void 0,void 0,(function*(){return!(!(yield this.isAccountRevealRequired(t))||!this.isRevealRequiredForOpType(e))}))}isAccountRevealRequired(e){return vQ(this,void 0,void 0,(function*(){return!(yield this.context.readProvider.isAccountRevealed(e,"head"))}))}isRevealRequiredForOpType(e){let t=!1;for(const r of e)h0(r)&&(t=!0);return t}signAndInject(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.sign(e.opbytes,new Uint8Array([3]));e.opbytes=t.sbytes,e.opOb.signature=t.prefixSig;const r=[],n=yield this.rpc.preapplyOperations([e.opOb]);if(!Array.isArray(n))throw new g0(n);for(let e=0;evQ(this,void 0,void 0,(function*(){return e}))));case Pq.ORIGINATION:return this.walletProvider.mapOriginateParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return this.context.parser.prepareCodeOrigination(Object.assign({},e))}))));case Pq.DELEGATION:return this.walletProvider.mapDelegateParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e}))));case Pq.INCREASE_PAID_STORAGE:return this.walletProvider.mapIncreasePaidStorageWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e}))));default:throw new vs(JSON.stringify(e.kind))}}))}with(e){for(const t of e)switch(t.kind){case Pq.TRANSACTION:this.withTransfer(t);break;case Pq.ORIGINATION:this.withOrigination(t);break;case Pq.DELEGATION:this.withDelegation(t);break;case Pq.INCREASE_PAID_STORAGE:this.withIncreasePaidStorage(t);break;default:throw new vs(JSON.stringify(t.kind))}return this}send(){return vQ(this,void 0,void 0,(function*(){const e=[];for(const r of this.operations)e.push(yield this.mapOperation(r));const t=yield this.walletProvider.sendOperations(e);return this.context.operationFactory.createBatchOperation(t)}))}}class T0{constructor(e){this.context=e,this.walletCommand=e=>({send:e})}get walletProvider(){return this.context.walletProvider}pkh({forceRefetch:e}={}){return vQ(this,void 0,void 0,(function*(){return this._pkh&&!e||(this._pkh=yield this.walletProvider.getPKH()),this._pkh}))}originate(e){return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapOriginateParamsToWalletParams((()=>this.context.parser.prepareCodeOrigination(Object.assign({},e)))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createOriginationOperation(r)}))))}setDelegate(e){var t;const r=oc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&r!==Zs.VALID)throw new is(e.delegate,hc(r));return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapDelegateParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createDelegationOperation(r)}))))}signFailingNoop(e){return vQ(this,void 0,void 0,(function*(){const t={kind:Pq.FAILING_NOOP,arbitrary:e.arbitrary},r=yield this.context.readProvider.getBlockHash(e.basedOnBlock),n=yield this.context.forger.forge({branch:r,contents:[t]});return{signature:yield this.walletProvider.sign(n,Uint8Array.from([3])),bytes:n,signedContent:{branch:r,contents:[{kind:Pq.FAILING_NOOP,arbitrary:e.arbitrary}]}}}))}registerDelegate(){return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const e=yield this.walletProvider.mapDelegateParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return{delegate:yield this.pkh()}})))),t=yield this.walletProvider.sendOperations([e]);return this.context.operationFactory.createDelegationOperation(t)}))))}transfer(e){const t=oc(e.to);if(t!==Zs.VALID)throw new is(e.to,hc(t));return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapTransferParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createTransactionOperation(r)}))))}increasePaidStorage(e){const t=oc(e.destination);if(t!==Zs.VALID)throw new is(e.destination,hc(t));return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapIncreasePaidStorageWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createIncreasePaidStorageOperation(r)}))))}batch(e){const t=new P0(this.walletProvider,this.context);return Array.isArray(e)&&t.with(e),t}at(e,t=(e=>e)){return vQ(this,void 0,void 0,(function*(){const r=sc(e);if(r!==Zs.VALID)throw new fs(e,hc(r));const n=this.context.withExtensions().rpc,i=this.context.withExtensions().readProvider,o=yield i.getScript(e,"head"),a=yield i.getEntrypoints(e),s=new $0(e,o,this,this.context.contract,a,n,i);return t(s,this.context)}))}getPK(){return this.walletProvider.getPK()}}class O0 extends ts{constructor(){super(),this.name="ConfirmationUndefinedError",this.message="Default confirmation count can not be undefined"}}class C0 extends ns{constructor(e){super(),this.message=e,this.name="ObservableError"}}class j0{operationResults(){return vQ(this,void 0,void 0,(function*(){return this._operationResult.pipe(xW()).toPromise()}))}receipt(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new C0("Unable to get operation results");return((e,{ALLOCATION_BURN:t,ORIGINATION_BURN:r}={ALLOCATION_BURN:257,ORIGINATION_BURN:257})=>{Us.config({DECIMAL_PLACES:0,ROUNDING_MODE:Us.ROUND_UP});const n=v0({contents:e});let i=new Us(0),o=new Us(0),a=new Us(0),s=new Us(0),c=new Us(0),l=new Us(0);return n.forEach((e=>{a=a.plus(e.fee||0),s=s.plus(Array.isArray(e.originated_contracts)?e.originated_contracts.length*r:0),c=c.plus("allocated_destination_contract"in e?t:0),i=i.plus(e.consumed_milligas||0),l=l.plus("paid_storage_size_diff"in e&&Number(e.paid_storage_size_diff)||0)})),o=o.plus(c).plus(s).plus(l),{totalFee:a,totalMilliGas:i,totalGas:i.dividedBy(1e3),totalStorage:o,totalAllocationBurn:c,totalOriginationBurn:s,totalPaidStorageDiff:l,totalStorageBurn:new Us(o.multipliedBy(250))}})(e)}))}constructor(e,t,r){if(this.opHash=e,this.context=t,this._newHead$=r,this._operationResult=new cK(1),this._includedInBlock=new cK(1),this._included=!1,this.newHead$=this._newHead$.pipe(cW((e=>{var t,r;const n=null!==(r=null===(t=this.lastHead)||void 0===t?void 0:t.header.level)&&void 0!==r?r:e.header.level-1;return kK(n+1,e.header.level-n-1).pipe(hW((e=>this.context.readProvider.getBlock(e))),fW(e))})),pW((e=>this.lastHead=e)),mW({connector:()=>new cK(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),this.confirmed$=this.newHead$.pipe(VK((e=>{for(const t of e.operations)for(const r of t)if(r.hash===this.opHash)return this._included=!0,this._includedInBlock.next(e),this._operationResult.next(r.contents),e})),yW((e=>"undefined"!==typeof e)),xW(),mW({connector:()=>new cK(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),dc(this.opHash)!==Zs.VALID)throw new gs(this.opHash);this.confirmed$.pipe(xW(),_W((()=>zK(void 0)))).subscribe()}getCurrentConfirmation(){return vQ(this,void 0,void 0,(function*(){return this._included?WK([this._includedInBlock,DK(this.context.readProvider.getBlock("head"))]).pipe(VK((([e,t])=>t.header.level-e.header.level+1)),xW()).toPromise():0}))}isInCurrentBranch(e="head"){return vQ(this,void 0,void 0,(function*(){if(!this._included)return!0;const t=yield this.context.readProvider.getBlockLevel(e),r=yield this._includedInBlock.pipe(xW()).toPromise();if(!r)throw new C0("Inclusion block is undefined");const n=t-r.header.level;if(n<=0)return!0;const i=Math.min(r.header.level+n,r.header.level+60);return new Set(yield this.context.readProvider.getLiveBlocks(i)).has(r.hash)}))}confirmationObservable(e){if("undefined"!==typeof e&&e<1)throw new x0(e);const{defaultConfirmationCount:t}=this.context.config,r=void 0!==e?e:t;if(void 0===r)throw new O0;return WK([this._includedInBlock,this.newHead$]).pipe(SW((([,e],[,t])=>e.hash===t.hash)),VK((([e,t])=>({block:t,expectedConfirmation:r,currentConfirmation:t.header.level-e.header.level+1,completed:t.header.level-e.header.level>=r-1,isInCurrentBranch:()=>this.isInCurrentBranch(t.hash)}))),(n=({completed:e})=>!e,void 0===(i=!0)&&(i=!1),CK((function(e,t){var r=0;e.subscribe(jK(t,(function(e){var o=n(e,r++);(o||i)&&t.next(e),!o&&t.complete()})))}))));var n,i}confirmation(e){return this.confirmationObservable(e).toPromise()}}class R0 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new C0("operationResult returned undefined");return e.find((e=>e.kind===Pq.REVEAL))}))}transactionOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new C0("operationResult returned undefined");return e.find((e=>e.kind===Pq.TRANSACTION))}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.transactionOperation();return e?e.metadata.operation_result.status:"unknown"}))}}class I0 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}originationOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return l0(e,Pq.ORIGINATION);throw new C0("Unable to fetch operation result")}))}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return l0(e,Pq.REVEAL);throw new C0("Unable to fetch operation result")}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.originationOperation();return e?e.metadata.operation_result.status:"unknown"}))}contract(){return vQ(this,void 0,void 0,(function*(){const e=yield this.originationOperation(),t=((null===e||void 0===e?void 0:e.metadata.operation_result.originated_contracts)||[])[0];return this.context.wallet.at(t)}))}}class M0 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.REVEAL));throw new C0("Unable to fetch operation result")}))}delegationOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.DELEGATION));throw new C0("Unable to fetch operation result")}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.delegationOperation();return e?e.metadata.operation_result.status:"unknown"}))}}class L0{constructor(e){this.context=e}getPKH(){return vQ(this,void 0,void 0,(function*(){return this.context.signer.publicKeyHash()}))}mapTransferParamsToWalletParams(e){return vQ(this,void 0,void 0,(function*(){return c0(yield e(),Pq.TRANSACTION)}))}mapOriginateParamsToWalletParams(e){return vQ(this,void 0,void 0,(function*(){return c0(yield e(),Pq.ORIGINATION)}))}mapDelegateParamsToWalletParams(e){return vQ(this,void 0,void 0,(function*(){return c0(yield e(),Pq.DELEGATION)}))}mapIncreasePaidStorageWalletParams(e){return vQ(this,void 0,void 0,(function*(){return c0(yield e(),Pq.INCREASE_PAID_STORAGE)}))}sendOperations(e){return vQ(this,void 0,void 0,(function*(){return(yield this.context.batch.batch(e).send()).hash}))}sign(e,t){return vQ(this,void 0,void 0,(function*(){const{prefixSig:r}=yield this.context.signer.sign(e,t);return r}))}getPK(){return this.context.signer.publicKey()}}class N0{constructor(e,t,r,n,i="unit",o=!0,a=!1){this.provider=e,this.address=t,this.parameterSchema=r,this.name=n,this.args=i,this.isMultipleEntrypoint=o,this.isAnonymous=a}getSignature(){return this.isAnonymous?this.parameterSchema.ExtractSchema()[this.name]:this.parameterSchema.ExtractSchema()}send(e={}){return this.provider instanceof T0?this.provider.transfer(this.toTransferParams(e)).send():this.provider.transfer(this.toTransferParams(e))}toTransferParams({fee:e,gasLimit:t,storageLimit:r,source:n,amount:i=0,mutez:o=!1}={}){return{to:this.address,amount:i,fee:e,mutez:o,source:n,gasLimit:t,storageLimit:r,parameter:{entrypoint:this.isMultipleEntrypoint?this.name:U0,value:this.isAnonymous?this.parameterSchema.EncodeObject({[this.name]:this.args}):this.parameterSchema.EncodeObject(this.args)}}}}class D0{constructor(e,t,r,n,i,o=!0,a=!1){this.provider=e,this.address=t,this.parameterSchema=r,this.name=n,this.args=i,this.isMultipleEntrypoint=o,this.isAnonymous=a}validateArgs(e,t,r){const n=t.ExtractSignatures();if(!n.find((t=>t.length===e.length)))throw new HQ(r,n,e)}get schema(){return this.isAnonymous?this.parameterSchema.ExtractSchema()[this.name]:this.parameterSchema.ExtractSchema()}getSignature(){if(!this.isAnonymous){const e=this.parameterSchema.ExtractSignatures();return 1==e.length?e[0]:e}{const e=this.parameterSchema.ExtractSignatures().find((e=>e[0]===this.name));if(e)return e.shift(),e}}send(e={}){return this.provider instanceof T0?this.provider.transfer(this.toTransferParams(e)).send():this.provider.transfer(this.toTransferParams(e))}toTransferParams({fee:e,gasLimit:t,storageLimit:r,source:n,amount:i=0,mutez:o=!1}={}){return{to:this.address,amount:i,fee:e,mutez:o,source:n,gasLimit:t,storageLimit:r,parameter:{entrypoint:this.isMultipleEntrypoint?this.name:U0,value:this.isAnonymous?this.parameterSchema.Encode(this.name,...this.args):this.parameterSchema.Encode(...this.args)}}}}class z0{constructor(e,t,r,n,i,o="Unit"){this._rpc=e,this._readProvider=t,this._contractAddress=r,this._smartContractViewSchema=n,this._contractStorageType=i,this._args=o}getSignature(){return{parameter:this._smartContractViewSchema.extractArgsSchema(),result:this._smartContractViewSchema.extractResultSchema()}}executeView(e){return vQ(this,void 0,void 0,(function*(){this.verifyContextExecution(e);const t=yield this._readProvider.getChainId(),r=this.transformArgsToMichelson(),n={contract:this._contractAddress,view:this._smartContractViewSchema.viewName,input:r,chain_id:t,source:e.viewCaller};return e.source&&(n.payer=e.source),this.executeViewAndDecodeResult(n)}))}verifyContextExecution(e){if(e.source&&oc(e.source)!==Zs.VALID)throw new ZQ(`The source account who initialized the view execution is invalid: ${e.source}.`);if(!e.viewCaller||oc(e.viewCaller)!==Zs.VALID)throw new ZQ(`The contract which is the caller of view is invalid: ${e.viewCaller}.`)}transformArgsToMichelson(){try{return this._smartContractViewSchema.encodeViewArgs(this._args)}catch(e){throw new us(this._smartContractViewSchema.viewName,this.getSignature(),this._args,e)}}adaptViewCodeToContext(e,t,r){const n={BALANCE:[{prim:"PUSH",args:[{prim:"mutez"},{int:r}]}],SENDER:[{prim:"PUSH",args:[{prim:"address"},{string:t}]}],SELF_ADDRESS:[{prim:"PUSH",args:[{prim:"address"},{string:this._contractAddress}]}],AMOUNT:[{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]}]};return e.forEach(((i,o)=>{i.prim in n&&(e[o]=Object(n)[i.prim]),i.args&&0!==i.args.length?this.adaptViewCodeToContext(i.args,t,r):Array.isArray(i)&&this.adaptViewCodeToContext(i,t,r)})),e}executeViewAndDecodeResult(e){return vQ(this,void 0,void 0,(function*(){let t;try{t=(yield this._rpc.runScriptView(e)).data}catch(r){const e=(e=>{if(GQ(e.body)){const t=JSON.parse(e.body);if(Array.isArray(t)&&"with"in t[t.length-1])return t[t.length-1].with}})(r);throw e?new WQ(`The simulation of the on-chain view named ${this._smartContractViewSchema.viewName} failed with: ${JSON.stringify(e)}`,this._smartContractViewSchema.viewName,e,r):r}return this._smartContractViewSchema.decodeViewResult(t)}))}}class B0{constructor(e,t){this.provider=e,this.contractAddress=t}createContractMethodFlatParams(e,t,r,n=!0,i=!1){return new D0(this.provider,this.contractAddress,e,t,r,n,i)}createContractMethodObjectParam(e,t,r,n=!0,i=!1){return new N0(this.provider,this.contractAddress,e,t,r,n,i)}createContractViewObjectParam(e,t,r,n,i){return new z0(e,t,this.contractAddress,r,n,i)}}const U0="default";class F0{constructor(e,t,r,n,i,o,a){this.currentContract=e,this.name=t,this.callbackParametersSchema=r,this.parameterSchema=n,this.args=i,this.rpc=o,this.readProvider=a}read(e){return vQ(this,void 0,void 0,(function*(){const t=ac(null!==e&&void 0!==e?e:"");if(sc(null!==e&&void 0!==e?e:"")==Zs.VALID)throw new ys("Since version 12, the lambda view no longer depends on a lambda contract. The read method no longer accepts a contract address as a parameter.");if(e&&t!==Zs.VALID)throw new ps(e,hc(t));const r=this.parameterSchema.Encode(...this.args),n=yield this.rpc.runView({contract:this.currentContract.address,entrypoint:this.name,input:r,chain_id:e||(yield this.readProvider.getChainId())});return this.callbackParametersSchema.Execute(n.data)}))}}class $0{constructor(e,t,r,n,i,o,a){this.address=e,this.script=t,this.storageProvider=n,this.entrypoints=i,this.rpc=o,this.readProvider=a,this.methods={},this.methodsObject={},this.views={},this.contractViews={},this.contractMethodFactory=new B0(r,e),this.schema=_Z.fromRPCResponse({script:this.script}),this.parameterSchema=SZ.fromRPCResponse({script:this.script}),this.viewSchema=kZ.fromRPCResponse({script:this.script}),0!==this.viewSchema.length&&this._initializeOnChainViews(this,o,this.readProvider,this.viewSchema),this.eventSchema=EZ.fromRPCResponse({script:this.script}),this._initializeMethods(this,this.entrypoints.entrypoints,this.rpc,this.readProvider)}_initializeMethods(e,t,r,n){const i=this.parameterSchema,o=Object.keys(t);if(i.isMultipleEntryPoint){o.forEach((i=>{const o=new SZ(t[i]);if(this.methods[i]=function(...t){return e.contractMethodFactory.createContractMethodFlatParams(o,i,t)},this.methodsObject[i]=function(t){return e.contractMethodFactory.createContractMethodObjectParam(o,i,t)},(e=>{let t=!1;if("prim"in e&&"pair"===e.prim&&e.args){const r=e.args[e.args.length-1];"prim"in r&&"contract"===r.prim&&(t=!0)}return t})(t[i])){const o=function(...o){const a=t[i].args[0],s=new SZ(a),c=t[i].args[1].args[0],l=new SZ(c);return((e,t,r)=>{const n=t.ExtractSignatures();if(!n.find((t=>t.length===e.length)))throw new HQ(r,n,e)})(o,s,i),new F0(e,i,l,s,o,r,n)};this.views[i]=o}}));const a=Object.keys(i.ExtractSchema()).filter((e=>-1===Object.keys(t).indexOf(e)));a.forEach((t=>{this.methods[t]=function(...r){return e.contractMethodFactory.createContractMethodFlatParams(i,t,r,!1,!0)},this.methodsObject[t]=function(r){return e.contractMethodFactory.createContractMethodObjectParam(i,t,r,!1,!0)}}))}else{const t=this.parameterSchema;this.methods[U0]=function(...r){return e.contractMethodFactory.createContractMethodFlatParams(t,U0,r,!1)},this.methodsObject[U0]=function(r){return e.contractMethodFactory.createContractMethodObjectParam(t,U0,r,!1)}}}_initializeOnChainViews(e,t,r,n){const i=this.schema.val;n.forEach((n=>{this.contractViews[n.viewName]=function(o){return e.contractMethodFactory.createContractViewObjectParam(t,r,n,i,o)}}))}storage(){return this.storageProvider.getStorage(this.address,this.schema)}bigMap(e){return this.storageProvider.getBigMapKey(this.address,e,this.schema)}}const H0=e=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"key_hash"},{string:e}]},{prim:"SOME"},{prim:"SET_DELEGATE"},{prim:"CONS"}],V0=()=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"NONE",args:[{prim:"key_hash"}]},{prim:"SET_DELEGATE"},{prim:"CONS"}],q0=(e,t)=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"key_hash"},{string:e}]},{prim:"IMPLICIT_ACCOUNT"},{prim:"PUSH",args:[{prim:"mutez"},{int:`${t}`}]},{prim:"UNIT"},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}],K0=(e,t)=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"address"},{string:e}]},{prim:"CONTRACT",args:[{prim:"unit"}]},{prim:"IF_NONE",args:[[{prim:"UNIT"},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:`${t}`}]},{prim:"UNIT"},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}];class W0{constructor(e,t){this.id=e,this.provider=t}getSaplingDiff(e){return vQ(this,void 0,void 0,(function*(){return this.provider.getSaplingDiffByID(this.id.toString(),e)}))}getId(){return this.id.toString()}}class G0{constructor(e,t,r){this.id=e,this.schema=t,this.provider=r}get(e,t){return vQ(this,void 0,void 0,(function*(){try{return yield this.provider.getBigMapKeyByID(this.id.toString(),e,this.schema,t)}catch(r){if(r instanceof cq&&r.status===iq.NOT_FOUND)return;throw r}}))}getMultipleValues(e,t,r=5){return vQ(this,void 0,void 0,(function*(){return this.provider.getBigMapKeysByID(this.id.toString(),e,this.schema,t,r)}))}toJSON(){return this.id.toString()}toString(){return this.id.toString()}}const Z0=e=>({big_map:(t,r)=>{if(t&&"int"in t&&void 0!==t.int){const n=new _Z(r);return new G0(new Us(t.int),n,e)}return{}},sapling_state:t=>t&&"int"in t&&void 0!==t.int?new W0(new Us(t.int),e):{}});var Y0;const X0=(e,t)=>{var r,n,i;return{fee:null!==(r=e.fee)&&void 0!==r?r:t.fee,gasLimit:null!==(n=e.gasLimit)&&void 0!==n?n:t.gasLimit,storageLimit:null!==(i=e.storageLimit)&&void 0!==i?i:t.storageLimit}};class J0 extends A0{constructor(e){super(e),this.context=e,Y0.set(this,void 0),bQ(this,Y0,{},"f")}getBlockHash(e){return vQ(this,void 0,void 0,(function*(){return this.context.readProvider.getBlockHash(null!==e&&void 0!==e?e:"head~2")}))}getProtocolHash(){return vQ(this,void 0,void 0,(function*(){return this.context.readProvider.getNextProtocol("head")}))}getHeadCounter(e){var t;return vQ(this,void 0,void 0,(function*(){return null!==(t=this.context.readProvider.getCounter(e,"head"))&&void 0!==t?t:"0"}))}adjustGasForBatchOperation(e,t,r){return Us.min(t,e.div(r+1))}getAccountLimits(e,t,r){return vQ(this,void 0,void 0,(function*(){const n=yield this.context.readProvider.getBalance(e,"head"),{hard_gas_limit_per_operation:i,hard_gas_limit_per_block:o,hard_storage_limit_per_operation:a,cost_per_byte:s}=t;return{fee:0,gasLimit:r?Math.floor(this.adjustGasForBatchOperation(o,i,r).toNumber()):i.toNumber(),storageLimit:Math.floor(Us.min(n.dividedBy(s),a).toNumber())}}))}getFee(e,t,r){(!yQ(this,Y0,"f")[t]||yQ(this,Y0,"f")[t]{switch(e.kind){case Pq.ACTIVATION:case Pq.DRAIN_DELEGATE:return Object.assign({},e);case Pq.ORIGINATION:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{balance:"undefined"!==typeof e.balance?`${e.balance}`:"0"}),this.getSource(e,r,n)),this.getFee(e,r,t));case Pq.TRANSACTION:{const i=Object.assign(Object.assign(Object.assign(Object.assign({},e),{amount:"undefined"!==typeof e.amount?`${e.amount}`:"0"}),this.getSource(e,r,n)),this.getFee(e,r,t));if(i.source.toLowerCase().startsWith("kt1"))throw new ys(`KT1 addresses are not supported as source since ${BQ.PsBabyM1}`);return i}case Pq.REVEAL:case Pq.DELEGATION:case Pq.REGISTER_GLOBAL_CONSTANT:case Pq.UPDATE_CONSENSUS_KEY:case Pq.SMART_ROLLUP_ADD_MESSAGES:case Pq.SMART_ROLLUP_ORIGINATE:return Object.assign(Object.assign(Object.assign({},e),this.getSource(e,r,n)),this.getFee(e,r,t));case Pq.TRANSFER_TICKET:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{ticket_amount:`${e.ticket_amount}`}),this.getSource(e,r,n)),this.getFee(e,r,t));case Pq.INCREASE_PAID_STORAGE:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{amount:`${e.amount}`}),this.getSource(e,r,n)),this.getFee(e,r,t));case Pq.BALLOT:case Pq.PROPOSALS:if(void 0===i)throw new S0("Failed to get the current voting period index");return Object.assign(Object.assign({},e),{period:null===i||void 0===i?void 0:i.voting_period.index});default:throw new vs(e.kind)}}))}activate({pkh:e,secret:t}){return vQ(this,void 0,void 0,(function*(){const r=yield(({pkh:e,secret:t})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.ACTIVATION,pkh:e,secret:t}})))({pkh:e,secret:t}),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();bQ(this,Y0,{},"f");const a=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:i,contents:this.constructOpContents(n,a,e),protocol:o},counter:a}}))}reveal({fee:e,gasLimit:t,storageLimit:r}){return vQ(this,void 0,void 0,(function*(){const{pkh:n,publicKey:i}=yield this.getKeys();if(!i)throw new ws(n);const o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(n,o),s=X0({fee:e,storageLimit:r,gasLimit:t},a),c=yield r0({fee:s.fee,gasLimit:s.gasLimit,storageLimit:s.storageLimit},n,i),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(n),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,n),protocol:d},counter:h}}))}originate(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield QQ(yield this.context.parser.prepareCodeOrigination(Object.assign(Object.assign({},o),X0({fee:r,storageLimit:n,gasLimit:i},s)))),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();bQ(this,Y0,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,t),protocol:h},counter:f}}))}transaction(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield e0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}delegation(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield t0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}registerDelegate({fee:e,storageLimit:t,gasLimit:r},n){return vQ(this,void 0,void 0,(function*(){const{pkh:i}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(i,o),s=X0({fee:e,storageLimit:t,gasLimit:r},a),c=yield(({fee:e=jQ,gasLimit:t=kQ,storageLimit:r=LQ},n)=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.DELEGATION,fee:e,gas_limit:t,storage_limit:r,delegate:n}})))({fee:s.fee,storageLimit:s.storageLimit,gasLimit:s.gasLimit},i),l=yield this.addRevealOperationIfNeeded(c,i),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();bQ(this,Y0,{},"f");const f=parseInt(yield this.getHeadCounter(i),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,i,n),protocol:h},counter:f}}))}registerGlobalConstant(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield n0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}updateConsensusKey(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield(({source:e,fee:t,gasLimit:r,storageLimit:n,pk:i})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.UPDATE_CONSENSUS_KEY,source:e,fee:t,gas_limit:r,storage_limit:n,pk:i}})))(Object.assign(Object.assign({},o),X0({fee:r,storageLimit:n,gasLimit:i},s))),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();bQ(this,Y0,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,t),protocol:h},counter:f}}))}increasePaidStorage(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield o0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}ballot(e){return vQ(this,void 0,void 0,(function*(){const{pkh:t}=yield this.getKeys(),r=yield(({source:e,proposal:t,ballot:r})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.BALLOT,source:e,proposal:t,ballot:r}})))(Object.assign({},e)),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();bQ(this,Y0,{},"f");const a=parseInt(yield this.getHeadCounter(t),10);let s;try{s=yield this.rpc.getCurrentPeriod()}catch(c){throw new S0("Failed to get the current voting period index")}return{opOb:{branch:i,contents:this.constructOpContents(n,a,t,void 0,s),protocol:o},counter:a}}))}proposals(e){return vQ(this,void 0,void 0,(function*(){const{pkh:t}=yield this.getKeys(),r=yield(({source:e,proposals:t})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.PROPOSALS,source:e,proposals:t}})))(Object.assign({},e)),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();bQ(this,Y0,{},"f");const a=parseInt(yield this.getHeadCounter(t),10);let s;try{s=yield this.rpc.getCurrentPeriod()}catch(c){throw new S0("Failed to get the current voting period index")}return{opOb:{branch:i,contents:this.constructOpContents(n,a,t,void 0,s),protocol:o},counter:a}}))}drainDelegate(e,t){return vQ(this,void 0,void 0,(function*(){const{pkh:r}=yield this.getKeys(),n=yield(({consensus_key:e,delegate:t,destination:r})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.DRAIN_DELEGATE,consensus_key:e,delegate:t,destination:r}})))(Object.assign({},e)),i=this.convertIntoArray(n),o=yield this.getBlockHash(),a=yield this.getProtocolHash();bQ(this,Y0,{},"f");const s=parseInt(yield this.getHeadCounter(r),10);return{opOb:{branch:o,contents:this.constructOpContents(i,s,r,t),protocol:a},counter:s}}))}transferTicket(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield i0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}smartRollupAddMessages(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield a0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}smartRollupOriginate(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.rpc.getOriginationProof({kind:i.pvmKind,kernel:i.kernel}),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield s0(Object.assign(Object.assign(Object.assign({},X0({fee:t,storageLimit:r,gasLimit:n},s)),i),{originationProof:o})),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();bQ(this,Y0,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,i.source),protocol:h},counter:f}}))}batch(e,t){return vQ(this,void 0,void 0,(function*(){const{pkh:r,publicKey:n}=yield this.getKeys(),i=yield this.context.readProvider.getProtocolConstants("head"),o=yield this.getAccountLimits(r,i,e.length),a=yield this.isRevealOpNeeded(e,r),s=[];if(t)for(const d of e)if(d0(d)){const e=t.shift(),r=X0(d,{fee:e.suggestedFeeMutez,storageLimit:e.storageLimit,gasLimit:e.gasLimit});s.push(yield this.getRPCOp(Object.assign(Object.assign({},d),r)))}else s.push(Object.assign({},d));else for(const t of e)if(d0(t)){const e=X0(t,o);s.push(yield this.getRPCOp(Object.assign(Object.assign({},t),e)))}else s.push(Object.assign({},t));if(a){if(!n)throw new ws(r);s.unshift(yield r0({fee:MQ,storageLimit:zQ,gasLimit:FQ(r)},r,n))}const c=yield this.getBlockHash(),l=yield this.getProtocolHash();bQ(this,Y0,{},"f");const u=parseInt(yield this.getHeadCounter(r),10);return{opOb:{branch:c,contents:this.constructOpContents(s,u,r),protocol:l},counter:u}}))}contractCall(e){var t,r,n;return vQ(this,void 0,void 0,(function*(){const i=yield this.getBlockHash(),o=yield this.getProtocolHash(),{pkh:a}=yield this.getKeys();bQ(this,Y0,{},"f");const s=parseInt(yield this.getHeadCounter(a),10),c=e.toTransferParams(),l=yield this.context.readProvider.getProtocolConstants("head"),u=yield this.getAccountLimits(a,l),d=X0({fee:c.fee,storageLimit:c.storageLimit,gasLimit:c.gasLimit},u),h={kind:Pq.TRANSACTION,fee:null!==(t=c.fee)&&void 0!==t?t:d.fee,gas_limit:null!==(r=c.gasLimit)&&void 0!==r?r:d.gasLimit,storage_limit:null!==(n=c.storageLimit)&&void 0!==n?n:d.storageLimit,amount:String(c.amount),destination:c.to,parameters:c.parameter},f=yield this.addRevealOperationIfNeeded(h,a),p=this.convertIntoArray(f);return{opOb:{branch:i,contents:this.constructOpContents(p,s,a),protocol:o},counter:s}}))}toPreapply(e){return vQ(this,void 0,void 0,(function*(){const{opOb:{contents:t,branch:r,protocol:n}}=e,i=this.toForge(e),o=yield this.context.forger.forge(i);return[{contents:t,branch:r,protocol:n,signature:(yield this.context.signer.sign(o,new Uint8Array([3]))).prefixSig}]}))}toForge({opOb:{contents:e,branch:t}}){return{branch:t,contents:e}}}Y0=new WeakMap;const Q0=[Pq.ACTIVATION,Pq.ORIGINATION,Pq.TRANSACTION,Pq.DELEGATION];class e1 extends A0{constructor(e,t){super(e),this.estimator=t,this.operations=[],this.prepare=new J0(this.context)}withTransfer(e){const t=oc(e.to);if(e.amount<0)throw new as(e.amount.toString());if(t!==Zs.VALID)throw new is(e.to,hc(t));return this.operations.push(Object.assign({kind:Pq.TRANSACTION},e)),this}withTransferTicket(e){const t=oc(e.destination);if(t!==Zs.VALID)throw new is(e.destination,hc(t));return this.operations.push(Object.assign({kind:Pq.TRANSFER_TICKET},e)),this}withContractCall(e,t={}){return this.withTransfer(e.toTransferParams(t))}withDelegation(e){var t;const r=oc(e.source);if(e.source&&r!==Zs.VALID)throw new is(e.source,hc(r));const n=oc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&n!==Zs.VALID)throw new is(e.delegate,hc(n));return this.operations.push(Object.assign({kind:Pq.DELEGATION},e)),this}withActivation({pkh:e,secret:t}){const r=cc(e);if(r!==Zs.VALID)throw new ms(e,hc(r));return this.operations.push({kind:Pq.ACTIVATION,pkh:e,secret:t}),this}withOrigination(e){return this.operations.push(Object.assign({kind:Pq.ORIGINATION},e)),this}withRegisterGlobalConstant(e){return this.operations.push(Object.assign({kind:Pq.REGISTER_GLOBAL_CONSTANT},e)),this}withIncreasePaidStorage(e){return this.operations.push(Object.assign({kind:Pq.INCREASE_PAID_STORAGE},e)),this}withSmartRollupAddMessages(e){return this.operations.push(Object.assign({kind:Pq.SMART_ROLLUP_ADD_MESSAGES},e)),this}withSmartRollupOriginate(e){return this.operations.push(Object.assign({kind:Pq.SMART_ROLLUP_ORIGINATE},e)),this}getRPCOp(e){return vQ(this,void 0,void 0,(function*(){switch(e.kind){case Pq.TRANSACTION:return e0(Object.assign({},e));case Pq.ORIGINATION:return QQ(yield this.context.parser.prepareCodeOrigination(Object.assign({},e)));case Pq.DELEGATION:return t0(Object.assign({},e));case Pq.REGISTER_GLOBAL_CONSTANT:return n0(Object.assign({},e));case Pq.INCREASE_PAID_STORAGE:return o0(Object.assign({},e));case Pq.TRANSFER_TICKET:return i0(Object.assign({},e));case Pq.SMART_ROLLUP_ADD_MESSAGES:return a0(Object.assign({},e));case Pq.SMART_ROLLUP_ORIGINATE:return s0(Object.assign({},e));default:throw new vs(JSON.stringify(e.kind))}}))}with(e){for(const t of e)switch(t.kind){case Pq.TRANSACTION:this.withTransfer(t);break;case Pq.ORIGINATION:this.withOrigination(t);break;case Pq.DELEGATION:this.withDelegation(t);break;case Pq.ACTIVATION:this.withActivation(t);break;case Pq.REGISTER_GLOBAL_CONSTANT:this.withRegisterGlobalConstant(t);break;case Pq.INCREASE_PAID_STORAGE:this.withIncreasePaidStorage(t);break;case Pq.TRANSFER_TICKET:this.withTransferTicket(t);break;case Pq.SMART_ROLLUP_ADD_MESSAGES:this.withSmartRollupAddMessages(t);break;case Pq.SMART_ROLLUP_ORIGINATE:this.withSmartRollupOriginate(t);break;default:throw new vs(JSON.stringify(t.kind))}return this}send(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=e&&e.source||t,n=yield this.estimator.batch(this.operations);n.length!==this.operations.length&&n.shift();const i=yield this.prepare.batch(this.operations,n),o=yield this.forge(i),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new E0(a,i.opOb.contents,r,c,l,s)}))}}class t1{constructor(e,t){this.context=e,this.estimator=t}batch(e){const t=new e1(this.context,this.estimator);return Array.isArray(e)&&t.with(e),t}}class r1 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t,this.getOriginatedContractAddresses=()=>vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e){const t=e.filter((e=>"origination"===e.kind));let r=[];for(const e of t)e.metadata.operation_result.originated_contracts&&(r=[...r,...e.metadata.operation_result.originated_contracts]);return r}throw new C0("Unable to fetch operation results")}))}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.REVEAL));throw new C0("Unable to fetch operation results")}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.operationResults();if(e)return e.filter((e=>-1!==Q0.indexOf(e.kind))).map((e=>{if(p0(e)){return e.metadata.operation_result.status}return"unknown"}))[0]||"unknown";throw new C0("Unable to fetch operation results")}))}}class n1 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.REVEAL));throw new C0("Unable to fetch operation result")}))}increasePaidStorageOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.INCREASE_PAID_STORAGE));throw new C0("Unable to fetch operation result")}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.increasePaidStorageOperation();return e?e.metadata.operation_result.status:"unknown"}))}}const i1=(e,t,r)=>{return e.pipe((n=1e3*t.config.confirmationPollingTimeoutSecond,function(e){return new lK(null).pipe(uW({each:n,with:()=>uK((()=>new _0("Confirmation polling timed out")))}),ZK((()=>e)))}),mW({connector:()=>new cK(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1}));var n};class o1{constructor(e){this.context=e,this.sharedHeadObs=_K((()=>SQ(this.context.stream.subscribeBlock("head"))))}createNewHeadObservable(){return vQ(this,void 0,void 0,(function*(){return i1(this.sharedHeadObs,this.context)}))}createPastBlockWalker(e,t=1){return DK(this.context.readProvider.getBlock(e)).pipe(cW((e=>1===t?zK(e):kK(e.header.level,t-1).pipe(function(){for(var e=[],t=0;tvQ(this,void 0,void 0,(function*(){return this.context.readProvider.getBlock("number"===typeof e?e:e.header.level)}))))))))}createHeadObservableFromConfig({blockIdentifier:e}){return vQ(this,void 0,void 0,(function*(){const t=[];return e&&t.push(this.createPastBlockWalker(e)),t.push(yield this.createNewHeadObservable()),XK(...t)}))}createOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new j0(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createBatchOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new r1(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createTransactionOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new R0(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createDelegationOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new M0(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createOriginationOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new I0(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createIncreasePaidStorageOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new n1(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}}class a1 extends A0{constructor(e){super(e),this.prepare=new J0(this.context)}getBalance(e){return vQ(this,void 0,void 0,(function*(){const t=oc(e);if(t!==Zs.VALID)throw new is(e,hc(t));return this.context.readProvider.getBalance(e,"head")}))}getDelegate(e){return vQ(this,void 0,void 0,(function*(){const t=oc(e);if(t!==Zs.VALID)throw new is(e,hc(t));return this.context.readProvider.getDelegate(e,"head")}))}activate(e,t){return vQ(this,void 0,void 0,(function*(){const r=cc(e);if(r!==Zs.VALID)throw new ms(e,hc(r));const n=yield this.prepare.activate({pkh:e,secret:t}),i=yield this.forge(n),o=`${i.opbytes}00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`;return new k0(yield this.rpc.injectOperation(o),Object.assign(Object.assign({},i),{opbytes:o}),[],this.context.clone())}))}}const s1=100;class c1{constructor(e,t,r,n,i=100){this._milligasLimit=e,this._storageLimit=t,this.opSize=r,this.minimalFeePerStorageByteMutez=n,this.baseFeeMutez=i}get burnFeeMutez(){return this.roundUp(Number(this.storageLimit)*Number(this.minimalFeePerStorageByteMutez))}get storageLimit(){const e=Math.max(Number(this._storageLimit),0);return e>0?e:0}get gasLimit(){return this.roundUp(Number(this._milligasLimit)/1e3+100)}get operationFeeMutez(){return.1*(Number(this._milligasLimit)/1e3+100)+1*Number(this.opSize)}roundUp(e){return Math.ceil(Number(e))}get minimalFeeMutez(){return this.roundUp(s1+this.operationFeeMutez)}get suggestedFeeMutez(){return this.roundUp(this.operationFeeMutez+200)}get usingBaseFeeMutez(){return Math.max(Number(this.baseFeeMutez),s1)+this.roundUp(this.operationFeeMutez)}get totalCost(){return this.minimalFeeMutez+this.burnFeeMutez}get consumedMilligas(){return Number(this._milligasLimit)}static createEstimateInstanceFromProperties(e){let t,r=0,n=0,i=0,o=0;return e.forEach((e=>{r+=e.milligasLimit,n+=e.storageLimit,i+=e.opSize,o=Math.max(e.minimalFeePerStorageByteMutez,o),e.baseFeeMutez&&(t=t?t+e.baseFeeMutez:e.baseFeeMutez)})),new c1(r,n,i,o,t)}static createArrayEstimateInstancesFromProperties(e){return e.map((e=>new c1(e.milligasLimit,e.storageLimit,e.opSize,e.minimalFeePerStorageByteMutez,e.baseFeeMutez)))}}class l1 extends Ja{constructor(){super(),this.name="RevealEstimateError",this.message="Public key is unknown, unable to estimate the reveal operation in Wallet API."}}class u1 extends A0{constructor(){super(...arguments),this.ALLOCATION_STORAGE=257,this.ORIGINATION_STORAGE=257,this.OP_SIZE_REVEAL=128,this.prepare=new J0(this.context)}getKeys(){return vQ(this,void 0,void 0,(function*(){const e=this.context.isAnySignerConfigured();return{publicKeyHash:e?yield this.signer.publicKeyHash():yield this.context.walletProvider.getPKH(),publicKey:e?yield this.signer.publicKey():void 0}}))}getEstimationPropertiesFromOperationContent(e,t,r){const n=v0({contents:[e]});let i=0,o=0;return n.forEach((e=>{o+="originated_contracts"in e&&"undefined"!==typeof e.originated_contracts?e.originated_contracts.length*this.ORIGINATION_STORAGE:0,o+="allocated_destination_contract"in e?this.ALLOCATION_STORAGE:0,i+=Number(e.consumed_milligas)||0,o+="paid_storage_size_diff"in e&&Number(e.paid_storage_size_diff)||0,o+="storage_size"in e&&"global_address"in e&&Number(e.storage_size)||0,o+="genesis_commitment_hash"in e?Number(e.size):0})),d0(e)?{milligasLimit:i||0,storageLimit:Number(o||0),opSize:t,minimalFeePerStorageByteMutez:r.toNumber()}:{milligasLimit:0,storageLimit:0,opSize:t,minimalFeePerStorageByteMutez:r.toNumber(),baseFeeMutez:0}}calculateEstimates(e,t){return vQ(this,void 0,void 0,(function*(){const{opbytes:r,opOb:{branch:n,contents:i}}=yield this.forge(e),o={operation:{branch:n,contents:i},chain_id:yield this.context.readProvider.getChainId()},{opResponse:a}=yield this.simulate(o),{cost_per_byte:s}=t,c=[...y0(a,"backtracked"),...y0(a)];if(c.length)throw new m0(c,"Error occurred during estimation");let l=1;return Array.isArray(e.opOb.contents)&&e.opOb.contents.length>1&&(l="reveal"===a.contents[0].kind?e.opOb.contents.length-1:e.opOb.contents.length),a.contents.map((e=>this.getEstimationPropertiesFromOperationContent(e,"reveal"===e.kind?this.OP_SIZE_REVEAL/2:r.length/2/l,s)))}))}originate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.prepare.originate(e),r=yield this.context.readProvider.getProtocolConstants("head"),n=yield this.calculateEstimates(t,r);return"reveal"===t.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}transfer(e){var t,{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const e=oc(o.to);if(e!==Zs.VALID)throw new is(o.to,hc(e));const a=oc(null!==(t=o.source)&&void 0!==t?t:"");if(o.source&&a!==Zs.VALID)throw new is(o.source,hc(a));if(o.amount<0)throw new as(o.amount.toString());const s=yield this.prepare.transaction(Object.assign({fee:r,storageLimit:n,gasLimit:i},o)),c=yield this.context.readProvider.getProtocolConstants("head"),l=yield this.calculateEstimates(s,c);return"reveal"===s.opOb.contents[0].kind&&l.shift(),c1.createEstimateInstanceFromProperties(l)}))}transferTicket(e){var t,{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const e=oc(o.destination);if(e!==Zs.VALID)throw new is(o.destination,hc(e));const a=oc(null!==(t=o.source)&&void 0!==t?t:"");if(o.source&&a!==Zs.VALID)throw new is(o.source,hc(a));const s=yield this.context.readProvider.getProtocolConstants("head"),c=yield this.prepare.transferTicket(Object.assign({fee:r,storageLimit:n,gasLimit:i},o)),l=yield this.calculateEstimates(c,s);return"reveal"===c.opOb.contents[0].kind&&l.shift(),c1.createEstimateInstanceFromProperties(l)}))}setDelegate(e){var t,{fee:r,gasLimit:n,storageLimit:i}=e,o=gQ(e,["fee","gasLimit","storageLimit"]);return vQ(this,void 0,void 0,(function*(){const e=oc(o.source);if(o.source&&e!==Zs.VALID)throw new is(o.source,hc(e));const a=oc(null!==(t=o.delegate)&&void 0!==t?t:"");if(o.delegate&&a!==Zs.VALID)throw new is(o.delegate,hc(a));const s=yield this.prepare.delegation(Object.assign({fee:r,storageLimit:i,gasLimit:n},o)),c=yield this.context.readProvider.getProtocolConstants("head"),l=yield this.calculateEstimates(s,c);return"reveal"===s.opOb.contents[0].kind&&l.shift(),c1.createEstimateInstanceFromProperties(l)}))}batch(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.batch(e),n=yield this.calculateEstimates(r,t);return c1.createArrayEstimateInstancesFromProperties(n)}))}registerDelegate(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const e=(yield this.getKeys()).publicKeyHash,a=yield this.context.readProvider.getProtocolConstants("head"),s=t||e,c=yield this.prepare.registerDelegate(Object.assign({fee:r,storageLimit:n,gasLimit:i},o),s),l=yield this.calculateEstimates(c,a);return"reveal"===c.opOb.contents[0].kind&&l.shift(),c1.createEstimateInstanceFromProperties(l)}))}reveal(e){return vQ(this,void 0,void 0,(function*(){const{publicKeyHash:t,publicKey:r}=yield this.getKeys();if(!r)throw new l1;if(yield this.isAccountRevealRequired(t)){const t=yield this.context.readProvider.getProtocolConstants("head"),r=e?yield this.prepare.reveal(e):yield this.prepare.reveal({}),n=yield this.calculateEstimates(r,t);return c1.createEstimateInstanceFromProperties(n)}}))}registerGlobalConstant(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const e=yield this.prepare.registerGlobalConstant(Object.assign({fee:t,storageLimit:r,gasLimit:n},i)),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.calculateEstimates(e,o);return"reveal"===e.opOb.contents[0].kind&&a.shift(),c1.createEstimateInstanceFromProperties(a)}))}increasePaidStorage(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){if(i.amount<0)throw new as(i.amount.toString());const e=yield this.context.readProvider.getProtocolConstants("head"),o=yield this.prepare.increasePaidStorage(Object.assign({fee:t,storageLimit:r,gasLimit:n},i)),a=yield this.calculateEstimates(o,e);return"reveal"===o.opOb.contents[0].kind&&a.shift(),c1.createEstimateInstanceFromProperties(a)}))}updateConsensusKey(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.updateConsensusKey(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}smartRollupAddMessages(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.smartRollupAddMessages(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}smartRollupOriginate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.smartRollupOriginate(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}contractCall(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.contractCall(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}}class d1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"delegation"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get delegate(){return this.params.delegate}get isRegisterOperation(){return this.delegate===this.source}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),this.consumedMilliGas?new Bs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class h1 extends k0{constructor(e,t,r,n,i,o){super(e,r,n,i),this.params=t,this.contractProvider=o;const a=this.operationResults&&this.operationResults.originated_contracts;Array.isArray(a)&&(this.contractAddress=a[0])}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"origination"===e.kind)),t=e&&p0(e)&&e.metadata.operation_result;return t||void 0}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),this.consumedMilliGas?new Bs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get storageDiff(){const e=this.operationResults&&this.operationResults.paid_storage_size_diff;return e||void 0}get storageSize(){const e=this.operationResults&&this.operationResults.storage_size;return e||void 0}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}contract(e,t){return vQ(this,void 0,void 0,(function*(){if(!this.contractAddress)throw new b0("No contract was originated in this operation");return yield this.confirmation(e,t),this.contractProvider.at(this.contractAddress)}))}}class f1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r,this.globalConstantHash=this.operationResults&&this.operationResults.global_address}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"register_global_constant"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get registeredExpression(){return this.params.value}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),this.consumedMilliGas?new Bs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}}class p1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"reveal"===e.kind));return e?[e]:[]}get status(){const e=this.operationResults[0];return e?e.metadata.operation_result.status:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get publicKey(){return this.params.public_key}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),new Bs(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(v0({contents:this.operationResults}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(v0({contents:this.operationResults}),"paid_storage_size_diff"))}get storageSize(){return String(this.sumProp(v0({contents:this.operationResults}),"storage_size"))}get errors(){return y0({contents:this.operationResults})}}class m1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"transaction"===e.kind));return e?[e]:[]}get status(){const e=this.operationResults[0];return e?e.metadata.operation_result.status:"unknown"}get amount(){return new Us(this.params.amount)}get destination(){return this.params.destination}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}get consumedGas(){return Us.config({DECIMAL_PLACES:0,ROUNDING_MODE:Us.ROUND_UP}),new Us(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(v0({contents:this.operationResults}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(v0({contents:this.operationResults}),"paid_storage_size_diff"))}get storageSize(){return String(this.sumProp(v0({contents:this.operationResults}),"storage_size"))}get errors(){return y0({contents:this.operationResults})}}class g1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"ballot"===e.kind));return e||void 0}get period(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.period}get proposal(){return this.params.proposal}get ballot(){return this.params.ballot}}class v1 extends k0{constructor(e,t,r,n,i){super(e,r,n,i),this.params=t}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"drain_delegate"===e.kind)),t=e&&e.metadata&&e.metadata.balance_updates;return t||void 0}get consensusKey(){return this.params.consensus_key}get delegate(){return this.params.delegate}get destination(){return this.params.destination}}class y1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>e.kind===Pq.TRANSFER_TICKET)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),this.consumedMilliGas?new Bs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}}class b1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"increase_paid_storage"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get amount(){return this.params.amount}get destination(){return this.params.destination}}class w1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"proposals"===e.kind));return e||void 0}get proposals(){return this.params.proposals}get period(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.period}}class x1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"update_consensus_key"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get pk(){return this.params.pk}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class _1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"smart_rollup_add_messages"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get message(){return this.params.message}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class S1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>e.kind===Pq.SMART_ROLLUP_ORIGINATE)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get pvmKind(){return this.params.pvm_kind}get kernel(){return this.params.kernel}get originationProof(){return this.params.origination_proof}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class k1 extends A0{constructor(e,t){super(e),this.estimator=t,this.contractProviderTypeSymbol=Symbol.for("taquito-contract-provider-type-symbol"),this.prepare=new J0(this.context)}getStorage(e,t){return vQ(this,void 0,void 0,(function*(){const r=sc(e);if(r!==Zs.VALID)throw new fs(e,hc(r));const n=yield this.context.readProvider.getScript(e,"head");let i;return t||(t=n),i=_Z.isSchema(t)?t:_Z.fromRPCResponse({script:t}),i.Execute(n.storage,Z0(this))}))}getBigMapKey(e,t,r){return vQ(this,void 0,void 0,(function*(){const n=sc(e);if(n!==Zs.VALID)throw new fs(e,hc(n));let i;r||(r=(yield this.rpc.getContract(e)).script),i=_Z.isSchema(r)?r:_Z.fromRPCResponse({script:r});const o=i.EncodeBigMapKey(t),a=yield this.rpc.getBigMapKey(e,o);return i.ExecuteOnBigMapValue(a)}))}getBigMapKeyByID(e,t,r,n){return vQ(this,void 0,void 0,(function*(){const{key:i,type:o}=r.EncodeBigMapKey(t),{packed:a}=yield this.context.packer.packData({data:i,type:o}),s=function(e){return vc(Za().blake2b(_c(e),void 0,32),Ks.expr)}(a),c=n?yield this.context.readProvider.getBigMapValue({id:e.toString(),expr:s},n):yield this.context.readProvider.getBigMapValue({id:e.toString(),expr:s},"head");return r.ExecuteOnBigMapValue(c,Z0(this))}))}getBigMapKeysByID(e,t,r,n,i=5){return vQ(this,void 0,void 0,(function*(){const o=yield this.getBlockForRequest(t,n),a=new BW;let s=0,c=[];for(;sthis.getBigMapValueOrUndefined(t,e,r,o)));c=[...c,...yield Promise.all(n)],s+=i}for(let e=0;ee.kind===Pq.ORIGINATION)),i=yield this.forge(r),{hash:o,context:a,forgedBytes:s,opResponse:c}=yield this.signAndInject(i);return new h1(o,n,s,c,a,this)}))}setDelegate(e){var t;return vQ(this,void 0,void 0,(function*(){const r=oc(e.source);if(e.source&&r!==Zs.VALID)throw new is(e.source,hc(r));const n=oc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&n!==Zs.VALID)throw new is(e.delegate,hc(n));if(/kt1/i.test(e.source))throw new VQ(e.source);const i=yield this.signer.publicKeyHash(),o=e.source||i,a=yield this.estimate(e,this.estimator.setDelegate.bind(this.estimator)),s=yield this.prepare.delegation(Object.assign(Object.assign({},e),a)),c=s.opOb.contents.find((e=>e.kind===Pq.DELEGATION)),l=yield this.forge(s),{hash:u,context:d,forgedBytes:h,opResponse:f}=yield this.signAndInject(l);return new d1(u,c,o,h,f,d)}))}registerDelegate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.estimate(e,this.estimator.registerDelegate.bind(this.estimator)),r=yield this.signer.publicKeyHash(),n=yield this.prepare.registerDelegate(Object.assign(Object.assign({},e),t)),i=n.opOb.contents.find((e=>e.kind===Pq.DELEGATION)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new d1(a,i,r,c,l,s)}))}transfer(e){var t;return vQ(this,void 0,void 0,(function*(){const r=oc(e.to);if(r!==Zs.VALID)throw new is(e.to,hc(r));const n=oc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&n!==Zs.VALID)throw new is(e.source,hc(n));if(e.amount<0)throw new as(e.amount.toString());const i=yield this.signer.publicKeyHash(),o=yield this.estimate(e,this.estimator.transfer.bind(this.estimator)),a=e.source||i,s=yield this.prepare.transaction(Object.assign(Object.assign({},e),o)),c=s.opOb.contents.find((e=>e.kind===Pq.TRANSACTION)),l=yield this.forge(s),{hash:u,context:d,forgedBytes:h,opResponse:f}=yield this.signAndInject(l);return new m1(u,c,a,h,f,d)}))}transferTicket(e){var t,r;return vQ(this,void 0,void 0,(function*(){const n=oc(e.destination);if(n!==Zs.VALID)throw new is(e.destination,hc(n));const i=oc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==Zs.VALID)throw new is(e.source,hc(i));const o=yield this.signer.publicKeyHash(),a=null!==(r=e.source)&&void 0!==r?r:o,s=yield this.estimate(e,this.estimator.transferTicket.bind(this.estimator)),c=yield this.prepare.transferTicket(Object.assign(Object.assign({},e),s)),l=c.opOb.contents.find((e=>e.kind===Pq.TRANSFER_TICKET)),u=yield this.forge(c),{hash:d,context:h,forgedBytes:f,opResponse:p}=yield this.signAndInject(u);return new y1(d,l,a,f,p,h)}))}reveal(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimator.reveal(e);if(r){const n=yield this.estimate(e,(()=>vQ(this,void 0,void 0,(function*(){return r})))),i=yield this.prepare.reveal(Object.assign(Object.assign({},e),n)),o=i.opOb.contents.find((e=>e.kind===Pq.REVEAL)),a=yield this.forge(i),{hash:s,context:c,forgedBytes:l,opResponse:u}=yield this.signAndInject(a);return new p1(s,o,t,l,u,c)}throw new YQ(`The publicKeyHash '${t}' has already been revealed.`)}))}registerGlobalConstant(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.registerGlobalConstant.bind(this.estimator)),n=yield this.prepare.registerGlobalConstant(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===Pq.REGISTER_GLOBAL_CONSTANT)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new f1(a,i,t,c,l,s)}))}increasePaidStorage(e){return vQ(this,void 0,void 0,(function*(){if(e.amount<0)throw new as(e.amount.toString());const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.increasePaidStorage.bind(this.estimator)),n=yield this.prepare.increasePaidStorage(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===Pq.INCREASE_PAID_STORAGE)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new b1(a,i,t,c,l,s)}))}drainDelegate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.prepare.drainDelegate(e),r=t.opOb.contents.find((e=>e.kind===Pq.DRAIN_DELEGATE)),n=yield this.forge(t),{hash:i,context:o,forgedBytes:a,opResponse:s}=yield this.signAndInject(n);return new v1(i,r,a,s,o)}))}ballot(e){var t,r;return vQ(this,void 0,void 0,(function*(){const n=yield this.signer.publicKeyHash(),i=oc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==Zs.VALID)throw new is(e.source,hc(i));const o=null!==(r=e.source)&&void 0!==r?r:n,a=yield this.prepare.ballot(Object.assign(Object.assign({},e),{source:o})),s=a.opOb.contents.find((e=>e.kind===Pq.BALLOT)),c=yield this.forge(a),{hash:l,context:u,forgedBytes:d,opResponse:h}=yield this.signAndInject(c);return new g1(l,s,n,d,h,u)}))}proposals(e){var t,r;return vQ(this,void 0,void 0,(function*(){const n=yield this.signer.publicKeyHash(),i=oc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==Zs.VALID)throw new is(e.source,hc(i));const o=null!==(r=e.source)&&void 0!==r?r:n,a=yield this.prepare.proposals(Object.assign(Object.assign({},e),{source:o})),s=a.opOb.contents.find((e=>e.kind===Pq.PROPOSALS)),c=yield this.forge(a),{hash:l,context:u,forgedBytes:d,opResponse:h}=yield this.signAndInject(c);return new w1(l,s,n,d,h,u)}))}updateConsensusKey(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.updateConsensusKey.bind(this.estimator)),n=yield this.prepare.updateConsensusKey(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===Pq.UPDATE_CONSENSUS_KEY)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new x1(a,i,t,c,l,s)}))}smartRollupAddMessages(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.smartRollupAddMessages.bind(this.estimator)),n=yield this.prepare.smartRollupAddMessages(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===Pq.SMART_ROLLUP_ADD_MESSAGES)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new _1(a,i,t,c,l,s)}))}smartRollupOriginate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.smartRollupOriginate.bind(this.estimator)),n=yield this.rpc.getOriginationProof({kind:e.pvmKind,kernel:e.kernel}),i=Object.assign(Object.assign({},e),{originationProof:n}),o=yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({},i),r)),a=o.opOb.contents.find((e=>e.kind===Pq.SMART_ROLLUP_ORIGINATE)),s=yield this.forge(o),{hash:c,context:l,forgedBytes:u,opResponse:d}=yield this.signAndInject(s);return new S1(c,a,t,u,d,l)}))}failingNoop(e){return vQ(this,void 0,void 0,(function*(){const t={kind:Pq.FAILING_NOOP,arbitrary:e.arbitrary},r=yield this.context.readProvider.getBlockHash(e.basedOnBlock),n=yield this.context.forger.forge({branch:r,contents:[t]}),{prefixSig:i}=yield this.signer.sign(n,new Uint8Array([3]));return{signature:i,bytes:n,signedContent:{branch:r,contents:[{kind:Pq.FAILING_NOOP,arbitrary:e.arbitrary}]}}}))}at(e,t=(e=>e)){return vQ(this,void 0,void 0,(function*(){const r=sc(e);if(r!==Zs.VALID)throw new fs(e,hc(r));const n=this.context.withExtensions().rpc,i=this.context.withExtensions().readProvider,o=yield i.getScript(e,"head"),a=yield i.getEntrypoints(e),s=new $0(e,o,this,this,a,n,i);return t(s,this.context)}))}batch(e){const t=new e1(this.context,this.estimator);return Array.isArray(e)&&t.with(e),t}}class E1{constructor(e){this.context=e}getNextProto(){return vQ(this,void 0,void 0,(function*(){if(!this.context.proto){const e=yield this.context.readProvider.getNextProtocol("head");this.context.proto=e}return this.context.proto}))}parseScript(e){return vQ(this,void 0,void 0,(function*(){return new lY({protocol:yield this.getNextProto()}).parseScript(e)}))}parseMichelineExpression(e){return vQ(this,void 0,void 0,(function*(){return new lY({protocol:yield this.getNextProto()}).parseMichelineExpression(e)}))}parseJSON(e){return vQ(this,void 0,void 0,(function*(){return new lY({protocol:yield this.getNextProto()}).parseJSON(e)}))}prepareCodeOrigination(e){return vQ(this,void 0,void 0,(function*(){const t=e;if(t.code=yield this.formatCodeParam(e.code),e.init)t.init=yield this.formatInitParam(e.init);else if(e.storage){const r=t.code.find((e=>"prim"in e&&"storage"===e.prim));if(!(null===r||void 0===r?void 0:r.args))throw new qQ("The storage section is missing from the script",e.code);const n=new _Z(r.args[0]),i=yield this.findGlobalConstantsHashAndValue(n);if(0!==Object.keys(i).length){const n=new lY({expandGlobalConstant:i}).parseJSON(r.args[0]),o=new _Z(n);t.init=o.Encode(e.storage)}else t.init=n.Encode(e.storage);delete t.storage}return t}))}formatCodeParam(e){return vQ(this,void 0,void 0,(function*(){let t;if("string"===typeof e){const r=yield this.parseScript(e);if(null===r)throw new qQ("Unable to parse",e);t=r}else{const r=yield this.parseJSON(e),n=["parameter","storage","code"];t=r.sort(((e,t)=>n.indexOf(e.prim)-n.indexOf(t.prim)))}return t}))}formatInitParam(e){return vQ(this,void 0,void 0,(function*(){let t;if("string"===typeof e){const r=yield this.parseMichelineExpression(e);if(null===r)throw new KQ("Invalid init parameter",e);t=r}else t=yield this.parseJSON(e);return t}))}findGlobalConstantsHashAndValue(e){return vQ(this,void 0,void 0,(function*(){const t=e.findToken("constant"),r={};if(0!==t.length)for(const e of t){const t=e.tokenVal.args;if(t){const e=t[0];if(e.string){const t=e.string,n=yield this.context.globalConstantsProvider.getGlobalConstantByHash(t);Object.assign(r,{[t]:n})}}}return r}))}}class A1{constructor(e){this.context=e}packData(e){return vQ(this,void 0,void 0,(function*(){return this.context.rpc.packData(e)}))}}class P1 extends ts{constructor(){super(),this.name="UnconfiguredGlobalConstantsProviderError",this.message="No global constants provider has been configured. Please configure one by calling setGlobalConstantsProvider({globalConstantsProvider}) on your TezosToolkit instance."}}class T1{getGlobalConstantByHash(e){return vQ(this,void 0,void 0,(function*(){throw new P1}))}}class O1{constructor(e){this.rpc=e}getBalance(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getBalance(e,{block:String(t)})}))}getDelegate(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getDelegate(e,{block:String(t)})}))}getNextProtocol(e){return vQ(this,void 0,void 0,(function*(){return(yield this.rpc.getProtocols({block:String(e)})).next_protocol}))}getProtocolConstants(e){return vQ(this,void 0,void 0,(function*(){const{time_between_blocks:t,minimal_block_delay:r,hard_gas_limit_per_operation:n,hard_gas_limit_per_block:i,hard_storage_limit_per_operation:o,cost_per_byte:a,tx_rollup_origination_size:s,smart_rollup_origination_size:c}=yield this.rpc.getConstants({block:String(e)});return{time_between_blocks:t,minimal_block_delay:r,hard_gas_limit_per_operation:n,hard_gas_limit_per_block:i,hard_storage_limit_per_operation:o,cost_per_byte:a,tx_rollup_origination_size:s,smart_rollup_origination_size:c}}))}getScript(e,t){return vQ(this,void 0,void 0,(function*(){const{script:r}=yield this.rpc.getContract(e,{block:String(t)});return r}))}getStorage(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getStorage(e,{block:String(t)})}))}getBlockHash(e){return vQ(this,void 0,void 0,(function*(){const{hash:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getBlockLevel(e){return vQ(this,void 0,void 0,(function*(){const{level:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getCounter(e,t){return vQ(this,void 0,void 0,(function*(){const{counter:r}=yield this.rpc.getContract(e,{block:String(t)});return r||"0"}))}getBlockTimestamp(e){return vQ(this,void 0,void 0,(function*(){const{timestamp:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getBigMapValue(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getBigMapExpr(e.id,e.expr,{block:String(t)})}))}getSaplingDiffById(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getSaplingDiffById(e.id,{block:String(t)})}))}getSaplingDiffByContract(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getSaplingDiffByContract(e,{block:String(t)})}))}getEntrypoints(e){return vQ(this,void 0,void 0,(function*(){return this.rpc.getEntrypoints(e)}))}getChainId(){return vQ(this,void 0,void 0,(function*(){return this.rpc.getChainId()}))}isAccountRevealed(e,t){return vQ(this,void 0,void 0,(function*(){const r=yield this.rpc.getManagerKey(e,{block:String(t)});return r&&"object"===typeof r?!!r.key:!!r}))}getBlock(e){return vQ(this,void 0,void 0,(function*(){return this.rpc.getBlock({block:String(e)})}))}getLiveBlocks(e){return this.rpc.getLiveBlocks({block:String(e)})}}class C1 extends Qa{constructor(e){super(),this.type=e,this.name="UnsupportedEventError",this.message=`Unsupported event type "${e}" expecting one of the "data", "error", or "close".`}}class j1 extends Qa{constructor(e){super(),this.invalidExpression=e,this.name="InvalidFilterExpressionError",this.message="Invalid filter expression expecting the object to contain either and/or property"}}const R1=(e,t)=>"opHash"in t?((e,t)=>e.hash===t.opHash)(e,t):"source"in t?((e,t)=>{switch(e.kind){case"endorsement":return"metadata"in e&&e.metadata.delegate===t.source;case"activate_account":return"metadata"in e&&e.pkh===t.source;default:return"source"in e&&e.source===t.source}})(e,t):"kind"in t?((e,t)=>"kind"in e&&e.kind===t.kind)(e,t):"destination"in t&&((e,t)=>{switch(e.kind){case"delegation":return e.delegate===t.destination;case"origination":if("metadata"in e&&"operation_result"in e.metadata&&"originated_contracts"in e.metadata.operation_result&&Array.isArray(e.metadata.operation_result.originated_contracts))return e.metadata.operation_result.originated_contracts.some((e=>e===t.destination));break;case"transaction":return e.destination===t.destination;default:return!1}})(e,t),I1=(e,t)=>{const r=[];return Array.isArray(t)?r.push(...t):r.push(t),r.every((t=>"and"in t||"or"in t?((e,t)=>{if(Array.isArray(t.and))return t.and.every((t=>I1(e,t)));if(Array.isArray(t.or))return t.or.some((t=>I1(e,t)));throw new j1(t)})(e,t):R1(e,t)))};class M1{constructor(e,t=!1,r=EW()){var n;this.shouldRetry=t,this.operatorFunction=r,this.errorListeners=[],this.messageListeners=[],this.closeListeners=[],this.completed$=new oK,e.pipe((n=this.completed$,CK((function(e,t){wK(n).subscribe(jK(t,(function(){return t.complete()}),Uq)),!t.closed&&e.subscribe(t)}))),pW((e=>{this.call(this.messageListeners,e)}),(e=>{this.call(this.errorListeners,e)}),(()=>{this.call(this.closeListeners)})),this.shouldRetry?r:pW(),_W((()=>JK))).subscribe()}call(e,t){for(const n of e)try{n(t)}catch(r){console.error(r)}}remove(e,t){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}on(e,t){switch(e){case"data":this.messageListeners.push(t);break;case"error":this.errorListeners.push(t);break;case"close":this.closeListeners.push(t);break;default:throw new C1(e)}}off(e,t){switch(e){case"data":this.remove(this.messageListeners,t);break;case"error":this.remove(this.errorListeners,t);break;case"close":this.remove(this.closeListeners,t);break;default:throw new C1(e)}}close(){this.completed$.next()}}const L1={shouldObservableSubscriptionRetry:!1,observableSubscriptionRetryFunction:EW()},N1=e=>hW((t=>new rK((r=>{for(const s of t.operations)for(const c of s)for(const s of c.contents){const l=s.metadata.internal_operation_results;if(l)for(const s of l)n=s,i=null===e||void 0===e?void 0:e.address,o=null===e||void 0===e?void 0:e.tag,a=null===e||void 0===e?void 0:e.excludeFailedOperations,"event"!==n.kind||o&&n.tag!==o||i&&n.source!==i||a&&"applied"!==n.result.status||r.next(Object.assign({opHash:c.hash,blockHash:t.hash,level:t.header.level},s))}var n,i,o,a;r.complete()}))));class D1{constructor(e,t={}){this.context=e,this._config$=new lK(Object.assign(Object.assign({},L1),t)),this.timer$=this._config$.pipe(AW("pollingIntervalMilliseconds"),cW((e=>e?sW(0,e):DK(this.getConfirmationPollingInterval()).pipe(cW((e=>sW(0,e))))))),this.newBlock$=this.timer$.pipe(cW((()=>(e=>DK(e.rpc.getBlock()).pipe(xW()))(this.context))),function(e,t){return SW((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}("hash"),jW(),PW())}get config(){return this._config$.getValue()}getConfirmationPollingInterval(){return vQ(this,void 0,void 0,(function*(){if(!this.config.pollingIntervalMilliseconds){const t=5e3,r=1e3;try{const e=yield this.context.readProvider.getProtocolConstants("head"),n=(e.minimal_block_delay?e.minimal_block_delay.multipliedBy(1e3):e.time_between_blocks?e.time_between_blocks[0].multipliedBy(1e3):new Us(t)).dividedBy(3);this.config.pollingIntervalMilliseconds=0===n.toNumber()?r:n.toNumber()}catch(e){return t}}return this.config.pollingIntervalMilliseconds}))}subscribeBlock(e){return new M1(this.newBlock$,this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribe(e){return new M1(this.newBlock$.pipe(AW("hash")),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribeOperation(e){return new M1(this.newBlock$.pipe((e=>hW((t=>new rK((r=>{for(const n of t.operations)for(const t of n)for(const n of t.contents)I1(Object.assign({hash:t.hash},n),e)&&r.next(Object.assign({hash:t.hash},n));r.complete()})))))(e)),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribeEvent(e){return new M1(this.newBlock$.pipe(N1(e)),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}}class z1{constructor(e){this.context=e}getNextProto(){return vQ(this,void 0,void 0,(function*(){if(!this.context.proto){const e=yield this.context.readProvider.getNextProtocol("head");this.context.proto=e}return this.context.proto}))}forge({branch:e,contents:t}){return vQ(this,void 0,void 0,(function*(){return new mQ(yield this.getNextProto()).forge({branch:e,contents:t})}))}}const B1={defaultConfirmationCount:1,confirmationPollingTimeoutSecond:180};class U1{constructor(e,t=new _Q,r,n=new lK(Object.assign({},B1)),i,o,a,s,c,l,u,d){this._rpc=e,this._signer=t,this._proto=r,this._config=n,this.providerDecorator=[],this.tz=new a1(this),this.estimate=new u1(this),this.contract=new k1(this,this.estimate),this.prepare=new J0(this),this.batch=new t1(this,this.estimate),this.wallet=new T0(this),this.withExtensions=()=>{let e=this.clone();return this.providerDecorator.forEach((t=>{e=t(e)})),e},"string"===typeof this._rpc?this._rpcClient=new Tq(this._rpc):this._rpcClient=this._rpc,this._forger=i||new z1(this),this._injector=o||new wQ(this),this.operationFactory=new o1(this),this._walletProvider=s||new L0(this),this._parser=c||new E1(this),this._packer=a||new A1(this),this._globalConstantsProvider=l||new T1,this._readProvider=u||new O1(this._rpcClient),this._stream=d||new D1(this)}get config(){return this._config.getValue()}set config(e){this._config.next(Object.assign({},e))}setPartialConfig(e){this._config.next(Object.assign(Object.assign({},this._config.getValue()),e))}get rpc(){return this._rpcClient}set rpc(e){this._rpcClient=e}get injector(){return this._injector}set injector(e){this._injector=e}get forger(){return this._forger}set forger(e){this._forger=e}get signer(){return this._signer}set signer(e){this._signer=e}get walletProvider(){return this._walletProvider}set walletProvider(e){this._walletProvider=e}set proto(e){this._proto=e}get proto(){return this._proto}get parser(){return this._parser}set parser(e){this._parser=e}get packer(){return this._packer}set packer(e){this._packer=e}get globalConstantsProvider(){return this._globalConstantsProvider}set globalConstantsProvider(e){this._globalConstantsProvider=e}get readProvider(){return this._readProvider}set readProvider(e){this._readProvider=e}get stream(){return this._stream}set stream(e){this._stream=e}isAnyProtocolActive(e=[]){return vQ(this,void 0,void 0,(function*(){if(this._proto)return e.includes(this._proto);{const t=yield this.readProvider.getNextProtocol("head");return e.includes(t)}}))}isAnySignerConfigured(){return!(this.signer instanceof _Q)}clone(){return new U1(this.rpc,this.signer,this.proto,this._config,this.forger,this._injector,this.packer,this._walletProvider,this._parser,this._globalConstantsProvider,this._readProvider,this._stream)}registerProviderDecorator(e){this.providerDecorator.push(e)}}const F1={commitHash:"ff6c3b619e314a09bb0aa65d711ef9eaf81a0ee9",version:"17.5.0"};class $1{constructor(e){this._rpc=e,this._options={},this.format=gc,"string"===typeof this._rpc?this._rpcClient=new Tq(this._rpc):this._rpcClient=this._rpc,this._context=new U1(e),this._wallet=new T0(this._context),this.setProvider({rpc:this._rpcClient}),this.batch=this._context.batch.batch.bind(this._context.batch)}setProvider({rpc:e,stream:t,signer:r,protocol:n,config:i,forger:o,wallet:a,packer:s,globalConstantsProvider:c,readProvider:l,parserProvider:u,injectorProvider:d}){this.setRpcProvider(e),this.setStreamProvider(t),this.setSignerProvider(r),this.setForgerProvider(o),this.setWalletProvider(a),this.setPackerProvider(s),this.setGlobalConstantsProvider(c),this.setReadProvider(l),this.setParserProvider(u),this.setInjectorProvider(d),this._context.proto=n,i&&this._context.setPartialConfig(i)}setSignerProvider(e){this._options.signer||"undefined"!==typeof e?"undefined"!==typeof e&&(this._context.signer=e,this._options.signer=e):(this._context.signer=new _Q,this._options.signer=e)}setRpcProvider(e){"string"===typeof e?this._rpcClient=new Tq(e):void 0===e||(this._rpcClient=e),this._options.rpc=this._rpcClient,this._context.rpc=this._rpcClient}setForgerProvider(e){if("undefined"!==typeof e)this._options.forger=e,this._context.forger=e;else if(void 0===this._options.forger){const e=this.getFactory(z1)();this._options.forger=e,this._context.forger=e}}setStreamProvider(e){if("string"===typeof e){const t=new D1(new U1(new Tq(e)));this._options.stream=t,this._context.stream=t}else if("undefined"!==typeof e)this._options.stream=e,this._context.stream=e;else if(void 0===this._options.stream){const e=this.getFactory(D1)();this._options.stream=e,this._context.stream=e}}setWalletProvider(e){if(this._options.wallet||"undefined"!==typeof e)"undefined"!==typeof e&&(this._options.wallet=e,this._context.walletProvider=e);else{const e=this.getFactory(L0)();this._options.wallet=e,this._context.walletProvider=e}}setPackerProvider(e){if(this._options.packer||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.packer=e,this._options.packer=e);else{const e=this.getFactory(A1)();this._context.packer=e,this._options.packer=e}}setGlobalConstantsProvider(e){if(this._options.globalConstantsProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.globalConstantsProvider=e,this._options.globalConstantsProvider=e);else{const e=new T1;this._context.globalConstantsProvider=e,this._options.globalConstantsProvider=e}}setReadProvider(e){const t=e||new O1(this._context.rpc);this._options.readProvider=t,this._context.readProvider=t}setParserProvider(e){if(this._options.parserProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.parser=e,this._options.parserProvider=e);else{const e=new E1(this._context);this._context.parser=e,this._options.parserProvider=e}}setInjectorProvider(e){if(this._options.injectorProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.injector=e,this._options.injectorProvider=e);else{const e=new wQ(this._context);this._context.injector=e,this._options.injectorProvider=e}}get tz(){return this._context.tz}get contract(){return this._context.contract}get prepare(){return this._context.prepare}get wallet(){return this._wallet}get operation(){return this._context.operationFactory}get estimate(){return this._context.estimate}get stream(){return this._context.stream}get rpc(){return this._context.rpc}get signer(){return this._context.signer}get globalConstants(){return this._context.globalConstantsProvider}addExtension(e){Array.isArray(e)?e.forEach((e=>e.configureContext(this._context))):e.configureContext(this._context)}getFactory(e){return(...t)=>new e(this._context,...t)}getVersionInfo(){return F1}}class H1{constructor(e,t){this.pk=void 0,this.pkh=void 0,this.pk=e,this.pkh=t}async publicKey(){return this.pk}async publicKeyHash(){return this.pkh}async sign(){throw new Error("`sign` method not available")}async secretKey(){throw new Error("empty secret key")}}const V1={args:[{args:[{annots:["%from_"],prim:"address"},{annots:["%txs"],args:[{args:[{annots:["%to_"],prim:"address"},{args:[{annots:["%token_id"],prim:"nat"},{annots:["%amount"],prim:"nat"}],prim:"pair"}],prim:"pair"}],prim:"list"}],prim:"pair"}],prim:"list"},q1={args:[{annots:[":from"],prim:"address"},{args:[{annots:[":to"],prim:"address"},{annots:[":value"],prim:"nat"}],prim:"pair"}],prim:"pair"},K1=(e,t,r)=>[...W1,{prim:"PUSH",args:[{prim:"address"},{string:e.contract.pkh+"%"+r.entrypoint}]},{prim:"CONTRACT",args:[t]},[{prim:"IF_NONE",args:[[{prim:"UNIT"},{prim:"FAILWITH"}],[]]}],{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"PUSH",args:[t,r.value]},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}],W1=[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]}],G1=e=>(0,Va.isEqual)(e.slice(0,2),W1)?e.slice(2):e,Z1=e=>{const t=e.map((e=>(e=>{switch(e.type){case"tez":switch(e.recipient.type){case"implicit":return q0(e.recipient.pkh,Number(e.amount));case"contract":return K0(e.recipient.pkh,Number(e.amount))}case"fa1.2":return K1(e,q1,i2(e));case"fa2":return K1(e,V1,o2(e));case"delegation":return H0(e.recipient.pkh);case"undelegation":return V0();case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}})(e))).flatMap(G1);return[...W1,...t]},Y1=(e,t,r)=>J1(e,t,{int:r}),X1=(e,t)=>{const r=Z1(t);return J1(e,"propose",r)},J1=(e,t,r,n="0")=>({type:"contract_call",contract:e,entrypoint:t,args:r,amount:n}),Q1=async(e,t)=>{try{const r=`${t.tzktApiUrl}/v1/accounts/${e}`,{data:{type:n}}=await dj.get(r);return"empty"!==n}catch(r){throw new Error(`Error fetching account from tzkt ${r.message}`)}},e2=async e=>{const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t),n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("").slice(0,8);return n},t2=async e=>{switch(e.type){case"social":case"mnemonic":case"secret_key":return new IH(e.secretKey);case"ledger":{const t=await KV.list();for(let e=0;e{switch(e){case"ed25519":return rq.ED25519;case"secp256k1":return rq.SECP256K1;case"p256":return rq.P256;case"bip25519":throw new Error("bip25519 is not supported in Tezos")}})(e.account.curve))}case"fake":return new H1(e.signer.pk,e.signer.address.pkh)}},r2=async e=>{const t=new $1(e.network.rpcUrl),r=await t2(e);return t.setSignerProvider(r),t},n2=async e=>{const t=new IH(e);return{pk:await t.publicKey(),pkh:await t.publicKeyHash()}},i2=({sender:e,recipient:t,amount:r})=>({entrypoint:"transfer",value:{prim:"Pair",args:[{string:e.pkh},{prim:"Pair",args:[{string:t.pkh},{int:r}]}]}}),o2=({sender:e,recipient:t,tokenId:r,amount:n})=>({entrypoint:"transfer",value:[{prim:"Pair",args:[{string:e.pkh},[{prim:"Pair",args:[{string:t.pkh},{prim:"Pair",args:[{int:r},{int:n}]}]}]]}]}),a2=e=>{switch(e.type){case"tez":return{kind:Pq.TRANSACTION,to:e.recipient.pkh,amount:parseInt(e.amount),mutez:!0};case"contract_call":return{kind:Pq.TRANSACTION,to:e.contract.pkh,amount:parseInt(e.amount),mutez:!0,parameter:{entrypoint:e.entrypoint,value:e.args}};case"delegation":return{kind:Pq.DELEGATION,source:e.sender.pkh,delegate:e.recipient.pkh};case"undelegation":return{kind:Pq.DELEGATION,source:e.sender.pkh,delegate:void 0};case"fa1.2":return{kind:Pq.TRANSACTION,amount:0,to:e.contract.pkh,parameter:i2(e)};case"fa2":return{kind:Pq.TRANSACTION,amount:0,to:e.contract.pkh,parameter:o2(e)};case"contract_origination":return{kind:Pq.ORIGINATION,...e}}},s2=({type:e,operations:t,sender:r})=>("implicit"===e?t:[X1(r.address,t)]).map(a2),c2=s2,l2=async(e,t)=>{const r=await r2({type:"fake",signer:e.signer,network:t});try{const t=await r.estimate.batch(s2(e));return n=t.map((e=>Math.max(e.suggestedFeeMutez,e.totalCost).toString())),n.reduce(((e,t)=>e.plus(t)),new Us(0))}catch(Tle){if(!await Q1(e.signer.address.pkh,t))throw new Error(`Signer address is not revealed on the ${t.name}.`);throw new Error(u2(Tle))}var n},u2=e=>{let t="";return e.message.includes("subtraction_underflow")?t="Insufficient balance, please make sure you have enough funds.":e.message.includes("contract.non_existing_contract")&&(t="Contract does not exist, please check if the correct network is selected."),t||e};class d2{constructor(e){this.queue=void 0,this.maxConcurrent=void 0,this.count=void 0,this.queue=[],this.maxConcurrent=e,this.count=0}get canAcquire(){return this.countthis.queue.push(e)))}release(){const e=this.queue.shift();e?setTimeout(e,0):this.count--}}const h2="_default";const f2=[encodeURIComponent,encodeURIComponent];encodeURIComponent,encodeURI;function p2(e,t=","){return(r,...n)=>r.reduce(((r,i,o)=>`${r}${i}${((r,n)=>{const i=e[n%e.length];if("undefined"===typeof r)return"";if("object"===typeof r)return Array.isArray(r)?r.map(i).join(t):Object.entries(r).reduce(((e,t)=>[...e,...t]),[]).map(i).join(t);return i(String(r))})(n[o],o)}`),"")}function m2(e=","){return(t,r=f2)=>Object.entries(t).filter((([,e])=>void 0!==e)).map((([t,n])=>p2(r,e)`${t}=${n}`)).join("&")}function g2(...e){const t=e.filter(Boolean).join("&");return t&&`?${t}`}function v2(e,t=f2){const r=p2(t);return Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,n])=>Array.isArray(n)?n.map((t=>r`${e}=${t}`)).join("&"):"object"===typeof n?v2(n,t):r`${e}=${n}`)).join("&")}const y2=m2();m2("|"),m2("%20");const b2=[200,201,202,204];async function w2(e){const t=await e;if(b2.some((e=>e==t.status)))return t.data;throw new x2(t.status,t.data)}class x2 extends Error{status;data;constructor(e,t){super(`Error: ${e}`),this.status=e,this.data=t}}const _2={jsonParameter:(e,t)=>{if(!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{if(!(n instanceof Object))throw new Error(`Expected ${e} value to be object, received ${typeof n}`);const{jsonPath:i,jsonValue:o}=n;if(void 0===o||null===o)throw new Error(`Expected jsonValue in ${e} -> ${t}, found: ${o}`);const a=[e,i,t].filter((e=>void 0!==e)).join(".");r[a]=o})),r},queryParameter:(e,t)=>{if(!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{r[`${e}.${t}`]=n})),r},anyofParameter:(e,t)=>{if(!t)return{};const{fields:r}=t;if(!(t=>{if(!Array.isArray(t))throw new Error(`Expected ${e} fields to be Array. Received ${typeof t}.`);return t.forEach((t=>{if("string"!==typeof t)throw new Error(`Expected ${e} fields to be strings. Received ${typeof t}`)})),!0})(r))return{};const n={},i=r.join(".");if(t.value){n[`${e}.${i}`]=t.value}for(const o of["in","eq","null"])if(t[o]){return n[`${e}.${i}.${o}`]=Array.isArray(t[o])?t[o].join(","):t[o],n}return n}},S2=_2,k2=function(e){async function t(e,t){const n=await r(e,t);let i;try{i=await n.text()}catch(Tle){}return{status:n.status,headers:n.headers,contentType:n.headers.get("content-type"),data:i}}async function r(t,r={}){const{baseUrl:n,headers:i,fetch:o,...a}={...e,...r},s=function(...e){return e.filter(Boolean).map(((e,t)=>0===t?e:e.replace(/^\/+/,""))).map(((e,t,r)=>t===r.length-1?e:e.replace(/\/+$/,""))).join("/")}(n,t);var c;return await(o||fetch)(s,{...a,headers:(c={...e.headers,...i},c&&JSON.parse(JSON.stringify(c)))})}return{ok:w2,fetchText:t,fetchJson:async function(e,r={}){const{status:n,headers:i,contentType:o,data:a}=await t(e,{...r,headers:{Accept:"application/json",...r.headers}});return!!o&&o.includes("json")?{status:n,headers:i,data:a?JSON.parse(a):null}:{status:n,headers:i,data:a}},fetchBlob:async function(e,t={}){const n=await r(e,t);let i;try{i=await n.blob()}catch(Tle){}return{status:n.status,headers:n.headers,data:i}},json:({body:e,headers:t,...r})=>({...r,...null!=e&&{body:JSON.stringify(e)},headers:{...t,"Content-Type":"application/json"}}),form:({body:e,headers:t,...r})=>({...r,...null!=e&&{body:y2(e)},headers:{...t,"Content-Type":"application/x-www-form-urlencoded"}}),multipart({body:t,...r}){if(null==t)return r;const n=new(e.formDataConstructor||r.formDataConstructor||FormData);return Object.entries(t).forEach((([e,t])=>{n.append(e,t)})),{...r,body:n}}}}({baseUrl:"https://api.tzkt.io"});function E2({id:e,level:t,timestamp:r,tokenId:n,tokenContract:i,tokenTokenId:o,tokenStandard:a,tokenMetadata:s,tokenHasFilters:c,anyof:l,$from:u,to:d,amount:h,transactionId:f,originationId:p,migrationId:m,indexedAt:g,sort:v,offset:y,limit:b,select:w}={},x){return k2.ok(k2.fetchJson(`/v1/tokens/transfers${g2(v2({"token.HasFilters":c,limit:b,...S2.queryParameter("id",e),...S2.queryParameter("level",t),...S2.queryParameter("timestamp",r),...S2.queryParameter("token.id",n),...S2.queryParameter("token.contract",i),...S2.queryParameter("token.tokenId",o),...S2.queryParameter("token.standard",a),...S2.jsonParameter("token.metadata",s),...S2.anyofParameter("anyof",l),...S2.queryParameter("from",u),...S2.queryParameter("to",d),...S2.queryParameter("amount",h),...S2.queryParameter("transactionId",f),...S2.queryParameter("originationId",p),...S2.queryParameter("migrationId",m),...S2.queryParameter("indexedAt",g),...S2.queryParameter("sort",v),...S2.queryParameter("offset",y),...S2.queryParameter("select",w)}))}`,{...x}))}var A2=r(7786),P2=r.n(A2);const T2=new class{constructor(e=1){this.semaphoreInstances=void 0,this.maxConcurrent=void 0,this.semaphoreInstances={},this.maxConcurrent=e}hasSemaphoreInstance(e=h2){return Boolean(this.semaphoreInstances[e])}getSemaphoreInstance(e=h2){return this.hasSemaphoreInstance(e)||(this.semaphoreInstances[e]=new d2(this.maxConcurrent)),this.semaphoreInstances[e]}tidy(e=h2){this.hasSemaphoreInstance(e)&&0==this.getSemaphoreInstance(e).count&&delete this.semaphoreInstances[e]}canAcquire(e=h2){return this.getSemaphoreInstance(e).canAcquire}acquire(e=h2){return this.getSemaphoreInstance(e).acquire()}release(e=h2){this.getSemaphoreInstance(e).release(),this.tidy(e)}count(e=h2){return this.hasSemaphoreInstance(e)?this.getSemaphoreInstance(e).count:0}hasTasks(e=h2){return this.count(e)>0}async request(e,t=h2){try{return await this.acquire(t),await e()}finally{this.release(t)}}async requestIfAvailable(e,t=h2){return this.canAcquire(t)?this.request(e,t):null}}(10),O2=e=>T2.acquire().then((()=>P2()((t=>e().catch(t)),{retries:3,minTimeout:100}))).catch((e=>{if("status"in e&&"data"in e)throw new Error(`Fetching data from tzkt failed with: ${e.status}, ${e.data}`);throw e})).finally((()=>T2.release())),C2=async(e,t)=>O2((()=>function({id:e,address:t,$type:r,kind:n,delegate:i,balance:o,staked:a,lastActivity:s,select:c,sort:l,offset:u,limit:d}={},h){return k2.ok(k2.fetchJson(`/v1/accounts${g2(v2({limit:d,...S2.queryParameter("id",e),...S2.queryParameter("address",t),...S2.queryParameter("type",r),...S2.queryParameter("kind",n),...S2.queryParameter("delegate",i),...S2.queryParameter("balance",o),...S2.queryParameter("staked",a),...S2.queryParameter("lastActivity",s),...S2.queryParameter("select",c),...S2.queryParameter("sort",l),...S2.queryParameter("offset",u)}))}`,{...h}))}({address:{in:[e.join(",")]},select:{fields:["address,balance,delegationLevel"]}},{baseUrl:t.tzktApiUrl}))),j2=async(e,t)=>O2((()=>function({id:e,account:t,tokenId:r,tokenContract:n,tokenTokenId:i,tokenStandard:o,tokenMetadata:a,tokenHasFilters:s,balance:c,firstLevel:l,firstTime:u,lastLevel:d,lastTime:h,indexedAt:f,sort:p,offset:m,limit:g,select:v}={},y){return k2.ok(k2.fetchJson(`/v1/tokens/balances${g2(v2({"token.HasFilters":s,limit:g,...S2.queryParameter("id",e),...S2.queryParameter("account",t),...S2.queryParameter("token.id",r),...S2.queryParameter("token.contract",n),...S2.queryParameter("token.tokenId",i),...S2.queryParameter("token.standard",o),...S2.jsonParameter("token.metadata",a),...S2.queryParameter("balance",c),...S2.queryParameter("firstLevel",l),...S2.queryParameter("firstTime",u),...S2.queryParameter("lastLevel",d),...S2.queryParameter("lastTime",h),...S2.queryParameter("indexedAt",f),...S2.queryParameter("sort",p),...S2.queryParameter("offset",m),...S2.queryParameter("select",v)}))}`,{...y}))}({account:{in:[e.join(",")]},balance:{gt:"0"},limit:1e4},{baseUrl:t.tzktApiUrl}))),R2=async(e,t,r)=>O2((()=>function({anyof:e,initiator:t,sender:r,prevDelegate:n,newDelegate:i,level:o,timestamp:a,senderCodeHash:s,status:c,select:l,sort:u,offset:d,limit:h,quote:f}={},p){return k2.ok(k2.fetchJson(`/v1/operations/delegations${g2(v2({limit:h,quote:f,...S2.anyofParameter("anyof",e),...S2.queryParameter("initiator",t),...S2.queryParameter("sender",r),...S2.queryParameter("prevDelegate",n),...S2.queryParameter("newDelegate",i),...S2.queryParameter("level",o),...S2.queryParameter("timestamp",a),...S2.queryParameter("senderCodeHash",s),...S2.queryParameter("status",c),...S2.queryParameter("select",l),...S2.queryParameter("sort",u),...S2.queryParameter("offset",d)}))}`,{...p}))}({sender:{in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),I2=async(e,t,r)=>O2((()=>function({anyof:e,initiator:t,sender:r,target:n,amount:i,id:o,level:a,timestamp:s,senderCodeHash:c,targetCodeHash:l,codeHash:u,entrypoint:d,parameter:h,hasInternals:f,status:p,select:m,sort:g,offset:v,limit:y,micheline:b,quote:w}={},x){return k2.ok(k2.fetchJson(`/v1/operations/transactions${g2(v2({limit:y,micheline:b,quote:w,...S2.anyofParameter("anyof",e),...S2.queryParameter("initiator",t),...S2.queryParameter("sender",r),...S2.queryParameter("target",n),...S2.queryParameter("amount",i),...S2.queryParameter("id",o),...S2.queryParameter("level",a),...S2.queryParameter("timestamp",s),...S2.queryParameter("senderCodeHash",c),...S2.queryParameter("targetCodeHash",l),...S2.queryParameter("codeHash",u),...S2.queryParameter("entrypoint",d),...S2.jsonParameter("parameter",h),...S2.queryParameter("hasInternals",f),...S2.queryParameter("status",p),...S2.queryParameter("select",m),...S2.queryParameter("sort",g),...S2.queryParameter("offset",v)}))}`,{...x}))}({anyof:{fields:["sender","target","initiator"],in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),M2=async(e,t,r)=>O2((()=>function({anyof:e,initiator:t,sender:r,contractManager:n,contractDelegate:i,originatedContract:o,id:a,typeHash:s,codeHash:c,level:l,timestamp:u,senderCodeHash:d,anyCodeHash:h,status:f,select:p,sort:m,offset:g,limit:v,micheline:y,quote:b}={},w){return k2.ok(k2.fetchJson(`/v1/operations/originations${g2(v2({limit:v,micheline:y,quote:b,...S2.anyofParameter("anyof",e),...S2.queryParameter("initiator",t),...S2.queryParameter("sender",r),...S2.queryParameter("contractManager",n),...S2.queryParameter("contractDelegate",i),...S2.queryParameter("originatedContract",o),...S2.queryParameter("id",a),...S2.queryParameter("typeHash",s),...S2.queryParameter("codeHash",c),...S2.queryParameter("level",l),...S2.queryParameter("timestamp",u),...S2.queryParameter("senderCodeHash",d),...S2.queryParameter("anyCodeHash",h),...S2.queryParameter("status",f),...S2.queryParameter("select",p),...S2.queryParameter("sort",m),...S2.queryParameter("offset",g)}))}`,{...w}))}({sender:{in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),L2=async(e,t,r)=>O2((async()=>(await E2({anyof:{fields:["from","to"],in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl})).map((e=>({...e,type:"token_transfer"}))))),N2=async e=>O2((async()=>{return await(t={baseUrl:e.tzktApiUrl},k2.ok(k2.fetchJson("/v1/blocks/count",{...t})));var t})),D2=async e=>O2((()=>function({active:e,lastActivity:t,select:r,sort:n,offset:i,limit:o}={},a){return k2.ok(k2.fetchJson(`/v1/delegates${g2(v2({limit:o,...S2.queryParameter("active",e),...S2.queryParameter("lastActivity",t),...S2.queryParameter("select",r),...S2.queryParameter("sort",n),...S2.queryParameter("offset",i)}))}`,{...a}))}({sort:{desc:"stakingBalance"},active:{eq:!0},limit:1e4,select:{fields:["address,alias,stakingBalance"]}},{baseUrl:e.tzktApiUrl}))),z2=async(e,t)=>{const r=c2(e);return t.wallet.batch(r).send()},B2=async(e,t)=>{const r=IH.fromMnemonic({mnemonic:e,derivationPath:t,curve:"ed25519"});return{pkh:await r.publicKeyHash(),pk:await r.publicKey()}},U2=()=>{const e=WH();return async(t,r,n,i)=>{const o=await(async(e,t,r)=>{const n=[];let i=0,o=await B2(e,DH(t,i));do{n.push(o),i+=1,o=await B2(e,DH(t,i))}while(await Q1(o.pkh,r));return n})(t,n,r),a=await e2(t),s=e(i,o.length);return o.map((({pk:e,pkh:t},r)=>zH(e,t,DH(n,r),n,a,s[r])))}},F2=()=>{const e=jR((e=>e.accounts.seedPhrases)),t=jR((e=>e.accounts.secretKeys));return async(r,n)=>{if("secret_key"===r.type){const e=t[r.address.pkh];if(!e)throw new Error(`Missing secret key for account ${r.address.pkh}`);return Ic(e,n)}{const t=e[r.seedFingerPrint];if(!t)throw new Error(`Missing seedphrase for account ${r.address.pkh}`);return((e,t,r)=>IH.fromMnemonic({mnemonic:e,derivationPath:t,curve:r}).secretKey())(await Ic(t,n),r.derivationPath,r.curve)}}},$2=()=>jR((e=>e.networks.current)),H2=()=>jR((e=>e.networks.available)),V2=()=>{const e=H2(),t=pi();return r=>{const n=e.find((e=>e.name===r));n&&t(qd.setCurrent(n))}},q2=()=>{const e=$2(),t=jR((t=>t.tokens[e.name]));return(e,r)=>(0,Va.get)(t,[e,r])},K2=(e,t)=>e.length>t?e.slice(0,t-3)+"...":e,W2=e=>gc("tz","mutez",e),G2=e=>gc("mutez","tz",e),Z2=e=>{const t=Us(G2(e)).toNumber();return`${new Intl.NumberFormat("en-US",{minimumFractionDigits:6,maximumFractionDigits:6}).format(t)} \ua729`},Y2=e=>`${e.slice(0,5)}...${e.slice(-5)}`,X2=e=>{const t=jR((e=>e.assets.blockLevel));return null!==t?t-e>=2:null},J2=()=>{const e=t3(),t=jR((e=>e.assets.balances.tokens)),r=Object.keys(t);return(0,Va.fromPairs)(r.map((t=>[t,e(t)])))},Q2=()=>{const e=q2(),t=jR((e=>e.assets.balances.tokens));return r=>{const n=t[r]||[];return(0,Va.compact)(n.map((({contract:t,tokenId:r,...n})=>{const i=e(t,r);return i&&{...i,...n}})))}},e3=()=>{const e=(()=>{const e=Q2();return t=>e(t).filter((e=>"fa1.2"===e.type))})(),t=(()=>{const e=Q2();return t=>e(t).filter((e=>"fa2"===e.type))})();return r=>[...e(r),...t(r)]},t3=()=>{const e=Q2();return t=>e(t).filter((e=>"nft"===e.type))},r3=()=>{const e=jR((e=>e.assets.conversionRate));return t=>null===e?null:new Bs(t).multipliedBy(e).decimalPlaces(2,Bs.ROUND_UP)},n3=()=>{const e=jR((e=>e.assets.balances.mutez)),t=r3(),r=(e=>{const t=(0,Va.compact)(Object.values(e));return 0===t.length?null:t.reduce(((e,t)=>e.plus(t)),new Us(0))})(e);if(null==r)return null;const n=t(G2(r));return{mutez:r.toFixed(),usd:n}},i3=()=>{const e=jR((e=>e.assets.balances.mutez));return t=>e[t]},o3=()=>jR((e=>e.assets.bakers)),a3=e=>{const t=s3(e),r=c3(e),n=l3(e);return t||r||n||{pkh:e.pkh,type:"unknown",label:null}},s3=({pkh:e})=>{const t=GH()(e);return t?{type:t.type,pkh:e,label:t.label}:null},c3=({pkh:e})=>{const t=(()=>{const e=o3();return t=>e.find((e=>e.address===t))})(),r=t(e);return r?{pkh:e,type:"baker",label:r.name}:null},l3=({pkh:e})=>{const t=FH()(e);return t?{pkh:e,type:"contact",label:t}:null},u3=({number:e,size:t="md"})=>{const r="md"===t?"md":"lg",n="md"===t?"sm":"md",{integer:i,decimal:o}=(e=>{const[t,r]=e.split(".");return{integer:t,decimal:r}})(e);return(0,un.jsxs)(dn,{alignItems:"end","data-testid":"pretty-number",children:[(0,un.jsx)(kn,{size:r,children:i}),o&&(0,un.jsxs)(kn,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",size:n,children:[".",o]})]})},d3=({address:e,size:t,...r})=>{const n=i3()(e);if(!n)return null;const i=Z2(n);return(0,un.jsx)(pn,{overflow:"hidden",textAlign:"right","data-testid":"account-balance",...r,children:(0,un.jsx)(u3,{number:i,size:t})})},h3=({address:e,...t})=>{const r=a3(e);return(0,un.jsx)(eH,{background:EP.white,hasArrow:!0,label:r.label,placement:"left",children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",width:"400px",padding:"9px 10px",background:EP.gray[800],borderRadius:"4px","data-testid":"address-tile",...t,children:[(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(cH,{addressKind:r}),"unknown"===r.type?(0,un.jsx)(sz,{marginLeft:"10px",color:EP.gray[300],size:"sm",children:e.pkh}):(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(pn,{overflow:"hidden",width:"102px",marginLeft:"12px",whiteSpace:"nowrap",children:(0,un.jsx)(kn,{overflow:"hidden",textOverflow:"ellipsis",size:"sm",children:r.label})}),(0,un.jsx)(sz,{width:"89px",marginLeft:"10px",color:EP.gray[300],size:"xs",children:Y2(r.pkh)})]})]}),(0,un.jsx)(d3,{overflow:"hidden",textAlign:"right",address:e.pkh})]})})},f3=({contacts:e,onChange:t})=>0===e.length?null:(0,un.jsx)(iF,{position:"absolute",zIndex:2,overflowY:"auto",width:"100%",maxHeight:300,marginTop:"8px",marginLeft:0,background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px","data-testid":"suggestions-list",listStyleType:"none",children:e.map(((r,n)=>(0,un.jsx)(pn,{children:(0,un.jsx)(oF,{marginBottom:n===e.length-1?"5px":0,padding:"5px 15px 0 5px",onMouseDown:()=>{t(r.name)},children:(0,un.jsx)(h3,{width:"370px",height:"40px",padding:"10px 8px 10px 5px",background:EP.gray[700],borderRadius:"4px",_hover:{background:EP.gray[500]},cursor:"pointer",address:qu(r.pkh)})})},r.pkh)))}),p3=(e,t)=>{if(""===e)return t;return t.filter((t=>t.name.toLowerCase().includes(e.trim().toLowerCase())))},m3=({contacts:e,isDisabled:t,isLoading:r=!1,allowUnknown:i,inputName:o,onUpdate:a,validate:s,label:c,keepValid:l,style:u,size:d})=>{const{register:h,setValue:f,formState:{defaultValues:p},getValues:m}=AB(),g=f,v=(0,n.useId)(),[y,b]=(0,n.useState)((()=>{var t;if(l||!p)return"";const r=(0,Va.get)(p,o);return r?(null===(t=e.find((e=>e.pkh===r)))||void 0===t?void 0:t.name)||r:""})),[w,x]=(0,n.useState)(!0),[_,S]=(0,n.useState)(p3("",e)),k=m(o),E=t=>{b(t),S(p3(t,e));const r=e.find((e=>e.name===t||e.pkh===t));let n;if(void 0!==r)n=r.pkh,x(!0);else if(i&&Ku(t))n=t;else{if(l)return;n=""}g(o,n,{shouldValidate:!0}),a&&a(n)};let A="raw_input";r?A="selected_tile":t?A="disabled_tile":k&&(A="selected_tile");const P=()=>{E(""),x(!1)};return(0,un.jsxs)(pn,{"data-testid":`address-autocomplete-${o}`,children:[(0,un.jsx)(FU,{htmlFor:v,children:c}),"disabled_tile"===A&&(0,un.jsx)(h3,{address:qu(k)}),"selected_tile"===A&&(0,un.jsx)(pn,{height:"48px",background:EP.gray[800],border:"1px solid",borderColor:EP.gray[500],borderRadius:"4px","data-testid":`selected-address-tile-${k}`,onClick:P,paddingY:0,children:(0,un.jsxs)(hn,{justifyContent:"space-between",cursor:"pointer","data-testid":"clear-selected-button",children:[(0,un.jsx)(h3,{width:"short"===d?"338px":"365px",paddingTop:"8px",background:"transparent",address:qu(k)}),l?(0,un.jsx)(wj,{marginRight:"12px","data-testid":"chevron-icon"}):(0,un.jsx)(g3,{marginRight:"14px"})]})}),"raw_input"===A&&(0,un.jsxs)(KU,{children:[(0,un.jsx)(ZU,{...u,"aria-label":o,autoComplete:"off",id:v,onBlur:e=>{if(e.preventDefault(),x(!0),l&&k!==e.target.value)return E(k);E(e.target.value)},onChange:e=>E(e.target.value),onFocus:()=>x(!1),placeholder:"Enter address or contact name",value:y}),(0,un.jsx)(QU,{children:y?(0,un.jsx)(g3,{marginRight:"0px",onClick:P}):(0,un.jsx)(wj,{"data-testid":"chevron-icon"})})]}),(0,un.jsx)(ZU,{...h(o,{required:"Invalid address or contact name",validate:s}),marginBottom:0,"data-testid":`real-address-input-${o}`,name:o,type:"hidden"}),!w&&(0,un.jsx)(f3,{contacts:_,onChange:E})]})},g3=e=>(0,un.jsx)(OR,{marginRight:"16px",stroke:EP.gray[450],cursor:"pointer","data-testid":"clear-input-button",...e}),v3=e=>{const t=Object.values(BH()),r=qH().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,un.jsx)(m3,{...e,contacts:t.concat(r)})},y3=e=>{const t=HH().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,un.jsx)(m3,{...e,contacts:t})},b3=e=>{const t=qH().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,un.jsx)(m3,{...e,contacts:t})},w3=e=>{const t=o3().map((e=>({name:e.name,pkh:e.address})));return(0,un.jsx)(m3,{...e,contacts:t})},x3=e=>{const t=XH()(e.account).map((e=>({name:e.label,pkh:e.address.pkh})));return(0,un.jsx)(m3,{allowUnknown:!1,contacts:t,isDisabled:1===t.length,...e})},_3=({request:e,onSuccess:t})=>{const r=(()=>{const e=pi();return(t,r,n)=>e(Id.actions.addConnection({dAppId:t,accountPkh:r,networkType:n}))})(),n=HH(),i=MU({mode:"onBlur"}),{getValues:o,formState:{errors:a,isValid:s}}=i;return(0,un.jsxs)(iz,{children:[(0,un.jsxs)(oz,{marginBottom:"24px",children:[(0,un.jsx)(dn,{alignItems:"center",justifyContent:"center",children:"Permission Request"}),(0,un.jsxs)(sz,{marginTop:"10px",color:EP.gray[400],textAlign:"center",size:"sm",children:[e.appMetadata.name," is requesting permission to sign this operation."]}),(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"center",marginTop:"10px",children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"sm",children:"Network:"}),(0,un.jsx)(sz,{color:EP.gray[400],size:"sm",children:e.network.type})]})]}),(0,un.jsx)(cz,{}),(0,un.jsxs)(lz,{"data-testid":"beacon-request-body",children:[e.appMetadata.icon&&(0,un.jsxs)(dn,{alignItems:"center",marginTop:"16px",padding:"15px",borderRadius:"4px",backgroundColor:EP.gray[800],children:[(0,un.jsx)(dz,{width:"60px",marginRight:"12px",ratio:1,children:(0,un.jsx)(bR,{borderRadius:"4px",src:e.appMetadata.icon})}),(0,un.jsx)(kn,{size:"sm",children:e.appMetadata.name})]}),(0,un.jsx)(Nz,{marginTop:"16px",allowToggle:!0,children:(0,un.jsxs)(Dz,{background:EP.gray[800],border:"none",borderRadius:"8px",children:[(0,un.jsxs)(zz,{children:[(0,un.jsx)(kn,{flex:"1",textAlign:"left",marginY:"10px",size:"md",children:"Request Payload"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(UU,{value:e})})]})}),(0,un.jsx)(PB,{...i,children:(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!a.address,children:[(0,un.jsx)(y3,{allowUnknown:!1,inputName:"address",label:"Select Account"}),a.address&&(0,un.jsx)(Qz,{children:a.address.message})]})})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",isDisabled:!s,onClick:i=>(async()=>{const i=n.find((e=>e.address.pkh===o().address));if(!i)throw new Error("No account selected");const a={type:IM.PermissionResponse,network:{type:e.network.type},scopes:e.scopes,id:e.id,publicKey:i.pk,walletType:"implicit"};await X7.respond(a),r(e.senderId,i.address.pkh,e.network.type),t()})(),size:"lg",children:"Grant"})})]})};var S3=g(((e,t)=>{const{icon:r,children:i,isRound:o,"aria-label":a,...s}=e,c=r||i,l=(0,n.isValidElement)(c)?(0,n.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,un.jsx)(Dn,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...s,children:l})}));function k3(e){return Qj({tag:"svg",attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r\n\tc0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r\n\tc0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}},{tag:"path",attr:{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r\n\tC34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}},{tag:"path",attr:{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r\n\tc-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}},{tag:"path",attr:{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r\n\tc0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"}}]})(e)}function E3(e){return E3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E3(e)}function A3(e){var t=function(e,t){if("object"!=E3(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=E3(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E3(t)?t:String(t)}function P3(e,t,r){return(t=A3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}S3.displayName="IconButton";var T3=r(4579),O3=r.n(T3),C3=r(8634),j3=r.n(C3);function R3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I3(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};const r={mode:"cors",headers:{}};(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).useAPIKey&&(r.headers=I3(I3({},r.headers),H3()));const n=O3()(r,t,{method:"GET"}),i=await $3(e,n);if(i.ok)return i.json();throw V3(i),i},K3=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(i.headers=I3(I3({},i.headers),H3()));const o=O3()(i,r,{method:"POST"});return n.isUrlEncodedData?(o.body=t,"application/json; charset=utf-8"===o.headers["Content-Type"]&&delete o.headers["Content-Type"]):o.body=JSON.stringify(t),((e,t)=>{const r=new Promise(((t,r)=>{const n=setTimeout((()=>{clearTimeout(n),r(new Error(`Timed out in ${e}ms`))}),e)}));return Promise.race([t,r])})(n.timeout||6e4,$3(e,o).then((e=>{if(n.logTracingHeader&&function(e){M3.info(`Request tracing with traceID=${e.headers.get("x-web3-correlation-id")}`)}(e),e.ok)return e.json();throw V3(e),e})))},W3=(e,t)=>({jsonrpc:"2.0",method:e,id:10,params:t});function G3(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Z3=r(3521),Y3=r.n(Z3);Promise.resolve(!1),Promise.resolve(!0);var X3=Promise.resolve();function J3(e,t){return e||(e=0),new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))}function Q3(){return Math.random().toString(36).substring(2)}var e5=0,t5=0;function r5(){var e=(new Date).getTime();return e===e5?1e3*e+ ++t5:(e5=e,t5=0,1e3*e)}var n5=j3().getLogger("broadcast-channel");n5.setLevel("error");const i5={create:function(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close(),e.subFns=[]},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){try{return e.bc.postMessage(t,!1),X3}catch(Tle){return Promise.reject(Tle)}},canBeUsed:function(e){if("undefined"===typeof window)return!1;if(!e.support3PC)return!1;if("function"===typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1},type:"native",averageResponseTime:function(){return 150},microSeconds:r5};var o5=function(){function e(e){this.ttl=e,this.map=new Map,this._to=!1}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.add=function(e){var t=this;this.map.set(e,a5()),this._to||(this._to=!0,setTimeout((function(){t._to=!1,function(e){var t=a5()-e.ttl,r=e.map[Symbol.iterator]();for(;;){var n=r.next().value;if(!n)return;var i=n[0];if(!(n[1]0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return"undefined"===typeof t.support3PC&&(t.support3PC=function(){if("undefined"===typeof navigator)return!1;var e=Y3().parse(navigator.userAgent);n5.info(JSON.stringify(e),"current browser info");var t=!0;return navigator.brave&&(t=!1),e.engine.name!==Y3().ENGINE_MAP.WebKit&&e.engine.name!==Y3().ENGINE_MAP.Gecko||(t=!1),t}()),"undefined"===typeof t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"===typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),t.server||(t.server={}),t.server.url||(t.server.url="https://broadcast-server.tor.us"),t.server.removeTimeout||(t.server.removeTimeout=3e5),e.methods&&(t.methods=e.methods),t}var c5="pubkey.broadcast-channel-0-",l5="messages",u5={durability:"relaxed"};function d5(){if("undefined"!==typeof indexedDB)return indexedDB;if("undefined"!==typeof window){if("undefined"!==typeof window.mozIndexedDB)return window.mozIndexedDB;if("undefined"!==typeof window.webkitIndexedDB)return window.webkitIndexedDB;if("undefined"!==typeof window.msIndexedDB)return window.msIndexedDB}return!1}function h5(e){e.commit&&e.commit()}function f5(e,t){var r=e.transaction(l5,"readonly",u5),n=r.objectStore(l5),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var a=n.getAll(o);return new Promise((function(e,t){a.onerror=function(e){return t(e)},a.onsuccess=function(t){e(t.target.result)}}))}return new Promise((function(e,a){var s=function(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch(e){return n.openCursor()}}();s.onerror=function(e){return a(e)},s.onsuccess=function(n){var o=n.target.result;o?o.value.ide.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return e.uuid!==t.uuid&&!t.eMIs.has(e.id)&&!(e.data.time{T5[P5[e]]=e}));const O5={type:"error",data:"parser error"},C5="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),j5="function"===typeof ArrayBuffer,R5=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,I5=({type:e,data:t},r,n)=>C5&&t instanceof Blob?r?n(t):M5(t,n):j5&&(t instanceof ArrayBuffer||R5(t))?r?n(t):M5(new Blob([t]),n):n(P5[e]+(t||"")),M5=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function L5(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let N5;function D5(e,t){return C5&&e.data instanceof Blob?e.data.arrayBuffer().then(L5).then(t):j5&&(e.data instanceof ArrayBuffer||R5(e.data))?t(L5(e.data)):void I5(e,!1,(e=>{N5||(N5=new TextEncoder),t(N5.encode(e))}))}const z5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B5="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let r=0;r<64;r++)B5[z5.charCodeAt(r)]=r;const U5="function"===typeof ArrayBuffer,F5=(e,t)=>{if("string"!==typeof e)return{type:"message",data:H5(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:$5(e.substring(1),t)};return T5[r]?e.length>1?{type:T5[r],data:e.substring(1)}:{type:T5[r]}:O5},$5=(e,t)=>{if(U5){const r=(e=>{let t,r,n,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),u=new Uint8Array(l);for(t=0;t>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l})(e);return H5(r,t)}return{base64:!0,data:e}},H5=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,V5=String.fromCharCode(30);let q5;function K5(e){if(e)return function(e){for(var t in K5.prototype)e[t]=K5.prototype[t];return e}(e)}K5.prototype.on=K5.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},K5.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},K5.prototype.off=K5.prototype.removeListener=K5.prototype.removeAllListeners=K5.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i(e.hasOwnProperty(r)&&(t[r]=e[r]),t)),{})}const Z5=W5.setTimeout,Y5=W5.clearTimeout;function X5(e,t){t.useNativeTimers?(e.setTimeoutFn=Z5.bind(W5),e.clearTimeoutFn=Y5.bind(W5)):(e.setTimeoutFn=W5.setTimeout.bind(W5),e.clearTimeoutFn=W5.clearTimeout.bind(W5))}class J5 extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class Q5 extends K5{constructor(e){super(),this.writable=!1,X5(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new J5(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=F5(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}const e6="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t6=64,r6={};let n6,i6=0,o6=0;function a6(e){let t="";do{t=e6[e%t6]+t,e=Math.floor(e/t6)}while(e>0);return t}function s6(){const e=a6(+new Date);return e!==n6?(i6=0,n6=e):e+"."+a6(i6++)}for(;o6{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(n){return void this.setTimeoutFn((()=>{this.onError(n)}),0)}"undefined"!==typeof document&&(this.index=f6.requestsCount++,f6.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=d6,e)try{this.xhr.abort()}catch(t){}"undefined"!==typeof document&&delete f6.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(f6.requestsCount=0,f6.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",p6);else if("function"===typeof addEventListener){addEventListener("onpagehide"in W5?"pagehide":"unload",p6,!1)}function p6(){for(let e in f6.requests)f6.requests.hasOwnProperty(e)&&f6.requests[e].abort()}const m6="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),g6=W5.WebSocket||W5.MozWebSocket;r(4872).Buffer;const v6="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();function y6(e,t){return"message"===e.type&&"string"!==typeof e.data&&t[0]>=48&&t[0]<=54}const b6={websocket:class extends Q5{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=v6?{}:G5(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=v6?new g6(e,t,r):t?new g6(e,t):new g6(e)}catch(Tle){return this.emitReserved("error",Tle)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(t){}n&&m6((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=s6()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!g6}},webtransport:class extends Q5{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=e.readable.getReader();let r;this.writer=e.writable.getWriter();const n=()=>{t.read().then((({done:e,value:t})=>{e||(r||1!==t.byteLength||54!==t[0]?(this.onPacket(function(e,t,r){q5||(q5=new TextDecoder);const n=t||e[0]<48||e[0]>54;return F5(n?e:q5.decode(e),r)}(t,r,"arraybuffer")),r=!1):r=!0,n())})).catch((e=>{}))};n();const i=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write((new TextEncoder).encode(i)).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t{y6(r,e)&&this.writer.write(Uint8Array.of(54)),this.writer.write(e).then((()=>{n&&m6((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends Q5{constructor(e){if(super(e),this.polling=!1,"undefined"!==typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||r!==e.port}const t=e&&e.forceBase64;this.supportsBinary=h6&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const r=e.split(V5),n=[];for(let i=0;i{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const r=e.length,n=new Array(r);let i=0;e.forEach(((e,o)=>{I5(e,!1,(e=>{n[o]=e,++i===r&&t(n.join(V5))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=s6()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new f6(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},w6=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x6=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function _6(e){const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=w6.exec(e||""),o={},a=14;for(;a--;)o[x6[a]]=i[a]||"";return-1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,o.path),o.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(r[t]=n)})),r}(0,o.query),o}class S6 extends K5{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"===typeof e&&(t=e,e=null),e?(e=_6(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=_6(t.host).host),X5(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let n=0,i=r.length;n{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new b6[e](r)}open(){let e;if(this.opts.rememberUpgrade&&S6.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(t){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),r=!1;S6.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;S6.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){r||(r=!0,l(),t.close(),t=null)}const o=e=>{const r=new Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function c(e){t&&e.name!==t.name&&i()}const l=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",c)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{r||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",S6.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let r=0;r=57344?r+=3:(n++,r+=4);return r}(t):Math.ceil(1.33*(t.byteLength||t.size))),r>0&&e>this.maxPayload)return this.writeBuffer.slice(0,r);e+=2}var t;return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"===typeof t&&(n=t,t=void 0),"function"===typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():e()})):this.upgrading?r():e()),this}onError(e){S6.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,A6=Object.prototype.toString,P6="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===A6.call(Blob),T6="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===A6.call(File);function O6(e){return k6&&(e instanceof ArrayBuffer||E6(e))||P6&&e instanceof Blob||T6&&e instanceof File}function C6(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const r=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((n,i)=>{t.push(((e,t)=>r?e?i(e):n(t):n(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"===typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:D6.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case D6.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case D6.EVENT:case D6.BINARY_EVENT:this.onevent(e);break;case D6.ACK:case D6.BINARY_ACK:this.onack(e);break;case D6.DISCONNECT:this.ondisconnect();break;case D6.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:D6.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:D6.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}q6.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},q6.prototype.reset=function(){this.attempts=0},q6.prototype.setMin=function(e){this.ms=e},q6.prototype.setMax=function(e){this.max=e},q6.prototype.setJitter=function(e){this.jitter=e};class K6 extends K5{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(r=e,e=void 0),(r=r||{}).path=r.path||"/socket.io",this.opts=r,X5(this,r),this.reconnection(!1!==r.reconnection),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=r.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new q6({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==r.timeout?2e4:r.timeout),this._readyState="closed",this.uri=e;const i=r.parser||t;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==r.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new S6(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=$6(t,"open",(function(){r.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=$6(t,"error",i);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn((()=>{n(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push($6(e,"ping",this.onping.bind(this)),$6(e,"data",this.ondata.bind(this)),$6(e,"error",this.onerror.bind(this)),$6(e,"close",this.onclose.bind(this)),$6(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){m6((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new V6(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const W6={};function G6(e,t){"object"===typeof e&&(t=e,e=void 0);const r=function(e,t="",r){let n=e;r=r||"undefined"!==typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof r?r.protocol+"//"+e:"https://"+e),n=_6(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=r.source,i=r.id,o=r.path,a=W6[i]&&o in W6[i].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new K6(n,t):(W6[i]||(W6[i]=new K6(n,t)),s=W6[i]),r.query&&!t.query&&(t.query=r.queryKey),s.socket(r.path,t)}Object.assign(G6,{Manager:K6,Socket:V6,io:G6,connect:G6});var Z6=r(8247),Y6=r.n(Z6),X6=r(4872).Buffer;const J6=new $s.ec("secp256k1"),Q6=r.g.crypto||r.g.msCrypto||{},e4=Q6.subtle||Q6.webkitSubtle,t4=X6.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),r4=X6.alloc(32,0);function n4(e,t){if(!e)throw new Error(t||"Assertion failed")}function i4(e){return!!function(e){return X6.isBuffer(e)&&32===e.length}(e)&&(e.compare(r4)>0&&e.compare(t4)<0)}function o4(e){const t=new Uint8Array(e);return"undefined"===typeof Q6.getRandomValues?X6.from(Y6().randomBytes(e)):(Q6.getRandomValues(t),X6.from(t))}async function a4(e){if(e4){const t=await e4.digest("SHA-512",e);return new Uint8Array(t)}const t=Y6().createHash("sha512").update(e).digest();return new Uint8Array(t)}function s4(e){return async function(t,r,n){if(e4){const i={name:"AES-CBC"},o=await e4.importKey("raw",r,i,!1,[e]),a={name:"AES-CBC",iv:t},s=await e4[e](a,o,n);return X6.from(new Uint8Array(s))}if("encrypt"===e){const e=Y6().createCipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return X6.concat([i,o])}if("decrypt"===e){const e=Y6().createDecipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return X6.concat([i,o])}throw new Error(`Unsupported operation: ${e}`)}}const c4=s4("encrypt"),l4=s4("decrypt");async function u4(e,t){if(e4){const r={name:"HMAC",hash:{name:"SHA-256"}},n=await e4.importKey("raw",new Uint8Array(e),r,!1,["sign","verify"]),i=await e4.sign("HMAC",n,t);return X6.from(new Uint8Array(i))}const r=Y6().createHmac("sha256",X6.from(e));r.update(t);return r.digest()}const d4=function(){let e=o4(32);for(;!i4(e);)e=o4(32);return e},h4=function(e){return n4(32===e.length,"Bad private key"),n4(i4(e),"Bad private key"),X6.from(J6.keyFromPrivate(e).getPublic("array"))},f4=async function(e,t){return n4(32===e.length,"Bad private key"),n4(i4(e),"Bad private key"),n4(t.length>0,"Message should not be empty"),n4(t.length<=32,"Message is too long"),X6.from(J6.sign(t,e,{canonical:!0}).toDER())},p4=async function(e,t){n4(X6.isBuffer(e),"Bad private key"),n4(X6.isBuffer(t),"Bad public key"),n4(32===e.length,"Bad private key"),n4(i4(e),"Bad private key"),n4(65===t.length||33===t.length,"Bad public key"),65===t.length&&n4(4===t[0],"Bad public key"),33===t.length&&n4(2===t[0]||3===t[0],"Bad public key");const r=J6.keyFromPrivate(e),n=J6.keyFromPublic(t),i=r.derive(n.getPublic());return X6.from(i.toArray())},m4=async function(e,t){n4(X6.isBuffer(e),"Bad private key"),n4(X6.isBuffer(t),"Bad public key"),n4(32===e.length,"Bad private key"),n4(i4(e),"Bad private key"),n4(65===t.length||33===t.length,"Bad public key"),65===t.length&&n4(4===t[0],"Bad public key"),33===t.length&&n4(2===t[0]||3===t[0],"Bad public key");const r=J6.keyFromPrivate(e),n=J6.keyFromPublic(t),i=r.derive(n.getPublic());return X6.from(i.toString(16,64),"hex")},g4=async function(e,t,r){let n=(r=r||{}).ephemPrivateKey||o4(32);for(;!i4(n);)n=r.ephemPrivateKey||o4(32);const i=h4(n),o=await p4(n,e),a=await a4(o),s=r.iv||o4(16),c=a.slice(0,32),l=a.slice(32),u=await c4(s,X6.from(c),t),d=X6.concat([s,i,u]);return{iv:s,ephemPublicKey:i,ciphertext:u,mac:await u4(X6.from(l),d)}},v4=async function(e,t,r){const n=null!==r&&void 0!==r&&r,i=n?m4:p4,o=await i(e,t.ephemPublicKey),a=await a4(o),s=a.slice(0,32),c=a.slice(32),l=X6.concat([t.iv,t.ephemPublicKey,t.ciphertext]),u=await async function(e,t,r){return function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n0||e._addEL.internal.length>0}function G4(e,t,r){e._addEL[t].push(r),function(e){if(!e._iL&&W4(e)){var t=function(t){e._addEL[t.type].forEach((function(r){var n=1e5,i=r.time-n;(t.time>=i||"server"===e.method.type)&&r.fn(t.data)}))},r=e.method.microSeconds();e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,r)})):(e._iL=!0,e.method.onMessage(e._state,t,r))}}(e)}function Z4(e,t,r){e._addEL[t]=e._addEL[t].filter((function(e){return e!==r})),function(e){if(e._iL&&!W4(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}function Y4(e){this.message=e}q4._pubkey=!0,q4.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return K4(this,"message",e)},postInternal:function(e){return K4(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};Z4(this,"message",this._onML),e&&"function"===typeof e?(this._onML=t,G4(this,"message",t)):this._onML=null},addEventListener:function(e,t){G4(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){Z4(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this;if(!this.closed){H4.delete(this),this.closed=!0;var t=this._prepP?this._prepP:X3;return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(Array.from(e._uMP))})).then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}},Y4.prototype=new Error,Y4.prototype.name="InvalidCharacterError";var X4="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Y4("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,i=0,o=0,a="";n=t.charAt(o++);~n&&(r=i%4?64*r+n:n,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function J4(e){this.message=e}J4.prototype=new Error,J4.prototype.name="InvalidTokenError";const Q4=function(e,t){if("string"!=typeof e)throw new J4("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(X4(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return X4(t)}}(e.split(".")[r]))}catch(e){throw new J4("Invalid token specified: "+e.message)}},e8={MAINNET:"mainnet",TESTNET:"testnet",CYAN:"cyan",AQUA:"aqua",CELESTE:"celeste"},t8={SAPPHIRE_DEVNET:"sapphire_devnet",SAPPHIRE_TESTNET:"sapphire_testnet",SAPPHIRE_MAINNET:"sapphire_mainnet"},r8=[e8.AQUA,e8.CELESTE,e8.CYAN],n8={[e8.AQUA]:{migrationCompleted:!1,networkIdentifier:"aqua",networkMigratedTo:t8.SAPPHIRE_MAINNET},[e8.CELESTE]:{migrationCompleted:!1,networkIdentifier:"celeste",networkMigratedTo:t8.SAPPHIRE_MAINNET},[e8.CYAN]:{migrationCompleted:!1,networkIdentifier:"cyan",networkMigratedTo:t8.SAPPHIRE_MAINNET},[e8.MAINNET]:{migrationCompleted:!1,networkIdentifier:"mainnet",networkMigratedTo:t8.SAPPHIRE_MAINNET},[e8.TESTNET]:{migrationCompleted:!0,networkIdentifier:"teal",networkMigratedTo:t8.SAPPHIRE_TESTNET}},i8={[e8.MAINNET]:"https://signer.tor.us",[e8.TESTNET]:"https://signer.tor.us",[e8.CYAN]:"https://signer-polygon.tor.us",[e8.AQUA]:"https://signer-polygon.tor.us",[e8.CELESTE]:"https://signer-polygon.tor.us"},o8={[t8.SAPPHIRE_DEVNET]:["https://sapphire-dev-2-1.authnetwork.dev","https://sapphire-dev-2-2.authnetwork.dev","https://sapphire-dev-2-3.authnetwork.dev","https://sapphire-dev-2-4.authnetwork.dev","https://sapphire-dev-2-5.authnetwork.dev"],[t8.SAPPHIRE_TESTNET]:["https://sapphire-dev-2-1.authnetwork.dev","https://sapphire-dev-2-2.authnetwork.dev","https://sapphire-dev-2-3.authnetwork.dev","https://sapphire-dev-2-4.authnetwork.dev","https://sapphire-dev-2-5.authnetwork.dev"],[t8.SAPPHIRE_MAINNET]:["https://sapphire-1.auth.network","https://sapphire-2.auth.network","https://sapphire-3.auth.network","https://sapphire-4.auth.network","https://sapphire-5.auth.network"]},a8=(e,t)=>{const r=o8[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=n8[t];return r.map((e=>n&&n.networkIdentifier?`${e}/sss/${n.networkIdentifier}/jrpc`:`${e}/sss/jrpc`))},s8=(e,t)=>{const r=o8[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=n8[t];return r.map((e=>n&&n.networkIdentifier?`${e}/rss/${n.networkIdentifier}`:`${e}/rss`))},c8=(e,t)=>{const r=o8[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=n8[t];return r.map((e=>n&&n.networkIdentifier?`${e}/tss/${n.networkIdentifier}`:`${e}/tss`))},l8={currentEpoch:"19",torusNodeEndpoints:["https://torus-19.torusnode.com/jrpc","https://torus-node.ens.domains/jrpc","https://torus-node.matic.network/jrpc","https://torus.zilliqa.network/jrpc","https://torus-mainnet.cosmos.network/jrpc","https://torus2.etherscan.com/jrpc","https://torus-node-v2.skalelabs.com/jrpc","https://torus-node.binancex.dev/jrpc","https://torusnode.ont.io/jrpc"],torusIndexes:[1,2,3,4,5,6,7,8,9],torusNodePub:[{X:"bbe83c64177c3775550e6ba6ac2bc059f6847d644c9e4894e42c60d7974d8c2b",Y:"82b49a7caf70def38cdad2740af45c1e4f969650105c5019a29bb18b21a9acb5"},{X:"c208cac4ef9a47d386097a9c915b28e9cb89213abee8d26a17198ee261201b0d",Y:"c7db2fe4631109f40833de9dc78d07e35706549ee48fa557b33e4e75e1047873"},{X:"ca1766bb426d4ca5582818a0c5439d560ea64f5baa060793ab29dd3d0ceacfe",Y:"d46c1d08c40e1306e1bca328c2287b8268166b11a1ba4b8442ea2ad0c5e32152"},{X:"c3934dd2f6f4b3d2e1e398cc501e143c1e1a381b52feb6d1525af34d16253768",Y:"71f5141a5035799099f5ea3e241e66946bc55dc857ac3bd7d6fcdb8dcd3eeeef"},{X:"22e66f1929631d00bf026227581597f085fd94fd952fc0dca9f0833398b5c064",Y:"6088b3912e10a1e9d50355a609c10db7d188f16a2e2fd7357e51bf4f6a74f0a1"},{X:"9dc9fa410f3ce9eb70df70cdea00a49f2c4cc7a31c08c0dab5f863ed35ff5139",Y:"627a291cb87a75c61da3f65d6818e1e05e360217179817ed27e8c73bca7ec122"},{X:"118b9fc07e97b096d899b9f6658463ce6a8caa64038e37fc969df4e6023dd8c6",Y:"baf9fa4e51770f4796ea165dd03a769b8606681a38954a0a92c4cbffd6609ce9"},{X:"8a6d8b925da15a273dec3d8f8395ec35cd6878f274b2b180e4e106999db64043",Y:"96f67f870c157743da0b1eb84d89bf30500d74dc84c11f501ee1cb013acc8c46"},{X:"39cecb62e863729f572f7dfc46c24867981bf04bb405fed0df39e33984bfade5",Y:"61c2364434012e68a2be2e9952805037e52629d7762fafc8e10e9fb5bad8f790"}]},u8={[t8.SAPPHIRE_MAINNET]:[{X:"e0925898fee0e9e941fdca7ee88deec99939ae9407e923535c4d4a3a3ff8b052",Y:"54b9fea924e3f3e40791f9987f4234ae4222412d65b74068032fa5d8b63375c1"},{X:"9124cf1e280aab32ba50dffd2de81cecabc13d82d2c1fe9de82f3b3523f9b637",Y:"fca939a1ceb42ce745c55b21ef094f543b457630cb63a94ef4f1afeee2b1f107"},{X:"555f681a63d469cc6c3a58a97e29ebd277425f0e6159708e7c7bf05f18f89476",Y:"606f2bcc0884fa5b64366fc3e8362e4939841b56acd60d5f4553cf36b891ac4e"},{X:"2b5f58d8e340f1ab922e89b3a69a68930edfe51364644a456335e179bc130128",Y:"4b4daa05939426e3cbe7d08f0e773d2bf36f64c00d04620ee6df2a7af4d2247"},{X:"3ecbb6a68afe72cf34ec6c0a12b5cb78a0d2e83ba402983b6adbc5f36219861a",Y:"dc1031c5cc8f0472bd521a62a64ebca9e163902c247bf05937daf4ae835091e4"}],[t8.SAPPHIRE_TESTNET]:[{X:"f74389b0a4c8d10d2a687ae575f69b20f412d41ab7f1fe6b358aa14871327247",Y:"54e3a73098ed9bced3ef8821736e9794f9264a1420c0c7ad15d2fa617ba35ef7"},{X:"bc38813a6873e526087918507c78fc3a61624670ee851ecfb4f3bef55d027b5a",Y:"ac4b21229f662a0aefdfdac21cf17c3261a392c74a8790db218b34e3e4c1d56a"},{X:"b56541684ea5fa40c8337b7688d502f0e9e092098962ad344c34e94f06d293fb",Y:"759a998cef79d389082f9a75061a29190eec0cac99b8c25ddcf6b58569dad55c"},{X:"7bcb058d4c6ffc6ba4bfdfd93d141af35a66338a62c7c27cdad2ae3f8289b767",Y:"336ab1935e41ed4719e162587f0ab55518db4207a1eb36cc72303f1b86689d2b"},{X:"bf12a136ef94399ea098f926f04e26a4ec4ac70f69cce274e8893704c4951773",Y:"bdd44828020f52ce510e026338216ada184a6867eb4e19fb4c2d495d4a7e15e4"}],[t8.SAPPHIRE_DEVNET]:[{X:"f74389b0a4c8d10d2a687ae575f69b20f412d41ab7f1fe6b358aa14871327247",Y:"54e3a73098ed9bced3ef8821736e9794f9264a1420c0c7ad15d2fa617ba35ef7"},{X:"bc38813a6873e526087918507c78fc3a61624670ee851ecfb4f3bef55d027b5a",Y:"ac4b21229f662a0aefdfdac21cf17c3261a392c74a8790db218b34e3e4c1d56a"},{X:"b56541684ea5fa40c8337b7688d502f0e9e092098962ad344c34e94f06d293fb",Y:"759a998cef79d389082f9a75061a29190eec0cac99b8c25ddcf6b58569dad55c"},{X:"7bcb058d4c6ffc6ba4bfdfd93d141af35a66338a62c7c27cdad2ae3f8289b767",Y:"336ab1935e41ed4719e162587f0ab55518db4207a1eb36cc72303f1b86689d2b"},{X:"bf12a136ef94399ea098f926f04e26a4ec4ac70f69cce274e8893704c4951773",Y:"bdd44828020f52ce510e026338216ada184a6867eb4e19fb4c2d495d4a7e15e4"}]},d8=(e,t)=>({currentEpoch:"1",torusNodeEndpoints:a8(e,t),torusNodeSSSEndpoints:a8(e,t),torusNodeRSSEndpoints:s8(e,t),torusNodeTSSEndpoints:c8(e,t),torusIndexes:[1,2,3,4,5],torusNodePub:u8[e]});const h8=j3().getLogger("fnd");class f8{constructor(){let{network:e=t8.SAPPHIRE_MAINNET,fndServerEndpoint:t,enableLogging:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P3(this,"fndServerEndpoint","https://fnd.tor.us/node-details"),P3(this,"_currentEpoch","1"),P3(this,"_torusNodeEndpoints",[]),P3(this,"_torusNodeRSSEndpoints",[]),P3(this,"_torusNodeSSSEndpoints",[]),P3(this,"_torusNodeTSSEndpoints",[]),P3(this,"_torusNodePub",[]),P3(this,"_torusIndexes",[]),P3(this,"updated",void 0),P3(this,"network",void 0),this.network=e,this.updated=!1,t&&(this.fndServerEndpoint=t),r?h8.enableAll():h8.disableAll()}get _nodeDetails(){return{currentEpoch:this._currentEpoch,torusNodeEndpoints:this._torusNodeEndpoints,torusNodeSSSEndpoints:this._torusNodeSSSEndpoints,torusNodeRSSEndpoints:this._torusNodeRSSEndpoints,torusNodeTSSEndpoints:this._torusNodeTSSEndpoints,torusNodePub:this._torusNodePub,torusIndexes:this._torusIndexes,updated:this.updated}}async getNodeDetails(e){let{verifier:t,verifierId:r}=e;try{if(this.updated&&!r8.includes(this.network))return this._nodeDetails;try{const{nodeDetails:e}=await q3(`${this.fndServerEndpoint}?network=${this.network}&verifier=${t}&verifierId=${r}`);return this.setNodeDetails(e),this._nodeDetails}catch(n){h8.error("Failed to fetch node details from server, using local.",n)}const e=function(e){if(Object.values(t8).includes(e))return d8(e);if(Object.values(e8).includes(e)){const t=n8[e];if(t.migrationCompleted)return d8(t.networkMigratedTo,e);if(e===e8.MAINNET)return l8}}(this.network);if(!e)throw new Error("Failed to fetch node details");return this.setNodeDetails(e),this._nodeDetails}catch(n){throw h8.error("Failed to fetch node details",n),n}}setNodeDetails(e){const{currentEpoch:t,torusNodeEndpoints:r,torusNodeSSSEndpoints:n,torusNodeRSSEndpoints:i,torusNodeTSSEndpoints:o,torusNodePub:a,torusIndexes:s}=e;this._torusNodeEndpoints=r,this._torusNodeSSSEndpoints=n||[],this._torusNodeRSSEndpoints=i||[],this._torusNodeTSSEndpoints=o||[],this._torusNodePub=a,this._torusIndexes=s,this._currentEpoch=t,this.updated=!0}}var p8=r(4203),m8=r.n(p8),g8=r(4872).Buffer;const v8="GetPubKeyOrKeyAssign",y8="CommitmentRequest",b8="ImportShare",w8="GetShareOrKeyAssign",x8="https://metadata.tor.us",_8=(e,t)=>{let r=e;if("number"===typeof r&&(r=Array.from({length:r},((e,t)=>t))),t>r.length||t<=0)return[];if(t===r.length)return[r];if(1===t)return r.reduce(((e,t)=>[...e,[t]]),[]);const n=[];let i=[];for(let o=0;o<=r.length-t+1;o+=1){i=_8(r.slice(o+1),t-1);for(let e=0;e{const r={};for(let n=0;n=8?o+=t[a].toUpperCase():o+=t[a];return o}function O8(e,t){const r=e.keyFromPrivate(t.toString("hex",64),"hex").getPublic().encode("hex",!1).slice(2);A8.info(r,"public key");return T8(`0x${P8(g8.from(r,"hex")).slice(26)}`)}function C8(e,t,r){const n=e.keyFromPublic({x:t.toString("hex",64),y:r.toString("hex",64)}),i=n.getPublic().encode("hex",!1).slice(2);A8.info(n.getPublic().encode("hex",!1),"public key");return T8(`0x${P8(g8.from(i,"hex")).slice(26)}`)}A8.disableAll();class j8{constructor(e,t,r){P3(this,"x",void 0),P3(this,"y",void 0),P3(this,"ecCurve",void 0),this.x=new(m8())(e,"hex"),this.y=new(m8())(t,"hex"),this.ecCurve=r}encode(e){switch(e){case"arr":return g8.concat([g8.from("0x04","hex"),g8.from(this.x.toString("hex"),"hex"),g8.from(this.y.toString("hex"),"hex")]);case"elliptic-compressed":{const e=this.ecCurve.keyFromPublic({x:this.x.toString("hex",64),y:this.y.toString("hex",64)},"hex");return g8.from(e.getPublic(!0,"hex"))}default:throw new Error("encoding doesn't exist in Point")}}}class R8{constructor(e,t){P3(this,"share",void 0),P3(this,"shareIndex",void 0),this.share=new(m8())(t,"hex"),this.shareIndex=new(m8())(e,"hex")}static fromJSON(e){const{share:t,shareIndex:r}=e;return new R8(r,t)}toJSON(){return{share:this.share.toString("hex"),shareIndex:this.shareIndex.toString("hex")}}}class I8{constructor(e,t){P3(this,"polynomial",void 0),P3(this,"ecCurve",void 0),this.polynomial=e,this.ecCurve=t}getThreshold(){return this.polynomial.length}polyEval(e){const t=new(m8())(e,"hex");let r=new(m8())(t),n=new(m8())(0);n=n.add(this.polynomial[0]);for(let i=1;i"number"===typeof e?new(m8())(e):e instanceof m8()?e:"string"===typeof e?new(m8())(e,"hex"):e)),r={};for(let n=0;ne.eq(t)))?M8(e):t}const L8=e=>Array.from({length:e},(()=>new(m8())(0))),N8=(e,t,r)=>{let n=L8(r.length);const i=((e,t,r)=>{let n=new(m8())(1);const i=r[t].x;for(let o=r.length-1;o>=0;o-=1)if(t!==o){let t=new(m8())(i);t=t.sub(r[o].x),t=t.umod(e.curve.n),n=n.mul(t),n=n.umod(e.curve.n)}return n})(e,t,r);if(0===i.cmp(new(m8())(0)))throw new Error("Denominator for interpolationPoly is 0");n[0]=i.invm(e.curve.n);for(let o=0;o=0;a-=1){i[a+1]=i[a+1].add(n[a]).umod(e.curve.n);let t=new(m8())(r[o].x);t=t.mul(n[a]).umod(e.curve.n),i[a]=i[a].sub(t).umod(e.curve.n)}n=i}}return n},D8=(e,t)=>{const r=(e=>{const t=[...e];return t.sort(((e,t)=>e.x.cmp(t.x))),t})(t),n=L8(r.length);for(let i=0;it)throw new Error("deterministicShares in generateRandomPolynomial should be less or equal than degree to ensure an element of randomness");const o={};n.forEach((t=>{o[t.shareIndex.toString("hex",64)]=new j8(t.shareIndex,t.share,e)}));for(let a=0;a2&&void 0!==arguments[2]?arguments[2]:{};try{const n=await K3(`${e}/get`,t,r,{useAPIKey:!0});return n&&n.message?new(m8())(n.message,16):new(m8())(0)}catch(n){return j3().error("get metadata error",n),new(m8())(0)}}async function V8(e,t,r,n,i,o){let a;const s=arguments.length>6&&void 0!==arguments[6]&&arguments[6]?"getNonce":"getOrSetNonce";return a=o?function(e,t,r,n){const i=e.keyFromPrivate(n.toString("hex",64)),o={data:r,timestamp:new(m8())(~~(t+Date.now()/1e3)).toString(16)},a=i.sign(P8(g8.from(w4()(o),"utf8")).slice(2));return{pub_key_X:i.getPublic().getX().toString("hex",64),pub_key_Y:i.getPublic().getY().toString("hex",64),set_data:o,signature:g8.from(a.r.toString(16,64)+a.s.toString(16,64)+new(m8())("").toString(16,2),"hex").toString("base64")}}(t,r,s,o):{pub_key_X:n,pub_key_Y:i,set_data:{data:s}},K3(`${e}/get_or_set_nonce`,a,void 0,{useAPIKey:!0})}async function q8(e,t,r,n,i,o){return V8(e,t,r,n,i,o,!0)}const K8={logRequestTracing:!1};class W8 extends Error{constructor(e){let{errors:t,responses:r,predicate:n}=e;super("Unable to resolve enough promises."),P3(this,"errors",void 0),P3(this,"responses",void 0),P3(this,"predicate",void 0),this.errors=t,this.responses=r,this.predicate=n}get message(){return`${super.message}. ${this.errors.length} errors: ${this.errors.map((e=>e.message||e)).join(", ")} and ${this.responses.length} responses: ${JSON.stringify(this.responses)}`}toString(){return this.message}}const G8=(e,t)=>new Promise(((r,n)=>{let i=0;const o={resolved:!1},a=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);let c;return e.forEach(((l,u)=>l.then((e=>{s[u]=e})).catch((e=>{a[u]=e})).finally((()=>{if(!o.resolved)return t(s.slice(0),o).then((e=>{o.resolved=!0,r(e)})).catch((e=>{c=e})).finally((()=>{if(i+=1,i===e.length){const e=Object.values(s.reduce(((e,t)=>{if(t){var r;const{id:i,error:o}=t;(null===o||void 0===o||null===(r=o.data)||void 0===r?void 0:r.length)>0&&(o.data.startsWith("Error occurred while verifying params")?e[i]=(n=o.data).charAt(0).toUpperCase()+n.slice(1):e[i]=o.data)}var n;return e}),{}));if(e.length>0){const t=e.length>1?`\n${e.map((e=>`\u2022 ${e}`)).join("\n")}`:e[0];n(new Error(t))}else{var t;n(new W8({errors:a,responses:s,predicate:(null===(t=c)||void 0===t?void 0:t.message)||c}))}}}))}))))}));function Z8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y8(e){for(var t=1;t0){if(h.length!==c.length)throw new Error("Invalid imported shares length");w=!0}for(let x=0;x{A8.error("commitment error",e)}));p.push(e)}return G8(p,(e=>{const t=e.filter((e=>!(!e||"object"!==typeof e)&&!e.error));if(h.length>0&&t.length===c.length)return Promise.resolve(e);if(0===h.length&&t.length>=1+~~(3*c.length/4)){if(t.find((e=>{var t;return!(!e||"1"!==(null===(t=e.result)||void 0===t?void 0:t.nodeindex))})))return Promise.resolve(e)}return Promise.reject(new Error(`invalid ${JSON.stringify(e)}`))})).then((e=>{const t=[],r=[];for(let i=0;iA8.error("share req",e)));t.push(n)}else{const e=K3(c[i],W3(w8,{encrypted:"yes",use_temp:!0,item:[Y8(Y8({},u),{},{idtoken:d,nodesignatures:r,verifieridentifier:l},f)],one_key_flow:!0}),null,{logTracingHeader:K8.logRequestTracing}).catch((e=>A8.error("share req",e)));t.push(e)}}let n;return G8(t,(async(e,t)=>{const r=e.filter((e=>!(!e||"object"!==typeof e)&&!e.error)),o=e.map((e=>{if(e&&e.result&&e.result.keys[0].public_key){if(!n&&!u.extended_verifier_id){var t,r;(null===(t=e.result.keys[0].nonce_data)||void 0===t||null===(r=t.pubNonce)||void 0===r?void 0:r.x)&&(n=e.result.keys[0].nonce_data)}return e.result.keys[0].public_key}})),s=S8(o,1+~~(c.length/2));if(!s)throw new Error("invalid result from nodes, threshold number of public key results are not matching");if(!n&&!u.extended_verifier_id&&!n8[a])throw new Error(`invalid metadata result from nodes, nonce metadata is empty for verifier: ${l} and verifierId: ${u.verifier_id}`);const d=h.length>0?c.length:1+~~(c.length/2);if(r.length>=d&&s&&(n||u.extended_verifier_id||n8[a])){const e=[],o=[],a=[],l=[],d=[];for(let t=0;t0)u&&null!==(f=u[0])&&void 0!==f&&f.ephemPublicKey?o.push($8(u[0],c[0],m).catch((e=>A8.debug("session sig decryption",e)))):o.push(Promise.resolve(g8.from(c[0],"hex")));else o.push(Promise.resolve(void 0));if((null===i||void 0===i?void 0:i.length)>0)s&&null!==(p=s[0])&&void 0!==p&&p.ephemPublicKey?a.push($8(s[0],i[0],m).catch((e=>A8.debug("session token sig decryption",e)))):a.push(Promise.resolve(g8.from(i[0],"base64")));else a.push(Promise.resolve(void 0));if((null===d||void 0===d?void 0:d.length)>0){const t=n.result.keys[0];l.push(new(m8())(t.node_index)),t.share_metadata&&e.push($8(t.share_metadata,g8.from(t.share,"base64").toString("binary").padStart(64,"0"),m).catch((e=>A8.debug("share decryption",e))))}else l.push(void 0),e.push(Promise.resolve(void 0))}const h=await Promise.all(e.concat(o).concat(a)),g=h.slice(0,e.length),v=h.slice(e.length,e.length+o.length),y=h.slice(e.length+o.length,h.length),b=v.filter((e=>!!e)),w=1+~~(c.length/2);if(!u.extended_verifier_id&&b.length!!e));if(!u.extended_verifier_id&&x.length{e?d.push({token:e.toString("base64"),signature:v[t].toString("hex"),node_pubx:r[t].result.node_pubx,node_puby:r[t].result.node_puby}):d.push(void 0)})),t.resolved)return;const _=g.reduce(((e,t,r)=>(t&&e.push({index:l[r],value:new(m8())(t)}),e)),[]),S=_8(_.length,1+~~(c.length/2));let k=null;for(let t=0;te.includes(r))),n=r.map((e=>e.value)),o=r.map((e=>e.index)),a=z8(i,n,o);if(!a)continue;const c=h4(g8.from(a.toString(16,64),"hex")).toString("hex"),l=c.slice(2,66),u=c.slice(66);if(0===new(m8())(l,16).cmp(new(m8())(s.X,16))&&0===new(m8())(u,16).cmp(new(m8())(s.Y,16))){k=a;break}}if(void 0===k||null===k)throw new Error("could not derive private key");return{privateKey:k,sessionTokenData:d,thresholdNonceData:n,nodeIndexes:l}}throw new Error("Invalid")}))})).then((async e=>{var o;const{privateKey:s,sessionTokenData:c,thresholdNonceData:l,nodeIndexes:d}=e;let h=l;if(!s)throw new Error("Invalid private key returned");const f=s,p=h4(g8.from(f.toString(16,64),"hex")).toString("hex"),g=p.slice(2,66),v=p.slice(66);let y,b,w=new(m8())(null!==(o=h)&&void 0!==o&&o.nonce?h.nonce.padStart(64,"0"):"0","hex"),x="v1";if(u.extended_verifier_id)x="v2",y=i.keyFromPublic({x:g,y:v}).getPublic();else if(n8[a])if(n)h=await q8(t,i,r,g,v,f),w=new(m8())(h.nonce||"0",16),b={X:h.pubNonce.x,Y:h.pubNonce.y},x=h.typeOfUser,"v2"===x&&(y=i.keyFromPublic({x:g,y:v}).getPublic().add(i.keyFromPublic({x:h.pubNonce.x,y:h.pubNonce.y}).getPublic()));else{x="v1",w=await H8(t,{pub_key_X:g,pub_key_Y:v});const e=f.add(w).umod(i.curve.n);y=i.keyFromPrivate(e.toString(16,64),"hex").getPublic()}else x="v2",y=i.keyFromPublic({x:g,y:v}).getPublic().add(i.keyFromPublic({x:h.pubNonce.x,y:h.pubNonce.y}).getPublic()),b={X:h.pubNonce.x,Y:h.pubNonce.y};const _=O8(i,f),S=C8(i,y.getX(),y.getY());A8.debug("> torus.js/retrieveShares",{finalEvmAddress:S});let k="";if("v1"===x||"v2"===x&&w.gt(new(m8())(0))){k=f.add(w).umod(i.curve.n).toString("hex",64)}let E=!1;return"v1"===x?E=null:"v2"===x&&(E=w.eq(new(m8())("0"))),{finalKeyData:{evmAddress:S,X:y.getX().toString(16,64),Y:y.getY().toString(16,64),privKey:k},oAuthKeyData:{evmAddress:_,X:g,Y:v,privKey:f.toString("hex",64).padStart(64,"0")},sessionData:{sessionTokenData:c,sessionAuthKey:m.toString("hex").padStart(64,"0")},metadata:{pubNonce:b,nonce:w,typeOfUser:x,upgraded:E},nodesData:{nodeIndexes:d.map((e=>e.toNumber()))}}}))}const J8=async(e,t,r)=>{const n=e.map((e=>K3(e,W3("VerifierLookupRequest",{verifier:t,verifier_id:r.toString()})).catch((e=>A8.error("lookup request failed",e)))));return G8(n,(t=>{const r=t.filter((e=>e)),n=S8(r.map((e=>e&&e.error)),1+~~(e.length/2)),i=S8(r.map((e=>e&&e.result)),1+~~(e.length/2));return i||n?Promise.resolve({keyResult:i,errorResult:n}):Promise.reject(new Error(`invalid results ${JSON.stringify(t)}`))}))},Q8=async e=>{let t,r,{endpoints:n,torusNodePubs:i,lastPoint:o,firstPoint:a,verifier:s,verifierId:c,signerHost:l,network:u,clientId:d}=e;if(void 0===o?(t=Math.floor(Math.random()*n.length),A8.info("keyassign",t,n[t]),r=t):t=o%n.length,t===a)throw new Error("Looped through all");void 0!==a&&(r=a);const h=W3("KeyAssign",{verifier:s,verifier_id:c.toString()});try{const e=await K3(l,h,{headers:{pubKeyX:i[t].X,pubKeyY:i[t].Y,network:u,clientId:d}},{useAPIKey:!0});return await K3(n[t],Y8(Y8({},h),e),{headers:{"Content-Type":"application/json; charset=utf-8"}})}catch(f){A8.error(f.status,f.message,f,"key assign error");const e=["Timed out","Failed to fetch","cancelled","NetworkError when attempting to fetch resource.","TypeError: Failed to fetch","TypeError: cancelled","TypeError: NetworkError when attempting to fetch resource."];if(502===(null===f||void 0===f?void 0:f.status)||504===(null===f||void 0===f?void 0:f.status)||401===(null===f||void 0===f?void 0:f.status)||e.includes(f.message)||e.some((e=>f.message.includes(e)))||f.message&&f.message.includes("reason: getaddrinfo EAI_AGAIN"))return Q8({endpoints:n,torusNodePubs:i,lastPoint:t+1,firstPoint:r,verifier:s,verifierId:c,signerHost:l,network:u,clientId:d});throw new Error(`Sorry, the Torus Network that powers Web3Auth is currently very busy.\n We will generate your key in time. Pls try again later. \n\n ${f.message||""}`)}};function e9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t9(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0]?(A8.enableAll(),K8.logRequestTracing=!0):A8.disableAll()}static setAPIKey(e){F3(e)}static setEmbedHost(e){U3(e)}static isGetOrSetNonceError(e){return e instanceof E8}static getPostboxKey(e){return"v1"===e.metadata.typeOfUser&&e.finalKeyData.privKey||e.oAuthKeyData.privKey}async retrieveShares(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.isLegacyNetwork?this.legacyRetrieveShares(e,t,r,n,i,o):X8({legacyMetadataHost:this.legacyMetadataHost,serverTimeOffset:this.serverTimeOffset,enableOneKey:this.enableOneKey,ecCurve:this.ec,allowHost:this.allowHost,network:this.network,clientId:this.clientId,endpoints:e,verifier:r,verifierParams:n,idToken:i,importedShares:[],extraParams:o})}async getPublicAddress(e,t,r){let{verifier:n,verifierId:i,extendedVerifierId:o}=r;return this.isLegacyNetwork?this.getLegacyPublicAddress(e,t,{verifier:n,verifierId:i},this.enableOneKey):this.getNewPublicAddress(e,{verifier:n,verifierId:i,extendedVerifierId:o},this.enableOneKey)}async importPrivateKey(e,t,r,n,i,o,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(this.isLegacyNetwork)throw new Error("This function is not supported on legacy networks");if(e.length!==t.length)throw new Error("length of endpoints array must be same as length of nodeIndexes array");const c=1+~~(e.length/2)-1,l=[],u=this.ec.keyFromPrivate(a.padStart(64,"0"),"hex");for(const x of t)l.push(new(m8())(x));const d=u.getPrivate(),h=new(m8())(d4()),f=d.sub(h).umod(this.ec.curve.n),p=this.ec.keyFromPrivate(f.toString("hex").padStart(64,"0")).getPublic(),m=B8(this.ec,c,f).generateShares(l),g=this.generateNonceMetadataParams("getOrSetNonce",f,h),v=g8.from(w4()(g.set_data),"utf8").toString("base64"),y=[],b=[];for(let x=0;x5&&void 0!==arguments[5]?arguments[5]:{};const a=[];await q3(this.allowHost,{headers:{verifier:r,verifierId:n.verifier_id,network:this.network,clientId:this.clientId}},{useAPIKey:!0});const s=d4(),c=h4(s).toString("hex"),l=c.slice(2,66),u=c.slice(66),d=P8(g8.from(i,"utf8"));for(let h=0;h{A8.error("commitment",e)}));a.push(t)}return G8(a,(t=>{const r=t.filter((e=>!(!e||"object"!==typeof e)&&!e.error));return r.length>=3*~~(e.length/4)+1?Promise.resolve(t):Promise.reject(new Error(`invalid ${JSON.stringify(t)}`))})).then((a=>{const c=[],l=[];for(let e=0;eA8.error("share req",e)));c.push(a)}return G8(c,(async(r,n)=>{const i=r.filter((e=>e)),o=S8(r.map((e=>e&&e.result&&e.result.keys[0].PublicKey)),1+~~(e.length/2));if(i.length>=1+~~(e.length/2)&&o){const i=[],l=[];for(let e=0;e0){n.result.keys.sort(((e,t)=>new(m8())(e.Index,16).cmp(new(m8())(t.Index,16))));const e=n.result.keys[0];if(e.Metadata){const t={ephemPublicKey:g8.from(e.Metadata.ephemPublicKey,"hex"),iv:g8.from(e.Metadata.iv,"hex"),mac:g8.from(e.Metadata.mac,"hex")};i.push(v4(s,t9(t9({},t),{},{ciphertext:g8.from(g8.from(e.Share,"base64").toString("binary").padStart(64,"0"),"hex")})).catch((e=>A8.debug("share decryption",e))))}else i.push(Promise.resolve(g8.from(e.Share.padStart(64,"0"),"hex")))}else i.push(Promise.resolve(void 0));l.push(new(m8())(t[e],16))}const u=await Promise.all(i);if(n.resolved)return;const d=u.reduce(((e,t,r)=>(t&&e.push({index:l[r],value:new(m8())(t)}),e)),[]),h=_8(d.length,1+~~(e.length/2));let f=null;for(let e=0;et.includes(r))),n=r.map((e=>e.value)),i=r.map((e=>e.index)),a=z8(this.ec,n,i);if(!a)continue;const s=h4(g8.from(a.toString(16,64),"hex")).toString("hex"),c=s.slice(2,66),l=s.slice(66);if(0===new(m8())(c,16).cmp(new(m8())(o.X,16))&&0===new(m8())(l,16).cmp(new(m8())(o.Y,16))){f=a;break}}if(void 0===f||null===f)throw new Error("could not derive private key");return f}throw new Error("invalid")}))})).then((async e=>{const t=e;if(!t)throw new Error("Invalid private key returned");const r=h4(g8.from(t.toString(16,64),"hex")).toString("hex"),n=r.slice(2,66),i=r.slice(66);let o,a,s,c="v1";if(this.enableOneKey){const e=await q8(this.legacyMetadataHost,this.ec,this.serverTimeOffset,n,i,t);o=new(m8())(e.nonce||"0",16),c=e.typeOfUser,"v2"===e.typeOfUser&&(a=this.ec.keyFromPublic({x:n,y:i}).getPublic().add(this.ec.keyFromPublic({x:e.pubNonce.x,y:e.pubNonce.y}).getPublic()),s={X:e.pubNonce.x,Y:e.pubNonce.y})}else{o=await H8(this.legacyMetadataHost,{pub_key_X:n,pub_key_Y:i});const e=t.add(o).umod(this.ec.curve.n);a=this.ec.keyFromPrivate(e.toString("hex"),"hex").getPublic()}const l=O8(this.ec,t),u=C8(this.ec,a.getX(),a.getY());A8.debug("> torus.js/retrieveShares",{finalEvmAddress:u});let d="";if("v1"===c||"v2"===c&&o.gt(new(m8())(0))){d=t.add(o).umod(this.ec.curve.n).toString("hex",64).padStart(64,"0")}let h=!1;return"v1"===c?h=null:"v2"===c&&(h=o.eq(new(m8())("0"))),{finalKeyData:{evmAddress:u,X:a?a.getX().toString(16,64):"",Y:a?a.getY().toString(16,64):"",privKey:d},oAuthKeyData:{evmAddress:l,X:n,Y:i,privKey:t.toString("hex",64).padStart(64,"0")},sessionData:{sessionTokenData:[],sessionAuthKey:""},metadata:{pubNonce:s,nonce:o,typeOfUser:c,upgraded:h},nodesData:{nodeIndexes:[]}}}))}async getLegacyPublicAddress(e,t,r,n){let i,{verifier:o,verifierId:a}=r;A8.debug("> torus.js/getPublicAddress",{endpoints:e,torusNodePubs:t,verifier:o,verifierId:a});let s=!1;const{keyResult:c,errorResult:l}=await J8(e,o,a)||{};if(l&&JSON.stringify(l).includes("Verifier not supported"))throw new Error("Verifier not supported. Check if you: \n\n 1. Are on the right network (Torus testnet/mainnet) \n\n 2. Have setup a verifier on dashboard.web3auth.io?");if(l&&JSON.stringify(l).includes("Verifier + VerifierID has not yet been assigned")){await Q8({endpoints:e,torusNodePubs:t,lastPoint:void 0,firstPoint:void 0,verifier:o,verifierId:a,signerHost:this.signerHost,network:this.network,clientId:this.clientId});const r=await((e,t,r,n)=>new Promise(((i,o)=>{setTimeout((()=>{J8(e,t,r).then(i).catch(o)}),n)})))(e,o,a,1e3);i=null===r||void 0===r?void 0:r.keyResult,s=!0}else{if(!c)throw new Error(`node results do not match at first lookup ${JSON.stringify(c||{})}, ${JSON.stringify(l||{})}`);i=c}if(A8.debug("> torus.js/getPublicAddress",{finalKeyResult:i,isNewKey:s}),i)return this.formatLegacyPublicKeyData({finalKeyResult:i,isNewKey:s,enableOneKey:n});throw new Error(`node results do not match at final lookup ${JSON.stringify(c||{})}, ${JSON.stringify(l||{})}`)}generateNonceMetadataParams(e,t,r){const n=this.ec.keyFromPrivate(t.toString("hex",64)),i={operation:e,timestamp:new(m8())(~~(this.serverTimeOffset+Date.now()/1e3)).toString(16)};r&&(i.data=r.toString("hex",64));const o=n.sign(P8(g8.from(w4()(i),"utf8")).slice(2));return{pub_key_X:n.getPublic().getX().toString("hex",64),pub_key_Y:n.getPublic().getY().toString("hex",64),set_data:i,signature:g8.from(o.r.toString(16,64)+o.s.toString(16,64)+new(m8())("").toString(16,2),"hex").toString("base64")}}async getNewPublicAddress(e,t,r){let{verifier:n,verifierId:i,extendedVerifierId:o}=t;A8.debug("> torus.js/getPublicAddress",{endpoints:e,verifier:n,verifierId:i});const a=await(async e=>{const{endpoints:t,network:r,verifier:n,verifierId:i,extendedVerifierId:o}=e,a=t.map((e=>K3(e,W3(v8,{verifier:n,verifier_id:i.toString(),extended_verifier_id:o,one_key_flow:!0,fetch_node_index:!0}),null,{logTracingHeader:K8.logRequestTracing}).catch((e=>A8.error(`${v8} request failed`,e)))));let s;const c=[],l=await G8(a,(e=>{const a=e.filter((e=>{if(e&&!e.error){var t,r,n;if(!s)(null===(t=e.result)||void 0===t||null===(r=t.keys[0].nonce_data)||void 0===r||null===(n=r.pubNonce)||void 0===n?void 0:n.x)&&(s=e.result.keys[0].nonce_data);return e}return!1})),l=S8(a.map((e=>e&&e.error)),1+~~(t.length/2)),u=S8(a.map((e=>e&&(e=>{const t={keys:[],is_new_key:e.is_new_key};return e&&e.keys&&e.keys.length>0&&(t.keys=e.keys.map((e=>({pub_key_X:e.pub_key_X,pub_key_Y:e.pub_key_Y,address:e.address})))),t})(e.result))),1+~~(t.length/2));return u&&(s||o||n8[r])||l?(u&&e.forEach((e=>{if(e&&e.result){const t=parseInt(e.result.node_index);t&&c.push(t)}})),Promise.resolve({keyResult:u,nodeIndexes:c,errorResult:l,nonceResult:s})):Promise.reject(new Error(`invalid public key result: ${JSON.stringify(e)} and nonce result:${JSON.stringify(s||{})} for verifier: ${n}, verifierId: ${i} and extendedVerifierId: ${o} `))}));return l})({endpoints:e,network:this.network,verifier:n,verifierId:i,extendedVerifierId:o}),{errorResult:s,keyResult:c,nodeIndexes:l=[]}=a,{nonceResult:u}=a;if(s&&JSON.stringify(s).toLowerCase().includes("verifier not supported"))throw new Error("Verifier not supported. Check if you: \n\n 1. Are on the right network (Torus testnet/mainnet) \n\n 2. Have setup a verifier on dashboard.web3auth.io?");if(s)throw new Error(`node results do not match at first lookup ${JSON.stringify(c||{})}, ${JSON.stringify(s||{})}`);if(A8.debug("> torus.js/getPublicAddress",{keyResult:c}),null===c||void 0===c||!c.keys)throw new Error(`node results do not match at final lookup ${JSON.stringify(c||{})}, ${JSON.stringify(s||{})}`);if(!u&&!o&&!n8[this.network])throw new E8("metadata nonce is missing in share response");const{pub_key_X:d,pub_key_Y:h}=c.keys[0];let f;const p=new(m8())((null===u||void 0===u?void 0:u.nonce)||"0",16);let m,g;if(o)g=this.ec.keyFromPublic({x:d,y:h}).getPublic(),m=g;else{if(n8[this.network])return this.formatLegacyPublicKeyData({isNewKey:c.is_new_key,enableOneKey:r,finalKeyResult:{keys:c.keys}});{const e=u;m=this.ec.keyFromPublic({x:d,y:h}).getPublic(),g=this.ec.keyFromPublic({x:d,y:h}).getPublic().add(this.ec.keyFromPublic({x:e.pubNonce.x,y:e.pubNonce.y}).getPublic()),f={X:e.pubNonce.x,Y:e.pubNonce.y}}}if(!m)throw new Error("Unable to derive oAuthPubKey");const v=m.getX().toString(16,64),y=m.getY().toString(16,64),b=C8(this.ec,m.getX(),m.getY());if(A8.debug("> torus.js/getPublicAddress, oAuthKeyData",{X:v,Y:y,oAuthAddress:b,nonce:null===p||void 0===p?void 0:p.toString(16),pubNonce:f}),!g)throw new Error("Unable to derive finalPubKey");const w=g?g.getX().toString(16,64):"",x=g?g.getY().toString(16,64):"";return{oAuthKeyData:{evmAddress:b,X:v,Y:y},finalKeyData:{evmAddress:g?C8(this.ec,g.getX(),g.getY()):"",X:w,Y:x},metadata:{pubNonce:f,nonce:p,upgraded:(null===u||void 0===u?void 0:u.upgraded)||!1,typeOfUser:"v2"},nodesData:{nodeIndexes:l}}}async formatLegacyPublicKeyData(e){var t,r;const{finalKeyResult:n,enableOneKey:i,isNewKey:o}=e,{pub_key_X:a,pub_key_Y:s}=n.keys[0];let c,l,u,d,h;const f=this.ec.keyFromPublic({x:a,y:s}).getPublic();if(i){try{c=await V8(this.legacyMetadataHost,this.ec,this.serverTimeOffset,a,s,void 0,!o),l=new(m8())(c.nonce||"0",16),d=c.typeOfUser}catch{throw new E8}if("v1"===c.typeOfUser)u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPrivate(l.toString(16)).getPublic());else{if("v2"!==c.typeOfUser)throw new Error("getOrSetNonce should always return typeOfUser.");u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPublic({x:c.pubNonce.x,y:c.pubNonce.y}).getPublic()),h={X:c.pubNonce.x,Y:c.pubNonce.y}}}else d="v1",l=await H8(this.legacyMetadataHost,{pub_key_X:a,pub_key_Y:s}),u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPrivate(l.toString(16)).getPublic());if(!f)throw new Error("Unable to derive oAuthPubKey");const p=f.getX().toString(16,64),m=f.getY().toString(16,64),g=C8(this.ec,f.getX(),f.getY());if(A8.debug("> torus.js/getPublicAddress, oAuthKeyData",{X:p,Y:m,oAuthAddress:g,nonce:null===(t=l)||void 0===t?void 0:t.toString(16),pubNonce:h}),"v2"===d&&!u)throw new Error("Unable to derive finalPubKey");const v=u?u.getX().toString(16,64):"",y=u?u.getY().toString(16,64):"";return{oAuthKeyData:{evmAddress:g,X:p,Y:m},finalKeyData:{evmAddress:u?C8(this.ec,u.getX(),u.getY()):"",X:v,Y:y},metadata:{pubNonce:h,nonce:l,upgraded:(null===(r=c)||void 0===r?void 0:r.upgraded)||!1,typeOfUser:d},nodesData:{nodeIndexes:[]}}}}var n9=r(5505),i9=r(4872).Buffer;function o9(e){return i9.from((0,x4.wn)(e))}const a9=new $s.ec("secp256k1");function s9(e){return{iv:i9.from(e.iv,"hex"),ephemPublicKey:i9.from(e.ephemPublicKey,"hex"),ciphertext:i9.from(e.ciphertext,"hex"),mac:i9.from(e.mac,"hex")}}function c9(e){return{iv:i9.from(e.iv).toString("hex"),ephemPublicKey:i9.from(e.ephemPublicKey).toString("hex"),ciphertext:i9.from(e.ciphertext).toString("hex"),mac:i9.from(e.mac).toString("hex")}}async function l9(e,t){const r=JSON.stringify(t),n=i9.from(r,"utf-8"),i=c9(await g4(h4(i9.from(e,"hex")),n));return JSON.stringify(i)}async function u9(e,t){const r=s9(JSON.parse(t)),n=a9.keyFromPrivate(e),i=(await v4(i9.from(n.getPrivate().toString("hex",64),"hex"),r)).toString("utf-8");return JSON.parse(i)}var d9=r(4872).Buffer;const h9="google",f9="facebook",p9="reddit",m9="discord",g9="twitch",v9="apple",y9="github",b9="linkedin",w9="twitter",x9="weibo",_9="line",S9="email_password",k9="passwordless",E9="jwt",A9="webauthn",P9="single_id_verifier",T9={POPUP:"popup",REDIRECT:"redirect"},O9="localStorage",C9="server",j9="triggerLogin",R9="triggerAggregateLogin",I9="triggerHybridAggregateLogin",M9="fetchNodeDetails",L9="pubAddressLookup",N9="fetchShares";var D9=j3().getLogger("customauth");const z9={[v9]:"apple",[y9]:"github",[b9]:"linkedin",[w9]:"twitter",[x9]:"weibo",[_9]:"line",[S9]:"Username-Password-Authentication",[k9]:"email"},B9=e=>e.href.endsWith("/")?e.href:`${e.href}/`,U9={webWorkerSupport:!1};function F9(e,t){return t?e:e.toLowerCase()}const $9=function(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{name:i,sub:o}=e;if(r)return F9(e[r],n);switch(t){case k9:case S9:return F9(i,n);case x9:case y9:case w9:case v9:case b9:case _9:case E9:return F9(o,n);default:throw new Error("Invalid login type")}},H9=(e,t)=>{const r=e.split("&").reduce(((e,t)=>{const[r,n]=t.split("=");return e[r]=n,e}),{});D9.info(r,t);let n={},i="";return Object.keys(r).length>0&&r.state?(n=JSON.parse(atob(decodeURIComponent(decodeURIComponent(r.state))))||{},i=r.error_description||r.error||i):Object.keys(t).length>0&&t.state&&(n=JSON.parse(atob(decodeURIComponent(decodeURIComponent(t.state))))||{},t.error&&(i=t.error)),{error:i,instanceParameters:n,hashParameters:r}};function V9(e){const{baseURL:t,query:r,hash:n}=e,i=new URL(t);if(r&&Object.keys(r).forEach((e=>{i.searchParams.append(e,r[e])})),n){const e=new URL(V9({baseURL:t,query:n})).searchParams.toString();i.hash=e}return i.toString()}const q9=e=>{try{return new URL(decodeURIComponent(e))}catch(t){throw new Error(`${(null===t||void 0===t?void 0:t.message)||""}, Note: Your jwt domain: (i.e ${e}) must have http:// or https:// prefix`)}};function K9(e){return e!==f9&&e!==_9||!function(){const e=Y3().getParser(navigator.userAgent).getPlatform();return e.type===Y3().PLATFORMS_MAP.tablet||e.type===Y3().PLATFORMS_MAP.mobile}()?1e4:6e4}class W9 extends QH.EventEmitter{constructor(e){let{url:t,target:r,features:n,timeout:i=3e4}=e;super(),P3(this,"url",void 0),P3(this,"target",void 0),P3(this,"features",void 0),P3(this,"window",void 0),P3(this,"windowTimer",void 0),P3(this,"iClosedWindow",void 0),P3(this,"timeout",void 0),this.url=t,this.target=r||"_blank",this.features=n||function(){const e=void 0!==window.screenLeft?window.screenLeft:window.screenX,t=void 0!==window.screenTop?window.screenTop:window.screenY,r=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,n=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,i=Math.abs((r-1200)/2/1+e);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=700,width=1200,top=${Math.abs((n-700)/2/1+t)},left=${i}`}(),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this.timeout=i,this._setupTimer()}_setupTimer(){this.window&&(this.windowTimer=Number(setInterval((()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),setTimeout((()=>{this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0}),this.timeout)),void 0===this.window&&clearInterval(this.windowTimer)}),500)))}open(){var e;return this.window=window.open(this.url.href,this.target,this.features),null!==(e=this.window)&&void 0!==e&&e.focus&&this.window.focus(),Promise.resolve()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(e){e?window.location.replace(this.url.href):window.location.href=this.url.href}}const G9=["access_token","id_token"];function Z9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y9(e){for(var t=1;t{let n;const i=async t=>{try{const{error:i,data:o}=t,a=o||{},{instanceParams:s,hashParams:{access_token:c,id_token:l}}=a,u=G3(a.hashParams,G9);if(i)return D9.error(t),void r(new Error(`Error: ${i}. Info: ${JSON.stringify(t.data||{})}`));t.data&&s.verifier===this.verifier&&(D9.info(t.data),!this.redirectToOpener&&n&&await n.postMessage({success:!0}),e(Y9(Y9({accessToken:c,idToken:l||""},u),{},{state:s})))}catch(i){D9.error(i),r(i)}};if(this.redirectToOpener){const e=async r=>{if(!r.data)return;const n=r.data;n.channel===`redirect_channel_${this.nonce}`&&(window.removeEventListener("message",e),i(n),t.close())};window.addEventListener("message",e)}else n=new q4(`redirect_channel_${this.nonce}`,U9),n.addEventListener("message",(async e=>{await i(e),n.close(),t.close()}));t.open(),t.once("close",(()=>{n&&n.close(),r(new Error("user closed popup"))}))})):(t.redirect(e.locationReplaceOnRedirect),null)}}class J9 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token"),P3(this,"SCOPE","identify email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://discord.com/api/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://discord.com/api/users/@me",{headers:{Authorization:`Bearer ${t}`}}),{id:n,avatar:i,email:o="",username:a="",discriminator:s=""}=r;return{profileImage:null===i?`https://cdn.discordapp.com/embed/avatars/${Number(s)%5}.png`:`https://cdn.discordapp.com/avatars/${n}/${i}.png?size=2048`,name:`${a}#${s}`,email:o,verifierId:n,verifier:this.verifier,typeOfLogin:this.typeOfLogin}}}class Q9 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token"),P3(this,"SCOPE","public_profile email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://www.facebook.com/v15.0/dialog/oauth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://graph.facebook.com/me?fields=name,email,picture.type(large)",{headers:{Authorization:`Bearer ${t}`}}),{name:n="",id:i,picture:o,email:a=""}=r;return{email:a,name:n,profileImage:o.data.url||"",verifier:this.verifier,verifierId:i,typeOfLogin:this.typeOfLogin}}}class e7 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token id_token"),P3(this,"SCOPE","profile email openid"),P3(this,"PROMPT","consent select_account"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://accounts.google.com/o/oauth2/v2/auth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,nonce:this.nonce},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://www.googleapis.com/userinfo/v2/me",{headers:{Authorization:`Bearer ${t}`}}),{picture:n="",email:i="",name:o=""}=r;return{email:i,name:o,profileImage:n,verifier:this.verifier,verifierId:i.toLowerCase(),typeOfLogin:this.typeOfLogin}}}let t7=class extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"SCOPE","openid profile email"),P3(this,"RESPONSE_TYPE","token id_token"),P3(this,"PROMPT","login"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const{domain:e}=this.jwtParams,t=q9(e);t.pathname+=t.pathname.endsWith("/")?"authorize":"/authorize";const r=JSON.parse(JSON.stringify(this.jwtParams));delete r.domain;const n=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,connection:z9[this.typeOfLogin],nonce:this.nonce},r);Object.keys(n).forEach((e=>{n[e]&&t.searchParams.append(e,n[e])})),this.finalURL=t}async getUserInfo(e){const{idToken:t,accessToken:r}=e,{domain:n,verifierIdField:i,isVerifierIdCaseSensitive:o,user_info_route:a="userinfo"}=this.jwtParams;if(r)try{const e=new URL(n),t=await q3(`${B9(e)}${a}`,{headers:{Authorization:`Bearer ${r}`}}),{picture:s,name:c,email:l}=t;return{email:l,name:c,profileImage:s,verifierId:$9(t,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}catch(s){j3().warn(s,"Unable to get userinfo from endpoint")}if(t){const e=Q4(t),{name:r,email:n,picture:a}=e;return{profileImage:a,name:r,email:n,verifierId:$9(e,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}throw new Error("Access/id token not available")}};class r7 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=JSON.parse(JSON.stringify(this.jwtParams));delete e.domain;const t=O3()({state:this.state,client_id:this.clientId,nonce:this.nonce},e);this.finalURL=new URL(V9({baseURL:this.redirect_uri,query:null,hash:t}))}async getUserInfo(e){const{idToken:t,accessToken:r}=e,{domain:n,verifierIdField:i,isVerifierIdCaseSensitive:o,user_info_route:a="userinfo"}=this.jwtParams;if(r)try{const e=new URL(n),t=await q3(`${B9(e)}${a}`,{headers:{Authorization:`Bearer ${r}`}}),{picture:s,name:c,email:l}=t;return{email:l,name:c,profileImage:s,verifierId:$9(t,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}catch(s){j3().warn(s,"Unable to get userinfo from endpoint")}if(t){const e=Q4(t),{name:r,email:n,picture:a}=e;return{profileImage:a,name:r,email:n,verifierId:$9(e,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}throw new Error("Access/id token not available")}handleLoginWindow(e){const{id_token:t,access_token:r}=this.jwtParams,n=new W9({url:this.finalURL,features:e.popupFeatures});return this.uxMode!==T9.REDIRECT?Promise.resolve({state:{},idToken:t,accessToken:r}):(n.redirect(e.locationReplaceOnRedirect),null)}}const n7=["access_token","id_token"];function i7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o7(e){for(var t=1;t{if(this.redirectToOpener)return void t(new Error("Cannot use redirect to opener for passwordless"));const r=r=>{try{const{error:n,data:i}=r,o=i||{},{instanceParams:a,hashParams:{access_token:s,id_token:c}}=o,l=G3(o.hashParams,n7);if(n)return D9.error(r.error),void t(new Error(n));r.data&&a.verifier===this.verifier&&(D9.info(r.data),e(o7(o7({accessToken:s,idToken:c||""},l),{},{state:a})))}catch(n){D9.error(n),t(n)}},n=new q4(`redirect_channel_${this.nonce}`,U9);n.addEventListener("message",(async e=>{r(e),n.close()}));try{const{connection:e="email",login_hint:r}=this.jwtParams,n=O3()({client_id:this.clientId,connection:e,email:"email"===e?r:void 0,phone_number:"sms"===e?r:void 0,send:"link",authParams:{scope:this.SCOPE,state:this.state,response_type:this.RESPONSE_TYPE,redirect_uri:this.redirect_uri,nonce:this.nonce,prompt:this.PROMPT}},{authParams:this.jwtParams});K3(this.finalURL.href,JSON.parse(JSON.stringify(n))).then((e=>{D9.info("posted",e)})).catch((e=>{D9.error(e),t(e)}))}catch(i){D9.error(i),t(i)}}))}}class s7 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token"),P3(this,"SCOPE","identity"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://www.reddit.com/api/v1/authorize"+(window.innerWidth<600?".compact":"")),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://oauth.reddit.com/api/v1/me",{headers:{Authorization:`Bearer ${t}`}}),{icon_img:n="",name:i=""}=r;return{email:"",name:i,profileImage:n.split("?").length>0?n.split("?")[0]:n,verifier:this.verifier,verifierId:i.toLowerCase(),typeOfLogin:this.typeOfLogin}}}class c7 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token"),P3(this,"SCOPE","user:read:email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://id.twitch.tv/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE,force_verify:!0},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://api.twitch.tv/helix/users",{headers:{Authorization:`Bearer ${t}`,"Client-ID":this.clientId}}),[{profile_image_url:n="",display_name:i="",email:o="",id:a}]=r.data||[];return{profileImage:n,name:i,email:o,verifierId:a,verifier:this.verifier,typeOfLogin:this.typeOfLogin}}}const l7="https://api.webauthn.openlogin.com";class u7 extends X9{constructor(e,t,r,n,i,o,a,s,c){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"registerOnly",void 0),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.registerOnly=c,this.setFinalUrl()}setFinalUrl(){const{webauthnURL:e}=this.customState||{},t=e?new URL(e):new URL("https://webauthn.openlogin.com"),r=JSON.parse(JSON.stringify(this.jwtParams||{})),n=O3()({register_only:!!this.registerOnly,state:this.state,client_id:this.clientId,redirect_uri:this.redirect_uri},r);Object.keys(n).forEach((e=>{n[e]&&t.searchParams.append(e,n[e])})),this.finalURL=t}async getUserInfo(e){const{idToken:t,ref:r,extraParamsPassed:n,extraParams:i}=e;let o,a,s,c,l,u,d,h,f;if("true"===n){D9.debug("extraParamsPassed is true, using extraParams passed through hashParams");try{({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=JSON.parse(atob(i)))}catch(p){D9.warn("unable to parse extraParams",p),({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=await q3(`${l7}/signature/fetch/${t}`))}}else D9.debug("extraParamsPassed is false, using extraParams passed through bridge server"),({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=await q3(`${l7}/signature/fetch/${t}`));if(a!==t)throw new Error("idtoken should be equal to signature");return{email:"",name:"WebAuthn Login",profileImage:"",verifier:this.verifier,verifierId:o,typeOfLogin:this.typeOfLogin,ref:r,registerOnly:this.registerOnly,extraVerifierParams:{signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}}}}const d7=e=>{let{clientId:t,redirect_uri:r,typeOfLogin:n,verifier:i,jwtParams:o,redirectToOpener:a,uxMode:s,customState:c,registerOnly:l}=e;if(!i||!n||!t)throw new Error("Invalid params");const{domain:u,login_hint:d,id_token:h,access_token:f}=o||{};switch(n){case h9:return new e7(t,i,r,n,s,a,o,c);case f9:return new Q9(t,i,r,n,s,a,o,c);case g9:return new c7(t,i,r,n,s,a,o,c);case p9:return new s7(t,i,r,n,s,a,o,c);case m9:return new J9(t,i,r,n,s,a,o,c);case k9:if(!u||!d)throw new Error("Invalid params");return new a7(t,i,r,n,s,a,o,c);case v9:case y9:case b9:case w9:case x9:case _9:case S9:case E9:if(h||f)return new r7(t,i,r,n,s,a,o,c);if(!u)throw new Error("Invalid params");return new t7(t,i,r,n,s,a,o,c);case A9:return new u7(t,i,r,n,s,a,o,c,l);default:throw new Error("Invalid login type")}};class h7{constructor(e){P3(this,"sentry",null),this.sentry=e}startTransaction(e){if(this.sentry)return this.sentry.startTransaction(e)}finishTransaction(e){e&&e.finish()}}class f7{constructor(e){P3(this,"currentStorageMethod",O9),P3(this,"isInitialized",!1),P3(this,"storageServerUrl","https://broadcast-server.tor.us"),this.storageServerUrl=e}init(){const e=function(){var e;const t=Y3().parse(navigator.userAgent);D9.info(JSON.stringify(t),"current browser info");let r=!0;return null!==(e=navigator)&&void 0!==e&&e.brave&&(r=!1),t.engine.name!==Y3().ENGINE_MAP.WebKit&&t.engine.name!==Y3().ENGINE_MAP.Gecko||(r=!1),r}(),t=function(e){let t;try{t=window[e];const r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(r){return r&&(22===r.code||1014===r.code||"QuotaExceededError"===r.name||"NS_ERROR_DOM_QUOTA_REACHED"===r.name)&&t&&0!==t.length}}(O9);this.currentStorageMethod=e&&t?O9:C9,this.isInitialized=!0}async storeLoginDetails(e,t){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===C9){const r=o9(d9.from(t,"utf8")),n=r.toString("hex"),i=h4(r).toString("hex"),o=await l9(n,e),a=(await f4(r,o9(d9.from(o,"utf8")))).toString("hex");await K3(`${this.storageServerUrl}/store/set`,{key:i,data:o,signature:a})}else window.localStorage.setItem(`torus_login_${t}`,JSON.stringify(e))}async retrieveLoginDetails(e){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===C9){const t=o9(d9.from(e,"utf8")),n=t.toString("hex"),i=h4(t).toString("hex");try{const e=await q3(`${this.storageServerUrl}/store/get?key=${i}`);if(e.message){return await u9(n,e.message)}}catch(r){if(404!==r.status)throw r;D9.warn(r,"Session likely expired")}}const t=window.localStorage.getItem(`torus_login_${e}`);return JSON.parse(t||"{}")}clearLoginDetailsStorage(e){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");this.currentStorageMethod===O9&&window.localStorage.removeItem(`torus_login_${e}`)}clearOrphanedLoginDetails(){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===O9){Object.keys(window.localStorage).forEach((e=>{e.startsWith("torus_login_")&&window.localStorage.removeItem(e)}))}}}const p7=["access_token","id_token"],m7=["access_token","id_token"],g7=["access_token","id_token"],v7=["args","method"];function y7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b7(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(this.storageHelper.init(),t)this.isInitialized=!0;else{if(!e){if(!(await fetch(`${this.config.baseUrl}sw.js`,{cache:"reload"})).ok)throw new Error("Service worker is not being served. Please serve it");try{return await(n=this.config.baseUrl,new Promise(((e,t)=>{const r=`${n}sw.js`;"serviceWorker"in window.navigator?(0,n9.z)(r,{ready(){D9.info("App is being served from cache by a service worker.\n For more details, visit https://goo.gl/AFskqB"),e(void 0)},registered(){D9.info("Service worker has been registered."),e(void 0)},cached(){D9.info("Content has been cached for offline use."),e(void 0)},updatefound(){D9.info("New content is downloading.")},updated(){D9.info("New content is available; please refresh.")},offline(){D9.info("No internet connection found. App is running in offline mode."),t(new Error("App is offline"))},error(e){D9.error("Error during service worker registration:",e),t(e)}}):t(new Error("Service workers are not supported"))}))),void(this.isInitialized=!0)}catch(i){D9.warn(i)}}var n;if(!r)return(()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t?void 0:t.userAgent.toLowerCase().indexOf("firefox"))>-1||!1})()?void(this.isInitialized=!0):void await this.handlePrefetchRedirectUri();this.isInitialized=!0}}async triggerLogin(e){const{verifier:t,typeOfLogin:r,clientId:n,jwtParams:i,hash:o,queryParameters:a,customState:s,registerOnly:c}=e;if(D9.info("Verifier: ",t),!this.isInitialized)throw new Error("Not initialized yet");if(c&&r!==A9)throw new Error("registerOnly flag can only be passed for webauthn");const l=d7({typeOfLogin:r,clientId:n,verifier:t,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:i,uxMode:this.config.uxMode,customState:s,registerOnly:c});let u;if(o&&a){const{error:e,hashParameters:t,instanceParameters:r}=H9(o,a);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;u=b7(b7({accessToken:n,idToken:i},G3(t,p7)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===T9.REDIRECT&&await this.storageHelper.storeLoginDetails({method:j9,args:e},l.nonce),u=await l.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===T9.REDIRECT)return null;const d=await l.getUserInfo(u);if(c){const e=this.sentryHandler.startTransaction({name:M9}),r=await this.nodeDetailManager.getNodeDetails({verifier:t,verifierId:d.verifierId});this.sentryHandler.finishTransaction(e);const n=this.sentryHandler.startTransaction({name:L9}),i=await this.torus.getPublicAddress(r.torusNodeEndpoints,r.torusNodePub,{verifier:t,verifierId:d.verifierId});this.sentryHandler.finishTransaction(n);const o={userInfo:b7(b7({},d),u)};return b7(b7(b7({},o),i),{},{finalKeyData:b7(b7({},i.finalKeyData),{},{privKey:void 0}),oAuthKeyData:b7(b7({},i.finalKeyData),{},{privKey:void 0}),metadata:b7(b7({},i.metadata),{},{nonce:void 0}),sessionData:void 0})}return b7(b7({},await this.getTorusKey(t,d.verifierId,{verifier_id:d.verifierId},u.idToken||u.accessToken,d.extraVerifierParams)),{},{userInfo:b7(b7({},d),u)})}async triggerAggregateLogin(e){const{aggregateVerifierType:t,verifierIdentifier:r,subVerifierDetailsArray:n}=e;if(!this.isInitialized)throw new Error("Not initialized yet");if(!t||!r||!Array.isArray(n))throw new Error("Invalid params");if(t===P9&&1!==n.length)throw new Error("Single id verifier can only have one sub verifier");const i=[],o=[];for(const h of n){const{clientId:t,typeOfLogin:r,verifier:n,jwtParams:a,hash:s,queryParameters:c,customState:l}=h,u=d7({typeOfLogin:r,clientId:t,verifier:n,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:a,uxMode:this.config.uxMode,customState:l});let d;if(s&&c){const{error:e,hashParameters:t,instanceParameters:r}=H9(s,c);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;d=b7(b7({accessToken:n,idToken:i},G3(t,m7)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===T9.REDIRECT&&await this.storageHelper.storeLoginDetails({method:R9,args:e},u.nonce),d=await u.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===T9.REDIRECT)return null;i.push(u.getUserInfo(d)),o.push(d)}const a=(await Promise.all(i)).map((e=>b7(b7({},e),{},{aggregateVerifier:r}))),s={verify_params:[],sub_verifier_ids:[],verifier_id:""},c=[];let l="",u={};for(let h=0;hb7(b7({},e),o[t])))})}async triggerHybridAggregateLogin(e){const{singleLogin:t,aggregateLoginParams:r}=e;if(!this.isInitialized)throw new Error("Not initialized yet");if(!r.aggregateVerifierType||!r.verifierIdentifier||!Array.isArray(r.subVerifierDetailsArray))throw new Error("Invalid params");if(r.aggregateVerifierType===P9&&1!==r.subVerifierDetailsArray.length)throw new Error("Single id verifier can only have one sub verifier");const{typeOfLogin:n,clientId:i,verifier:o,jwtParams:a,hash:s,queryParameters:c,customState:l}=t,u=d7({typeOfLogin:n,clientId:i,verifier:o,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:a,uxMode:this.config.uxMode,customState:l});let d;if(s&&c){const{error:e,hashParameters:t,instanceParameters:r}=H9(s,c);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;d=b7(b7({accessToken:n,idToken:i},G3(t,g7)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===T9.REDIRECT&&await this.storageHelper.storeLoginDetails({method:I9,args:e},u.nonce),d=await u.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===T9.REDIRECT)return null;const h=await u.getUserInfo(d),f=this.getTorusKey(o,h.verifierId,{verifier_id:h.verifierId},d.idToken||d.accessToken,h.extraVerifierParams),{verifierIdentifier:p,subVerifierDetailsArray:m}=r,g={verify_params:[],sub_verifier_ids:[],verifier_id:""},v=[];let y="";for(let S=0;S0&&void 0!==arguments[0]?arguments[0]:{};await this.init({skipInit:!0});const r=new URL(window.location.href),n=r.hash.substring(1),i={};if(r.searchParams.forEach(((e,t)=>{i[t]=e})),e){const e=window.location.origin+window.location.pathname;window.history.replaceState(b7(b7({},window.history.state),{},{as:e,url:e}),"",e)}if(!n&&0===Object.keys(i).length)throw new Error("Unable to fetch result from OAuth login");const{error:o,instanceParameters:a,hashParameters:s}=H9(n,i),{instanceId:c}=a;D9.info(c,"instanceId");const l=await this.storageHelper.retrieveLoginDetails(c),{args:u,method:d}=l,h=G3(l,v7);if(D9.info(u,d),t&&this.storageHelper.clearLoginDetailsStorage(c),o)return{error:o,state:a||{},method:d,result:{},hashParameters:s,args:u};let f;try{if(d===j9){const e=u;e.hash=n,e.queryParameters=i,f=await this.triggerLogin(e)}else if(d===R9){const e=u;e.subVerifierDetailsArray.forEach((e=>{e.hash=n,e.queryParameters=i})),f=await this.triggerAggregateLogin(e)}else if(d===I9){const e=u;e.singleLogin.hash=n,e.singleLogin.queryParameters=i,f=await this.triggerHybridAggregateLogin(e)}}catch(Tle){return D9.error(Tle),b7({error:`Could not get result from torus nodes \n ${(null===Tle||void 0===Tle?void 0:Tle.message)||""}`,state:a||{},method:d,result:{},hashParameters:s,args:u},h)}return b7(f?{method:d,result:f,state:a||{},hashParameters:s,args:u}:{error:"Unsupported method type",state:a||{},method:d,result:{},hashParameters:s,args:u},h)}async handlePrefetchRedirectUri(){return document?new Promise(((e,t)=>{const r=document.createElement("link");r.href=this.config.redirect_uri,window.location.origin!==new URL(this.config.redirect_uri).origin&&(r.crossOrigin="anonymous"),r.type="text/html",r.rel="prefetch";const n=()=>{this.isInitialized=!0,e()};try{r.relList&&r.relList.supports&&r.relList.supports("prefetch")?(r.onload=n,r.onerror=()=>{t(new Error(`Please serve redirect.html present in serviceworker folder of this package on ${this.config.redirect_uri}`))},document.head.appendChild(r)):n()}catch(Tle){n()}})):Promise.resolve()}}const x7=(e,t,r)=>Promise.race([e(),new Promise(((e,n)=>setTimeout((()=>{n(new Error(r||"The operation has timed out"))}),t)))]),_7=async()=>x7((async()=>{const e=new w7({web3AuthClientId:"BBHmFdLXgGDzSiizRVMWtyL_7Dsoxu5B8zep2Pns8sGELslgXDbktJewVDVDDBlknEKkMCtzISLjJtxk60SK2-g",baseUrl:"https://umamiwallet.com/auth/v2/",redirectPathName:"redirect.html",redirectToOpener:!0,uxMode:"popup",network:"mainnet"});await e.init({skipSw:!0});const t=await e.triggerAggregateLogin({verifierIdentifier:"tezos-google",aggregateVerifierType:"single_id_verifier",subVerifierDetailsArray:[{clientId:"1070572364808-d31nlkneam5ee6dr0tu28fjjbsdkfta5.apps.googleusercontent.com",typeOfLogin:"google",verifier:"umami"}]});return{secretKey:vc(t.finalKeyData.privKey||t.oAuthKeyData.privKey,Ks[Fs.SPSK]),email:t.userInfo[0].email}}),6e4),S7=e=>{let t="Something went wrong";"object"===typeof e&&"message"in e?t=e.message:"string"===typeof e&&(t=e);let r="";return"object"===typeof e&&"stack"in e&&(r=e.stack),{timestamp:(new Date).toISOString(),description:t,stacktrace:r}},k7=()=>{const[e,t]=(0,n.useState)(!1),r=cN(),i=CR(),o=async(n,o)=>{if(!e){t(!0);try{return await n()}catch(a){const e=S7(a);throw r({description:e.description,status:"error",..."function"===typeof o?o(a):o}),i(Bd.actions.add(e)),a}finally{t(!1)}}};return{isLoading:e,handleAsyncAction:async(e,t)=>o(e,t).catch((()=>{})),handleAsyncActionUnsafe:o}},E7=({onAuth:e})=>{const{isLoading:t,handleAsyncAction:r}=k7();return(0,un.jsx)(S3,{width:"48px",background:"white",borderRadius:"full",_disabled:{bg:EP.gray[900]},"aria-label":"Google SSO","data-testid":"google-auth-button",icon:(0,un.jsx)(k3,{size:"24px"}),isLoading:t,onClick:async()=>r((async()=>{const{secretKey:t,email:r}=await _7();return e(t,r)}),{title:"Social login failed"}),size:"lg",variant:"outline"})},A7=({children:e,...t})=>(0,un.jsxs)(Qz,{color:EP.orange,fontSize:"12px",...t,children:[(0,un.jsx)(LA,{as:Rj,marginRight:"6px"}),e]}),P7=({inputName:e,label:t="Password",placeholder:r="Enter your password",required:i="Password is required",validate:o,...a})=>{const{register:s}=AB(),[c,l]=(0,n.useState)(!1);return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(FU,{children:t}),(0,un.jsxs)(KU,{marginTop:"12px",children:[(0,un.jsx)(ZU,{"aria-label":t,autoComplete:"off",placeholder:r,type:c?"text":"password",...s(e,{required:i,minLength:{value:i?8:0,message:"Your password must be at least 8 characters long"},validate:o}),...a}),(0,un.jsx)(QU,{children:(0,un.jsx)(Dn,{onClick:()=>l((e=>!e)),tabIndex:-1,variant:"unstyled",children:c?(0,un.jsx)(Nj,{"data-testid":"eye-slash-icon"}):(0,un.jsx)(Lj,{width:"16.5px","data-testid":"eye-icon"})})})]})]})},T7=({signer:e,onSubmit:t,isLoading:r,isDisabled:n,text:i})=>{const o=MU({mode:"onBlur",defaultValues:{password:""}}),{handleSubmit:a,formState:{errors:s,isValid:c}}=o,l=$2(),u=F2(),d=cN(),{isLoading:h,handleAsyncAction:f}=k7(),p=h||r,m=n||!c,g=async({password:r})=>f((async()=>{const n=await u(e,r);return t(await r2({type:"mnemonic",secretKey:n,network:l}))})),v=async({password:r})=>f((async()=>{const n=await u(e,r);return t(await r2({type:"secret_key",secretKey:n,network:l}))})),y=async()=>f((async()=>{const{secretKey:e}=await _7();t(await r2({type:"social",secretKey:e,network:l}))})),b=async()=>f((async()=>(d({description:"Please open the Tezos app on your Ledger and approve the operation",status:"info",duration:6e4,isClosable:!0}),t(await r2({type:"ledger",account:e,network:l})))));switch(e.type){case"secret_key":case"mnemonic":return(0,un.jsx)(pn,{width:"100%",children:(0,un.jsxs)(PB,{...o,children:[(0,un.jsxs)(Zz,{isInvalid:!!s.password,marginY:"16px",children:[(0,un.jsx)(P7,{"data-testid":"password",inputName:"password"}),s.password&&(0,un.jsx)(A7,{children:s.password.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"8px",isDisabled:m,isLoading:p,onClick:a("mnemonic"===e.type?g:v),size:"lg",type:"submit",children:i||"Submit Transaction"})]})});case"social":return(0,un.jsx)(Dn,{width:"100%",isDisabled:m,isLoading:p,onClick:y,size:"lg",children:i||"Sign with Google"});case"ledger":return(0,un.jsx)(Dn,{width:"100%",isDisabled:m,isLoading:p,onClick:b,size:"lg",children:i||"Sign with Ledger"})}},O7=({request:e,onSuccess:t})=>{const r=VH()(e.sourceAddress),n=cN();if(!r)return(0,un.jsx)("div",{children:'"unknown account"'});return(0,un.jsxs)(iz,{children:[(0,un.jsxs)(oz,{marginBottom:"10px",children:["Sign payload request from ",e.appMetadata.name]}),(0,un.jsx)(cz,{}),(0,un.jsx)(lz,{children:e.payload}),(0,un.jsx)(tB,{justifyContent:"center",display:"flex",children:(0,un.jsx)(T7,{onSubmit:async r=>{const i=await r.signer.sign(e.payload),o={type:IM.SignPayloadResponse,id:e.id,signingType:e.signingType,signature:i.prefixSig};await X7.respond(o),n({description:"Successfully submitted Beacon operation",status:"success"}),t()},signer:r})})]})},C7=e=>(0,un.jsx)(LA,{width:"14px",height:"14px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M13 1L7 7M13 1V4.375M13 1H9.625M12.25 7.375V10.6C12.25 11.4401 12.25 11.8601 12.0865 12.181C11.9427 12.4632 11.7132 12.6927 11.431 12.8365C11.1101 13 10.6901 13 9.85 13H3.4C2.55992 13 2.13988 13 1.81901 12.8365C1.53677 12.6927 1.3073 12.4632 1.16349 12.181C1 11.8601 1 11.4401 1 10.6V4.15C1 3.30992 1 2.88988 1.16349 2.56901C1.3073 2.28677 1.53677 2.0573 1.81901 1.91349C2.13988 1.75 2.55992 1.75 3.4 1.75H6.625",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),j7=({hash:e})=>{const t=`${$2().tzktExplorerUrl}/${e}`,{onClose:r}=(0,n.useContext)(mM),i=VT();return(0,un.jsxs)(iz,{paddingY:"20px",children:[(0,un.jsx)(cz,{}),(0,un.jsx)(oz,{textAlign:"center",children:(0,un.jsx)(kn,{children:"Operation Submitted"})}),(0,un.jsx)(lz,{children:(0,un.jsx)(dn,{justifyContent:"center",marginTop:"10px",children:(0,un.jsx)(sz,{color:"text.dark",textAlign:"center",size:"sm",children:"You can follow this operation's progress in the Operations section. It may take up to 30 seconds to appear."})})}),(0,un.jsxs)(tB,{justifyContent:"center",flexDirection:"column",width:"100%",children:[(0,un.jsx)(Dn,{width:"100%",onClick:()=>{r(),i("/operations")},size:"lg",children:"See all Operations"}),(0,un.jsx)(vO,{rel:"noopener noreferrer",target:"_blank",to:t,children:(0,un.jsx)(dn,{alignItems:"center",marginTop:"24px",children:(0,un.jsxs)(Dn,{variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"View in Tzkt"}),(0,un.jsx)(C7,{stroke:"currentcolor"})]})})})]})]})},R7=(e,t)=>{const{onClose:r}=(0,n.useContext)(mM),[i,o]=(0,n.useState)(null),a=$2(),{isLoading:s,handleAsyncAction:c}=k7(),{openWith:l}=(0,n.useContext)(mM),u=MU({mode:"onBlur",defaultValues:{signer:e.signer.address.pkh,sender:e.sender.address.pkh}});(0,n.useEffect)((()=>{c((async()=>{const t=await l2(e,a);o(t)}),(e=>(r(),{title:"Error",description:`Error while processing beacon request: ${e.message}`,status:"error"})))}),[a,e]);return{fee:i,form:u,isSigning:s,onSign:async r=>c((async()=>{const{opHash:n}=await z2(e,r);l((0,un.jsx)(j7,{hash:n})),t(n)}))}},I7=({mutezAmount:e})=>(0,un.jsxs)(dn,{alignItems:"center",height:"60px",padding:"15px",background:EP.gray[800],borderRadius:"4px",children:[(0,un.jsx)(gR,{marginRight:"12px"}),(0,un.jsx)(dn,{alignItems:"end",children:(0,un.jsx)(u3,{number:Z2(e)})})]}),M7=({fee:e})=>(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"sm",children:"Fee:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"fee",size:"sm",children:Z2(e)})]}),L7=ln(oz,{baseStyle:{padding:0,paddingBottom:"32px",textAlign:"center"}}),N7=({title:e="Send",subTitle:t="Send one or insert into batch"})=>(0,un.jsxs)(L7,{children:[(0,un.jsx)(kn,{size:"2xl",children:e}),(0,un.jsx)(sz,{marginTop:"10px",color:EP.gray[400],textAlign:"center",size:"sm",children:t}),(0,un.jsx)(cz,{})]});function D7(e){const{viewBox:t="0 0 24 24",d:r,displayName:i,defaultProps:o={}}=e,a=n.Children.toArray(e.path),s=g(((e,n)=>(0,un.jsx)(LA,{ref:n,viewBox:t,...o,...e,children:a.length?a:(0,un.jsx)("path",{fill:"currentColor",d:r})})));return s.displayName=i,s}var z7=D7({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});const B7=({onClick:e})=>(0,un.jsx)(S3,{...FP,"aria-label":"Back",icon:(0,un.jsx)(z7,{width:"24px",height:"20px"}),onClick:e,size:"sm",variant:"ghost"}),U7=(e,t)=>{let r;switch(e){case"implicit":r="batch"===t?"Submit":"Confirm";break;case"proposal":r="Propose"}switch(t){case"single":return`${r} Transaction`;case"batch":return`${r} Batch`}},F7=e=>{switch(e.type){case"ledger":case"social":return;case"mnemonic":case"secret_key":return"Enter your password to confirm this transaction."}},$7=({goBack:e,mode:t,operationsType:r,signer:n})=>(0,un.jsxs)(L7,{children:[e&&(0,un.jsx)(B7,{onClick:e}),(0,un.jsx)(kn,{size:"2xl",children:U7(r,t)}),(0,un.jsx)(sz,{marginTop:"10px",color:EP.gray[400],textAlign:"center",size:"sm",children:F7(n)}),(0,un.jsx)(cz,{})]}),H7=({operation:e,onBeaconSuccess:t})=>{const{amount:r,contract:n,entrypoint:i,args:o}=e.operations[0],{isSigning:a,form:s,onSign:c,fee:l}=R7(e,t);return l?(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{mode:"single",operationsType:e.type,signer:e.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(I7,{mutezAmount:r}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,un.jsx)(M7,{fee:l})}),(0,un.jsx)(FU,{marginTop:"24px",children:"From "}),(0,un.jsx)(h3,{address:e.sender.address}),(0,un.jsx)(FU,{marginTop:"24px",children:"To "}),(0,un.jsx)(h3,{address:n}),(0,un.jsx)(FU,{marginTop:"24px",children:"Parameter"}),(0,un.jsx)(Nz,{allowToggle:!0,children:(0,un.jsxs)(Dz,{background:EP.gray[800],border:"none",borderRadius:"8px",children:[(0,un.jsxs)(zz,{children:[(0,un.jsx)(pn,{flex:"1",textAlign:"left",children:"JSON"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(UU,{value:{entrypoint:i,values:o}})})]})})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isLoading:a,onSubmit:c,signer:e.signer,text:U7(e.type,"single")})})]})})}):null},V7=({operation:e,onBeaconSuccess:t})=>{const{recipient:r}=e.operations[0],{isSigning:n,form:i,onSign:o,fee:a}=R7(e,t);return a?(0,un.jsx)(PB,{...i,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{mode:"single",operationsType:e.type,signer:e.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:e.signer.address}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(M7,{fee:a})})}),(0,un.jsx)(FU,{children:"To"}),(0,un.jsx)(h3,{address:r})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isLoading:n,onSubmit:o,signer:e.signer,text:U7(e.type,"single")})})]})})}):null},q7=({operation:e,onBeaconSuccess:t})=>{const{amount:r,recipient:n}=e.operations[0],{isSigning:i,form:o,onSign:a,fee:s}=R7(e,t);return s?(0,un.jsx)(PB,{...o,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{mode:"single",operationsType:e.type,signer:e.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(I7,{mutezAmount:r}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,un.jsx)(M7,{fee:s})}),(0,un.jsx)(FU,{marginTop:"24px",children:"From "}),(0,un.jsx)(h3,{address:e.sender.address}),(0,un.jsx)(FU,{marginTop:"24px",children:"To "}),(0,un.jsx)(h3,{address:n})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isLoading:i,onSubmit:a,signer:e.signer,text:U7(e.type,"single")})})]})})}):null},K7=({operation:e,onBeaconSuccess:t})=>{const{isSigning:r,form:n,onSign:i,fee:o}=R7(e,t);return o?(0,un.jsx)(PB,{...n,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{mode:"single",operationsType:e.type,signer:e.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:e.signer.address}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",paddingX:"4px",children:(0,un.jsx)(M7,{fee:o})})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isLoading:r,onSubmit:i,signer:e.signer,text:U7(e.type,"single")})})]})})}):null},W7=({operation:e,onBeaconSuccess:t})=>{switch(e.operations[0].type){case"tez":return(0,un.jsx)(q7,{onBeaconSuccess:t,operation:e});case"contract_call":return(0,un.jsx)(H7,{onBeaconSuccess:t,operation:e});case"delegation":return(0,un.jsx)(V7,{onBeaconSuccess:t,operation:e});case"undelegation":return(0,un.jsx)(K7,{onBeaconSuccess:t,operation:e});case"fa1.2":case"fa2":case"contract_origination":throw new Error("Unsupported operation type")}},G7=({message:e,onClose:t})=>{const r=VH(),n=cN();switch(e.type){case IM.PermissionRequest:return(0,un.jsx)(_3,{onSuccess:t,request:e});case IM.SignPayloadRequest:return(0,un.jsx)(O7,{onSuccess:t,request:e});case IM.OperationRequest:{const o=r(e.sourceAddress);if(!o)return(0,un.jsxs)(pn,{children:["Account not in this wallet ",e.sourceAddress]});try{const r=Z7(e,o),i=async r=>{const i={type:IM.OperationResponse,id:e.id,transactionHash:r};try{await X7.respond(i)}catch(o){console.warn("Failed to parse Beacon request",o),n({description:`Failed to confirm Beacon operation: ${o.message}`})}finally{t()}};return(0,un.jsx)(W7,{onBeaconSuccess:i,operation:r})}catch(i){return(0,un.jsxs)(pn,{children:["Error handling operation request: ",i.message]})}}default:return(0,un.jsxs)("div",{children:["Unsupported request: ",e.type]})}},Z7=({operationDetails:e},t)=>{if(0===e.length)throw new Error("Empty operation details!");if(e.length>1)throw new Error("Batch operation is not supported");const r=e[0],n=((e,t)=>{switch(e.kind){case NM.TRANSACTION:{const{destination:t,amount:r,parameters:n}=e;return Wu(t)&&n?{type:"contract_call",amount:r,contract:Zu(t),entrypoint:n.entrypoint,args:n.value}:{type:"tez",amount:r,recipient:Yu(e.destination)}}case NM.DELEGATION:{const{delegate:r}=e;return r?{type:"delegation",sender:t.address,recipient:Yu(r)}:{type:"undelegation",sender:t.address}}default:return null}})(e[0],t);if(!n)throw new Error(`Unsupported operation: ${r.kind}`);return{type:"implicit",operations:[n],sender:t,signer:t}},Y7=Hu.object({id:Hu.string(),type:Hu.string(),name:Hu.string(),publicKey:Hu.string(),version:Hu.string(),icon:Hu.string().optional(),relayServer:Hu.string().optional()}).parse,X7=new sN({name:"Umami",iconUrl:"",appUrl:"https://umamiwallet.com/"}),J7="beaconPeers",Q7=()=>{const e=(0,Fn.useQueryClient)();return()=>e.refetchQueries(J7)},eee=()=>{const e=Q7(),t=(()=>{const e=pi();return t=>e(Id.actions.removeConnection({dAppId:t}))})();return r=>X7.removePeer(r).then((()=>t(r.senderId))).then(e)},tee=()=>{const e=Q7(),t=cN();return r=>{(new _L).deserialize(r).then(Y7).then((t=>{X7.addPeer(t).then(e)})).catch((e=>{t({description:"Beacon sync code in the clipboard is invalid. Please copy a beacon sync code from the dApp",status:"error"}),console.error(e)}))}},ree=({children:e})=>{const{openWith:t,onClose:r}=(0,n.useContext)(mM);return(0,n.useEffect)((()=>{X7.init().then((()=>{X7.connect((e=>{t((0,un.jsx)(G7,{message:e,onClose:r}))}))})).catch(console.error)}),[r,t]),(0,un.jsx)(un.Fragment,{children:e})},nee=1963879877,iee=-1890025422,oee=e=>({address:Zu(e.address),threshold:Number(e.storage.threshold),signers:e.storage.signers.map(Yu),pendingOperationsBigmapId:e.storage.pending_ops}),aee=async(e,t)=>O2((async()=>{const r=await(e=>O2((async()=>{try{const t=`${e.tzktApiUrl}/v1/contracts?typeHash=1963879877&codeHash=-1890025422&includeStorage=true&limit=10000`,{data:r}=await dj.get(t);return r}catch(t){throw new Error(`Error fetching same contracts from tzkt: ${t.message}`)}})))(t);return r.filter((({storage:{signers:t}})=>{if(!(0,Va.every)(t,Gu))return!1;const r=t.filter((t=>e.has(t)));return r.length>0})).map(oee)})),see=e=>{const{bigmap:t,key:r,value:n}=e;if(null===r||null===n)throw new Error("parseMultisigOperation failed");return{id:r,bigmapId:t,rawActions:n.actions,approvals:n.approvals.map(Yu)}},cee=async(e,t)=>0===e.length?[]:O2((async()=>{const r=e.map((e=>e.pendingOperationsBigmapId)),n=await((e,t)=>0===e.length?Promise.resolve([]):O2((async()=>{const r=`${t.tzktApiUrl}/v1/bigmaps/keys?active=true&bigmap.in=${e.join(",")}&limit=10000`,{data:n}=await dj.get(r);return n})))(r,t);return(0,Va.compact)(n.map(see))})),lee=async(e,t,r)=>{const n=await cee(r,t);e($d.setPendingOperations(n.flat()))},uee=async(e,t,r)=>{const n=await C2(r,t);e(Ed.updateTezBalance(n.flat()))},dee=async(e,t,r)=>{const n=await j2(r,t),i=n.flat().map((({token:e,lastLevel:t})=>({...e,lastLevel:t})));e(Gd.addTokens({network:t,tokens:i})),e(Ed.updateTokenBalance(n.flat()))},hee=async e=>{const t=await(async()=>{const{data:{data:{priceUsd:e}}}=await dj.get("https://api.coincap.io/v2/assets/tezos");return null!==e&&void 0!==e?e:null})();e(Ed.updateConversionRate({rate:t}))},fee=()=>{const e=CR(),t=HH(),r=jR((e=>e.assets.refetchTrigger)),i=$2(),o=(0,Fn.useQueryClient)(),a=cN(),s=t.map((e=>e.address.pkh)),c=(0,n.useCallback)((t=>{e(Bd.actions.add(S7(t))),a({description:`Data fetching error: ${t.message}`,status:"error",isClosable:!0})}),[e,a]),l=(0,Fn.useQuery)("allAssets",{queryFn:()=>(async(e,t,r)=>{try{e(Ed.setIsLoading(!0));const n=await aee(new Set(r),t);e($d.setMultisigs(n));const i=[...r,...n.map((e=>e.address.pkh))];await Promise.all([lee(e,t,n),uee(e,t,i),dee(e,t,i)]),e(Ed.setLastTimeUpdated((new Date).toUTCString()))}finally{e(Ed.setIsLoading(!1))}})(e,i,s),onError:c,retry:!1,refetchInterval:15e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),u=(0,Fn.useQuery)("conversionRate",{queryFn:()=>hee(e),onError:c,refetchInterval:3e5,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),d=(0,Fn.useQuery)("blockNumber",{queryFn:()=>(async(e,t)=>{const r=await N2(t);e(Ed.updateBlockLevel(r))})(e,i),onError:c,retry:!1,refetchInterval:15e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),h=(0,Fn.useQuery)("bakers",{queryFn:()=>(async(e,t)=>{const r=(await D2(t)).map((({address:e,alias:t,stakingBalance:r})=>({address:e,stakingBalance:r,name:null!==t&&void 0!==t?t:"Unknown baker"})));e(Ed.updateBakers(r))})(e,i),onError:c,retry:!1,refetchInterval:72e5,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),f=(0,n.useRef)(u),p=(0,n.useRef)(d),m=(0,n.useRef)(l),g=(0,n.useRef)(h);(0,n.useEffect)((()=>{o.cancelQueries({queryKey:"allAssets"}),o.cancelQueries({queryKey:"conversionRate"}),o.cancelQueries({queryKey:"blockNumber"}),o.cancelQueries({queryKey:"bakers"}),f.current.refetch(),p.current.refetch(),m.current.refetch(),g.current.refetch()}),[i,r,o])},pee=()=>{const e=cN(),t=tee(),r=(0,n.useRef)(t),i=(0,n.useRef)(e),o=(e,t)=>{const n=t.replace(":///","://");if(n.startsWith("umami://auth/")){const e=(e=>{const t=e.replace("umami://auth/",""),r=new URLSearchParams(t),n={instanceParams:{insanceId:r.get("instanceId"),verifier:r.get("verifier"),typeOfLogin:r.get("typeOfLogin"),redirectToOpener:r.get("redirectToOpener")},hashParams:{state:r.get("state"),access_token:r.get("access_token"),token_type:r.get("token_type"),expires_in:r.get("expires_in"),scope:r.get("scope"),id_token:r.get("id_token"),authuser:r.get("authuser"),hd:r.get("hd"),prompt:r.get("prompt")}};return{channel:r.get("channel"),data:n,error:r.get("error")}})(n);window.postMessage(e)}else if(n.startsWith("umami://?type=tzip10&data=")){const e=new URL(n).searchParams.get("data");e?r.current(e):i.current({title:"Linkhandler",description:"Data Payload missing"})}else i.current({title:"Linkhandler",description:"Unsupported link type"})};(0,n.useEffect)((()=>{const e=window;return e&&e.electronAPI&&e.electronAPI.onDeeplink(o),()=>{}}),[])};var mee=g(((e,t)=>{var r;const{overflow:n,overflowX:i,className:o,...a}=e;return(0,un.jsx)(ln.div,{ref:t,className:v("chakra-table__container",o),...a,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(r=null!=n?n:i)?r:"auto",overflowY:"hidden",maxWidth:"100%"}})})),[gee,vee]=En({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),yee=g(((e,t)=>{const r=Sn("Table",e),{className:n,layout:i,...o}=ht(e);return(0,un.jsx)(gee,{value:r,children:(0,un.jsx)(ln.table,{ref:t,__css:{tableLayout:i,...r.table},className:v("chakra-table",n),...o})})}));yee.displayName="Table";var bee=g(((e,t)=>{const r=vee();return(0,un.jsx)(ln.tbody,{...e,ref:t,__css:r.tbody})})),wee=g(((e,t)=>{const r=vee();return(0,un.jsx)(ln.tr,{...e,ref:t,__css:r.tr})})),xee=g((({isNumeric:e,...t},r)=>{const n=vee();return(0,un.jsx)(ln.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}));function _ee(e){return Qj({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z"}}]})(e)}function See(e){return Qj({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"}}]})(e)}function kee(e){return Qj({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:"currentColor"}}]})(e)}function Eee(e){return Qj({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:"currentColor"}}]})(e)}const Aee="TOAST_ID",Pee=({pkh:e,formatAddress:t=!0,copyable:r=!0,iconColor:n=EP.gray[600],...i})=>(0,un.jsx)(Tee,{copyValue:r?e:void 0,displayText:t?Y2(e):e,iconColor:n,toastMessage:"Address copied to clipboard",...i}),Tee=({displayText:e,copyValue:t,toastMessage:r,iconColor:n,...i})=>{const o=cN();return(0,un.jsxs)(dn,{alignItems:"center",...i,children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[400],size:"sm",children:e}),t&&(0,un.jsx)(Fj,{stroke:EP.gray[450],_hover:{stroke:EP.green},cursor:"pointer",onClick:()=>(async()=>{t&&(await navigator.clipboard.writeText(t),r&&!o.isActive(Aee)&&o({id:Aee,render:()=>(0,un.jsx)(Oee,{message:r,onClose:()=>{o.close(Aee)}})}))})()})]})},Oee=({message:e,onClose:t})=>(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",padding:2,borderRadius:"4px",backgroundColor:"white",children:[(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(LA,{as:_ee,margin:1,color:EP.green}),(0,un.jsx)(sz,{color:"black",children:e})]}),(0,un.jsx)(LA,{as:Eee,color:"black",_hover:{color:EP.gray[600]},cursor:"pointer",onClick:t})]}),Cee=({title:e,buttonText:t,contact:r})=>{const i=CR(),o=GH(),{isOpen:a,onClose:s}=(0,n.useContext)(mM),{handleSubmit:c,formState:{isValid:l,errors:u},register:d,reset:h,getValues:f}=MU({mode:"onBlur",defaultValues:r}),p=void 0!==r,m=qH(),{nameExistsInContacts:g,addressExistsInContacts:v}=UH(),y=(0,n.useRef)(h);return(0,n.useEffect)((()=>{a&&y.current(r)}),[a,r]),(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:c((({name:e,pkh:t})=>{var r;r={name:e.trim(),pkh:t},o(r.pkh)||(i(Dd.upsert(r)),s()),h()})),children:[(0,un.jsx)(oz,{textAlign:"center",children:e}),(0,un.jsx)(cz,{}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!u.name,marginY:5,children:[(0,un.jsx)(FU,{children:"Name"}),(0,un.jsx)(ZU,{type:"text",...d("name",{required:"Name is required",validate:e=>m.map((e=>e.label)).includes(e)?"Name already used in accounts":!g(e.trim())||"Name already registered"}),placeholder:"Enter contact's name"}),u.name&&(0,un.jsx)(A7,{children:u.name.message})]}),(0,un.jsxs)(Zz,{isInvalid:!!u.pkh,marginY:5,children:[(0,un.jsx)(FU,{children:"Address"}),(0,un.jsx)(ZU,{type:"text",...d("pkh",{required:"Address is required",validate:e=>Ku(e)?p?f("name")!==r.name:o(e)?"Address already used in accounts":!v(e)||"Address already registered":"Invalid address"}),disabled:p,placeholder:"Enter contact\u2019s tz address",value:null===r||void 0===r?void 0:r.pkh,variant:p?"filled":void 0}),u.pkh&&(0,un.jsx)(A7,{children:u.pkh.message})]})]}),(0,un.jsx)(tB,{padding:"16px 0 0 0",children:(0,un.jsx)(pn,{width:"100%",children:(0,un.jsx)(Dn,{width:"100%",marginBottom:2,isDisabled:!l,size:"lg",type:"submit",children:t})})})]})})},jee=({contact:e})=>{const t=CR(),{onClose:r}=(0,n.useContext)(mM);return(0,un.jsxs)(iz,{children:[(0,un.jsx)(oz,{marginBottom:"10px",textAlign:"center",children:"Delete Contact"}),(0,un.jsx)(cz,{}),(0,un.jsx)(lz,{children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",flexDirection:"column",children:[(0,un.jsx)(sz,{color:EP.gray[400],size:"sm",children:"Are you sure you want to remove this contact?"}),(0,un.jsxs)(pn,{marginTop:5,children:[(0,un.jsx)(kn,{marginBottom:3,textAlign:"center",size:"md",children:e.name}),(0,un.jsx)(Pee,{pkh:e.pkh})]})]})}),(0,un.jsx)(tB,{children:(0,un.jsx)(pn,{width:"100%",children:(0,un.jsx)(Dn,{width:"100%",marginBottom:2,onClick:()=>{t(Dd.remove(e.pkh)),r()},variant:"warning",children:"Delete"})})})]})};var Ree=g((function(e,t){const{borderLeftWidth:r,borderBottomWidth:n,borderTopWidth:i,borderRightWidth:o,borderWidth:a,borderStyle:s,borderColor:c,...l}=_n("Divider",e),{className:u,orientation:d="horizontal",__css:h,...f}=ht(e),p={vertical:{borderLeftWidth:r||o||a||"1px",height:"100%"},horizontal:{borderBottomWidth:n||i||a||"1px",width:"100%"}};return(0,un.jsx)(ln.hr,{ref:t,"aria-orientation":d,...f,__css:{...l,border:"0",borderColor:c,borderStyle:s,...p[d],...h},className:v("chakra-divider",u)})}));function Iee(e){const{isOpen:t,ref:r}=e,[i,o]=(0,n.useState)(t),[a,s]=(0,n.useState)(!1);(0,n.useEffect)((()=>{a||(o(t),s(!0))}),[t,a,i]),G$((()=>r.current),"animationend",(()=>{o(t)}));return{present:!(!t&&!i),onComplete(){var e;const t=function(e){var t,r;return null!=(r=null==(t=KD(e))?void 0:t.defaultView)?r:window}(r.current),n=new t.CustomEvent("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}Ree.displayName="Divider";var Mee=()=>"undefined"!==typeof window;var Lee=e=>Mee()&&e.test(function(){var e;const t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),Nee=()=>Lee(/mac|iphone|ipad|ipod/i)&&(e=>Mee()&&e.test(navigator.vendor))(/apple/i);function Dee(e){const t=e.current;if(!t)return!1;const r=function(e){return KD(e).activeElement}(t);return!!r&&(!t.contains(r)&&!(!((n=r)&&qD(n)&&YD(n))||GD(n)));var n}function zee(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,o=r&&!n;mb((()=>{if(!o)return;if(Dee(e))return;const t=(null==i?void 0:i.current)||e.current;let r;return t?(r=requestAnimationFrame((()=>{t.focus({preventScroll:!0})})),()=>{cancelAnimationFrame(r)}):void 0}),[o,e,i])}var Bee={preventScroll:!0,shouldFocus:!1};function Uee(e){const{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!r||(!!n||!("keepMounted"!==i||!t))}var Fee={click:"click",hover:"hover"};function $ee(e={}){const{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:i,id:o,returnFocusOnClose:a=!0,autoFocus:s=!0,arrowSize:c,arrowShadowColor:l,trigger:u=Fee.click,openDelay:d=200,closeDelay:h=200,isLazy:f,lazyBehavior:p="unmount",computePositionOnMount:m,...g}=e,{isOpen:v,onClose:y,onOpen:b,onToggle:w}=W$(e),x=(0,n.useRef)(null),_=(0,n.useRef)(null),S=(0,n.useRef)(null),E=(0,n.useRef)(!1),A=(0,n.useRef)(!1);v&&(A.current=!0);const[P,T]=(0,n.useState)(!1),[O,C]=(0,n.useState)(!1),j=(0,n.useId)(),R=null!=o?o:j,[I,M,L,N]=["popover-trigger","popover-content","popover-header","popover-body"].map((e=>`${e}-${R}`)),{referenceRef:D,getArrowProps:z,getPopperProps:B,getArrowInnerProps:U,forceUpdate:F}=q$({...g,enabled:v||!!m}),$=Iee({isOpen:v,ref:S});!function(e){const{ref:t,elements:r,enabled:n}=e,i=()=>{var e,r;return null!=(r=null==(e=t.current)?void 0:e.ownerDocument)?r:document};G$(i,"pointerdown",(e=>{if(!Nee()||!n)return;const o=e.target,a=(null!=r?r:[t]).some((e=>{const t="current"in e?e.current:e;return(null==t?void 0:t.contains(o))||t===o}));i().activeElement!==o&&a&&(e.preventDefault(),o.focus())}))}({enabled:v,ref:_}),zee(S,{focusRef:_,visible:v,shouldFocus:a&&u===Fee.click}),function(e,t=Bee){const{focusRef:r,preventScroll:i,shouldFocus:o,visible:a}=t,s="current"in e?e.current:e,c=o&&a,l=(0,n.useRef)(c),u=(0,n.useRef)(a);yh((()=>{!u.current&&a&&(l.current=c),u.current=a}),[a,c]);const d=(0,n.useCallback)((()=>{if(a&&s&&l.current&&(l.current=!1,!s.contains(document.activeElement)))if(null==r?void 0:r.current)requestAnimationFrame((()=>{var e;null==(e=r.current)||e.focus({preventScroll:i})}));else{const e=ez(s);e.length>0&&requestAnimationFrame((()=>{e[0].focus({preventScroll:i})}))}}),[a,i,s,r]);mb((()=>{d()}),[d]),G$(s,"transitionend",d)}(S,{focusRef:i,visible:v,shouldFocus:s&&u===Fee.click});const H=Uee({wasSelected:A.current,enabled:f,mode:p,isSelected:$.present}),V=(0,n.useCallback)(((e={},n=null)=>{const i={...e,style:{...e.style,transformOrigin:uF.transformOrigin.varRef,[uF.arrowSize.var]:c?`${c}px`:void 0,[uF.arrowShadowColor.var]:l},ref:Ln(S,n),children:H?e.children:null,id:M,tabIndex:-1,role:"dialog",onKeyDown:k(e.onKeyDown,(e=>{r&&"Escape"===e.key&&y()})),onBlur:k(e.onBlur,(e=>{const r=Vee(e),n=Hee(S.current,r),i=Hee(_.current,r);v&&t&&(!n&&!i)&&y()})),"aria-labelledby":P?L:void 0,"aria-describedby":O?N:void 0};return u===Fee.hover&&(i.role="tooltip",i.onMouseEnter=k(e.onMouseEnter,(()=>{E.current=!0})),i.onMouseLeave=k(e.onMouseLeave,(e=>{null!==e.nativeEvent.relatedTarget&&(E.current=!1,setTimeout((()=>y()),h))}))),i}),[H,M,P,L,O,N,u,r,y,v,t,h,l,c]),q=(0,n.useCallback)(((e={},t=null)=>B({...e,style:{visibility:v?"visible":"hidden",...e.style}},t)),[v,B]),K=(0,n.useCallback)(((e,t=null)=>({...e,ref:Ln(t,x,D)})),[x,D]),W=(0,n.useRef)(),G=(0,n.useRef)(),Z=(0,n.useCallback)((e=>{null==x.current&&D(e)}),[D]),Y=(0,n.useCallback)(((e={},r=null)=>{const n={...e,ref:Ln(_,r,Z),id:I,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":M};return u===Fee.click&&(n.onClick=k(e.onClick,w)),u===Fee.hover&&(n.onFocus=k(e.onFocus,(()=>{void 0===W.current&&b()})),n.onBlur=k(e.onBlur,(e=>{const r=Vee(e),n=!Hee(S.current,r);v&&t&&n&&y()})),n.onKeyDown=k(e.onKeyDown,(e=>{"Escape"===e.key&&y()})),n.onMouseEnter=k(e.onMouseEnter,(()=>{E.current=!0,W.current=window.setTimeout((()=>b()),d)})),n.onMouseLeave=k(e.onMouseLeave,(()=>{E.current=!1,W.current&&(clearTimeout(W.current),W.current=void 0),G.current=window.setTimeout((()=>{!1===E.current&&y()}),h)}))),n}),[I,v,M,u,Z,w,b,t,y,d,h]);(0,n.useEffect)((()=>()=>{W.current&&clearTimeout(W.current),G.current&&clearTimeout(G.current)}),[]);const X=(0,n.useCallback)(((e={},t=null)=>({...e,id:L,ref:Ln(t,(e=>{T(!!e)}))})),[L]),J=(0,n.useCallback)(((e={},t=null)=>({...e,id:N,ref:Ln(t,(e=>{C(!!e)}))})),[N]);return{forceUpdate:F,isOpen:v,onAnimationComplete:$.onComplete,onClose:y,getAnchorProps:K,getArrowProps:z,getArrowInnerProps:U,getPopoverPositionerProps:q,getPopoverProps:V,getTriggerProps:Y,getHeaderProps:X,getBodyProps:J}}function Hee(e,t){return e===t||(null==e?void 0:e.contains(t))}function Vee(e){var t;const r=e.currentTarget.ownerDocument.activeElement;return null!=(t=e.relatedTarget)?t:r}var[qee,Kee]=En({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[Wee,Gee]=En({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "});function Zee(e){const t=Sn("Popover",e),{children:r,...n}=ht(e),i=$ee({...n,direction:vn().direction});return(0,un.jsx)(qee,{value:i,children:(0,un.jsx)(Wee,{value:t,children:w(r,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})})})}function Yee(e){const t=n.Children.only(e.children),{getTriggerProps:r}=Kee();return(0,n.cloneElement)(t,r(t.props,t.ref))}function Xee(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}Zee.displayName="Popover",Yee.displayName="PopoverTrigger";var Jee={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Qee=ln(CA.section),ete=g((function(e,t){const{variants:r=Jee,...n}=e,{isOpen:i}=Kee();return(0,un.jsx)(Qee,{ref:t,variants:Xee(r),initial:!1,animate:i?"enter":"exit",...n})}));ete.displayName="PopoverTransition";var tte=g((function(e,t){const{rootProps:r,motionProps:n,...i}=e,{getPopoverProps:o,getPopoverPositionerProps:a,onAnimationComplete:s}=Kee(),c=Gee(),l={position:"relative",display:"flex",flexDirection:"column",...c.content};return(0,un.jsx)(ln.div,{...a(r),__css:c.popper,className:"chakra-popover__popper",children:(0,un.jsx)(ete,{...n,...o(i,t),onAnimationComplete:E(s,i.onAnimationComplete),className:v("chakra-popover__content",e.className),__css:l})})}));tte.displayName="PopoverContent";var rte=g((function(e,t){const{getBodyProps:r}=Kee(),n=Gee();return(0,un.jsx)(ln.div,{...r(e,t),className:v("chakra-popover__body",e.className),__css:n.body})}));rte.displayName="PopoverBody";const nte=e=>{const{onOpen:t,onClose:r,isOpen:n}=BR();return(0,un.jsxs)(Zee,{isOpen:n,onClose:r,onOpen:t,placement:"bottom-start",children:[(0,un.jsx)(Yee,{children:(0,un.jsx)(Dn,{minWidth:"24px",height:"24px",padding:"0",background:n?EP.green:EP.gray[500],border:"none",borderRadius:"full",_hover:{bg:n?EP.green:EP.gray[450]},"data-testid":"popover-cta",variant:"unstyled",children:(0,un.jsx)(hn,{children:(0,un.jsx)(LA,{as:See,display:"inline",color:EP.white})})})}),(0,un.jsx)(tte,{width:"100px",background:EP.gray[700],children:(0,un.jsx)(rte,{borderRadius:"lg",children:e.children})})]})},ite=({onRename:e,onRemove:t})=>(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(nte,{children:(0,un.jsxs)(pn,{paddingY:"0",children:[(0,un.jsx)(Dn,{height:t?"24px":"28px",onClick:e,variant:"popover",children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Rename"}),(0,un.jsx)(lR,{stroke:"inherit"})]})}),t&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Ree,{marginY:"4px"}),(0,un.jsx)(Dn,{"data-testid":"popover-remove",onClick:t,variant:"popover",children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Remove"}),(0,un.jsx)(xR,{stroke:"inherit"})]})})]})]})})}),ote=({onClick:e,...t})=>(0,un.jsxs)(Dn,{width:"60px",onClick:e,variant:"specialCTA",...t,children:[(0,un.jsx)(cR,{stroke:"currentcolor"}),(0,un.jsx)(sz,{marginLeft:"4px",children:"Send"})]}),ate=({sender:e,operationType:t,isLoading:r,reEstimate:n})=>{switch(t){case"proposal":return(0,un.jsx)(Zz,{marginTop:"24px","data-testid":"signer-selector",children:(0,un.jsx)(x3,{account:e,inputName:"signer",isLoading:r,keepValid:!0,label:"Select Proposer",onUpdate:n})});case"implicit":return null}},ste=(e,t,r)=>{switch(e.type){case"ledger":case"mnemonic":case"social":case"secret_key":if(e.address.pkh!==t.address.pkh)throw new Error("Sender and Signer must be the same");return{type:"implicit",operations:r,signer:e,sender:e};case"multisig":return{type:"proposal",operations:r,sender:e,signer:t}}},cte=()=>{const e=CR(),t=$2();return r=>e(jd.clear({pkh:r.address.pkh,network:t}))},lte=({isLoading:e,isValid:t,onSingleSubmit:r,onAddToBatch:n,showPreview:i=!0})=>(0,un.jsx)(un.Fragment,{children:(0,un.jsxs)(pn,{width:"100%",children:[i&&(0,un.jsx)(Dn,{width:"100%",marginBottom:"16px",isDisabled:!t,isLoading:e,onClick:r,size:"lg",type:"submit",children:"Preview"}),(0,un.jsx)(Dn,{width:"100%",isDisabled:!t,isLoading:e,onClick:n,size:"lg",type:"submit",variant:"tertiary",children:"Insert Into Batch"})]})}),ute=({sender:e,form:t})=>t||(e?{sender:e.address.pkh}:{}),dte=(e,t,r)=>{const[i,o]=(0,n.useState)(!1),a=(()=>{const e=VH();return t=>e(t)})(),[s,c]=(0,n.useState)(e),[l,u]=(0,n.useState)(t),d=$2(),h=cte(),{isLoading:f,handleAsyncAction:p,handleAsyncActionUnsafe:m}=k7(),{openWith:g}=(0,n.useContext)(mM),v=MU({mode:"onBlur",defaultValues:{signer:l.signer.address.pkh,sender:l.sender.address.pkh}}),y=v.watch("signer");return{fee:s,estimationFailed:i,operations:l,isLoading:f,form:v,signer:a(y),reEstimate:async e=>m((async()=>{const t={...l,signer:a(e)};c(await l2(l,d)),u(t),o(!1)}),{isClosable:!0,duration:null}).catch((()=>o(!0))),onSign:async e=>p((async()=>{const t=await z2(l,e);return"batch"===r&&h(l.sender),g((0,un.jsx)(j7,{hash:t.opHash})),t})),handleAsyncAction:p}},hte=e=>{const t=ZH(),r=JH();return n=>{const i=t(n.sender);return ste(i,r(i),[e(n)])}},fte=e=>{e<0&&(console.warn("Decimals cannot be negative"),e=0);return`${0===e?"":"0."+(0,Va.repeat)("0",e-1)}1`},pte=e=>t=>{if(t.includes(".")){if(t.split(".")[1].length>e)return`Please enter a value with up to ${e} decimal places`}return!0},mte=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=dte(n,r,t),{amount:h,recipient:f}=o.operations[0];return(0,un.jsx)(PB,{...c,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:o.type,signer:o.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(I7,{mutezAmount:h}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,un.jsx)(M7,{fee:i})}),(0,un.jsx)(FU,{marginTop:"24px",children:"From "}),(0,un.jsx)(h3,{address:o.sender.address}),(0,un.jsx)(FU,{marginTop:"24px",children:"To "}),(0,un.jsx)(h3,{address:f}),(0,un.jsx)(ate,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:U7(o.type,t)})})]})})})},gte=(e,t)=>async r=>{await l2(e,t),r(jd.add({operations:e,network:t}))},vte=({SignPage:e,signPageExtraData:t,FormPage:r,defaultFormPageProps:i,toOperation:o})=>{const{openWith:a}=(0,n.useContext)(mM),s=hte(o),c=$2();return async n=>{const o=s(n);a((0,un.jsx)(e,{data:t,fee:await l2(o,c),goBack:()=>{a((0,un.jsx)(r,{...i,form:n}))},mode:"single",operations:o}))}},yte=e=>{const{onClose:t}=(0,n.useContext)(mM),r=$2(),i=hte(e),o=CR(),a=cN();return async e=>{const n=i(e);await o(gte(n,r)),a({description:"Transaction added to batch!",status:"success"}),t()}},bte=e=>{const{handleAsyncAction:t,isLoading:r}=k7();return{onFormSubmitActionHandlers:e.map((e=>async r=>t((()=>e(r))))),isLoading:r}},wte=({showPreview:e=!0,...t})=>{const r=vte({SignPage:mte,signPageExtraData:void 0,FormPage:wte,defaultFormPageProps:t,toOperation:xte}),n=yte(xte),{onFormSubmitActionHandlers:[i,o],isLoading:a}=bte([r,n]),s=MU({mode:"onBlur",defaultValues:ute(t)}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s;return(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(N7,{}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!l.prettyAmount,children:[(0,un.jsx)(FU,{children:"Amount"}),(0,un.jsxs)(KU,{children:[(0,un.jsx)(ZU,{isDisabled:a,step:fte(6),type:"number",...u("prettyAmount",{required:"Amount is required",validate:pte(6)}),placeholder:"0.000000"}),(0,un.jsx)(QU,{children:"\ua729"})]}),l.prettyAmount&&(0,un.jsx)(A7,{"data-testid":"amount-error",children:l.prettyAmount.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!!t.sender,label:"From"}),l.sender&&(0,un.jsx)(A7,{"data-testid":"from-error",children:l.sender.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,un.jsx)(v3,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,un.jsx)(A7,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i),showPreview:e})})]})})})},xte=e=>({type:"tez",amount:W2(e.prettyAmount).toFixed(),recipient:qu(e.recipient)}),_te=({contacts:e})=>{const{openWith:t}=(0,n.useContext)(mM);return(0,un.jsx)(pn,{overflow:"auto",background:EP.gray[900],borderRadius:"8px",paddingX:"30px",children:(0,un.jsx)(mee,{overflowX:"unset",overflowY:"unset",children:(0,un.jsx)(yee,{children:(0,un.jsx)(bee,{children:e.map(((r,n)=>{const i=n===e.length-1?"transparent":EP.gray[700];return(0,un.jsxs)(wee,{"data-testid":"contact-row",children:[(0,un.jsx)(xee,{borderColor:i,"data-testid":"contact-row-name",paddingX:"0",children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(pn,{width:"150px",marginRight:"40px",children:(0,un.jsx)(sz,{overflow:"hidden",fontWeight:600,whiteSpace:"nowrap",textOverflow:"ellipsis",children:r.name})}),(0,un.jsx)(Pee,{justifyContent:"space-between","data-testid":"contact-row-pkh",formatAddress:!1,iconColor:EP.gray[400],pkh:r.pkh})]})}),(0,un.jsx)(xee,{borderColor:i,paddingX:"0",children:(0,un.jsxs)(dn,{justifyContent:"end",children:[(0,un.jsx)(ote,{marginRight:"20px",onClick:()=>t((0,un.jsx)(wte,{form:{sender:"",recipient:r.pkh,prettyAmount:""}}))}),(0,un.jsx)(ite,{onRemove:()=>{t((0,un.jsx)(jee,{contact:r}))},onRename:()=>{t((0,un.jsx)(Cee,{buttonText:"Update",contact:r,title:"Edit contact"}))}})]})})]},r.pkh)}))})})})})};function Ste(e,t={}){const{ssr:r=!0,fallback:i}=t,{getWindow:o}=function({defer:e}={}){const[,t]=(0,n.useReducer)((e=>e+1),0);return yh((()=>{e&&t()}),[e]),(0,n.useContext)(_h)}(),a=Array.isArray(e)?e:[e];let s=Array.isArray(i)?i:[i];s=s.filter((e=>null!=e));const[c,l]=(0,n.useState)((()=>a.map(((e,t)=>({media:e,matches:r?!!s[t]:o().matchMedia(e).matches})))));return(0,n.useEffect)((()=>{const e=o();l(a.map((t=>({media:t,matches:e.matchMedia(t).matches}))));const t=a.map((t=>e.matchMedia(t))),r=e=>{l((t=>t.slice().map((t=>t.media===e.media?{...t,matches:e.matches}:t))))};return t.forEach((e=>{"function"===typeof e.addListener?e.addListener(r):e.addEventListener("change",r)})),()=>{t.forEach((e=>{"function"===typeof e.removeListener?e.removeListener(r):e.removeEventListener("change",r)}))}}),[o]),c.map((e=>e.matches))}function kte(e){return e?Math[e]:Math.trunc}Math.pow(10,8);const Ete=6048e5,Ate=864e5,Pte=43200;function Tte(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new e.constructor(+e):"number"===typeof e||"[object Number]"===t||"string"===typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Ote(e,t){return Tte(e).getTime()-Tte(t).getTime()}function Cte(e,t,r){const n=Ote(e,t)/6e4;return kte(r?.roundingMethod)(n)}function jte(e,t){const r=Tte(e),n=Tte(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function Rte(e,t){const r=Tte(e),n=Tte(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}function Ite(e){const t=Tte(e);return t.setHours(23,59,59,999),t}function Mte(e){const t=Tte(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Lte(e){const t=Tte(e);return+Ite(t)===+Mte(t)}function Nte(e,t){const r=Tte(e),n=Tte(t),i=jte(r,n),o=Math.abs(Rte(r,n));let a;if(o<1)a=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);let t=jte(r,n)===-i;Lte(Tte(e))&&1===o&&1===jte(e,n)&&(t=!1),a=i*(o-Number(t))}return 0===a?0:a}function Dte(e,t,r){const n=Ote(e,t)/1e3;return kte(r?.roundingMethod)(n)}const zte={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Bte(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Ute={date:Bte({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Bte({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Bte({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Fte={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function $te(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Hte={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:$te({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:$te({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:$te({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:$te({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:$te({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Vte(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let r=0;re.test(a))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=r.valueCallback?r.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}const qte={ordinalNumber:(Kte={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(Kte.matchPattern);if(!r)return null;const n=r[0],i=e.match(Kte.parsePattern);if(!i)return null;let o=Kte.valueCallback?Kte.valueCallback(i[0]):i[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(n.length)}}),era:Vte({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Vte({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Vte({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Vte({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Vte({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Kte;const Wte={code:"en-US",formatDistance:(e,t,r)=>{let n;const i=zte[e];return n="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Ute,formatRelative:(e,t,r,n)=>Fte[e],localize:Hte,match:qte,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Gte={};function Zte(){return Gte}function Yte(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Xte(e,t,r){const n=Zte(),i=r?.locale??n.locale??Wte,o=jte(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:o});let s,c;o>0?(s=Tte(t),c=Tte(e)):(s=Tte(e),c=Tte(t));const l=Dte(c,s),u=(Yte(c)-Yte(s))/1e3,d=Math.round((l-u)/60);let h;if(d<2)return r?.includeSeconds?l<5?i.formatDistance("lessThanXSeconds",5,a):l<10?i.formatDistance("lessThanXSeconds",10,a):l<20?i.formatDistance("lessThanXSeconds",20,a):l<40?i.formatDistance("halfAMinute",0,a):l<60?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):0===d?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",d,a);if(d<45)return i.formatDistance("xMinutes",d,a);if(d<90)return i.formatDistance("aboutXHours",1,a);if(d<1440){const e=Math.round(d/60);return i.formatDistance("aboutXHours",e,a)}if(d<2520)return i.formatDistance("xDays",1,a);if(d{const t=$2(),r="mainnet"===t.name,n=r?"Buy Tez":"Request Tez from faucet",i=MU({mode:"onBlur",defaultValues:{address:e}}),{formState:{isValid:o,errors:a}}=i;let s=t.buyTezUrl;return t.buyTezUrl&&r&&(s+="/default/widget/"),(0,un.jsx)(PB,{...i,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{action:s,rel:"noreferrer noopener",target:"_blank",children:[(0,un.jsx)(cz,{}),(0,un.jsx)(oz,{marginBottom:"10px",textAlign:"center",children:"Buy Tez"}),r&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)("input",{name:"commodity",type:"hidden",value:"XTZ:Tezos"}),(0,un.jsx)(sz,{color:EP.gray[400],textAlign:"center",size:"sm",children:"Please select the recipient account."}),(0,un.jsx)(lz,{children:(0,un.jsxs)(Zz,{"data-testid":"buy-tez-selector",isInvalid:!!a.address,paddingY:5,children:[(0,un.jsx)(y3,{allowUnknown:!1,inputName:"address",isDisabled:!!e,label:"Recipient Account"}),a.address&&(0,un.jsx)(A7,{children:a.address.message})]})})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(pn,{width:"100%","data-testid":"buy-tez-button",children:(0,un.jsx)(Dn,{width:"100%",marginBottom:2,isDisabled:!o,size:"lg",type:"submit",children:n})})})]})})})},Qte=e=>(0,un.jsx)(LA,{width:"15px",height:"11px",fill:"none",stroke:"white",viewBox:"0 0 15 11",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M1.16602 5.98371L5.06345 9.85408L13.8327 1.14575",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),ere=()=>{const e=CR(),t=jR((e=>e.assets.isLoading)),r=jR((e=>e.assets.lastTimeUpdated)),[i,o]=(0,n.useState)(!1),[a,s]=(0,n.useState)(!1),[c]=Ste("(max-width: 1200px)");if((0,n.useEffect)((()=>{if(r){o(!0),s(!0);const e=setTimeout((()=>{o(!1)}),2e3),t=setTimeout((()=>{s(!1)}),3500);return()=>{clearTimeout(e),clearTimeout(t)}}}),[r]),c||null===r)return null;const l=Cte(new Date,new Date(r))>=2,u={opacity:i?1:0,transition:"opacity 2s ease-in-out"};return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsxs)(sz,{display:"inline",color:EP.gray[400],size:"sm",style:a?u:void 0,children:[a&&"Updated just now",l&&`Updated ${Xte(new Date(r),new Date)} ago`]}),(0,un.jsx)(S3,{marginRight:"36px",marginLeft:"8px",_active:{color:"white",bg:EP.green},"aria-label":"refetch",backgroundColor:a?EP.green:EP.gray[500],"data-testid":"refetch-button",icon:a?(0,un.jsx)(Qte,{style:u}):(0,un.jsx)(Bj,{color:"white"}),isLoading:t,onClick:()=>{e(Ed.refetch())},variant:"circle_without_hover_color"})]})},tre=({title:e,subtitle:t})=>{const{openWith:r}=(0,n.useContext)(mM);return(0,un.jsxs)(pn,{children:[(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",height:"88px",children:[(0,un.jsxs)(dn,{alignItems:"end",children:[(0,un.jsx)(kn,{marginRight:"6px",size:"xl",children:e}),(0,un.jsx)(sz,{color:EP.gray[450],"data-testid":"nft-total-amount",size:"xs",children:t})]}),(0,un.jsxs)(pn,{children:[(0,un.jsx)(ere,{}),(0,un.jsx)(Dn,{onClick:()=>r((0,un.jsx)(Jte,{})),variant:"tertiary",children:"Buy Tez"}),(0,un.jsx)(Dn,{marginLeft:4,onClick:()=>r((0,un.jsx)(wte,{})),children:"Send"})]})]}),(0,un.jsx)(Ree,{})]})},rre=()=>{const{openWith:e}=(0,n.useContext)(mM);return(0,un.jsxs)(Dn,{alignItems:"center",justifyContent:"end",marginTop:"16px",marginBottom:"16px",cursor:"pointer",onClick:()=>e((0,un.jsx)(Cee,{buttonText:"Add to Contact",title:"Add contact"})),variant:"CTAWithIcon",children:[(0,un.jsx)(pj,{stroke:"currentcolor"}),(0,un.jsx)(sz,{marginLeft:"4px",size:"sm",children:"Add contact"})]})},nre=()=>{const e=(()=>{const e=BH();return Object.values(e).sort(((e,t)=>e.name.localeCompare(t.name)))})();return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Address Book"}),(0,un.jsx)(dn,{flexDirection:"row-reverse",children:(0,un.jsx)(rre,{})}),(0,un.jsx)(_te,{contacts:e})]})};var ire=r(9095),ore=r.n(ire);const are=({account:{address:e},...t})=>{const r=qH().find((t=>t.address.pkh===e.pkh)),n=i3()(e.pkh),i=a3(e);return r?(0,un.jsxs)(dn,{alignItems:"space-between",cursor:"pointer","data-testid":"account-small-tile",...t,children:[(0,un.jsx)(cH,{addressKind:i}),(0,un.jsxs)(dn,{alignSelf:"center",height:"20px",marginLeft:"12px",children:[(0,un.jsx)(kn,{marginRight:"10px","data-testid":"account-small-tile-label",size:"sm",children:r.label}),(0,un.jsx)(sz,{marginRight:"35px",color:EP.gray[300],"data-testid":"account-small-tile-pkh",size:"xs",children:Y2(e.pkh)}),n&&(0,un.jsx)(kn,{"data-testid":"account-small-tile-balance",size:"sm",children:Z2(n)})]})]}):null};function sre(e,t){var r;const n=e.target;if(n){if(!LR(n).contains(n))return!1}return!(null==(r=t.current)?void 0:r.contains(n))}var cre=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function lre(e){var t;const{bg:r,bgColor:n,backgroundColor:i,shadow:o,boxShadow:a,shadowColor:s}=e,{getArrowProps:c,getArrowInnerProps:l}=Kee(),u=Gee(),d=null!=(t=null!=r?r:n)?t:i,h=null!=o?o:a;return(0,un.jsx)(ln.div,{...c(),className:"chakra-popover__arrow-positioner",children:(0,un.jsx)(ln.div,{className:v("chakra-popover__arrow",e.className),...l(e),__css:{"--popper-arrow-shadow-color":cre("colors",s),"--popper-arrow-bg":cre("colors",d),"--popper-arrow-shadow":cre("shadows",h),...u.arrow}})})}lre.displayName="PopoverArrow";const ure=({addressKind:{type:e},...t})=>{switch(e){case"multisig":return(0,un.jsx)(Wj,{"data-testid":`${e}-icon`,...t});case"fa1.2":return(0,un.jsx)(Dj,{"data-testid":`${e}-icon`,...t,fill:t.stroke,stroke:"none"});case"fa2":return(0,un.jsx)(zj,{"data-testid":`${e}-icon`,...t,fill:t.stroke,stroke:"none"});case"baker":return(0,un.jsx)(gj,{"data-testid":`${e}-icon`,...t});case"contact":return(0,un.jsx)(kj,{"data-testid":`${e}-icon`,...t});case"unknown":case"implicit":return null}},dre=({addressKind:{type:e,pkh:t},addressPillMode:r,...i})=>{const{addressExistsInContacts:o}=UH(),{openWith:a}=(0,n.useContext)(mM);if("removable"===r.type)return(0,un.jsx)(OR,{cursor:"pointer",onClick:r.onRemove,...i});return["implicit","multisig","baker"].includes(e)||o(t)?null:(0,un.jsx)(un.Fragment,{children:(0,un.jsx)(pj,{"data-testid":"add-contact-icon",onClick:()=>{a((0,un.jsx)(Cee,{buttonText:"Add to Contact",contact:{name:"",pkh:t},title:"Add contact"}))},...i})})},hre=({addressKind:{pkh:e,label:t},showPkh:r,alias:n,...i})=>{const o=FH(),a=Y2(e),s=o(e)||t||n;return r?(0,un.jsx)(sz,{...i,children:a}):(0,un.jsx)(sz,{...i,children:s?K2(s,21):a})},fre=e=>{const t=s3(e);if(!t)return null;const{pkh:r,label:n}=t;return{type:"multisig"===t.type?"multisig":"implicit",pkh:r,label:n}},pre=({pkh:e})=>{const t=(e=>{const t=jR((t=>t.tokens[e.name]));return e=>{if(!t||!(e in t))return;const r=t[e],n=Object.keys(r)[0];return n?r[n].type:void 0}})($2()),r=t(e);if(!r)return null;switch(r){case"fa1.2":return{pkh:e,type:"fa1.2",label:null};case"fa2":case"nft":return{pkh:e,type:"fa2",label:null}}},mre=({address:e,mode:t={type:"default"},...r})=>{const i=!("pkh"in e&&"type"in e),o=i?qu(e.address):e,a=(e=>{const t=fre(e),r=pre(e),n=c3(e),i=l3(e);return t||r||n||i||{pkh:e.pkh,type:"unknown",label:null}})(o),s="no_icons"!==t.type,{onOpen:c,onClose:l,isOpen:u}=BR(),[d,h]=(0,n.useState)(!1),f=(0,n.useRef)(null);let p,m,g;return function(e){const{ref:t,handler:r,enabled:i=!0}=e,o=zR(r),a=(0,n.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,n.useEffect)((()=>{if(!i)return;const e=e=>{sre(e,t)&&(a.isPointerDown=!0)},n=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&sre(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&sre(e,t)&&(a.isPointerDown=!1,o(e))},c=LR(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",n,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",s,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",n,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",s,!0)}}),[r,t,o,a,i])}({ref:f,handler:()=>{h(!1)}}),u?(p=EP.green,m=EP.gray[300],g="white"):d?(p=EP.gray[450],m=EP.gray[400],g=EP.gray[200]):(p=EP.gray[500],m=EP.gray[450],g=EP.gray[300]),(0,un.jsx)(pn,{maxWidth:"max-content","data-testid":"address-pill",...r,children:(0,un.jsxs)(dn,{ref:f,alignItems:"center",background:p,borderRadius:"full",onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},paddingX:"4px",children:[s&&(0,un.jsx)(ure,{marginLeft:"4px",stroke:m,addressKind:a,"data-testid":"address-pill-left-icon"}),(0,un.jsxs)(Zee,{autoFocus:!1,isOpen:u,onOpen:async()=>{await navigator.clipboard.writeText(o.pkh),c(),setTimeout(l,1e3)},children:[(0,un.jsx)(Yee,{children:(0,un.jsx)(Dn,{height:"24px",_focus:{boxShadow:"none"},onClick:e=>e.stopPropagation(),variant:"unstyled",children:(0,un.jsx)(hre,{color:g,cursor:"pointer",addressKind:a,alias:i&&e.alias?e.alias:void 0,"data-testid":"address-pill-text",marginX:"4px",showPkh:!s,size:"sm"})})}),(0,un.jsxs)(tte,{maxWidth:"max-content",background:"white",children:[(0,un.jsx)(lre,{background:"white !important"}),(0,un.jsx)(rte,{children:(0,un.jsx)(sz,{color:"black",size:"sm",children:"Copied!"})})]})]}),s&&(0,un.jsx)(dre,{marginRight:"4px",stroke:EP.gray[300],cursor:"pointer",addressKind:a,addressPillMode:t,"data-testid":"address-pill-right-icon"})]})})},gre=({operation:e})=>{let t;switch(e.type){case"undelegation":case"contract_origination":t=void 0;break;case"tez":case"fa1.2":case"fa2":case"delegation":t=e.recipient;break;case"contract_call":t=e.contract}return t?(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(mre,{address:t,"data-testid":"recipient"})]}):(0,un.jsx)(sz,{color:EP.gray[500],"data-testid":"recipient",children:"N/A"})},vre=e=>null===e||void 0===e?void 0:e.replace("ipfs://","https://ipfs.io/ipfs/"),yre=e=>(0,Va.orderBy)(e,["lastLevel","id","owner"],["desc"]),bre=({operation:e})=>{const t=q2(),r=$2();switch(e.type){case"tez":return(0,un.jsxs)(dn,{children:[(0,un.jsx)(cR,{marginRight:"8px"}),(0,un.jsx)(kn,{size:"sm",children:Z2(e.amount)})]});case"fa1.2":case"fa2":{const n=t(e.contract.pkh,e.tokenId);return"nft"===(null===n||void 0===n?void 0:n.type)?(0,un.jsxs)(dn,{children:[(0,un.jsx)(cR,{marginRight:"8px"}),Number(e.amount)>1&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsxs)(kn,{color:EP.gray[450],size:"sm",children:["x",e.amount]}),"\xa0"]}),(0,un.jsx)(kn,{size:"sm",children:(0,un.jsx)(eH,{padding:"8px",background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px",label:(0,un.jsx)(dz,{width:"170px",height:"170px",ratio:1,children:(0,un.jsx)(bR,{src:vre(dd(n))})}),children:(0,un.jsx)(Bn,{"data-testid":"link",href:pd(n,r),children:rd(n)})})})]}):(0,un.jsxs)(dn,{children:[(0,un.jsx)(cR,{marginRight:"8px"}),(0,un.jsx)(kn,{size:"sm",children:(0,un.jsx)(Bn,{"data-testid":"link",href:n?pd(n,r):void 0,children:Rre(n,e.amount)})})]})}case"delegation":return(0,un.jsxs)(dn,{children:[(0,un.jsx)(gj,{marginRight:"8px"}),(0,un.jsx)(kn,{size:"sm",children:"Delegate"})]});case"undelegation":return(0,un.jsxs)(dn,{children:[(0,un.jsx)(gj,{marginRight:"8px"}),(0,un.jsx)(kn,{size:"sm",children:"End Delegation"})]});case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}},wre=({addressKind:e})=>{switch(e.type){case"secret_key":case"mnemonic":return(0,un.jsx)(aH,{width:"48px",height:"48px",padding:"8px",address:e.pkh,identiconSize:32});case"social":case"contact":case"ledger":case"multisig":case"unknown":case"baker":{const t="social"===e.type?"white":EP.gray[500];return(0,un.jsx)(dn,{alignItems:"center",justifyContent:"center",padding:"4px",background:t,borderRadius:"4px",children:(0,un.jsx)(cH,{addressKind:e,size:"md"})})}}},xre=(0,n.createContext)({selectedAccount:null,selectAccount:()=>{}}),_re=({icon:e,leftElement:t,rightElement:r,...n})=>(0,un.jsxs)(dn,{alignItems:"center",height:90,marginBottom:4,padding:4,border:`1px solid ${EP.gray[800]}`,borderRadius:4,...n,children:[e,(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",flex:1,children:[t,r]})]}),Sre=({label:e,pkh:t})=>(0,un.jsxs)(pn,{margin:4,"data-testid":"account-identifier",children:[e&&(0,un.jsx)(kn,{size:"md",children:e}),(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(sz,{color:"text.dark","data-testid":"short-address",size:"sm",children:Y2(t)})})]}),kre=({account:e,radius:t,left:r="0px",top:n="0px",mainBackgroundColor:i=EP.gray[900],opacity:o="60"})=>{let a;switch(e.type){case"mnemonic":case"secret_key":s=e.address.pkh,a=`#${rH()(s).slice(0,6)}`;break;case"ledger":case"multisig":a=EP.gray[450];break;case"social":a="#EA4335"}var s;return a+=o,`radial-gradient(circle farthest-side at ${r} ${n}, ${a} 0%, ${a} ${parseInt(t)/4}px, transparent ${t}), ${i}`},Ere=({account:e,balance:t})=>{const{selectedAccount:r,selectAccount:i}=(0,n.useContext)(xre),o=(null===r||void 0===r?void 0:r.address.pkh)===e.address.pkh,a=a3(e.address),{address:{pkh:s}}=e,c=!!jR((e=>e.assets.delegationLevels))[s],l=t3(),u=yre(l(s));return(0,un.jsxs)(pn,{zIndex:2,background:kre({left:"-10px",top:"-10px",account:e,radius:u.length>0?"120px":"100px"}),borderWidth:"1px",borderStyle:"solid",borderColor:o?EP.orangeL:EP.gray[900],borderRadius:"8px",_hover:{borderColor:o?EP.orangeL:EP.gray[700]},cursor:"pointer","data-testid":"account-tile-container",onClick:()=>i(e),paddingX:"21px",children:[(0,un.jsx)(_re,{align:"bottom",marginBottom:0,padding:0,border:"none","data-testid":`account-tile-${s}`+(o?"-selected":""),icon:(0,un.jsx)(wre,{addressKind:a}),leftElement:(0,un.jsx)(Sre,{label:a.label,pkh:s}),rightElement:(0,un.jsxs)(dn,{flexDirection:"column",children:[t&&(0,un.jsx)(kn,{alignSelf:"flex-end",size:"lg",children:Z2(t)}),(0,un.jsx)(sz,{align:"right",color:EP.gray[450],fontWeight:700,size:"sm",children:c?"Delegated":(0,un.jsx)(un.Fragment,{children:"\xa0"})})]})}),u.length>0&&(0,un.jsxs)(dn,{flexDirection:"column","data-testid":"nfts-list",children:[(0,un.jsx)(Ree,{}),(0,un.jsx)(dn,{marginY:"21px",children:u.slice(0,7).map(((e,t)=>{const r=vre(dd(e));return 6===t?(0,un.jsx)(vO,{"data-testid":"show-more-nfts-link",to:`/nfts?accounts=${s}`,children:(0,un.jsx)(pn,{height:"32px",marginLeft:"4px",background:EP.gray[600],borderRadius:"4px",children:(0,un.jsx)(sz,{align:"center",width:"32px",color:EP.gray[450],fontWeight:700,children:"..."})})},"last"):(0,un.jsx)(vO,{"data-testid":"nft-link",to:`/home/${s}/${td(e)}`,children:(0,un.jsx)(dz,{width:"32px",height:"32px",marginLeft:t>0?"4px":0,ratio:1,children:(0,un.jsx)(bR,{borderRadius:"4px",src:r})})},td(e))}))})]})]})},Are=({title:e,description:t,buttonLabel:r,onSubmit:i})=>{const{onClose:o}=(0,n.useContext)(mM);return(0,un.jsxs)(iz,{children:[(0,un.jsxs)(oz,{marginBottom:"10px",textAlign:"center",children:[(0,un.jsx)(pn,{children:(0,un.jsx)(TR,{width:"40px",height:"40px",marginBottom:"16px"})}),(0,un.jsx)(kn,{children:e}),(0,un.jsx)(cz,{})]}),t&&(0,un.jsx)(lz,{children:(0,un.jsx)(sz,{align:"center",color:EP.gray[400],"data-testid":"description",children:t})}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",onClick:()=>{i(),o()},size:"lg",variant:"warning",children:r})})]})},Pre=({title:e,fee:t,transactionCount:r,signer:n})=>(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(N7,{subTitle:F7(n),title:e}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:n.address}),(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",marginY:"12px",paddingX:"4px",children:[(0,un.jsxs)(dn,{children:[(0,un.jsx)(sz,{marginRight:1,color:EP.gray[450],size:"sm",children:"Transactions:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"transaction-length",size:"sm",children:r})]}),(0,un.jsx)(M7,{fee:t})]})]})]}),Tre=({initialOperations:e,initialFee:t})=>{const{fee:r,operations:n,estimationFailed:i,isLoading:o,signer:a,form:s,reEstimate:c,onSign:l}=dte(t,e,"batch"),u=U7(n.type,"batch");return(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(Pre,{fee:r,signer:a,title:u,transactionCount:n.operations.length}),(0,un.jsx)(ate,{isLoading:o,operationType:n.type,reEstimate:c,sender:n.sender}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:i,isLoading:o,onSubmit:l,signer:a,text:u})})]})})})},Ore=({operations:e})=>{const{type:t,sender:r,operations:i}=e,{openWith:o}=(0,n.useContext)(mM),{handleAsyncAction:a,isLoading:s}=k7(),c=$2();return(0,un.jsxs)(pn,{alignItems:"center",justifyContent:"space-between","data-testid":"right-header",children:[(0,un.jsx)(sz,{display:"inline-block",color:EP.gray[400],size:"sm",children:ore()("transaction",i.length,!0)}),(0,un.jsx)(Dn,{marginLeft:"30px",isLoading:s,onClick:()=>a((async()=>{const t=await l2(e,c);o((0,un.jsx)(Tre,{initialFee:t,initialOperations:e}))})),variant:"primary",children:U7(t,"batch")}),(0,un.jsx)(S3,{marginLeft:"16px",borderRadius:"4px","aria-label":"remove-batch","data-testid":"remove-batch",icon:(0,un.jsx)(xR,{stroke:EP.gray[300]}),onClick:()=>o((0,un.jsx)(jre,{sender:r}),"sm"),variant:"circle"})]})},Cre=e=>{switch(e.type){case"fa1.2":case"fa2":return"Token Transfer";case"undelegation":case"delegation":return"Delegation";case"tez":return"\ua729 Transfer";case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}},jre=({sender:e})=>{const t=cte();return(0,un.jsx)(Are,{buttonLabel:"Delete Batch",description:"Are you sure you want to remove all transactions from the batch?",onSubmit:()=>t(e),title:"Delete Batch"})},Rre=(e,t)=>{if(!e)return`${t} Unknown Token`;const r=nd(e),n=ld(t,e,{showSymbol:!1}),i=r?void 0:od(e);return(0,Va.compact)([n,i,r]).join(" ")},Ire=({operations:e})=>{const{operations:t,sender:r}=e,n=(()=>{const e=CR(),t=$2();return(r,n)=>e(jd.removeItem({pkh:r.address.pkh,index:n,network:t}))})(),i=t.length>9;return(0,un.jsxs)(pn,{width:"100%",marginBottom:"16px","data-testid":`batch-table-${r.address.pkh}`,children:[(0,un.jsxs)(dn,{justifyContent:"space-between",padding:"20px 23px 20px 30px",background:kre({top:"-10px",left:"-10px",account:r,radius:"100px",opacity:"40",mainBackgroundColor:EP.gray[800]}),borderTopRadius:"8px","data-testid":"header",children:[(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(are,{paddingLeft:0,account:r})}),(0,un.jsx)(Ore,{operations:e})]}),(0,un.jsx)(dn,{flexDirection:"column",background:EP.gray[900],borderBottomRadius:i?0:"8px",paddingX:"30px",paddingY:"20px",children:t.map(((e,i)=>(0,un.jsxs)(pn,{"data-testid":"operation",children:[(0,un.jsxs)(dn,{flexDirection:"column",height:"50px",children:[(0,un.jsx)(dn,{children:(0,un.jsx)(bre,{operation:e})}),(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",width:"100%",marginTop:"8px",children:[(0,un.jsx)(dn,{children:(0,un.jsx)(gre,{operation:e})}),(0,un.jsxs)(dn,{children:[(0,un.jsx)(sz,{alignSelf:"flex-end",color:EP.gray[450],size:"sm",children:Cre(e)}),(0,un.jsx)(S3,{width:"24px",marginLeft:"12px",borderRadius:"full","aria-label":"Remove",icon:(0,un.jsx)(xR,{stroke:EP.gray[300]}),onClick:()=>n(r,i),size:"xs",variant:"circle"})]})]})]}),icrypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))())))}),i&&(0,un.jsx)(dn,{justifyContent:"end",verticalAlign:"middle",padding:"20px 23px 20px 30px",background:EP.gray[800],borderRadius:"0 0 8px 8px","data-testid":"footer",children:(0,un.jsx)(Ore,{operations:e})})]})};var Mre=r(5199),Lre=r.n(Mre);function Nre(e){const t=new Bs(e);return t.isLessThan(0)?null:t.toFixed()}const Dre=(e,t,r)=>{const n=t.filter((e=>e.length>0)),i=n.length;if(i<2||4{const e=$2(),t=cN(),r=q2(),i=CR(),o=ZH(),a=JH(),{onClose:s}=(0,n.useContext)(mM),{isLoading:c,handleAsyncAction:l}=k7(),u=MU({mode:"onBlur"}),{handleSubmit:d,formState:{isValid:h,errors:f}}=u;return(0,un.jsx)(PB,{...u,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:d((async({file:n,sender:c})=>l((async()=>{const l=o(c),u=await new Promise((e=>{Lre().parse(n[0],{skipEmptyLines:!0,complete:e})}));if(u.errors.length>0)throw new Error("Error loading csv file: "+u.errors.map((e=>e.message)).join(", "));const d=[];for(let e=0;e{const{openWith:e}=(0,n.useContext)(mM);return(0,un.jsxs)(Dn,{onClick:()=>e((0,un.jsx)(zre,{})),variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{marginRight:"4px",size:"sm",children:"Load CSV file"}),(0,un.jsx)(Uj,{stroke:"currentcolor"})]})},Ure=({href:e,children:t,...r})=>(0,un.jsx)(Bn,{alignItems:"center",display:"flex",_hover:{textDecoration:"none"},href:e,rel:"noopener noreferrer",role:"link",target:"_blank",...r,children:t}),Fre=({batchPending:e})=>(0,un.jsxs)(dn,{alignItems:"center",marginTop:"24px",marginBottom:"24px",children:[(0,un.jsxs)(kn,{flex:1,color:EP.orangeL,size:"sm",children:[e," Pending"]}),(0,un.jsx)(Bre,{}),(0,un.jsx)(Ure,{marginLeft:"8px",href:"https://github.com/trilitech/umami-v1/blob/main/CSV_FILE_SPEC.md",children:(0,un.jsxs)(Dn,{paddingRight:"0",variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{marginRight:"4px",size:"sm",children:"See file specs"}),(0,un.jsx)(Mj,{stroke:"currentcolor"})]})})]}),$re=()=>{const e=(()=>{const e=$2(),t=jR((t=>t.batches[e.name]));return t||[]})();return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Batch"}),(0,un.jsx)(Fre,{batchPending:e.length}),(0,un.jsx)(pn,{overflowY:"auto",minHeight:"80%",children:e.length>0?e.map((e=>(0,un.jsx)(Ire,{operations:e},e.sender.address.pkh))):(0,un.jsx)(Hre,{})})]})},Hre=()=>{const{openWith:e}=(0,n.useContext)(mM);return(0,un.jsx)(hn,{height:"100%",textAlign:"center",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(kn,{size:"3xl",children:"No 'batch' to show"}),(0,un.jsx)(sz,{marginTop:"10px",color:EP.gray[400],size:"xl",children:"There is no batch transaction to show..."}),(0,un.jsx)(dn,{justifyContent:"space-around",marginTop:"30px",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(Dn,{onClick:()=>e((0,un.jsx)(wte,{showPreview:!1})),children:"Start a Batch"}),(0,un.jsx)(Dn,{marginLeft:"15px",onClick:()=>e((0,un.jsx)(zre,{})),variant:"tertiary",children:"Load CSV file"})]})})]})})};var Vre=g((function(e,t){const{templateAreas:r,gap:n,rowGap:i,columnGap:o,column:a,row:s,autoFlow:c,autoRows:l,templateRows:u,autoColumns:d,templateColumns:h,...f}=e,p={display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:i,gridColumnGap:o,gridAutoColumns:d,gridColumn:a,gridRow:s,gridAutoFlow:c,gridAutoRows:l,gridTemplateRows:u,gridTemplateColumns:h};return(0,un.jsx)(ln.div,{ref:t,__css:p,...f})}));function qre(e){return uz(e,(e=>"auto"===e?"auto":`span ${e}/span ${e}`))}Vre.displayName="Grid";var Kre=g((function(e,t){const{area:r,colSpan:n,colStart:i,colEnd:o,rowEnd:a,rowSpan:s,rowStart:c,...l}=e,u=az({gridArea:r,gridColumn:qre(n),gridRow:qre(s),gridColumnStart:i,gridColumnEnd:o,gridRowStart:c,gridRowEnd:a});return(0,un.jsx)(ln.div,{ref:t,__css:u,...l})}));Kre.displayName="GridItem";const Wre=({onClick:e,children:t,isSelected:r,...n})=>(0,un.jsx)(zU,{justifyContent:"center",height:"66px",marginBottom:"10px",padding:"24px",border:"1px solid",borderColor:r?` ${EP.orangeL}`:"transparent",borderRadius:"lg",_hover:{border:`1px solid ${EP.gray[500]}`,bg:EP.gray[800]},cursor:e?"pointer":void 0,backgroundColor:EP.gray[900],onClick:e,...n,children:(0,un.jsx)(BU,{padding:0,children:t})}),Gre=({left:e,isSelected:t,onClick:r})=>(0,un.jsx)(Wre,{isSelected:t,onClick:r,children:(0,un.jsx)(dn,{alignItems:"center",height:"100%",children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,un.jsx)(kn,{size:"sm",children:e}),(0,un.jsx)(xj,{})]})})}),Zre=()=>(0,un.jsxs)(Vre,{gridGap:"1",gridTemplateRows:"0fr 1fr 1fr",gridTemplateColumns:"1fr 1fr",gridTemplateAreas:'\n "header header"\n "main main"\n "main main"\n ',height:"100%",children:[(0,un.jsx)(Kre,{gridArea:"header",children:(0,un.jsx)(tre,{title:"Help"})}),(0,un.jsxs)(Kre,{gridArea:"main",marginTop:1,children:[(0,un.jsx)(Xre,{title:"Learn More",children:(0,un.jsx)(Yre,{about:"Browse Articles",externalLink:"https://medium.com/umamiwallet"})}),(0,un.jsxs)(Xre,{title:"Need Help?",children:[(0,un.jsx)(Yre,{about:"Contact our Support Team",externalLink:"mailto:umami-support@trili.tech",linkDescription:"umami-support@trili.tech"}),(0,un.jsx)(Yre,{about:"Get in touch with the Community",externalLink:"https://join.slack.com/t/tezos-dev/shared_invite/zt-1ur1ymxrp-G_X_bFHrvWXwoeiy53J8lg",linkDescription:"Slack #Umami"})]}),(0,un.jsx)(Xre,{title:"Terms of Use",children:(0,un.jsx)(Yre,{about:"Read Terms of Service",externalLink:"https://umamiwallet.com/tos.html"})})]})]}),Yre=({about:e,externalLink:t,linkDescription:r})=>(0,un.jsx)(vO,{rel:"noopener noreferrer",target:"_blank",to:t,children:(0,un.jsx)(Wre,{cursor:"pointer",isSelected:!1,children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",children:[(0,un.jsx)(kn,{size:"sm",children:e}),(0,un.jsxs)(dn,{alignItems:"center",children:[r&&(0,un.jsx)(sz,{marginRight:"4px",color:EP.gray[400],size:"sm",children:r}),(0,un.jsx)(Mj,{})]})]})})}),Xre=({title:e,children:t})=>(0,un.jsx)(pn,{"data-testid":"help-card",marginY:"10px",children:(0,un.jsx)(dn,{children:(0,un.jsxs)(pn,{width:"550px",children:[(0,un.jsx)(kn,{marginBottom:"16px",size:"lg",children:e}),t]})})});var[Jre,Qre]=En(),ene={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function tne(e){var t;const{isOpen:r,onClose:n,placement:i="right",children:o,...a}=e,s=vn(),c=null==(t=s.components)?void 0:t.Drawer,l=function(e,t){var r,n;if(e)return null!=(n=null==(r=ene[e])?void 0:r[t])?n:e}(i,s.direction);return(0,un.jsx)(Jre,{value:{placement:l},children:(0,un.jsx)(nI,{isOpen:r,onClose:n,styleConfig:c,...a,children:o})})}var rne={exit:{duration:.15,ease:iI.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},nne={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var i;const{exit:o}=lI({direction:e});return{...o,transition:null!=(i=null==t?void 0:t.exit)?i:hI(rne.exit,n),transitionEnd:null==r?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var i;const{enter:o}=lI({direction:e});return{...o,transition:null!=(i=null==r?void 0:r.enter)?i:dI(rne.enter,n),transitionEnd:null==t?void 0:t.enter}}},ine=(0,n.forwardRef)((function(e,t){const{direction:r="right",style:n,unmountOnExit:i,in:o,className:a,transition:s,transitionEnd:c,delay:l,motionProps:u,...d}=e,h=lI({direction:r}),f=Object.assign({position:"fixed"},h.position,n),p=!i||o&&i,m=o||i?"enter":"exit",g={transitionEnd:c,transition:s,direction:r,delay:l};return(0,un.jsx)(iP,{custom:g,children:p&&(0,un.jsx)(CA.div,{...d,ref:t,initial:"exit",className:v("chakra-slide",a),animate:m,exit:"exit",custom:g,variants:nne,style:f,...u})})}));ine.displayName="Slide";var one=ln(ine),ane=g(((e,t)=>{const{className:r,children:n,motionProps:i,containerProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:c,isOpen:l}=rI(),u=s(a,t),d=c(o),h=v("chakra-modal__content",r),f=eI(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{placement:g}=Qre();return(0,un.jsx)(nz,{children:(0,un.jsx)(ln.div,{...d,className:"chakra-modal__content-container",__css:m,children:(0,un.jsx)(one,{motionProps:i,direction:g,in:l,className:h,...u,__css:p,children:n})})})}));ane.displayName="DrawerContent";const sne=({onRemove:e,onCreate:t})=>(0,un.jsx)(nte,{children:(0,un.jsxs)(pn,{paddingY:"0",children:[(0,un.jsx)(Dn,{height:t?"24px":"28px","data-testid":"popover-remove",onClick:e,variant:"popover",children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",flex:1,children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Remove"}),(0,un.jsx)(xR,{stroke:"inherit"})]})}),t&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Ree,{marginY:"4px"}),(0,un.jsx)(Dn,{onClick:t,variant:"popover",children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",flex:1,children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Create"}),(0,un.jsx)(uR,{width:"18px",height:"18px",stroke:"inherit"})]})})]})]})});var cne=e=>(0,un.jsx)(ln.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});cne.displayName="StackItem";var lne=g(((e,t)=>{const{isInline:r,direction:i,align:o,justify:a,spacing:s="0.5rem",wrap:c,children:l,divider:u,className:d,shouldWrapChildren:h,...f}=e,p=r?"row":null!=i?i:"column",m=(0,n.useMemo)((()=>function(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":uz(r,(e=>n[e]))}}({spacing:s,direction:p})),[s,p]),g=!!u,y=!h&&!g,b=(0,n.useMemo)((()=>{const e=HU(l);return y?e:e.map(((t,r)=>{const i="undefined"!==typeof t.key?t.key:r,o=r+1===e.length,a=h?(0,un.jsx)(cne,{children:t},i):t;if(!g)return a;const s=(0,n.cloneElement)(u,{__css:m}),c=o?null:s;return(0,un.jsxs)(n.Fragment,{children:[a,c]},i)}))}),[u,m,g,y,h,l]),w=v("chakra-stack",d);return(0,un.jsx)(ln.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:p,flexWrap:c,gap:g?void 0:s,className:w,...f,children:b})}));lne.displayName="Stack";var une=g(((e,t)=>(0,un.jsx)(lne,{align:"center",...e,direction:"column",ref:t})));une.displayName="VStack";const dne=({icon:e,size:t,onClick:r=(()=>{})})=>(0,un.jsx)(pn,{width:t,height:t,margin:"auto",background:EP.gray[700],borderRadius:"full",onClick:r,children:(0,un.jsx)(hn,{height:"100%",children:e})}),hne=({children:e,icon:t,title:r,subtitle:n})=>(0,un.jsxs)(une,{maxHeight:"83vh",spacing:0,children:[(0,un.jsx)(pn,{marginBottom:"20px",children:(0,un.jsx)(dne,{icon:t,size:"48px"})}),(0,un.jsxs)(hn,{flexDirection:"column",marginBottom:"32px",children:[(0,un.jsx)(kn,{size:"xl",children:r}),n&&(0,un.jsx)(sz,{marginTop:"10px",color:EP.gray[400],textAlign:"center",size:"sm",children:n})]}),e]}),fne=({onSubmit:e,isLoading:t})=>{const r=MU({mode:"onBlur"}),{handleSubmit:n,formState:{errors:i,isValid:o}}=r;return(0,un.jsx)(hne,{icon:(0,un.jsx)(iR,{}),subtitle:"Enter your master password for Umami.",title:"Umami Master Password",children:(0,un.jsx)(PB,{...r,children:(0,un.jsxs)("form",{onSubmit:n((t=>{e(t.password)})),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{isInvalid:!!i.password,children:[(0,un.jsx)(P7,{"data-testid":"password",inputName:"password"}),i.password&&(0,un.jsx)(A7,{children:i.password.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",isDisabled:!o,isLoading:t,size:"lg",type:"submit",children:"Submit"})]})})})},pne=({onSubmit:e,title:t="Name Your Account",subtitle:r})=>{const{register:n,handleSubmit:i}=MU({mode:"onChange"});return(0,un.jsx)(hne,{icon:(0,un.jsx)(jj,{}),subtitle:r,title:t,children:(0,un.jsxs)("form",{onSubmit:i(e),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{children:[(0,un.jsx)(FU,{children:"Account name"}),(0,un.jsx)(ZU,{"data-testid":"name",type:"text",...n("accountName",{required:!1}),placeholder:"Optional"})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",size:"lg",type:"submit",children:"Continue"})]})})},mne=e=>{const[t,r]=(0,n.useState)();return void 0===t?(0,un.jsx)(pne,{onSubmit:e=>r(e.accountName),subtitle:e.subtitle,title:e.title}):(0,un.jsx)(fne,{isLoading:e.isLoading,onSubmit:r=>e.onSubmit({name:t,password:r})})},gne=e=>(0,un.jsx)(pn,{overflowY:"auto",height:"100%",children:e.children}),vne=({goToStep:e})=>{const t=HH().length>0;return(0,un.jsx)(hne,{icon:(0,un.jsx)(nR,{}),title:"Connect or Import Account",children:(0,un.jsxs)(une,{width:"100%",spacing:"16px",children:[(0,un.jsx)(Dn,{width:"100%",onClick:t=>e({type:Pie.restoreMnemonic}),size:"lg",children:"Import with Seed Phrase"}),(0,un.jsx)(Dn,{width:"100%",onClick:t=>e({type:Pie.restoreSecretKey}),size:"lg",variant:"tertiary",children:"Import with Secret Key"}),!t&&(0,un.jsx)(Dn,{width:"100%",onClick:t=>{e({type:Pie.restoreBackup})},size:"lg",variant:"tertiary",children:"Restore from Backup"}),(0,un.jsx)(Dn,{width:"100%",onClick:t=>{e({type:Pie.nameAccount,account:{type:"ledger"}})},size:"lg",variant:"tertiary",children:"Connect ledger"})]})})},yne=({secretKey:e,label:t,password:r})=>async n=>{const{account:i,encryptedSecretKey:o}=await(async({secretKey:e,label:t,password:r})=>{const{pk:n,pkh:i}=await n2(e),o=await Rc(e,r);return{account:{type:"secret_key",pk:n,label:t,address:Yu(i)},encryptedSecretKey:o}})({secretKey:e,label:t,password:r});n(Nc.actions.addAccount(i)),n(Nc.actions.addSecretKey({pkh:i.address.pkh,encryptedSecretKey:o}))},bne=e=>async t=>{t(Nc.actions.removeSecretKey(e)),t(Nc.actions.removeAccount(e))},{addAccount:wne,removeMnemonicAndAccounts:xne,removeNonMnemonicAccounts:_ne}=Nc.actions,Sne=()=>{const e=$2(),t=U2(),r=pi();return async({mnemonic:n,password:i,derivationPath:o,label:a})=>{const s=await e2(n),c=await t(n,e,o,a),l=await Rc(n,i);r(Nc.actions.addMnemonicAccounts({seedFingerprint:s,accounts:c,encryptedMnemonic:l}))}},kne=()=>{const e=CR();return(t,r,n,i)=>{e(wne({derivationPath:t,curve:"ed25519",type:"ledger",pk:r,address:{type:"implicit",pkh:n},label:i}))}},Ene=({goToStep:e,closeModal:t})=>{const{handleAsyncAction:r}=k7(),n=(()=>{const e=CR();return(t,r,n)=>{e(wne({type:"social",pk:t,address:{type:"implicit",pkh:r},idp:"google",label:n}))}})(),i=cN();return(0,un.jsx)(hne,{icon:(0,un.jsx)(PR,{}),title:"Connect or Create Account",children:(0,un.jsxs)(une,{width:"100%",spacing:"16px",children:[(0,un.jsx)(Dn,{width:"100%",onClick:t=>e({type:Pie.notice}),size:"lg",children:"Create a new Account"}),(0,un.jsx)(Dn,{width:"100%",onClick:t=>e({type:Pie.connectOptions}),size:"lg",variant:"tertiary",children:"I already have a wallet"}),(0,un.jsxs)(dn,{width:"100%",paddingTop:"14px",paddingBottom:"6px",children:[(0,un.jsx)(Ree,{marginTop:"11px"}),(0,un.jsx)(sz,{minWidth:"160px",color:EP.gray[400],textAlign:"center",noOfLines:1,size:"sm",children:"Continue with Google"}),(0,un.jsx)(Ree,{marginTop:"11px"})]}),(0,un.jsx)(E7,{onAuth:(e,o)=>r((async()=>{const{pk:r,pkh:a}=await n2(e);n(r,a,o),i({description:`Successfully added ${o} account`,status:"success"}),t()}))})]})})},Ane=({selected:e,options:t,onChange:r})=>{const[i,o]=(0,n.useState)(e),[a,s]=(0,n.useState)(!1);return(0,un.jsxs)(pn,{children:[(0,un.jsxs)(dn,{justifyContent:"space-between",height:"48px",padding:"12px 15px 15px 15px",color:EP.gray[300],background:EP.gray[800],border:"1px solid",borderColor:EP.gray[500],borderRadius:"4px",_hover:{borderColor:EP.gray[450]},cursor:"pointer","data-testid":"select-input",onClick:()=>s((e=>!e)),children:[(0,un.jsx)(sz,{size:"sm",children:i.label}),(0,un.jsx)(wj,{marginTop:"2px"})]}),a&&(0,un.jsx)(iF,{position:"absolute",zIndex:2,width:"100%",margin:0,marginTop:"8px",padding:"15px",background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px","data-testid":"select-options",listStyleType:"none",children:t.map((e=>(0,un.jsx)(oF,{marginBottom:"5px",padding:"11px",color:EP.gray[300],background:"transparent",borderRadius:"4px",_hover:{background:EP.gray[500]},cursor:"pointer",onClick:()=>{s(!1),o(e),r(e.value)},children:(0,un.jsx)(sz,{size:"sm",children:e.label})},e.value)))})]})},Pne=({goToStep:e,account:t})=>{const{handleSubmit:r,setValue:n,formState:{errors:i}}=MU({mode:"onBlur",defaultValues:{derivationPath:MH}});return(0,un.jsx)(hne,{icon:(0,un.jsx)(fR,{}),subtitle:"Choose a custom derivation path or select the default derivation path and use the default key.",title:"Derivation Path",children:(0,un.jsxs)("form",{onSubmit:r((async({derivationPath:r})=>{switch(t.type){case"ledger":e({type:Pie.restoreLedger,account:{...t,derivationPath:r}});break;case"mnemonic":e({type:Pie.masterPassword,account:{...t,derivationPath:r}})}})),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{marginBottom:"20px",children:[(0,un.jsx)(FU,{children:"Select Path"}),(0,un.jsx)(Ane,{onChange:e=>n("derivationPath",e),options:NH,selected:LH}),i.derivationPath&&(0,un.jsx)(A7,{"data-testid":"error-message",children:i.derivationPath.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"12px",size:"lg",type:"submit",children:"Continue"}),(0,un.jsx)(Ure,{display:"block",width:"100%",marginTop:"32px",textAlign:"center",href:"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki",children:(0,un.jsx)(eH,{backgroundColor:"white",defaultIsOpen:!1,hasArrow:!0,label:"Derivation path is a set of directions that helps create different secret keys; it starts from a master key or seed.",children:(0,un.jsx)(sz,{color:EP.blue,fontWeight:600,textDecoration:"underline",_hover:{textDecoration:"underline"},size:"sm",children:"What's a Derivation Path?"})})})]})})};var[Tne,One]=En({name:"CheckboxGroupContext",strict:!1});function Cne(e){return(0,un.jsx)(ln.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,un.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function jne(e){return(0,un.jsx)(ln.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,un.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Rne(e){const{isIndeterminate:t,isChecked:r,...n}=e,i=t?jne:Cne;return r||t?(0,un.jsx)(ln.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,un.jsx)(i,{...n})}):null}var Ine={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};var Mne=()=>"undefined"!==typeof document;var Lne=!1,Nne=null,Dne=!1,zne=!1,Bne=new Set;function Une(e,t){Bne.forEach((r=>r(e,t)))}var Fne="undefined"!==typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function $ne(e){Dne=!0,function(e){return!(e.metaKey||!Fne&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Nne="keyboard",Une("keyboard",e))}function Hne(e){if(Nne="pointer","mousedown"===e.type||"pointerdown"===e.type){Dne=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Une("pointer",e)}}function Vne(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(Dne=!0,Nne="virtual")}function qne(e){e.target!==window&&e.target!==document&&(Dne||zne||(Nne="virtual",Une("virtual",e)),Dne=!1,zne=!1)}function Kne(){Dne=!1,zne=!0}function Wne(){return"pointer"!==Nne}function Gne(){if(!Mne()||Lne)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Dne=!0,e.apply(this,t)},document.addEventListener("keydown",$ne,!0),document.addEventListener("keyup",$ne,!0),document.addEventListener("click",Vne,!0),window.addEventListener("focus",qne,!0),window.addEventListener("blur",Kne,!1),"undefined"!==typeof PointerEvent?(document.addEventListener("pointerdown",Hne,!0),document.addEventListener("pointermove",Hne,!0),document.addEventListener("pointerup",Hne,!0)):(document.addEventListener("mousedown",Hne,!0),document.addEventListener("mousemove",Hne,!0),document.addEventListener("mouseup",Hne,!0)),Lne=!0}function Zne(e){Gne(),e(Wne());const t=()=>e(Wne());return Bne.add(t),()=>{Bne.delete(t)}}function Yne(e={}){const t=GU(e),{isDisabled:r,isReadOnly:i,isRequired:o,isInvalid:a,id:s,onBlur:c,onFocus:l,"aria-describedby":u}=t,{defaultChecked:d,isChecked:h,isFocusable:f,onChange:p,isIndeterminate:m,name:g,value:v,tabIndex:y,"aria-label":b,"aria-labelledby":w,"aria-invalid":x,...S}=e,E=function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(S,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),A=pb(p),P=pb(c),T=pb(l),[O,C]=(0,n.useState)(!1),[j,R]=(0,n.useState)(!1),[I,M]=(0,n.useState)(!1),[L,N]=(0,n.useState)(!1);(0,n.useEffect)((()=>Zne(C)),[]);const D=(0,n.useRef)(null),[z,B]=(0,n.useState)(!0),[U,F]=(0,n.useState)(!!d),$=void 0!==h,H=$?h:U,V=(0,n.useCallback)((e=>{i||r?e.preventDefault():($||F(H?e.target.checked:!!m||e.target.checked),null==A||A(e))}),[i,r,H,$,m,A]);yh((()=>{D.current&&(D.current.indeterminate=Boolean(m))}),[m]),mb((()=>{r&&R(!1)}),[r,R]),yh((()=>{const e=D.current;if(!(null==e?void 0:e.form))return;const t=()=>{F(!!d)};return e.form.addEventListener("reset",t),()=>{var r;return null==(r=e.form)?void 0:r.removeEventListener("reset",t)}}),[]);const q=r&&!f,K=(0,n.useCallback)((e=>{" "===e.key&&N(!0)}),[N]),W=(0,n.useCallback)((e=>{" "===e.key&&N(!1)}),[N]);yh((()=>{if(!D.current)return;D.current.checked!==H&&F(D.current.checked)}),[D.current]);const G=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":_(L),"data-hover":_(I),"data-checked":_(H),"data-focus":_(j),"data-focus-visible":_(j&&O),"data-indeterminate":_(m),"data-disabled":_(r),"data-invalid":_(a),"data-readonly":_(i),"aria-hidden":!0,onMouseDown:k(e.onMouseDown,(e=>{j&&e.preventDefault(),N(!0)})),onMouseUp:k(e.onMouseUp,(()=>N(!1))),onMouseEnter:k(e.onMouseEnter,(()=>M(!0))),onMouseLeave:k(e.onMouseLeave,(()=>M(!1)))})),[L,H,r,j,O,I,m,a,i]),Z=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":_(L),"data-hover":_(I),"data-checked":_(H),"data-focus":_(j),"data-focus-visible":_(j&&O),"data-indeterminate":_(m),"data-disabled":_(r),"data-invalid":_(a),"data-readonly":_(i)})),[L,H,r,j,O,I,m,a,i]),Y=(0,n.useCallback)(((e={},t=null)=>({...E,...e,ref:Ln(t,(e=>{e&&B("LABEL"===e.tagName)})),onClick:k(e.onClick,(()=>{var e;z||(null==(e=D.current)||e.click(),requestAnimationFrame((()=>{var e;null==(e=D.current)||e.focus({preventScroll:!0})})))})),"data-disabled":_(r),"data-checked":_(H),"data-invalid":_(a)})),[E,r,H,a,z]),X=(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(D,t),type:"checkbox",name:g,value:v,id:s,tabIndex:y,onChange:k(e.onChange,V),onBlur:k(e.onBlur,P,(()=>R(!1))),onFocus:k(e.onFocus,T,(()=>R(!0))),onKeyDown:k(e.onKeyDown,K),onKeyUp:k(e.onKeyUp,W),required:o,checked:H,disabled:q,readOnly:i,"aria-label":b,"aria-labelledby":w,"aria-invalid":x?Boolean(x):a,"aria-describedby":u,"aria-disabled":r,style:Ine})),[g,v,s,V,P,T,K,W,o,H,q,i,b,w,x,a,u,r,y]),J=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,onMouseDown:k(e.onMouseDown,Xne),"data-disabled":_(r),"data-checked":_(H),"data-invalid":_(a)})),[H,r,a]);return{state:{isInvalid:a,isFocused:j,isChecked:H,isActive:L,isHovered:I,isIndeterminate:m,isDisabled:r,isReadOnly:i,isRequired:o},getRootProps:Y,getCheckboxProps:G,getIndicatorProps:Z,getInputProps:X,getLabelProps:J,htmlProps:E}}function Xne(e){e.preventDefault(),e.stopPropagation()}var Jne={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Qne={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},eie=jn({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),tie=jn({from:{opacity:0},to:{opacity:1}}),rie=jn({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),nie=g((function(e,t){const r=One(),i=Sn("Checkbox",{...r,...e}),o=ht(e),{spacing:a="0.5rem",className:s,children:c,iconColor:l,iconSize:u,icon:d=(0,un.jsx)(Rne,{}),isChecked:h,isDisabled:f=(null==r?void 0:r.isDisabled),onChange:p,inputProps:m,...g}=o;let y=h;(null==r?void 0:r.value)&&o.value&&(y=r.value.includes(o.value));let b=p;(null==r?void 0:r.onChange)&&o.value&&(b=E(r.onChange,p));const{state:w,getInputProps:x,getCheckboxProps:_,getLabelProps:S,getRootProps:k}=Yne({...g,isDisabled:f,isChecked:y,onChange:b}),A=function(e){const[t,r]=(0,n.useState)(e),[i,o]=(0,n.useState)(!1);return e!==t&&(o(!0),r(e)),i}(w.isChecked),P=(0,n.useMemo)((()=>({animation:A?w.isIndeterminate?`${tie} 20ms linear, ${rie} 200ms linear`:`${eie} 200ms linear`:void 0,fontSize:u,color:l,...i.icon})),[l,u,A,w.isIndeterminate,i.icon]),T=(0,n.cloneElement)(d,{__css:P,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});return(0,un.jsxs)(ln.label,{__css:{...Qne,...i.container},className:v("chakra-checkbox",s),...k(),children:[(0,un.jsx)("input",{className:"chakra-checkbox__input",...x(m,t)}),(0,un.jsx)(ln.span,{__css:{...Jne,...i.control},className:"chakra-checkbox__control",..._(),children:T}),c&&(0,un.jsx)(ln.span,{className:"chakra-checkbox__label",...S(),__css:{marginStart:a,...i.label},children:c})]})}));nie.displayName="Checkbox";const iie=({goToStep:e})=>{const[t,r]=n.useState(!1);return(0,un.jsx)(hne,{icon:(0,un.jsx)(Tj,{}),title:"Accept to Continue",children:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsxs)(nie,{paddingBottom:"24px",fontWeight:"600",onChange:e=>r(e.target.checked),children:["I confirm that I have read and agreed with the"," ",(0,un.jsx)(Bn,{textDecoration:"underline",_hover:{color:EP.green},href:"https://umamiwallet.com/tos.html",rel:"noopener noreferrer",target:"_blank",children:"Terms of Service"})," ","and the"," ",(0,un.jsx)(Bn,{textDecoration:"underline",_hover:{color:EP.green},href:"https://umamiwallet.com/privacypolicy.html",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]}),(0,un.jsx)(Dn,{width:"100%",isDisabled:!t,onClick:()=>{e({type:Pie.connectOrCreate})},size:"lg",children:"Continue"})]})})},oie=({onClose:e})=>{const{register:t,handleSubmit:r,formState:{errors:n}}=MU({mode:"onBlur"}),i=kne();return(0,un.jsx)(hne,{icon:(0,un.jsx)(PR,{}),title:"Add a Fake Account",children:(0,un.jsxs)("form",{onSubmit:r((async({pkh:t,name:r})=>{const n=new Tq(Ad.rpcUrl),o=await n.getManagerKey(t),a="string"===typeof o?o:o.key;i(MH,a,t,r),e()})),style:{width:"100%"},children:[(0,un.jsx)(sz,{children:"It will be restored as a ledger account"}),(0,un.jsxs)(Zz,{isInvalid:!!n.pkh,children:[(0,un.jsx)(FU,{children:"Address"}),(0,un.jsx)(ZU,{...t("pkh",{required:!0}),autoComplete:"off",placeholder:"Please enter the account address"})]}),(0,un.jsxs)(Zz,{isInvalid:!!n.name,children:[(0,un.jsx)(FU,{children:"Name"}),(0,un.jsx)(ZU,{...t("name",{required:!0}),autoComplete:"off",placeholder:"Please enter the account name"})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:2,size:"lg",type:"submit",children:"Add account"})]})})},aie=({onSubmit:e,isLoading:t})=>{const r=MU({mode:"onBlur"}),{handleSubmit:n,formState:{errors:i,isValid:o},getValues:a}=r;return(0,un.jsx)(hne,{icon:(0,un.jsx)(iR,{}),subtitle:"Please choose a master password for Umami. You will need to use this password in order to perform any operations within Umami.",title:"Umami Master Password",children:(0,un.jsx)(PB,{...r,children:(0,un.jsxs)("form",{onSubmit:n((async t=>{e(t.confirm)})),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{isInvalid:!!i.password,children:[(0,un.jsx)(P7,{"data-testid":"password",inputName:"password",placeholder:"Enter master password"}),i.password&&(0,un.jsx)(A7,{children:i.password.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!i.confirm,children:[(0,un.jsx)(P7,{"data-testid":"confirmation",inputName:"confirm",label:"Confirm Password",placeholder:"Confirm your password",required:"Confirmation is required",validate:e=>a("password")===e||"Your passwords do no match"}),i.confirm&&(0,un.jsx)(A7,{children:i.confirm.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",isDisabled:!o||t,isLoading:t,size:"lg",type:"submit",children:"Submit"})]})})})},sie=({account:e,onClose:t})=>{const r=Sne(),n=(()=>{const e=CR();return(t,r,n)=>e(yne({secretKey:t,password:r,label:n}))})(),i=(()=>{const e=$H(),t=Object.values(e)[0];return t?async e=>{await Ic(t,e)}:null})(),o=null!==i,{isLoading:a,handleAsyncAction:s}=k7(),c=cN(),l=a=>s((async()=>{switch(o&&await i(a),e.type){case"secret_key":await n(e.secretKey,a,e.label);break;case"mnemonic":await r({...e,password:a})}c({description:"Account successfully created!",status:"success"}),t()}));return o?(0,un.jsx)(fne,{isLoading:a,onSubmit:l}):(0,un.jsx)(aie,{isLoading:a,onSubmit:l})},cie=({goToStep:e})=>(0,un.jsx)(hne,{icon:(0,un.jsx)(sR,{}),subtitle:"Please read the following before you continue to see your secret Seed Phrase.",title:"Important Notice",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(nF,{spacing:"16px",variant:"onboardingNotice",children:[{content:"Write down your seed phrase and store it in a safe place."},{content:"Make sure there is no one around you or looking over your shoulder."},{content:"Do not copy and paste the Seed Phrase or store it on your device."},{content:"Do not take a screenshot of your Seed Phrase."}].map(((e,t)=>(0,un.jsx)(oF,{fontSize:"16px",fontWeight:600,children:e.content},t)))}),(0,un.jsx)(Dn,{width:"100%",marginTop:"28px",onClick:()=>e({type:Pie.showSeedphrase,account:{type:"mnemonic",mnemonic:(0,uH.OF)(256)}}),size:"lg",children:"I understand"}),(0,un.jsx)(Dn,{width:"100%",marginTop:"16px",onClick:()=>e({type:Pie.restoreMnemonic}),size:"lg",variant:"tertiary",children:"I already have a Seed Phrase"})]})}),lie=function(e,t,r){var n=r||!1,i=To(Ba,za,t&&t.enhancer?t.enhancer:void 0),o=function(e){i.dispatch({type:ba,key:e})},a=function(t,r,o){var a={type:ma,payload:r,err:o,key:t};e.dispatch(a),i.dispatch(a),n&&s.getState().bootstrapped&&(n(),n=!1)},s=Na({},i,{purge:function(){var t=[];return e.dispatch({type:ya,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:pa,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:ga})},persist:function(){e.dispatch({type:va,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}(Xd),uie=()=>{const e=MU({mode:"onBlur"}),{handleSubmit:t,register:r,formState:{errors:n,isValid:i}}=e,{handleAsyncAction:o}=k7(),a=(()=>{const e=Sne();return async(t,r)=>{const n=t.recoveryPhrases,i=t.derivationPaths.map((e=>"m/"===e.slice(0,2)?e.slice(2):e));localStorage.clear();try{for(const[t,o]of n.entries()){const n=await Ic(o,r,"V1");await e({mnemonic:n,password:r,label:Oie,derivationPath:i[t]})}}catch(o){throw new Error("Invalid password.")}await lie.flush()}})();return(0,un.jsx)(hne,{icon:(0,un.jsx)(hR,{}),subtitle:"Select a JSON backup file and enter the password you used to encrypt it.",title:"Restore from Backup",children:(0,un.jsx)(PB,{...e,children:(0,un.jsx)("form",{onSubmit:t((({password:e,file:t})=>o((async()=>{const r=await t[0].text(),n=JSON.parse(r);if(n.recoveryPhrases&&n.derivationPaths)await a(n,e);else{if(!n["persist:accounts"])throw new Error("Invalid backup file.");await(async(e,t)=>{const r=e["persist:accounts"];if(!r)throw new Error("Invalid backup file.");const n=JSON.parse(r),i=JSON.parse(n.seedPhrases);try{for(const e of Object.values(i))await Ic(e,t,"V2")}catch(o){throw new Error("Invalid password.")}lie.pause(),localStorage.clear(),localStorage.setItem("persist:accounts",r),localStorage.setItem("persist:root",e["persist:root"]),lie.persist()})(n,e)}window.location.reload()})))),style:{width:"100%"},children:(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!n.file,children:[(0,un.jsx)(FU,{children:"Upload File"}),(0,un.jsx)(dn,{children:(0,un.jsx)(ZU,{padding:"2px","data-testid":"file-input",...r("file",{required:"File is required"}),accept:".json",type:"file",variant:"unstyled"})}),n.file&&(0,un.jsx)(Qz,{"data-testid":"file",children:n.file.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",children:[(0,un.jsx)(P7,{"data-testid":"password-input",inputName:"password",label:"Your password (if you have one)",required:!1}),n.password&&(0,un.jsx)(Qz,{"data-testid":"password",children:n.password.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",isDisabled:!i,size:"lg",type:"submit",children:"Import Wallet"})]})})})})},die=({closeModal:e,account:t})=>{const r=kne(),n=cN(),{isLoading:i,handleAsyncAction:o}=k7();return(0,un.jsx)(hne,{icon:(0,un.jsx)(SR,{}),subtitle:"Complete the steps to connect.",title:"Connect Ledger",children:(0,un.jsxs)(une,{overflowY:"auto",spacing:"24px",children:[(0,un.jsx)(nF,{spacing:4,children:[{content:"Plug your Ledger into your computer using a USB cable."},{content:"Unlock your Ledger."},{content:"Make sure your Ledger has the latest firmware version."},{content:"Install and open the Tezos Wallet app on your Ledger."},{content:"Click the button below and confirm the action on your Ledger."}].map(((e,t)=>(0,un.jsx)(oF,{children:e.content},t)))}),(0,un.jsx)(Dn,{width:"100%",isLoading:i,onClick:()=>o((()=>x7((async()=>{const i=n({description:"Please open the Tezos app on your Ledger and approve the operation",status:"info"}),o=DH(t.derivationPath,0),{pk:a,pkh:s}=await(async e=>{const t=await KV.create(),r=new nq(t,e,!0),n=await r.publicKey(),i=await r.publicKeyHash();return await t.close(),{pk:n,pkh:i}})(o);r(o,a,s,t.label),n.close(i),n({description:"Account successfully created!",status:"success"}),e()}),6e4)),(e=>"PublicKeyRetrievalError"===e.name?{description:"Request rejected. Please unlock your Ledger and open the Tezos app"}:"InvalidStateError"===e.name?{description:"Request pending. Check your ledger..."}:{description:`Ledger error. ${e.message||e.name}`})),size:"lg",children:"Export Public Key"})]})})};var hie=D7({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),fie=g((function(e,t){const{children:r,placeholder:n,className:i,...o}=e;return(0,un.jsxs)(ln.select,{...o,ref:t,className:v("chakra-select",i),children:[n&&(0,un.jsx)("option",{value:"",children:n}),r]})}));fie.displayName="SelectField";var pie=g(((e,t)=>{var r;const n=Sn("Select",e),{rootProps:i,placeholder:o,icon:a,color:s,height:c,h:l,minH:u,minHeight:d,iconColor:h,iconSize:f,...p}=ht(e),[m,g]=function(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(p,tt),v=WU(g),y={width:"100%",height:"fit-content",position:"relative",color:s},b={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...null==(r=n.field)?void 0:r._focus}};return(0,un.jsxs)(ln.div,{className:"chakra-select__wrapper",__css:y,...m,...i,children:[(0,un.jsx)(fie,{ref:t,height:null!=l?l:c,minH:null!=u?u:d,placeholder:o,...v,__css:b,children:e.children}),(0,un.jsx)(vie,{"data-disabled":_(v.disabled),...(h||s)&&{color:h||s},__css:n.icon,...f&&{fontSize:f},children:a})]})}));pie.displayName="Select";var mie=e=>(0,un.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),gie=ln("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),vie=e=>{const{children:t=(0,un.jsx)(mie,{}),...r}=e,i=(0,n.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,un.jsx)(gie,{...r,className:"chakra-select__icon-wrapper",children:(0,n.isValidElement)(t)?i:null})};vie.displayName="SelectIcon";const yie=({inputName:e,validate:t,inputProps:r,listProps:i})=>{const[o,a]=(0,n.useState)(!0),{register:s,setValue:c,watch:l}=AB(),u=l(e),d=uH.ET.EN.filter((e=>u&&e.startsWith(u))).sort(),h=!o&&d.length>0&&(d.length>1||d[0]!==u);return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(ZU,{zIndex:0,autoComplete:"off","data-testid":"mnemonic-input",onFocus:()=>a(!1),placeholder:"Type here...",...s(e,{required:"Required",validate:t,onChange:()=>a(!1),onBlur:()=>a(!0)}),...r}),h&&(0,un.jsx)(iF,{"data-testid":"suggestions",variant:"suggestions",...i,children:d.map((t=>(0,un.jsx)(oF,{paddingTop:"2px",fontSize:"14px",fontWeight:600,"data-testid":"suggestion",onMouseDown:()=>c(e,t),paddingX:"7px",children:t},t)))})]})},bie=[12,15,18,24],wie=({goToStep:e})=>{const t=MU({mode:"onBlur"}),{handleSubmit:r,setValue:i,trigger:o,formState:{isValid:a}}=t,{handleAsyncAction:s}=k7(),[c,l]=(0,n.useState)(24);return(0,un.jsx)(hne,{icon:(0,un.jsx)(Wj,{width:"24px",height:"24px",stroke:EP.gray[450]}),subtitle:"Please fill in the Seed Phrase in sequence.",title:"Import Seed Phrase",children:(0,un.jsx)(pn,{overflowX:"hidden",children:(0,un.jsx)(PB,{...t,children:(0,un.jsx)("form",{onSubmit:r((t=>s((async()=>{const r=Object.values(t).join(" ").trim();if(!(0,uH._I)(r))throw new Error(`Invalid Mnemonic: "${r}"`);e({type:Pie.nameAccount,account:{type:"mnemonic",mnemonic:r}})})))),style:{width:"100%"},children:(0,un.jsxs)(une,{width:"100%",spacing:4,children:[(0,un.jsx)(pie,{height:"48px",color:EP.gray[450],"data-testid":"select",icon:(0,un.jsx)(hie,{}),onChange:e=>(e=>{const t=Number(e);bie.includes(t)&&(l((e=>(e>t&&(0,Va.range)(t,Math.max(...bie)).forEach((e=>{i(`word${e}`,void 0)})),t))),o())})(e.target.value),value:c,children:bie.reverse().map((e=>(0,un.jsxs)("option",{value:e,children:[e," Words"]},e)))}),(0,un.jsx)(Vre,{gridGap:3,gridTemplateColumns:"repeat(3, 1fr)",paddingBottom:"20px",children:(0,Va.range)(c).map((e=>{const t=`word${e}`;return(0,un.jsxs)(Kre,{display:"flex",height:"38px",padding:"4px",fontSize:"sm",background:EP.gray[800],border:"1px solid",borderColor:EP.gray[500],borderRadius:"4px",children:[(0,un.jsx)(kn,{width:"18px",marginRight:"6px",paddingTop:"6px",color:EP.gray[400],textAlign:"right",size:"sm",children:e+1}),(0,un.jsx)(yie,{inputName:t,inputProps:{onPaste:async e=>{e.preventDefault();(e=>{s((async()=>{const t=e.split(" ");if(!bie.includes(t.length))throw new Error(`the mnemonic must be ${bie.join(", ")} words long`);t.slice(0,c).forEach(((e,t)=>{i(`word${t}`,e)})),o()}))})(await navigator.clipboard.readText())},border:"none",size:"xsmall"},listProps:{width:"126px",marginTop:"38px",marginLeft:"-5px"}})]},e)}))}),(0,un.jsx)(Dn,{width:"100%",isDisabled:!a,size:"lg",type:"submit",children:"Continue"})]})})})})})};var xie=["h","minH","height","minHeight"],_ie=g(((e,t)=>{const r=_n("Textarea",e),{className:n,rows:i,...o}=ht(e),a=WU(o),s=i?function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(r,xie):r;return(0,un.jsx)(ln.textarea,{ref:t,rows:i,...a,className:v("chakra-textarea",n),__css:s})}));_ie.displayName="Textarea";const Sie=({goToStep:e})=>{const{register:t,handleSubmit:r,formState:{errors:n}}=MU({mode:"onBlur"});return(0,un.jsx)(hne,{icon:(0,un.jsx)(Wj,{width:"24px",height:"24px",stroke:EP.gray[450]}),title:"Insert Secret Key",children:(0,un.jsxs)("form",{onSubmit:r((({secretKey:t})=>e({type:Pie.nameAccount,account:{type:"secret_key",secretKey:t.trim()}}))),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{isInvalid:!!n.secretKey,children:[(0,un.jsx)(FU,{children:"Secret Key"}),(0,un.jsx)(_ie,{minHeight:"130px","data-testid":"name",...t("secretKey",{required:"Secret key is required"}),placeholder:"Your secret key"}),n.secretKey&&(0,un.jsx)(Qz,{children:n.secretKey.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",isDisabled:!!n.secretKey,size:"lg",type:"submit",children:"Continue"})]})})};var kie=g((function(e,t){const{columns:r,spacingX:n,spacingY:i,spacing:o,minChildWidth:a,...s}=e,c=vn(),l=a?function(e,t){return uz(e,(e=>{const r=bn("sizes",e,function(e){return"number"===typeof e?`${e}px`:e}(e))(t);return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`}))}(a,c):uz(r,(e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`));return(0,un.jsx)(Vre,{ref:t,gap:o,columnGap:n,rowGap:i,templateColumns:l,...s})}));kie.displayName="SimpleGrid";const Eie=({goToStep:e,account:t})=>(0,un.jsx)(hne,{icon:(0,un.jsx)(Wj,{width:"24px",height:"24px",stroke:EP.gray[450]}),subtitle:"Please record the following 24 words in sequence in order to restore it in the future.",title:"Record Seed Phrase",children:(0,un.jsxs)(une,{children:[(0,un.jsx)(kie,{columns:3,spacing:2,children:t.mnemonic.split(" ").map(((e,t)=>(0,un.jsxs)(dn,{width:"126px",padding:"6px",border:"1px dashed",borderColor:EP.gray[500],borderRadius:"4px",children:[(0,un.jsx)(kn,{width:"18px",marginRight:"10px",paddingTop:"2px",color:EP.gray[450],textAlign:"right",size:"sm",children:t+1}),(0,un.jsx)(sz,{"data-testid":`mnemonic-word-${t}`,size:"sm",children:e})]},t)))}),(0,un.jsx)(Dn,{width:"100%",marginTop:"20px",onClick:r=>{e({type:Pie.verifySeedphrase,account:t})},size:"lg",children:"OK, I've recorded it"})]})}),Aie=({goToStep:e,account:t})=>{const r=t.mnemonic.split(" "),i=MU({mode:"onBlur"}),{handleSubmit:o,formState:{errors:a,isValid:s}}=i,[c]=(0,n.useState)(((e,t)=>(0,Va.shuffle)(e.map(((e,t)=>({value:e,index:t})))).slice(0,t).sort(((e,t)=>e.index-t.index)))(r,5));return(0,un.jsx)(hne,{icon:(0,un.jsx)(Oj,{}),subtitle:"To verify, please type in the word that corresponds to each sequence number.",title:"Verify Seed Phrase",children:(0,un.jsx)(pn,{overflowX:"hidden",overflowY:"auto",width:"100%",children:(0,un.jsx)(PB,{...i,children:(0,un.jsxs)("form",{onSubmit:o((()=>e({type:Pie.nameAccount,account:t}))),children:[c.map(((e,t)=>{const r=`${e.index}`,n=a[r];return(0,un.jsxs)(Zz,{marginBottom:"12px",isInvalid:!!n,children:[(0,un.jsx)(sz,{position:"absolute",zIndex:1,width:"26px",marginTop:"12px",marginLeft:"4px",textAlign:"right","data-testid":"mnemonic-index",children:e.index+1}),(0,un.jsx)(pn,{width:"100%",children:(0,un.jsx)(yie,{inputName:r,inputProps:{paddingLeft:"36px",size:"md"},listProps:{marginTop:"6px"},validate:t=>{if(t!==e.value)return"Word doesn't match"}})}),(null===n||void 0===n?void 0:n.message)&&(0,un.jsx)(A7,{children:n.message})]},t)})),(0,un.jsx)(Dn,{width:"100%",marginTop:"20px",isDisabled:!s,size:"lg",type:"submit",children:"Continue"})]})})})})};let Pie=function(e){return e.eula="eula",e.connectOrCreate="connectOrCreate",e.connectOptions="connectOptions",e.notice="notice",e.restoreMnemonic="restoreMnemonic",e.restoreSecretKey="restoreSecretKey",e.restoreLedger="restoreLedger",e.restoreBackup="restoreBackup",e.showSeedphrase="showSeedphrase",e.verifySeedphrase="verifySeedphrase",e.nameAccount="nameAccount",e.derivationPath="derivationPath",e.masterPassword="masterPassword",e.fakeAccount="fakeAccount",e}({});const Tie=e=>{const{isOpen:t,onOpen:r,onClose:i}=BR(),o=0!==HH().length,a=(e=>{const[t,r]=(0,n.useState)(e),[i,o]=(0,n.useState)([t]),a=1===i.length;return{reset:()=>{r(e),o([e])},goToStep:e=>{r(e),o([...i,e])},currentStep:t,goBack:()=>{if(a)return;i.pop();const e=i[i.length-1];o(i),r(e)},atInitialStep:a,fullHistory:i}})({type:o?Pie.connectOrCreate:Pie.eula}),{currentStep:s,goToStep:c}=a,l=()=>{a.reset(),e&&e(),i()};return{modalElement:(0,un.jsxs)(nI,{autoFocus:!1,closeOnOverlayClick:!1,isCentered:!0,isOpen:t,onClose:l,children:[o&&(0,un.jsx)(vI,{}),(0,un.jsxs)(iz,{children:[!a.atInitialStep&&(0,un.jsx)(B7,{onClick:a.goBack}),(0,un.jsx)(cz,{onClick:l}),(()=>{switch(s.type){case Pie.eula:return(0,un.jsx)(iie,{goToStep:c});case Pie.connectOrCreate:return(0,un.jsx)(Ene,{closeModal:l,goToStep:c});case Pie.connectOptions:return(0,un.jsx)(vne,{goToStep:c});case Pie.notice:return(0,un.jsx)(cie,{goToStep:c});case Pie.restoreMnemonic:return(0,un.jsx)(wie,{goToStep:c});case Pie.restoreBackup:return(0,un.jsx)(uie,{});case Pie.showSeedphrase:return(0,un.jsx)(Eie,{goToStep:c,...s});case Pie.verifySeedphrase:return(0,un.jsx)(Aie,{goToStep:c,...s});case Pie.nameAccount:return(0,un.jsx)(Cie,{goToStep:c,...s});case Pie.derivationPath:return(0,un.jsx)(Pne,{goToStep:c,...s});case Pie.restoreLedger:return(0,un.jsx)(die,{closeModal:l,...s});case Pie.masterPassword:return(0,un.jsx)(sie,{onClose:l,...s});case Pie.fakeAccount:return(0,un.jsx)(oie,{onClose:i});case Pie.restoreSecretKey:return(0,un.jsx)(Sie,{goToStep:c})}})()]})]}),onOpen:r}},Oie="Account",Cie=({goToStep:e,account:t})=>{const r=WH();return(0,un.jsx)(pne,{onSubmit:n=>{const i=n.accountName.trim()||Oie,o=r(i)[0];switch(t.type){case"secret_key":return e({type:Pie.masterPassword,account:{...t,label:o}});case"ledger":return e({type:Pie.derivationPath,account:{...t,label:o}});case"mnemonic":return e({type:Pie.derivationPath,account:{...t,label:i}})}},subtitle:"Please choose a name for your first account. You can edit your account name later."})},jie=e=>{const t=CR(),{openWith:r}=(0,n.useContext)(mM),{mode:i,operations:o,fee:a,data:{threshold:s,signers:c,name:l,sender:u}}=e,{fee:d,operations:h,estimationFailed:f,isLoading:p,form:m,signer:g,onSign:v,handleAsyncAction:y}=dte(a,o,i);return(0,un.jsx)(PB,{...m,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:h.type,signer:h.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"Contract Name"}),(0,un.jsx)(sz,{marginBottom:"24px",padding:"14px",color:EP.gray[50],background:EP.gray[800],borderRadius:"6px","data-testid":"contract-name",children:l}),(0,un.jsxs)(pn,{marginBottom:"24px",children:[(0,un.jsx)(FU,{children:"Owner"}),(0,un.jsx)(h3,{marginBottom:"12px",address:qu(u),"data-testid":"multisig-owner"}),(0,un.jsx)(dn,{justifyContent:"flex-end",children:(0,un.jsx)(M7,{fee:d})})]}),(0,un.jsx)(FU,{children:"Approvers"}),(0,un.jsx)(pn,{"data-testid":"approvers",children:c.map((e=>(0,un.jsx)(h3,{marginBottom:"12px",address:qu(e.val),"data-testid":`approver-${e.val}`},e.val)))}),(0,un.jsxs)(dn,{alignItems:"center",marginTop:"24px",marginBottom:"24px",children:[(0,un.jsx)(kn,{marginRight:"12px",size:"md",children:"Min No. of approvals:"}),(0,un.jsx)(hn,{width:"100px",height:"48px",background:EP.gray[800],borderRadius:"4px",children:(0,un.jsxs)(sz,{textAlign:"center","data-testid":"threshold",children:[s," out of ",c.length]})})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:f,isLoading:p,onSubmit:async e=>y((async()=>{const n=await v(e);if(!n)throw new Error("An error occurred during contract origination");const i=(await n.getOriginatedContractAddresses())[0];t($d.addMultisigLabel({pkh:i,label:l})),r((0,un.jsx)(j7,{hash:n.opHash}))})),signer:g,text:U7(h.type,i)})})]})})})},Rie=[{prim:"storage",args:[{prim:"pair",args:[{prim:"address",annots:["%owner"]},{prim:"pair",args:[{prim:"set",args:[{prim:"address"}],annots:["%signers"]},{prim:"pair",args:[{prim:"nat",annots:["%threshold"]},{prim:"pair",args:[{prim:"nat",annots:["%last_op_id"]},{prim:"pair",args:[{prim:"big_map",args:[{prim:"nat"},{prim:"pair",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}],annots:["%actions"]},{prim:"set",args:[{prim:"address"}],annots:["%approvals"]}]}],annots:["%pending_ops"]},{prim:"big_map",args:[{prim:"string"},{prim:"bytes"}],annots:["%metadata"]}]}]}]}]}]}]},{prim:"parameter",args:[{prim:"or",args:[{prim:"or",args:[{prim:"or",args:[{prim:"bytes",annots:["%set_metadata_uri"]},{prim:"unit",annots:["%default"]}]},{prim:"or",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}],annots:["%propose"]},{prim:"nat",annots:["%approve"]}]}]},{prim:"nat",annots:["%execute"]}]}]},{prim:"code",args:[[{prim:"NIL",args:[{prim:"operation"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"UNPAIR"},{prim:"DIP",args:[{int:"1"},[{prim:"UNPAIR",args:[{int:"6"}]}]]},{prim:"IF_LEFT",args:[[{prim:"IF_LEFT",args:[[{prim:"IF_LEFT",args:[[{prim:"DUP",args:[{int:"2"}]},{prim:"SENDER"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID_CALLER"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"SOME"},{prim:"PUSH",args:[{prim:"string"},{string:""}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}],[{prim:"DROP",args:[{int:"1"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"SIZE"},{prim:"COMPARE"},{prim:"GE"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"FUNDING BLOCKED SINCE PARAMS ARE INVALID"}]},{prim:"FAILWITH"}],[]]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}],[{prim:"IF_LEFT",args:[[{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"3"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"nat"},{int:"1"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"ADD"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"4"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"4"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"MEM"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"KEY_EXISTS"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[{prim:"DUP",args:[{int:"6"}]},{prim:"EMPTY_SET",args:[{prim:"address"}]},{prim:"PUSH",args:[{prim:"bool"},{prim:"True"}]},{prim:"SENDER"},{prim:"UPDATE"},{prim:"DUP",args:[{int:"3"}]},{prim:"PAIR"},{prim:"SOME"},{prim:"DUP",args:[{int:"7"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"5"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"5"}]}]]},{prim:"DROP",args:[{int:"1"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}],[{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID OP ID"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"4"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP"},{prim:"CDR"},{prim:"SENDER"},{prim:"MEM"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ALREADY APPROVED"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"8"}]},{prim:"DUP",args:[{int:"4"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"UNPAIR"},{prim:"SWAP"},{prim:"DROP",args:[{int:"1"}]},{prim:"DUP",args:[{int:"9"}]},{prim:"DUP",args:[{int:"5"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"CDR"},{prim:"PUSH",args:[{prim:"bool"},{prim:"True"}]},{prim:"SENDER"},{prim:"UPDATE"},{prim:"SWAP"},{prim:"PAIR"},{prim:"SOME"},{prim:"DUP",args:[{int:"4"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"2"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}]]}],[{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID OP ID"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"4"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"5"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"CDR"},{prim:"SIZE"},{prim:"COMPARE"},{prim:"GE"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"NOT YET APPROVED"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"CAR"},{prim:"PUSH",args:[{prim:"unit"},{prim:"Unit"}]},{prim:"EXEC"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"8"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"8"}]},{prim:"DUP",args:[{int:"7"}]},{prim:"NONE",args:[{prim:"pair",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}]},{prim:"set",args:[{prim:"address"}]}]}]},{prim:"DUP",args:[{int:"4"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"2"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}]]}],Iie=e=>{return{type:"contract_origination",sender:qu(e.sender),code:Rie,storage:(t=e.sender,r=e.signers.map((e=>e.val)),n=String(e.threshold),{owner:t,signers:r,threshold:n,last_op_id:"0",pending_ops:[],metadata:[]})};var t,r,n},Mie=e=>{const t=MU({mode:"onBlur",defaultValues:{signers:[{val:""}],threshold:1,...ute(e)}}),{formState:{errors:r,isValid:i},control:o,register:a,handleSubmit:s,getValues:c,watch:l}=t,u=function(e){const t=AB(),{control:r=t.control,name:i,keyName:o="id",shouldUnregister:a}=e,[s,c]=n.useState(r._getFieldArray(i)),l=n.useRef(r._getFieldArray(i).map(UB)),u=n.useRef(s),d=n.useRef(i),h=n.useRef(!1);d.current=i,u.current=s,r._names.array.add(i),e.rules&&r.register(i,e.rules),RB({next:({values:e,name:t})=>{if(t===d.current||!t){const t=pB(e,d.current);Array.isArray(t)&&(c(t),l.current=t.map(UB))}},subject:r._subjects.array});const f=n.useCallback((e=>{h.current=!0,r._updateFieldArray(i,e)}),[r,i]);return n.useEffect((()=>{if(r._state.action=!1,HB(i,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!$B(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([i]).then((e=>{const t=pB(e.errors,i),n=pB(r._formState.errors,i);(n?!t&&n.type||t&&(n.type!==t.type||n.message!==t.message):t&&t.type)&&(t?DB(r._formState.errors,i,t):hU(r._formState.errors,i),r._subjects.state.next({errors:r._formState.errors}))}));else{const e=pB(r._fields,i);e&&e._f&&iU(e,r._formValues,r._options.criteriaMode===vB.all,r._options.shouldUseNativeValidation,!0).then((e=>!OB(e)&&r._subjects.state.next({errors:VB(r._formState.errors,e,i)})))}r._subjects.values.next({name:i,values:{...r._formValues}}),r._names.focus&&BB(r._fields,(e=>!!e&&e.startsWith(r._names.focus||""))),r._names.focus="",r._updateValid(),h.current=!1}),[s,i,r]),n.useEffect((()=>(!pB(r._formValues,i)&&r._updateFieldArray(i),()=>{(r._options.shouldUnregister||a)&&r.unregister(i)})),[i,r,o,a]),{swap:n.useCallback(((e,t)=>{const n=r._getFieldArray(i);dU(n,e,t),dU(l.current,e,t),f(n),c(n),r._updateFieldArray(i,n,dU,{argA:e,argB:t},!1)}),[f,i,r]),move:n.useCallback(((e,t)=>{const n=r._getFieldArray(i);cU(n,e,t),cU(l.current,e,t),f(n),c(n),r._updateFieldArray(i,n,cU,{argA:e,argB:t},!1)}),[f,i,r]),prepend:n.useCallback(((e,t)=>{const n=jB(dB(e)),o=lU(r._getFieldArray(i),n);r._names.focus=FB(i,0,t),l.current=lU(l.current,n.map(UB)),f(o),c(o),r._updateFieldArray(i,o,lU,{argA:aU(e)})}),[f,i,r]),append:n.useCallback(((e,t)=>{const n=jB(dB(e)),o=oU(r._getFieldArray(i),n);r._names.focus=FB(i,o.length-1,t),l.current=oU(l.current,n.map(UB)),f(o),c(o),r._updateFieldArray(i,o,oU,{argA:aU(e)})}),[f,i,r]),remove:n.useCallback((e=>{const t=uU(r._getFieldArray(i),e);l.current=uU(l.current,e),f(t),c(t),r._updateFieldArray(i,t,uU,{argA:e})}),[f,i,r]),insert:n.useCallback(((e,t,n)=>{const o=jB(dB(t)),a=sU(r._getFieldArray(i),e,o);r._names.focus=FB(i,e,n),l.current=sU(l.current,e,o.map(UB)),f(a),c(a),r._updateFieldArray(i,a,sU,{argA:e,argB:aU(t)})}),[f,i,r]),update:n.useCallback(((e,t)=>{const n=dB(t),o=fU(r._getFieldArray(i),e,n);l.current=[...o].map(((t,r)=>t&&r!==e?l.current[r]:UB())),f(o),c([...o]),r._updateFieldArray(i,o,fU,{argA:e,argB:n},!0,!1)}),[f,i,r]),replace:n.useCallback((e=>{const t=jB(dB(e));l.current=t.map(UB),f([...t]),c([...t]),r._updateFieldArray(i,[...t],(e=>e),{},!0,!1)}),[f,i,r]),fields:n.useMemo((()=>s.map(((e,t)=>({...e,[o]:l.current[t]||UB()})))),[s,o])}}({control:o,name:"signers",rules:{minLength:1}}),d=l("signers").length,h=vte({SignPage:jie,signPageExtraData:l(),FormPage:Mie,defaultFormPageProps:{},toOperation:Iie}),{onFormSubmitActionHandlers:[f],isLoading:p}=bte([h]),m=KH();return(0,un.jsx)(PB,{...t,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:s(f),children:[(0,un.jsx)(N7,{subTitle:"Name your contract, select an owner and the signers of the contract.",title:"Create Multisig"}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!r.name,children:[(0,un.jsx)(FU,{children:"Name the Contract"}),(0,un.jsx)(KU,{children:(0,un.jsx)(ZU,{type:"text",...a("name",{required:"Name is required",validate:e=>{if(!m(e))return"Name must be unique across all accounts and contacts"}}),placeholder:"The name is only stored locally"})}),r.name&&(0,un.jsx)(A7,{"data-testid":"name-error",children:r.name.message})]}),(0,un.jsxs)(Zz,{isInvalid:!!r.sender,marginY:"24px",children:[(0,un.jsx)(y3,{allowUnknown:!1,inputName:"sender",label:"Select Owner"}),r.sender&&(0,un.jsx)(A7,{"data-testid":"owner-error",children:r.sender.message})]}),u.fields.map(((e,t)=>{var n;const i=r.signers&&r.signers[t],o=`${0===t?"Select ":""}${t+1} signer`,a=d>1?"short":"default",s="short"===a?"368px":"100%";return(0,un.jsxs)(Zz,{display:"inline-block",width:s,marginBottom:"8px","data-testid":`signer-input-${t}`,isInvalid:!!i,children:[(0,un.jsx)(y3,{allowUnknown:!0,inputName:`signers.${t}.val`,label:o,size:a,style:{width:s},validate:e=>{if(!Gu(e))return"Signer must be valid TZ address";const t=c("signers").map((e=>e.val));return t.length>new Set(t).size?"Duplicate signer":void 0}}),d>1&&(0,un.jsx)(S3,{position:"absolute",height:"24px",marginTop:"-36px",marginLeft:"374px",background:EP.gray[500],"aria-label":"Remove","data-testid":`remove-signer-${t}`,icon:(0,un.jsx)(xR,{width:"12px",height:"14px",stroke:EP.gray[300]}),isRound:!0,onClick:()=>u.remove(t),size:"xs",variant:"tertiary"}),i&&(0,un.jsx)(A7,{"data-testid":`signer-${t}-error`,children:null===(n=i.val)||void 0===n?void 0:n.message})]},e.id)})),(0,un.jsx)(Dn,{paddingLeft:0,onClick:()=>u.append({val:""}),variant:"specialCTA",children:"+ Add Signer"}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!r.threshold,children:[(0,un.jsxs)(FU,{display:"inline",children:["Min No. of approvals:",(0,un.jsx)(KU,{display:"inline",marginLeft:"10px",children:(0,un.jsx)(ZU,{width:"60px",color:"white","data-testid":"threshold-input",step:1,type:"number",...a("threshold",{required:"No. of approvals is required",max:{value:d,message:`Max no. of approvals is ${d}`},min:{value:1,message:"Min no. of approvals is 1"}})})})]}),(0,un.jsxs)(sz,{display:"inline","data-testid":"max-signers",children:["out of ",d]}),r.threshold&&(0,un.jsx)(A7,{"data-testid":"threshold-error",children:r.threshold.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",isDisabled:!i,isLoading:p,size:"lg",type:"submit",children:"Review"})})]})})})},Lie=()=>{const{onOpen:e,modalElement:t}=Tie();return(0,un.jsxs)(dn,{flexDirection:"row-reverse",marginTop:"12px",marginBottom:"16px",children:[(0,un.jsxs)(Dn,{paddingRight:"0",onClick:e,variant:"CTAWithIcon",children:[(0,un.jsx)(fj,{stroke:"currentcolor"}),(0,un.jsx)(sz,{marginLeft:"4px",size:"sm",children:"Add Account"})]}),t]})},Nie=({groupLabel:e,accounts:t,balances:r})=>{const i=t[0],o="multisig"===i.type,a="mnemonic"===i.type,{openWith:s,onClose:c}=(0,n.useContext)(mM),l=(()=>{const e=CR();return t=>{e(xne({fingerPrint:t}))}})(),u=(()=>{const e=CR();return t=>{e(_ne({accountType:t}))}})(),d=HH().length===t.length;let h,f="Remove All";const p=Die(i);d?(h="Removing all your accounts will off-board you from Umami. This will remove or reset all customised settings to their defaults. Personal data (including saved contacts, password and accounts) won't be affected.",f="Remove & Off-board"):h=a?`Are you sure you want to remove all accounts derived from ${p}?`:`Are you sure you want to remove all of your ${p}?`;return(0,un.jsxs)(pn,{"data-testid":`account-group-${e}`,children:[(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsx)(kn,{marginBottom:4,"data-testid":"account-group-title",size:"md",children:e}),!o&&(0,un.jsx)(sne,{onCreate:a?()=>{if(!a)throw new Error("Can't derive a non mnemonic account!");s((0,un.jsx)(Bie,{fingerprint:i.seedFingerPrint,onDone:c}))}:void 0,onRemove:()=>{s((0,un.jsx)(Are,{buttonLabel:f,description:h,onSubmit:()=>{a?l(i.seedFingerPrint):u(i.type),c()},title:"Remove All Accounts"}))}})]}),t.map((e=>(0,un.jsx)(pn,{marginBottom:"16px",children:(0,un.jsx)(Ere,{account:e,balance:r[e.address.pkh]})},e.address.pkh)))]})},Die=e=>{switch(e.type){case"mnemonic":return`Seedphrase ${e.seedFingerPrint}`;case"social":return"Social Accounts";case"ledger":return"Ledger Accounts";case"secret_key":return"Secret Key Accounts";case"multisig":return"Multisig Accounts"}},zie=()=>{const e=qH(),t=jR((e=>e.assets.balances.mutez)),r=(0,Va.groupBy)(e,Die),{openWith:i}=(0,n.useContext)(mM),o=Object.entries(r).map((([e,r])=>(0,un.jsx)(Nie,{accounts:r,balances:t,groupLabel:e},e)));return(0,un.jsx)(un.Fragment,{children:(0,un.jsx)(pn,{height:"100%",marginRight:0,children:(0,un.jsxs)(gne,{children:[(0,Va.compact)(o),(0,un.jsx)(Dn,{width:"100%",height:"90px",background:EP.black,border:"1px dashed",borderColor:EP.gray[500],onClick:()=>i((0,un.jsx)(Mie,{})),variant:"outline",children:(0,un.jsxs)(sz,{display:"block",width:"100%",margin:5,color:EP.gray[400],textAlign:"center",children:[(0,un.jsx)(Wj,{marginRight:1,stroke:EP.gray[450]}),"Create New Multisig"]})})]})})})},Bie=e=>{const{isLoading:t,handleAsyncAction:r}=k7(),n=cN(),i=(()=>{const e=$H(),t=HH(),r=WH(),n=pi();return async({fingerPrint:i,password:o,label:a})=>{const s=e[i];if(!s)throw new Error(`No seedphrase found with fingerprint: ${i}`);const c=await Ic(s,o),l=t.filter((e=>"mnemonic"===e.type&&e.seedFingerPrint===i)),u=l.length,d=l[0].derivationPathPattern,h=DH(d,u),{pk:f,pkh:p}=await B2(c,h),m=r(a,1)[0],g=zH(f,p,h,d,i,m);n(Nc.actions.addAccount(g))}})();return(0,un.jsxs)(iz,{children:[(0,un.jsx)(cz,{}),(0,un.jsx)(mne,{isLoading:t,onSubmit:({name:t,password:o})=>r((async()=>{await i({fingerPrint:e.fingerprint,password:o,label:t.trim()||Oie}),e.onDone(),n({description:`New account created! Successfully derived account from ${e.fingerprint}`})}),{title:"Failed to derive new account"}),subtitle:`Name the new account derived from ${e.fingerprint}`})]})},Uie=({onClose:e})=>(0,un.jsx)(dn,{justifyContent:"flex-end",paddingBottom:"30px",cursor:"pointer",children:(0,un.jsx)(Fie,{onClose:e})}),Fie=({onClose:e})=>(0,un.jsxs)(Dn,{onClick:e,variant:"CTAWithIcon",children:[(0,un.jsx)(Ij,{stroke:"currentcolor"}),(0,un.jsx)(sz,{marginLeft:"4px",children:"Close"})]});function $ie(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==n}function Hie(e={}){const{ref:t,isDisabled:r,isFocusable:i,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:c,onClick:l,onKeyDown:u,onKeyUp:d,tabIndex:h,onMouseOver:f,onMouseLeave:p,...m}=e,[g,v]=(0,n.useState)(!0),[y,b]=(0,n.useState)(!1),w=function(){const e=(0,n.useRef)(new Map),t=e.current,r=(0,n.useCallback)(((t,r,n,i)=>{e.current.set(n,{type:r,el:t,options:i}),t.addEventListener(r,n,i)}),[]),i=(0,n.useCallback)(((t,r,n,i)=>{t.removeEventListener(r,n,i),e.current.delete(n)}),[]);return(0,n.useEffect)((()=>()=>{t.forEach(((e,t)=>{i(e.el,e.type,t,e.options)}))}),[i,t]),{add:r,remove:i}}(),x=g?h:h||0,S=r&&!i,k=(0,n.useCallback)((e=>{if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)}),[r,l]),E=(0,n.useCallback)((e=>{y&&$ie(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),w.remove(document,"keyup",E,!1))}),[y,w]),A=(0,n.useCallback)((e=>{if(null==u||u(e),r||e.defaultPrevented||e.metaKey)return;if(!$ie(e.nativeEvent)||g)return;const t=o&&"Enter"===e.key;if(a&&" "===e.key&&(e.preventDefault(),b(!0)),t){e.preventDefault();e.currentTarget.click()}w.add(document,"keyup",E,!1)}),[r,g,u,o,a,w,E]),P=(0,n.useCallback)((e=>{if(null==d||d(e),r||e.defaultPrevented||e.metaKey)return;if(!$ie(e.nativeEvent)||g)return;if(a&&" "===e.key){e.preventDefault(),b(!1);e.currentTarget.click()}}),[a,g,r,d]),T=(0,n.useCallback)((e=>{0===e.button&&(b(!1),w.remove(document,"mouseup",T,!1))}),[w]),O=(0,n.useCallback)((e=>{if(0!==e.button)return;if(r)return e.stopPropagation(),void e.preventDefault();g||b(!0);e.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",T,!1),null==s||s(e)}),[r,g,s,w,T]),C=(0,n.useCallback)((e=>{0===e.button&&(g||b(!1),null==c||c(e))}),[c,g]),j=(0,n.useCallback)((e=>{r?e.preventDefault():null==f||f(e)}),[r,f]),R=(0,n.useCallback)((e=>{y&&(e.preventDefault(),b(!1)),null==p||p(e)}),[y,p]),I=Ln(t,(e=>{e&&"BUTTON"!==e.tagName&&v(!1)}));return g?{...m,ref:I,type:"button","aria-disabled":S?void 0:r,disabled:S,onClick:k,onMouseDown:s,onMouseUp:c,onKeyUp:d,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:I,role:"button","data-active":_(y),"aria-disabled":r?"true":void 0,tabIndex:S?void 0:x,onClick:k,onMouseDown:O,onMouseUp:C,onKeyUp:P,onKeyDown:A,onMouseOver:j,onMouseLeave:R}}var[Vie,qie,Kie,Wie]=_z();var[Gie,Zie]=En({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});var[Yie,Xie]=En({});function Jie(e,t){return`${e}--tab-${t}`}function Qie(e,t){return`${e}--tabpanel-${t}`}var[eoe,toe]=En({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),roe=g((function(e,t){const r=Sn("Tabs",e),{children:i,className:o,...a}=ht(e),{htmlProps:s,descendants:c,...l}=function(e){var t;const{defaultIndex:r,onChange:i,index:o,isManual:a,isLazy:s,lazyBehavior:c="unmount",orientation:l="horizontal",direction:u="ltr",...d}=e,[h,f]=(0,n.useState)(null!=r?r:0),[p,m]=jz({defaultValue:null!=r?r:0,value:o,onChange:i});(0,n.useEffect)((()=>{null!=o&&f(o)}),[o]);const g=Kie(),v=(0,n.useId)();return{id:`tabs-${null!=(t=e.id)?t:v}`,selectedIndex:p,focusedIndex:h,setSelectedIndex:m,setFocusedIndex:f,isManual:a,isLazy:s,lazyBehavior:c,orientation:l,descendants:g,direction:u,htmlProps:d}}(a),u=(0,n.useMemo)((()=>l),[l]),{isFitted:d,...h}=s,f={position:"relative",...r.root};return(0,un.jsx)(Vie,{value:c,children:(0,un.jsx)(Gie,{value:u,children:(0,un.jsx)(eoe,{value:r,children:(0,un.jsx)(ln.div,{className:v("chakra-tabs",o),ref:t,...h,__css:f,children:i})})})})}));roe.displayName="Tabs";var noe=g((function(e,t){const r=function(e){const{focusedIndex:t,orientation:r,direction:i}=Zie(),o=qie(),a=(0,n.useCallback)((e=>{const n=()=>{var e;const r=o.nextEnabled(t);r&&(null==(e=r.node)||e.focus())},a=()=>{var e;const r=o.prevEnabled(t);r&&(null==(e=r.node)||e.focus())},s="horizontal"===r,c="vertical"===r,l=e.key,u={["ltr"===i?"ArrowLeft":"ArrowRight"]:()=>s&&a(),["ltr"===i?"ArrowRight":"ArrowLeft"]:()=>s&&n(),ArrowDown:()=>c&&n(),ArrowUp:()=>c&&a(),Home:()=>{var e;const t=o.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;const t=o.lastEnabled();t&&(null==(e=t.node)||e.focus())}},d=u[l];d&&(e.preventDefault(),d(e))}),[o,t,r,i]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:k(e.onKeyDown,a)}}({...e,ref:t}),i={display:"flex",...toe().tablist};return(0,un.jsx)(ln.div,{...r,className:v("chakra-tabs__tablist",e.className),__css:i})}));noe.displayName="TabList";var ioe=g((function(e,t){const r=function(e){const t=Zie(),{id:r,selectedIndex:i}=t,o=HU(e.children).map(((e,t)=>(0,n.createElement)(Yie,{key:t,value:{isSelected:t===i,id:Qie(r,t),tabId:Jie(r,t),selectedIndex:i}},e)));return{...e,children:o}}(e),i=toe();return(0,un.jsx)(ln.div,{...r,width:"100%",ref:t,className:v("chakra-tabs__tab-panels",e.className),__css:i.tabpanels})}));ioe.displayName="TabPanels";var ooe=g((function(e,t){const r=function(e){const{children:t,...r}=e,{isLazy:i,lazyBehavior:o}=Zie(),{isSelected:a,id:s,tabId:c}=Xie(),l=(0,n.useRef)(!1);return a&&(l.current=!0),{tabIndex:0,...r,children:Uee({wasSelected:l.current,isSelected:a,enabled:i,mode:o})?t:null,role:"tabpanel","aria-labelledby":c,hidden:!a,id:s}}({...e,ref:t}),i=toe();return(0,un.jsx)(ln.div,{outline:"0",...r,className:v("chakra-tabs__tab-panel",e.className),__css:i.tabpanel})}));function aoe(e){const t=Tte(e);return t.setHours(0,0,0,0),t}ooe.displayName="TabPanel";function soe(e,t){const r=aoe(e),n=aoe(t),i=r.getTime()-Yte(r),o=n.getTime()-Yte(n);return Math.round((i-o)/Ate)}function coe(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function loe(e){if(!coe(e)&&"number"!==typeof e)return!1;const t=Tte(e);return!isNaN(Number(t))}function uoe(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function doe(e){const t=Tte(e),r=uoe(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function hoe(e){const t=Tte(e);return soe(t,doe(t))+1}function foe(e,t){const r=Zte(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Tte(e),o=i.getDay(),a=(o=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function goe(e){const t=moe(e),r=uoe(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),poe(r)}function voe(e){const t=Tte(e),r=poe(t).getTime()-goe(t).getTime();return Math.round(r/Ete)+1}function yoe(e,t){const r=Tte(e),n=r.getFullYear(),i=Zte(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=uoe(e,0);a.setFullYear(n+1,0,o),a.setHours(0,0,0,0);const s=foe(a,t),c=uoe(e,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const l=foe(c,t);return r.getTime()>=s.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}function boe(e,t){const r=Zte(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=yoe(e,t),o=uoe(e,0);o.setFullYear(i,0,n),o.setHours(0,0,0,0);return foe(o,t)}function woe(e,t){const r=Tte(e),n=foe(r,t).getTime()-boe(r,t).getTime();return Math.round(n/Ete)+1}function xoe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const _oe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return xoe("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):xoe(r+1,2)},d:(e,t)=>xoe(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>xoe(e.getHours()%12||12,t.length),H:(e,t)=>xoe(e.getHours(),t.length),m:(e,t)=>xoe(e.getMinutes(),t.length),s:(e,t)=>xoe(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return xoe(Math.floor(n*Math.pow(10,r-3)),t.length)}},Soe="midnight",koe="noon",Eoe="morning",Aoe="afternoon",Poe="evening",Toe="night",Ooe={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return _oe.y(e,t)},Y:function(e,t,r,n){const i=yoe(e,n),o=i>0?i:1-i;if("YY"===t){return xoe(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):xoe(o,t.length)},R:function(e,t){return xoe(moe(e),t.length)},u:function(e,t){return xoe(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return xoe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return xoe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return _oe.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return xoe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=woe(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):xoe(i,t.length)},I:function(e,t,r){const n=voe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):xoe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):_oe.d(e,t)},D:function(e,t,r){const n=hoe(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):xoe(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return xoe(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return xoe(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return xoe(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(i=12===n?koe:0===n?Soe:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(i=n>=17?Poe:n>=12?Aoe:n>=4?Eoe:Toe,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return _oe.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):_oe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):xoe(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):xoe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):_oe.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):_oe.s(e,t)},S:function(e,t){return _oe.S(e,t)},X:function(e,t,r,n){const i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return joe(i);case"XXXX":case"XX":return Roe(i);default:return Roe(i,":")}},x:function(e,t,r,n){const i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return joe(i);case"xxxx":case"xx":return Roe(i);default:return Roe(i,":")}},O:function(e,t,r,n){const i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Coe(i,":");default:return"GMT"+Roe(i,":")}},z:function(e,t,r,n){const i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Coe(i,":");default:return"GMT"+Roe(i,":")}},t:function(e,t,r,n){const i=n._originalDate||e;return xoe(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,r,n){return xoe((n._originalDate||e).getTime(),t.length)}};function Coe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+xoe(o,2)}function joe(e,t){if(e%60===0){return(e>0?"-":"+")+xoe(Math.abs(e)/60,2)}return Roe(e,t)}function Roe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+xoe(Math.floor(n/60),2)+t+xoe(n%60,2)}const Ioe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Moe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Loe={p:Moe,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Ioe(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",Ioe(n,t)).replace("{{time}}",Moe(i,t))}},Noe=/^D+$/,Doe=/^Y+$/,zoe=["D","DD","YY","YYYY"];function Boe(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),zoe.includes(e))throw new RangeError(n)}const Uoe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Foe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$oe=/^'([^]*?)'?$/,Hoe=/''/g,Voe=/[a-zA-Z]/;function qoe(e,t,r){const n=Zte(),i=r?.locale??n.locale??Wte,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Tte(e);if(!loe(s))throw new RangeError("Invalid time value");const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i,_originalDate:s},l=t.match(Foe).map((function(e){const t=e[0];if("p"===t||"P"===t){return(0,Loe[t])(e,i.formatLong)}return e})).join("").match(Uoe).map((function(n){if("''"===n)return"'";const o=n[0];if("'"===o)return function(e){const t=e.match($oe);if(!t)return e;return t[1].replace(Hoe,"'")}(n);const a=Ooe[o];if(a)return!r?.useAdditionalWeekYearTokens&&function(e){return Doe.test(e)}(n)&&Boe(n,t,String(e)),!r?.useAdditionalDayOfYearTokens&&function(e){return Noe.test(e)}(n)&&Boe(n,t,String(e)),a(s,n,i.localize,c);if(o.match(Voe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("");return l}function Koe(e,t,r){const n=Tte(e),i=Tte(t),o=Zte(),a=r?.locale??o.locale??Wte,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=soe(n,i);if(isNaN(c))throw new RangeError("Invalid time value");let l;l=c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other";return qoe(n,a.formatRelative(l,n,i,{locale:a,weekStartsOn:s}),{locale:a,weekStartsOn:s})}const Woe=({title:e,children:t,small:r=!1})=>{const n=r?"md":"3xl";return(0,un.jsx)(dn,{alignItems:"center",justifyContent:"center",width:"100%",height:"100%",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(kn,{padding:"42px",size:n,children:e}),(0,un.jsx)(hn,{children:t})]})})},Goe=({small:e})=>(0,un.jsx)(Woe,{small:e,title:"No NFTs found",children:(0,un.jsx)(Ure,{href:"https://objkt.com",children:(0,un.jsx)(Dn,{size:e?"md":"lg",children:"Buy your first NFT"})})}),Zoe=({small:e})=>(0,un.jsx)(Woe,{small:e,title:"No operations found"}),Yoe=({small:e,onDelegate:t})=>(0,un.jsx)(Woe,{small:e,title:"Currently not delegating",children:(0,un.jsx)(Dn,{onClick:t,size:e?"md":"lg",children:"Start delegating"})}),Xoe=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=dte(n,r,t),h=o.operations[0].recipient;return(0,un.jsx)(PB,{...c,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:o.type,signer:o.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:l.address}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(M7,{fee:i})})}),(0,un.jsx)(FU,{children:"To"}),(0,un.jsx)(h3,{address:h}),(0,un.jsx)(ate,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:U7(o.type,t)})})]})})})},Joe=e=>{var t;const r=null===(t=e.form)||void 0===t?void 0:t.baker,n=vte({SignPage:Xoe,signPageExtraData:void 0,FormPage:Joe,defaultFormPageProps:e,toOperation:Qoe}),i=yte(Qoe),{onFormSubmitActionHandlers:[o,a],isLoading:s}=bte([n,i]),c=MU({mode:"onBlur",defaultValues:ute(e)}),{formState:{isValid:l,errors:u},handleSubmit:d}=c;return(0,un.jsx)(PB,{...c,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsxs)(L7,{children:[(0,un.jsx)(sz,{fontWeight:"600",size:"2xl",children:r?"Change Baker":"Delegate"}),(0,un.jsx)(cz,{})]}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!u.sender,children:[(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!!e.sender,label:"From"}),u.sender&&(0,un.jsx)(A7,{"data-testid":"from-error",children:u.sender.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px","data-testid":"baker",isInvalid:!!u.baker,children:[(0,un.jsx)(w3,{allowUnknown:!0,inputName:"baker",label:"Baker"}),u.baker&&(0,un.jsx)(A7,{children:u.baker.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:s,isValid:l,onAddToBatch:d(a),onSingleSubmit:d(o)})})]})})})},Qoe=e=>({type:"delegation",sender:qu(e.sender),recipient:Yu(e.baker)}),eae=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=dte(n,r,t);return(0,un.jsx)(PB,{...c,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:o.type,signer:o.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:l.address}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",paddingX:"4px",children:(0,un.jsx)(M7,{fee:i})}),(0,un.jsx)(ate,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:U7(o.type,t)})})]})})})},tae=e=>{var t;const{sender:r}=e,n=null===(t=e.form)||void 0===t?void 0:t.baker,i=vte({SignPage:eae,signPageExtraData:void 0,FormPage:tae,defaultFormPageProps:{sender:r},toOperation:rae}),o=yte(rae),{onFormSubmitActionHandlers:[a,s],isLoading:c}=bte([i,o]),l=MU({mode:"onBlur",defaultValues:ute({sender:r})}),{handleSubmit:u}=l;return(0,un.jsx)(PB,{...l,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(N7,{subTitle:"Select preview to end delegation or insert this transaction into a Batch.",title:"End delegation"}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(Zz,{children:(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"})}),(0,un.jsx)(FU,{marginTop:"24px",children:"Baker"}),n&&(0,un.jsx)(h3,{address:qu(n)})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:c,isValid:!0,onAddToBatch:u(s),onSingleSubmit:u(a)})})]})})})},rae=e=>({type:"undelegation",sender:qu(e.sender)}),nae=({label:e,value:t,...r})=>(0,un.jsxs)(dn,{alignItems:"center",height:"50px",padding:"16px","data-testid":e,...r,children:[(0,un.jsx)(pn,{flex:1,children:(0,un.jsx)(kn,{color:EP.gray[400],size:"sm",children:e})}),(0,un.jsx)(pn,{flex:1,children:"string"===typeof t?(0,un.jsx)(sz,{size:"sm",children:t}):t})]}),iae=({delegation:e,account:t})=>{const{openWith:r}=(0,n.useContext)(mM),i=ZH(),o=(()=>{const e=i3();return t=>{const r=e(t.sender),n=new Date;return{initialBalance:Z2(t.amount),currentBalance:r&&Z2(r),duration:`Since ${Koe(new Date(t.timestamp),n)}`}}})();if(!e)return(0,un.jsx)(Yoe,{onDelegate:()=>{r((0,un.jsx)(Joe,{sender:t}))},small:!0});const{currentBalance:a,duration:s,initialBalance:c}=o(e),{sender:l,delegate:{address:u}}=e,d=i(l);return(0,un.jsxs)(pn,{children:[(0,un.jsx)(nae,{borderBottom:`1px solid ${EP.gray[700]}`,borderTopRadius:"8px",_odd:{bg:EP.gray[800]},label:"Initial Balance:",value:c}),a&&(0,un.jsx)(nae,{_odd:{bg:EP.gray[800]},label:"Current Balance:",value:a}),(0,un.jsx)(nae,{borderBottom:`1px solid ${EP.gray[700]}`,_odd:{bg:EP.gray[800]},label:"Duration:",value:s}),(0,un.jsx)(nae,{borderBottomRadius:"8px",_odd:{bg:EP.gray[800]},label:"Baker:",value:(0,un.jsx)(mre,{address:qu(e.delegate.address)})}),(0,un.jsxs)(dn,{marginTop:"24px",children:[(0,un.jsx)(Dn,{flex:1,marginRight:"16px",onClick:()=>r((0,un.jsx)(tae,{form:{sender:l,baker:u},sender:d})),variant:"warning",children:"End Delegation"}),(0,un.jsx)(Dn,{flex:1,onClick:()=>{r((0,un.jsx)(Joe,{form:{sender:l,baker:u},sender:d}))},variant:"tertiary",children:"Change Baker"})]})]})};function oae(e){return Qj({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"17",x2:"17",y2:"7"}},{tag:"polyline",attr:{points:"7 7 17 7 17 17"}}]})(e)}const aae=({operation:e})=>{switch(e.type){case"delegation":return(0,un.jsxs)(pn,{margin:1,paddingLeft:5,"data-testid":"decoded-item-delegate",marginY:6,children:["Delegate to ",(0,un.jsx)(mre,{address:e.recipient})]});case"undelegation":return(0,un.jsx)(pn,{margin:1,paddingLeft:5,"data-testid":"decoded-item-undelegate",marginY:6,children:"End Delegation"});case"tez":case"fa1.2":case"fa2":return(0,un.jsxs)(pn,{marginY:6,children:[(0,un.jsx)(sae,{operation:e}),(0,un.jsxs)(dn,{alignItems:"center",margin:1,paddingLeft:5,children:[(0,un.jsx)(kn,{marginRight:2,color:EP.gray[400],size:"sm",children:"Send to :"}),(0,un.jsx)(mre,{address:e.recipient})]})]});case"contract_origination":case"contract_call":throw new Error(`${e.type} is not suported yet`)}},sae=({operation:e})=>{const t=q2();switch(e.type){case"tez":return(0,un.jsxs)(dn,{alignItems:"center","data-testid":"decoded-tez-amount",children:[(0,un.jsx)(LA,{as:oae,width:5,height:5,color:EP.gray[400]}),(0,un.jsxs)(sz,{marginLeft:1,textAlign:"center",children:["-",Z2(e.amount)]})]});case"fa1.2":case"fa2":{const r=t(e.contract.pkh,e.tokenId);if(!r)return null;const n=rd(r),i="nft"===r.type;return(0,un.jsxs)(dn,{alignItems:"center","data-testid":"decoded-fa-amount",children:[(0,un.jsx)(LA,{as:oae,width:5,height:5,color:EP.gray[400]}),i?(0,un.jsxs)(sz,{marginLeft:1,textAlign:"center",children:[e.amount," ",n]}):(0,un.jsxs)(sz,{marginLeft:1,textAlign:"center",children:["-",ld(e.amount,r,{showSymbol:!0})]})]})}case"delegation":case"undelegation":case"contract_origination":case"contract_call":return null}},cae=e=>Hu.string().regex(new RegExp(`^${e}$`,"i")),lae=e=>Hu.object({prim:cae(e)}),uae=Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([Hu.object({prim:Hu.literal("key_hash")}),Hu.object({bytes:Hu.string()})])}),dae=Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([Hu.object({prim:Hu.literal("address")}),Hu.object({bytes:Hu.string()})])}),hae=(e,t)=>Hu.object({prim:Hu.literal("Pair"),args:Hu.tuple([e,t])}),fae=Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([Hu.object({prim:Hu.literal("mutez")}),Hu.object({int:Hu.literal("0")})])}),pae=[lae("TRANSFER_TOKENS"),lae("CONS")],mae=Hu.object({prim:Hu.literal("CONTRACT")}),gae=Hu.tuple([Hu.object({prim:Hu.literal("DROP")}),Hu.object({prim:Hu.literal("NIL"),args:Hu.array(Hu.object({prim:Hu.literal("operation")}))})]),vae=Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([Hu.object({prim:Hu.literal("mutez")}),Hu.object({int:Hu.string()})])}),yae=Hu.tuple([uae,lae("IMPLICIT_ACCOUNT"),vae,lae("UNIT"),...pae]),bae=Hu.tuple([dae,mae,lae("IF_NONE"),vae,lae("UNIT"),...pae]),wae=Hu.tuple([uae,lae("SOME"),lae("SET_DELEGATE"),lae("CONS")]),xae=Hu.tuple([Hu.object({prim:Hu.literal("NONE"),args:Hu.tuple([Hu.object({prim:Hu.literal("key_hash")})])}),lae("SET_DELEGATE"),lae("CONS")]),_ae=Hu.tuple([dae,mae,Hu.tuple([lae("IF_NONE")]),fae,Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([lae("list"),Hu.array(hae(Hu.object({bytes:Hu.string({description:"from"})}),Hu.array(hae(Hu.object({bytes:Hu.string({description:"to"})}),hae(Hu.object({int:Hu.string({description:"token_id"})}),Hu.object({int:Hu.string({description:"amount"})}))))))])}),...pae]),Sae=Hu.tuple([dae,mae,Hu.tuple([lae("IF_NONE")]),fae,Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([lae("Pair"),hae(Hu.object({bytes:Hu.string({description:"from"})}),hae(Hu.object({bytes:Hu.string({description:"to"})}),Hu.object({int:Hu.string({description:"amount"})})))])}),...pae]);class kae extends Error{}const Eae=e=>(42===e.length&&(e="00"+e),bc(e)),Aae=[{schema:yae,parsingFn:e=>{const t=yae.parse(e),r=t[0].args[1].bytes,n=t[2].args[1].int;return{type:"tez",recipient:Yu(Eae(r)),amount:n}}},{schema:bae,parsingFn:e=>{const t=bae.parse(e),r=t[0].args[1].bytes,n=t[3].args[1].int;return{type:"tez",recipient:Zu(Eae(r)),amount:n}}},{schema:_ae,parsingFn:e=>{const t=_ae.parse(e),r=Zu(Eae(t[0].args[1].bytes));return t[4].args[1].flatMap((e=>{const t=e.args[0].bytes;return e.args[1].map((e=>{const n=e.args[0].bytes,i=e.args[1].args[0].int,o=e.args[1].args[1].int;return{type:"fa2",contract:r,sender:qu(Eae(t)),recipient:qu(Eae(n)),tokenId:i,amount:o}}))}))}},{schema:Sae,parsingFn:e=>{const t=Sae.parse(e),r=t[0],n=t[4].args[1],i=n.args[0].bytes,o=n.args[1].args[0].bytes;return{type:"fa1.2",amount:n.args[1].args[1].int,contract:Zu(Eae(r.args[1].bytes)),recipient:qu(Eae(o)),sender:qu(Eae(i)),tokenId:"0"}}},{schema:wae,parsingFn:(e,t)=>{const r=wae.parse(e);return{type:"delegation",sender:t.address,recipient:Yu(Eae(r[0].args[1].bytes))}}},{schema:xae,parsingFn:(e,t)=>({type:"undelegation",sender:t.address})}],Pae=(e,t,r=[])=>{if(0===e.length)return r;for(let n=0;n((e=>{gae.parse(e.slice(0,2))})(e),Pae(e.slice(2),t)),Oae=(e,t)=>{const r=JSON.parse(e);return Tae(r,t)},Cae=({rawActions:e,sender:t})=>{try{const r=Oae(e,t);return(0,un.jsx)(pn,{children:r.map(((e,t)=>(0,un.jsx)(aae,{operation:e},t)))})}catch(Tle){return Tle instanceof kae?(0,un.jsx)(jae,{unrecoginizedRawActions:e}):(0,un.jsxs)(pn,{children:["Invalid michelson code: ",Tle.message]})}},jae=({unrecoginizedRawActions:e})=>(0,un.jsx)(Nz,{width:"70%",marginBottom:2,allowMultiple:!0,children:(0,un.jsxs)(Dz,{marginBottom:"2",background:"umami.gray.800",border:"none",borderRadius:"8px",children:[(0,un.jsx)("h2",{children:(0,un.jsxs)(zz,{children:[(0,un.jsx)(pn,{as:"span",flex:"1",paddingLeft:1,textAlign:"left",children:"Unrecognized operation"}),(0,un.jsx)(Bz,{})]})}),(0,un.jsx)(Vz,{overflowY:"scroll",height:"400px",paddingBottom:3,children:(0,un.jsx)(UU,{space:1,value:JSON.parse(e)})})]})});function Rae(e){return Qj({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M13 6H11V7C11 7.55228 11.4477 8 12 8C12.5523 8 13 7.55228 13 7V6Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2V4H7V7C7 9.76142 9.23858 12 12 12C9.23858 12 7 14.2386 7 17V20H6V22H18V20H17V17C17 14.2386 14.7614 12 12 12C14.7614 12 17 9.76142 17 7V4H18V2H6ZM9 4H15V7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7V4ZM9 17V20H15V17C15 15.3431 13.6569 14 12 14C10.3431 14 9 15.3431 9 17Z",fill:"currentColor"}}]})(e)}const Iae=({icon:e,onClick:t=(()=>{}),label:r,iconWidth:n=4,iconHeight:i=4,textMargin:o="4px",iconColor:a,textFirst:s,...c})=>{const l=(0,un.jsx)(LA,{as:e,width:n,height:i,color:a}),u=s?{mr:o}:{ml:o},d=(0,un.jsx)(sz,{...u,fontSize:"sm",children:r});return(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",color:"text.dark",_hover:{color:EP.gray[300]},cursor:"pointer",onClick:t,role:"button",...c,children:[s?d:null,l,s?null:d]})},Mae=({onClickApproveExecute:e,isLoading:t=!1,signerState:r})=>{switch(r){case"awaitingApprovalByExternalSigner":return(0,un.jsx)(Iae,{"data-testid":"multisig-signer-awaiting-approval",icon:Rae,iconColor:EP.orange,iconHeight:5,iconWidth:5,label:"Awaiting Approval"});case"approved":return(0,un.jsx)(Iae,{"data-testid":"multisig-signer-approved",icon:kee,iconColor:EP.greenL,iconHeight:5,iconWidth:5,label:"Approved"});case"executable":return(0,un.jsx)(Dn,{"data-testid":"multisig-signer-button",isLoading:t,onClick:e,children:"Execute"});case"approvable":return(0,un.jsx)(Dn,{"data-testid":"multisig-signer-button",isLoading:t,onClick:e,children:"Approve"})}},Lae=({signer:e,fee:t,operation:r,actionType:i,transactionCount:o})=>{const{handleAsyncAction:a}=k7(),{openWith:s}=(0,n.useContext)(mM),c=`${(0,Va.capitalize)(i)} transaction`;return(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(Pre,{fee:t,signer:e,title:c,transactionCount:o}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{onSubmit:e=>a((async()=>{const{opHash:t}=await z2(r,e);s((0,un.jsx)(j7,{hash:t}))}),{title:`Failed ${i}`}),signer:e,text:c})})]})})},Nae=({pendingApprovals:e,sender:t,operation:r,signerAddress:i})=>{const o=a3(i),a=VH(),{isLoading:s,handleAsyncAction:c}=k7(),{openWith:l}=(0,n.useContext)(mM),u=$2(),d=a(i.pkh),h=0===e,f=Dae({approvals:r.approvals,signerAddress:i,operationIsExecutable:h,signerAccount:d});return(0,un.jsx)(_re,{icon:(0,un.jsx)(wre,{addressKind:o}),leftElement:(0,un.jsx)(Sre,{label:o.label,pkh:o.pkh}),rightElement:(0,un.jsx)(Mae,{isLoading:s,onClickApproveExecute:()=>c((async()=>{if(!d)throw new Error("Can't approve or execute with an account you don't own");const e=h?"execute":"approve",n=ste(d,d,[Y1(t.address,e,r.id)]),i=await l2(n,u),o=Oae(r.rawActions,t).length;l((0,un.jsx)(Lae,{actionType:e,fee:i,operation:n,signer:d,transactionCount:o}))})),signerState:f})})},Dae=({signerAccount:e,operationIsExecutable:t,approvals:r,signerAddress:n})=>{const i=!!r.find((e=>e.pkh===n.pkh));return e?i&&!t?"approved":t?"executable":"approvable":i?"approved":"awaitingApprovalByExternalSigner"},zae=({operation:e,sender:t})=>{const{signers:r,threshold:n}=t,i=Math.max(n-e.approvals.length,0);return(0,un.jsx)(pn,{padding:3,paddingBottom:0,background:EP.gray[800],borderRadius:6,"data-testid":"multisig-pending-operation-"+e.id,marginY:3,children:(0,un.jsxs)(Dz,{border:"none",borderRadius:"8px",children:[(0,un.jsx)("h2",{children:(0,un.jsxs)(zz,{flex:"1",marginBottom:0,paddingBottom:0,textAlign:"left",children:[(0,un.jsxs)(kn,{width:"100%",size:"sm",children:["Pending #",e.id]}),(0,un.jsx)(Bz,{})]})}),(0,un.jsxs)(Vz,{children:[(0,un.jsxs)(dn,{alignItems:"end",justifyContent:"space-between",marginY:2,children:[(0,un.jsx)(Cae,{rawActions:e.rawActions,sender:t}),(0,un.jsxs)(dn,{alignItems:"center",marginBottom:"6",children:[(0,un.jsx)(kn,{marginRight:1,color:EP.gray[400],size:"sm",children:"Pending Approvals:"}),(0,un.jsx)(sz,{color:"w","data-testid":"pending-approvals-count",children:i})]})]}),(0,un.jsx)(pn,{marginY:5,children:r.map((r=>(0,un.jsx)(Nae,{operation:e,pendingApprovals:i,sender:t,signerAddress:r},r.pkh)))})]})]})})},Bae=({account:e})=>{const t=(()=>{const e=jR((e=>e.multisigs.pendingOperations));return t=>{var r;return[...null!==(r=e[t.pendingOperationsBigmapId])&&void 0!==r?r:[]].sort(((e,t)=>Number(t.id)-Number(e.id)))}})(),r=t(e);return 0===r.length?(0,un.jsx)(Woe,{small:!0,title:"No multisig pending operations"}):(0,un.jsx)(pn,{width:"100%",children:(0,un.jsx)(Nz,{allowMultiple:!0,defaultIndex:(0,Va.range)(r.length),children:r.map((t=>(0,un.jsx)(zae,{operation:t,sender:e},t.id)))})})},Uae=({to:e})=>(0,un.jsx)(hn,{children:(0,un.jsxs)(Bn,{as:vO,color:EP.gray[300],stroke:EP.gray[450],_hover:{color:EP.green,stroke:EP.green},to:e,children:[(0,un.jsx)(dR,{display:"inline",stroke:"inherit"}),(0,un.jsx)(sz,{display:"inline",size:"sm",children:"\xa0View All"})]})}),Fae=({owner:e,nfts:t,...r})=>{if(0===t.length)return(0,un.jsx)(Goe,{small:!0});const n=yre(t).slice(0,18);return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(kie,{marginBottom:"35px",spacing:"12px",...r,children:n.map((t=>{const r=vre(dd(t)),n={width:"100%",height:40,fallbackSrc:vre(t.displayUri),src:r};return(0,un.jsx)(vO,{"data-testid":"nft-link",to:`/home/${e}/${td(t)}`,children:(0,un.jsx)(zU,{background:EP.gray[800],border:"1px solid transparent",_hover:{background:EP.gray[700],borderColor:EP.gray[500]},children:(0,un.jsxs)(BU,{overflow:"hidden",padding:"8px",borderRadius:"6px",children:[(0,un.jsx)(hn,{children:(0,un.jsxs)(pn,{position:"relative",width:"100%",height:"100%",children:[(0,un.jsx)(dz,{zIndex:2,width:"100%",opacity:"0",ratio:1,children:(0,un.jsx)(bR,{...n,width:"100%",height:40})}),(0,un.jsx)(dz,{position:"absolute",zIndex:0,top:"0",width:"100%",filter:"blur(20px)",ratio:1,children:(0,un.jsx)(bR,{...n,width:"100%",height:40})}),(0,un.jsx)(dz,{position:"absolute",zIndex:1,top:"0",width:"100%",ratio:1,children:(0,un.jsx)(bR,{...n,width:"100%",height:40})})]})}),Number(t.balance)>1&&(0,un.jsx)(sz,{position:"absolute",display:"inline",height:"20px",marginTop:"-24px",marginLeft:"4px",padding:"0 8px",borderRadius:"100px",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",size:"xs",children:"x"+t.balance})]})})},`${e}:${td(t)}`)}))}),t.length>18&&(0,un.jsx)(Uae,{to:`/nfts?accounts=${e}`})]})},$ae=n.createContext({mode:"page"}),Hae=["bakerFee","storageFee","allocationFee"],Vae=({operation:e})=>{const t=(0,n.useContext)($ae),r=YH(e.sender.address);if("drawer"===t.mode)return null;if(!r)return null;const i=Hae.reduce(((t,r)=>r in e?t.plus((0,Va.get)(e,r)||0):t),Bs(0));return i.eq(0)?null:(0,un.jsxs)(hn,{children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"md",children:"Fee:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"fee",children:Z2(i)})]})},qae=({level:e,status:t})=>{const r=X2(e);return void 0===t||"applied"===t?r?(0,un.jsx)(bj,{"data-testid":"checkmark"}):(0,un.jsx)(qj,{"data-testid":"hourglass"}):(0,un.jsx)(Aj,{"data-testid":"crossed-circle"})},Kae=({children:e})=>"drawer"===(0,n.useContext)($ae).mode?null:(0,un.jsx)(sz,{marginRight:"4px",color:EP.gray[300],"data-testid":"operation-type",size:"sm",children:e});function Wae(e,t){const r=Tte(e),n=Tte(t),i=Gae(r,n),o=Math.abs(soe(r,n));r.setDate(r.getDate()-i*o);const a=i*(o-Number(Gae(r,n)===-i));return 0===a?0:a}function Gae(e,t){const r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}const Zae=({timestamp:e})=>e?(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"timestamp",size:"sm",children:Yae(e)}):null,Yae=e=>{const t=new Date,r=new Date(e);return Wae(t,r)<2?Xte(r,t,{addSuffix:!0}):qoe(r,"dd MMM yyyy")},Xae=({hash:e,counter:t,transactionId:r,originationId:n,migrationId:i,children:o,...a})=>{const{tzktExplorerUrl:s}=$2();let c=s;return e?c=(0,Va.compact)([s,e,t]).join("/"):i?c=`${c}/migrations/${i}`:n?c=`${c}/originations/${n}`:r?c=`${c}/transactions/${r}`:console.warn("No id provided to TzktLink"),(0,un.jsx)(Bn,{"data-testid":"tzkt-link",href:c,isExternal:!0,...a,children:o})},Jae=e=>{const t=(0,n.useContext)($ae);return!!e&&("page"===t.mode||t.selectedAddress.pkh!==e)},Qae=({operation:e})=>{var t;const r=Jae(e.target.address),n=Jae(e.sender.address),i=!r&&!n;return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-contract-call",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(Ej,{marginRight:"8px"}),(0,un.jsx)(Xae,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,un.jsxs)(kn,{size:"md",children:["Contract Call: ",null===(t=e.parameter)||void 0===t?void 0:t.entrypoint]})}),(0,un.jsx)(Vae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Zae,{timestamp:e.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsxs)(dn,{children:[r&&(0,un.jsxs)(dn,{marginRight:"15px","data-testid":"to",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(mre,{address:e.target})]}),(n||i)&&(0,un.jsxs)(dn,{"data-testid":"from",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(mre,{address:e.sender})]})]}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Kae,{children:"Contract Call"}),(0,un.jsx)(qae,{...e})]})]})})]})},ese=({operation:e})=>{const t=!!e.newDelegate,r=t?"Delegate":"Delegation Ended",n=Jae(e.sender.address);return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-delegation",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(gj,{marginRight:"8px"}),(0,un.jsx)(Xae,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,un.jsx)(kn,{size:"md",children:r})}),(0,un.jsx)(Vae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Zae,{timestamp:e.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsxs)(dn,{children:[t&&(0,un.jsxs)(dn,{marginRight:"15px","data-testid":"to",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(mre,{address:e.newDelegate})]}),n&&(0,un.jsxs)(dn,{"data-testid":"from",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(mre,{address:e.sender})]}),!t&&!n&&(0,un.jsx)(sz,{color:EP.gray[450],children:"N/A"})]}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Kae,{children:r}),(0,un.jsx)(qae,{...e})]})]})})]})},tse=({operation:e})=>{var t;const r=(null===(t=e.originatedContract)||void 0===t?void 0:t.codeHash)===iee&&e.originatedContract.typeHash===nee?"Multisig Account Created":"Contract Origination",n=Jae(e.sender.address);return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-origination",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(Ej,{marginRight:"8px"}),(0,un.jsx)(Xae,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,un.jsx)(kn,{size:"md",children:r})}),(0,un.jsx)(Vae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Zae,{timestamp:e.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsx)(dn,{"data-testid":"from",children:n?(0,un.jsxs)(dn,{marginRight:"15px",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(mre,{address:e.sender})]}):(0,un.jsx)(sz,{color:EP.gray[450],children:"N/A"})}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Kae,{children:"Contract Origination"}),(0,un.jsx)(qae,{...e})]})]})})]})},rse=({isOutgoing:e,...t})=>e?(0,un.jsx)(cR,{"data-testid":"outgoing-arrow",...t}):(0,un.jsx)(Kj,{"data-testid":"incoming-arrow",...t}),nse=({operation:e,tokenTransfer:t,token:r})=>{var n,i;const o=t.amount,a=Jae(t.to.address),s=Jae((null===(n=t.from)||void 0===n?void 0:n.address)||""),c=!a&&!s,l=YH((null===(i=t.from)||void 0===i?void 0:i.address)||""),u="nft"===r.type,d=ld(o,r,{showSymbol:!0}),h=l?EP.orange:EP.green,f=u?"white":h,p=l?"-":"+",m=u?(0,un.jsx)(eH,{padding:"8px",background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px","data-testid":"nft-tooltip",label:(0,un.jsx)(dz,{width:"170px",height:"170px",ratio:1,children:(0,un.jsx)(bR,{src:vre(dd(r))})}),children:(0,un.jsx)(dn,{children:(0,un.jsxs)(Xae,{marginRight:"8px",color:f,"data-testid":"title",migrationId:t.migrationId,originationId:t.originationId,transactionId:t.transactionId,children:[(0,un.jsxs)(sz,{display:"inline",color:h,fontWeight:"600",children:[p,d]}),(0,un.jsxs)(sz,{display:"inline",fontWeight:"600",children:[" ",rd(r)]})]})})}):(0,un.jsx)(Xae,{marginRight:"8px",color:f,"data-testid":"title",migrationId:t.migrationId,originationId:t.originationId,transactionId:t.transactionId,children:(0,un.jsxs)(sz,{display:"inline",color:h,fontWeight:"600",children:[p,d]})});return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-token-transfer",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(rse,{marginRight:"8px",isOutgoing:l}),m,e&&(0,un.jsx)(Vae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Zae,{timestamp:t.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsxs)(dn,{children:[(a||c)&&(0,un.jsxs)(dn,{marginRight:"15px","data-testid":"to",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(mre,{address:t.to})]}),s&&(0,un.jsxs)(dn,{"data-testid":"from",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(mre,{address:t.from})]})]}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Kae,{children:"Token Transfer"}),(0,un.jsx)(qae,{level:t.level})]})]})})]})},ise=({operation:e})=>{const t=YH(e.sender.address),r=Z2(String(e.amount)),n=Jae(e.target.address),i=Jae(e.sender.address),o=!n&&!i,a=t?EP.orange:EP.green,s=t?"-":"+";return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-transaction",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(rse,{marginRight:"8px",isOutgoing:t}),(0,un.jsx)(Xae,{marginRight:"8px",color:a,counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,un.jsxs)(sz,{color:a,fontWeight:"600",children:[s," ",r]})}),(0,un.jsx)(Vae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Zae,{timestamp:e.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsxs)(dn,{children:[(n||o)&&(0,un.jsxs)(dn,{marginRight:"15px","data-testid":"to",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(mre,{address:qu(e.target.address)})]}),i&&(0,un.jsxs)(dn,{"data-testid":"from",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(mre,{address:qu(e.sender.address)})]})]}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Kae,{children:"Transaction"}),(0,un.jsx)(qae,{...e})]})]})})]})},ose=({operation:e})=>{const t=(()=>{const e=jR((e=>e.assets.transfers.tokens));return t=>e[t]})();switch(e.type){case"token_transfer":{const t=ed(e.token);return t?(0,un.jsx)(nse,{token:t,tokenTransfer:e}):(console.warn(`Could not parse token transfer ${e.id}`),null)}case"transaction":{const r=!!e.parameter,n=t(e.id);if(n){const t=ed(n.token);return t?(0,un.jsx)(nse,{operation:e,token:t,tokenTransfer:n}):(0,un.jsx)(ise,{operation:e})}return r?(0,un.jsx)(Qae,{operation:e}):(0,un.jsx)(ise,{operation:e})}case"delegation":return(0,un.jsx)(ese,{operation:e});case"origination":return(0,un.jsx)(tse,{operation:e})}},ase=({owner:e,operations:t})=>{if(0===t.length)return(0,un.jsx)(Zoe,{small:!0});const r=t.slice(0,20);return(0,un.jsxs)(un.Fragment,{children:[r.map(((e,t)=>(0,un.jsxs)(pn,{height:"90px",children:[(0,un.jsx)(ose,{operation:e}),t20&&(0,un.jsx)(Uae,{to:`/operations?accounts=${e}`})]})},sse=["KT1XnTn74bUtxHfDtBmm2bGZAQfhPbvKWR8o","KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1K9gCRgaLRFKTErYt1wVxA3Frb9FjasjTV","KT1Ha4yFVeyzw6KRAdkzq6TxDHB97KG4pZe8","KT1JBNFcB5tiycHNdYGYCtR3kk6JaJysUCi8","KT1Xobej4mc6XgEjDoJoHtTKgbD1ELMvcQuL","KT1JVjgXPMMSaa6FkzeJcgb8q9cUaLmwaJUX","KT193D4vozYnhGJQVtw7CoxxqphqUEEwK6Vb","KT1LN4LPSqTMS7Sd2CJw4bbDGRkMv2t68Fy9","KT1914CUZ7EegAFPbfgQMRkw8Uz5mYkEz2ui","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT19ovJhcsUn4YU8Q5L3BGovKSixfbWcecEA","KT1TgmD7kXQzofpuc9VbTRMdZCS2e6JDuTtc","KT1F1mn2jbqQCJcsNgYKVAQjvenecNMY2oPK","KT1ErKVqEhG9jxXgUG2KGLW3bNM7zXHX8SDF","KT1A5P4ejnLix13jtadsfV9GCnXLMNnab8UT","KT1AM3PV1cwmGRw28DVTgsjjsjHvmL6z4rGh","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT1SjXiUX63QvdNMcM2m492f7kuf8JxXRLp4","KT1MZg99PxMDEENwB4Fi64xkqAVh5d1rv8Z9","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT1XTxpQvo7oRCqp85LikEZgAZ22uDxhbWJv","KT1VaEsVNiBoA56eToEK6n6BcPgh1tdx9eXi"],cse=({token:e,...t})=>{const r=sse.includes(e.contract);return(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(sz,{...t,marginRight:"4px",children:rd(e)}),r&&(0,un.jsx)(kR,{})]})},lse=({owner:e,tokens:t})=>{if(0===t.length)return(0,un.jsx)(Woe,{small:!0,title:"No tokens found"});const r=t.slice(0,20);return(0,un.jsxs)(pn,{children:[r.map((e=>(0,un.jsx)(use,{token:e},td(e)))),t.length>20&&(0,un.jsx)(Uae,{to:`/tokens?accounts=${e}`})]})},use=({token:e})=>{const t=ld(e.balance,e,{showSymbol:!1});return(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-around",height:20,borderBottom:`1px solid ${EP.gray[800]}`,"data-testid":"token-tile",children:[(0,un.jsxs)(dn,{alignItems:"center",flex:1,children:[(0,un.jsx)(wR,{width:"38px",background:EP.gray[500],borderRadius:"4px",contract:e.contract}),(0,un.jsx)(pn,{marginLeft:"16px",children:(0,un.jsx)(cse,{fontWeight:600,"data-testid":"token-name",token:e})})]}),(0,un.jsx)(kn,{"data-testid":"token-balance",size:"lg",children:t})]})},dse=(e,t)=>`${e.tzktExplorerUrl}/${t}`,hse=e=>{const t=$2(),[r,i]=(0,n.useState)([]),[o,a]=(0,n.useState)(!0),[s,c]=(0,n.useState)(!0),{isLoading:l,handleAsyncAction:u}=k7(),[d,h]=(0,n.useState)(e),f=CR(),[p,m]=(0,n.useState)(0);(0,n.useEffect)((()=>{const e=setInterval((()=>{u((async()=>{var e;const n=null===(e=r[0])||void 0===e?void 0:e.id,o=await fse(f,t,d,{lastId:n,sort:"asc"});i((e=>(0,Va.uniqBy)([...o.reverse(),...e],(e=>e.id))))}))}),15e3);return()=>clearInterval(e)}),[p]);const g=d.join(",");(0,n.useEffect)((()=>{i([]),a(!0),u((async()=>{const e=await fse(f,t,g.split(","));i(e),a(e.length>0),m((e=>e+1))})).finally((()=>{c(!1)}))}),[t,g,f]);return{operations:pse(r),isFirstLoad:s,isLoading:l,hasMore:o,loadMore:async()=>{var e;const n=null===(e=r[r.length-1])||void 0===e?void 0:e.id;if(n)return u((async()=>{const e=await fse(f,t,d,{lastId:n});a(e.length>0),i((t=>[...t,...e]))}))},setAddresses:h}},fse=async(e,t,r,n)=>{const i=await(async(e,t,r)=>{var n;const i=(null===r||void 0===r?void 0:r.limit)||100,o=null!==(n=null===r||void 0===r?void 0:r.sort)&&void 0!==n?n:"desc",a={limit:i,offset:null!==r&&void 0!==r&&r.lastId?{cr:r.lastId}:void 0,sort:{[o]:"id"}},s=await Promise.all([I2(e,t,a),R2(e,t,a),M2(e,t,a),L2(e,t,a)]);return(0,Va.sortBy)(s.flat(),(e=>"asc"===o?e.id:-e.id)).slice(0,i)})(r,t,n),o=i.filter((e=>"transaction"===e.type)).map((e=>e.id)),a=await(async(e,t)=>0===e.length?[]:O2((()=>E2({transactionId:{in:[e.join(",")]}},{baseUrl:t.tzktApiUrl}))))(o,t),s=[...a,...i.filter((e=>"token_transfer"===e.type))];return e(Ed.updateTokenTransfers(s)),e(Gd.addTokens({network:t,tokens:s.map((e=>e.token))})),i},pse=e=>{const t=[];for(let r=0;r{i(l)}))}),id:Jie(a,l),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":Qie(a,l),onFocus:t?void 0:k(e.onFocus,(()=>{s(l),!o&&(!t||!r)&&i(l)}))}}({...e,ref:t}),i={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return(0,un.jsx)(ln.button,{...n,className:v("chakra-tabs__tab",e.className),__css:i})}));mse.displayName="Tab";const gse=({children:e,...t})=>(0,un.jsx)(mse,{...t,fontSize:"sm",paddingX:3,children:e}),vse=({tokens:e,nfts:t,account:r,delegation:n})=>{const i="multisig"===r.type,o=$2(),{operations:a,isFirstLoad:s}=hse([r.address.pkh]);return(0,un.jsxs)(roe,{flexDirection:"column",display:"flex",overflow:"hidden",width:"100%",marginTop:"60px","data-testid":"asset-panel",children:[(0,un.jsxs)(noe,{justifyContent:"space-between","data-testid":"asset-panel-tablist",children:[(0,un.jsxs)(dn,{children:[i&&(0,un.jsx)(gse,{"data-testid":"account-card-pending-tab",children:"Pending"}),(0,un.jsx)(gse,{children:"Operations"}),(0,un.jsx)(gse,{children:"Delegation"}),(0,un.jsx)(gse,{children:"NFTs"}),(0,un.jsx)(gse,{children:"Tokens"})]}),(0,un.jsx)(Ure,{href:dse(o,r.address.pkh),children:(0,un.jsxs)(Dn,{paddingRight:0,variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{marginRight:"7px",size:"sm",children:"View on Tzkt"}),(0,un.jsx)(Mj,{stroke:"currentcolor"})]})})]}),(0,un.jsxs)(ioe,{height:"100%",paddingBottom:"60px",children:[i&&(0,un.jsx)(ooe,{overflowX:"hidden",height:"100%",paddingTop:"24px",paddingBottom:"60px","data-testid":"account-card-pending-tab-panel",paddingX:"0",children:(0,un.jsx)(Bae,{account:r})}),(0,un.jsx)(ooe,{overflowX:"hidden",height:"100%",paddingTop:"24px",paddingBottom:"60px","data-testid":"account-card-operations-tab",paddingX:"0",children:(0,un.jsx)($ae.Provider,{value:{mode:"drawer",selectedAddress:r.address},children:s?(0,un.jsx)(sz,{color:EP.gray[500],textAlign:"center",children:"Loading..."}):(0,un.jsx)(ase,{operations:a,owner:r.address.pkh})})}),(0,un.jsx)(ooe,{overflowX:"hidden",paddingTop:"24px","data-testid":"account-card-delegation-tab",paddingX:"0",children:(0,un.jsx)(iae,{account:r,delegation:n})}),(0,un.jsx)(ooe,{overflowX:"hidden",height:"100%",paddingTop:"24px","data-testid":"account-card-nfts-tab",paddingX:"0",children:(0,un.jsx)(Fae,{columns:3,nfts:t,owner:r.address.pkh})}),(0,un.jsx)(ooe,{overflowX:"hidden",height:"100%",paddingTop:"24px","data-testid":"account-card-tokens-tab",paddingX:"0",children:(0,un.jsx)(lse,{owner:r.address.pkh,tokens:e})})]})]})};var yse=g((function(e,t){const{spacing:r="0.5rem",spacingX:i,spacingY:o,children:a,justify:s,direction:c,align:l,className:u,shouldWrapChildren:d,...h}=e,f=(0,n.useMemo)((()=>d?n.Children.map(a,((e,t)=>(0,un.jsx)(bse,{children:e},t))):a),[a,d]);return(0,un.jsx)(ln.div,{ref:t,className:v("chakra-wrap",u),...h,children:(0,un.jsx)(ln.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:l,flexDirection:c,listStyleType:"none",gap:r,columnGap:i,rowGap:o,padding:"0"},children:f})})}));yse.displayName="Wrap";var bse=g((function(e,t){const{className:r,...n}=e;return(0,un.jsx)(ln.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:v("chakra-wrap__listitem",r),...n})}));bse.displayName="WrapItem";const wse=({signers:e})=>(0,un.jsx)(pn,{width:"100%",marginTop:"60px",padding:"15px",background:EP.gray[800],borderRadius:"8px",children:(0,un.jsx)(Nz,{allowToggle:!0,defaultIndex:0,children:(0,un.jsxs)(Dz,{background:EP.gray[800],border:"none",borderRadius:"8px",children:[(0,un.jsx)("h2",{children:(0,un.jsxs)(zz,{as:"span",flex:"1",textAlign:"left",children:[(0,un.jsx)(kn,{width:"100%",size:"sm",children:"Approvers"}),(0,un.jsx)(Bz,{cursor:"pointer"})]})}),(0,un.jsx)(Vz,{children:(0,un.jsx)(yse,{marginTop:"3","data-testid":"multisig-tag-section",children:e.map((e=>(0,un.jsx)(bse,{padding:"3px 8px",borderRadius:"100px",children:(0,un.jsx)(mre,{address:e})},e.pkh)))})})]})})}),xse=({account:e})=>{const t=CR(),{onClose:r}=(0,n.useContext)(mM),i=({name:n})=>{t(((e,t)=>(r,n)=>{const{accounts:i,multisigs:o,contacts:a}=n(),s="multisig"===e.type,c=i.items.map((e=>e.label));[c,o.items.map((e=>e.label)),Object.values(a).map((e=>e.name))].flat().includes(t)||r(s?Fd.actions.setName({newName:t,account:e}):Nc.actions.renameAccount({newName:t,account:e}))})(e,n)),r()},{handleSubmit:o,formState:{isValid:a,errors:s},register:c,reset:l}=MU({mode:"onBlur",defaultValues:{name:e.label}}),u=qH(),{nameExistsInContacts:d}=UH();return(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:o((({name:e})=>{i({name:e.trim()}),l()})),children:[(0,un.jsx)(N7,{subTitle:"Edit your account name here.",title:"Edit Name"}),(0,un.jsx)(cz,{}),(0,un.jsx)(lz,{children:(0,un.jsxs)(Zz,{isInvalid:!!s.name,marginY:"20px",children:[(0,un.jsx)(FU,{children:"Account name"}),(0,un.jsx)(ZU,{type:"text",...c("name",{required:"Name is required",validate:e=>u.map((e=>e.label)).includes(e)?"Name already used in accounts":!d(e.trim())||"Name already registered in address book"}),placeholder:"Enter contact's name"}),s.name&&(0,un.jsx)(Qz,{"data-testid":"name-error",children:s.name.message})]})}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",marginBottom:"8px",isDisabled:!a,size:"lg",type:"submit",children:"Save"})})]})})},_se=({account:e})=>{const{openWith:t,onClose:r}=(0,n.useContext)(mM),i=CR(),o=VT(),a=1===HH().length;let s;switch(e.type){case"secret_key":s=bne;break;case"ledger":case"social":s=()=>Nc.actions.removeAccount(e)}let c="Are you sure you want to remove this account?",l="Remove Account";a&&(c="Removing your last account will off-board you from Umami. This will remove or reset all customized settings to their defaults. Personal data (including saved contacts, password and accounts) won't be affected.",l="Remove & Off-board");const u=s?()=>{t((0,un.jsx)(Are,{buttonLabel:l,description:c,onSubmit:()=>{i(s(e)),r(),o("/")},title:"Remove Account"}))}:void 0;return(0,un.jsx)(ite,{onRemove:u,onRename:()=>t((0,un.jsx)(xse,{account:e}))})},Sse=e=>(0,un.jsxs)(pn,{textAlign:e.center?"center":"initial",children:[(0,un.jsx)(kn,{size:"md",children:Z2(e.balance)}),null!==e.dollarBalance&&(0,un.jsxs)(sz,{marginTop:"6px",color:EP.gray[400],size:"sm",children:["$",e.dollarBalance.toFixed(2)]})]}),kse=({icon:e,label:t,onClick:r=(()=>{})})=>(0,un.jsxs)(pn,{className:"account-drawer-cta-button",color:EP.gray[300],textAlign:"center",_hover:{color:EP.green},cursor:"pointer",marginX:"24px",onClick:r,children:[(0,un.jsx)(S3,{className:"account-drawer-cta-button-icon",marginBottom:"8px","aria-label":"button",icon:e,size:"lg",variant:"circle_without_color"}),(0,un.jsx)(sz,{cursor:"pointer",size:"sm",children:t})]}),Ese=({onSend:e,onReceive:t=(()=>{}),balance:r,dollarBalance:i,tokens:o,nfts:a,account:s})=>{const c="multisig"===s.type,{openWith:l}=(0,n.useContext)(mM),u=a3(s.address),d=$2(),[h,f]=(0,n.useState)(null),{handleAsyncAction:p}=k7();return(0,n.useEffect)((()=>{p((async()=>{const e=await((e,t)=>R2([e],t,{limit:1,sort:{desc:"id"}}).then(Va.first))(s.address.pkh,d);e&&f((e=>{var t,r,n;const i=null===(t=e.sender)||void 0===t?void 0:t.address,o=null===(r=e.newDelegate)||void 0===r?void 0:r.address,a=e.timestamp,s=e.id,c=e.amount;return null==i||null==o||null==a||null==s||null==c?null:{sender:i,timestamp:a,id:s,amount:new Bs(c),delegate:{address:o,alias:(null===(n=e.newDelegate)||void 0===n?void 0:n.alias)||void 0}}})(e))}))}),[s.address.pkh,d]),(0,un.jsxs)(dn,{zIndex:2,alignItems:"center",flexDirection:"column",height:"100%","data-testid":`account-card-${s.address.pkh}`,children:[(0,un.jsx)(wre,{addressKind:u}),(0,un.jsx)(kn,{marginTop:"24px",size:"md",children:s.label}),(0,un.jsxs)(dn,{alignItems:"center",marginTop:"8px",marginBottom:"30px",children:[(0,un.jsx)(mre,{marginRight:"4px",address:s.address,mode:{type:"no_icons"}}),(0,un.jsx)(_se,{account:s})]}),r&&(0,un.jsx)(Sse,{balance:r,center:!0,dollarBalance:i}),(0,un.jsxs)(hn,{marginTop:"34px",children:[(0,un.jsx)(kse,{icon:(0,un.jsx)(cR,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Send",onClick:e}),(0,un.jsx)(kse,{icon:(0,un.jsx)(Kj,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Receive",onClick:t}),!c&&(0,un.jsx)(kse,{icon:(0,un.jsx)(uR,{stroke:"currentcolor"}),label:"Buy tez",onClick:()=>{l((0,un.jsx)(Jte,{recipient:s.address.pkh}))}}),(0,un.jsx)(kse,{icon:(0,un.jsx)(gj,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Delegate",onClick:()=>{l((0,un.jsx)(Joe,{form:h?{baker:h.delegate.address,sender:s.address.pkh}:void 0,sender:s}))}})]}),c&&(0,un.jsx)(wse,{signers:s.signers}),(0,un.jsx)(vse,{account:s,delegation:h,nfts:a,tokens:o})]})};var Ase=r(2083);const Pse=({pkh:e})=>{const t=GH()(e);return(0,un.jsxs)(iz,{children:[(0,un.jsx)(N7,{subTitle:"You can receive tez or other digital assets by scanning or sharing this QR code",title:"Receive"}),(0,un.jsx)(lz,{children:(0,un.jsx)(dn,{alignItems:"center",justifyContent:"space-between",flexDirection:"column",children:(0,un.jsx)(pn,{padding:"8px",background:"white",borderRadius:"8px",children:(0,un.jsx)(Ase.QRCode,{size:232,value:e})})})}),(0,un.jsx)(tB,{children:(0,un.jsxs)(pn,{width:"100%",children:[t&&(0,un.jsx)(kn,{textAlign:"center",marginY:2,children:t.label}),(0,un.jsx)(dn,{justifyContent:"center",width:"100%",children:(0,un.jsx)(mre,{address:qu(e),mode:{type:"no_icons"}})})]})})]})},Tse=({account:e})=>{const t=i3(),r=(()=>{const e=r3(),t=i3();return r=>{const n=t(r);if(null==n)return null;const i=G2(n);return e(i)}})(),i=e3(),o=t3(),{openWith:a}=(0,n.useContext)(mM),s=t(e.address.pkh),c=r(e.address.pkh),l=i(e.address.pkh),u=yre(o(e.address.pkh));return(0,un.jsx)(Ese,{account:e,balance:s,dollarBalance:c,nfts:u,onReceive:()=>{a((0,un.jsx)(Pse,{pkh:e.address.pkh}))},onSend:()=>a((0,un.jsx)(wte,{sender:e})),tokens:l})};var Ose=r(4606),Cse=r.n(Ose);const jse=({nft:e,style:t})=>{const r=e.metadata.attributes;return r&&0!==r.length?(0,un.jsxs)(Dz,{background:EP.gray[800],"data-testid":"attributes-section",style:t,children:[(0,un.jsxs)(zz,{paddingY:"16px",children:[(0,un.jsx)(kn,{flex:"1",textAlign:"left",size:"md",children:"Attributes"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(yse,{marginLeft:"0",spacing:"10px",children:r.map((e=>(0,un.jsx)(bse,{flex:"1","data-testid":"nft-attribute",children:(0,un.jsx)(zU,{width:"160px",height:"128px",marginBottom:"2px",background:EP.gray[700],children:(0,un.jsxs)(BU,{padding:"16px",children:[(0,un.jsx)(sz,{color:EP.gray[400],size:"sm",children:e.name}),(0,un.jsx)(kn,{size:"md",children:e.value})]})})},e.name)))})})]}):null},Rse=({text:e,maxLength:t})=>e.length<=t?(0,un.jsx)(sz,{"data-testid":"truncated-text",children:e}):(0,un.jsx)(eH,{label:e,children:(0,un.jsx)(sz,{"data-testid":"truncated-text",children:K2(e,t)})}),Ise=({url:e,...t})=>(0,un.jsx)("a",{"data-testid":"tzkt-link",href:e,rel:"noopener noreferrer",target:"_blank",children:(0,un.jsx)(C7,{...t})}),Mse=({nft:e})=>{if(!e.metadata.creators||0===e.metadata.creators.length)return(0,un.jsx)(un.Fragment,{children:"-"});const t=e.metadata.creators[0];return t.startsWith("tz")?(0,un.jsx)(mre,{marginRight:1,address:qu(t)}):(0,un.jsx)(Rse,{maxLength:15,text:t})},Lse=({nft:e,style:t})=>{const r=(e=>{const t=e.metadata.royalties;if(!t)return[];const r=Math.pow(10,Number(t.decimals)),n=Object.entries(t.shares).map((([e,t])=>({address:e,share:100*Number(t)/r})));return n.sort(((e,t)=>e.sharee+t.share),0).toFixed(2),i=$2();return(0,un.jsxs)(Dz,{background:EP.gray[800],style:t,children:[(0,un.jsxs)(zz,{paddingY:"16px",children:[(0,un.jsx)(kn,{flex:"1",textAlign:"left",size:"md",children:"Properties"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(mee,{children:(0,un.jsx)(yee,{variant:"stripped",children:(0,un.jsxs)(bee,{fontSize:"14px",children:[(0,un.jsxs)(wee,{background:EP.gray[900],borderColor:EP.gray[700],borderBottomWidth:"1px",borderRadius:"8px",children:[(0,un.jsx)(xee,{width:"20%",padding:"16px 0 16px 15px",paddingRight:"0",color:EP.gray[400],borderTopLeftRadius:"8px","data-testid":"nft-editions",children:"Editions:"}),(0,un.jsx)(xee,{width:"30%",padding:"16px 0 16px 5px",borderColor:EP.gray[700],borderRightWidth:"1px","data-testid":"nft-editions-value",children:e.totalSupply||"?"}),(0,un.jsx)(xee,{width:"20%",padding:"16px 0 16px 15px",color:EP.gray[400],children:"Token ID:"}),(0,un.jsx)(xee,{width:"30%",padding:"16px 0 16px 5px",borderTopRightRadius:"8px",children:e.tokenId})]}),(0,un.jsxs)(wee,{background:EP.gray[800],borderColor:EP.gray[700],borderBottomWidth:"1px",children:[(0,un.jsxs)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],"data-testid":"nft-royalty",children:["Royalties",r.length>1?" ("+r.length+")":"",":"]}),(0,un.jsx)(xee,{padding:"16px 0 16px 5px",borderColor:EP.gray[700],borderRightWidth:"1px","data-testid":"nft-royalty-value",children:r.length>0?n+"%":"-"}),(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],"data-testid":"nft-mime",children:"MIME type:"}),(0,un.jsx)(xee,{width:"30%",padding:"16px 0 16px 5px","data-testid":"nft-mime-value",children:hd(e)||"-"})]}),(0,un.jsxs)(wee,{background:EP.gray[900],borderColor:EP.gray[700],borderBottomWidth:"1px",children:[(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],children:"Contract:"}),(0,un.jsx)(xee,{padding:"16px 0 16px 5px",borderColor:EP.gray[700],borderRightWidth:"1px",children:(0,un.jsx)(mre,{marginRight:1,address:qu(e.contract)})}),(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],children:"Metadata:"}),(0,un.jsxs)(xee,{width:"30%",padding:"16px 0 16px 5px",children:["TzKT ",(0,un.jsx)(Ise,{url:fd(e,i)})]})]}),(0,un.jsxs)(wee,{background:EP.gray[800],borderColor:EP.gray[700],borderBottomWidth:"1px",children:[(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],"data-testid":"nft-creator",children:"Creator:"}),(0,un.jsx)(xee,{padding:"16px 0 16px 5px",borderColor:EP.gray[700],borderRightWidth:"1px","data-testid":"nft-creator-value",children:(0,un.jsx)(Mse,{nft:e})}),(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],children:"License:"}),(0,un.jsx)(xee,{width:"30%",padding:"16px 0 16px 5px",children:(0,un.jsx)(Rse,{maxLength:15,text:e.metadata.rights||"-"})})]})]})})})})]})},Nse=({nft:e})=>{const t=e.metadata.tags;return t&&0!==t.length?(0,un.jsx)(yse,{marginTop:"20px","data-testid":"tags-section",children:t.map((e=>(0,un.jsx)(bse,{padding:"3px 8px",background:EP.gray[600],borderRadius:"100px",children:(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"nft-tag",children:e})},e)))}):null},Dse=({nft:e})=>{const t=vre(dd(e)),r=vre(e.displayUri);return(0,un.jsx)(pn,{width:"100%","aria-label":"nft",children:(0,un.jsxs)(dn,{alignItems:"center",height:"60px",padding:3,background:EP.gray[800],borderRadius:"4px","data-testid":"nft-name",children:[(0,un.jsx)(dz,{width:"30px",height:"30px",ratio:1,children:(0,un.jsx)(bR,{fallbackSrc:r,src:t})}),e.metadata.name&&(0,un.jsx)(kn,{marginLeft:4,size:"sm",children:K2(e.metadata.name,45)})]})})},zse=e=>{const{mode:t,operations:r,fee:n,data:{nft:i}}=e,{fee:o,operations:a,estimationFailed:s,isLoading:c,form:l,signer:u,reEstimate:d,onSign:h}=dte(n,r,t),{recipient:f}=a.operations[0];return(0,un.jsx)(PB,{...l,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:a.type,signer:a.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(dn,{marginBottom:"12px",children:(0,un.jsx)(Dse,{nft:i})}),(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",marginY:"12px",paddingX:"4px",children:[(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"sm",children:"Owned:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"nft-owned",size:"sm",children:i.balance})]}),(0,un.jsx)(M7,{fee:o})]}),(0,un.jsxs)(dn,{alignItems:"center",marginTop:"12px",marginBottom:"24px",children:[(0,un.jsx)(kn,{marginRight:"12px",size:"md",children:"Quantity:"}),(0,un.jsx)(hn,{width:"100px",height:"48px",background:EP.gray[800],borderRadius:"4px",children:(0,un.jsxs)(sz,{textAlign:"center",children:[a.operations[0].amount," out of ",i.balance]})})]}),(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{marginBottom:"24px",address:a.sender.address}),(0,un.jsx)(FU,{children:"To"}),(0,un.jsx)(h3,{address:f}),(0,un.jsx)(ate,{isLoading:c,operationType:a.type,reEstimate:d,sender:a.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:s,isLoading:c,onSubmit:h,signer:u,text:U7(a.type,t)})})]})})})},Bse=e=>{const{nft:t}=e,r=vte({SignPage:zse,signPageExtraData:{nft:t},FormPage:Bse,defaultFormPageProps:e,toOperation:Use(t)}),n=yte(Use(t)),{onFormSubmitActionHandlers:[i,o],isLoading:a}=bte([r,n]),s=MU({mode:"onBlur",defaultValues:{quantity:1,...ute(e)}}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s;return(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(N7,{}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(dn,{marginBottom:"12px",children:(0,un.jsx)(Dse,{nft:e.nft})}),(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"sm",children:"Owned:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"nft-owned",size:"sm",children:t.balance})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.quantity,children:[(0,un.jsx)(FU,{children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(kn,{marginRight:"8px",size:"md",children:"Quantity:"}),(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(KU,{width:"75px",children:(0,un.jsx)(ZU,{width:"60px",color:"white","data-testid":"quantity-input",step:1,type:"number",...u("quantity",{required:"Quantity is required",max:{value:t.balance,message:`Max quantity is ${t.balance}`},min:{value:1,message:"Min quantity is 1"}})})}),(0,un.jsxs)(sz,{"data-testid":"out-of-nft",children:["out of ",t.balance]})]})]})}),l.quantity&&(0,un.jsx)(A7,{"data-testid":"quantity-error",children:l.quantity.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"}),l.sender&&(0,un.jsx)(A7,{"data-testid":"from-error",children:l.sender.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,un.jsx)(v3,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,un.jsx)(A7,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i)})})]})})})},Use=e=>t=>({type:"fa2",sender:qu(t.sender),recipient:qu(t.recipient),contract:Zu(e.contract),tokenId:e.tokenId,amount:t.quantity.toString()}),Fse=({nft:e,ownerPkh:t})=>{var r;const i=vre(ud(e)),o=vre(e.displayUri),a=ZH(),{openWith:s}=(0,n.useContext)(mM),c=null===(r=hd(e))||void 0===r?void 0:r.startsWith("video/"),l=nd(e),u={border:"none",borderRadius:"8px",marginBottom:"20px"};return(0,un.jsxs)(pn,{children:[(0,un.jsx)(zU,{width:"534px",height:"534px",background:EP.gray[800],children:(0,un.jsxs)(BU,{padding:"24px",children:[(0,un.jsx)(pn,{position:"relative",width:"486px",height:"486px",children:c?(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(pn,{position:"absolute",zIndex:1,width:"486px",height:"486px",children:(0,un.jsx)(Cse(),{width:"100%",height:"100%",loop:!0,playing:!0,url:i})}),(0,un.jsx)(bR,{position:"absolute",zIndex:0,top:"0",width:"486px",height:"486px",objectFit:"contain",alt:l,filter:"blur(20px)",src:o})]}):(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(bR,{position:"absolute",zIndex:1,width:"486px",height:"486px",objectFit:"contain",alt:l,fallbackSrc:o,src:i}),(0,un.jsx)(bR,{position:"absolute",zIndex:0,top:"0",width:"486px",height:"486px",objectFit:"contain",alt:l,"data-testid":"nft-image",fallbackSrc:o,filter:"blur(20px)",src:i})]})}),Number(e.balance)>1&&(0,un.jsx)(sz,{position:"absolute",display:"inline",height:"24px",marginTop:"-38px",marginLeft:"16px",borderRadius:"100px",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",paddingX:"8px",children:"x"+e.balance})]})}),(0,un.jsx)(Nse,{nft:e}),l&&(0,un.jsx)(kn,{marginTop:"16px",marginBottom:"14px","data-testid":"nft-name",size:"lg",children:l}),e.metadata.description&&(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"nft-description",size:"sm",children:e.metadata.description}),(0,un.jsx)(Dn,{marginTop:"20px",onClick:()=>{s((0,un.jsx)(Bse,{nft:e,sender:a(t)}))},children:"Send"}),(0,un.jsxs)(Nz,{marginTop:"32px",allowMultiple:!0,children:[(0,un.jsx)(jse,{nft:e,style:u}),(0,un.jsx)(Lse,{nft:e,style:u}),(0,un.jsxs)(Dz,{background:EP.gray[800],style:u,children:[(0,un.jsxs)(zz,{paddingY:"16px",children:[(0,un.jsx)(kn,{flex:"1",textAlign:"left",size:"md",children:"JSON"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(UU,{value:e})})]})]})]})},$se=({ownerPkh:e,nft:t,onCloseDrawer:r})=>(0,un.jsxs)(un.Fragment,{children:[(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",paddingBottom:"22px",color:EP.gray[400],"data-testid":"nft-drawer-body",children:[(0,un.jsx)(mre,{address:qu(e)}),(0,un.jsx)(Fie,{onClose:r})]}),(0,un.jsx)(Fse,{nft:t,ownerPkh:e})]}),Hse=()=>{const[e,t]=(0,n.useState)(null),{ownerPkh:r,nftId:i}=function(){let{matches:e}=n.useContext(BT),t=e[e.length-1];return t?t.params:{}}(),o=J2(),a=r&&(0,Va.get)(o,[r],[]).find((e=>td(e)===i)),s=!!a,{isOpen:c,onOpen:l,onClose:u}=BR({defaultIsOpen:s}),{isOpen:d}=gM(),h=VT(),f=(0,n.useCallback)((()=>{t(null),u(),h("/home")}),[u,h]);(0,n.useEffect)((()=>{const e=e=>{"Escape"===e.key&&f()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[f]);const p=(0,n.useMemo)((()=>({selectedAccount:e,selectAccount:e=>{t(e),l()}})),[e,l]);return(0,un.jsxs)(xre.Provider,{value:p,children:[(0,un.jsx)(zie,{}),(0,un.jsxs)(tne,{autoFocus:!1,blockScrollOnMount:!d,isOpen:c,onClose:f,placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsxs)(ane,{children:[s&&(0,un.jsx)(lz,{children:(0,un.jsx)($se,{nft:a,onCloseDrawer:f,ownerPkh:r})}),!s&&e&&(0,un.jsxs)(lz,{overflow:"hidden",background:kre({account:e,radius:"350px",opacity:"35",mainBackgroundColor:"transparent",left:"300px",top:"-125px"}),children:[(0,un.jsx)(Uie,{onClose:f}),(0,un.jsx)(Tse,{account:e})]})]})]})]})},Vse=()=>(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Accounts"}),(0,un.jsx)(dn,{flex:1,minHeight:1,children:(0,un.jsxs)(dn,{flexDirection:"column",flex:1,marginRight:"12px",paddingBottom:"12px",children:[(0,un.jsx)(Lie,{}),(0,un.jsx)(pn,{flex:1,overflow:"hidden",borderRadius:"8px",children:(0,un.jsx)(Hse,{})})]})})]}),qse=(0,n.createContext)({selectedNFT:void 0,setSelectedNFT:e=>{}}),Kse=({nft:e})=>{const{selectedNFT:t,setSelectedNFT:r}=(0,n.useContext)(qse),i=vre(dd(e)),o=vre(e.displayUri),a=e.metadata.name,s={width:"100%",minWidth:"242px",minHeight:"242px",objectFit:"contain",aspectRatio:"1",fallbackSrc:o,src:i},c=t&&td(t)===td(e)&&t.owner===e.owner;return(0,un.jsx)(zU,{minWidth:"274px",borderRadius:"8px",cursor:"pointer","data-testid":"nft-card"+(c?"-selected":""),onClick:()=>r(e),children:(0,un.jsxs)(BU,{padding:"16px",background:EP.gray[900],border:"1px solid",borderColor:c?EP.orangeL:"transparent",borderRadius:"8px",_hover:{background:EP.gray[700],borderColor:EP.gray[500]},children:[(0,un.jsx)(hn,{children:(0,un.jsxs)(pn,{position:"relative",width:"100%",children:[(0,un.jsx)(bR,{...s,zIndex:2,opacity:"0"}),(0,un.jsx)(bR,{...s,position:"absolute",zIndex:0,top:"0",filter:"blur(20px)"}),(0,un.jsx)(bR,{...s,position:"absolute",zIndex:1,top:"0","data-testid":"nft-image"})]})}),Number(e.balance)>1&&(0,un.jsx)(sz,{position:"absolute",display:"inline",height:"24px",marginTop:"-36px",marginLeft:"10px",paddingTop:"1px",fontSize:"14px",borderRadius:"full",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",paddingX:"8px",children:"x"+e.balance}),(0,un.jsx)(pn,{overflow:"hidden","data-testid":"nft-card-name",children:(0,un.jsx)(kn,{overflow:"hidden",marginTop:"15px",marginBottom:"8px",fontSize:"sm",whiteSpace:"nowrap",textOverflow:"ellipsis",children:a})}),(0,un.jsx)(mre,{address:qu(e.owner)})]})})},Wse=({nftsByOwner:e})=>{const t=Object.entries(e).flatMap((([e,t])=>(t||[]).map((t=>({owner:e,...t})))));let r="repeat(auto-fit, minmax(min(100%/2, max(274px, 100%/7)), 1fr))";return t.length<3&&(r=`repeat(auto-fit, min(100% / ${t.length} - 16px, 450px))`),(0,un.jsx)(kie,{gridTemplateColumns:r,marginBottom:"16px",minChildWidth:"340px",spacing:"16px",children:yre(t).map((e=>(0,un.jsx)(Kse,{nft:e},`${e.owner}:${td(e)}`)))})};function Gse(e={}){const{timeout:t=300,preventDefault:r=(()=>!0)}=e,[i,o]=(0,n.useState)([]),a=(0,n.useRef)(),s=()=>{a.current&&(clearTimeout(a.current),a.current=null)};return(0,n.useEffect)((()=>s),[]),function(e){return n=>{if("Backspace"===n.key){const e=[...i];return e.pop(),void o(e)}if(function(e){const{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(n)){const c=i.concat(n.key);r(n)&&(n.preventDefault(),n.stopPropagation()),o(c),e(c.join("")),s(),a.current=setTimeout((()=>{o([]),a.current=null}),t)}}}}function Zse(e,t){var r;const n=e.target;if(n){if(!Yse(n).contains(n))return!1}return!(null==(r=t.current)?void 0:r.contains(n))}function Yse(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var[Xse,Jse,Qse,ece]=_z(),[tce,rce]=En({strict:!1,name:"MenuContext"});function nce(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function ice(e){return nce(e).activeElement===e}function oce(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:i=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:s,isOpen:c,defaultIsOpen:l,onClose:u,onOpen:d,placement:h="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...g}=e,v=(0,n.useRef)(null),y=(0,n.useRef)(null),b=Qse(),w=(0,n.useCallback)((()=>{requestAnimationFrame((()=>{var e;null==(e=v.current)||e.focus({preventScroll:!1})}))}),[]),x=(0,n.useCallback)((()=>{const e=setTimeout((()=>{var e;if(o)null==(e=o.current)||e.focus();else{const e=b.firstEnabled();e&&C(e.index)}}));L.current.add(e)}),[b,o]),_=(0,n.useCallback)((()=>{const e=setTimeout((()=>{const e=b.lastEnabled();e&&C(e.index)}));L.current.add(e)}),[b]),S=(0,n.useCallback)((()=>{null==d||d(),a?x():w()}),[a,x,w,d]),{isOpen:k,onOpen:E,onClose:A,onToggle:P}=W$({isOpen:c,defaultIsOpen:l,onClose:u,onOpen:S});!function(e){const{ref:t,handler:r,enabled:i=!0}=e,o=pb(r),a=(0,n.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,n.useEffect)((()=>{if(!i)return;const e=e=>{Zse(e,t)&&(a.isPointerDown=!0)},n=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&Zse(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&Zse(e,t)&&(a.isPointerDown=!1,o(e))},c=Yse(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",n,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",s,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",n,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",s,!0)}}),[r,t,o,a,i])}({enabled:k&&i,ref:v,handler:e=>{var t;(null==(t=y.current)?void 0:t.contains(e.target))||A()}});const T=q$({...g,enabled:k||m,placement:h,direction:p}),[O,C]=(0,n.useState)(-1);mb((()=>{k||C(-1)}),[k]),zee(v,{focusRef:y,visible:k,shouldFocus:!0});const j=Iee({isOpen:k,ref:v}),[R,I]=function(e,...t){const r=(0,n.useId)(),i=e||r;return(0,n.useMemo)((()=>t.map((e=>`${e}-${i}`))),[i,t])}(t,"menu-button","menu-list"),M=(0,n.useCallback)((()=>{E(),w()}),[E,w]),L=(0,n.useRef)(new Set([]));(0,n.useEffect)((()=>{const e=L.current;return()=>{e.forEach((e=>clearTimeout(e))),e.clear()}}),[]);const N=(0,n.useCallback)((()=>{E(),x()}),[x,E]),D=(0,n.useCallback)((()=>{E(),_()}),[E,_]),z=(0,n.useCallback)((()=>{var e,t;const r=nce(v.current),n=null==(e=v.current)?void 0:e.contains(r.activeElement);if(!(k&&!n))return;const i=null==(t=b.item(O))?void 0:t.node;null==i||i.focus({preventScroll:!0})}),[k,O,b]),B=(0,n.useRef)(null);return{openAndFocusMenu:M,openAndFocusFirstItem:N,openAndFocusLastItem:D,onTransitionEnd:z,unstable__animationState:j,descendants:b,popper:T,buttonId:R,menuId:I,forceUpdate:T.forceUpdate,orientation:"vertical",isOpen:k,onToggle:P,onOpen:E,onClose:A,menuRef:v,buttonRef:y,focusedIndex:O,closeOnSelect:r,closeOnBlur:i,autoSelect:a,setFocusedIndex:C,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:B}}function ace(e){var t;return function(e){var t;if(!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e))return!1;const r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function sce(e={},t=null){const{onMouseEnter:r,onMouseMove:i,onMouseLeave:o,onClick:a,onFocus:s,isDisabled:c,isFocusable:l,closeOnSelect:u,type:d,...h}=e,f=rce(),{setFocusedIndex:p,focusedIndex:m,closeOnSelect:g,onClose:v,menuRef:y,isOpen:b,menuId:w,rafId:x}=f,_=(0,n.useRef)(null),S=`${w}-menuitem-${(0,n.useId)()}`,{index:k,register:E}=ece({disabled:c&&!l}),A=(0,n.useCallback)((e=>{null==r||r(e),c||p(k)}),[p,k,c,r]),P=(0,n.useCallback)((e=>{null==i||i(e),_.current&&!ice(_.current)&&A(e)}),[A,i]),T=(0,n.useCallback)((e=>{null==o||o(e),c||p(-1)}),[p,c,o]),O=(0,n.useCallback)((e=>{null==a||a(e),ace(e.currentTarget)&&(null!=u?u:g)&&v()}),[v,a,g,u]),C=(0,n.useCallback)((e=>{null==s||s(e),p(k)}),[p,s,k]),j=k===m,R=c&&!l;mb((()=>{if(b)return j&&!R&&_.current?(x.current&&cancelAnimationFrame(x.current),x.current=requestAnimationFrame((()=>{var e;null==(e=_.current)||e.focus({preventScroll:!0}),x.current=null}))):y.current&&!ice(y.current)&&y.current.focus({preventScroll:!0}),()=>{x.current&&cancelAnimationFrame(x.current)}}),[j,R,y,b]);const I=Hie({onClick:O,onFocus:C,onMouseEnter:A,onMouseMove:P,onMouseLeave:T,ref:Ln(E,_,t),isDisabled:c,isFocusable:l});return{...h,...I,type:null!=d?d:I.type,id:S,role:"menuitem",tabIndex:j?0:-1}}var[cce,lce]=En({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),uce=e=>{const{children:t}=e,r=Sn("Menu",e),i=ht(e),{direction:o}=vn(),{descendants:a,...s}=oce({...i,direction:o}),c=(0,n.useMemo)((()=>s),[s]),{isOpen:l,onClose:u,forceUpdate:d}=c;return(0,un.jsx)(Xse,{value:a,children:(0,un.jsx)(tce,{value:c,children:(0,un.jsx)(cce,{value:r,children:w(t,{isOpen:l,onClose:u,forceUpdate:d})})})})};uce.displayName="Menu";var dce=g(((e,t)=>{const r=lce();return(0,un.jsx)(ln.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})})),hce=g(((e,t)=>{const{children:r,as:i,...o}=e,a=function(e={},t=null){const r=rce(),{onToggle:i,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=r,c=(0,n.useCallback)((e=>{const t=e.key,r={Enter:a,ArrowDown:a,ArrowUp:s}[t];r&&(e.preventDefault(),e.stopPropagation(),r(e))}),[a,s]);return{...e,ref:Ln(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":_(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:k(e.onClick,i),onKeyDown:k(e.onKeyDown,c)}}(o,t),s=i||dce;return(0,un.jsx)(s,{...a,className:v("chakra-menu__menu-button",e.className),children:(0,un.jsx)(ln.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})}));hce.displayName="MenuButton";var fce={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},pce=ln(CA.div),mce=g((function(e,t){var r,i;const{rootProps:o,motionProps:a,...s}=e,{isOpen:c,onTransitionEnd:l,unstable__animationState:u}=rce(),d=function(e={},t=null){const r=rce();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:i,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:c,menuId:l,isLazy:u,lazyBehavior:d,unstable__animationState:h}=r,f=Jse(),p=Gse({preventDefault:e=>" "!==e.key&&ace(e.target)}),m=(0,n.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=e.key,r={Tab:e=>e.preventDefault(),Escape:c,ArrowDown:()=>{const e=f.nextEnabled(i);e&&o(e.index)},ArrowUp:()=>{const e=f.prevEnabled(i);e&&o(e.index)}},n=r[t];if(n)return e.preventDefault(),void n(e);const a=p((e=>{const t=function(e,t,r,n){if(null==t)return n;if(!n)return e.find((e=>r(e).toLowerCase().startsWith(t.toLowerCase())));const i=e.filter((e=>r(e).toLowerCase().startsWith(t.toLowerCase())));if(i.length>0){let t;return i.includes(n)?(t=i.indexOf(n)+1,t===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return n}(f.values(),e,(e=>{var t,r;return null!=(r=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?r:""}),f.item(i));if(t){const e=f.indexOf(t.node);o(e)}}));ace(e.target)&&a(e)}),[f,i,p,c,o]),g=(0,n.useRef)(!1);s&&(g.current=!0);const v=Uee({wasSelected:g.current,enabled:u,mode:d,isSelected:h.present});return{...e,ref:Ln(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:k(e.onKeyDown,m)}}(s,t),h=function(e={}){const{popper:t,isOpen:r}=rce();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}(o),f=lce();return(0,un.jsx)(ln.div,{...h,__css:{zIndex:null!=(i=e.zIndex)?i:null==(r=f.list)?void 0:r.zIndex},children:(0,un.jsx)(pce,{variants:fce,initial:!1,animate:c?"enter":"exit",__css:{outline:0,...f.list},...a,className:v("chakra-menu__menu-list",d.className),...d,onUpdate:l,onAnimationComplete:E(u.onComplete,d.onAnimationComplete)})})}));mce.displayName="MenuList";var gce=g(((e,t)=>{const r=lce();return(0,un.jsx)(ln.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})}));gce.displayName="MenuCommand";var vce=g(((e,t)=>{const{type:r,...i}=e,o=lce(),a=i.as||r?null!=r?r:void 0:"button",s=(0,n.useMemo)((()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item})),[o.item]);return(0,un.jsx)(ln.button,{ref:t,type:a,...i,__css:s})})),yce=e=>{const{className:t,children:r,...i}=e,o=lce(),a=n.Children.only(r),s=(0,n.isValidElement)(a)?(0,n.cloneElement)(a,{focusable:"false","aria-hidden":!0,className:v("chakra-menu__icon",a.props.className)}):null,c=v("chakra-menu__icon-wrapper",t);return(0,un.jsx)(ln.span,{className:c,...i,__css:o.icon,children:s})};yce.displayName="MenuIcon";var bce=g(((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:i,commandSpacing:o="0.75rem",children:a,...s}=e,c=sce(s,t),l=r||i?(0,un.jsx)("span",{style:{pointerEvents:"none",flex:1},children:a}):a;return(0,un.jsxs)(vce,{...c,className:v("chakra-menu__menuitem",c.className),children:[r&&(0,un.jsx)(yce,{fontSize:"0.8em",marginEnd:n,children:r}),l,i&&(0,un.jsx)(gce,{marginStart:o,children:i})]})}));bce.displayName="MenuItem";const wce=({accounts:e,onSelect:t})=>(0,un.jsx)(mce,{zIndex:"docked",overflowY:"scroll",maxHeight:"300px",padding:0,background:EP.gray[900],children:e.map((e=>(0,un.jsx)(bce,{width:"100%",minHeight:"48px",padding:"5px",background:EP.gray[700],"aria-label":e.label,onClick:()=>{t(e)},value:e.address.pkh,children:(0,un.jsx)(h3,{width:"370px",height:"40px",padding:"5px",background:EP.gray[700],borderRadius:"4px",_hover:{background:EP.gray[500]},cursor:"pointer",address:e.address})},e.address.pkh)))}),xce=()=>{const e=qH(),[t,r]=wO(),n=t.getAll("accounts"),i=e.filter((e=>n.includes(e.address.pkh))),o=(0,Va.differenceBy)(e,i,(e=>e.address.pkh)),a=i.length===e.length;return{selectedAccounts:0===i.length?e:i,accountsFilter:(0,un.jsxs)(hn,{children:[(0,un.jsx)(pn,{alignSelf:"flex-start",children:(0,un.jsxs)(uce,{children:[(0,un.jsx)(hce,{as:Dn,maxHeight:"26px",paddingLeft:0,fontWeight:"normal",_hover:{bg:"none"},_active:{bg:"none"},"data-testid":"account-filter",isDisabled:a,marginY:"16px",rightIcon:(0,un.jsx)(hie,{}),variant:"ghost",children:"Filter by Account"}),(0,un.jsx)(wce,{accounts:o,onSelect:e=>{r({...t,accounts:[...i,e].map((e=>e.address.pkh))})}})]})}),(0,un.jsx)(yse,{width:"100%",children:i.map((e=>(0,un.jsx)(mre,{address:e.address,"data-testid":"account-pill",mode:{type:"removable",onRemove:()=>{r({...t,accounts:n.filter((t=>t!==e.address.pkh))})}}},e.address.pkh)))})]})}},_ce=()=>{const e=J2(),{isOpen:t}=gM(),{accountsFilter:r,selectedAccounts:i}=xce(),[o,a]=(0,n.useState)(void 0);(0,n.useEffect)((()=>{const e=e=>{"Escape"===e.key&&a(void 0)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]);const s=(0,Va.pick)(e,i.map((e=>e.address.pkh))),c=(0,Va.sumBy)(Object.values(s).flat(),(e=>Number((null===e||void 0===e?void 0:e.balance)||0))),l=(0,Va.every)(s,(e=>!e||0===e.length));return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{subtitle:`(${c})`,title:"NFTs"}),r,l?(0,un.jsx)(Goe,{}):(0,un.jsxs)(qse.Provider,{value:{setSelectedNFT:a,selectedNFT:o},children:[(0,un.jsx)(pn,{overflowY:"scroll",children:(0,un.jsx)(Wse,{nftsByOwner:s})}),(0,un.jsxs)(tne,{autoFocus:!1,blockScrollOnMount:!t,isOpen:!!o,onClose:()=>a(void 0),placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsx)(ane,{children:(0,un.jsx)(lz,{children:o&&(0,un.jsx)($se,{nft:o,onCloseDrawer:()=>a(void 0),ownerPkh:o.owner})})})]})]})]})},Sce=()=>{const{accountsFilter:e,selectedAccounts:t}=xce(),{operations:r,loadMore:i,hasMore:o,setAddresses:a,isLoading:s}=hse(t.map((e=>e.address.pkh))),c=t.map((e=>e.address.pkh)).join(",");(0,n.useEffect)((()=>{a(c.split(","))}),[a,c]);const l=(0,un.jsx)(sz,{color:EP.gray[500],textAlign:"center",paddingY:"20px",children:"Loading..."});return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Operations"}),e,0===r.length&&s&&l,0===r.length&&!s&&(0,un.jsx)(Zoe,{}),r.length>0&&(0,un.jsx)(pn,{overflowY:"scroll",marginBottom:"20px",background:EP.gray[900],borderRadius:"8px",onScroll:async e=>{if(!o||s)return;const t=e.target;t.scrollHeight-t.scrollTop-t.clientHeight<100&&i()},paddingX:"20px",children:(0,un.jsxs)($ae.Provider,{value:{mode:"page"},children:[r.map(((e,t)=>{const n=t===r.length-1;return(0,un.jsxs)(pn,{height:"90px",marginBottom:n?"10px":0,paddingY:"20px",children:[(0,un.jsx)(ose,{operation:e}),!n&&(0,un.jsx)(pn,{children:(0,un.jsx)(Ree,{marginTop:"20px"})})]},e.id)})),s&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Ree,{}),l]})]})})]})},kce=()=>{const{data:e}=(0,Fn.useQuery)(J7,(()=>X7.getPeers())),t=eee(),[r,i]=(0,n.useState)([]);return(0,n.useEffect)((()=>{(async()=>{const t=await Promise.all((e||[]).map((async e=>({...e,senderId:await hL(e.publicKey)}))));i(t)})()}),[e]),0===r.length?null:(0,un.jsx)(Ece,{peerInfos:r,removePeer:t})},Ece=({peerInfos:e,removePeer:t})=>(0,un.jsx)(pn,{children:e.map((e=>(0,un.jsxs)(n.Fragment,{children:[(0,un.jsx)(Ree,{}),(0,un.jsx)(Ace,{onRemove:()=>t(e),peerInfo:e})]},e.name)))}),Ace=({peerInfo:e,onRemove:t})=>(0,un.jsxs)(dn,{justifyContent:"space-between",height:"106px","data-testid":"peer-row",paddingY:"30px",children:[(0,un.jsxs)(dn,{children:[(0,un.jsx)(dz,{width:"48px",marginRight:"16px",ratio:1,children:(0,un.jsx)(bR,{width:"100%",src:e.icon})}),(0,un.jsxs)(hn,{alignItems:"flex-start",flexDirection:"column",children:[(0,un.jsx)(kn,{marginBottom:"6px",size:"md",children:e.name}),(0,un.jsx)(Pce,{peerInfo:e})]})]}),(0,un.jsx)(hn,{children:(0,un.jsx)(S3,{"aria-label":"Remove Peer",icon:(0,un.jsx)(xR,{}),onClick:t,size:"xs",variant:"circle"})})]}),Pce=({peerInfo:e})=>{const t=(e=>{const t=jR((e=>e.beacon));return t[e]})(e.senderId);return t?(0,un.jsxs)(dn,{children:[(0,un.jsx)(mre,{marginRight:"10px",address:qu(t.accountPkh)}),(0,un.jsx)(Ree,{marginRight:"10px",orientation:"vertical"}),(0,un.jsx)(sz,{marginTop:"2px",marginRight:"4px",color:EP.gray[450],fontWeight:650,size:"sm",children:"Network:"}),(0,un.jsx)(sz,{marginTop:"2px",color:EP.white,"data-testid":"dapp-connection-network",size:"sm",children:(0,Va.capitalize)(t.networkType)})]}):null},Tce=()=>{const{isOpen:e,onClose:t,onOpen:r}=BR(),{isOpen:n}=gM();return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Gre,{left:"dApps",isSelected:e,onClick:r}),(0,un.jsxs)(tne,{autoFocus:!1,blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsx)(ane,{children:(0,un.jsxs)(lz,{children:[(0,un.jsx)(Uie,{onClose:t}),(0,un.jsx)(Oce,{})]})})]})]})},Oce=()=>{const e=tee();return(0,un.jsxs)(pn,{children:[(0,un.jsx)(dn,{alignItems:"center",justifyContent:"space-between",height:24,children:(0,un.jsx)(kn,{size:"xl",children:"dApps"})}),(0,un.jsx)(Dn,{onClick:()=>navigator.clipboard.readText().then((t=>{e(t)})),children:"Paste a peer request code"}),(0,un.jsx)(sz,{marginTop:"16px",marginBottom:"32px",color:"text.dark",children:"or open a deeplink from inside the dApp..."}),(0,un.jsx)(kce,{})]})};function Cce(e){return Qj({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]})(e)}const jce=()=>{const{isOpen:e,onClose:t,onOpen:r}=BR(),{isOpen:n}=gM();return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Gre,{left:"Error Logs",isSelected:e,onClick:r}),(0,un.jsxs)(tne,{blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsx)(ane,{children:(0,un.jsxs)(lz,{children:[(0,un.jsx)(Uie,{onClose:t}),(0,un.jsx)(Rce,{})]})})]})]})},Rce=()=>{const e=[...jR((e=>e.errors))].reverse(),t=pi();return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",height:"50px",marginBottom:"20px",children:[(0,un.jsx)(kn,{size:"xl",children:"Error Logs"}),(0,un.jsxs)(pn,{children:[(0,un.jsx)("a",{download:"UmamiErrorLogs.json",href:`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(e))}`,children:(0,un.jsx)(Dn,{variant:"tertiary",children:"Download error logs"})}),(0,un.jsx)(Dn,{marginLeft:"8px",onClick:()=>{t(Bd.actions.reset())},variant:"warning",children:"Clear All"})]})]}),e.map((e=>(0,un.jsx)(Ice,{errorLog:e},na())))]})},Ice=({errorLog:e})=>(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Ree,{marginY:1}),(0,un.jsx)(dn,{justifyContent:"space-between",paddingY:3,children:(0,un.jsxs)(dn,{children:[(0,un.jsx)(LA,{as:Cce,marginTop:"1px",marginRight:2}),(0,un.jsxs)(dn,{flexDirection:"column",children:[(0,un.jsx)(kn,{wordBreak:"break-all",size:"sm",children:e.description}),(0,un.jsx)(sz,{color:EP.gray[400],size:"sm",children:e.timestamp})]})]})})]});function Mce(e={}){const{onChange:t,value:r,defaultValue:i,name:o,isDisabled:a,isFocusable:s,isNative:c,...l}=e,[u,d]=(0,n.useState)(i||""),h="undefined"!==typeof r,f=h?r:u,p=(0,n.useRef)(null),m=(0,n.useCallback)((()=>{const e=p.current;if(!e)return;let t="input:not(:disabled):checked";const r=e.querySelector(t);if(r)return void r.focus();t="input:not(:disabled)";const n=e.querySelector(t);null==n||n.focus()}),[]),g=(0,n.useId)(),v=o||`radio-${g}`,b=(0,n.useCallback)((e=>{const r=function(e){return e&&y(e)&&y(e.target)}(e)?e.target.value:e;h||d(r),null==t||t(String(r))}),[t,h]);return{getRootProps:(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(t,p),role:"radiogroup"})),[]),getRadioProps:(0,n.useCallback)(((e={},t=null)=>{const r=c?"checked":"isChecked";return{...e,ref:t,name:v,[r]:null!=f?e.value===f:void 0,onChange(e){b(e)},"data-radiogroup":!0}}),[c,v,b,f]),name:v,ref:p,focus:m,setValue:d,value:f,onChange:b,isDisabled:a,isFocusable:s,htmlProps:l}}var[Lce,Nce]=En({name:"RadioGroupContext",strict:!1}),Dce=g(((e,t)=>{const{colorScheme:r,size:i,variant:o,children:a,className:s,isDisabled:c,isFocusable:l,...u}=e,{value:d,onChange:h,getRootProps:f,name:p,htmlProps:m}=Mce(u),g=(0,n.useMemo)((()=>({name:p,size:i,onChange:h,colorScheme:r,value:d,variant:o,isDisabled:c,isFocusable:l})),[p,i,h,r,d,o,c,l]);return(0,un.jsx)(Lce,{value:g,children:(0,un.jsx)(ln.div,{...f(m,t),className:v("chakra-radio-group",s),children:a})})}));Dce.displayName="RadioGroup";var zce={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Bce(e){e.preventDefault(),e.stopPropagation()}var Uce=g(((e,t)=>{var r;const i=Nce(),{onChange:o,value:a}=e,s=Sn("Radio",{...i,...e}),c=ht(e),{spacing:l="0.5rem",children:u,isDisabled:d=(null==i?void 0:i.isDisabled),isFocusable:h=(null==i?void 0:i.isFocusable),inputProps:f,...p}=c;let m=e.isChecked;null!=(null==i?void 0:i.value)&&null!=a&&(m=i.value===a);let g=o;(null==i?void 0:i.onChange)&&null!=a&&(g=E(i.onChange,o));const v=null!=(r=null==e?void 0:e.name)?r:null==i?void 0:i.name,{getInputProps:y,getCheckboxProps:b,getLabelProps:w,getRootProps:x,htmlProps:A}=function(e={}){const{defaultChecked:t,isChecked:r,isFocusable:i,isDisabled:o,isReadOnly:a,isRequired:s,onChange:c,isInvalid:l,name:u,value:d,id:h,"data-radiogroup":f,"aria-describedby":p,...m}=e,g=`radio-${(0,n.useId)()}`,v=Gz(),y=Nce();let b=!v||y||f?g:v.id;b=null!=h?h:b;const w=null!=o?o:null==v?void 0:v.isDisabled,x=null!=a?a:null==v?void 0:v.isReadOnly,E=null!=s?s:null==v?void 0:v.isRequired,A=null!=l?l:null==v?void 0:v.isInvalid,[P,T]=(0,n.useState)(!1),[O,C]=(0,n.useState)(!1),[j,R]=(0,n.useState)(!1),[I,M]=(0,n.useState)(!1),[L,N]=(0,n.useState)(Boolean(t)),D="undefined"!==typeof r,z=D?r:L;(0,n.useEffect)((()=>Zne(T)),[]);const B=(0,n.useCallback)((e=>{x||w?e.preventDefault():(D||N(e.target.checked),null==c||c(e))}),[D,w,x,c]),U=(0,n.useCallback)((e=>{" "===e.key&&M(!0)}),[M]),F=(0,n.useCallback)((e=>{" "===e.key&&M(!1)}),[M]),$=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":_(I),"data-hover":_(j),"data-disabled":_(w),"data-invalid":_(A),"data-checked":_(z),"data-focus":_(O),"data-focus-visible":_(O&&P),"data-readonly":_(x),"aria-hidden":!0,onMouseDown:k(e.onMouseDown,(()=>M(!0))),onMouseUp:k(e.onMouseUp,(()=>M(!1))),onMouseEnter:k(e.onMouseEnter,(()=>R(!0))),onMouseLeave:k(e.onMouseLeave,(()=>R(!1)))})),[I,j,w,A,z,O,x,P]),{onFocus:H,onBlur:V}=null!=v?v:{},q=(0,n.useCallback)(((e={},t=null)=>{const r=w&&!i;return{...e,id:b,ref:t,type:"radio",name:u,value:d,onChange:k(e.onChange,B),onBlur:k(V,e.onBlur,(()=>C(!1))),onFocus:k(H,e.onFocus,(()=>C(!0))),onKeyDown:k(e.onKeyDown,U),onKeyUp:k(e.onKeyUp,F),checked:z,disabled:r,readOnly:x,required:E,"aria-invalid":S(A),"aria-disabled":S(r),"aria-required":S(E),"data-readonly":_(x),"aria-describedby":p,style:zce}}),[w,i,b,u,d,B,V,H,U,F,z,x,E,A,p]);return{state:{isInvalid:A,isFocused:O,isChecked:z,isActive:I,isHovered:j,isDisabled:w,isReadOnly:x,isRequired:E},getCheckboxProps:$,getRadioProps:$,getInputProps:q,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:k(e.onMouseDown,Bce),"data-disabled":_(w),"data-checked":_(z),"data-invalid":_(A)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":_(w),"data-checked":_(z),"data-invalid":_(A)}),htmlProps:m}}({...p,isChecked:m,isFocusable:h,isDisabled:d,onChange:g,name:v}),[P,T]=function(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(A,tt),O=b(T),C=y(f,t),j=w(),R=Object.assign({},P,x()),I={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...s.container},M={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...s.control},L={userSelect:"none",marginStart:l,...s.label};return(0,un.jsxs)(ln.label,{className:"chakra-radio",...R,__css:I,children:[(0,un.jsx)("input",{className:"chakra-radio__input",...C}),(0,un.jsx)(ln.span,{className:"chakra-radio__control",...O,__css:M}),u&&(0,un.jsx)(ln.span,{className:"chakra-radio__label",...j,__css:L,children:u})]})}));Uce.displayName="Radio";const Fce=({network:e})=>{const t=e?"edit":"create",{onClose:r}=(0,n.useContext)(mM),i=pi(),o=H2(),{formState:{errors:a,isValid:s},register:c,handleSubmit:l}=MU({mode:"onBlur",defaultValues:e});return(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:l((e=>{i(qd.upsertNetwork(e)),r()})),children:[(0,un.jsxs)(oz,{textAlign:"center",children:["edit"===t?"Edit":"Add"," Network",(0,un.jsx)(cz,{})]}),(0,un.jsxs)(lz,{children:["create"===t&&(0,un.jsxs)(Zz,{marginTop:"32px",marginBottom:"24px",isInvalid:!!a.name,children:[(0,un.jsx)(FU,{children:"Name"}),(0,un.jsx)(ZU,{placeholder:"mainnet",...c("name",{required:"Name is required",validate:e=>{if(o.find((t=>t.name===e)))return"Network with this name already exists"}})}),a.name&&(0,un.jsx)(A7,{children:a.name.message})]}),(0,un.jsxs)(Zz,{marginBottom:"24px",isInvalid:!!a.rpcUrl,children:[(0,un.jsx)(FU,{children:"RPC URL"}),(0,un.jsx)(ZU,{placeholder:"https://prod.tcinfra.net/rpc/mainnet",...c("rpcUrl",{required:"RPC URL is required"})}),a.rpcUrl&&(0,un.jsx)(A7,{children:a.rpcUrl.message})]}),(0,un.jsxs)(Zz,{marginBottom:"24px",isInvalid:!!a.tzktApiUrl,children:[(0,un.jsx)(FU,{children:"Tzkt API URL"}),(0,un.jsx)(ZU,{placeholder:"https://api.ghostnet.tzkt.io",...c("tzktApiUrl",{required:"Tzkt API URL is required"})}),a.tzktApiUrl&&(0,un.jsx)(A7,{children:a.tzktApiUrl.message})]}),(0,un.jsxs)(Zz,{marginBottom:"24px",isInvalid:!!a.tzktExplorerUrl,children:[(0,un.jsx)(FU,{children:"Tzkt Explorer URL"}),(0,un.jsx)(ZU,{placeholder:"https://ghostnet.tzkt.io",...c("tzktExplorerUrl",{required:"Tzkt Explorer URL is required"})}),a.tzktExplorerUrl&&(0,un.jsx)(A7,{children:a.tzktExplorerUrl.message})]}),(0,un.jsxs)(Zz,{children:[(0,un.jsx)(FU,{children:"Buy Tez URL"}),(0,un.jsx)(ZU,{placeholder:"https://faucet.ghostnet.teztnets.xyz",...c("buyTezUrl")})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",isDisabled:!s,onClick:()=>{},type:"submit",children:"edit"===t?"Save changes":"Add network"})})]})]})})},$ce=()=>{const{openWith:e}=(0,n.useContext)(mM),t=$2(),r=V2(),i=H2(),o=CR();return(0,un.jsxs)(dn,{flexDirection:"column",children:[(0,un.jsxs)(hn,{justifyContent:"space-between",children:[(0,un.jsx)(kn,{children:"Network Settings"}),(0,un.jsxs)(Dn,{paddingRight:"0",onClick:()=>e((0,un.jsx)(Fce,{})),variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{size:"sm",children:"Add Network"}),(0,un.jsx)(uR,{width:"18px",height:"18px",marginLeft:"4px",stroke:"currentcolor"})]})]}),(0,un.jsx)(Dce,{marginTop:"60px",onChange:r,value:t.name,children:(0,un.jsx)(lne,{children:i.map((t=>(0,un.jsxs)(n.Fragment,{children:[(0,un.jsx)(Ree,{borderColor:EP.gray[700]}),(0,un.jsxs)(dn,{justifyContent:"space-between","data-testid":`network-${t.name}`,children:[(0,un.jsx)(Uce,{height:"100px",value:t.name,variant:"primary",children:(0,un.jsxs)(dn,{flexDirection:"column",marginLeft:"16px",children:[(0,un.jsx)(kn,{marginBottom:"4px",size:"sm",children:t.name}),(0,un.jsx)(sz,{color:EP.gray[400],children:t.rpcUrl})]})}),!Pd(t)&&(0,un.jsx)(hn,{"data-testid":"popover-menu",children:(0,un.jsxs)(nte,{children:[(0,un.jsxs)(Dn,{onClick:()=>e((0,un.jsx)(Fce,{network:t})),variant:"popover",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Edit"}),(0,un.jsx)(lR,{stroke:"inherit"})]}),(0,un.jsx)(Ree,{marginTop:"4px"}),(0,un.jsxs)(Dn,{onClick:()=>(e=>{o(qd.removeNetwork(e))})(t),variant:"popover",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Remove"}),(0,un.jsx)(xR,{stroke:"inherit"})]})]})})]})]},t.name)))})})]})},Hce=()=>{const{isOpen:e,onClose:t,onOpen:r}=BR(),{isOpen:i}=(0,n.useContext)(mM);return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Gre,{left:"Network Settings",isSelected:e,onClick:r}),(0,un.jsxs)(tne,{blockScrollOnMount:!i,isOpen:e,onClose:t,placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsx)(ane,{children:(0,un.jsxs)(lz,{children:[(0,un.jsx)(Uie,{onClose:t}),(0,un.jsx)($ce,{})]})})]})]})},Vce="2.0.0-beta1",qce=()=>{const{onClose:e}=(0,n.useContext)(mM),t=MU({mode:"onBlur"}),r=cN(),i=CR(),{handleAsyncAction:o,isLoading:a}=k7(),{handleSubmit:s,formState:{isValid:c,errors:l},getValues:u}=t;return(0,un.jsx)(PB,{...t,children:(0,un.jsx)(iz,{background:EP.gray[700],"data-testid":"change-password-modal",children:(0,un.jsxs)("form",{onSubmit:s((async({currentPassword:t,newPassword:n,newPasswordConfirmation:a})=>{t!==n&&n===a&&o((async()=>{await i(Mc({currentPassword:t,newPassword:n})).unwrap(),r({description:"Password updated",status:"success"}),e()}))})),children:[(0,un.jsx)(cz,{}),(0,un.jsx)(oz,{textAlign:"center",children:(0,un.jsx)(kn,{children:"Change Password"})}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{marginTop:"32px",isInvalid:!!l.currentPassword,children:[(0,un.jsx)(P7,{"data-testid":"current-password",inputName:"currentPassword",label:"Current Password",placeholder:"Enter your current password",required:"Current password is required"}),l.currentPassword&&(0,un.jsx)(A7,{"data-testid":"current-password-error",children:l.currentPassword.message})]}),(0,un.jsxs)(Zz,{isInvalid:!!l.newPassword,marginY:6,children:[(0,un.jsx)(P7,{"data-testid":"new-password",inputName:"newPassword",label:"New Password",placeholder:"Enter new password",required:"New password is required",validate:e=>u("currentPassword")!==e||"Cannot be the same as old password"}),l.newPassword&&(0,un.jsx)(A7,{"data-testid":"new-password-error",children:l.newPassword.message})]}),(0,un.jsxs)(Zz,{marginTop:3,isInvalid:!!l.newPasswordConfirmation,children:[(0,un.jsx)(P7,{"data-testid":"new-password-confirmation",inputName:"newPasswordConfirmation",label:"Confirm New Password",placeholder:"Confirm new password",required:"Confirmation is required",validate:e=>u("newPassword")===e||"Your new passwords do no match"}),l.newPasswordConfirmation&&(0,un.jsx)(A7,{"data-testid":"new-password-confirmation-error",children:l.newPasswordConfirmation.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",isDisabled:!c,isLoading:a,size:"lg",type:"submit",children:"Update Password"})})]})})})},Kce="wasabi",Wce=()=>{const e=()=>{localStorage.clear(),window.location.reload()},t=MU({mode:"onBlur"}),{register:r,handleSubmit:n,formState:{isValid:i,errors:o},getValues:a}=t;return(0,un.jsx)(PB,{...t,children:(0,un.jsxs)("form",{onSubmit:n((()=>{a("check")&&a("confirmationCode")===Kce&&e()})),children:[(0,un.jsx)(cz,{}),(0,un.jsx)(oz,{marginBottom:"10px",textAlign:"center",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(TR,{width:10,height:10,marginBottom:5}),(0,un.jsx)(kn,{children:"Off-board Wallet"})]})}),(0,un.jsxs)(pn,{children:[(0,un.jsx)(sz,{marginBottom:2,color:EP.gray[400],fontWeight:"bold",textAlign:"center",size:"sm",children:"This will permanently remove any data from this computer."}),(0,un.jsxs)(sz,{color:EP.gray[400],textAlign:"center",size:"sm",children:["Please enter \xab ",Kce," \xbb to confirm. The accounts are still available to be imported in the future; in order to regain access to your accounts, please make sure that you keep the recovery phrase."]}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(Ree,{borderColor:EP.gray[700],marginY:5}),(0,un.jsx)(Zz,{isInvalid:!!o.check,children:(0,un.jsx)(nie,{...r("check",{required:!0}),children:(0,un.jsx)(sz,{marginLeft:2,fontWeight:"bold",children:"I have read the warning and I am certain I want to remove my private keys locally. I also made sure to keep my recovery phrase."})})}),(0,un.jsx)(Ree,{borderColor:EP.gray[700],marginY:5}),(0,un.jsxs)(Zz,{isInvalid:!!o.confirmationCode,paddingY:5,children:[(0,un.jsx)(ZU,{type:"text",...r("confirmationCode",{required:"Confirmation is required",validate:e=>e===Kce||"Confirmation code does not match"}),placeholder:"Enter code word to confirm"}),o.confirmationCode&&(0,un.jsx)(A7,{children:o.confirmationCode.message})]})]})]}),(0,un.jsx)(tB,{padding:0,children:(0,un.jsx)(Dn,{width:"100%",marginBottom:2,isDisabled:!i,size:"lg",type:"submit",variant:"warning",children:"Confirm"})})]})})},Gce=()=>(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Settings"}),(0,un.jsxs)(pn,{overflowY:"scroll",children:[(0,un.jsx)(pn,{marginTop:"16px",children:(0,un.jsx)(Zce,{})}),(0,un.jsx)(Yce,{}),(0,un.jsx)(Jce,{}),(0,un.jsx)(Qce,{})]})]}),Zce=()=>(0,un.jsxs)(ele,{title:"General",children:[(0,un.jsx)(Hce,{}),(0,un.jsx)(jce,{})]}),Yce=()=>null,Xce=()=>{const e={version:Vce,"persist:accounts":localStorage.getItem("persist:accounts"),"persist:root":localStorage.getItem("persist:root")},t=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(e))}`,r=document.createElement("a");r.href=t,r.download="UmamiV2Backup.json",r.click()},Jce=()=>(0,un.jsx)(ele,{title:"Backup",children:(0,un.jsx)(Wre,{isSelected:!1,onClick:Xce,children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",children:[(0,un.jsx)(kn,{size:"sm",children:"Download backup file"}),(0,un.jsx)(Dn,{onClick:Xce,variant:"unstyled",children:(0,un.jsx)(Cj,{cursor:"pointer"})})]})})}),Qce=()=>{const{modalElement:e,onOpen:t}=(()=>{const{isOpen:e,onOpen:t,onClose:r}=BR();return{modalElement:(0,un.jsxs)(nI,{isCentered:!0,isOpen:e,onClose:r,children:[(0,un.jsx)(vI,{}),(0,un.jsx)(iz,{background:EP.gray[900],children:(0,un.jsx)(Wce,{})})]}),onOpen:t}})(),{openWith:r}=(0,n.useContext)(mM);return(0,un.jsxs)(ele,{title:"Advanced Settings",children:[(0,un.jsx)(Tce,{}),(0,un.jsx)(Gre,{left:"Off-board Wallet",isSelected:!1,onClick:t}),(0,un.jsx)(Gre,{left:"Change Password",isSelected:!1,onClick:()=>r((0,un.jsx)(qce,{}))}),e]})},ele=({title:e,children:t})=>(0,un.jsx)(pn,{marginTop:"8px",children:(0,un.jsx)(dn,{children:(0,un.jsxs)(pn,{width:"550px",children:[(0,un.jsx)(kn,{marginBottom:"16px",size:"lg",children:e}),t]})})}),tle=({token:e,amount:t,...r})=>{const{contract:n}=e,i=ld(t,e),o=id(e);return(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"start",width:"400px",padding:"15px",background:EP.gray[800],borderRadius:"4px","data-testid":"token-tile",...r,children:[(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(dz,{width:"30px",height:"30px",marginRight:"12px",ratio:1,children:(0,un.jsx)(wR,{padding:"6.25px",background:EP.gray[500],borderRadius:"4px",contract:n})})}),(0,un.jsx)(u3,{number:i}),(0,un.jsx)(sz,{marginLeft:"4px",size:"sm",children:o})]})},rle=e=>{const{mode:t,operations:r,fee:n,data:{token:i}}=e,{fee:o,operations:a,estimationFailed:s,isLoading:c,form:l,signer:u,reEstimate:d,onSign:h}=dte(n,r,t),{amount:f,recipient:p}=a.operations[0];return(0,un.jsx)(PB,{...l,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:a.type,signer:a.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(tle,{amount:f,token:i}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,un.jsx)(dn,{children:(0,un.jsx)(M7,{fee:o})})}),(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{marginBottom:"24px",address:a.sender.address}),(0,un.jsx)(FU,{children:"To"}),(0,un.jsx)(h3,{address:p}),(0,un.jsx)(ate,{isLoading:c,operationType:a.type,reEstimate:d,sender:a.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:s,isLoading:c,onSubmit:h,signer:u,text:U7(a.type,t)})})]})})})},nle=e=>{const{token:t}=e,r=vte({SignPage:rle,signPageExtraData:{token:t},FormPage:nle,defaultFormPageProps:e,toOperation:ile(t)}),n=yte(ile(t)),{onFormSubmitActionHandlers:[i,o],isLoading:a}=bte([r,n]),s=MU({mode:"onBlur",defaultValues:ute(e)}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s,h=ad(t),f=cd(t.balance,h),p=fte(Number(h));return(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(N7,{}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!l.prettyAmount,children:[(0,un.jsx)(FU,{children:"Amount"}),(0,un.jsxs)(KU,{children:[(0,un.jsx)(ZU,{isDisabled:a,step:p,type:"number",...u("prettyAmount",{required:"Amount is required",max:{value:f.toString(),message:`Max amount is ${f}`},validate:pte(Number(h))}),placeholder:p}),(0,un.jsx)(QU,{paddingRight:"12px","data-testid":"token-symbol",children:id(t)})]}),l.prettyAmount&&(0,un.jsx)(A7,{"data-testid":"amount-error",children:l.prettyAmount.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"}),l.sender&&(0,un.jsx)(A7,{"data-testid":"from-error",children:l.sender.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,un.jsx)(v3,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,un.jsx)(A7,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i)})})]})})})},ile=e=>t=>{const r={type:"fa2",sender:qu(t.sender),recipient:qu(t.recipient),contract:Zu(e.contract),tokenId:e.tokenId,amount:sd(e,t.prettyAmount)};return"fa2"===e.type?r:{...r,type:"fa1.2",tokenId:"0"}},ole=({account:e})=>{const{address:t,label:r}=e,n=a3(t);return(0,un.jsxs)(dn,{alignItems:"center",height:"78px",background:kre({left:"-10px",top:"-10px",account:e,radius:"100px",mainBackgroundColor:EP.gray[800]}),borderTopRadius:"8px","data-testid":"header",paddingX:"30px",children:[(0,un.jsx)(cH,{addressKind:n,identiconSize:35,size:"lg"}),(0,un.jsxs)(dn,{justifyContent:"space-between",flex:1,children:[(0,un.jsxs)(pn,{marginLeft:"16px","data-testid":"account-identifier",children:[(0,un.jsx)(kn,{marginBottom:"4px",size:"md",children:r}),(0,un.jsx)(sz,{color:EP.gray[300],size:"sm",children:Y2(t.pkh)})]}),(0,un.jsx)(dn,{flexDirection:"column-reverse",children:(0,un.jsx)(d3,{verticalAlign:"bottom",address:e.address.pkh})})]})]})},ale=({account:e,tokens:t})=>{const{openWith:r}=(0,n.useContext)(mM);return(0,un.jsxs)(zU,{overflowX:"auto",marginBottom:"16px",borderBottomRadius:"8px",backgroundColor:EP.gray[900],children:[(0,un.jsx)(ole,{account:e}),(0,un.jsx)(mee,{paddingX:"30px",children:(0,un.jsx)(yee,{children:(0,un.jsx)(bee,{children:t.map(((n,i)=>{const o=i===t.length-1?"transparent":EP.gray[700];return(0,un.jsxs)(wee,{"data-testid":"token-tile",children:[(0,un.jsx)(xee,{width:"20%",minWidth:"240px",borderColor:o,paddingX:"0",children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(wR,{display:"inline-block",width:"38px",contract:n.contract}),(0,un.jsx)(kn,{display:"inline-block",marginLeft:"16px",size:"sm",children:(0,un.jsx)(cse,{token:n})})]})}),(0,un.jsx)(xee,{width:"20%",minWidth:"200px",borderColor:o,paddingX:"0",children:(0,un.jsx)(mre,{address:Zu(n.contract)})}),(0,un.jsx)(xee,{width:"15%",minWidth:"160px",borderColor:o,paddingX:"0",children:(0,un.jsx)(kn,{size:"sm",children:ld(n.balance,n,{showSymbol:!1})})}),(0,un.jsx)(xee,{textAlign:"right",borderColor:o,paddingX:"0",children:(0,un.jsx)(ote,{onClick:()=>{r((0,un.jsx)(nle,{sender:e,token:n}))}})})]},td(n))}))})})})]})},sle=()=>{const{accountsFilter:e,selectedAccounts:t}=xce(),r=e3(),n=t.map((e=>[e,r(e.address.pkh)])).filter((([,e])=>e.length>0));return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Tokens"}),e,0===n.length?(0,un.jsx)(Woe,{title:"No Tokens found"}):(0,un.jsx)(pn,{overflowY:"auto",children:n.map((([e,t])=>(0,un.jsx)(ale,{account:e,tokens:t},e.address.pkh)))})]})},cle=({isCollapsed:e,...t})=>{const r=e?Vce:`Umami v${Vce}`;return(0,un.jsx)(sz,{color:EP.gray[450],...t,children:r})},lle=({toggle:e,...t})=>(0,un.jsx)(hn,{width:"44px",height:"44px",marginRight:"-14px",borderRadius:"4px",_hover:{background:EP.gray[800]},cursor:"pointer","data-testid":"collapse-menu-button",onClick:e,...t,children:(0,un.jsx)(yj,{})}),ule=e=>{const t=$2();return(0,un.jsx)(aR,{background:"white",borderRadius:"8px","data-testid":"maki-logo",fishColor:"mainnet"===t.name?"#F74F18":"black",...e})},dle=()=>{const e=$2(),t=H2(),r=V2(),{onOpen:i,onClose:o,isOpen:a}=BR();return(0,un.jsxs)(Zee,{isOpen:a,onClose:o,onOpen:i,placement:"bottom-end",children:[(0,un.jsx)(Yee,{children:(0,un.jsxs)(Dn,{marginTop:"4px",color:EP.green,"data-testid":"network-selector",variant:"unstyled",children:[(0,Va.capitalize)(e.name),a?(0,un.jsx)(_j,{marginTop:"-2px",stroke:"currentcolor"}):(0,un.jsx)(wj,{marginTop:"-2px",stroke:"currentcolor"})]})}),(0,un.jsx)(tte,{width:"100px",marginTop:"-10px",background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],children:(0,un.jsx)(rte,{padding:"4px 12px",children:(0,un.jsx)(dn,{flexDirection:"column",children:t.map(((i,a)=>(0,un.jsxs)(n.Fragment,{children:[(0,un.jsx)(Dn,{height:"34px",color:i.name===e.name?EP.green:EP.gray[300],fontSize:"14px",fontWeight:400,textAlign:"right",_hover:{color:EP.greenL},onClick:()=>{r(i.name),o()},variant:"unstyled",children:(0,Va.capitalize)(i.name)}),a{const[e,t]=(0,n.useState)(!1),r=window;(0,n.useEffect)((()=>{r&&r.electronAPI&&r.electronAPI.onAppUpdateDownloaded((e=>t(!0)))}),[r]);return e?(0,un.jsx)(pn,{marginTop:"24px",marginBottom:"6px",children:(0,un.jsxs)(Dn,{justifyContent:"flex-start",width:"100%",height:"32px",paddingTop:"7px",paddingRight:"8px",paddingBottom:"7px",paddingLeft:"8px",color:EP.black,background:EP.green,_hover:{color:EP.black,background:EP.greenL},onClick:()=>{r&&r.electronAPI&&r.electronAPI.installAppUpdateAndQuit()},children:[(0,un.jsx)($j,{}),(0,un.jsx)(sz,{marginLeft:"4px",size:"sm",children:"Update Umami"})]})}):null},fle=()=>{const{isCollapsed:e,toggle:t}=(()=>{const[e,t]=(0,n.useState)(!1),r=(0,n.useCallback)((()=>{t((e=>!e))}),[]);return{isCollapsed:e,toggle:r}})(),r=(0,un.jsx)(lle,{marginTop:e?0:"2px",marginRight:e?0:"-14px",toggle:t});return(0,un.jsxs)(dn,{alignItems:e?"center":"normal",flexDirection:"column",width:e?"80px":"236px",padding:e?"30px 20px":"30px",background:EP.gray[900],"data-testid":"side-navbar"+(e?"-collapsed":""),children:[(0,un.jsxs)(pn,{children:[(0,un.jsx)(dn,{alignItems:"center",justifyContent:"space-between",height:"30px",children:e?r:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(ule,{width:"38px",height:"38px"}),(0,un.jsxs)(dn,{children:[(0,un.jsx)(dle,{}),r]})]})}),(0,un.jsx)(Ree,{marginTop:"28px"})]}),(0,un.jsxs)(dn,{justifyContent:"space-between",flexDirection:"column",flex:1,children:[(0,un.jsxs)(pn,{alignItems:e?"center":"normal",justifyContent:e?"space-around":"normal",display:e?"flex":"block",height:"100%",children:[!e&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(hle,{}),(0,un.jsx)(mle,{})]}),(0,un.jsxs)(pn,{children:[(0,un.jsx)(ple,{icon:(0,un.jsx)(hj,{}),isCollapsed:e,label:"Accounts",to:"/home"}),(0,un.jsx)(ple,{icon:(0,un.jsx)(Pj,{}),isCollapsed:e,label:"NFTs",to:"/nfts"}),(0,un.jsx)(ple,{icon:(0,un.jsx)(dR,{width:"24px",height:"24px"}),isCollapsed:e,label:"Operations",to:"/operations"}),(0,un.jsx)(ple,{icon:(0,un.jsx)(Sj,{}),isCollapsed:e,label:"Tokens",to:"/tokens"}),(0,un.jsx)(ple,{icon:(0,un.jsx)(vj,{}),isCollapsed:e,label:"Batch",to:"/batch"})]})]}),(0,un.jsxs)(pn,{children:[(0,un.jsx)(Ree,{}),(0,un.jsx)(ple,{marginTop:"22px",icon:(0,un.jsx)(mj,{}),isCollapsed:e,label:"Address Book",to:"/address-book"}),(0,un.jsx)(ple,{icon:(0,un.jsx)(Hj,{}),isCollapsed:e,label:"Settings",to:"/settings"}),(0,un.jsx)(ple,{icon:(0,un.jsx)(Vj,{}),isCollapsed:e,label:"Help",to:"/help"}),(0,un.jsx)(cle,{marginTop:"24px",fontSize:"14px",textAlign:e?"center":"left",isCollapsed:e})]})]})]})},ple=({icon:e,label:t,to:r,isCollapsed:n,...i})=>{const o=$T().pathname.startsWith(r);return(0,un.jsx)(vO,{to:r,children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"flex-start",width:n?"44px":"176px",marginBottom:"8px",padding:"10px",background:o?EP.gray[600]:"transparent",borderRadius:"4px",_hover:{background:o?EP.gray[600]:EP.gray[800]},cursor:"pointer",...i,children:[e,!n&&(0,un.jsx)(sz,{marginLeft:"10px",size:"sm",children:t})]})})},mle=()=>{const e=n3(),[t]=Ste("(max-height: 900px)");return(0,un.jsxs)(pn,{marginTop:"24px",marginBottom:t?"30px":"100px","data-testid":"total-balance",children:[(0,un.jsx)(sz,{marginBottom:"4px",size:"sm",children:"Balance"}),e&&(0,un.jsx)(Sse,{balance:e.mutez,dollarBalance:e.usd})]})},gle=e=>(0,un.jsxs)(dn,{height:"100vh",children:[(0,un.jsx)(fle,{}),(0,un.jsx)(pn,{flex:1,overflowX:"hidden",height:"100%",background:"linear-gradient(180deg, rgba(0, 231, 182, 0.35) -41.53%, rgba(0, 231, 182, 0.00) 34.71%)",paddingX:6,children:e})]}),vle=r.p+"static/media/accounts.5f47a2af4c8394165d1e.png",yle=r.p+"static/media/background_image.a833e862a22ad4910526.png",ble=r.p+"static/media/batch.5ba4eb38fa8c4e1ed39b.png",wle=r.p+"static/media/multisig.3ab2bbc3bda7df25ea83.png";var xle=r(2602);const _le=({children:e})=>{const t={background:EP.gray[400],width:"10px",height:"10px",display:"inline-block",margin:"0 4px 60px 4px",borderRadius:"5px"};return(0,un.jsx)(pn,{backgroundImage:"linear-gradient(180deg, rgba(18, 18, 18, 0.00) 36.43%, rgba(18, 18, 18, 0.50) 53.65%, #121212 76.24%)",borderRightRadius:"30px",backgroundColor:"#323131",children:(0,un.jsx)(xle.lr,{autoPlay:!0,dynamicHeight:!1,infiniteLoop:!0,interval:5e3,renderIndicator:(e,r,n)=>r?(0,un.jsx)("li",{style:{...t,background:"#00C39A",width:"24px"}}):(0,un.jsx)("li",{onClick:e,onKeyDown:e,role:"button",style:t,tabIndex:0,value:n},n),showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:1e3,children:e})})},Sle=({item:e})=>(0,un.jsx)(pn,{height:"730px",paddingTop:"500px",paddingBottom:"35px",backgroundImage:e.image,backgroundSize:"cover",backgroundRepeat:"no-repeat","data-testid":`slide-${e.id}`,children:(0,un.jsxs)(hn,{flexDirection:"column",paddingBottom:"50px",children:[(0,un.jsx)(dne,{icon:e.icon,size:"58px"}),(0,un.jsx)(sz,{width:"400px",margin:"16px 50px 0 50px",children:e.text})]})}),kle=()=>{const[e,t]=(0,n.useState)(!0),{onOpen:r,modalElement:i}=Tie((()=>t(!0))),o=[{id:1,text:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(sz,{as:"span",fontWeight:600,size:"md",children:"Streamline asset management:\xa0"}),(0,un.jsx)(sz,{as:"span",size:"md",children:"one mnemonic, multiple accounts, full control."})]}),icon:(0,un.jsx)(pR,{}),image:vle},{id:2,text:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(sz,{as:"span",size:"md",children:"Enhance security with\xa0"}),(0,un.jsx)(sz,{as:"span",fontWeight:600,size:"md",children:"Multi-sig"}),(0,un.jsx)(sz,{as:"span",size:"md",children:", requiring multiple signatures for transaction executions."})]}),icon:(0,un.jsx)(Wj,{width:"32px",height:"32px",stroke:EP.gray[450],strokeWidth:"0.9"}),image:wle},{id:3,text:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(sz,{as:"span",size:"md",children:"Utilize the\xa0"}),(0,un.jsx)(sz,{as:"span",fontWeight:600,size:"md",children:"Batch\xa0"}),(0,un.jsx)(sz,{as:"span",size:"md",children:"feature to bundle transactions, improving efficiency and reducing costs."})]}),icon:(0,un.jsx)(vj,{width:"32px",height:"32px",strokeWidth:"0.9"}),image:ble}];return(0,un.jsxs)(hn,{height:"100vh",padding:"60px",backgroundImage:yle,backgroundSize:"cover",children:[e&&(0,un.jsxs)(kie,{boxShadow:"0px 0px 30px rgba(0, 0, 0, 0.30)",columns:[1,1,2],children:[(0,un.jsx)(hn,{width:"100%",maxWidth:"660px",background:EP.gray[800],borderLeftRadius:"30px",children:(0,un.jsxs)(une,{maxWidth:"400px",padding:"32px",spacing:"0",children:[(0,un.jsx)(ule,{width:"48px",height:"48px",marginBottom:"24px"}),(0,un.jsx)(kn,{marginBottom:"16px",size:"3xl",children:"Welcome to Umami"}),(0,un.jsx)(Ree,{maxWidth:"400px",marginBottom:"16px"}),(0,un.jsx)(sz,{marginBottom:"32px",color:EP.gray[450],children:"A powerful Tezos wallet"}),(0,un.jsx)(Dn,{width:"100%",marginBottom:"24px",onClick:()=>{t(!1),r()},size:"lg",children:"Get started"}),(0,un.jsx)(cle,{fontSize:"13px"})]})}),(0,un.jsx)(pn,{maxWidth:"660px",children:(0,un.jsx)(_le,{children:o.map((e=>(0,un.jsx)(Sle,{item:e},e.id)))})})]}),i]})},Ele=()=>{pee();return HH().length>0?(0,un.jsx)(Ale,{}):(0,un.jsx)(Ple,{})},Ale=()=>{fee();const e=gM();return(0,un.jsx)(pO,{children:(0,un.jsx)(mM.Provider,{value:e,children:(0,un.jsxs)(ree,{children:[(0,un.jsx)(RR,{}),(0,un.jsxs)(sO,{children:[(0,un.jsx)(oO,{element:gle((0,un.jsx)(Vse,{})),path:"/home"}),(0,un.jsx)(oO,{element:gle((0,un.jsx)(Vse,{})),path:"/home/:ownerPkh/:nftId"}),(0,un.jsx)(oO,{element:gle((0,un.jsx)(_ce,{})),path:"/nfts"}),(0,un.jsx)(oO,{element:gle((0,un.jsx)(Sce,{})),path:"/operations"}),(0,un.jsx)(oO,{element:gle((0,un.jsx)(sle,{})),path:"/tokens"}),(0,un.jsx)(oO,{element:gle((0,un.jsx)(nre,{})),path:"/address-book"}),(0,un.jsx)(oO,{element:gle((0,un.jsx)(Gce,{})),path:"/settings"}),(0,un.jsx)(oO,{element:gle((0,un.jsx)(Zre,{})),path:"/help"}),(0,un.jsx)(oO,{element:gle((0,un.jsx)($re,{})),path:"/batch"}),(0,un.jsx)(oO,{element:(0,un.jsx)(iO,{to:"/home"}),path:"/*"})]}),e.content]})})})},Ple=()=>{const e=(()=>{const e=pi();return()=>e(Id.actions.reset())})();return(0,n.useEffect)((()=>{(async()=>{await X7.removeAllAccounts(),await X7.removeAllAppMetadata(),await X7.removeAllPeers(),await X7.removeAllPermissions()})().then(e)}),[e]),(0,un.jsx)(pO,{children:(0,un.jsxs)(sO,{children:[(0,un.jsx)(oO,{element:(0,un.jsx)(iO,{to:"/welcome"}),path:"/*"}),(0,un.jsx)(oO,{element:(0,un.jsx)(kle,{}),path:"/welcome"})]})})};o.createRoot(document.getElementById("root")).render((0,un.jsx)(n.StrictMode,{children:(0,un.jsx)(YP,{children:(0,un.jsx)(Jd,{children:(0,un.jsx)(m,{loading:null,persistor:lie,children:(0,un.jsx)(c,{fallback:(0,un.jsx)(Un,{}),onError:(e,t)=>{const r={...S7(e),stacktrace:String(t.componentStack)};Xd.dispatch(Bd.actions.add(r))},children:(0,un.jsx)(Hn,{children:(0,un.jsx)(Ele,{})})})})})})}))})()})(); -//# sourceMappingURL=main.332c8484.js.map \ No newline at end of file + `}),[nh,ih]=En({strict:!1,name:"PortalManagerContext"});function oh(e){const{children:t,zIndex:r}=e;return(0,un.jsx)(nh,{value:{zIndex:r},children:t})}function ah(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=(0,n.createContext)(void 0);return o.displayName=i,[o.Provider,function e(){var i;const a=(0,n.useContext)(o);if(!a&&t){const t=new Error(r);throw t.name="ContextError",null==(i=Error.captureStackTrace)||i.call(Error,t,e),t}return a},o]}function sh(e){const{cssVarsRoot:t,theme:r,children:i}=e,o=(0,n.useMemo)((()=>Je(r)),[r]);return(0,un.jsxs)(Zr,{theme:o,children:[(0,un.jsx)(ch,{root:t}),i]})}function ch({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,un.jsx)(On,{styles:e=>({[t]:e.__cssVars})})}oh.displayName="PortalManager";var[lh,uh]=ah({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function dh(){const{colorMode:e}=vt();return(0,un.jsx)(On,{styles:t=>{const r=xt(yt(t,"styles.global"),{theme:t,colorMode:e});if(!r)return;return ct(r)(t)}})}var hh={light:"chakra-ui-light",dark:"chakra-ui-dark"};var fh="chakra-ui-color-mode";var ph,mh=(ph=fh,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(ph)||e}catch(r){}return t||e},set(e){try{localStorage.setItem(ph,e)}catch(t){}}});function gh(e,t){const r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return null==r?void 0:r[2]}function vh(e,t){return{ssr:!!t,type:"cookie",get:r=>t?gh(t,e):(null==globalThis?void 0:globalThis.document)&&gh(document.cookie,e)||r,set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}vh(fh);var yh=Boolean(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect,bh=()=>{};function wh(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function xh(e){const{value:t,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:s=mh}=e,c="dark"===o?"dark":"light",[l,u]=(0,n.useState)((()=>wh(s,c))),[d,h]=(0,n.useState)((()=>wh(s))),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:g}=(0,n.useMemo)((()=>function(e={}){const{preventTransition:t=!0}=e,r={setDataset:e=>{const n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?hh.dark:hh.light),document.body.classList.remove(e?hh.light:hh.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"===typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"===typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(e)}))}))}}};return r}({preventTransition:a})),[a]),v="system"!==o||l?l:d,y=(0,n.useCallback)((e=>{const t="system"===e?f():e;u(t),p("dark"===t),m(t),s.set(t)}),[s,f,p,m]);yh((()=>{"system"===o&&h(f())}),[]),(0,n.useEffect)((()=>{const e=s.get();y(e||("system"!==o?c:"system"))}),[s,c,o,y]);const b=(0,n.useCallback)((()=>{y("dark"===v?"light":"dark")}),[v,y]);(0,n.useEffect)((()=>{if(i)return g(y)}),[i,g,y]);const w=(0,n.useMemo)((()=>({colorMode:null!=t?t:v,toggleColorMode:t?bh:b,setColorMode:t?bh:y,forced:void 0!==t})),[v,b,y,t]);return(0,un.jsx)(gt.Provider,{value:w,children:r})}xh.displayName="ColorModeProvider";var _h=(0,n.createContext)({getDocument:()=>document,getWindow:()=>window});function Sh(e){const{children:t,environment:r,disabled:i}=e,o=(0,n.useRef)(null),a=(0,n.useMemo)((()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument.defaultView)?t:window}}),[r]),s=!i||!r;return(0,un.jsxs)(_h.Provider,{value:a,children:[t,s&&(0,un.jsx)("span",{id:"__chakra_env",hidden:!0,ref:o})]})}_h.displayName="EnvironmentContext",Sh.displayName="EnvironmentProvider";var kh=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:c,disableEnvironment:l,disableGlobalStyle:u}=e,d=(0,un.jsx)(Sh,{environment:s,disabled:l,children:t});return(0,un.jsx)(sh,{theme:a,cssVarsRoot:c,children:(0,un.jsxs)(xh,{colorModeManager:r,options:a.config,children:[o?(0,un.jsx)(rh,{scope:i}):(0,un.jsx)(th,{}),!u&&(0,un.jsx)(dh,{}),n?(0,un.jsx)(oh,{zIndex:n,children:d}):d]})})},Eh={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},Ah={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},Ph={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Th={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Oh={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Ch={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},jh={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},Rh={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Ih={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Mh={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Lh={...Mh,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},Nh={breakpoints:Th,zIndices:Ah,radii:Ch,blur:Rh,colors:Oh,...Ih,sizes:Lh,shadows:jh,space:Mh,borders:Ph,transition:Eh},{defineMultiStyleConfig:Dh,definePartsStyle:zh}=lt(["stepper","step","title","description","indicator","separator","icon","number"]),Bh=Ee("stepper-indicator-size"),Uh=Ee("stepper-icon-size"),Fh=Ee("stepper-title-font-size"),$h=Ee("stepper-description-font-size"),Hh=Ee("stepper-accent-color"),Vh=zh((({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Hh.variable]:`colors.${e}.500`,_dark:{[Hh.variable]:`colors.${e}.200`}},title:{fontSize:Fh.reference,fontWeight:"medium"},description:{fontSize:$h.reference,color:"chakra-subtle-text"},number:{fontSize:Fh.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Uh.reference,height:Uh.reference},indicator:{flexShrink:0,borderRadius:"full",width:Bh.reference,height:Bh.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Hh.reference},"&[data-status=complete]":{bg:Hh.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Hh.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Bh.reference} - 8px)`,top:`calc(${Bh.reference} + 4px)`,insetStart:`calc(${Bh.reference} / 2 - 1px)`}}}))),qh=Dh({baseStyle:Vh,sizes:{xs:zh({stepper:{[Bh.variable]:"sizes.4",[Uh.variable]:"sizes.3",[Fh.variable]:"fontSizes.xs",[$h.variable]:"fontSizes.xs"}}),sm:zh({stepper:{[Bh.variable]:"sizes.6",[Uh.variable]:"sizes.4",[Fh.variable]:"fontSizes.sm",[$h.variable]:"fontSizes.xs"}}),md:zh({stepper:{[Bh.variable]:"sizes.8",[Uh.variable]:"sizes.5",[Fh.variable]:"fontSizes.md",[$h.variable]:"fontSizes.sm"}}),lg:zh({stepper:{[Bh.variable]:"sizes.10",[Uh.variable]:"sizes.6",[Fh.variable]:"fontSizes.lg",[$h.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Kh(e,t={}){let r=!1;function n(t){const r=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...i){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const e of i)t[e]=n(e);return Kh(e,t)},toPart:n,extend:function(...r){for(const e of r)e in t||(t[e]=n(e));return Kh(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])));return e},get keys(){return Object.keys(t)},__type:{}}}var Wh=Kh("accordion").parts("root","container","button","panel").extend("icon"),Gh=Kh("alert").parts("title","description","container").extend("icon","spinner"),Zh=Kh("avatar").parts("label","badge","container").extend("excessLabel","group"),Yh=Kh("breadcrumb").parts("link","item","container").extend("separator"),Xh=(Kh("button").parts(),Kh("checkbox").parts("control","icon","container").extend("label")),Jh=(Kh("progress").parts("track","filledTrack").extend("label"),Kh("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),Qh=Kh("editable").parts("preview","input","textarea"),ef=Kh("form").parts("container","requiredIndicator","helperText"),tf=Kh("formError").parts("text","icon"),rf=Kh("input").parts("addon","field","element","group"),nf=Kh("list").parts("container","item","icon"),of=Kh("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),af=Kh("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),sf=Kh("numberinput").parts("root","field","stepperGroup","stepper"),cf=(Kh("pininput").parts("field"),Kh("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),lf=Kh("progress").parts("label","filledTrack","track"),uf=Kh("radio").parts("container","control","label"),df=Kh("select").parts("field","icon"),hf=Kh("slider").parts("container","track","thumb","filledTrack","mark"),ff=Kh("stat").parts("container","label","helpText","number","icon"),pf=Kh("switch").parts("container","track","thumb","label"),mf=Kh("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),gf=Kh("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),vf=Kh("tag").parts("container","label","closeButton"),yf=Kh("card").parts("container","header","body","footer");Kh("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function bf(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function wf(e,t){return`var(${bf(e)}${t?`, ${t}`:""})`}function xf(e,t=""){return`--${function(e,t=""){return[t,bf(e)].filter(Boolean).join("-")}(e,t)}`}function _f(e,t){const r=xf(e,null==t?void 0:t.prefix);return{variable:r,reference:wf(r,Sf(null==t?void 0:t.fallback))}}function Sf(e){return"string"===typeof e?e:null==e?void 0:e.reference}function kf(e){return y(e)&&e.reference?e.reference:String(e)}var Ef=(e,...t)=>t.map(kf).join(` ${e} `).replace(/calc/g,""),Af=(...e)=>`calc(${Ef("+",...e)})`,Pf=(...e)=>`calc(${Ef("-",...e)})`,Tf=(...e)=>`calc(${Ef("*",...e)})`,Of=(...e)=>`calc(${Ef("/",...e)})`,Cf=e=>{const t=kf(e);return null==t||Number.isNaN(parseFloat(t))?Tf(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},jf=Object.assign((e=>({add:(...t)=>jf(Af(e,...t)),subtract:(...t)=>jf(Pf(e,...t)),multiply:(...t)=>jf(Tf(e,...t)),divide:(...t)=>jf(Of(e,...t)),negate:()=>jf(Cf(e)),toString:()=>e.toString()})),{add:Af,subtract:Pf,multiply:Tf,divide:Of,negate:Cf}),{defineMultiStyleConfig:Rf,definePartsStyle:If}=lt(pf.keys),Mf=_f("switch-track-width"),Lf=_f("switch-track-height"),Nf=_f("switch-track-diff"),Df=jf.subtract(Mf,Lf),zf=_f("switch-thumb-x"),Bf=_f("switch-bg"),Uf=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Mf.reference],height:[Lf.reference],transitionProperty:"common",transitionDuration:"fast",[Bf.variable]:"colors.gray.300",_dark:{[Bf.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Bf.variable]:`colors.${t}.500`,_dark:{[Bf.variable]:`colors.${t}.200`}},bg:Bf.reference}},Ff={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Lf.reference],height:[Lf.reference],_checked:{transform:`translateX(${zf.reference})`}},$f=Rf({baseStyle:If((e=>({container:{[Nf.variable]:Df,[zf.variable]:Nf.reference,_rtl:{[zf.variable]:jf(Nf).negate().toString()}},track:Uf(e),thumb:Ff}))),sizes:{sm:If({container:{[Mf.variable]:"1.375rem",[Lf.variable]:"sizes.3"}}),md:If({container:{[Mf.variable]:"1.875rem",[Lf.variable]:"sizes.4"}}),lg:If({container:{[Mf.variable]:"2.875rem",[Lf.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Hf(e,t){return r=>"dark"===r.colorMode?t:e}function Vf(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:qf,definePartsStyle:Kf}=lt(mf.keys),Wf=Kf({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Gf={"&[data-is-numeric=true]":{textAlign:"end"}},Zf=Kf((e=>{const{colorScheme:t}=e;return{th:{color:Hf("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e),...Gf},td:{borderBottom:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e),...Gf},caption:{color:Hf("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),Yf=Kf((e=>{const{colorScheme:t}=e;return{th:{color:Hf("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e),...Gf},td:{borderBottom:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e),...Gf},caption:{color:Hf("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Hf(`${t}.100`,`${t}.700`)(e)},td:{background:Hf(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),Xf=qf({baseStyle:Wf,variants:{simple:Zf,striped:Yf,unstyled:{}},sizes:{sm:Kf({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Kf({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Kf({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function Jf(e,t,r){return Math.min(Math.max(e,r),t)}class Qf extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ep=Qf;function tp(e){if("string"!==typeof e)throw new ep(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=lp.test(e)?function(e){const t=e.toLowerCase().trim(),r=np[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new ep(e);return`#${r}`}(e):e;const r=op.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(ip(e,2),16))),parseInt(ip(e[3]||"f",2),16)/255]}const n=ap.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const i=sp.exec(t);if(i){const e=Array.from(i).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const o=cp.exec(t);if(o){const[t,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(Jf(0,100,r)!==r)throw new ep(e);if(Jf(0,100,n)!==n)throw new ep(e);return[...dp(t,r,n),Number.isNaN(i)?1:i]}throw new ep(e)}const rp=e=>parseInt(e.replace(/_/g,""),36),np="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=rp(t.substring(0,3)),n=rp(t.substring(3)).toString(16);let i="";for(let o=0;o<6-n.length;o++)i+="0";return e[r]=`${i}${n}`,e}),{});const ip=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),op=new RegExp(`^#${ip("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ap=new RegExp(`^#${ip("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),sp=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ip(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),cp=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,lp=/^[a-z]+$/i,up=e=>Math.round(255*e),dp=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(up);const i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),a=o*(1-Math.abs(i%2-1));let s=0,c=0,l=0;i>=0&&i<1?(s=o,c=a):i>=1&&i<2?(s=a,c=o):i>=2&&i<3?(c=o,l=a):i>=3&&i<4?(c=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);const u=n-o/2;return[s+u,c+u,l+u].map(up)};function hp(e,t,r,n){return`rgba(${Jf(0,255,e).toFixed()}, ${Jf(0,255,t).toFixed()}, ${Jf(0,255,r).toFixed()}, ${parseFloat(Jf(0,1,n).toFixed(3))})`}function fp(e,t){const[r,n,i,o]=tp(e);return hp(r,n,i,o-t)}var pp=(e,t,r)=>{const n=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n{const t=Jf(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(n),i<1&&o(Math.round(255*i))}(n),n}catch{return null!=r?r:"#000000"}},mp=e=>t=>{const r=(e=>{const[t,r,n]=tp(e);return(299*t+587*r+114*n)/1e3})(pp(t,e));return r<128?"dark":"light"},gp=(e,t)=>r=>fp(pp(r,e),1-t);function vp(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}function yp(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(r=e,0!==Object.keys(r).length)?e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let n=0;n>8*n&255).toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var r}var bp=Ee("tabs-color"),wp=Ee("tabs-bg"),xp=Ee("tabs-border-color"),{defineMultiStyleConfig:_p,definePartsStyle:Sp}=lt(gf.keys),kp=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Ep=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Ap=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===r?"column":"row"}},Pp={p:4},Tp=Sp((e=>({root:kp(e),tab:Ep(e),tablist:Ap(e),tabpanel:Pp}))),Op={sm:Sp({tab:{py:1,px:4,fontSize:"sm"}}),md:Sp({tab:{fontSize:"md",py:2,px:4}}),lg:Sp({tab:{fontSize:"lg",py:3,px:4}})},Cp=Sp((e=>{const{colorScheme:t,orientation:r}=e,n="vertical"===r,i=n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[bp.variable]:`colors.${t}.600`,_dark:{[bp.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[wp.variable]:"colors.gray.200",_dark:{[wp.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:bp.reference,bg:wp.reference}}})),jp=Sp((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[xp.variable]:"transparent",_selected:{[bp.variable]:`colors.${t}.600`,[xp.variable]:"colors.white",_dark:{[bp.variable]:`colors.${t}.300`,[xp.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:xp.reference},color:bp.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Rp=Sp((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[wp.variable]:"colors.gray.50",_dark:{[wp.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[wp.variable]:"colors.white",[bp.variable]:`colors.${t}.600`,_dark:{[wp.variable]:"colors.gray.800",[bp.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:bp.reference,bg:wp.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Ip=Sp((e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:pp(r,`${t}.700`),bg:pp(r,`${t}.100`)}}}})),Mp=Sp((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[bp.variable]:"colors.gray.600",_dark:{[bp.variable]:"inherit"},_selected:{[bp.variable]:"colors.white",[wp.variable]:`colors.${t}.600`,_dark:{[bp.variable]:"colors.gray.800",[wp.variable]:`colors.${t}.300`}},color:bp.reference,bg:wp.reference}}})),Lp=_p({baseStyle:Tp,sizes:Op,variants:{line:Cp,enclosed:jp,"enclosed-colored":Rp,"soft-rounded":Ip,"solid-rounded":Mp,unstyled:Sp({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Np=function(e,t){const r={};for(const n of t)if(Array.isArray(n)){const[t,i]=n;r[t]=Ee(`${e}-${t}`,i)}else r[n]=Ee(`${e}-${n}`);return r}("badge",["bg","color","shadow"]),Dp=e=>{const{colorScheme:t,theme:r}=e,n=gp(`${t}.500`,.6)(r);return{[Np.bg.variable]:`colors.${t}.500`,[Np.color.variable]:"colors.white",_dark:{[Np.bg.variable]:n,[Np.color.variable]:"colors.whiteAlpha.800"}}},zp=e=>{const{colorScheme:t,theme:r}=e,n=gp(`${t}.200`,.16)(r);return{[Np.bg.variable]:`colors.${t}.100`,[Np.color.variable]:`colors.${t}.800`,_dark:{[Np.bg.variable]:n,[Np.color.variable]:`colors.${t}.200`}}},Bp=e=>{const{colorScheme:t,theme:r}=e,n=gp(`${t}.200`,.8)(r);return{[Np.color.variable]:`colors.${t}.500`,_dark:{[Np.color.variable]:n},[Np.shadow.variable]:`inset 0 0 0px 1px ${Np.color.reference}`}},Up={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Np.bg.reference,color:Np.color.reference,boxShadow:Np.shadow.reference},variants:{solid:Dp,subtle:zp,outline:Bp},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Fp,definePartsStyle:$p}=lt(vf.keys),Hp=Ee("tag-bg"),Vp=Ee("tag-color"),qp=Ee("tag-shadow"),Kp=Ee("tag-min-height"),Wp=Ee("tag-min-width"),Gp=Ee("tag-font-size"),Zp=Ee("tag-padding-inline"),Yp=$p({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[Vp.variable]:Np.color.reference,[Hp.variable]:Np.bg.reference,[qp.variable]:Np.shadow.reference,color:Vp.reference,bg:Hp.reference,boxShadow:qp.reference,borderRadius:"md",minH:Kp.reference,minW:Wp.reference,fontSize:Gp.reference,px:Zp.reference,_focusVisible:{[qp.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),Xp={sm:$p({container:{[Kp.variable]:"sizes.5",[Wp.variable]:"sizes.5",[Gp.variable]:"fontSizes.xs",[Zp.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:$p({container:{[Kp.variable]:"sizes.6",[Wp.variable]:"sizes.6",[Gp.variable]:"fontSizes.sm",[Zp.variable]:"space.2"}}),lg:$p({container:{[Kp.variable]:"sizes.8",[Wp.variable]:"sizes.8",[Gp.variable]:"fontSizes.md",[Zp.variable]:"space.3"}})},Jp={subtle:$p((e=>{var t;return{container:null==(t=Up.variants)?void 0:t.subtle(e)}})),solid:$p((e=>{var t;return{container:null==(t=Up.variants)?void 0:t.solid(e)}})),outline:$p((e=>{var t;return{container:null==(t=Up.variants)?void 0:t.outline(e)}}))},Qp=Fp({variants:Jp,baseStyle:Yp,sizes:Xp,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:em,defineMultiStyleConfig:tm}=lt(rf.keys),rm=Ee("input-height"),nm=Ee("input-font-size"),im=Ee("input-padding"),om=Ee("input-border-radius"),am=em({addon:{height:rm.reference,fontSize:nm.reference,px:im.reference,borderRadius:om.reference},field:{width:"100%",height:rm.reference,fontSize:nm.reference,px:im.reference,borderRadius:om.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),sm={lg:{[nm.variable]:"fontSizes.lg",[im.variable]:"space.4",[om.variable]:"radii.md",[rm.variable]:"sizes.12"},md:{[nm.variable]:"fontSizes.md",[im.variable]:"space.4",[om.variable]:"radii.md",[rm.variable]:"sizes.10"},sm:{[nm.variable]:"fontSizes.sm",[im.variable]:"space.3",[om.variable]:"radii.sm",[rm.variable]:"sizes.8"},xs:{[nm.variable]:"fontSizes.xs",[im.variable]:"space.2",[om.variable]:"radii.sm",[rm.variable]:"sizes.6"}},cm={lg:em({field:sm.lg,group:sm.lg}),md:em({field:sm.md,group:sm.md}),sm:em({field:sm.sm,group:sm.sm}),xs:em({field:sm.xs,group:sm.xs})};function lm(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||Hf("blue.500","blue.300")(e),errorBorderColor:r||Hf("red.500","red.300")(e)}}var um,dm,hm,fm,pm,mm,gm,vm,ym,bm,wm,xm=em((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=lm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Hf("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pp(t,n),boxShadow:`0 0 0 1px ${pp(t,n)}`},_focusVisible:{zIndex:1,borderColor:pp(t,r),boxShadow:`0 0 0 1px ${pp(t,r)}`}},addon:{border:"1px solid",borderColor:Hf("inherit","whiteAlpha.50")(e),bg:Hf("gray.100","whiteAlpha.300")(e)}}})),_m=em((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=lm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Hf("gray.100","whiteAlpha.50")(e),_hover:{bg:Hf("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pp(t,n)},_focusVisible:{bg:"transparent",borderColor:pp(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:Hf("gray.100","whiteAlpha.50")(e)}}})),Sm=em((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=lm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pp(t,n),boxShadow:`0px 1px 0px 0px ${pp(t,n)}`},_focusVisible:{borderColor:pp(t,r),boxShadow:`0px 1px 0px 0px ${pp(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),km=tm({baseStyle:am,sizes:cm,variants:{outline:xm,filled:_m,flushed:Sm,unstyled:em({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Em={...null==(um=km.baseStyle)?void 0:um.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Am={outline:e=>{var t,r;return null!=(r=null==(t=km.variants)?void 0:t.outline(e).field)?r:{}},flushed:e=>{var t,r;return null!=(r=null==(t=km.variants)?void 0:t.flushed(e).field)?r:{}},filled:e=>{var t,r;return null!=(r=null==(t=km.variants)?void 0:t.filled(e).field)?r:{}},unstyled:null!=(hm=null==(dm=km.variants)?void 0:dm.unstyled.field)?hm:{}},Pm={baseStyle:Em,sizes:{xs:null!=(pm=null==(fm=km.sizes)?void 0:fm.xs.field)?pm:{},sm:null!=(gm=null==(mm=km.sizes)?void 0:mm.sm.field)?gm:{},md:null!=(ym=null==(vm=km.sizes)?void 0:vm.md.field)?ym:{},lg:null!=(wm=null==(bm=km.sizes)?void 0:bm.lg.field)?wm:{}},variants:Am,defaultProps:{size:"md",variant:"outline"}},Tm=_f("tooltip-bg"),Om=_f("tooltip-fg"),Cm=_f("popper-arrow-bg"),jm={baseStyle:{bg:Tm.reference,color:Om.reference,[Tm.variable]:"colors.gray.700",[Om.variable]:"colors.whiteAlpha.900",_dark:{[Tm.variable]:"colors.gray.300",[Om.variable]:"colors.gray.900"},[Cm.variable]:Tm.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:Rm,definePartsStyle:Im}=lt(lf.keys),Mm=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=Hf(vp(),vp("1rem","rgba(0,0,0,0.1)"))(e),a=Hf(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${pp(r,a)} 50%,\n transparent 100%\n )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}},Lm={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Nm=e=>({bg:Hf("gray.100","whiteAlpha.300")(e)}),Dm=e=>({transitionProperty:"common",transitionDuration:"slow",...Mm(e)}),zm=Im((e=>({label:Lm,filledTrack:Dm(e),track:Nm(e)}))),Bm=Rm({sizes:{xs:Im({track:{h:"1"}}),sm:Im({track:{h:"2"}}),md:Im({track:{h:"3"}}),lg:Im({track:{h:"4"}})},baseStyle:zm,defaultProps:{size:"md",colorScheme:"blue"}});function Um(e,...t){return(e=>"function"===typeof e)(e)?e(...t):e}var Fm,$m,Hm,Vm,qm,Km,Wm,Gm,Zm,{definePartsStyle:Ym,defineMultiStyleConfig:Xm}=lt(Xh.keys),Jm=Ee("checkbox-size"),Qm=e=>{const{colorScheme:t}=e;return{w:Jm.reference,h:Jm.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Hf(`${t}.500`,`${t}.200`)(e),borderColor:Hf(`${t}.500`,`${t}.200`)(e),color:Hf("white","gray.900")(e),_hover:{bg:Hf(`${t}.600`,`${t}.300`)(e),borderColor:Hf(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Hf("gray.200","transparent")(e),bg:Hf("gray.200","whiteAlpha.300")(e),color:Hf("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Hf(`${t}.500`,`${t}.200`)(e),borderColor:Hf(`${t}.500`,`${t}.200`)(e),color:Hf("white","gray.900")(e)},_disabled:{bg:Hf("gray.100","whiteAlpha.100")(e),borderColor:Hf("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Hf("red.500","red.300")(e)}}},eg={_disabled:{cursor:"not-allowed"}},tg={userSelect:"none",_disabled:{opacity:.4}},rg={transitionProperty:"transform",transitionDuration:"normal"},ng=Xm({baseStyle:Ym((e=>({icon:rg,container:eg,control:Um(Qm,e),label:tg}))),sizes:{sm:Ym({control:{[Jm.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ym({control:{[Jm.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ym({control:{[Jm.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ig,definePartsStyle:og}=lt(uf.keys),ag=e=>{var t;const r=null==(t=Um(ng.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},sg=og((e=>{var t,r,n,i;return{label:null==(r=(t=ng).baseStyle)?void 0:r.call(t,e).label,container:null==(i=(n=ng).baseStyle)?void 0:i.call(n,e).container,control:ag(e)}})),cg=ig({baseStyle:sg,sizes:{md:og({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:og({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:og({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lg,definePartsStyle:ug}=lt(df.keys),dg=Ee("select-bg"),hg={paddingInlineEnd:"8"},fg=lg({baseStyle:ug({field:{...null==(Fm=km.baseStyle)?void 0:Fm.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:dg.reference,[dg.variable]:"colors.white",_dark:{[dg.variable]:"colors.gray.700"},"> option, > optgroup":{bg:dg.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==($m=km.sizes)?void 0:$m.lg,field:{...null==(Hm=km.sizes)?void 0:Hm.lg.field,...hg}},md:{...null==(Vm=km.sizes)?void 0:Vm.md,field:{...null==(qm=km.sizes)?void 0:qm.md.field,...hg}},sm:{...null==(Km=km.sizes)?void 0:Km.sm,field:{...null==(Wm=km.sizes)?void 0:Wm.sm.field,...hg}},xs:{...null==(Gm=km.sizes)?void 0:Gm.xs,field:{...null==(Zm=km.sizes)?void 0:Zm.xs.field,...hg},icon:{insetEnd:"1"}}},variants:km.variants,defaultProps:km.defaultProps}),pg=Ee("skeleton-start-color"),mg=Ee("skeleton-end-color"),gg={baseStyle:{[pg.variable]:"colors.gray.100",[mg.variable]:"colors.gray.400",_dark:{[pg.variable]:"colors.gray.800",[mg.variable]:"colors.gray.600"},background:pg.reference,borderColor:mg.reference,opacity:.7,borderRadius:"sm"}},vg=Ee("skip-link-bg"),yg={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[vg.variable]:"colors.white",_dark:{[vg.variable]:"colors.gray.700"},bg:vg.reference}}},{defineMultiStyleConfig:bg,definePartsStyle:wg}=lt(hf.keys),xg=Ee("slider-thumb-size"),_g=Ee("slider-track-size"),Sg=Ee("slider-bg"),kg=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Vf({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Eg=e=>({...Vf({orientation:e.orientation,horizontal:{h:_g.reference},vertical:{w:_g.reference}}),overflow:"hidden",borderRadius:"sm",[Sg.variable]:"colors.gray.200",_dark:{[Sg.variable]:"colors.whiteAlpha.200"},_disabled:{[Sg.variable]:"colors.gray.300",_dark:{[Sg.variable]:"colors.whiteAlpha.300"}},bg:Sg.reference}),Ag=e=>{const{orientation:t}=e;return{...Vf({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:xg.reference,h:xg.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},Pg=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Sg.variable]:`colors.${t}.500`,_dark:{[Sg.variable]:`colors.${t}.200`},bg:Sg.reference}},Tg=bg({baseStyle:wg((e=>({container:kg(e),track:Eg(e),thumb:Ag(e),filledTrack:Pg(e)}))),sizes:{lg:wg({container:{[xg.variable]:"sizes.4",[_g.variable]:"sizes.1"}}),md:wg({container:{[xg.variable]:"sizes.3.5",[_g.variable]:"sizes.1"}}),sm:wg({container:{[xg.variable]:"sizes.2.5",[_g.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Og=_f("spinner-size"),Cg={baseStyle:{width:[Og.reference],height:[Og.reference]},sizes:{xs:{[Og.variable]:"sizes.3"},sm:{[Og.variable]:"sizes.4"},md:{[Og.variable]:"sizes.6"},lg:{[Og.variable]:"sizes.8"},xl:{[Og.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:jg,definePartsStyle:Rg}=lt(ff.keys),Ig=jg({baseStyle:Rg({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:Rg({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),Mg=Ee("kbd-bg"),Lg={baseStyle:{[Mg.variable]:"colors.gray.100",_dark:{[Mg.variable]:"colors.whiteAlpha.100"},bg:Mg.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},Ng={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},{defineMultiStyleConfig:Dg,definePartsStyle:zg}=lt(nf.keys),Bg=Dg({baseStyle:zg({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:Ug,definePartsStyle:Fg}=lt(of.keys),$g=Ee("menu-bg"),Hg=Ee("menu-shadow"),Vg=Ug({baseStyle:Fg({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[$g.variable]:"#fff",[Hg.variable]:"shadows.sm",_dark:{[$g.variable]:"colors.gray.700",[Hg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:$g.reference,boxShadow:Hg.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[$g.variable]:"colors.gray.100",_dark:{[$g.variable]:"colors.whiteAlpha.100"}},_active:{[$g.variable]:"colors.gray.200",_dark:{[$g.variable]:"colors.whiteAlpha.200"}},_expanded:{[$g.variable]:"colors.gray.100",_dark:{[$g.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:$g.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:qg,definePartsStyle:Kg}=lt(af.keys),Wg=Ee("modal-bg"),Gg=Ee("modal-shadow"),Zg={bg:"blackAlpha.600",zIndex:"modal"},Yg=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}},Xg=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[Wg.variable]:"colors.white",[Gg.variable]:"shadows.lg",_dark:{[Wg.variable]:"colors.gray.700",[Gg.variable]:"shadows.dark-lg"},bg:Wg.reference,boxShadow:Gg.reference}},Jg={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Qg={position:"absolute",top:"2",insetEnd:"3"},ev=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},tv={px:"6",py:"4"};function rv(e){return Kg("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var nv=qg({baseStyle:Kg((e=>({overlay:Zg,dialogContainer:Um(Yg,e),dialog:Um(Xg,e),header:Jg,closeButton:Qg,body:Um(ev,e),footer:tv}))),sizes:{xs:rv("xs"),sm:rv("sm"),md:rv("md"),lg:rv("lg"),xl:rv("xl"),"2xl":rv("2xl"),"3xl":rv("3xl"),"4xl":rv("4xl"),"5xl":rv("5xl"),"6xl":rv("6xl"),full:rv("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:iv,definePartsStyle:ov}=lt(sf.keys),av=_f("number-input-stepper-width"),sv=_f("number-input-input-padding"),cv=jf(av).add("0.5rem").toString(),lv=_f("number-input-bg"),uv=_f("number-input-color"),dv=_f("number-input-border-color"),hv={[av.variable]:"sizes.6",[sv.variable]:cv},fv=e=>{var t,r;return null!=(r=null==(t=Um(km.baseStyle,e))?void 0:t.field)?r:{}},pv={width:av.reference},mv={borderStart:"1px solid",borderStartColor:dv.reference,color:uv.reference,bg:lv.reference,[uv.variable]:"colors.chakra-body-text",[dv.variable]:"colors.chakra-border-color",_dark:{[uv.variable]:"colors.whiteAlpha.800",[dv.variable]:"colors.whiteAlpha.300"},_active:{[lv.variable]:"colors.gray.200",_dark:{[lv.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},gv=ov((e=>{var t;return{root:hv,field:null!=(t=Um(fv,e))?t:{},stepperGroup:pv,stepper:mv}}));function vv(e){var t,r,n;const i=null==(t=km.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=i.field)?void 0:r.fontSize)?n:"md",s=Ih.fontSizes[a];return ov({field:{...i.field,paddingInlineEnd:sv.reference,verticalAlign:"top"},stepper:{fontSize:jf(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var yv,bv,wv,xv=iv({baseStyle:gv,sizes:{xs:vv("xs"),sm:vv("sm"),md:vv("md"),lg:vv("lg")},variants:km.variants,defaultProps:km.defaultProps}),_v={...null==(yv=km.baseStyle)?void 0:yv.field,textAlign:"center"},Sv={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},kv={outline:e=>{var t,r,n;return null!=(n=null==(r=Um(null==(t=km.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}},flushed:e=>{var t,r,n;return null!=(n=null==(r=Um(null==(t=km.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}},filled:e=>{var t,r,n;return null!=(n=null==(r=Um(null==(t=km.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}},unstyled:null!=(wv=null==(bv=km.variants)?void 0:bv.unstyled.field)?wv:{}},Ev={baseStyle:_v,sizes:Sv,variants:kv,defaultProps:km.defaultProps},{defineMultiStyleConfig:Av,definePartsStyle:Pv}=lt(cf.keys),Tv=_f("popper-bg"),Ov=_f("popper-arrow-bg"),Cv=_f("popper-arrow-shadow-color"),jv=Av({baseStyle:Pv({popper:{zIndex:10},content:{[Tv.variable]:"colors.white",bg:Tv.reference,[Ov.variable]:Tv.reference,[Cv.variable]:"colors.gray.200",_dark:{[Tv.variable]:"colors.gray.700",[Cv.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{definePartsStyle:Rv,defineMultiStyleConfig:Iv}=lt(Jh.keys),Mv=Ee("drawer-bg"),Lv=Ee("drawer-box-shadow");function Nv(e){return Rv("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Dv={bg:"blackAlpha.600",zIndex:"modal"},zv={display:"flex",zIndex:"modal",justifyContent:"center"},Bv=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Mv.variable]:"colors.white",[Lv.variable]:"shadows.lg",_dark:{[Mv.variable]:"colors.gray.700",[Lv.variable]:"shadows.dark-lg"},bg:Mv.reference,boxShadow:Lv.reference}},Uv={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Fv={position:"absolute",top:"2",insetEnd:"3"},$v={px:"6",py:"2",flex:"1",overflow:"auto"},Hv={px:"6",py:"4"},Vv=Iv({baseStyle:Rv((e=>({overlay:Dv,dialogContainer:zv,dialog:Um(Bv,e),header:Uv,closeButton:Fv,body:$v,footer:Hv}))),sizes:{xs:Nv("xs"),sm:Nv("md"),md:Nv("lg"),lg:Nv("2xl"),xl:Nv("4xl"),full:Nv("full")},defaultProps:{size:"xs"}}),{definePartsStyle:qv,defineMultiStyleConfig:Kv}=lt(Qh.keys),Wv=Kv({baseStyle:qv({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:Gv,defineMultiStyleConfig:Zv}=lt(ef.keys),Yv=Ee("form-control-color"),Xv=Zv({baseStyle:Gv({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[Yv.variable]:"colors.red.500",_dark:{[Yv.variable]:"colors.red.300"},color:Yv.reference},helperText:{mt:"2",[Yv.variable]:"colors.gray.600",_dark:{[Yv.variable]:"colors.whiteAlpha.600"},color:Yv.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:Jv,defineMultiStyleConfig:Qv}=lt(tf.keys),ey=Ee("form-error-color"),ty=Qv({baseStyle:Jv({text:{[ey.variable]:"colors.red.500",_dark:{[ey.variable]:"colors.red.300"},color:ey.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[ey.variable]:"colors.red.500",_dark:{[ey.variable]:"colors.red.300"},color:ey.reference}})}),ry={baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},ny={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},{defineMultiStyleConfig:iy,definePartsStyle:oy}=lt(Yh.keys),ay=Ee("breadcrumb-link-decor"),sy=iy({baseStyle:oy({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ay.reference,[ay.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ay.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),cy=e=>{const{colorScheme:t,theme:r}=e;if("gray"===t)return{color:Hf("gray.800","whiteAlpha.900")(e),_hover:{bg:Hf("gray.100","whiteAlpha.200")(e)},_active:{bg:Hf("gray.200","whiteAlpha.300")(e)}};const n=gp(`${t}.200`,.12)(r),i=gp(`${t}.200`,.24)(r);return{color:Hf(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Hf(`${t}.50`,n)(e)},_active:{bg:Hf(`${t}.100`,i)(e)}}},ly=e=>{const{colorScheme:t}=e,r=Hf("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Um(cy,e)}},uy={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},dy=e=>{var t;const{colorScheme:r}=e;if("gray"===r){const t=Hf("gray.100","whiteAlpha.200")(e);return{bg:t,color:Hf("gray.800","whiteAlpha.900")(e),_hover:{bg:Hf("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:Hf("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=uy[r])?t:{},s=Hf(n,`${r}.200`)(e);return{bg:s,color:Hf(i,"gray.800")(e),_hover:{bg:Hf(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:Hf(a,`${r}.400`)(e)}}},hy=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Hf(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Hf(`${t}.700`,`${t}.500`)(e)}}},fy={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:cy,outline:ly,solid:dy,link:hy,unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:py,defineMultiStyleConfig:my}=lt(yf.keys),gy=Ee("card-bg"),vy=Ee("card-padding"),yy=Ee("card-shadow"),by=Ee("card-radius"),wy=Ee("card-border-width","0"),xy=Ee("card-border-color"),_y=py({container:{[gy.variable]:"colors.chakra-body-bg",backgroundColor:gy.reference,boxShadow:yy.reference,borderRadius:by.reference,color:"chakra-body-text",borderWidth:wy.reference,borderColor:xy.reference},body:{padding:vy.reference,flex:"1 1 0%"},header:{padding:vy.reference},footer:{padding:vy.reference}}),Sy={sm:py({container:{[by.variable]:"radii.base",[vy.variable]:"space.3"}}),md:py({container:{[by.variable]:"radii.md",[vy.variable]:"space.5"}}),lg:py({container:{[by.variable]:"radii.xl",[vy.variable]:"space.7"}})},ky=my({baseStyle:_y,variants:{elevated:py({container:{[yy.variable]:"shadows.base",_dark:{[gy.variable]:"colors.gray.700"}}}),outline:py({container:{[wy.variable]:"1px",[xy.variable]:"colors.chakra-border-color"}}),filled:py({container:{[gy.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[vy.variable]:0},header:{[vy.variable]:0},footer:{[vy.variable]:0}}},sizes:Sy,defaultProps:{variant:"elevated",size:"md"}}),Ey=_f("close-button-size"),Ay=_f("close-button-bg"),Py={baseStyle:{w:[Ey.reference],h:[Ey.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ay.variable]:"colors.blackAlpha.100",_dark:{[Ay.variable]:"colors.whiteAlpha.100"}},_active:{[Ay.variable]:"colors.blackAlpha.200",_dark:{[Ay.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ay.reference},sizes:{lg:{[Ey.variable]:"sizes.10",fontSize:"md"},md:{[Ey.variable]:"sizes.8",fontSize:"xs"},sm:{[Ey.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:Ty,defaultProps:Oy}=Up,Cy={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Np.bg.reference,color:Np.color.reference,boxShadow:Np.shadow.reference},variants:Ty,defaultProps:Oy},jy={baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Ry={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},{definePartsStyle:Iy,defineMultiStyleConfig:My}=lt(Wh.keys),Ly=My({baseStyle:Iy({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),{definePartsStyle:Ny,defineMultiStyleConfig:Dy}=lt(Gh.keys),zy=Ee("alert-fg"),By=Ee("alert-bg"),Uy=Ny({container:{bg:By.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:zy.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:zy.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Fy(e){const{theme:t,colorScheme:r}=e;return{light:`colors.${r}.100`,dark:gp(`${r}.200`,.16)(t)}}var $y=Ny((e=>{const{colorScheme:t}=e,r=Fy(e);return{container:{[zy.variable]:`colors.${t}.600`,[By.variable]:r.light,_dark:{[zy.variable]:`colors.${t}.200`,[By.variable]:r.dark}}}})),Hy=Ny((e=>{const{colorScheme:t}=e,r=Fy(e);return{container:{[zy.variable]:`colors.${t}.600`,[By.variable]:r.light,_dark:{[zy.variable]:`colors.${t}.200`,[By.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:zy.reference}}})),Vy=Ny((e=>{const{colorScheme:t}=e,r=Fy(e);return{container:{[zy.variable]:`colors.${t}.600`,[By.variable]:r.light,_dark:{[zy.variable]:`colors.${t}.200`,[By.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:zy.reference}}})),qy=Ny((e=>{const{colorScheme:t}=e;return{container:{[zy.variable]:"colors.white",[By.variable]:`colors.${t}.600`,_dark:{[zy.variable]:"colors.gray.900",[By.variable]:`colors.${t}.200`},color:zy.reference}}})),Ky=Dy({baseStyle:Uy,variants:{subtle:$y,"left-accent":Hy,"top-accent":Vy,solid:qy},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Wy,defineMultiStyleConfig:Gy}=lt(Zh.keys),Zy=Ee("avatar-border-color"),Yy=Ee("avatar-bg"),Xy=Ee("avatar-font-size"),Jy=Ee("avatar-size"),Qy={borderRadius:"full",border:"0.2em solid",borderColor:Zy.reference,[Zy.variable]:"white",_dark:{[Zy.variable]:"colors.gray.800"}},eb={bg:Yy.reference,fontSize:Xy.reference,width:Jy.reference,height:Jy.reference,lineHeight:"1",[Yy.variable]:"colors.gray.200",_dark:{[Yy.variable]:"colors.whiteAlpha.400"}},tb=e=>{const{name:t,theme:r}=e,n=t?yp({string:t}):"colors.gray.400",i=(e=>t=>"dark"===mp(e)(t))(n)(r);let o="white";return i||(o="gray.800"),{bg:Yy.reference,fontSize:Xy.reference,color:o,borderColor:Zy.reference,verticalAlign:"top",width:Jy.reference,height:Jy.reference,"&:not([data-loaded])":{[Yy.variable]:n},[Zy.variable]:"colors.white",_dark:{[Zy.variable]:"colors.gray.800"}}},rb={fontSize:Xy.reference,lineHeight:"1"};function nb(e){const t="100%"!==e?Lh[e]:void 0;return Wy({container:{[Jy.variable]:null!=t?t:e,[Xy.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[Jy.variable]:null!=t?t:e,[Xy.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var ib={Accordion:Ly,Alert:Ky,Avatar:Gy({baseStyle:Wy((e=>({badge:Um(Qy,e),excessLabel:Um(eb,e),container:Um(tb,e),label:rb}))),sizes:{"2xs":nb(4),xs:nb(6),sm:nb(8),md:nb(12),lg:nb(16),xl:nb(24),"2xl":nb(32),full:nb("100%")},defaultProps:{size:"md"}}),Badge:Up,Breadcrumb:sy,Button:fy,Checkbox:ng,CloseButton:Py,Code:Cy,Container:jy,Divider:Ry,Drawer:Vv,Editable:Wv,Form:Xv,FormError:ty,FormLabel:ry,Heading:ny,Input:km,Kbd:Lg,Link:Ng,List:Bg,Menu:Vg,Modal:nv,NumberInput:xv,PinInput:Ev,Popover:jv,Progress:Bm,Radio:cg,Select:fg,Skeleton:gg,SkipLink:yg,Slider:Tg,Spinner:Cg,Stat:Ig,Switch:$f,Table:Xf,Tabs:Lp,Tag:Qp,Textarea:Pm,Tooltip:jm,Card:ky,Stepper:qh},ob={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},ab={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},sb={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},cb={semanticTokens:ob,direction:"ltr",...Nh,components:ib,styles:ab,config:sb},lb={semanticTokens:ob,direction:"ltr",components:{},...Nh,styles:ab,config:sb},ub=(e,t)=>e.find((e=>e.id===t));function db(e,t){const r=hb(e,t);return{position:r,index:r?e[r].findIndex((e=>e.id===t)):-1}}function hb(e,t){for(const[r,n]of Object.entries(e))if(ub(n,t))return r}function fb(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function pb(e,t=[]){const r=(0,n.useRef)(e);return(0,n.useEffect)((()=>{r.current=e})),(0,n.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}function mb(e,t){const r=(0,n.useRef)(!1),i=(0,n.useRef)(!1);(0,n.useEffect)((()=>{if(r.current&&i.current)return e();i.current=!0}),t),(0,n.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])}const gb=(0,n.createContext)(null);function vb(){const e=(0,n.useContext)(gb);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:i}=e,o=(0,n.useId)();(0,n.useEffect)((()=>i(o)),[]);return!t&&r?[!1,()=>r&&r(o)]:[!0]}function yb(){return function(e){return null===e||e.isPresent}((0,n.useContext)(gb))}const bb=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),wb=(0,n.createContext)({}),xb="undefined"!==typeof document,_b=xb?n.useLayoutEffect:n.useEffect,Sb=(0,n.createContext)({strict:!1}),kb=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Eb="data-"+kb("framerAppearId"),Ab=!1,Pb=!1;class Tb{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Ob=["prepare","read","update","preRender","render","postRender"];function Cb(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ob.reduce(((e,t)=>(e[t]=function(e){let t=new Tb,r=new Tb,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const c=s&&i,l=c?t:r;return o&&a.add(e),l.add(e)&&c&&i&&(n=t.order.length),e},cancel:e=>{r.remove(e),a.delete(e)},process:c=>{if(i)o=!0;else{if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let r=0;rr=!0)),e)),{}),a=e=>{o[e].process(i)},s=()=>{const o=Pb?i.timestamp:performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,Ob.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},c=Ob.reduce(((t,a)=>{const c=o[a];return t[a]=(t,o=!1,a=!1)=>(r||(r=!0,n=!0,i.isProcessing||e(s)),c.schedule(t,o,a)),t}),{});return{schedule:c,cancel:e=>Ob.forEach((t=>o[t].cancel(e))),state:i,steps:o}}const{schedule:jb,cancel:Rb}=Cb(queueMicrotask,!1);function Ib(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Mb(e){return"string"===typeof e||Array.isArray(e)}function Lb(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const Nb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Db=["initial",...Nb];function zb(e){return Lb(e.animate)||Db.some((t=>Mb(e[t])))}function Bb(e){return Boolean(zb(e)||e.variants)}function Ub(e){const{initial:t,animate:r}=function(e,t){if(zb(e)){const{initial:t,animate:r}=e;return{initial:!1===t||Mb(t)?t:void 0,animate:Mb(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(wb));return(0,n.useMemo)((()=>({initial:t,animate:r})),[Fb(t),Fb(r)])}function Fb(e){return Array.isArray(e)?e.join(" "):e}const $b={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hb={};for(const r in $b)Hb[r]={isEnabled:e=>$b[r].some((t=>!!e[t]))};const Vb=(0,n.createContext)({}),qb=(0,n.createContext)({}),Kb=Symbol.for("motionComponentSymbol");function Wb({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(const t in e)Hb[t]={...Hb[t],...e[t]}}(e);const a=(0,n.forwardRef)((function(a,s){let c;const l={...(0,n.useContext)(bb),...a,layoutId:Gb(a)},{isStatic:u}=l,d=Ub(a),h=i(a,u);if(!u&&xb){d.visualElement=function(e,t,r,i){const{visualElement:o}=(0,n.useContext)(wb),a=(0,n.useContext)(Sb),s=(0,n.useContext)(gb),c=(0,n.useContext)(bb).reducedMotion,l=(0,n.useRef)();i=i||a.renderer,!l.current&&i&&(l.current=i(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:c}));const u=l.current;(0,n.useInsertionEffect)((()=>{u&&u.update(r,s)}));const d=(0,n.useRef)(Boolean(r[Eb]&&!window.HandoffComplete));return _b((()=>{u&&(jb.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,n.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),u}(o,h,l,t);const r=(0,n.useContext)(qb),i=(0,n.useContext)(Sb).strict;d.visualElement&&(c=d.visualElement.loadFeatures(l,i,e,r))}return n.createElement(wb.Provider,{value:d},c&&d.visualElement?n.createElement(c,{visualElement:d.visualElement,...l}):null,r(o,a,function(e,t,r){return(0,n.useCallback)((n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"===typeof r?r(n):Ib(r)&&(r.current=n))}),[t])}(h,d.visualElement,s),h,u,d.visualElement))}));return a[Kb]=o,a}function Gb({layoutId:e}){const t=(0,n.useContext)(Vb).id;return t&&void 0!==e?t+"-"+e:e}function Zb(e){function t(t,r={}){return Wb(e(t,r))}if("undefined"===typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const Yb=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xb(e){return"string"===typeof e&&!e.includes("-")&&!!(Yb.indexOf(e)>-1||/[A-Z]/.test(e))}const Jb={};const Qb=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ew=new Set(Qb);function tw(e,{layout:t,layoutId:r}){return ew.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!Jb[e]||"opacity"===e)}const rw=e=>Boolean(e&&e.getVelocity),nw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iw=Qb.length;const ow=e=>t=>"string"===typeof t&&t.startsWith(e),aw=ow("--"),sw=ow("var(--"),cw=(e,t)=>t&&"number"===typeof e?t.transform(e):e,lw=(e,t,r)=>Math.min(Math.max(r,e),t),uw={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},dw={...uw,transform:e=>lw(0,1,e)},hw={...uw,default:1},fw=e=>Math.round(1e5*e)/1e5,pw=/(-)?([\d]*\.?[\d])+/g,mw=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gw=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function vw(e){return"string"===typeof e}const yw=e=>({test:t=>vw(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),bw=yw("deg"),ww=yw("%"),xw=yw("px"),_w=yw("vh"),Sw=yw("vw"),kw={...ww,parse:e=>ww.parse(e)/100,transform:e=>ww.transform(100*e)},Ew={...uw,transform:Math.round},Aw={borderWidth:xw,borderTopWidth:xw,borderRightWidth:xw,borderBottomWidth:xw,borderLeftWidth:xw,borderRadius:xw,radius:xw,borderTopLeftRadius:xw,borderTopRightRadius:xw,borderBottomRightRadius:xw,borderBottomLeftRadius:xw,width:xw,maxWidth:xw,height:xw,maxHeight:xw,size:xw,top:xw,right:xw,bottom:xw,left:xw,padding:xw,paddingTop:xw,paddingRight:xw,paddingBottom:xw,paddingLeft:xw,margin:xw,marginTop:xw,marginRight:xw,marginBottom:xw,marginLeft:xw,rotate:bw,rotateX:bw,rotateY:bw,rotateZ:bw,scale:hw,scaleX:hw,scaleY:hw,scaleZ:hw,skew:bw,skewX:bw,skewY:bw,distance:xw,translateX:xw,translateY:xw,translateZ:xw,x:xw,y:xw,z:xw,perspective:xw,transformPerspective:xw,opacity:dw,originX:kw,originY:kw,originZ:xw,zIndex:Ew,fillOpacity:dw,strokeOpacity:dw,numOctaves:Ew};function Pw(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let c=!1,l=!1,u=!0;for(const d in t){const e=t[d];if(aw(d)){o[d]=e;continue}const r=Aw[d],n=cw(e,r);if(ew.has(d)){if(c=!0,a[d]=n,!u)continue;e!==(r.default||0)&&(u=!1)}else d.startsWith("origin")?(l=!0,s[d]=n):i[d]=n}if(t.transform||(c||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function Ow(e,t,r){for(const n in t)rw(t[n])||tw(n,r)||(e[n]=t[n])}function Cw(e,t,r){const i={};return Ow(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},t,r){return(0,n.useMemo)((()=>{const n=Tw();return Pw(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)}),[t])}(e,t,r)),i}function jw(e,t,r){const n={},i=Cw(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Rw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Iw(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Rw.has(e)}let Mw=e=>!Iw(e);try{(Lw=require("@emotion/is-prop-valid").default)&&(Mw=e=>e.startsWith("on")?!Iw(e):Lw(e))}catch(Yr){}var Lw;function Nw(e,t,r){return"string"===typeof e?e:xw.transform(t+r*e)}const Dw={offset:"stroke-dashoffset",array:"stroke-dasharray"},zw={offset:"strokeDashoffset",array:"strokeDasharray"};function Bw(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:c=0,...l},u,d,h){if(Pw(e,l,u,h),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){return`${Nw(t,e.x,e.width)} ${Nw(r,e.y,e.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?Dw:zw;e[o.offset]=xw.transform(-n);const a=xw.transform(t),s=xw.transform(r);e[o.array]=`${a} ${s}`}(f,a,s,c,!1)}const Uw=()=>({...Tw(),attrs:{}}),Fw=e=>"string"===typeof e&&"svg"===e.toLowerCase();function $w(e,t,r,i){const o=(0,n.useMemo)((()=>{const r=Uw();return Bw(r,t,{enableHardwareAcceleration:!1},Fw(i),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};Ow(t,e.style,e),o.style={...t,...o.style}}return o}function Hw(e=!1){return(t,r,i,{latestValues:o},a)=>{const s=(Xb(t)?$w:jw)(r,o,a,t),c=function(e,t,r){const n={};for(const i in e)"values"===i&&"object"===typeof e.values||(Mw(i)||!0===r&&Iw(i)||!t&&!Iw(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"===typeof t,e),l={...c,...s,ref:i},{children:u}=r,d=(0,n.useMemo)((()=>rw(u)?u.get():u),[u]);return(0,n.createElement)(t,{...l,children:d})}}function Vw(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const qw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Kw(e,t,r,n){Vw(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(qw.has(i)?i:kb(i),t.attrs[i])}function Ww(e,t){const{style:r}=e,n={};for(const i in r)(rw(r[i])||t.style&&rw(t.style[i])||tw(i,e))&&(n[i]=r[i]);return n}function Gw(e,t){const r=Ww(e,t);for(const n in e)if(rw(e[n])||rw(t[n])){r[-1!==Qb.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function Zw(e,t,r,n={},i={}){return"function"===typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}function Yw(e){const t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Xw=e=>Array.isArray(e),Jw=e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue),Qw=e=>Xw(e)?e[e.length-1]||0:e;function ex(e){const t=rw(e)?e.get():e;return Jw(t)?t.toValue():t}const tx=e=>(t,r)=>{const i=(0,n.useContext)(wb),o=(0,n.useContext)(gb),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:rx(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a}(e,t,i,o);return r?a():Yw(a)};function rx(e,t,r,n){const i={},o=n(e,{});for(const h in o)i[h]=ex(o[h]);let{initial:a,animate:s}=e;const c=zb(e),l=Bb(e);t&&l&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!==typeof d&&!Lb(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const r=Zw(e,t);if(!r)return;const{transitionEnd:n,transition:o,...a}=r;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in n)i[e]=n[e]}))}return i}const nx=e=>e,{schedule:ix,cancel:ox,state:ax,steps:sx}=Cb("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:nx,!0),cx={useVisualState:tx({scrapeMotionValuesFromProps:Gw,createRenderState:Uw,onMount:(e,t,{renderState:r,latestValues:n})=>{ix.read((()=>{try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),ix.render((()=>{Bw(r,n,{enableHardwareAcceleration:!1},Fw(t.tagName),e.transformTemplate),Kw(t,r)}))}})},lx={useVisualState:tx({scrapeMotionValuesFromProps:Ww,createRenderState:Tw})};function ux(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const dx=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function hx(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const fx=e=>t=>dx(t)&&e(t,hx(t));function px(e,t,r,n){return ux(e,t,fx(r),n)}const mx=(e,t)=>r=>t(e(r)),gx=(...e)=>e.reduce(mx);function vx(e){let t=null;return()=>{const r=()=>{t=null};return null===t&&(t=e,r)}}const yx=vx("dragHorizontal"),bx=vx("dragVertical");function wx(e){let t=!1;if("y"===e)t=bx();else if("x"===e)t=yx();else{const e=yx(),r=bx();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function xx(){const e=wx(!0);return!e||(e(),!1)}class _x{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Sx(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End");return px(e.current,r,((r,i)=>{if("touch"===r.pointerType||xx())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&ix.update((()=>o[n](r,i)))}),{passive:!e.getProps()[n]})}const kx=(e,t)=>!!t&&(e===t||kx(e,t.parentElement));function Ex(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,hx(r))}const Ax=new WeakMap,Px=new WeakMap,Tx=e=>{const t=Ax.get(e.target);t&&t(e)},Ox=e=>{e.forEach(Tx)};function Cx(e,t,r){const n=function({root:e,...t}){const r=e||document;Px.has(r)||Px.set(r,{});const n=Px.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Ox,{root:e,...t})),n[i]}(t);return Ax.set(e,r),n.observe(e),()=>{Ax.delete(e),n.unobserve(e)}}const jx={some:0,all:1};const Rx={inView:{Feature:class extends _x{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"===typeof n?n:jx[n]};return Cx(this.node.current,o,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends _x{constructor(){super(...arguments),this.removeStartListeners=nx,this.removeEndListeners=nx,this.removeAccessibleListeners=nx,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),n=px(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();ix.update((()=>{i||kx(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)}))}),{passive:!(r.onTap||r.onPointerUp)}),i=px(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=gx(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=ux(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=ux(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Ex("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&ix.update((()=>r(e,t)))}))})),Ex("down",((e,t)=>{this.startPress(e,t)}))})),t=ux(this.node.current,"blur",(()=>{this.isPressing&&Ex("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=gx(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&ix.update((()=>r(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xx()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&ix.update((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=px(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=ux(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=gx(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends _x{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=gx(ux(this.node.current,"focus",(()=>this.onFocus())),ux(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends _x{mount(){this.unmount=gx(Sx(this.node,!0),Sx(this.node,!1))}unmount(){}}}};function Ix(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[r]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.getVelocity())),t}(e))}let Lx=nx,Nx=nx;const Dx=e=>1e3*e,zx=e=>e/1e3,Bx=!1,Ux=e=>Array.isArray(e)&&"number"===typeof e[0];function Fx(e){return Boolean(!e||"string"===typeof e&&Hx[e]||Ux(e)||Array.isArray(e)&&e.every(Fx))}const $x=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Hx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$x([0,.65,.55,1]),circOut:$x([.55,0,1,.45]),backIn:$x([.31,.01,.66,-.59]),backOut:$x([.33,1.53,.69,.99])};function Vx(e){if(e)return Ux(e)?$x(e):Array.isArray(e)?e.map(Vx):Hx[e]}const qx=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Kx=1e-7,Wx=12;function Gx(e,t,r,n){if(e===t&&r===n)return nx;const i=t=>function(e,t,r,n,i){let o,a,s=0;do{a=t+(r-t)/2,o=qx(a,n,i)-e,o>0?r=a:t=a}while(Math.abs(o)>Kx&&++s0===e||1===e?e:qx(i(e),t,n)}const Zx=Gx(.42,0,1,1),Yx=Gx(0,0,.58,1),Xx=Gx(.42,0,.58,1),Jx=e=>Array.isArray(e)&&"number"!==typeof e[0],Qx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,e_=e=>t=>1-e(1-t),t_=e=>1-Math.sin(Math.acos(e)),r_=e_(t_),n_=Qx(t_),i_=Gx(.33,1.53,.69,.99),o_=e_(i_),a_=Qx(o_),s_={linear:nx,easeIn:Zx,easeInOut:Xx,easeOut:Yx,circIn:t_,circInOut:n_,circOut:r_,backIn:o_,backInOut:a_,backOut:i_,anticipate:e=>(e*=2)<1?.5*o_(e):.5*(2-Math.pow(2,-10*(e-1)))},c_=e=>{if(Array.isArray(e)){Nx(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return Gx(t,r,n,i)}return"string"===typeof e?(Nx(void 0!==s_[e],`Invalid easing type '${e}'`),s_[e]):e},l_=(e,t)=>r=>Boolean(vw(r)&&gw.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),u_=(e,t,r)=>n=>{if(!vw(n))return n;const[i,o,a,s]=n.match(pw);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},d_={...uw,transform:e=>Math.round((e=>lw(0,255,e))(e))},h_={test:l_("rgb","red"),parse:u_("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+d_.transform(e)+", "+d_.transform(t)+", "+d_.transform(r)+", "+fw(dw.transform(n))+")"};const f_={test:l_("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:h_.transform},p_={test:l_("hsl","hue"),parse:u_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ww.transform(fw(t))+", "+ww.transform(fw(r))+", "+fw(dw.transform(n))+")"},m_={test:e=>h_.test(e)||f_.test(e)||p_.test(e),parse:e=>h_.test(e)?h_.parse(e):p_.test(e)?p_.parse(e):f_.parse(e),transform:e=>vw(e)?e:e.hasOwnProperty("red")?h_.transform(e):p_.transform(e)},g_=(e,t,r)=>-r*e+r*t+e;function v_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}const y_=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},b_=[f_,h_,p_];function w_(e){const t=(e=>b_.find((t=>t.test(e))))(e);Nx(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===p_&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=v_(s,n,e+1/3),o=v_(s,n,e),a=v_(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(r)),r}const x_=(e,t)=>{const r=w_(e),n=w_(t),i={...r};return e=>(i.red=y_(r.red,n.red,e),i.green=y_(r.green,n.green,e),i.blue=y_(r.blue,n.blue,e),i.alpha=g_(r.alpha,n.alpha,e),h_.transform(i))};const __={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:nx},S_={regex:mw,countKey:"Colors",token:"${c}",parse:m_.parse},k_={regex:pw,countKey:"Numbers",token:"${n}",parse:uw.parse};function E_(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function A_(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&E_(r,__),E_(r,S_),E_(r,k_),r}function P_(e){return A_(e).values}function T_(e){const{values:t,numColors:r,numVars:n,tokenised:i}=A_(e),o=t.length;return e=>{let t=i;for(let i=0;i"number"===typeof e?0:e;const C_={test:function(e){var t,r;return isNaN(e)&&vw(e)&&((null===(t=e.match(pw))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(mw))||void 0===r?void 0:r.length)||0)>0},parse:P_,createTransformer:T_,getAnimatableNone:function(e){const t=P_(e);return T_(e)(t.map(O_))}},j_=(e,t)=>r=>`${r>0?t:e}`;function R_(e,t){return"number"===typeof e?r=>g_(e,t,r):m_.test(e)?x_(e,t):e.startsWith("var(")?j_(e,t):L_(e,t)}const I_=(e,t)=>{const r=[...e],n=r.length,i=e.map(((e,r)=>R_(e,t[r])));return e=>{for(let t=0;t{const r={...e,...t},n={};for(const i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=R_(e[i],t[i]));return e=>{for(const t in n)r[t]=n[t](e);return r}},L_=(e,t)=>{const r=C_.createTransformer(t),n=A_(e),i=A_(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?gx(I_(n.values,i.values),r):(Lx(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),j_(e,t))},N_=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},D_=(e,t)=>r=>g_(e,t,r);function z_(e,t,r){const n=[],i=r||function(e){return"number"===typeof e?D_:"string"===typeof e?m_.test(e)?x_:L_:Array.isArray(e)?I_:"object"===typeof e?M_:D_}(e[0]),o=e.length-1;for(let a=0;at[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=z_(t,n,i),s=a.length,c=t=>{let r=0;if(s>1)for(;rc(lw(e[0],e[o-1],t)):c}function U_(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=N_(0,t,n);e.push(g_(r,1,i))}}(t,e.length-1),t}function F_({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=Jx(n)?n.map(c_):c_(n),o={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:U_(t),e),s=B_(a,t,{ease:Array.isArray(i)?i:(c=t,l=i,c.map((()=>l||Xx)).splice(0,c.length-1))});var c,l;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}function $_(e,t){return t?e*(1e3/t):0}const H_=5;function V_(e,t,r){const n=Math.max(t-H_,0);return $_(r-e(n),t-n)}const q_=.001,K_=.01,W_=10,G_=.05,Z_=1;function Y_({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Lx(e<=Dx(W_),"Spring duration must be 10 seconds or less");let a=1-t;a=lw(G_,Z_,a),e=lw(K_,W_,zx(e)),a<1?(i=t=>{const n=t*a,i=n*e,o=n-r,s=J_(t,a),c=Math.exp(-i);return q_-o/s*c},o=t=>{const n=t*a*e,o=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,c=Math.exp(-n),l=J_(Math.pow(t,2),a);return(-i(t)+q_>0?-1:1)*((o-s)*c)/l}):(i=t=>Math.exp(-t*e)*((t-r)*e+1)-q_,o=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let i=1;ivoid 0!==e[t]))}function rS({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:c,mass:l,duration:u,velocity:d,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tS(e,eS)&&tS(e,Q_)){const r=Y_(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-zx(n.velocity||0)}),f=d||0,p=c/(2*Math.sqrt(s*l)),m=o-i,g=zx(Math.sqrt(s/l)),v=Math.abs(m)<5;let y;if(r||(r=v?.01:2),t||(t=v?.005:.5),p<1){const e=J_(g,p);y=t=>{const r=Math.exp(-p*g*t);return o-r*((f+p*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===p)y=e=>o-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const r=Math.exp(-p*g*t),n=Math.min(e*t,300);return o-r*((f+p*g*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}return{calculatedDuration:h&&u||null,next:e=>{const n=y(e);if(h)a.done=e>=u;else{let i=f;0!==e&&(i=p<1?V_(y,e,n):0);const s=Math.abs(i)<=r,c=Math.abs(o-n)<=t;a.done=s&&c}return a.value=a.done?o:n,a}}}function nS({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=e=>void 0===s?c:void 0===c||Math.abs(s-e)-p*Math.exp(-e/n),y=e=>g+v(e),b=e=>{const t=v(e),r=y(e);h.done=Math.abs(t)<=l,h.value=h.done?g:r};let w,x;const _=e=>{(e=>void 0!==s&&ec)(h.value)&&(w=e,x=rS({keyframes:[h.value,f(h.value)],velocity:V_(y,e,h.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),_(e)),void 0!==w&&e>w?x.next(e-w):(!t&&b(e),h)}}}let iS;function oS(){iS=void 0}const aS={now:()=>(void 0===iS&&aS.set(ax.isProcessing||Pb?ax.timestamp:performance.now()),iS),set:e=>{iS=e,queueMicrotask(oS)}},sS=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ix.update(t,!0),stop:()=>ox(t),now:()=>ax.isProcessing?ax.timestamp:aS.now()}},cS=2e4;function lS(e){let t=0;let r=e.next(t);for(;!r.done&&t=cS?1/0:t}const uS={decay:nS,inertia:nS,tween:F_,keyframes:F_,spring:rS};function dS({autoplay:e=!0,delay:t=0,driver:r=sS,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:c,onStop:l,onComplete:u,onUpdate:d,...h}){let f,p,m=1,g=!1;const v=()=>{p=new Promise((e=>{f=e}))};let y;v();const b=uS[i]||F_;let w;b!==F_&&"number"!==typeof n[0]&&(w=B_([0,100],n,{clamp:!1}),n=[0,100]);const x=b({...h,keyframes:n});let _;"mirror"===s&&(_=b({...h,keyframes:[...n].reverse(),velocity:-(h.velocity||0)}));let S="idle",k=null,E=null,A=null;null===x.calculatedDuration&&o&&(x.calculatedDuration=lS(x));const{calculatedDuration:P}=x;let T=1/0,O=1/0;null!==P&&(T=P+a,O=T*(o+1)-a);let C=0;const j=e=>{if(null===E)return;m>0&&(E=Math.min(E,e)),m<0&&(E=Math.min(e-O/m,E)),C=null!==k?k:Math.round(e-E)*m;const r=C-t*(m>=0?1:-1),i=m>=0?r<0:r>O;C=Math.max(r,0),"finished"===S&&null===k&&(C=O);let c=C,l=x;if(o){const e=Math.min(C,O)/T;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,o+1);Boolean(t%2)&&("reverse"===s?(r=1-r,a&&(r-=a/T)):"mirror"===s&&(l=_)),c=lw(0,1,r)*T}const u=i?{done:!1,value:n[0]}:l.next(c);w&&(u.value=w(u.value));let{done:h}=u;i||null===P||(h=m>=0?C>=O:C<=0);const f=null===k&&("finished"===S||"running"===S&&h);return d&&d(u.value),f&&M(),u},R=()=>{y&&y.stop(),y=void 0},I=()=>{S="idle",R(),f(),v(),E=A=null},M=()=>{S="finished",u&&u(),R(),f()},L=()=>{if(g)return;y||(y=r(j));const e=y.now();c&&c(),null!==k?E=e-k:E&&"finished"!==S||(E=e),"finished"===S&&v(),A=E,k=null,S="running",y.start()};e&&L();const N={then:(e,t)=>p.then(e,t),get time(){return zx(C)},set time(e){e=Dx(e),C=e,null===k&&y&&0!==m?E=y.now()-e/m:k=e},get duration(){const e=null===x.calculatedDuration?lS(x):x.calculatedDuration;return zx(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,N.time=zx(C))},get state(){return S},play:L,pause:()=>{S="paused",k=C},stop:()=>{g=!0,"idle"!==S&&(S="idle",l&&l(),I())},cancel:()=>{null!==A&&j(A),I()},complete:()=>{S="finished"},sample:e=>(E=0,j(e))};return N}const hS=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),fS=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function pS(e,t,{onUpdate:r,onComplete:n,...i}){if(!(hS()&&fS.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,a,s=!1,c=!1;const l=()=>{a=new Promise((e=>{o=e}))};l();let{keyframes:u,duration:d=300,ease:h,times:f}=i;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Fx(t.ease))(t,i)){const e=dS({...i,repeat:0,delay:0});let t={done:!1,value:u[0]};const r=[];let n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;f=void 0,u=r,d=n-10,h="linear"}const p=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:c}={}){const l={[t]:r};c&&(l.offset=c);const u=Vx(s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,u,{...i,duration:d,ease:h,times:f}),m=()=>{c=!1,p.cancel()},g=()=>{c=!0,ix.update(m),o(),l()};p.onfinish=()=>{c||(e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2===1?0:e.length-1]}(u,i)),n&&n(),g())};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,nx),get time(){return zx(p.currentTime||0)},set time(e){p.currentTime=Dx(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return zx(d)},play:()=>{s||(p.play(),ox(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const r=dS({...i,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}g()},complete:()=>{c||p.finish()},cancel:g}}const mS={type:"spring",stiffness:500,damping:25,restSpeed:10},gS={type:"keyframes",duration:.8},vS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yS=(e,{keyframes:t})=>t.length>2?gS:ew.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:mS:vS,bS=(e,t)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!C_.test(t)&&"0"!==t||t.startsWith("url("))),wS=new Set(["brightness","contrast","saturate","opacity"]);function xS(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(pw)||[];if(!n)return e;const i=r.replace(n,"");let o=wS.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const _S=/([a-z-]*)\(.*?\)/g,SS={...C_,getAnimatableNone:e=>{const t=e.match(_S);return t?t.map(xS).join(" "):e}},kS={...Aw,color:m_,backgroundColor:m_,outlineColor:m_,fill:m_,stroke:m_,borderColor:m_,borderTopColor:m_,borderRightColor:m_,borderBottomColor:m_,borderLeftColor:m_,filter:SS,WebkitFilter:SS},ES=e=>kS[e];function AS(e,t){let r=ES(e);return r!==SS&&(r=C_),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const PS=e=>/^0[^.\s]+$/.test(e);function TS(e){return"number"===typeof e?0===e:null!==e?"none"===e||"0"===e||PS(e):void 0}function OS(e,t){return e[t]||e.default||e}const CS=(e,t,r,n={})=>i=>{const o=OS(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s-=Dx(a);const c=function(e,t,r,n){const i=bS(t,r);let o;o=Array.isArray(r)?[...r]:[null,r];const a=void 0!==n.from?n.from:e.get();let s;const c=[];for(let l=0;l{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}(o)||(f={...f,...yS(e,f)}),f.duration&&(f.duration=Dx(f.duration)),f.repeatDelay&&(f.repeatDelay=Dx(f.repeatDelay)),!d||!h||Bx||!1===o.type||Ab)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:nx,pause:nx,stop:nx,then:e=>(e(),Promise.resolve()),cancel:nx,complete:nx});return t?dS({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(Bx?{...f,delay:0}:f);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=pS(t,e,f);if(r)return r}return dS(f)};function jS(e){return Boolean(rw(e)&&e.add)}const RS=e=>/^\-?\d*\.?\d+$/.test(e);function IS(e,t){-1===e.indexOf(t)&&e.push(t)}function MS(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class LS{constructor(){this.subscriptions=[]}add(e){return IS(this.subscriptions,e),()=>MS(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i{const r=aS.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=aS.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new LS);const r=this.events[e].add(t);return"change"===e?()=>{r(),ix.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return NS.current&&NS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=aS.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return $_(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zS(e,t){return new DS(e,t)}const BS=e=>t=>t.test(e),US=[uw,xw,ww,bw,Sw,_w,{test:e=>"auto"===e,parse:e=>e}],FS=e=>US.find(BS(e)),$S=[...US,m_,C_],HS=e=>$S.find(BS(e));function VS(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,zS(r))}function qS(e,t){const r=Mx(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){VS(e,a,Qw(o[a]))}}function KS(e,t){if(!t)return;return(t[e]||t.default||t).from}function WS({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function GS(e,t){const r=e.get();if(!Array.isArray(t))return r!==t;for(let n=0;nc.remove(d)))),l.push(h)}return a&&Promise.all(l).then((()=>{a&&qS(e,a)})),l}function YS(e,t,r={}){const n=Mx(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(ZS(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,c=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(XS).forEach(((e,n)=>{e.notify("AnimationStart",t),a.push(YS(e,t,{...o,delay:r+c(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then((()=>t()))}return Promise.all([o(),a(r.delay)])}function XS(e,t){return e.sortNodePosition(t)}const JS=[...Nb].reverse(),QS=Nb.length;function ek(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>YS(e,t,r)));n=Promise.all(i)}else if("string"===typeof t)n=YS(e,t,r);else{const i="function"===typeof t?Mx(e,t,r.custom):t;n=Promise.all(ZS(e,i,r))}return n.then((()=>e.notify("AnimationComplete",t)))}(e,t,r))))}function tk(e){let t=ek(e);const r={animate:nk(!0),whileInView:nk(),whileHover:nk(),whileTap:nk(),whileDrag:nk(),whileFocus:nk(),exit:nk()};let n=!0;const i=(t,r)=>{const n=Mx(e,r);if(n){const{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){const s=e.getProps(),c=e.getVariantContext(!0)||{},l=[],u=new Set;let d={},h=1/0;for(let t=0;th&&g,w=!1;const x=Array.isArray(m)?m:[m];let _=x.reduce(i,{});!1===v&&(_={});const{prevResolvedValues:S={}}=p,k={...S,..._},E=e=>{b=!0,u.has(e)&&(w=!0,u.delete(e)),p.needsAnimating[e]=!0};for(const e in k){const t=_[e],r=S[e];if(d.hasOwnProperty(e))continue;let n=!1;n=Xw(t)&&Xw(r)?!Ix(t,r):t!==r,n?void 0!==t?E(e):u.add(e):void 0!==t&&u.has(e)?E(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=_,p.isActive&&(d={...d,..._}),n&&e.blockInitialAnimation&&(b=!1),!b||y&&!w||l.push(...x.map((e=>({animation:e,options:{type:f,...o}}))))}if(u.size){const t={};u.forEach((r=>{const n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)})),l.push({animation:t})}let f=Boolean(l.length);return!n||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(f=!1),n=!1,f?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const s=o(i,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function rk(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!Ix(t,e)}function nk(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ik=0;const ok={animation:{Feature:class extends _x{constructor(e){super(e),e.animationState||(e.animationState=tk(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Lb(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends _x{constructor(){super(...arguments),this.id=ik++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!==r&&void 0!==r?r:this.node.getProps().custom});t&&!e&&i.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},ak=(e,t)=>Math.abs(e-t);class sk{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=uk(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=ak(e.x,t.x),n=ak(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:i}=ax;this.history.push({...n,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ck(t,this.transformPagePoint),ix.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=uk("pointercancel"===e.type?this.lastMoveEventInfo:ck(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!dx(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const o=ck(hx(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=ax;this.history=[{...a,timestamp:s}];const{onSessionStart:c}=t;c&&c(e,uk(o,this.history)),this.removeListeners=gx(px(this.contextWindow,"pointermove",this.handlePointerMove),px(this.contextWindow,"pointerup",this.handlePointerUp),px(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ox(this.updatePoint)}}function ck(e,t){return t?{point:t(e.point)}:e}function lk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uk({point:e},t){return{point:e,delta:lk(e,hk(t)),offset:lk(e,dk(t)),velocity:fk(t,.1)}}function dk(e){return e[0]}function hk(e){return e[e.length-1]}function fk(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=hk(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Dx(t)));)r--;if(!n)return{x:0,y:0};const o=zx(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function pk(e){return e.max-e.min}function mk(e,t=0,r=.01){return Math.abs(e-t)<=r}function gk(e,t,r,n=.5){e.origin=n,e.originPoint=g_(t.min,t.max,e.origin),e.scale=pk(r)/pk(t),(mk(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=g_(r.min,r.max,e.origin)-e.originPoint,(mk(e.translate)||isNaN(e.translate))&&(e.translate=0)}function vk(e,t,r,n){gk(e.x,t.x,r.x,n?n.originX:void 0),gk(e.y,t.y,r.y,n?n.originY:void 0)}function yk(e,t,r){e.min=r.min+t.min,e.max=e.min+pk(t)}function bk(e,t,r){e.min=t.min-r.min,e.max=e.min+pk(t)}function wk(e,t,r){bk(e.x,t.x,r.x),bk(e.y,t.y,r.y)}function xk(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function _k(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Pk=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Tk(e){return[e("x"),e("y")]}function Ok({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Ck(e){return void 0===e||1===e}function jk({scale:e,scaleX:t,scaleY:r}){return!Ck(e)||!Ck(t)||!Ck(r)}function Rk(e){return jk(e)||Ik(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ik(e){return Mk(e.x)||Mk(e.y)}function Mk(e){return e&&"0%"!==e}function Lk(e,t,r){return r+t*(e-r)}function Nk(e,t,r,n,i){return void 0!==i&&(e=Lk(e,i,n)),Lk(e,r,n)+t}function Dk(e,t=0,r=1,n,i){e.min=Nk(e.min,t,r,n,i),e.max=Nk(e.max,t,r,n,i)}function zk(e,{x:t,y:r}){Dk(e.x,t.translate,t.scale,t.originPoint),Dk(e.y,r.translate,r.scale,r.originPoint)}function Bk(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Uk(e,t){e.min=e.min+t,e.max=e.max+t}function Fk(e,t,[r,n,i]){const o=void 0!==t[i]?t[i]:.5,a=g_(e.min,e.max,o);Dk(e,t[r],t[n],a,t.scale)}const $k=["x","scaleX","originX"],Hk=["y","scaleY","originY"];function Vk(e,t){Fk(e.x,t,$k),Fk(e.y,t,Hk)}function qk(e,t){return Ok(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const Kk=({current:e})=>e?e.ownerDocument.defaultView:null,Wk=new WeakMap;class Gk{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pk(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new sk(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(hx(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=wx(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tk((e=>{let t=this.getAxisMotionValue(e).get()||0;if(ww.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=pk(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&ix.update((()=>i(e,t)),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Tk((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:Kk(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:i}=this.getProps();i&&ix.update((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!Zk(e,n,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?g_(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&Ib(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:i}){return{x:xk(e.x,r,i),y:xk(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=Sk){return!1===e?e=0:!0===e&&(e=Sk),{x:kk(e,"left","right"),y:kk(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Tk((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ib(e))return!1;const r=e.current;Nx(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const i=function(e,t,r){const n=qk(e,r),{scroll:i}=t;return i&&(Uk(n.x,i.offset.x),Uk(n.y,i.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:_k(e.x,t.x),y:_k(e.y,t.y)}}(n.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=Ok(e))}return o}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},c=Tk((a=>{if(!Zk(a,t,this.currentDirection))return;let c=s&&s[a]||{};o&&(c={min:0,max:0});const l=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(a,d)}));return Promise.all(c).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(CS(e,r,0,t))}stopAnimation(){Tk((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Tk((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Tk((t=>{const{drag:r}=this.getProps();if(!Zk(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-g_(r,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!Ib(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};Tk((e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();n[e]=function(e,t){let r=.5;const n=pk(e),i=pk(t);return i>n?r=N_(t.min,t.max-n,e.min):n>i&&(r=N_(e.min,e.max-i,t.min)),lw(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Tk((t=>{if(!Zk(t,e,null))return;const r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(g_(i,o,n[t]))}))}addListeners(){if(!this.visualElement.current)return;Wk.set(this.visualElement,this);const e=px(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Ib(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const i=ux(window,"resize",(()=>this.scalePositionWithinConstraints())),o=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Tk((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{i(),e(),n(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=Sk,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Zk(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}const Yk=e=>(t,r)=>{e&&ix.update((()=>e(t,r)))};const Xk={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qk={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!xw.test(e))return e;e=parseFloat(e)}return`${Jk(e,t.target.x)}% ${Jk(e,t.target.y)}%`}},eE={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=C_.parse(e);if(i.length>5)return n;const o=C_.createTransformer(e),a="number"!==typeof i[0]?1:0,s=r.x.scale*t.x,c=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=c;const l=g_(s,c,.5);return"number"===typeof i[2+a]&&(i[2+a]/=l),"number"===typeof i[3+a]&&(i[3+a]/=l),o(i)}};class tE extends n.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;var o;o=nE,Object.assign(Jb,o),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Xk.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o?(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||ix.postRender((()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),jb.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rE(e){const[t,r]=vb(),i=(0,n.useContext)(Vb);return n.createElement(tE,{...e,layoutGroup:i,switchLayoutGroup:(0,n.useContext)(qb),isPresent:t,safeToRemove:r})}const nE={borderRadius:{...Qk,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qk,borderTopRightRadius:Qk,borderBottomLeftRadius:Qk,borderBottomRightRadius:Qk,boxShadow:eE},iE=["TopLeft","TopRight","BottomLeft","BottomRight"],oE=iE.length,aE=e=>"string"===typeof e?parseFloat(e):e,sE=e=>"number"===typeof e||xw.test(e);function cE(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const lE=dE(0,.5,r_),uE=dE(.5,.95,nx);function dE(e,t,r){return n=>nt?1:r(N_(e,t,n))}function hE(e,t){e.min=t.min,e.max=t.max}function fE(e,t){hE(e.x,t.x),hE(e.y,t.y)}function pE(e,t,r,n,i){return e=Lk(e-=t,1/r,n),void 0!==i&&(e=Lk(e,1/i,n)),e}function mE(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){ww.test(t)&&(t=parseFloat(t),t=g_(a.min,a.max,t/100)-a.min);if("number"!==typeof t)return;let s=g_(o.min,o.max,n);e===o&&(s-=t),e.min=pE(e.min,t,r,s,i),e.max=pE(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}const gE=["x","scaleX","originX"],vE=["y","scaleY","originY"];function yE(e,t,r,n){mE(e.x,t,gE,r?r.x:void 0,n?n.x:void 0),mE(e.y,t,vE,r?r.y:void 0,n?n.y:void 0)}function bE(e){return 0===e.translate&&1===e.scale}function wE(e){return bE(e.x)&&bE(e.y)}function xE(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function _E(e){return pk(e.x)/pk(e.y)}class SE{constructor(){this.members=[]}add(e){IS(this.members,e),e.scheduleRender()}remove(e){if(MS(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let n=t;n>=0;n--){const e=this.members[n];if(!1!==e.isPresent){r=e;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kE(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(n+=`scale(${a}, ${s})`),n||"none"}const EE=(e,t)=>e.depth-t.depth;class AE{constructor(){this.children=[],this.isDirty=!1}add(e){IS(this.children,e),this.isDirty=!0}remove(e){MS(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(EE),this.isDirty=!1,this.children.forEach(e)}}const PE=["","X","Y","Z"],TE={visibility:"hidden"};let OE=0;const CE={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jE({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=(null===t||void 0===t?void 0:t())){this.id=OE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,CE.totalNodes=CE.resolvedTargetDeltas=CE.recalculatedProjection=0,this.nodes.forEach(ME),this.nodes.forEach(FE),this.nodes.forEach($E),this.nodes.forEach(LE),e=CE,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=aS.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(ox(n),e(o-t))};return ix.read(n,!0),()=>ox(n)}(n,250),Xk.hasAnimatedSinceResize&&(Xk.hasAnimatedSinceResize=!1,this.nodes.forEach(UE))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||a.getDefaultTransition()||GE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),c=!this.targetLayout||!xE(this.targetLayout,n)||r,l=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);const t={...OS(i,"layout"),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||UE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ox(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(HE),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;ithis.update())))}clearAllSnapshots(){this.nodes.forEach(NE),this.sharedNodes.forEach(VE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ix.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ix.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let r=0;r{const r=t/1e3;qE(o.x,e.x,r),qE(o.y,e.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wk(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,n){KE(e.x,t.x,r.x,n),KE(e.y,t.y,r.y,n)}(this.relativeTarget,this.relativeTargetOrigin,a,r),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Pk()),fE(d,this.relativeTarget)),s&&(this.animationValues=i,function(e,t,r,n,i,o){i?(e.opacity=g_(0,void 0!==r.opacity?r.opacity:1,lE(n)),e.opacityExit=g_(void 0!==t.opacity?t.opacity:1,0,uE(n))):o&&(e.opacity=g_(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let a=0;a{Xk.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=rw(e)?e:zS(e);return n.start(CS("",n,t,r)),n.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&JE(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||Pk();const t=pk(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=pk(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}fE(t,r),Vk(t,i),vk(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new SE);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const n={};for(let i=0;i{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(DE),this.root.sharedNodes.clear()}}}function RE(e){e.updateLayout()}function IE(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?Tk((e=>{const n=o?r.measuredBox[e]:r.layoutBox[e],i=pk(n);n.min=t[e].min,n.max=n.min+i})):JE(i,r.layoutBox,t)&&Tk((n=>{const i=o?r.measuredBox[n]:r.layoutBox[n],a=pk(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a=Ak();vk(a,t,r.layoutBox);const s=Ak();o?vk(s,e.applyTransform(n,!0),r.measuredBox):vk(s,t,r.layoutBox);const c=!wE(a);let l=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:i,layout:o}=n;if(i&&o){const a=Pk();wk(a,r.layoutBox,i.layoutBox);const s=Pk();wk(s,t,o.layoutBox),xE(a,s)||(l=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ME(e){CE.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function LE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function NE(e){e.clearSnapshot()}function DE(e){e.clearMeasurements()}function zE(e){e.isLayoutDirty=!1}function BE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function UE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FE(e){e.resolveTargetDelta()}function $E(e){e.calcProjection()}function HE(e){e.resetRotation()}function VE(e){e.removeLeadSnapshot()}function qE(e,t,r){e.translate=g_(t.translate,0,r),e.scale=g_(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function KE(e,t,r,n){e.min=g_(t.min,r.min,n),e.max=g_(t.max,r.max,n)}function WE(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const GE={duration:.45,ease:[.4,0,.1,1]},ZE=e=>"undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().includes(e),YE=ZE("applewebkit/")&&!ZE("chrome/")?Math.round:nx;function XE(e){e.min=YE(e.min),e.max=YE(e.max)}function JE(e,t,r){return"position"===e||"preserve-aspect"===e&&!mk(_E(t),_E(r),.2)}const QE=jE({attachResizeListener:(e,t)=>ux(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eA={current:void 0},tA=jE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!eA.current){const e=new QE({});e.mount(window),e.setOptions({layoutScroll:!0}),eA.current=e}return eA.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),rA={pan:{Feature:class extends _x{constructor(){super(...arguments),this.removePointerDownListener=nx}onPointerDown(e){this.session=new sk(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kk(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:Yk(e),onStart:Yk(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&ix.update((()=>n(e,t)))}}}mount(){this.removePointerDownListener=px(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends _x{constructor(e){super(e),this.removeGroupControls=nx,this.removeListeners=nx,this.controls=new Gk(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nx}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:tA,MeasureLayout:rE}},nA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const iA=4;function oA(e,t,r=1){Nx(r<=iA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=function(e){const t=nA.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const e=o.trim();return RS(e)?parseFloat(e):e}return sw(i)?oA(i,t,r+1):i}const aA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),sA=e=>aA.has(e),cA=e=>e===uw||e===xw,lA=(e,t)=>parseFloat(e.split(", ")[t]),uA=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return lA(i[1],t);{const t=n.match(/^matrix\((.+)\)$/);return t?lA(t[1],e):0}},dA=new Set(["x","y","z"]),hA=Qb.filter((e=>!dA.has(e)));const fA={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:uA(4,13),y:uA(5,14)};fA.translateX=fA.x,fA.translateY=fA.y;const pA=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(sA);let o=[],a=!1;const s=[];if(i.forEach((i=>{const c=e.getValue(i);if(!e.hasValue(i))return;let l=r[i],u=FS(l);const d=t[i];let h;if(Xw(d)){const e=d.length,t=null===d[0]?1:0;l=d[t],u=FS(l);for(let r=t;r{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],c.jump(d))})),s.length){const r=s.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach((e=>{s[e]=fA[e](n,o)})),t.render();const c=t.measureViewportBox();return r.forEach((r=>{const n=t.getValue(r);n&&n.jump(s[r]),e[r]=fA[r](c,o)})),e})(t,e,s);return o.length&&o.forEach((([t,r])=>{e.getValue(t).set(r)})),e.render(),xb&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}return{target:t,transitionEnd:n}};function mA(e,t,r,n){return(e=>Object.keys(e).some(sA))(t)?pA(e,t,r,n):{target:t,transitionEnd:n}}const gA=(e,t,r,n)=>{const i=function(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach((e=>{const t=e.get();if(!sw(t))return;const r=oA(t,n);r&&e.set(r)}));for(const i in t){const e=t[i];if(!sw(e))continue;const o=oA(e,n);o&&(t[i]=o,r||(r={}),void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return mA(e,t=i.target,r,n=i.transitionEnd)},vA={current:null},yA={current:!1};const bA=new WeakMap,wA=Object.keys(Hb),xA=wA.length,_A=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],SA=Db.length;class kA{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ix.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=zb(t),this.isVariantNode=Bb(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...l}=this.scrapeMotionValuesFromProps(t,{});for(const u in l){const e=l[u];void 0!==a[u]&&rw(e)&&(e.set(a[u],!1),jS(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,bA.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),yA.current||function(){if(yA.current=!0,xb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vA.current=e.matches;e.addListener(t),t()}else vA.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||vA.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bA.delete(this.current),this.projection&&this.projection.unmount(),ox(this.notifyUpdate),ox(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=ew.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&ix.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{n(),i()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let s=0;sthis.scheduleRender(),animationType:"string"===typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:c})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pk()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let r=0;r<_A.length;r++){const t=_A[r];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const n=e["on"+t];n&&(this.propEventSubscriptions[t]=this.on(t,n))}this.prevMotionValues=function(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if(rw(o))e.addValue(i,o),jS(n)&&n.add(i);else if(rw(a))e.addValue(i,zS(o,{owner:e})),jS(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){const t=e.getValue(i);!t.hasAnimated&&t.set(o)}else{const t=e.getStaticValue(i);e.addValue(i,zS(void 0!==t?t:o,{owner:e}))}}for(const i in r)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let r=0;rt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=zS(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,n="string"===typeof r||"object"===typeof r?null===(t=Zw(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||rw(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new LS),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class EA extends kA{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},n){const i=function(e,t,r){const n={};for(const i in e){const e=KS(i,t);if(void 0!==e)n[i]=e;else{const e=r.getValue(i);e&&(n[i]=e.get())}}return n}(r,e||{},this);if(n){!function(e,t,r){var n,i;const o=Object.keys(t).filter((t=>!e.hasValue(t))),a=o.length;if(a)for(let s=0;s{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,n){Vw(e,t,r,n)}}class PA extends EA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ew.has(t)){const e=ES(t);return e&&e.default||0}return t=qw.has(t)?t:kb(t),e.getAttribute(t)}measureInstanceViewportBox(){return Pk()}scrapeMotionValuesFromProps(e,t){return Gw(e,t)}build(e,t,r,n){Bw(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){Kw(e,t,0,n)}mount(e){this.isSVGTag=Fw(e.tagName),super.mount(e)}}const TA=(e,t)=>Xb(e)?new PA(t,{enableHardwareAcceleration:!1}):new AA(t,{enableHardwareAcceleration:!0}),OA={...ok,...Rx,...rA,...{layout:{ProjectionNode:tA,MeasureLayout:rE}}},CA=Zb(((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...Xb(e)?cx:lx,preloadedFeatures:r,useRender:Hw(t),createVisualElement:n,Component:e}}(e,t,OA,TA)));var jA={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},RA=(0,n.memo)((e=>{const{id:t,message:r,onCloseComplete:i,onRequestRemove:o,requestClose:a=!1,position:s="bottom",duration:c=5e3,containerStyle:l,motionVariants:u=jA,toastSpacing:d="0.5rem"}=e,[h,f]=(0,n.useState)(c),p=yb();mb((()=>{p||null==i||i()}),[p]),mb((()=>{f(c)}),[c]);const m=()=>{p&&o()};(0,n.useEffect)((()=>{p&&a&&o()}),[p,a,o]),function(e,t){const r=pb(e);(0,n.useEffect)((()=>{if(null==t)return;let e=null;return e=window.setTimeout((()=>{r()}),t),()=>{e&&window.clearTimeout(e)}}),[t,r])}(m,h);const g=(0,n.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l})),[l,d]),v=(0,n.useMemo)((()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s)),[s]);return(0,un.jsx)(CA.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(c),custom:{position:s},style:v,children:(0,un.jsx)(ln.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:w(r,{id:t,onClose:m})})})}));function IA(e,t){var r;const n=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==i?void 0:i[t])?r:n}RA.displayName="ToastComponent";var MA={path:(0,un.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,un.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,un.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,un.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},LA=g(((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:o=!1,children:a,className:s,__css:c,...l}=e,u={ref:t,focusable:o,className:v("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,..._n("Icon",e)}},d=null!=n?n:MA.viewBox;if(r&&"string"!==typeof r)return(0,un.jsx)(ln.svg,{as:r,...u,...l});const h=null!=a?a:MA.path;return(0,un.jsx)(ln.svg,{verticalAlign:"middle",viewBox:d,...u,...l,children:h})}));LA.displayName="Icon";function NA(e){return(0,un.jsx)(LA,{viewBox:"0 0 24 24",...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[DA,zA]=En({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[BA,UA]=En({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),FA={info:{icon:function(e){return(0,un.jsx)(LA,{viewBox:"0 0 24 24",...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:NA,colorScheme:"orange"},success:{icon:function(e){return(0,un.jsx)(LA,{viewBox:"0 0 24 24",...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:NA,colorScheme:"red"},loading:{icon:In,colorScheme:"blue"}};var $A=g((function(e,t){var r;const{status:n="info",addRole:i=!0,...o}=ht(e),a=null!=(r=e.colorScheme)?r:function(e){return FA[e].colorScheme}(n),s=Sn("Alert",{...e,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,un.jsx)(DA,{value:{status:n},children:(0,un.jsx)(BA,{value:s,children:(0,un.jsx)(ln.div,{"data-status":n,role:i?"alert":void 0,ref:t,...o,className:v("chakra-alert",e.className),__css:c})})})}));function HA(e){const{status:t}=zA(),r=function(e){return FA[e].icon}(t),n=UA(),i="loading"===t?n.spinner:n.icon;return(0,un.jsx)(ln.span,{display:"inherit","data-status":t,...e,className:v("chakra-alert__icon",e.className),__css:i,children:e.children||(0,un.jsx)(r,{h:"100%",w:"100%"})})}$A.displayName="Alert",HA.displayName="AlertIcon";var VA=g((function(e,t){const r=UA(),{status:n}=zA();return(0,un.jsx)(ln.div,{ref:t,"data-status":n,...e,className:v("chakra-alert__title",e.className),__css:r.title})}));VA.displayName="AlertTitle";var qA=g((function(e,t){const r=UA(),{status:n}=zA(),i={display:"inline",...r.description};return(0,un.jsx)(ln.div,{ref:t,"data-status":n,...e,className:v("chakra-alert__desc",e.className),__css:i})}));function KA(e){return(0,un.jsx)(LA,{focusable:"false","aria-hidden":!0,...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}qA.displayName="AlertDescription";var WA=g((function(e,t){const r=_n("CloseButton",e),{children:n,isDisabled:i,__css:o,...a}=ht(e);return(0,un.jsx)(ln.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...o},...a,children:n||(0,un.jsx)(KA,{width:"1em",height:"1em"})})}));WA.displayName="CloseButton";var GA=function(e){let t=e;const r=new Set,n=e=>{t=e(t),r.forEach((e=>e()))};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{n((()=>e)),r.delete(t)}),removeToast:(e,t)=>{n((r=>({...r,[t]:r[t].filter((t=>t.id!=e))})))},notify:(e,t)=>{const r=function(e,t={}){var r,n;ZA+=1;const i=null!=(r=t.id)?r:ZA,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>GA.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:i,id:o}=r;return n((e=>{var t,n;const o=i.includes("top")?[r,...null!=(t=e[i])?t:[]]:[...null!=(n=e[i])?n:[],r];return{...e,[i]:o}})),o},update:(e,t)=>{e&&n((r=>{const n={...r},{position:i,index:o}=db(n,e);return i&&-1!==o&&(n[i][o]={...n[i][o],...t,message:XA(t)}),n}))},closeAll:({positions:e}={})=>{n((t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((e,r)=>(e[r]=t[r].map((e=>({...e,requestClose:!0}))),e)),{...t})))},close:e=>{n((t=>{const r=hb(t,e);return r?{...t,[r]:t[r].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(db(GA.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var ZA=0;var YA=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:a,description:s,colorScheme:c,icon:l}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,un.jsxs)($A,{addRole:!1,status:t,variant:r,id:null==u?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[(0,un.jsx)(HA,{children:l}),(0,un.jsxs)(ln.div,{flex:"1",maxWidth:"100%",children:[i&&(0,un.jsx)(VA,{id:null==u?void 0:u.title,children:i}),s&&(0,un.jsx)(qA,{id:null==u?void 0:u.description,display:"block",children:s})]}),o&&(0,un.jsx)(WA,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function XA(e={}){const{render:t,toastComponent:r=YA}=e;return n=>"function"===typeof t?t({...n,...e}):(0,un.jsx)(r,{...n,...e})}function JA(){const e=(0,n.useRef)(!1);return _b((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class QA extends n.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function eP({children:e,isPresent:t}){const r=(0,n.useId)(),i=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)((()=>{const{width:e,height:n,top:a,left:s}=o.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${n}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),n.createElement(QA,{isPresent:t,childRef:i,sizeRef:o},n.cloneElement(e,{ref:i}))}const tP=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:s})=>{const c=Yw(rP),l=(0,n.useId)(),u=(0,n.useMemo)((()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:e=>{c.set(e,!0);for(const t of c.values())if(!t)return;i&&i()},register:e=>(c.set(e,!1),()=>c.delete(e))})),a?void 0:[r]);return(0,n.useMemo)((()=>{c.forEach(((e,t)=>c.set(t,!1)))}),[r]),n.useEffect((()=>{!r&&!c.size&&i&&i()}),[r]),"popLayout"===s&&(e=n.createElement(eP,{isPresent:r},e)),n.createElement(gb.Provider,{value:u},e)};function rP(){return new Map}const nP=e=>e.key||"";const iP=({children:e,custom:t,initial:r=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Nx(!o,"Replace exitBeforeEnter with mode='wait'");const c=(0,n.useContext)(Vb).forceRender||function(){const e=JA(),[t,r]=(0,n.useState)(0),i=(0,n.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,n.useCallback)((()=>ix.postRender(i)),[i]),t]}()[0],l=JA(),u=function(e){const t=[];return n.Children.forEach(e,(e=>{(0,n.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const h=(0,n.useRef)(new Map).current,f=(0,n.useRef)(d),p=(0,n.useRef)(new Map).current,m=(0,n.useRef)(!0);var g;if(_b((()=>{m.current=!1,function(e,t){e.forEach((e=>{const r=nP(e);t.set(r,e)}))}(u,p),f.current=d})),g=()=>{m.current=!0,p.clear(),h.clear()},(0,n.useEffect)((()=>()=>g()),[]),m.current)return n.createElement(n.Fragment,null,d.map((e=>n.createElement(tP,{key:nP(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},e))));d=[...d];const v=f.current.map(nP),y=u.map(nP),b=v.length;for(let n=0;n{if(-1!==y.indexOf(r))return;const o=p.get(r);if(!o)return;const m=v.indexOf(r);let g=e;if(!g){const e=()=>{h.delete(r);const e=Array.from(p.keys()).filter((e=>!y.includes(e)));if(e.forEach((e=>p.delete(e))),f.current=u.filter((t=>{const n=nP(t);return n===r||e.includes(n)})),!h.size){if(!1===l.current)return;c(),i&&i()}};g=n.createElement(tP,{key:nP(o),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:a,mode:s},o),h.set(r,g)}d.splice(m,0,g)})),d=d.map((e=>{const t=e.key;return h.has(t)?e:n.createElement(tP,{key:nP(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)})),n.createElement(n.Fragment,null,h.size?d:d.map((e=>(0,n.cloneElement)(e))))};var[oP,aP]=En({strict:!1,name:"PortalContext"}),sP="chakra-portal",cP=e=>(0,un.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),lP=e=>{const{appendToParentPortal:t,children:r}=e,[i,o]=(0,n.useState)(null),a=(0,n.useRef)(null),[,s]=(0,n.useState)({});(0,n.useEffect)((()=>s({})),[]);const c=aP(),l=ih();yh((()=>{if(!i)return;const e=i.ownerDocument,r=t&&null!=c?c:e.body;if(!r)return;a.current=e.createElement("div"),a.current.className=sP,r.appendChild(a.current),s({});const n=a.current;return()=>{r.contains(n)&&r.removeChild(n)}}),[i]);const u=(null==l?void 0:l.zIndex)?(0,un.jsx)(cP,{zIndex:null==l?void 0:l.zIndex,children:r}):r;return a.current?(0,Kn.createPortal)((0,un.jsx)(oP,{value:a.current,children:u}),a.current):(0,un.jsx)("span",{ref:e=>{e&&o(e)}})},uP=e=>{const{children:t,containerRef:r,appendToParentPortal:i}=e,o=r.current,a=null!=o?o:"undefined"!==typeof window?document.body:void 0,s=(0,n.useMemo)((()=>{const e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=sP),e}),[o]),[,c]=(0,n.useState)({});return yh((()=>c({})),[]),yh((()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}}),[s,a]),a&&s?(0,Kn.createPortal)((0,un.jsx)(oP,{value:i?s:null,children:t}),s):null};function dP(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,un.jsx)(uP,{containerRef:r,...n}):(0,un.jsx)(lP,{...n})}dP.className=sP,dP.selector=".chakra-portal",dP.displayName="Portal";var[hP,fP]=En({name:"ToastOptionsContext",strict:!1}),pP=e=>{const t=(0,n.useSyncExternalStore)(GA.subscribe,GA.getState,GA.getState),{motionVariants:r,component:i=RA,portalProps:o}=e,a=Object.keys(t).map((e=>{const n=t[e];return(0,un.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:fb(e),children:(0,un.jsx)(iP,{initial:!1,children:n.map((e=>(0,un.jsx)(i,{motionVariants:r,...e},e.id)))})},e)}));return(0,un.jsx)(dP,{...o,children:a})},mP=e=>function({children:t,theme:r=e,toastOptions:n,...i}){return(0,un.jsxs)(kh,{theme:r,...i,children:[(0,un.jsx)(hP,{value:null==n?void 0:n.defaultOptions,children:t}),(0,un.jsx)(pP,{...n})]})},gP=mP(cb),vP=(mP(lb),new Set(["dark","light","system"]));function yP(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,i=function(e){let t=e;return vP.has(t)||(t="light"),t}(t);return`!${"cookie"===r?`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();\n `:`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();\n `}`.trim()}function bP(e={}){const{nonce:t}=e;return(0,un.jsx)("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:yP(e)}})}var wP=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function xP(e){return"function"===typeof e}var _P=e=>function(...t){let r=[...t],n=t[t.length-1];var i;return y(i=n)&&wP.every((e=>Object.prototype.hasOwnProperty.call(i,e)))&&r.length>1?r=r.slice(0,r.length-1):n=e,function(...e){return t=>e.reduce(((e,t)=>t(e)),t)}(...r.map((e=>t=>xP(e)?e(t):function(...e){return A({},...e,kP)}(t,e))))(n)},SP=_P(cb);_P(lb);function kP(e,t,r,n){if((xP(e)||xP(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>{const n=xP(e)?e(...r):e,i=xP(t)?t(...r):t;return A({},n,i,kP)}}const EP={orange:"#FB4F57",orangeL:"#FC7884",blue:"#0D99FF",blueL:"#4FA2FF",green:"#00C39A",greenL:"#00E7B6",black:"#000000",white:"#FFFFFF",gray:{900:"#121212",800:"#181818",700:"#282828",600:"#2C2B2B",500:"#414141",450:"#707070",400:"#C2C2C2",300:"#D6D6D6",200:"#EBEBEB",100:"#F0F0F0",50:"#F5F5F5"}},AP={borderRadius:"full",bg:EP.gray[600],_disabled:{bg:EP.gray[700],color:EP.gray[450]},_hover:{color:EP.green,bg:EP.gray[500],_disabled:{bg:EP.gray[700],color:EP.gray[450]}}},PP={sizes:{md:{height:"38px",fontSize:"14px",minWidth:"38px"},lg:{height:"48px",fontSize:"16px",minWidth:"48px"}},variants:{primary:{bg:EP.blue,_disabled:{bg:EP.gray[500],color:EP.gray[450],opacity:1},_hover:{_disabled:{bg:EP.gray[500],color:EP.gray[450],opacity:1},bg:EP.blueL}},secondary:{border:"1px solid",borderColor:EP.green,_disabled:{color:EP.gray[450],borderColor:EP.gray[500],opacity:1},_hover:{bg:EP.green,_disabled:{color:EP.gray[450],borderColor:EP.gray[500],opacity:1}}},tertiary:{bg:"transparent",border:"1px solid",borderColor:EP.gray[500],_disabled:{color:EP.gray[450],opacity:1},_hover:{border:"1px solid",borderColor:EP.gray[600],bg:EP.gray[600],_disabled:{borderColor:EP.gray[500],color:EP.gray[450],opacity:1}}},warning:{bg:EP.orange,_disabled:{bg:EP.gray[500],color:EP.gray[450],opacity:1},_hover:{bg:EP.orangeL,_disabled:{bg:EP.gray[500],color:EP.gray[450],opacity:1}}},circle_without_hover_color:{...AP,_hover:{color:EP.green,_disabled:{bg:EP.gray[700],color:EP.gray[450]}}},circle_without_color:AP,circle:{...AP,color:EP.gray[300]},specialCTA:{color:EP.greenL,_hover:{color:EP.green}},CTAWithIcon:{padding:"8px 7px",color:EP.gray[300],_hover:{color:EP.green},_disabled:{color:EP.gray[450]}},popover:{color:EP.gray[300],stroke:EP.gray[450],width:"100%",padding:0,height:"24px",justifyContent:"end",_hover:{color:EP.green,stroke:EP.green}}},defaultProps:{variant:"primary",size:"md"}},{definePartsStyle:TP,defineMultiStyleConfig:OP}=lt(Xh.keys),CP=OP({baseStyle:TP({icon:{color:"white"},control:{marginTop:"-20px",width:"20px",height:"20px",borderWidth:"2px",borderColor:EP.gray[400],borderRadius:"2px",_checked:{borderColor:EP.green,bg:EP.green,color:EP.white,_hover:{bg:EP.green,borderColor:EP.green}}}})}),{definePartsStyle:jP,defineMultiStyleConfig:RP}=lt(Jh.keys),IP=RP({baseStyle:jP((e=>({body:{padding:"18px 30px 30px 30px",borderLeft:`1px solid ${EP.gray[800]}`},dialog:{bg:EP.gray[900]}}))),sizes:{md:{dialog:{maxW:"594px"}}},defaultProps:{size:"md"}}),{definePartsStyle:MP,defineMultiStyleConfig:LP}=lt(nf.keys),NP=LP({variants:{onboardingNotice:MP({item:{"&::marker":{color:EP.gray[400]}}}),suggestions:MP({item:{_hover:{background:EP.gray[500]},background:EP.gray[700],borderRadius:"4px",cursor:"pointer",height:"28px",listStyleType:"none"},container:{background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px",listStyleType:"none",marginLeft:"0 !important",overflowX:"hidden",padding:"10px",position:"absolute",width:"100%",zIndex:2,maxHeight:"130px"}})}}),{definePartsStyle:DP,defineMultiStyleConfig:zP}=lt(af.keys),BP={top:"10px",position:"absolute",color:EP.gray[400],borderRadius:"18px"},UP={...BP,insetEnd:"10px"},FP={...BP,insetStart:"10px"},$P=zP({baseStyle:DP({dialog:{padding:"40px",_dark:{bg:EP.gray[900],border:"1px solid",borderColor:EP.gray[700],borderRadius:"8px"}},overlay:{_dark:{bg:"rgba(0, 0, 0, 0.85)"}},closeButton:UP,body:{padding:0},footer:{padding:"32px 0 0 0"},header:{padding:0}}),sizes:{md:{dialog:{maxW:"482px"}}}}),{definePartsStyle:HP,defineMultiStyleConfig:VP}=lt(uf.keys),qP=VP({variants:{primary:HP({control:{height:"16px",width:"16px",_dark:{borderColor:EP.gray[400]},_checked:{backgroundColor:EP.green,borderColor:EP.green,border:"none",color:"white"}}})}}),{definePartsStyle:KP,defineMultiStyleConfig:WP}=lt(gf.keys),GP={xs:{fontSize:"12px"},sm:{fontSize:"14px"},md:{fontSize:"16px"},lg:{fontSize:"18px"},xl:{fontSize:"20px"},"2xl":{fontSize:"24px"},"3xl":{fontSize:"30px"},"4xl":{fontSize:"36px"},"5xl":{fontSize:"48px"},"6xl":{fontSize:"69px"}},ZP=SP({components:{Tabs:WP({baseStyle:KP({tab:{_selected:{fontWeight:600,color:EP.white,borderColor:EP.orange,borderBottom:`2px solid ${EP.orange}`}}})}),Text:{baseStyle:{fontWeight:"400"},sizes:GP},Heading:{baseStyle:{fontWeight:"600"},sizes:GP},Checkbox:CP,Input:{sizes:{md:{field:{height:"48px"}}},defaultProps:{variant:"filled"},variants:{filled:{field:{bg:EP.gray[800],border:"1px solid",borderColor:EP.gray[500],_invalid:{borderColor:EP.orange},_hover:{bg:EP.gray[800]},_focusVisible:{bg:EP.gray[800],borderColor:EP.gray[450]}}}}},Button:PP,FormLabel:{baseStyle:{fontWeight:"600",marginBottom:"12px",size:"md"},sizes:GP},Modal:$P,Drawer:IP,Radio:qP,List:NP},config:{initialColorMode:"dark",useSystemColorMode:!1},colors:{umami:EP,text:{dark:EP.gray[400]}},styles:{global:{body:{bg:EP.black,color:EP.white}}}}),YP=e=>(0,un.jsxs)(gP,{theme:ZP,children:[(0,un.jsx)(bP,{initialColorMode:ZP.config.initialColorMode}),e.children]});function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function aT(e,t,r,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=JP.Pop,c=null,l=u();function u(){return(a.state||{idx:null}).idx}function d(){s=JP.Pop;let e=u(),t=null==e?null:e-l;l=e,c&&c({action:s,location:f.location,delta:t})}function h(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,r="string"===typeof e?e:iT(e);return eT(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==l&&(l=0,a.replaceState(XP({},a.state,{idx:l}),""));let f={get action(){return s},get location(){return e(i,a)},listen(e){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(QP,d),c=e,()=>{i.removeEventListener(QP,d),c=null}},createHref:e=>t(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=JP.Push;let n=nT(f.location,e,t);r&&r(n,e),l=u()+1;let d=rT(n,l),h=f.createHref(n);try{a.pushState(d,"",h)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(h)}o&&c&&c({action:s,location:f.location,delta:1})},replace:function(e,t){s=JP.Replace;let n=nT(f.location,e,t);r&&r(n,e),l=u();let i=rT(n,l),d=f.createHref(n);a.replaceState(i,"",d),o&&c&&c({action:s,location:f.location,delta:0})},go:e=>a.go(e)};return f}var sT;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(sT||(sT={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function cT(e,t,r){void 0===r&&(r="/");let n=_T(("string"===typeof t?oT(t):t).pathname||"/",r);if(null==n)return null;let i=lT(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let a=0;null==o&&a{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(eT(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let s=PT([n,a.relativePath]),c=r.concat(a);e.children&&e.children.length>0&&(eT(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),lT(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:yT(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of uT(e.path))i(e,t,n);else i(e,t)})),t}function uT(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return i?[o,""]:[o];let a=uT(n.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const dT=/^:\w+$/,hT=3,fT=2,pT=1,mT=10,gT=-2,vT=e=>"*"===e;function yT(e,t){let r=e.split("/"),n=r.length;return r.some(vT)&&(n+=gT),t&&(n+=fT),r.filter((e=>!vT(e))).reduce(((e,t)=>e+(dT.test(t)?hT:""===t?pT:mT)),n)}function bT(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let a=0;a(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1),c=n.reduce(((e,t,r)=>{let{paramName:n,isOptional:i}=t;if("*"===n){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const c=s[r];return e[n]=i&&!c?void 0:function(e,t){try{return decodeURIComponent(e)}catch(r){return tT(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(c||"",n),e}),{});return{params:c,pathname:o,pathnameBase:a,pattern:e}}function xT(e){try{return decodeURI(e)}catch(t){return tT(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function _T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function ST(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function kT(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function ET(e,t){let r=kT(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function AT(e,t,r,n){let i;void 0===n&&(n=!1),"string"===typeof e?i=oT(e):(i=XP({},e),eT(!i.pathname||!i.pathname.includes("?"),ST("?","pathname","search",i)),eT(!i.pathname||!i.pathname.includes("#"),ST("#","pathname","hash",i)),eT(!i.search||!i.search.includes("#"),ST("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"===typeof e?oT(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:OT(n),hash:CT(i)}}(i,o),l=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return c.pathname.endsWith("/")||!l&&!u||(c.pathname+="/"),c}const PT=e=>e.join("/").replace(/\/\/+/g,"/"),TT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OT=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",CT=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function jT(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const RT=["post","put","patch","delete"],IT=(new Set(RT),["get",...RT]);new Set(IT),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function MT(){return MT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r.current=!0}));let i=n.useCallback((function(n,i){void 0===i&&(i={}),r.current&&("number"===typeof n?e.navigate(n):e.navigate(n,MT({fromRouteId:t},i)))}),[e,t]);return i}():function(){FT()||eT(!1);let e=n.useContext(LT),{basename:t,future:r,navigator:i}=n.useContext(DT),{matches:o}=n.useContext(BT),{pathname:a}=$T(),s=JSON.stringify(ET(o,r.v7_relativeSplatPath)),c=n.useRef(!1);HT((()=>{c.current=!0}));let l=n.useCallback((function(r,n){if(void 0===n&&(n={}),!c.current)return;if("number"===typeof r)return void i.go(r);let o=AT(r,JSON.parse(s),a,"path"===n.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:PT([t,o.pathname])),(n.replace?i.replace:i.push)(o,n.state,n)}),[t,i,s,a,e]);return l}()}function qT(e,t){let{relative:r}=void 0===t?{}:t,{future:i}=n.useContext(DT),{matches:o}=n.useContext(BT),{pathname:a}=$T(),s=JSON.stringify(ET(o,i.v7_relativeSplatPath));return n.useMemo((()=>AT(e,JSON.parse(s),a,"path"===r)),[e,s,a,r])}function KT(e,t,r,i){FT()||eT(!1);let{navigator:o}=n.useContext(DT),{matches:a}=n.useContext(BT),s=a[a.length-1],c=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,d=$T();if(t){var h;let e="string"===typeof t?oT(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||eT(!1),u=e}else u=d;let f=u.pathname||"/",p=cT(e,{pathname:"/"===l?f:f.slice(l.length)||"/"});let m=XT(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:PT([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:PT([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,r,i);return t&&m?n.createElement(zT.Provider,{value:{location:MT({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:JP.Pop}},m):m}function WT(){let e=function(){var e;let t=n.useContext(UT),r=tO(QT.UseRouteError),i=rO(QT.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[i]}(),t=jT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:o},r):null,null)}const GT=n.createElement(WT,null);class ZT extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(BT.Provider,{value:this.props.routeContext},n.createElement(UT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function YT(e){let{routeContext:t,match:r,children:i}=e,o=n.useContext(LT);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(BT.Provider,{value:t},i)}function XT(e,t,r,i){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===i&&(i=null),null==e){var a;if(null==(a=r)||!a.errors)return null;e=r.matches}let s=e,c=null==(o=r)?void 0:o.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||eT(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,u=-1;if(r&&i&&i.v7_partialHydration)for(let n=0;n=0?s.slice(0,u+1):[s[0]];break}}}return s.reduceRight(((e,i,o)=>{let a,d=!1,h=null,f=null;r&&(a=c&&i.route.id?c[i.route.id]:void 0,h=i.route.errorElement||GT,l&&(u<0&&0===o?(!function(e,t,r){t||nO[e]||(nO[e]=!0)}("route-fallback",!1),d=!0,f=null):u===o&&(d=!0,f=i.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,o+1)),m=()=>{let t;return t=a?h:d?f:i.route.Component?n.createElement(i.route.Component,null):i.route.element?i.route.element:e,n.createElement(YT,{match:i,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(i.route.ErrorBoundary||i.route.errorElement||0===o)?n.createElement(ZT,{location:r.location,revalidation:r.revalidation,component:h,error:a,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}var JT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(JT||{}),QT=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(QT||{});function eO(e){let t=n.useContext(LT);return t||eT(!1),t}function tO(e){let t=n.useContext(NT);return t||eT(!1),t}function rO(e){let t=function(e){let t=n.useContext(BT);return t||eT(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||eT(!1),r.route.id}const nO={};i.startTransition;function iO(e){let{to:t,replace:r,state:i,relative:o}=e;FT()||eT(!1);let{future:a,static:s}=n.useContext(DT),{matches:c}=n.useContext(BT),{pathname:l}=$T(),u=VT(),d=AT(t,ET(c,a.v7_relativeSplatPath),l,"path"===o),h=JSON.stringify(d);return n.useEffect((()=>u(JSON.parse(h),{replace:r,state:i,relative:o})),[u,h,o,r,i]),null}function oO(e){eT(!1)}function aO(e){let{basename:t="/",children:r=null,location:i,navigationType:o=JP.Pop,navigator:a,static:s=!1,future:c}=e;FT()&&eT(!1);let l=t.replace(/^\/*/,"/"),u=n.useMemo((()=>({basename:l,navigator:a,static:s,future:MT({v7_relativeSplatPath:!1},c)})),[l,c,a,s]);"string"===typeof i&&(i=oT(i));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:m="default"}=i,g=n.useMemo((()=>{let e=_T(d,l);return null==e?null:{location:{pathname:e,search:h,hash:f,state:p,key:m},navigationType:o}}),[l,d,h,f,p,m,o]);return null==g?null:n.createElement(DT.Provider,{value:u},n.createElement(zT.Provider,{children:r,value:g}))}function sO(e){let{children:t,location:r}=e;return KT(cO(t),r)}new Promise((()=>{}));n.Component;function cO(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,((e,i)=>{if(!n.isValidElement(e))return;let o=[...t,i];if(e.type===n.Fragment)return void r.push.apply(r,cO(e.props.children,o));e.type!==oO&&eT(!1),e.props.index&&e.props.children&&eT(!1);let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=cO(e.props.children,o)),r.push(a)})),r}function lO(){return lO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}function dO(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const hO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];new Map;const fO=i.startTransition;Wn.flushSync;function pO(e){let{basename:t,children:r,future:i,window:o}=e,a=n.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),aT((function(e,t){let{pathname:r="/",search:n="",hash:i=""}=oT(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),nT("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"===typeof t?t:iT(t))}),(function(e,t){tT("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}({window:o,v5Compat:!0}));let s=a.current,[c,l]=n.useState({action:s.action,location:s.location}),{v7_startTransition:u}=i||{},d=n.useCallback((e=>{u&&fO?fO((()=>l(e))):l(e)}),[l,u]);return n.useLayoutEffect((()=>s.listen(d)),[s,d]),n.createElement(aO,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:s,future:i})}const mO="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,gO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vO=n.forwardRef((function(e,t){let r,{onClick:i,relative:o,reloadDocument:a,replace:s,state:c,target:l,to:u,preventScrollReset:d,unstable_viewTransition:h}=e,f=uO(e,hO),{basename:p}=n.useContext(DT),m=!1;if("string"===typeof u&&gO.test(u)&&(r=u,mO))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=_T(t.pathname,p);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(y){}let g=function(e,t){let{relative:r}=void 0===t?{}:t;FT()||eT(!1);let{basename:i,navigator:o}=n.useContext(DT),{hash:a,pathname:s,search:c}=qT(e,{relative:r}),l=s;return"/"!==i&&(l="/"===s?i:PT([i,s])),o.createHref({pathname:l,search:c,hash:a})}(u,{relative:o}),v=function(e,t){let{target:r,replace:i,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:c}=void 0===t?{}:t,l=VT(),u=$T(),d=qT(e,{relative:s});return n.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let r=void 0!==i?i:iT(u)===iT(d);l(e,{replace:r,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:c})}}),[u,l,d,i,o,r,e,a,s,c])}(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:h});return n.createElement("a",lO({},f,{href:r||g,onClick:m||a?i:function(e){i&&i(e),e.defaultPrevented||v(e)},ref:t,target:l}))}));var yO,bO;function wO(e){let t=n.useRef(dO(e)),r=n.useRef(!1),i=$T(),o=n.useMemo((()=>function(e,t){let r=dO(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(i.search,r.current?null:t.current)),[i.search]),a=VT(),s=n.useCallback(((e,t)=>{const n=dO("function"===typeof e?e(o):e);r.current=!0,a("?"+n,t)}),[a,o]);return[o,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(yO||(yO={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(bO||(bO={}));function xO(e,t){return function(){return e.apply(t,arguments)}}const{toString:_O}=Object.prototype,{getPrototypeOf:SO}=Object,kO=(e=>t=>{const r=_O.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),EO=e=>(e=e.toLowerCase(),t=>kO(t)===e),AO=e=>t=>typeof t===e,{isArray:PO}=Array,TO=AO("undefined");const OO=EO("ArrayBuffer");const CO=AO("string"),jO=AO("function"),RO=AO("number"),IO=e=>null!==e&&"object"===typeof e,MO=e=>{if("object"!==kO(e))return!1;const t=SO(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},LO=EO("Date"),NO=EO("File"),DO=EO("Blob"),zO=EO("FileList"),BO=EO("URLSearchParams");function UO(e,t,{allOwnKeys:r=!1}={}){if(null===e||"undefined"===typeof e)return;let n,i;if("object"!==typeof e&&(e=[e]),PO(e))for(n=0,i=e.length;n0;)if(n=r[i],t===n.toLowerCase())return n;return null}const $O="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,HO=e=>!TO(e)&&e!==$O;const VO=(qO="undefined"!==typeof Uint8Array&&SO(Uint8Array),e=>qO&&e instanceof qO);var qO;const KO=EO("HTMLFormElement"),WO=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),GO=EO("RegExp"),ZO=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};UO(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},YO="abcdefghijklmnopqrstuvwxyz",XO="0123456789",JO={DIGIT:XO,ALPHA:YO,ALPHA_DIGIT:YO+YO.toUpperCase()+XO};const QO=EO("AsyncFunction"),eC={isArray:PO,isArrayBuffer:OO,isBuffer:function(e){return null!==e&&!TO(e)&&null!==e.constructor&&!TO(e.constructor)&&jO(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||jO(e.append)&&("formdata"===(t=kO(e))||"object"===t&&jO(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&OO(e.buffer),t},isString:CO,isNumber:RO,isBoolean:e=>!0===e||!1===e,isObject:IO,isPlainObject:MO,isUndefined:TO,isDate:LO,isFile:NO,isBlob:DO,isRegExp:GO,isFunction:jO,isStream:e=>IO(e)&&jO(e.pipe),isURLSearchParams:BO,isTypedArray:VO,isFileList:zO,forEach:UO,merge:function e(){const{caseless:t}=HO(this)&&this||{},r={},n=(n,i)=>{const o=t&&FO(r,i)||i;MO(r[o])&&MO(n)?r[o]=e(r[o],n):MO(n)?r[o]=e({},n):PO(n)?r[o]=n.slice():r[o]=n};for(let i=0,o=arguments.length;i(UO(t,((t,n)=>{r&&jO(t)?e[n]=xO(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&SO(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:kO,kindOfTest:EO,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(PO(e))return e;let t=e.length;if(!RO(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:KO,hasOwnProperty:WO,hasOwnProp:WO,reduceDescriptors:ZO,freezeMethods:e=>{ZO(e,((t,r)=>{if(jO(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];jO(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return PO(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:FO,global:$O,isContextDefined:HO,ALPHABET:JO,generateString:(e=16,t=JO.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&jO(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(IO(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=PO(e)?[]:{};return UO(e,((e,t)=>{const o=r(e,n+1);!TO(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:QO,isThenable:e=>e&&(IO(e)||jO(e))&&jO(e.then)&&jO(e.catch)};function tC(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}eC.inherits(tC,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eC.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rC=tC.prototype,nC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{nC[e]={value:e}})),Object.defineProperties(tC,nC),Object.defineProperty(rC,"isAxiosError",{value:!0}),tC.from=(e,t,r,n,i,o)=>{const a=Object.create(rC);return eC.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),tC.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const iC=tC;var oC=r(4872).Buffer;function aC(e){return eC.isPlainObject(e)||eC.isArray(e)}function sC(e){return eC.endsWith(e,"[]")?e.slice(0,-2):e}function cC(e,t,r){return e?e.concat(t).map((function(e,t){return e=sC(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const lC=eC.toFlatObject(eC,{},null,(function(e){return/^is[A-Z]/.test(e)}));const uC=function(e,t,r){if(!eC.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=eC.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!eC.isUndefined(t[e])}))).metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!==typeof Blob&&Blob)&&eC.isSpecCompliantForm(t);if(!eC.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(eC.isDate(e))return e.toISOString();if(!s&&eC.isBlob(e))throw new iC("Blob is not supported. Use a Buffer instead.");return eC.isArrayBuffer(e)||eC.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):oC.from(e):e}function l(e,r,i){let s=e;if(e&&!i&&"object"===typeof e)if(eC.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(eC.isArray(e)&&function(e){return eC.isArray(e)&&!e.some(aC)}(e)||(eC.isFileList(e)||eC.endsWith(r,"[]"))&&(s=eC.toArray(e)))return r=sC(r),s.forEach((function(e,n){!eC.isUndefined(e)&&null!==e&&t.append(!0===a?cC([r],n,o):null===a?r:r+"[]",c(e))})),!1;return!!aC(e)||(t.append(cC(i,r,o),c(e)),!1)}const u=[],d=Object.assign(lC,{defaultVisitor:l,convertValue:c,isVisitable:aC});if(!eC.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!eC.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),eC.forEach(r,(function(r,o){!0===(!(eC.isUndefined(r)||null===r)&&i.call(t,r,eC.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])})),u.pop()}}(e),t};function dC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function hC(e,t){this._pairs=[],e&&uC(e,this,t)}const fC=hC.prototype;fC.append=function(e,t){this._pairs.push([e,t])},fC.toString=function(e){const t=e?function(t){return e.call(this,t,dC)}:dC;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const pC=hC;function mC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gC(e,t,r){if(!t)return e;const n=r&&r.encode||mC,i=r&&r.serialize;let o;if(o=i?i(t,r):eC.isURLSearchParams(t)?t.toString():new pC(t,r).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const vC=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){eC.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},yC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bC={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:pC,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},wC="undefined"!==typeof window&&"undefined"!==typeof document,xC=(_C="undefined"!==typeof navigator&&navigator.product,wC&&["ReactNative","NativeScript","NS"].indexOf(_C)<0);var _C;const SC="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,kC={...e,...bC};const EC=function(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&eC.isArray(n)?n.length:o,s)return eC.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a;n[o]&&eC.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&eC.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n{t(function(e){return eC.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const AC={transitional:yC,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=eC.isObject(e);i&&eC.isHTMLForm(e)&&(e=new FormData(e));if(eC.isFormData(e))return n&&n?JSON.stringify(EC(e)):e;if(eC.isArrayBuffer(e)||eC.isBuffer(e)||eC.isStream(e)||eC.isFile(e)||eC.isBlob(e))return e;if(eC.isArrayBufferView(e))return e.buffer;if(eC.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return uC(e,new kC.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return kC.isNode&&eC.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=eC.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return uC(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(eC.isString(e))try{return(t||JSON.parse)(e),eC.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||AC.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&eC.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(r){if("SyntaxError"===i.name)throw iC.from(i,iC.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kC.classes.FormData,Blob:kC.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eC.forEach(["delete","get","head","post","put","patch"],(e=>{AC.headers[e]={}}));const PC=AC,TC=eC.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),OC=Symbol("internals");function CC(e){return e&&String(e).trim().toLowerCase()}function jC(e){return!1===e||null==e?e:eC.isArray(e)?e.map(jC):String(e)}function RC(e,t,r,n,i){return eC.isFunction(n)?n.call(this,t,r):(i&&(t=r),eC.isString(t)?eC.isString(n)?-1!==t.indexOf(n):eC.isRegExp(n)?n.test(t):void 0:void 0)}class IC{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=CC(t);if(!i)throw new Error("header name must be a non-empty string");const o=eC.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=jC(e))}const o=(e,t)=>eC.forEach(e,((e,r)=>i(e,r,t)));return eC.isPlainObject(e)||e instanceof this.constructor?o(e,t):eC.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&TC[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=CC(e)){const r=eC.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(eC.isFunction(t))return t.call(this,e,r);if(eC.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=CC(e)){const r=eC.findKey(this,e);return!(!r||void 0===this[r]||t&&!RC(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=CC(e)){const i=eC.findKey(r,e);!i||t&&!RC(0,r[i],i,t)||(delete r[i],n=!0)}}return eC.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!RC(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return eC.forEach(this,((n,i)=>{const o=eC.findKey(r,i);if(o)return t[o]=jC(n),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();a!==i&&delete t[i],t[a]=jC(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return eC.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&eC.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[OC]=this[OC]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=CC(e);t[n]||(!function(e,t){const r=eC.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return eC.isArray(e)?e.forEach(n):n(e),this}}IC.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eC.reduceDescriptors(IC.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),eC.freezeMethods(IC);const MC=IC;function LC(e,t){const r=this||PC,n=t||r,i=MC.from(n.headers);let o=n.data;return eC.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function NC(e){return!(!e||!e.__CANCEL__)}function DC(e,t,r){iC.call(this,null==e?"canceled":e,iC.ERR_CANCELED,t,r),this.name="CanceledError"}eC.inherits(DC,iC,{__CANCEL__:!0});const zC=DC;const BC=kC.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];eC.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),eC.isString(n)&&a.push("path="+n),eC.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function UC(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const FC=kC.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=eC.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};const $C=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];i||(i=c),r[o]=s,n[o]=c;let u=a,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s);r=o;const l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const VC="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const i=MC.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(eC.isFormData(n))if(kC.hasStandardBrowserEnv||kC.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}const d=UC(e.baseURL,e.url);function h(){if(!u)return;const n=MC.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new iC("Request failed with status code "+r.status,[iC.ERR_BAD_REQUEST,iC.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),l()}),(function(e){r(e),l()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),gC(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(r(new iC("Request aborted",iC.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new iC("Network Error",iC.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||yC;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new iC(t,n.clarifyTimeoutError?iC.ETIMEDOUT:iC.ECONNABORTED,e,u)),u=null},kC.hasStandardBrowserEnv&&(c&&eC.isFunction(c)&&(c=c(e)),c||!1!==c&&FC(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&BC.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===n&&i.setContentType(null),"setRequestHeader"in u&&eC.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),eC.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",HC(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",HC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(r(!t||t.type?new zC(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===kC.protocols.indexOf(f)?r(new iC("Unsupported protocol "+f+":",iC.ERR_BAD_REQUEST,e)):u.send(n||null)}))},qC={http:null,xhr:VC};eC.forEach(qC,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const KC=e=>`- ${e}`,WC=e=>eC.isFunction(e)||null===e||!1===e,GC=e=>{e=eC.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(KC).join("\n"):" "+KC(e[0]):"as no adapter specified";throw new iC("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function ZC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zC(null,e)}function YC(e){ZC(e),e.headers=MC.from(e.headers),e.data=LC.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return GC(e.adapter||PC.adapter)(e).then((function(t){return ZC(e),t.data=LC.call(e,e.transformResponse,t),t.headers=MC.from(t.headers),t}),(function(t){return NC(t)||(ZC(e),t&&t.response&&(t.response.data=LC.call(e,e.transformResponse,t.response),t.response.headers=MC.from(t.response.headers))),Promise.reject(t)}))}const XC=e=>e instanceof MC?e.toJSON():e;function JC(e,t){t=t||{};const r={};function n(e,t,r){return eC.isPlainObject(e)&&eC.isPlainObject(t)?eC.merge.call({caseless:r},e,t):eC.isPlainObject(t)?eC.merge({},t):eC.isArray(t)?t.slice():t}function i(e,t,r){return eC.isUndefined(t)?eC.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!eC.isUndefined(t))return n(void 0,t)}function a(e,t){return eC.isUndefined(t)?eC.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(XC(e),XC(t),!0)};return eC.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=c[n]||i,a=o(e[n],t[n],n);eC.isUndefined(a)&&o!==s||(r[n]=a)})),r}const QC="1.6.5",ej={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ej[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const tj={};ej.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.5] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new iC(n(i," has been removed"+(t?" in "+t:"")),iC.ERR_DEPRECATED);return t&&!tj[i]&&(tj[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};const rj={assertOptions:function(e,t,r){if("object"!==typeof e)throw new iC("options must be an object",iC.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new iC("option "+o+" must be "+r,iC.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new iC("Unknown option "+o,iC.ERR_BAD_OPTION)}},validators:ej},nj=rj.validators;class ij{constructor(e){this.defaults=e,this.interceptors={request:new vC,response:new vC}}request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=JC(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&rj.assertOptions(r,{silentJSONParsing:nj.transitional(nj.boolean),forcedJSONParsing:nj.transitional(nj.boolean),clarifyTimeoutError:nj.transitional(nj.boolean)},!1),null!=n&&(eC.isFunction(n)?t.paramsSerializer={serialize:n}:rj.assertOptions(n,{encode:nj.function,serialize:nj.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&eC.merge(i.common,i[t.method]);i&&eC.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=MC.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[YC.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new zC(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new aj((function(t){e=t}));return{token:t,cancel:e}}}const sj=aj;const cj={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cj).forEach((([e,t])=>{cj[t]=e}));const lj=cj;const uj=function e(t){const r=new oj(t),n=xO(oj.prototype.request,r);return eC.extend(n,oj.prototype,r,{allOwnKeys:!0}),eC.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(JC(t,r))},n}(PC);uj.Axios=oj,uj.CanceledError=zC,uj.CancelToken=sj,uj.isCancel=NC,uj.VERSION=QC,uj.toFormData=uC,uj.AxiosError=iC,uj.Cancel=uj.CanceledError,uj.all=function(e){return Promise.all(e)},uj.spread=function(e){return function(t){return e.apply(null,t)}},uj.isAxiosError=function(e){return eC.isObject(e)&&!0===e.isAxiosError},uj.mergeConfig=JC,uj.AxiosHeaders=MC,uj.formToJSON=e=>EC(eC.isHTMLForm(e)?new FormData(e):e),uj.getAdapter=GC,uj.HttpStatusCode=lj,uj.default=uj;const dj=uj,hj=e=>(0,un.jsxs)(LA,{width:"24px",height:"24px",fill:"none",textAlign:"center",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,un.jsx)("path",{d:"M14 5.6C14 5.03995 14 4.75992 14.109 4.54601C14.2049 4.35785 14.3578 4.20487 14.546 4.10899C14.7599 4 15.0399 4 15.6 4H18.4C18.9601 4 19.2401 4 19.454 4.10899C19.6422 4.20487 19.7951 4.35785 19.891 4.54601C20 4.75992 20 5.03995 20 5.6V8.4C20 8.96005 20 9.24008 19.891 9.45399C19.7951 9.64215 19.6422 9.79513 19.454 9.89101C19.2401 10 18.9601 10 18.4 10H15.6C15.0399 10 14.7599 10 14.546 9.89101C14.3578 9.79513 14.2049 9.64215 14.109 9.45399C14 9.24008 14 8.96005 14 8.4V5.6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M4 5.6C4 5.03995 4 4.75992 4.10899 4.54601C4.20487 4.35785 4.35785 4.20487 4.54601 4.10899C4.75992 4 5.03995 4 5.6 4H8.4C8.96005 4 9.24008 4 9.45399 4.10899C9.64215 4.20487 9.79513 4.35785 9.89101 4.54601C10 4.75992 10 5.03995 10 5.6V8.4C10 8.96005 10 9.24008 9.89101 9.45399C9.79513 9.64215 9.64215 9.79513 9.45399 9.89101C9.24008 10 8.96005 10 8.4 10H5.6C5.03995 10 4.75992 10 4.54601 9.89101C4.35785 9.79513 4.20487 9.64215 4.10899 9.45399C4 9.24008 4 8.96005 4 8.4V5.6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M4 15.6C4 15.0399 4 14.7599 4.10899 14.546C4.20487 14.3578 4.35785 14.2049 4.54601 14.109C4.75992 14 5.03995 14 5.6 14H8.4C8.96005 14 9.24008 14 9.45399 14.109C9.64215 14.2049 9.79513 14.3578 9.89101 14.546C10 14.7599 10 15.0399 10 15.6V18.4C10 18.9601 10 19.2401 9.89101 19.454C9.79513 19.6422 9.64215 19.7951 9.45399 19.891C9.24008 20 8.96005 20 8.4 20H5.6C5.03995 20 4.75992 20 4.54601 19.891C4.35785 19.7951 4.20487 19.6422 4.10899 19.454C4 19.2401 4 18.9601 4 18.4V15.6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M14 15.6C14 15.0399 14 14.7599 14.109 14.546C14.2049 14.3578 14.3578 14.2049 14.546 14.109C14.7599 14 15.0399 14 15.6 14H18.4C18.9601 14 19.2401 14 19.454 14.109C19.6422 14.2049 19.7951 14.3578 19.891 14.546C20 14.7599 20 15.0399 20 15.6V18.4C20 18.9601 20 19.2401 19.891 19.454C19.7951 19.6422 19.6422 19.7951 19.454 19.891C19.2401 20 18.9601 20 18.4 20H15.6C15.0399 20 14.7599 20 14.546 19.891C14.3578 19.7951 14.2049 19.6422 14.109 19.454C14 19.2401 14 18.9601 14 18.4V15.6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),fj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M8.25 13.5H4.65C3.80992 13.5 3.38988 13.5 3.06901 13.3365C2.78677 13.1927 2.5573 12.9632 2.41349 12.681C2.25 12.3601 2.25 11.9401 2.25 11.1V5.4C2.25 4.55992 2.25 4.13988 2.41349 3.81901C2.5573 3.53677 2.78677 3.3073 3.06901 3.16349C3.38988 3 3.80992 3 4.65 3H13.35C14.1901 3 14.6101 3 14.931 3.16349C15.2132 3.3073 15.4427 3.53677 15.5865 3.81901C15.75 4.13988 15.75 4.55992 15.75 5.4V8.25M2.25 6H15.75M13.5 15V10.5M15.75 12.7506L11.25 12.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),pj=e=>(0,un.jsx)(LA,{fill:"none",viewBox:"0 0 13 17",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M13 12.5L10.75 12.5M10.75 12.5L8.5 12.5M10.75 12.5V10.25M10.75 12.5V14.75M6.25 14.75H1C1 11.8505 3.35051 9.5 6.25 9.5C6.77123 9.5 7.27472 9.57596 7.75 9.71741M9.25 4.25C9.25 5.90685 7.90685 7.25 6.25 7.25C4.59315 7.25 3.25 5.90685 3.25 4.25C3.25 2.59315 4.59315 1.25 6.25 1.25C7.90685 1.25 9.25 2.59315 9.25 4.25Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),mj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M13.5 15.5C13.2164 14.3589 11.981 13.5 10.5 13.5C9.019 13.5 7.78364 14.3589 7.5 15.5M21 5V7M21 11V13M21 17V19M6.2 21H14.8C15.9201 21 16.4802 21 16.908 20.782C17.2843 20.5903 17.5903 20.2843 17.782 19.908C18 19.4802 18 18.9201 18 17.8V6.2C18 5.0799 18 4.51984 17.782 4.09202C17.5903 3.71569 17.2843 3.40973 16.908 3.21799C16.4802 3 15.9201 3 14.8 3H6.2C5.0799 3 4.51984 3 4.09202 3.21799C3.71569 3.40973 3.40973 3.71569 3.21799 4.09202C3 4.51984 3 5.07989 3 6.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21ZM11.5 9.5C11.5 10.0523 11.0523 10.5 10.5 10.5C9.94772 10.5 9.5 10.0523 9.5 9.5C9.5 8.94772 9.94772 8.5 10.5 8.5C11.0523 8.5 11.5 8.94772 11.5 9.5Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),gj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],"data-testid":"baker-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3.74946 5.25V8.25M7.49946 1.5V4.5M13.4995 12V15M2.24946 6.75H5.24946M5.99946 3H8.99946M11.9995 13.5H14.9995M10.4995 5.25L12.6208 7.37132M14.6369 2.80959L15.0612 3.23385C15.3582 3.53086 15.5067 3.67937 15.5624 3.85062C15.6113 4.00125 15.6113 4.16351 15.5624 4.31414C15.5067 4.48539 15.3582 4.6339 15.0612 4.93091L4.89356 15.0985C4.59655 15.3955 4.44804 15.5441 4.2768 15.5997C4.12617 15.6486 3.9639 15.6486 3.81327 15.5997C3.64203 15.5441 3.49352 15.3955 3.19651 15.0985L2.77224 14.6743C2.47523 14.3773 2.32672 14.2288 2.27108 14.0575C2.22214 13.9069 2.22214 13.7446 2.27108 13.594C2.32672 13.4227 2.47523 13.2742 2.77224 12.9772L12.9399 2.80959C13.2369 2.51258 13.3854 2.36407 13.5566 2.30843C13.7073 2.25948 13.8695 2.25948 14.0202 2.30843C14.1914 2.36407 14.3399 2.51258 14.6369 2.80959Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),vj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",strokeWidth:"1.2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M10 4V20M14 4V20M4 8C4 8.92997 4 9.39496 4.10222 9.77646C4.37962 10.8117 5.18827 11.6204 6.22354 11.8978C6.60504 12 7.07003 12 8 12H16C16.93 12 17.395 12 17.7765 11.8978C18.8117 11.6204 19.6204 10.8117 19.8978 9.77646C20 9.39496 20 8.92997 20 8M4 8C4 7.07003 4 6.60504 4.10222 6.22354C4.37962 5.18827 5.18827 4.37962 6.22354 4.10222C6.60504 4 7.07003 4 8 4H16C16.93 4 17.395 4 17.7765 4.10222C18.8117 4.37962 19.6204 5.18827 19.8978 6.22354C20 6.60504 20 7.07003 20 8M4 8V16C4 16.93 4 17.395 4.10222 17.7765C4.37962 18.8117 5.18827 19.6204 6.22354 19.8978C6.60504 20 7.07003 20 8 20H16C16.93 20 17.395 20 17.7765 19.8978C18.8117 19.6204 19.6204 18.8117 19.8978 17.7765C20 17.395 20 16.93 20 16V8M10 16H8C7.07003 16 6.60504 16 6.22354 15.8978C5.18827 15.6204 4.37962 14.8117 4.10222 13.7765C4 13.395 4 12.93 4 12M14 16H16C16.93 16 17.395 16 17.7765 15.8978C18.8117 15.6204 19.6204 14.8117 19.8978 13.7765C20 13.395 20 12.93 20 12M7 8H7.01M17 8H17.01",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round"})}),yj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],textAlign:"center",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4 6H20M4 12H20M4 18H20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),bj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M6 9.25L7.84615 11.25L12 6.75M15.75 9C15.75 12.7279 12.7279 15.75 9 15.75C5.27208 15.75 2.25 12.7279 2.25 9C2.25 5.27208 5.27208 2.25 9 2.25C12.7279 2.25 15.75 5.27208 15.75 9Z",stroke:"#00C39A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),wj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4.5 6.75L9 11.25L13.5 6.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),xj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M7 14L11.5 9.5L7 5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),_j=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4.5 11.25L9 6.75L13.5 11.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Sj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12 10V14M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),kj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none","data-testid":"contact-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3.75 15.75C3.75 12.8505 6.10051 10.5 9 10.5C11.8995 10.5 14.25 12.8505 14.25 15.75M12 5.25C12 6.90685 10.6569 8.25 9 8.25C7.34315 8.25 6 6.90685 6 5.25C6 3.59315 7.34315 2.25 9 2.25C10.6569 2.25 12 3.59315 12 5.25Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Ej=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M7.5 12.75L6 11.25L7.5 9.75M10.5 9.75L12 11.25L10.5 12.75M9.75 2.25H6.15C5.30992 2.25 4.88988 2.25 4.56901 2.41349C4.28677 2.5573 4.0573 2.78677 3.91349 3.06901C3.75 3.38988 3.75 3.80992 3.75 4.65V13.35C3.75 14.1901 3.75 14.6101 3.91349 14.931C4.0573 15.2132 4.28677 15.4427 4.56901 15.5865C4.88988 15.75 5.30992 15.75 6.15 15.75H11.85C12.6901 15.75 13.1101 15.75 13.431 15.5865C13.7132 15.4427 13.9427 15.2132 14.0865 14.931C14.25 14.6101 14.25 14.1901 14.25 13.35V6.75M9.75 2.25L14.25 6.75M9.75 2.25V6C9.75 6.41421 10.0858 6.75 10.5 6.75H14.25",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Aj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M13.773 13.773C14.9945 12.5515 15.75 10.864 15.75 9C15.75 5.27208 12.7279 2.25 9 2.25C7.13604 2.25 5.44854 3.00552 4.22703 4.22703M13.773 13.773C12.5515 14.9945 10.864 15.75 9 15.75C5.27208 15.75 2.25 12.7279 2.25 9C2.25 7.13604 3.00552 5.44854 4.22703 4.22703M13.773 13.773L4.22703 4.22703",stroke:"#FB4F57",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Pj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3.125 9H20.875M12 3L8 9L12 20.6667L16 9L12 3ZM12.64 20.1467L20.64 9.48C20.7691 9.30787 20.8336 9.22181 20.8585 9.12728C20.8805 9.04385 20.8805 8.95615 20.8585 8.87272C20.8336 8.77819 20.7691 8.69213 20.64 8.52L16.74 3.32C16.652 3.20267 16.608 3.144 16.5522 3.10169C16.5028 3.06421 16.4469 3.03625 16.3873 3.01922C16.32 3 16.2467 3 16.1 3H7.9C7.75333 3 7.68 3 7.61269 3.01922C7.55308 3.03625 7.49715 3.06421 7.44776 3.10169C7.392 3.144 7.348 3.20267 7.26 3.32L3.36 8.52C3.2309 8.69213 3.16635 8.77819 3.14147 8.87271C3.11951 8.95615 3.11951 9.04385 3.14147 9.12728C3.16635 9.2218 3.2309 9.30787 3.36 9.48L11.36 20.1467C11.5771 20.4362 11.6857 20.5809 11.8188 20.6327C11.9353 20.678 12.0647 20.678 12.1812 20.6327C12.3143 20.5809 12.4229 20.4362 12.64 20.1467Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Tj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M9 17H13M9 13H13M9 9H10M17 18V21M17 15H17.01M13 3H8.2C7.0799 3 6.51984 3 6.09202 3.21799C5.71569 3.40973 5.40973 3.71569 5.21799 4.09202C5 4.51984 5 5.0799 5 6.2V17.8C5 18.9201 5 19.4802 5.21799 19.908C5.40973 20.2843 5.71569 20.5903 6.09202 20.782C6.51984 21 7.0799 21 8.2 21H13M13 3L19 9M13 3V7.4C13 7.96005 13 8.24008 13.109 8.45399C13.2049 8.64215 13.3578 8.79513 13.546 8.89101C13.7599 9 14.0399 9 14.6 9H19M19 9V11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Oj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4 14L9 19L20 8M6 8.88889L9.07692 12L16 5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Cj=e=>(0,un.jsx)(LA,{width:"16px",height:"16px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M5 7.25L8 10.25M8 10.25L11 7.25M8 10.25V1.25M14.75 7.25V12.3494C14.75 13.1895 14.75 13.6095 14.5865 13.9304C14.4427 14.2126 14.2132 14.4421 13.931 14.5859C13.6101 14.7494 13.1901 14.7494 12.35 14.7494H3.65C2.80992 14.7494 2.38988 14.7494 2.06901 14.5859C1.78677 14.4421 1.5573 14.2126 1.41349 13.9304C1.25 13.6095 1.25 13.1895 1.25 12.3494V7.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),jj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M8.5 21H4C4 17.134 7.13401 14 11 14C11.1681 14 11.3348 14.0059 11.5 14.0176M15 7C15 9.20914 13.2091 11 11 11C8.79086 11 7 9.20914 7 7C7 4.79086 8.79086 3 11 3C13.2091 3 15 4.79086 15 7ZM12.5898 21L14.6148 20.595C14.7914 20.5597 14.8797 20.542 14.962 20.5097C15.0351 20.4811 15.1045 20.4439 15.1689 20.399C15.2414 20.3484 15.3051 20.2848 15.4324 20.1574L19.5898 16C20.1421 15.4477 20.1421 14.5523 19.5898 14C19.0376 13.4477 18.1421 13.4477 17.5898 14L13.4324 18.1574C13.3051 18.2848 13.2414 18.3484 13.1908 18.421C13.1459 18.4853 13.1088 18.5548 13.0801 18.6279C13.0478 18.7102 13.0302 18.7985 12.9948 18.975L12.5898 21Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Rj=e=>(0,un.jsx)(LA,{width:"12px",height:"12px",fill:"none",stroke:EP.orange,viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M6 3.66667V6.58333M6 8.33333H6.00583M11.25 6C11.25 8.89949 8.89949 11.25 6 11.25C3.1005 11.25 0.75 8.89949 0.75 6C0.75 3.1005 3.1005 0.75 6 0.75C8.89949 0.75 11.25 3.1005 11.25 6Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Ij=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M15 3V15M3 9H12M12 9L9 6M12 9L9 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Mj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M15 3L9 9M15 3V6.375M15 3H11.625M14.25 9.375V12.6C14.25 13.4401 14.25 13.8601 14.0865 14.181C13.9427 14.4632 13.7132 14.6927 13.431 14.8365C13.1101 15 12.6901 15 11.85 15H5.4C4.55992 15 4.13988 15 3.81901 14.8365C3.53677 14.6927 3.3073 14.4632 3.16349 14.181C3 13.8601 3 13.4401 3 12.6V6.15C3 5.30992 3 4.88988 3.16349 4.56901C3.3073 4.28677 3.53677 4.0573 3.81901 3.91349C4.13988 3.75 4.55992 3.75 5.4 3.75H8.625",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Lj=e=>(0,un.jsxs)(LA,{width:"16px",height:"12px",fill:"none",viewBox:"0 0 16 12",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,un.jsx)("path",{d:"M10.2501 6C10.2501 7.24264 9.2427 8.25 8.00006 8.25C6.75742 8.25 5.75006 7.24264 5.75006 6C5.75006 4.75736 6.75742 3.75 8.00006 3.75C9.2427 3.75 10.2501 4.75736 10.2501 6Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M8.00039 0.75C4.64217 0.75 1.79946 2.95716 0.84375 5.99997C1.79944 9.04282 4.64217 11.25 8.00041 11.25C11.3586 11.25 14.2013 9.04284 15.157 6.00003C14.2014 2.95719 11.3586 0.75 8.00039 0.75Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),Nj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M2.25024 2.25L15.7502 15.75M7.38345 7.43523C6.99147 7.84016 6.75024 8.39191 6.75024 9C6.75024 10.2426 7.7576 11.25 9.00024 11.25C9.6171 11.25 10.176 11.0018 10.5824 10.5997M4.87524 4.98536C3.45076 5.92525 2.36577 7.33796 1.84375 8.99997C2.79944 12.0428 5.64217 14.25 9.00041 14.25C10.4921 14.25 11.882 13.8145 13.0501 13.0638M8.25024 3.78705C8.49697 3.76254 8.74722 3.75 9.00039 3.75C12.3586 3.75 15.2014 5.95719 16.157 9.00003C15.9465 9.67048 15.6443 10.3004 15.2651 10.875",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Dj=e=>(0,un.jsx)(LA,{width:"30px",height:"15px",fill:EP.gray[450],viewBox:"1 1 30 15",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M1.2429 13V4.27273H7.02131V5.79403H3.08807V7.87358H6.63778V9.39489H3.08807V13H1.2429ZM8.67685 13H6.69957L9.71236 4.27273H12.0902L15.0987 13H13.1214L10.9354 6.26705H10.8672L8.67685 13ZM8.55327 9.5696H13.2237V11.0099H8.55327V9.5696ZM19.4847 4.27273V13H17.6396V6.02415H17.5884L15.5898 7.27699V5.64062L17.7504 4.27273H19.4847ZM22.1683 13.1108C21.8871 13.1108 21.6456 13.0114 21.4439 12.8125C21.245 12.6108 21.1456 12.3693 21.1456 12.0881C21.1456 11.8097 21.245 11.571 21.4439 11.3722C21.6456 11.1733 21.8871 11.0739 22.1683 11.0739C22.4411 11.0739 22.6797 11.1733 22.8842 11.3722C23.0888 11.571 23.1911 11.8097 23.1911 12.0881C23.1911 12.2756 23.1428 12.4474 23.0462 12.6037C22.9524 12.7571 22.8288 12.8807 22.6754 12.9744C22.522 13.0653 22.353 13.1108 22.1683 13.1108ZM24.6644 13V11.6705L27.771 8.79403C28.0352 8.53835 28.2567 8.30824 28.4357 8.10369C28.6175 7.89915 28.7553 7.69886 28.8491 7.50284C28.9428 7.30398 28.9897 7.08949 28.9897 6.85938C28.9897 6.60369 28.9315 6.38352 28.815 6.19886C28.6985 6.01136 28.5394 5.8679 28.3377 5.76847C28.136 5.66619 27.9073 5.61506 27.6516 5.61506C27.3846 5.61506 27.1516 5.66903 26.9528 5.77699C26.7539 5.88494 26.6005 6.03977 26.4925 6.24148C26.3846 6.44318 26.3306 6.68324 26.3306 6.96165H24.5792C24.5792 6.39062 24.7085 5.89489 24.967 5.47443C25.2255 5.05398 25.5877 4.72869 26.0536 4.49858C26.5195 4.26847 27.0565 4.15341 27.6644 4.15341C28.2894 4.15341 28.8335 4.2642 29.2965 4.4858C29.7624 4.70455 30.1246 5.00852 30.3832 5.39773C30.6417 5.78693 30.771 6.23295 30.771 6.7358C30.771 7.06534 30.7056 7.39062 30.5749 7.71165C30.4471 8.03267 30.2184 8.3892 29.8888 8.78125C29.5593 9.17045 29.0948 9.63778 28.4954 10.1832L27.2212 11.4318V11.4915H30.886V13H24.6644Z"})}),zj=e=>(0,un.jsx)(LA,{width:"23px",height:"18px",fill:EP.gray[450],viewBox:"0 0 23 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M1.0261 13V4.27273H6.80451V5.79403H2.87127V7.87358H6.42099V9.39489H2.87127V13H1.0261ZM8.46005 13H6.48278L9.49556 4.27273H11.8734L14.8819 13H12.9047L10.7186 6.26705H10.6504L8.46005 13ZM8.33647 9.5696H13.0069V11.0099H8.33647V9.5696ZM15.8812 13V11.6705L18.9877 8.79403C19.252 8.53835 19.4735 8.30824 19.6525 8.10369C19.8343 7.89915 19.9721 7.69886 20.0659 7.50284C20.1596 7.30398 20.2065 7.08949 20.2065 6.85938C20.2065 6.60369 20.1483 6.38352 20.0318 6.19886C19.9153 6.01136 19.7562 5.8679 19.5545 5.76847C19.3528 5.66619 19.1241 5.61506 18.8684 5.61506C18.6014 5.61506 18.3684 5.66903 18.1696 5.77699C17.9707 5.88494 17.8173 6.03977 17.7093 6.24148C17.6014 6.44318 17.5474 6.68324 17.5474 6.96165H15.796C15.796 6.39062 15.9252 5.89489 16.1838 5.47443C16.4423 5.05398 16.8045 4.72869 17.2704 4.49858C17.7363 4.26847 18.2733 4.15341 18.8812 4.15341C19.5062 4.15341 20.0502 4.2642 20.5133 4.4858C20.9792 4.70455 21.3414 5.00852 21.6 5.39773C21.8585 5.78693 21.9877 6.23295 21.9877 6.7358C21.9877 7.06534 21.9224 7.39062 21.7917 7.71165C21.6639 8.03267 21.4352 8.3892 21.1056 8.78125C20.7761 9.17045 20.3116 9.63778 19.7122 10.1832L18.438 11.4318V11.4915H22.1028V13H15.8812Z"})}),Bj=e=>(0,un.jsx)(LA,{width:"19px",height:"19px",fill:"none",stroke:EP.gray[400],viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M15.7842 10.2916C15.8165 10.0323 15.8332 9.76807 15.8332 9.49996C15.8332 6.00216 12.9976 3.16663 9.49984 3.16663C7.52021 3.16663 5.75273 4.07488 4.59135 5.49742M3.2155 8.70829C3.18316 8.96764 3.1665 9.23185 3.1665 9.49996C3.1665 12.9978 6.00203 15.8333 9.49984 15.8333C11.3914 15.8333 13.0893 15.004 14.2498 13.6892M11.8748 13.4583H14.2498V13.6892M4.59135 3.16663V5.49742M4.59135 5.49742V5.54157L6.96635 5.54163M14.2498 15.8333V13.6892",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Uj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M9 8.25V12.75M9 12.75L7.5 11.25M9 12.75L10.5 11.25M9.75 2.25H6.15C5.30992 2.25 4.88988 2.25 4.56901 2.41349C4.28677 2.5573 4.0573 2.78677 3.91349 3.06901C3.75 3.38988 3.75 3.80992 3.75 4.65V13.35C3.75 14.1901 3.75 14.6101 3.91349 14.931C4.0573 15.2132 4.28677 15.4427 4.56901 15.5865C4.88988 15.75 5.30992 15.75 6.15 15.75H11.85C12.6901 15.75 13.1101 15.75 13.431 15.5865C13.7132 15.4427 13.9427 15.2132 14.0865 14.931C14.25 14.6101 14.25 14.1901 14.25 13.35V6.75M9.75 2.25L14.25 6.75M9.75 2.25V5.55C9.75 5.97004 9.75 6.18006 9.83175 6.34049C9.90365 6.48161 10.0184 6.59635 10.1595 6.66825C10.3199 6.75 10.53 6.75 10.95 6.75H14.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Fj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M11.25 2.25V4.8C11.25 5.22004 11.25 5.43006 11.3317 5.59049C11.4037 5.73161 11.5184 5.84635 11.6595 5.91825C11.8199 6 12.03 6 12.45 6H15M7.5 6H4.5C3.67157 6 3 6.67157 3 7.5V14.25C3 15.0784 3.67157 15.75 4.5 15.75H9C9.82843 15.75 10.5 15.0784 10.5 14.25V12M12 2.25H9.9C9.05992 2.25 8.63988 2.25 8.31901 2.41349C8.03677 2.5573 7.8073 2.78677 7.66349 3.06901C7.5 3.38988 7.5 3.80992 7.5 4.65V9.6C7.5 10.4401 7.5 10.8601 7.66349 11.181C7.8073 11.4632 8.03677 11.6927 8.31901 11.8365C8.63988 12 9.05992 12 9.9 12H12.6C13.4401 12 13.8601 12 14.181 11.8365C14.4632 11.6927 14.6927 11.4632 14.8365 11.181C15 10.8601 15 10.4401 15 9.6V5.25L12 2.25Z",strokeLinejoin:"round",strokeWidth:"1.2"})}),$j=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:"black",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M2.95314 5.997C4.05824 3.77605 6.35091 2.25 9 2.25C12.4718 2.25 15.3314 4.87105 15.708 8.24231M2.2912 9.74998C2.66427 13.125 5.52558 15.75 9 15.75C11.6496 15.75 13.9427 14.2234 15.0475 12.0017M2.25 3V6.375H5.625M15.75 15.375V12H12.375M8.625 6.75L7.5 9H10.5L9.375 11.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Hj=e=>(0,un.jsxs)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,un.jsx)("path",{d:"M15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,un.jsx)("path",{d:"M12.9046 3.06005C12.6988 3 12.4659 3 12 3C11.5341 3 11.3012 3 11.0954 3.06005C10.7942 3.14794 10.5281 3.32808 10.3346 3.57511C10.2024 3.74388 10.1159 3.96016 9.94291 4.39272C9.69419 5.01452 9.00393 5.33471 8.36857 5.123L7.79779 4.93281C7.3929 4.79785 7.19045 4.73036 6.99196 4.7188C6.70039 4.70181 6.4102 4.77032 6.15701 4.9159C5.98465 5.01501 5.83376 5.16591 5.53197 5.4677C5.21122 5.78845 5.05084 5.94882 4.94896 6.13189C4.79927 6.40084 4.73595 6.70934 4.76759 7.01551C4.78912 7.2239 4.87335 7.43449 5.04182 7.85566C5.30565 8.51523 5.05184 9.26878 4.44272 9.63433L4.16521 9.80087C3.74031 10.0558 3.52786 10.1833 3.37354 10.3588C3.23698 10.5141 3.13401 10.696 3.07109 10.893C3 11.1156 3 11.3658 3 11.8663C3 12.4589 3 12.7551 3.09462 13.0088C3.17823 13.2329 3.31422 13.4337 3.49124 13.5946C3.69158 13.7766 3.96395 13.8856 4.50866 14.1035C5.06534 14.3261 5.35196 14.9441 5.16236 15.5129L4.94721 16.1584C4.79819 16.6054 4.72367 16.829 4.7169 17.0486C4.70875 17.3127 4.77049 17.5742 4.89587 17.8067C5.00015 18.0002 5.16678 18.1668 5.5 18.5C5.83323 18.8332 5.99985 18.9998 6.19325 19.1041C6.4258 19.2295 6.68733 19.2913 6.9514 19.2831C7.17102 19.2763 7.39456 19.2018 7.84164 19.0528L8.36862 18.8771C9.00393 18.6654 9.6942 18.9855 9.94291 19.6073C10.1159 20.0398 10.2024 20.2561 10.3346 20.4249C10.5281 20.6719 10.7942 20.8521 11.0954 20.94C11.3012 21 11.5341 21 12 21C12.4659 21 12.6988 21 12.9046 20.94C13.2058 20.8521 13.4719 20.6719 13.6654 20.4249C13.7976 20.2561 13.8841 20.0398 14.0571 19.6073C14.3058 18.9855 14.9961 18.6654 15.6313 18.8773L16.1579 19.0529C16.605 19.2019 16.8286 19.2764 17.0482 19.2832C17.3123 19.2913 17.5738 19.2296 17.8063 19.1042C17.9997 18.9999 18.1664 18.8333 18.4996 18.5001C18.8328 18.1669 18.9994 18.0002 19.1037 17.8068C19.2291 17.5743 19.2908 17.3127 19.2827 17.0487C19.2759 16.8291 19.2014 16.6055 19.0524 16.1584L18.8374 15.5134C18.6477 14.9444 18.9344 14.3262 19.4913 14.1035C20.036 13.8856 20.3084 13.7766 20.5088 13.5946C20.6858 13.4337 20.8218 13.2329 20.9054 13.0088C21 12.7551 21 12.4589 21 11.8663C21 11.3658 21 11.1156 20.9289 10.893C20.866 10.696 20.763 10.5141 20.6265 10.3588C20.4721 10.1833 20.2597 10.0558 19.8348 9.80087L19.5569 9.63416C18.9478 9.26867 18.6939 8.51514 18.9578 7.85558C19.1262 7.43443 19.2105 7.22383 19.232 7.01543C19.2636 6.70926 19.2003 6.40077 19.0506 6.13181C18.9487 5.94875 18.7884 5.78837 18.4676 5.46762C18.1658 5.16584 18.0149 5.01494 17.8426 4.91583C17.5894 4.77024 17.2992 4.70174 17.0076 4.71872C16.8091 4.73029 16.6067 4.79777 16.2018 4.93273L15.6314 5.12287C14.9961 5.33464 14.3058 5.0145 14.0571 4.39272C13.8841 3.96016 13.7976 3.74388 13.6654 3.57511C13.4719 3.32808 13.2058 3.14794 12.9046 3.06005Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),Vj=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M18.3795 5.65166L14.1055 9.86303M9.89445 14.137L5.63994 18.3679M5.63408 5.63799L9.89445 9.86303M14.1056 14.137L18.364 18.364M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",stroke:EP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),qj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M15 2.25H3M15 15.75H3M3.75 2.25C3.75 4.13267 4.65921 5.89944 6.1912 6.99371L11.8088 11.0063C13.3408 12.1006 14.25 13.8673 14.25 15.75M14.25 2.25C14.25 4.13267 13.3408 5.89944 11.8088 6.99371L6.1912 11.0063C4.65921 12.1006 3.75 13.8673 3.75 15.75",stroke:"#FB4F57",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Kj=e=>(0,un.jsx)(cR,{css:{rotate:"180deg"},...e}),Wj=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none","data-testid":"key-icon",strokeWidth:"1.2",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M9.24092 8.01389L3 14.25L4.5 15.75M5.25 12L6.75 13.5M15 5.625C15 7.48896 13.489 9 11.625 9C9.76104 9 8.25 7.48896 8.25 5.625C8.25 3.76104 9.76104 2.25 11.625 2.25C13.489 2.25 15 3.76104 15 5.625Z",strokeLinecap:"round",strokeLinejoin:"round"})});var Gj={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Zj=n.createContext&&n.createContext(Gj),Yj=function(){return Yj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r(0,un.jsx)(LA,{as:tR,width:"18px",height:"18px","data-testid":"ledger-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e}),nR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M9.16586 17.6508C8.9261 17.8747 8.74055 18.0245 8.55093 18.134C7.62273 18.6699 6.47914 18.6699 5.55093 18.134C5.20889 17.9365 4.88009 17.6077 4.22251 16.9501C3.56492 16.2925 3.23612 15.9637 3.03864 15.6217C2.50274 14.6935 2.50274 13.5499 3.03864 12.6217C3.23612 12.2797 3.56492 11.9509 4.2225 11.2933L7.05093 8.46484C7.70852 7.80725 8.03732 7.47846 8.37936 7.28098C9.30756 6.74508 10.4512 6.74508 11.3794 7.28098C11.7214 7.47846 12.0502 7.80725 12.7078 8.46484C13.3654 9.12243 13.6942 9.45123 13.8916 9.79327C14.4275 10.7215 14.4275 11.8651 13.8916 12.7933C13.7822 12.9829 13.6323 13.1684 13.4085 13.4082M10.5929 10.5926C10.369 10.8323 10.2192 11.0179 10.1097 11.2075C9.57381 12.1357 9.57381 13.2793 10.1097 14.2075C10.3072 14.5495 10.636 14.8783 11.2936 15.5359C11.9512 16.1935 12.28 16.5223 12.622 16.7198C13.5502 17.2557 14.6938 17.2557 15.622 16.7198C15.964 16.5223 16.2928 16.1935 16.9504 15.5359L19.7789 12.7075C20.4364 12.0499 20.7652 11.7211 20.9627 11.3791C21.4986 10.4509 21.4986 9.30726 20.9627 8.37906C20.7652 8.03701 20.4364 7.70822 19.7789 7.05063C19.1213 6.39304 18.7925 6.06425 18.4504 5.86677C17.5222 5.33087 16.3786 5.33087 15.4504 5.86677C15.2608 5.97625 15.0753 6.12608 14.8355 6.34992",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),iR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12 14.5V16.5M7 10.0288C7.47142 10 8.05259 10 8.8 10H15.2C15.9474 10 16.5286 10 17 10.0288M7 10.0288C6.41168 10.0647 5.99429 10.1455 5.63803 10.327C5.07354 10.6146 4.6146 11.0735 4.32698 11.638C4 12.2798 4 13.1198 4 14.8V16.2C4 17.8802 4 18.7202 4.32698 19.362C4.6146 19.9265 5.07354 20.3854 5.63803 20.673C6.27976 21 7.11984 21 8.8 21H15.2C16.8802 21 17.7202 21 18.362 20.673C18.9265 20.3854 19.3854 19.9265 19.673 19.362C20 18.7202 20 17.8802 20 16.2V14.8C20 13.1198 20 12.2798 19.673 11.638C19.3854 11.0735 18.9265 10.6146 18.362 10.327C18.0057 10.1455 17.5883 10.0647 17 10.0288M7 10.0288V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V10.0288",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),oR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:"black",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12.182 5.81859C13.9393 7.57595 13.9393 10.4252 12.182 12.1825M5.81802 12.1825C4.06066 10.4252 4.06066 7.57592 5.81802 5.81856M3.6967 14.3039C0.767767 11.3749 0.767767 6.6262 3.6967 3.69727M14.3033 3.6973C17.2322 6.62623 17.2322 11.375 14.3033 14.3039M10.5 9.00057C10.5 9.82899 9.82843 10.5006 9 10.5006C8.17157 10.5006 7.5 9.82899 7.5 9.00057C7.5 8.17214 8.17157 7.50057 9 7.50057C9.82843 7.50057 10.5 8.17214 10.5 9.00057Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),aR=({fishColor:e,...t})=>(0,un.jsxs)(LA,{width:"38px",height:"38px",fill:"none",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,un.jsx)("path",{d:"M34.9985 26.2751C34.6599 26.8629 34.2436 27.4106 33.7512 27.9032C32.2815 29.3727 30.3277 30.1819 28.2496 30.1819H24.8477V34.9996H26.8032H28.2497C30.0524 34.9996 31.7472 34.2976 33.022 33.0229C34.2967 31.7481 34.9986 30.0533 34.9985 28.2507V26.2751Z",fill:"black"}),(0,un.jsx)("path",{d:"M34.9989 20.9441C34.6603 21.5318 34.2439 22.0796 33.7514 22.572C32.2819 24.0416 30.328 24.8509 28.2499 24.8509H18.9983C17.8104 24.8511 16.8477 25.814 16.8477 27.0019C16.8477 28.1898 17.8104 29.1528 18.9983 29.153H28.25C30.0526 29.153 31.7474 28.4511 33.0222 27.1763C34.2965 25.902 34.9986 24.2076 34.9989 22.4054V20.9441ZM18.9988 27.8361C18.5381 27.8361 18.1645 27.4626 18.1645 27.0018C18.1645 26.5412 18.5381 26.1675 18.9988 26.1675C19.4596 26.1675 19.8331 26.5412 19.8331 27.0018C19.8331 27.4626 19.4596 27.8361 18.9988 27.8361Z",fill:"black"}),(0,un.jsx)("path",{d:"M35 9.74895C35 6.02751 31.9724 3 28.2509 3H9.74908C6.02761 3 3 6.02751 3 9.74895V28.2511C3 31.9725 6.02761 35 9.74899 35H23.8176V30.1824H18.9995C17.2418 30.1824 15.8171 28.7576 15.8171 27.0001C15.8171 25.2426 17.2418 23.8179 18.9995 23.8179H23.8176V18.9998H9.74899C6.5911 18.9998 4.03113 16.4402 4.03113 13.2824V9.74905C4.03113 6.59127 6.5911 4.03131 9.74899 4.03131H28.2508C31.4087 4.03131 33.9686 6.59127 33.9686 9.74905V13.2824C33.9686 16.4403 31.4089 19.0001 28.251 19.0001L24.8491 18.9998V23.8179H28.2511C30.0539 23.8179 31.7487 23.1159 33.0233 21.8411C34.2977 20.5668 34.9997 18.8725 35 17.0703V9.74895Z",fill:"black"}),(0,un.jsx)("path",{d:"M28.251 4.03174C31.4088 4.03174 33.9687 6.59167 33.9687 9.74952V13.2828C33.9687 16.4406 31.4089 19.0005 28.2511 19.0005L9.74908 19.0003C6.59124 19.0003 4.03125 16.4406 4.03125 13.2829V9.74954C4.03125 6.59167 6.5912 4.03174 9.74908 4.03174H28.251Z",fill:"white"}),(0,un.jsx)("path",{d:"M28.2511 6.73267C29.611 6.73267 30.7641 7.6364 31.1394 8.87525C31.1926 9.05118 31.0527 9.22558 30.869 9.21814C28.2867 9.11348 25.877 8.32896 23.8154 7.038C23.6751 6.95014 23.739 6.73267 23.9045 6.73267H28.2511Z",fill:e}),(0,un.jsx)("path",{d:"M21.9973 7.02488C24.4283 8.9081 27.4326 10.0842 30.7 10.2428C31.0172 10.2581 31.2679 10.5166 31.2679 10.8342V12.8702C31.2674 12.9124 31.2661 13.0446 31.2638 13.1857C31.2603 13.4148 31.069 13.5949 30.8401 13.5876C25.3913 13.4117 20.5215 10.9067 17.1937 7.03888C17.0905 6.91878 17.175 6.73267 17.3334 6.73267H21.1443C21.4533 6.73267 21.753 6.83569 21.9973 7.02488Z",fill:e}),(0,un.jsx)("path",{d:"M15.9653 7.17305C19.4649 11.5395 24.7681 14.4013 30.735 14.6156C30.8376 14.6193 30.9004 14.7309 30.8481 14.8191C30.3219 15.7056 29.3544 16.3012 28.2505 16.3012H23.1255C22.9317 16.3012 22.7392 16.2646 22.5603 16.1899C18.0848 14.3242 14.3146 11.0926 11.7745 7.01866C11.6968 6.89417 11.7878 6.73267 11.9345 6.73267H15.0503C15.4065 6.73267 15.7426 6.89513 15.9653 7.17305Z",fill:e}),(0,un.jsx)("path",{d:"M9.75058 6.73267H10.1145C10.294 6.73267 10.4589 6.82889 10.5496 6.98379C12.776 10.7844 16.0081 13.9276 19.8791 16.0439C20.0039 16.1122 19.9556 16.3012 19.8134 16.3012H15.1194C14.5651 16.3012 14.0261 16.1087 13.6043 15.7491C11.1433 13.6507 9.05479 11.1267 7.45371 8.29236C7.34983 8.10846 7.3762 7.87733 7.51835 7.72112C8.07107 7.11383 8.86658 6.73267 9.75058 6.73267Z",fill:e}),(0,un.jsx)("path",{d:"M12.3071 15.9829C12.4313 16.0951 12.3514 16.3013 12.184 16.3013H9.71437C8.06547 16.2829 6.73047 14.9363 6.73047 13.2836V9.7504L6.73065 9.54576C6.73077 9.42446 6.89048 9.37962 6.95305 9.48354C8.41152 11.9061 10.2194 14.096 12.3071 15.9829Z",fill:e})]}),sR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12 8H12.01M12 11V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),cR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],"data-testid":"outgoing-arrow-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M5.25 12.75L12.75 5.25M12.75 5.25H6M12.75 5.25V12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),lR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M11.3348 4.66483L13.2208 6.55082M3 15L3.03164 14.7785C3.1436 13.9948 3.19958 13.6029 3.32692 13.2371C3.43992 12.9124 3.59428 12.6037 3.78619 12.3185C4.00247 11.9971 4.28237 11.7172 4.84218 11.1574L12.609 3.3906C13.1298 2.8698 13.9742 2.8698 14.495 3.3906C15.0158 3.9114 15.0158 4.75578 14.495 5.27658L6.58565 13.1859C6.07779 13.6938 5.82386 13.9477 5.53462 14.1497C5.27789 14.3289 5.001 14.4774 4.70965 14.5921C4.3814 14.7213 4.02937 14.7923 3.32535 14.9344L3 15Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),uR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[300],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4 12H20M12 4V20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),dR=e=>(0,un.jsx)(LA,{width:"18",height:"18",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3 9C3 12.3137 5.68629 15 9 15C12.3137 15 15 12.3137 15 9C15 5.68629 12.3137 3 9 3C7.20796 3 5.59942 3.78563 4.5 5.03126C4.43696 5.10268 4.3756 5.17562 4.31597 5.25M9 6V9L10.875 10.875M4.31543 3.00293V5.25293H6.56543",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),hR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],"data-testid":"rotate-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M12.5 18.5C17.1944 18.5 21 14.6944 21 10C21 5.30558 17.1944 1.5 12.5 1.5C7.80558 1.5 4 5.30558 4 10C4 11.5433 4.41128 12.9905 5.13022 14.238M1.5 13L5.13022 14.238M6.82531 10.3832L5.47107 14.3542L5.13022 14.238",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),fR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M16 3L8 21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),pR=e=>(0,un.jsx)(LA,{width:"32px",height:"32px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M16 7.33333C16 9.17428 14.5076 10.6667 12.6667 10.6667C10.8257 10.6667 9.33333 9.17428 9.33333 7.33333M16 7.33333C16 5.49238 14.5076 4 12.6667 4C10.8257 4 9.33333 5.49238 9.33333 7.33333M16 7.33333H28M9.33333 7.33333H4M25.3333 16C25.3333 17.8409 23.8409 19.3333 22 19.3333C20.1591 19.3333 18.6667 17.8409 18.6667 16M25.3333 16C25.3333 14.1591 23.8409 12.6667 22 12.6667C20.1591 12.6667 18.6667 14.1591 18.6667 16M25.3333 16H28M18.6667 16H4M13.3333 24.6667C13.3333 26.5076 11.8409 28 10 28C8.15905 28 6.66667 26.5076 6.66667 24.6667M13.3333 24.6667C13.3333 22.8257 11.8409 21.3333 10 21.3333C8.15905 21.3333 6.66667 22.8257 6.66667 24.6667M13.3333 24.6667H28M6.66667 24.6667H4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),mR=e=>(0,un.jsx)(LA,{width:"28px",height:"28px",fill:"none",stroke:"transparent","data-testid":"social-icon",viewBox:"0 0 28 28",...e,children:(0,un.jsx)("g",{id:"Group 40429",children:(0,un.jsx)("g",{id:"Group 40428",children:(0,un.jsxs)("g",{id:"Group 39769",children:[(0,un.jsx)("path",{d:"M27.4398 14.3177C27.4398 13.325 27.3507 12.3705 27.1852 11.4541H14V16.8695H21.5344C21.2099 18.6194 20.2235 20.1021 18.7408 21.0949V24.6075H23.2653C25.9125 22.1703 27.4398 18.5813 27.4398 14.3177Z",fill:"#4285F4",clipRule:"evenodd",fillRule:"evenodd",id:"Shape"}),(0,un.jsx)("path",{d:"M14.0009 28C17.7809 28 20.9499 26.7464 23.2663 24.6082L18.7418 21.0955C17.4882 21.9355 15.8846 22.4319 14.0009 22.4319C10.3546 22.4319 7.26832 19.9692 6.16743 16.6602H1.49023V20.2874C3.79383 24.8628 8.5283 28 14.0009 28Z",fill:"#34A853",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_2"}),(0,un.jsx)("path",{d:"M6.16627 16.66C5.88627 15.82 5.72718 14.9228 5.72718 14.0001C5.72718 13.0774 5.88627 12.1801 6.16627 11.3401V7.71289H1.48907C0.5409 9.60286 0 11.741 0 14.0001C0 16.2591 0.5409 18.3973 1.48907 20.2872L6.16627 16.66Z",fill:"#FBBC05",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_3"}),(0,un.jsx)("path",{d:"M14.0009 5.56809C16.0564 5.56809 17.9018 6.27445 19.3527 7.6617L23.3681 3.64631C20.9436 1.38725 17.7745 0 14.0009 0C8.5283 0 3.79383 3.13722 1.49023 7.7126L6.16743 11.3398C7.26832 8.03078 10.3546 5.56809 14.0009 5.56809Z",fill:"#EA4335",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_4"})]})})})}),gR=e=>(0,un.jsxs)(LA,{width:"30px",height:"30px",fill:"none","data-testid":"tez-icon",viewBox:"0 0 30 30",...e,children:[(0,un.jsx)("rect",{width:"30",height:"30",fill:"white",rx:"4"}),(0,un.jsx)("rect",{width:"30",height:"30",fill:"url(#pattern0)",rx:"4"}),(0,un.jsxs)("defs",{children:[(0,un.jsx)("pattern",{width:"1",height:"1",id:"pattern0",patternContentUnits:"objectBoundingBox",children:(0,un.jsx)("use",{transform:"translate(0.1753 0.101557) scale(0.00532296)",xlinkHref:"#image0_2912_38337"})}),(0,un.jsx)("image",{width:"122",height:"150",id:"image0_2912_38337",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAACWCAYAAAAR35wdAAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkEBooUsJvQkiNYCUEFrovdkISYBQYgwEFXtZVHDtogI2dFVEwQqIBUUUC4ti74sFFWVdLNiVNymg677yvfm+ufPff87858y5M/feAUDtBEckykPVAcgXForjQgLoKalpdNJTQAS6gAyUgTOHWyBixsREAFiG2r+Xd9cBIm2vOEi1/tn/X4sGj1/ABQCJgTiDV8DNh/ggAHgVVyQuBIAo5c2nFIqkGFagJYYBQrxIirPkuEqKM+R4r8wmIY4FcRsASiocjjgLANVLkKcXcbOghmo/xE5CnkAIgBodYt/8/Ek8iNMhtoE2Ioil+oyMH3Sy/qaZMazJ4WQNY/lcZEUpUFAgyuNM+z/T8b9Lfp5kyIcVrCrZ4tA46Zxh3m7mTgqXYhWI+4QZUdEQa0L8QcCT2UOMUrIloYlye9SQW8CCOQM6EDvxOIHhEBtCHCzMi4pQ8BmZgmA2xHCFoFMFhewEiPUgXsQvCIpX2GwWT4pT+EIbMsUspoI/yxHL/Ep93ZfkJjIV+q+z+WyFPqZanJ2QDDEFYosiQVIUxKoQOxbkxocrbMYUZ7OihmzEkjhp/BYQx/GFIQFyfawoUxwcp7AvzS8Ymi+2OVvAjlLg/YXZCaHy/GBtXI4sfjgX7BJfyEwc0uEXpEQMzYXHDwySzx17xhcmxit0PogKA+LkY3GKKC9GYY+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WugLwqiyW6WaK4fi+TpZM7mtl/ugMNPFgN9KRJvDJdRi+g1fo1aV05fQ7Dt2HN2cK2ZvaMNH0Igsum8W/hmIkrEdVMEQtPTmdprGmQhSpWAy0EFMt7IeRKSHqEeFe6doIuNsU/Bfq1qK/WtjSyd1R44cSCcViBejGqFvHzSd17slV4+WngyY2ZcrSwi7Rh33qghTHEZECS0Z9RLJo+u/N9sF8PI4ti8kMAtx4AYjnWzgvG2R2lwgG4749vByJULAEye3H6CKN4kzAg8iezjPO5lQTQQmTxI544ouI3ALsuX4XSfUMGezTDaEqu8VlkNUoGaM8OWOt9LrxuId6V+6cer7juKCVexwjg7Pb57KGoZCg5oIVhRCOts4xmQvjrUKSOiMpYuukA4Ocx534fTjxYpMtLlr4kgfaU7Pp5g+vhHT+AIuqDEx7D4tzXA+AW/DW1N7K1xUmiMNeSBtpTT6w1Sw3H6cCM6vF3lhce1x2gbsF+sHbxMwkYltWdpDGixoAA2m+JCdP4wdhwNxaAnwBjn4678mS9n2+hZzSsVsGYTwPclbaA65d5wAHtV048i58ArNyB80UTdCReD0Wr/QiAcggUPwqZoN/6HfG2gmYD/jaCbgM8dSMyj3jfANqP8P4yqo230aj6J8KsvgY80IWsf0kd36M8QRXo5lSk8Ic+bQV60jtM/ARRobTdd2cBZwFnAWcBZwFnAWeB/wO9yrSXP8OnPQAAAABJRU5ErkJggg=="})]})]});var vR=g((function(e,t){const{htmlWidth:r,htmlHeight:n,alt:i,...o}=e;return(0,un.jsx)("img",{width:r,height:n,ref:t,alt:i,...o})}));vR.displayName="NativeImage";function yR(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var bR=g((function(e,t){const{fallbackSrc:r,fallback:i,src:o,srcSet:a,align:s,fit:c,loading:l,ignoreFallback:u,crossOrigin:d,fallbackStrategy:h="beforeLoadOrError",referrerPolicy:f,...p}=e,m=null!=l||u||!(void 0!==r||void 0!==i),g=function(e){const{loading:t,src:r,srcSet:i,onLoad:o,onError:a,crossOrigin:s,sizes:c,ignoreFallback:l}=e,[u,d]=(0,n.useState)("pending");(0,n.useEffect)((()=>{d(r?"loading":"pending")}),[r]);const h=(0,n.useRef)(),f=(0,n.useCallback)((()=>{if(!r)return;p();const e=new Image;e.src=r,s&&(e.crossOrigin=s),i&&(e.srcset=i),c&&(e.sizes=c),t&&(e.loading=t),e.onload=e=>{p(),d("loaded"),null==o||o(e)},e.onerror=e=>{p(),d("failed"),null==a||a(e)},h.current=e}),[r,s,i,c,o,a,t]),p=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return yh((()=>{if(!l)return"loading"===u&&f(),()=>{p()}}),[u,f,l]),l?"loaded":u}({...e,crossOrigin:d,ignoreFallback:m}),v=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(g,h),y={ref:t,objectFit:c,objectPosition:s,...m?p:yR(p,["onError","onLoad"])};return v?i||(0,un.jsx)(ln.img,{as:vR,className:"chakra-image__placeholder",src:r,...y}):(0,un.jsx)(ln.img,{as:vR,src:o,srcSet:a,crossOrigin:d,loading:l,referrerPolicy:f,className:"chakra-image",...y})}));bR.displayName="Image";const wR=({contract:e,...t})=>{const r=`https://services.tzkt.io/v1/avatars/${e}`;return(0,un.jsx)(bR,{fallbackSrc:"/static/media/coin-front.svg",src:r,...t})},xR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3 4.5H15M12 4.5L11.797 3.89105C11.6003 3.30094 11.502 3.00588 11.3195 2.78774C11.1584 2.5951 10.9516 2.44599 10.7179 2.35408C10.4532 2.25 10.1422 2.25 9.52018 2.25H8.47982C7.85779 2.25 7.54677 2.25 7.28213 2.35408C7.04844 2.44599 6.84156 2.5951 6.68047 2.78774C6.49804 3.00588 6.39969 3.30094 6.20298 3.89105L6 4.5M13.5 4.5V12.15C13.5 13.4101 13.5 14.0402 13.2548 14.5215C13.039 14.9448 12.6948 15.289 12.2715 15.5048C11.7902 15.75 11.1601 15.75 9.9 15.75H8.1C6.83988 15.75 6.20982 15.75 5.72852 15.5048C5.30516 15.289 4.96095 14.9448 4.74524 14.5215C4.5 14.0402 4.5 13.4101 4.5 12.15V4.5M10.5 7.5V12.75M7.5 7.5V12.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),_R=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none","data-testid":"unknown-contact-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M3.16602 15.5625C3.16602 12.7435 5.45123 10.4583 8.27018 10.4583C8.51775 10.4583 8.7612 10.476 8.99935 10.51M13.3722 13.375C14.1014 12.6458 14.8305 12.3575 14.8305 11.5521C14.8305 10.7467 14.1776 10.0938 13.3722 10.0938C12.6927 10.0938 12.1217 10.5585 11.9598 11.1875M13.3722 15.5625H13.3795M11.1868 5.35417C11.1868 6.965 9.88101 8.27083 8.27018 8.27083C6.65935 8.27083 5.35352 6.965 5.35352 5.35417C5.35352 3.74334 6.65935 2.4375 8.27018 2.4375C9.88101 2.4375 11.1868 3.74334 11.1868 5.35417Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),SR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M20.5 11L18.7396 7.60473C18.253 6.65855 18.0097 6.18545 17.6514 5.84012C17.3346 5.5347 16.9544 5.30272 16.5379 5.16065C16.067 5 15.535 5 14.471 5H9.52901C8.46503 5 7.93304 5 7.46209 5.16065C7.04558 5.30272 6.66542 5.5347 6.34859 5.84012C5.99034 6.18545 5.74703 6.65855 5.26042 7.60473L3.5 11M20.5 11C20.6981 11.3853 20.7658 11.5446 20.8357 11.747C20.8977 11.9267 20.9426 12.1119 20.9696 12.3002C21 12.5121 21 12.7287 21 13.162V14.2C21 15.8802 21 16.7202 20.673 17.362C20.3854 17.9265 19.9265 18.3854 19.362 18.673C18.7202 19 17.8802 19 16.2 19H7.8C6.11984 19 5.27976 19 4.63803 18.673C4.07354 18.3854 3.6146 17.9265 3.32698 17.362C3 16.7202 3 15.8802 3 14.2V13.162C3 12.7287 3 12.5121 3.03041 12.3002C3.05741 12.1119 3.10225 11.9267 3.16432 11.747C3.23421 11.5446 3.30186 11.3853 3.5 11M20.5 11H3.5M15 15H17",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),kR=()=>(0,un.jsxs)(dn,{position:"relative",alignItems:"center",justifyContent:"center","data-testid":"verified-icon",children:[(0,un.jsx)(ER,{}),(0,un.jsx)(dn,{position:"absolute",alignItems:"center",justifyContent:"center",children:(0,un.jsx)(AR,{})})]}),ER=e=>(0,un.jsx)(LA,{width:"14px",height:"14px",fill:EP.gray[450],viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M6.51019 0.479749C6.78233 0.213196 7.21767 0.213195 7.48981 0.479749L8.86158 1.82333C8.99061 1.94972 9.16351 2.02134 9.34412 2.02321L11.2642 2.04314C11.6451 2.04709 11.9529 2.35492 11.9569 2.73584L11.9768 4.65588C11.9787 4.83649 12.0503 5.00939 12.1767 5.13842L13.5203 6.51019C13.7868 6.78233 13.7868 7.21767 13.5203 7.48981L12.1767 8.86158C12.0503 8.99061 11.9787 9.16351 11.9768 9.34412L11.9569 11.2642C11.9529 11.6451 11.6451 11.9529 11.2642 11.9569L9.34412 11.9768C9.16351 11.9787 8.99061 12.0503 8.86158 12.1767L7.48981 13.5203C7.21767 13.7868 6.78233 13.7868 6.51019 13.5203L5.13842 12.1767C5.00939 12.0503 4.83649 11.9787 4.65588 11.9768L2.73584 11.9569C2.35492 11.9529 2.04709 11.6451 2.04314 11.2642L2.02321 9.34412C2.02134 9.16351 1.94972 8.99061 1.82333 8.86158L0.479749 7.48981C0.213196 7.21767 0.213195 6.78233 0.479749 6.51019L1.82333 5.13842C1.94972 5.00939 2.02134 4.83649 2.02321 4.65588L2.04314 2.73584C2.04709 2.35492 2.35492 2.04709 2.73584 2.04314L4.65588 2.02321C4.83649 2.02134 5.00939 1.94972 5.13842 1.82333L6.51019 0.479749Z",strokeLinecap:"square",strokeLinejoin:"round"})}),AR=e=>(0,un.jsx)(LA,{width:"7px",height:"5px",fill:"none",stroke:"white",viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M1.66699 2.19314L3.0281 3.55425L5.75033 0.832031",strokeLinecap:"square",strokeLinejoin:"round"})}),PR=e=>(0,un.jsx)(LA,{width:"24px",height:"24px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M10 16V14.0003M10 14.0003V12M10 14.0003L12 14.0005M10 14.0003L8 14M21 12V11.2C21 10.0799 21 9.51984 20.782 9.09202C20.5903 8.7157 20.2843 8.40973 19.908 8.21799C19.4802 8 18.9201 8 17.8 8H3M21 12V16M21 12H19C17.8954 12 17 12.8954 17 14C17 15.1046 17.8954 16 19 16H21M21 16V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8V8M18 8V7.2C18 6.0799 18 5.51984 17.782 5.09202C17.5903 4.71569 17.2843 4.40973 16.908 4.21799C16.4802 4 15.9201 4 14.8 4H6.2C5.07989 4 4.51984 4 4.09202 4.21799C3.71569 4.40973 3.40973 4.71569 3.21799 5.09202C3 5.51984 3 6.0799 3 7.2V8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),TR=e=>(0,un.jsx)(LA,{width:"36",height:"32",fill:"none",viewBox:"0 0 36 32",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M18.0004 24.3332H18.0171M18.0004 12.6665V19.3332M8.68719 30.9999H27.3136C30.2831 30.9999 31.7678 30.9999 32.6386 30.3754C33.3985 29.8305 33.8946 28.9915 34.0058 28.0631C34.1333 26.9991 33.4178 25.6982 31.9868 23.0963L22.6736 6.16318C21.1499 3.39292 20.3881 2.00779 19.3814 1.54954C18.5041 1.15015 17.4968 1.15015 16.6194 1.54954C15.6127 2.00779 14.8509 3.39292 13.3273 6.16317L4.01404 23.0963C2.58301 25.6982 1.8675 26.9991 1.99498 28.0631C2.10622 28.9915 2.6023 29.8305 3.36219 30.3754C4.23304 30.9999 5.71776 30.9999 8.68719 30.9999Z",stroke:EP.orangeL,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),OR=e=>(0,un.jsx)(LA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M4.5 4.5L13.5 13.5M13.5 4.5L4.5 13.5","data-testid":"xmark-icon-path",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),CR=pi,jR=oi,RR=()=>{const{html:e,seen:t}=jR((e=>e.announcement)),r=CR();return(0,n.useEffect)((()=>{const e=()=>{dj.get("https://storage.googleapis.com/umami-artifacts/announcement.html").then((e=>{r($a.actions.setCurrent(e.data))})).catch((e=>{}))};e();const t=setInterval(e,36e5);return()=>clearInterval(t)}),[r]),t||!e?null:(0,un.jsx)($A,{className:"announcement-banner",color:"black",background:EP.orangeL,"data-testid":"announcement",paddingX:"30px",children:(0,un.jsxs)(dn,{justifyContent:"space-between",width:"100%",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(oR,{marginRight:"4px"}),(0,un.jsx)(qA,{fontSize:"14px",dangerouslySetInnerHTML:{__html:e}})]}),(0,un.jsx)(WA,{"data-testid":"close",onClick:()=>r($a.actions.setSeen())})]})})};function IR(e,t){const r=(0,n.useId)();return(0,n.useMemo)((()=>e||[t,r].filter(Boolean).join("-")),[e,t,r])}function MR(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function LR(e){var t;return MR(e)&&null!=(t=e.ownerDocument)?t:document}function NR(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var DR=NR()?n.useLayoutEffect:n.useEffect;function zR(e,t=[]){const r=(0,n.useRef)(e);return DR((()=>{r.current=e})),(0,n.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}function BR(e={}){const{onClose:t,onOpen:r,isOpen:i,id:o}=e,a=zR(r),s=zR(t),[c,l]=(0,n.useState)(e.defaultIsOpen||!1),[u,d]=function(e,t){const r=void 0!==e;return[r,r&&"undefined"!==typeof e?e:t]}(i,c),h=IR(o,"disclosure"),f=(0,n.useCallback)((()=>{u||l(!1),null==s||s()}),[u,s]),p=(0,n.useCallback)((()=>{u||l(!0),null==a||a()}),[u,a]),m=(0,n.useCallback)((()=>{(d?f:p)()}),[d,p,f]);return{isOpen:!!d,onOpen:p,onClose:f,onToggle:m,isControlled:u,getButtonProps:(e={})=>({...e,"aria-expanded":d,"aria-controls":h,onClick:_t(e.onClick,m)}),getDisclosureProps:(e={})=>({...e,hidden:!d,id:h})}}var UR=Object.defineProperty,FR=(e,t,r)=>(((e,t,r)=>{t in e?UR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),$R=new class{constructor(){FR(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function HR(e,t){const[r,i]=(0,n.useState)(0);return(0,n.useEffect)((()=>{const r=e.current;if(r){if(t){const e=$R.add(r);i(e)}return()=>{$R.remove(r),i(0)}}}),[t,e]),r}var VR=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},qR=new WeakMap,KR=new WeakMap,WR={},GR=0,ZR=function(e){return e&&(e.host||ZR(e.parentNode))},YR=function(e,t,r,n){var i=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=ZR(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);WR[r]||(WR[r]=new WeakMap);var o=WR[r],a=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(n),i=null!==t&&"false"!==t,c=(qR.get(e)||0)+1,l=(o.get(e)||0)+1;qR.set(e,c),o.set(e,l),a.push(e),1===c&&i&&KR.set(e,!0),1===l&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}}))};return u(t),s.clear(),GR++,function(){a.forEach((function(e){var t=qR.get(e)-1,i=o.get(e)-1;qR.set(e,t),o.set(e,i),t||(KR.has(e)||e.removeAttribute(n),KR.delete(e)),i||e.removeAttribute(r)})),--GR||(qR=new WeakMap,qR=new WeakMap,KR=new WeakMap,WR={})}},XR=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||VR(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),YR(n,i,r,"aria-hidden")):function(){return null}};function JR(e){const{isOpen:t,onClose:r,id:i,closeOnOverlayClick:o=!0,closeOnEsc:a=!0,useInert:s=!0,onOverlayClick:c,onEsc:l}=e,u=(0,n.useRef)(null),d=(0,n.useRef)(null),[h,f,p]=function(e,...t){const r=(0,n.useId)(),i=e||r;return(0,n.useMemo)((()=>t.map((e=>`${e}-${i}`))),[i,t])}(i,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){const r=e.current;(0,n.useEffect)((()=>{if(e.current&&t)return XR(e.current)}),[t,e,r])}(u,t&&s);const m=HR(u,t),g=(0,n.useRef)(null),v=(0,n.useCallback)((e=>{g.current=e.target}),[]),y=(0,n.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),a&&(null==r||r()),null==l||l())}),[a,r,l]),[b,w]=(0,n.useState)(!1),[x,_]=(0,n.useState)(!1),S=(0,n.useCallback)(((e={},t=null)=>({role:"dialog",...e,ref:Ln(t,u),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?f:void 0,"aria-describedby":x?p:void 0,onClick:k(e.onClick,(e=>e.stopPropagation()))})),[p,x,h,f,b]),E=(0,n.useCallback)((e=>{e.stopPropagation(),g.current===e.target&&$R.isTopModal(u.current)&&(o&&(null==r||r()),null==c||c())}),[r,o,c]),A=(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(t,d),onClick:k(e.onClick,E),onKeyDown:k(e.onKeyDown,y),onMouseDown:k(e.onMouseDown,v)})),[y,v,E]);return{isOpen:t,onClose:r,headerId:f,bodyId:p,setBodyMounted:_,setHeaderMounted:w,dialogRef:u,overlayRef:d,getDialogProps:S,getDialogContainerProps:A,index:m}}var[QR,eI]=En({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[tI,rI]=En({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),nI=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:h,lockFocusAcrossFrames:f,onCloseComplete:p}=t,m=Sn("Modal",t),g={...JR(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:h,lockFocusAcrossFrames:f};return(0,un.jsx)(tI,{value:g,children:(0,un.jsx)(QR,{value:m,children:(0,un.jsx)(iP,{onExitComplete:p,children:g.isOpen&&(0,un.jsx)(dP,{...r,children:n})})})})};nI.displayName="Modal";var iI={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},oI={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},aI={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},sI={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},cI={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function lI(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return aI;case"left":return oI;case"bottom":return cI;case"top":return sI}}var uI={enter:{duration:.2,ease:iI.easeOut},exit:{duration:.1,ease:iI.easeIn}},dI=(e,t)=>({...e,delay:"number"===typeof t?t:null==t?void 0:t.enter}),hI=(e,t)=>({...e,delay:"number"===typeof t?t:null==t?void 0:t.exit}),fI={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:null!=(n=null==e?void 0:e.enter)?n:dI(uI.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:null!=(n=null==e?void 0:e.exit)?n:hI(uI.exit,r),transitionEnd:null==t?void 0:t.exit}}},pI={initial:"exit",animate:"enter",exit:"exit",variants:fI},mI=(0,n.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,className:i,transition:o,transitionEnd:a,delay:s,...c}=e,l=n||r?"enter":"exit",u=!r||n&&r,d={transition:o,transitionEnd:a,delay:s};return(0,un.jsx)(iP,{custom:d,children:u&&(0,un.jsx)(CA.div,{ref:t,className:v("chakra-fade",i),custom:d,...pI,animate:l,...c})})}));mI.displayName="Fade";var gI=ln(CA.div),vI=g(((e,t)=>{const{className:r,transition:n,motionProps:i,...o}=e,a=v("chakra-modal__overlay",r),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...eI().overlay},{motionPreset:c}=rI(),l=i||("none"===c?{}:pI);return(0,un.jsx)(gI,{...l,__css:s,ref:t,className:a,...o})}));vI.displayName="ModalOverlay";var yI=function(e,t){return yI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},yI(e,t)};function bI(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}yI(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var wI=function(){return wI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function EI(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function AI(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof PI?Promise.resolve(e.value.v).then(c,l):u(o[0][2],e)}(i[e](t))}catch(r){u(o[0][3],r)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function OI(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=kI(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}Object.create;"function"===typeof SuppressedError&&SuppressedError;var CI="right-scroll-bar-position",jI="width-before-scroll-bar";function RI(e,t){return function(e,t){var r=(0,n.useState)((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=t,r.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function II(e){return e}function MI(e,t){void 0===t&&(t=II);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}};return i}function LI(e,t){return void 0===t&&(t=II),MI(e,t)}function NI(e){void 0===e&&(e={});var t=MI(null);return t.options=wI({async:!0,ssr:!1},e),t}var DI=NI(),zI=function(){},BI=n.forwardRef((function(e,t){var r=n.useRef(null),i=n.useState({onScrollCapture:zI,onWheelCapture:zI,onTouchMoveCapture:zI}),o=i[0],a=i[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=e.gapMode,w=xI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,_=RI([r,t]),S=wI(wI({},w),o);return n.createElement(n.Fragment,null,d&&n.createElement(x,{sideCar:DI,removeScrollBar:u,shards:h,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:b}),s?n.cloneElement(n.Children.only(c),wI(wI({},S),{ref:_})):n.createElement(y,wI({},S,{className:l,ref:_}),c))}));BI.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},BI.classNames={fullWidth:jI,zeroRight:CI};var UI,FI=function(e){var t=e.sideCar,r=xI(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return n.createElement(i,wI({},r))};FI.isSideCarExport=!0;function $I(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=UI||r.nc;return t&&e.setAttribute("nonce",t),e}var HI=function(){var e=0,t=null;return{add:function(r){var n;0==e&&(t=$I())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),n=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(n)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},VI=function(){var e=function(){var e=HI();return function(t,r){n.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}},qI={left:0,top:0,right:0,gap:0},KI=function(e){return parseInt(e||"",10)||0},WI=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return qI;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[KI(r),KI(n),KI(i)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},GI=VI(),ZI=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(CI," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(jI," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(CI," .").concat(CI," {\n right: 0 ").concat(n,";\n }\n \n .").concat(jI," .").concat(jI," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},YI=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i,a=n.useMemo((function(){return WI(o)}),[o]);return n.createElement(GI,{styles:ZI(a,!t,o,r?"":"!important")})},XI=!1;if("undefined"!==typeof window)try{var JI=Object.defineProperty({},"passive",{get:function(){return XI=!0,!0}});window.addEventListener("test",JI,JI),window.removeEventListener("test",JI,JI)}catch(Cle){XI=!1}var QI=!!XI&&{passive:!1},eM=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},tM=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),rM(e,n)){var i=nM(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},rM=function(e,t){return"v"===e?function(e){return eM(e,"overflowY")}(t):function(e){return eM(e,"overflowX")}(t)},nM=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},iM=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oM=function(e){return[e.deltaX,e.deltaY]},aM=function(e){return e&&"current"in e?e.current:e},sM=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},cM=0,lM=[];function uM(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dM=(hM=function(e){var t=n.useRef([]),r=n.useRef([0,0]),i=n.useRef(),o=n.useState(cM++)[0],a=n.useState(VI)[0],s=n.useRef(e);n.useEffect((function(){s.current=e}),[e]),n.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=AI([e.lockRef.current],(e.shards||[]).map(aM),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=n.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var n,o=iM(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-o[0],l="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=tM(d,u);if(!h)return!0;if(h?n=d:(n="v"===d?"h":"v",h=tM(d,u)),!h)return!1;if(!i.current&&"changedTouches"in e&&(c||l)&&(i.current=n),!n)return!0;var f=i.current||n;return function(e,t,r,n,i){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,c=t.contains(s),l=!1,u=a>0,d=0,h=0;do{var f=nM(e,s),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&rM(e,s)&&(d+=m,h+=p),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&a>d)||!u&&(i&&Math.abs(h)<1||!i&&-a>h))&&(l=!0),l}(f,t,e,"h"===f?c:l,!0)}),[]),l=n.useCallback((function(e){var r=e;if(lM.length&&lM[lM.length-1]===a){var n="deltaY"in r?oM(r):iM(r),i=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,n)}))[0];if(i&&i.should)r.cancelable&&r.preventDefault();else if(!i){var o=(s.current.shards||[]).map(aM).filter(Boolean).filter((function(e){return e.contains(r.target)}));(o.length>0?c(r,o[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),u=n.useCallback((function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:uM(n)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),d=n.useCallback((function(e){r.current=iM(e),i.current=void 0}),[]),h=n.useCallback((function(t){u(t.type,oM(t),t.target,c(t,e.lockRef.current))}),[]),f=n.useCallback((function(t){u(t.type,iM(t),t.target,c(t,e.lockRef.current))}),[]);n.useEffect((function(){return lM.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,QI),document.addEventListener("touchmove",l,QI),document.addEventListener("touchstart",d,QI),function(){lM=lM.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,QI),document.removeEventListener("touchmove",l,QI),document.removeEventListener("touchstart",d,QI)}}),[]);var p=e.removeScrollBar,m=e.inert;return n.createElement(n.Fragment,null,m?n.createElement(a,{styles:sM(o)}):null,p?n.createElement(YI,{gapMode:e.gapMode}):null)},DI.useMedium(hM),FI);var hM,fM=n.forwardRef((function(e,t){return n.createElement(BI,wI({},e,{ref:t,sideCar:dM}))}));fM.classNames=BI.classNames;const pM=fM,mM=(0,n.createContext)({openWith:e=>Promise.resolve(),onClose:()=>{},isOpen:!1}),gM=()=>{const{isOpen:e,onClose:t,onOpen:r}=BR(),[i,o]=(0,n.useState)(null),[a,s]=(0,n.useState)("md");return{isOpen:e,onClose:t,openWith:async(e,t="md")=>{s(t),o(e),r()},content:(0,un.jsxs)(nI,{autoFocus:!1,blockScrollOnMount:!1,closeOnOverlayClick:!1,isCentered:!0,isOpen:e,motionPreset:localStorage.getItem("chakra-modal-motion-preset")||void 0,onClose:t,size:a,children:[(0,un.jsx)(vI,{}),(0,un.jsx)(pM,{enabled:e,children:i})]})}};function vM(e){return Object.keys(e)}var yM;!function(e){e.PENDING="pending",e.RESOLVED="resolved",e.REJECTED="rejected"}(yM||(yM={}));const bM=()=>{throw new Error("ExposedPromise not initialized yet.")};class wM{_promise;_resolve=bM;_reject=bM;_status=yM.PENDING;_promiseResult;_promiseError;get promise(){return this._promise}get resolve(){return this._resolve}get reject(){return this._reject}get status(){return this._status}get promiseResult(){return this._promiseResult}get promiseError(){return this._promiseError}constructor(){this._promise=new Promise(((e,t)=>{this._resolve=t=>{this.isSettled()||(this._promiseResult=t,e(t),this._status=yM.RESOLVED)},this._reject=e=>{this.isSettled()||(this._promiseError=e,t(e),this._status=yM.REJECTED)}}))}static resolve(e){const t=new wM;return t.resolve(e),t}static reject(e){const t=new wM;return t.reject(e),t}isPending(){return this.status===yM.PENDING}isResolved(){return this.status===yM.RESOLVED}isRejected(){return this.status===yM.REJECTED}isSettled(){return this.isResolved()||this.isRejected()}}var xM=r(427),_M=r(8945),SM=r(5164),kM=r(9070),EM=r(4082),AM=r(4872).Buffer;function PM(e){return AM.from(e).toString("hex")}async function TM(e){return PM("string"===typeof e?(0,Wa.hash)((0,kM.cv)(e),32):(0,Wa.hash)(e,32))}async function OM(e){return(0,Ka._w)((0,Wa.hash)((0,kM.cv)(e),32))}function CM(e,t){return`@${e}:${t}`}var jM=r(4872).Buffer;async function RM(){const e=(0,SM.randomBytes)(16);return[e.slice(0,4),e.slice(4,6),e.slice(6,8),e.slice(8,10),e.slice(10,16)].map((function(e){return jM.from(e).toString("hex")})).join("-")}var IM,MM,LM,NM,DM,zM,BM,UM,FM,$M;!function(e){e.BlockchainRequest="blockchain_request",e.PermissionRequest="permission_request",e.SignPayloadRequest="sign_payload_request",e.OperationRequest="operation_request",e.BroadcastRequest="broadcast_request",e.ChangeAccountRequest="change_account_request",e.BlockchainResponse="blockchain_response",e.PermissionResponse="permission_response",e.SignPayloadResponse="sign_payload_response",e.ProofOfEventChallengeRequest="proof_of_event_challenge_request",e.ProofOfEventChallengeResponse="proof_of_event_challenge_response",e.ProofOfEventChallengeRecorded="proof_of_event_challenge_recorded",e.OperationResponse="operation_response",e.BroadcastResponse="broadcast_response",e.Acknowledge="acknowledge",e.Disconnect="disconnect",e.Error="error"}(IM||(IM={})),function(e){e.SIGN="sign",e.OPERATION_REQUEST="operation_request",e.ENCRYPT="encrypt",e.NOTIFICATION="notification",e.THRESHOLD="threshold"}(MM||(MM={})),function(e){e.MAINNET="mainnet",e.GHOSTNET="ghostnet",e.WEEKLYNET="weeklynet",e.DAILYNET="dailynet",e.DELPHINET="delphinet",e.EDONET="edonet",e.FLORENCENET="florencenet",e.GRANADANET="granadanet",e.HANGZHOUNET="hangzhounet",e.ITHACANET="ithacanet",e.JAKARTANET="jakartanet",e.KATHMANDUNET="kathmandunet",e.LIMANET="limanet",e.MUMBAINET="mumbainet",e.NAIROBINET="nairobinet",e.OXFORDNET="oxfordnet",e.CUSTOM="custom"}(LM||(LM={})),function(e){e.ENDORSEMENT="endorsement",e.SEED_NONCE_REVELATION="seed_nonce_revelation",e.DOUBLE_ENDORSEMENT_EVIDENCE="double_endorsement_evidence",e.DOUBLE_BAKING_EVIDENCE="double_baking_evidence",e.ACTIVATE_ACCOUNT="activate_account",e.PROPOSALS="proposals",e.BALLOT="ballot",e.REVEAL="reveal",e.TRANSACTION="transaction",e.ORIGINATION="origination",e.DELEGATION="delegation"}(NM||(NM={})),function(e){e.WEBSITE="website",e.EXTENSION="extension",e.P2P="p2p",e.WALLETCONNECT="walletconnect"}(DM||(DM={})),function(e){e.BACKGROUND="toBackground",e.PAGE="toPage",e.EXTENSION="toExtension"}(zM||(zM={})),function(e){e.BROADCAST_ERROR="BROADCAST_ERROR",e.NETWORK_NOT_SUPPORTED="NETWORK_NOT_SUPPORTED",e.NO_ADDRESS_ERROR="NO_ADDRESS_ERROR",e.NO_PRIVATE_KEY_FOUND_ERROR="NO_PRIVATE_KEY_FOUND_ERROR",e.NOT_GRANTED_ERROR="NOT_GRANTED_ERROR",e.PARAMETERS_INVALID_ERROR="PARAMETERS_INVALID_ERROR",e.TOO_MANY_OPERATIONS="TOO_MANY_OPERATIONS",e.TRANSACTION_INVALID_ERROR="TRANSACTION_INVALID_ERROR",e.SIGNATURE_TYPE_NOT_SUPPORTED="SIGNATURE_TYPE_NOT_SUPPORTED",e.ABORTED_ERROR="ABORTED_ERROR",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(BM||(BM={})),function(e){e.NOT_CONNECTED="NOT_CONNECTED",e.CONNECTING="CONNECTING",e.CONNECTED="CONNECTED"}(UM||(UM={})),function(e){e.CHROME_MESSAGE="chrome_message",e.WALLETCONNECT="walletconnect",e.POST_MESSAGE="post_message",e.LEDGER="ledger",e.P2P="p2p"}(FM||(FM={}));class HM{static isSupported(){return Promise.resolve(!1)}}!function(e){e.TRANSPORT_P2P_PEERS_DAPP="beacon:communication-peers-dapp",e.TRANSPORT_P2P_PEERS_WALLET="beacon:communication-peers-wallet",e.TRANSPORT_POSTMESSAGE_PEERS_DAPP="beacon:postmessage-peers-dapp",e.TRANSPORT_POSTMESSAGE_PEERS_WALLET="beacon:postmessage-peers-wallet",e.TRANSPORT_WALLETCONNECT_PEERS_DAPP="beacon:walletconnect-peers-dapp",e.LAST_SELECTED_WALLET="beacon:last-selected-wallet",e.ACCOUNTS="beacon:accounts",e.ACTIVE_ACCOUNT="beacon:active-account",e.PUSH_TOKENS="beacon:push-tokens",e.BEACON_SDK_SECRET_SEED="beacon:sdk-secret-seed",e.APP_METADATA_LIST="beacon:app-metadata-list",e.PERMISSION_LIST="beacon:permissions",e.ONGOING_PROOF_OF_EVENT_CHALLENGES="beacon:ongoing-proof-of-event-challenges",e.BEACON_SDK_VERSION="beacon:sdk_version",e.MATRIX_PRESERVED_STATE="beacon:sdk-matrix-preserved-state",e.MATRIX_PEER_ROOM_IDS="beacon:matrix-peer-rooms",e.MATRIX_SELECTED_NODE="beacon:matrix-selected-node",e.MULTI_NODE_SETUP_DONE="beacon:multi-node-setup",e.WC_2_CORE_PAIRING="wc@2:core:0.3//pairing",e.WC_2_CLIENT_SESSION="wc@2:client:0.3//session",e.WC_2_CORE_KEYCHAIN="wc@2:core:0.3//keychain",e.WC_2_CORE_MESSAGES="wc@2:core:0.3//messages",e.WC_2_CLIENT_PROPOSAL="wc@2:client:0.3//proposal",e.WC_2_CORE_SUBSCRIPTION="wc@2:core:0.3//subscription",e.WC_2_CORE_HISTORY="wc@2:core:0.3//history",e.WC_2_CORE_EXPIRER="wc@2:core:0.3//expirer"}($M||($M={}));const VM={[$M.TRANSPORT_P2P_PEERS_DAPP]:[],[$M.TRANSPORT_P2P_PEERS_WALLET]:[],[$M.TRANSPORT_POSTMESSAGE_PEERS_DAPP]:[],[$M.TRANSPORT_POSTMESSAGE_PEERS_WALLET]:[],[$M.TRANSPORT_WALLETCONNECT_PEERS_DAPP]:[],[$M.LAST_SELECTED_WALLET]:void 0,[$M.ACCOUNTS]:[],[$M.ACTIVE_ACCOUNT]:void 0,[$M.PUSH_TOKENS]:[],[$M.BEACON_SDK_SECRET_SEED]:void 0,[$M.APP_METADATA_LIST]:[],[$M.PERMISSION_LIST]:[],[$M.ONGOING_PROOF_OF_EVENT_CHALLENGES]:[],[$M.BEACON_SDK_VERSION]:void 0,[$M.MATRIX_PRESERVED_STATE]:{},[$M.MATRIX_PEER_ROOM_IDS]:{},[$M.MATRIX_SELECTED_NODE]:void 0,[$M.MULTI_NODE_SETUP_DONE]:void 0,[$M.WC_2_CLIENT_SESSION]:void 0,[$M.WC_2_CORE_PAIRING]:void 0,[$M.WC_2_CORE_KEYCHAIN]:void 0,[$M.WC_2_CORE_MESSAGES]:void 0,[$M.WC_2_CLIENT_PROPOSAL]:void 0,[$M.WC_2_CORE_SUBSCRIPTION]:void 0,[$M.WC_2_CORE_HISTORY]:void 0,[$M.WC_2_CORE_EXPIRER]:void 0};class qM{type="p2p-pairing-request";relayServer;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.relayServer=i}}class KM extends qM{senderId;constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,a,s),this.senderId=o}}var WM,GM,ZM;!function(e){e.RAW="raw",e.OPERATION="operation",e.MICHELINE="micheline"}(WM||(WM={}));class YM{type="p2p-pairing-request";relayServer;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.relayServer=i}}class XM{type="postmessage-pairing-request";id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o){this.id=e,this.name=t,this.icon=i,this.appUrl=o,this.publicKey=r,this.version=n}}class JM extends XM{senderId;constructor(e,t,r,n,i,o,a){super(e,t,r,n,o,a),this.senderId=i}}class QM{type="walletconnect-pairing-request";uri;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.uri=i}}class eL extends QM{senderId;constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,o,a,s),this.senderId=i}}!function(e){e.LIGHT="light",e.DARK="dark"}(GM||(GM={})),function(e){e.EUROPE_EAST="europe-east",e.EUROPE_WEST="europe-west",e.NORTH_AMERICA_EAST="north-america-east",e.NORTH_AMERICA_WEST="north-america-west",e.CENTRAL_AMERICA="central-america",e.SOUTH_AMERICA="south-america",e.ASIA_EAST="asia-east",e.ASIA_WEST="asia-west",e.AFRICA="africa",e.AUSTRALIA="australia"}(ZM||(ZM={}));const tL="https://beacon-notification-oracle.dev.gke.papers.tech",rL=[e=>{}];let nL={postMessage:(e,t)=>{console.log("GOT MOCK POST MESSAGE",e),rL.forEach((t=>{t({data:e})}))},addEventListener:(e,t)=>{rL.push(t)},removeEventListener:(e,t)=>{rL.splice(rL.indexOf((e=>e===t)),1)},location:{origin:"*"}};try{"undefined"!==typeof window&&(nL=window)}catch(jle){console.log(`not defined: ${jle}`)}class iL{track(e,t,r,n){}}class oL{name;iconUrl;appUrl;_beaconId=new wM;get beaconId(){return this._beaconId.promise}storage;analytics;_keyPair=new wM;get keyPair(){return this._keyPair.promise}constructor(e){if(!e.name)throw new Error("Name not set");if(!e.storage)throw new Error("Storage not set");this.name=e.name,this.iconUrl=e.iconUrl,this.appUrl=e.appUrl??nL.location.origin,this.storage=e.storage,this.analytics=e.analytics??new iL,nL.beaconCreatedClientInstance?console.error("[BEACON] It looks like you created multiple Beacon SDK Client instances. This can lead to problems. Only create one instance and re-use it everywhere."):nL.beaconCreatedClientInstance=!0,this.initSDK().catch(console.error)}async destroy(){await this.removeBeaconEntriesFromStorage(),nL.beaconCreatedClientInstance=!1}async initSDK(){return this.storage.set($M.BEACON_SDK_VERSION,"4.1.0").catch(console.error),this.loadOrCreateBeaconSecret().catch(console.error),this.keyPair.then((e=>{this._beaconId.resolve(PM(e.publicKey))}))}async removeBeaconEntriesFromStorage(){const e=Object.values($M);await Promise.all(e.map((e=>this.storage.delete(e))))}async loadOrCreateBeaconSecret(){const e=await this.storage.get($M.BEACON_SDK_SECRET_SEED);if(e&&"string"===typeof e)this._keyPair.resolve(await OM(e));else{const e=await RM();await this.storage.set($M.BEACON_SDK_SECRET_SEED,e),this._keyPair.resolve(await OM(e))}}}class aL{storage;storageKey;constructor(e,t){this.storage=e,this.storageKey=t}async getAll(){return await this.storage.get(this.storageKey)??[]}async getOne(e){return(await this.storage.get(this.storageKey)).find(e)}async addOne(e,t,r=!0){const n=await this.storage.get(this.storageKey);if(n.some(t)){if(r)for(let i=0;i!e(t)));return this.storage.set(this.storageKey,t)}async removeAll(){return this.storage.delete(this.storageKey)}}var sL=r(4872).Buffer;const cL=async(e,t)=>{const r=[e,t.type];t.name&&r.push(`name:${t.name}`),t.rpcUrl&&r.push(`rpc:${t.rpcUrl}`);const n=sL.from((0,Wa.hash)((0,kM.cv)(r.join("-")),10));return xM.encode(n)};class lL{static async hasPermission(e,t,r){switch(e.type){case IM.PermissionRequest:case IM.BroadcastRequest:return!0;case IM.OperationRequest:{const r=await cL(e.sourceAddress,e.network),n=await t(r);return!!n&&n.scopes.includes(MM.OPERATION_REQUEST)}case IM.SignPayloadRequest:{const t=(await r()).filter((t=>t.address===e.sourceAddress));return 0!==t.length&&t.some((e=>e.scopes.includes(MM.SIGN)))}default:throw new Error("Message not handled")}}}class uL{storageManager;constructor(e){this.storageManager=new aL(e,$M.ACCOUNTS)}async getAccounts(){return await this.storageManager.getAll()??[]}async getAccount(e){return this.storageManager.getOne((t=>t.accountIdentifier===e))}async addAccount(e){return this.storageManager.addOne(e,(t=>t.accountIdentifier===e.accountIdentifier))}async updateAccount(e,t){const r=await this.getAccount(e);if(!r)return;const n={...r,...t};return await this.storageManager.addOne(n,(t=>t.accountIdentifier===e),!0),n}async removeAccount(e){return this.storageManager.remove((t=>t.accountIdentifier===e))}async removeAccounts(e){return this.storageManager.remove((t=>e.includes(t.accountIdentifier)))}async removeAllAccounts(){return this.storageManager.removeAll()}async hasPermission(e){return lL.hasPermission(e,this.getAccount.bind(this),this.getAccounts.bind(this))}}var dL=r(4872).Buffer;const hL=async e=>{const t=dL.from((0,Wa.hash)(dL.from(e,"hex"),5));return xM.encode(t)};let fL=!!nL.beaconSdkDebugEnabled;fL&&console.log("[BEACON]: Debug mode is ON (turned on either by the developer or a browser extension)");class pL{name;constructor(e){this.name=e}debug(e,...t){mL.debug(this.name,e,t)}log(e,...t){mL.log(this.name,e,t)}warn(e,...t){mL.warn(this.name,e,t)}error(e,...t){mL.error(this.name,e,t)}time(e,t){mL.time(e,t)}timeLog(e,...t){mL.timeLog(e,t)}}new pL("");let mL=new class{constructor(){}debug(e,t,...r){this._log("debug",e,t,r)}log(e,t,...r){this._log("log",e,t,r)}warn(e,t,...r){this._log("warn",e,t,r)}error(e,t,...r){this._log("error",e,t,r)}time(e,t){e?console.time(t):console.timeEnd(t)}timeLog(e,t,...r){this._log("timeLog",e,t,r)}_log(e,t,r,n=[]){if(!fL)return;let i=`[BEACON] ${(new Date).toISOString()} [${t}](${r})`,o=n;switch(n[0]&&"string"===typeof n[0]&&(i+=` ${n[0]}`,o=n.slice(1)),e){case"error":console.group(i),console.error(...o);break;case"warn":console.group(i),console.warn(...o);break;case"debug":console.groupCollapsed(i),console.debug(...o);break;case"timeLog":console.group(i),console.timeLog(...o);break;default:console.group(i),console.log(...o)}console.groupEnd()}};const gL=new pL("Client");class vL extends oL{accountManager;handleResponse;rateLimit=2;rateLimitWindowInSeconds=5;requestCounter=[];matrixNodes;_transport=new wM;get transport(){return this._transport.promise}get connectionStatus(){return this._transport.promiseResult?.connectionStatus??UM.NOT_CONNECTED}get ready(){return this.transport.then((()=>{}))}constructor(e){super(e),this.accountManager=new uL(e.storage),this.matrixNodes=e.matrixNodes??{},this.handleResponse=(e,t)=>{throw new Error(`not overwritten${JSON.stringify(e)} - ${JSON.stringify(t)}`)}}async getAccounts(){return this.accountManager.getAccounts()}async getAccount(e){return this.accountManager.getAccount(e)}async removeAccount(e){return this.accountManager.removeAccount(e)}async removeAllAccounts(){return this.accountManager.removeAllAccounts()}async addRequestAndCheckIfRateLimited(){const e=(new Date).getTime();return this.requestCounter=this.requestCounter.filter((t=>t+1e3*this.rateLimitWindowInSeconds>e)),this.requestCounter.push(e),this.requestCounter.length>this.rateLimit}async init(e){return this._transport.status===yM.RESOLVED?(await this.transport).type:(await this.setTransport(e),e.type)}async getOwnAppMetadata(){return{senderId:await hL(await this.beaconId),name:this.name,icon:this.iconUrl}}async getPeers(){return(await this.transport).getPeers()}async addPeer(e){return(await this.transport).addPeer(e)}async destroy(){this._transport.status===yM.RESOLVED&&await(await this.transport).disconnect(),await super.destroy()}async setTransport(e){e?this._transport.isSettled()?this._transport=wM.resolve(e):this._transport.resolve(e):this._transport.isSettled()&&(this._transport=new wM)}async addListener(e){e.addListener((async(e,t)=>{if("string"===typeof e){const r=await(new _L).deserialize(e);this.handleResponse(r,t)}})).catch((e=>gL.error("addListener",e)))}async sendDisconnectToPeer(e,t){const r={id:await RM(),version:e.version,senderId:await hL(await this.beaconId),type:IM.Disconnect},n=await(new _L).serialize(r),i=t??await this.transport;await i.send(n,e)}}const yL=new pL("Transport");class bL{type=FM.POST_MESSAGE;name;_isConnected=UM.NOT_CONNECTED;peerManager;client;newPeerListener;setEventHandler(e,t){this.client.eventHandlers.set(e,t)}listeners=[];get connectionStatus(){return this._isConnected}constructor(e,t,r){this.name=e,this.client=t,this.peerManager=r}static async isAvailable(){return Promise.resolve(!1)}async connect(){yL.log("connect"),this._isConnected=UM.CONNECTED}async disconnect(){yL.log("disconnect"),this._isConnected=UM.NOT_CONNECTED}async send(e,t){if(t)return this.client.sendMessage(e,t);{const t=(await this.getPeers()).map((t=>this.client.sendMessage(e,t)));return(await Promise.all(t))[0]}}async addListener(e){yL.debug("addListener"),this.listeners.push(e)}async removeListener(e){yL.log("removeListener"),this.listeners=this.listeners.filter((t=>t!==e))}async getPeers(){return this.peerManager.getPeers()}async addPeer(e,t=!0){yL.log("addPeer","adding peer",e),await this.peerManager.addPeer(e),await this.listen(e.publicKey)}async removePeer(e){yL.log("removePeer","removing peer",e),await this.peerManager.removePeer(e.publicKey),this.client&&await this.client.unsubscribeFromEncryptedMessage(e.publicKey)}async removeAllPeers(){yL.log("removeAllPeers"),await this.peerManager.removeAllPeers(),this.client&&await this.client.unsubscribeFromEncryptedMessages()}async notifyListeners(e,t){0===this.listeners.length?yL.warn("notifyListeners","0 listeners notified!",this):yL.log("notifyListeners",`Notifying ${this.listeners.length} listeners`,this),this.listeners.forEach((r=>{r(e,t)}))}}class wL extends HM{prefix;constructor(e){super(),this.prefix=e}static async isSupported(){return Promise.resolve(Boolean("undefined"!==typeof window)&&Boolean(window.localStorage))}async get(e){const t=localStorage.getItem(this.getPrefixedKey(e));if(!t)return"object"===typeof VM[e]?JSON.parse(JSON.stringify(VM[e])):VM[e];try{return JSON.parse(t)}catch(r){return t}}async set(e,t){return"string"===typeof t?localStorage.setItem(this.getPrefixedKey(e),t):localStorage.setItem(this.getPrefixedKey(e),JSON.stringify(t))}async delete(e){return Promise.resolve(localStorage.removeItem(this.getPrefixedKey(e)))}async subscribeToStorageChanged(e){window.addEventListener("storage",(t=>{t.key?e({eventType:"entryModified",key:this.getPrefixedKey(t.key),oldValue:t.oldValue,newValue:t.newValue}):e({eventType:"storageCleared",key:null,oldValue:null,newValue:null})}),!1)}getPrefixedKey(e){return this.prefix?`${this.prefix}-${e}`:e}}new pL("STORAGE");var xL=r(4872).Buffer;class _L{async serialize(e){const t=JSON.stringify(e);return xM.encode(xL.from(t))}async deserialize(e){if("string"!==typeof e)throw new Error("Encoded payload needs to be a string");return JSON.parse(xM.decode(e).toString())}}class SL{storageManager;constructor(e){this.storageManager=new aL(e,$M.APP_METADATA_LIST)}async getAppMetadataList(){return await this.storageManager.getAll()??[]}async getAppMetadata(e){return this.storageManager.getOne((t=>t.senderId===e))}async addAppMetadata(e){return this.storageManager.addOne(e,(t=>t.senderId===e.senderId))}async removeAppMetadata(e){return this.storageManager.remove((t=>t.senderId===e))}async removeAppMetadatas(e){return this.storageManager.remove((t=>e.includes(t.senderId)))}async removeAllAppMetadata(){return this.storageManager.removeAll()}}class kL{storageManager;constructor(e){this.storageManager=new aL(e,$M.PERMISSION_LIST)}async getPermissions(){return await this.storageManager.getAll()??[]}async getPermission(e){return this.storageManager.getOne((t=>t.accountIdentifier===e))}async addPermission(e){return this.storageManager.addOne(e,(t=>t.accountIdentifier===e.accountIdentifier&&t.senderId===e.senderId))}async removePermission(e){return this.storageManager.remove((t=>t.accountIdentifier===e))}async removePermissions(e){return this.storageManager.remove((t=>e.includes(t.accountIdentifier)))}async removeAllPermissions(){return this.storageManager.removeAll()}async hasPermission(e){return lL.hasPermission(e,this.getPermission.bind(this),this.getPermissions.bind(this))}}class EL{storageManager;constructor(e,t){this.storageManager=new aL(e,t)}async hasPeer(e){return!!await this.getPeer(e)}async getPeers(){return await this.storageManager.getAll()??[]}async getPeer(e){return this.storageManager.getOne((t=>t.publicKey===e))}async addPeer(e){return this.storageManager.addOne(e,(t=>t.publicKey===e.publicKey))}async removePeer(e){return this.storageManager.remove((t=>t.publicKey===e))}async removePeers(e){return this.storageManager.remove((t=>e.includes(t.publicKey)))}async removeAllPeers(){return this.storageManager.removeAll()}}var AL=r(347),PL=r(4872).Buffer;class TL{keyPair;constructor(e){this.keyPair=e}eventHandlers=new Map;async getPublicKey(){return PM(this.keyPair?.publicKey)}async getPublicKeyHash(){return TM(this.keyPair.publicKey)}async createCryptoBoxServer(e,t){return(0,AL.serverSessionKeys)({publicKey:(0,Ka.SH)(t.publicKey),secretKey:(0,Ka.zh)(t.secretKey)},(0,Ka.SH)(PL.from(e,"hex")))}async createCryptoBoxClient(e,t){return(0,AL.clientSessionKeys)({publicKey:(0,Ka.SH)(t.publicKey),secretKey:(0,Ka.zh)(t.secretKey)},(0,Ka.SH)(PL.from(e,"hex")))}async encryptMessageAsymmetric(e,t){return async function(e,t){const r=(0,Ka.SH)(AM.from(t)),n=(0,_M.generateKeyPair)(),i=new Wa.BLAKE2b(24).update(n.publicKey,32).update(r,32).digest(),o="string"===typeof e?(0,kM.cv)(e):e,a=(0,_M.box)(r,n.secretKey,i,o);return PM((0,EM.z)(n.publicKey,a))}(t,PL.from(e,"hex"))}}r(4872).Buffer;new pL("IndexedDBStorage");var OL;!function(e){e.TEXT="m.text"}(OL||(OL={}));class CL{type;sender;content;timestamp;static from(e){if(RL(e))return new CL(e.content.msgtype,e.sender,e.content.body,e.origin_server_ts)}constructor(e,t,r,n){this.type=e,this.sender=t,this.content=r,this.timestamp=n}}const jL=e=>"m.room.message"===e.type,RL=e=>jL(e)&&e.content instanceof Object&&"msgtype"in e.content&&e.content.msgtype===OL.TEXT;var IL;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.JOINED=1]="JOINED",e[e.INVITED=2]="INVITED",e[e.LEFT=3]="LEFT"}(IL||(IL={}));class ML{id;status;members;messages;static fromSync(e){if(!e)return[];function t(e,t){return Object.entries(e).map((([e,r])=>t(e,r)))}return[...t(e.join??{},ML.fromJoined),...t(e.invite??{},ML.fromInvited),...t(e.leave??{},ML.fromLeft)]}static from(e,t){return"string"===typeof e?new ML(e,t||IL.UNKNOWN):void 0!==t?new ML(e.id,t,e.members,e.messages):e}static merge(e,t){return t&&t.id===e.id?new ML(e.id,e.status,[...t.members,...e.members].filter(((e,t,r)=>r.indexOf(e)===t)),[...t.messages,...e.messages]):ML.from(e)}static fromJoined(e,t){const r=[...t.state.events,...t.timeline.events],n=ML.getMembersFromEvents(r),i=ML.getMessagesFromEvents(r);return new ML(e,IL.JOINED,n,i)}static fromInvited(e,t){const r=ML.getMembersFromEvents(t.invite_state.events);return new ML(e,IL.INVITED,r)}static fromLeft(e,t){const r=[...t.state.events,...t.timeline.events],n=ML.getMembersFromEvents(r),i=ML.getMessagesFromEvents(r);return new ML(e,IL.LEFT,n,i)}static getMembersFromEvents(e){return ML.getUniqueEvents(e.filter((e=>(e=>"m.room.create"===e.type&&e.content instanceof Object&&"creator"in e.content)(e)||(e=>"m.room.member"===e.type&&e.content instanceof Object&&"membership"in e.content&&"join"===e.content.membership)(e)))).map((e=>e.sender)).filter(((e,t,r)=>r.indexOf(e)===t))}static getMessagesFromEvents(e){return ML.getUniqueEvents(e.filter(jL)).map((e=>CL.from(e))).filter(Boolean)}static getUniqueEvents(e){const t={},r=[];return e.forEach(((e,n)=>{const i=e.event_id;void 0!==i&&i in t||(void 0!==i&&(t[i]=n),r.push(e))})),r}constructor(e,t=IL.UNKNOWN,r=[],n=[]){this.id=e,this.status=t,this.members=r,this.messages=n}}const LL=["syncToken","rooms"];class NL{storage;state={isRunning:!1,userId:void 0,deviceId:void 0,txnNo:0,accessToken:void 0,syncToken:void 0,pollingTimeout:void 0,pollingRetries:0,rooms:{}};onStateChangedListeners=new Map;waitReadyPromise;constructor(e){this.storage=e,this.waitReadyPromise=new Promise((async(e,t)=>{try{await this.initFromStorage(),e()}catch(r){t(r)}}))}get(e){return this.state[e]}getRoom(e){const t=ML.from(e,IL.UNKNOWN);return this.state.rooms[t.id]||t}async update(e){await this.waitReady();const t=Object.assign({},this.state);this.setState(e),this.updateStorage(e),this.notifyListeners(t,this.state,e)}onStateChanged(e,...t){t.length>0?t.forEach((t=>{this.onStateChangedListeners.set(t,e)})):this.onStateChangedListeners.set("all",e)}async waitReady(){return this.waitReadyPromise}async initFromStorage(){const e=await this.storage.get($M.MATRIX_PRESERVED_STATE);this.setState(e)}prepareData(e){const t=["rooms"].some((t=>void 0!==e[t]))?JSON.parse(JSON.stringify(e)):e;return Object.values(t.rooms||{}).forEach((e=>{e.messages=[]})),t}updateStorage(e){const t=Object.entries(e).filter((([e,t])=>LL.includes(e)&&Boolean(t)));if(t.length>0){const e={};LL.forEach((t=>{e[t]=this.state[t]})),this.storage.set($M.MATRIX_PRESERVED_STATE,this.prepareData(e))}}setState(e){this.state={isRunning:e.isRunning||this.state.isRunning,userId:e.userId||this.state.userId,deviceId:e.deviceId||this.state.deviceId,txnNo:e.txnNo||this.state.txnNo,accessToken:e.accessToken||this.state.accessToken,syncToken:e.syncToken||this.state.syncToken,pollingTimeout:e.pollingTimeout||this.state.pollingTimeout,pollingRetries:e.pollingRetries||this.state.pollingRetries,rooms:this.mergeRooms(this.state.rooms,e.rooms)}}mergeRooms(e,t){if(!t)return e;const r=Array.isArray(t)?t:Object.values(t),n=Object.assign({},e);return r.forEach((t=>{n[t.id]=ML.merge(t,e[t.id])})),n}notifyListeners(e,t,r){const n=this.onStateChangedListeners.get("all");n&&n(e,t,r),vM(r).filter((e=>void 0!==r[e])).forEach((n=>{const i=this.onStateChangedListeners.get(n);i&&i(e,t,r)}))}}const DL=new pL("MatrixHttpClient");class zL{baseUrl;cancelTokenSource;constructor(e){this.baseUrl=e,this.cancelTokenSource=dj.CancelToken.source()}async get(e,t,r){return this.send("GET",e,r,t)}async post(e,t,r,n){return this.send("POST",e,r,n,t)}async put(e,t,r,n){return this.send("PUT",e,r,n,t)}async cancelAllRequests(){return this.cancelTokenSource.cancel("Manually cancelled")}async send(e,t,r,n,i){const o=r?this.getHeaders(r):void 0,a=n?this.getParams(n):void 0;let s;try{s=await dj.request({method:e,url:t,baseURL:this.apiUrl("/_matrix/client/r0"),headers:o,data:i,params:a,cancelToken:this.cancelTokenSource.token})}catch(c){const e=c;throw DL.error("send",e.code,e.message,e.response.data),c.response.data}return s.data}getHeaders(e){const t={},r=[];if(e.accessToken&&r.push(["Authorization",`Bearer ${e.accessToken}`]),0!==r.length){for(const[e,n]of r)t[e]=n;return t}}getParams(e){if(!e)return;const t=Object.assign(e,{});return vM(t).forEach((e=>void 0===t[e]&&delete t[e])),t}apiUrl(...e){return[this.baseUrl.endsWith("/")?this.baseUrl.substr(0,this.baseUrl.length-1):this.baseUrl,...e.map((e=>e.startsWith("/")?e.substr(1):e))].join("/")}}class BL{httpClient;constructor(e){this.httpClient=e}async createRoom(e,t={}){return this.httpClient.post("/createRoom",t,{accessToken:e})}async inviteToRoom(e,t,r){return r.status!==IL.JOINED&&r.status!==IL.UNKNOWN?Promise.reject(`User is not a member of room ${r.id}.`):this.httpClient.post(`/rooms/${encodeURIComponent(r.id)}/invite`,{user_id:t},{accessToken:e})}async joinRoom(e,t){return t.status===IL.JOINED?Promise.resolve({room_id:t.id}):this.httpClient.post(`/rooms/${encodeURIComponent(t.id)}/join`,{},{accessToken:e})}async getJoinedRooms(e){return this.httpClient.get("/joined_rooms",void 0,{accessToken:e})}}class UL{httpClient;constructor(e){this.httpClient=e}async login(e,t,r){return this.httpClient.post("/login",{type:"m.login.password",identifier:{type:"m.id.user",user:e},password:t,device_id:r})}}class FL{httpClient;cachedPromises=new Map;constructor(e){this.httpClient=e}async sync(e,t){return this.withCache("sync",(()=>this.httpClient.get("/sync",{timeout:t?t.pollingTimeout:void 0,since:t?t.syncToken:void 0},{accessToken:e})))}async sendMessage(e,t,r,n){return new Promise(((i,o)=>this.scheduleEvent({accessToken:e,roomId:t,type:"m.room.message",content:r,txnId:n,onSuccess:i,onError:o})))}scheduleEvent(e){this.sendEvent(e)}async sendEvent(e){const{roomId:t,type:r,txnId:n,content:i,accessToken:o}=e;try{const a=await this.httpClient.put(`/rooms/${encodeURIComponent(t)}/send/${r}/${encodeURIComponent(n)}`,i,{accessToken:o});e.onSuccess(a)}catch(a){e.onError(a)}}withCache(e,t){let r=this.cachedPromises.get(e);return r||(r=t().finally((()=>{this.cachedPromises.delete(e)})),this.cachedPromises.set(e,r)),r}}class $L{events={};on(e,t){return"object"!==typeof this.events[e]&&(this.events[e]=[]),this.events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if("object"!==typeof this.events[e])return;if(!t)return void(this.events[e]=[]);const r=this.events[e].indexOf(t);r>-1&&this.events[e].splice(r,1)}removeAllListeners(){Object.keys(this.events).forEach((e=>this.events[e].splice(0,this.events[e].length)))}emit(e,...t){"object"===typeof this.events[e]&&[...this.events[e]].forEach((e=>e.apply(this,t)))}once(e,t){const r=this.on(e,((...e)=>{r(),t.apply(this,e)}));return r}}var HL;!function(e){e.INVITE="invite",e.MESSAGE="message"}(HL||(HL={}));class VL extends $L{eventEmitProviders=new Map([[HL.INVITE,()=>[this.isInvite,this.emitInvite.bind(this)]],[HL.MESSAGE,()=>[this.isMessage,this.emitMessage.bind(this)]]]);onStateChanged(e,t,r){for(const n of vM(HL))this.emitIfEvent(HL[n],r)}emitIfEvent(e,t){const r=this.eventEmitProviders.get(e);if(r){const[n,i]=r();n(t)&&i(e,t)}}emitClientEvent(e,t,r){this.emit(e,{type:e,content:t,timestamp:r})}isInvite(e){return!!e.rooms&&e.rooms.some((e=>e.status===IL.INVITED))}emitInvite(e,t){t.rooms.filter((e=>e.status===IL.INVITED)).map((e=>[e.id,e.members])).forEach((([t,r])=>{this.emitClientEvent(e,{roomId:t,members:r})}))}isMessage(e){return!!e.rooms&&e.rooms.some((e=>e.messages.length>0))}emitMessage(e,t){t.rooms.filter((e=>e.messages.length>0)).map((e=>e.messages.map((t=>[e.id,t,t.timestamp])))).reduce(((e,t)=>e.concat(t)),[]).forEach((([t,r,n])=>{this.emitClientEvent(e,{roomId:t,message:r},n)}))}}const qL=new pL("MatrixClient");class KL{store;eventEmitter;userService;roomService;eventService;httpClient;isActive=!0;_isReady=new wM;constructor(e,t,r,n,i,o){this.store=e,this.eventEmitter=t,this.userService=r,this.roomService=n,this.eventService=i,this.httpClient=o,this.store.onStateChanged(((e,t,r)=>{this.eventEmitter.onStateChanged(e,t,r)}),"rooms")}static create(e){const t=new NL(e.storage),r=new VL,n=new zL(e.baseUrl),i=new UL(n),o=new BL(n),a=new FL(n);return new KL(t,r,i,o,a,n)}get joinedRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===IL.JOINED)))}))}get invitedRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===IL.INVITED)))}))}get leftRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===IL.LEFT)))}))}async start(e){const t=await this.userService.login(e.id,e.password,e.deviceId);await this.store.update({accessToken:t.access_token});const r=new Promise((async(e,t)=>{await this.poll(0,(async t=>{this.store.get("isRunning")||e(),await this.store.update({isRunning:!0,syncToken:t.next_batch,pollingTimeout:3e4,pollingRetries:0,rooms:ML.fromSync(t.rooms)})}),(async e=>{this.store.get("isRunning")||t(e),await this.store.update({isRunning:!1,pollingRetries:this.store.get("pollingRetries")+1})}))}));return r.then((()=>{this._isReady.resolve()})).catch(console.error),r}async isConnected(){return this._isReady.promise}async stop(){return qL.log("MATRIX CLIENT STOPPED"),this.isActive=!1,this._isReady=new wM,this.httpClient.cancelAllRequests()}subscribe(e,t){this.eventEmitter.on(e,t)}unsubscribe(e,t){t&&this.eventEmitter.removeListener(e,t)}unsubscribeAll(e){this.eventEmitter.removeListener(e)}async getRoomById(e){return await this.isConnected(),this.store.getRoom(e)}async createTrustedPrivateRoom(...e){return await this.isConnected(),this.requiresAuthorization("createRoom",(async t=>(await this.roomService.createRoom(t,{room_version:"5",invite:e,preset:"public_chat",is_direct:!0})).room_id))}async inviteToRooms(e,...t){await this.isConnected(),await this.requiresAuthorization("invite",(r=>Promise.all(t.map((t=>{const n=this.store.getRoom(t);this.roomService.inviteToRoom(r,e,n).catch((e=>qL.warn("inviteToRooms",e)))})))))}async joinRooms(...e){await this.isConnected(),await this.requiresAuthorization("join",(t=>Promise.all(e.map((e=>{const r=this.store.getRoom(e);return this.roomService.joinRoom(t,r)})))))}async sendTextMessage(e,t){await this.isConnected(),await this.requiresAuthorization("send",(async r=>{const n=await this.createTxnId();return this.eventService.sendMessage(r,e,{msgtype:"m.text",body:t},n)}))}async poll(e,t,r){const n=this.store,i=this.sync.bind(this),o=async(a,s)=>{let c=0;try{const e=await i();t(e)}catch(l){r(l),c=n.get("pollingRetries"),this.isActive&&qL.log(`Retry syncing... ${c} retries so far`)}finally{this.isActive?setTimeout((async()=>{await o(a,s)}),c>3?5e3+e:e):s(new Error("Syncing stopped manually."))}};return new Promise(o)}async sync(){return this.requiresAuthorization("sync",(async e=>this.eventService.sync(e,{pollingTimeout:this.store.get("pollingTimeout"),syncToken:this.store.get("syncToken")})))}async requiresAuthorization(e,t){const r=this.store.get("accessToken");return r?t(r):Promise.reject(`${e} requires authorization but no access token has been provided.`)}async createTxnId(){const e=(new Date).getTime(),t=this.store.get("txnNo");return await this.store.update({txnNo:t+1}),`m${e}.${t}`}}var WL=r(4872).Buffer;const GL=new pL("P2PCommunicationClient"),ZL={[ZM.EUROPE_WEST]:["beacon-node-1.diamond.papers.tech","beacon-node-1.sky.papers.tech","beacon-node-2.sky.papers.tech","beacon-node-1.hope.papers.tech","beacon-node-1.hope-2.papers.tech","beacon-node-1.hope-3.papers.tech","beacon-node-1.hope-4.papers.tech","beacon-node-1.hope-5.papers.tech"],[ZM.NORTH_AMERICA_EAST]:["beacon-node-1.beacon-server-1.papers.tech"],[ZM.NORTH_AMERICA_WEST]:["beacon-node-1.beacon-server-2.papers.tech"],[ZM.ASIA_EAST]:["beacon-node-1.beacon-server-3.papers.tech"],[ZM.AUSTRALIA]:["beacon-node-1.beacon-server-4.papers.tech"]},YL=e=>new Promise((t=>setTimeout(t,e)));class XL extends TL{name;replicationCount;storage;iconUrl;appUrl;client=new wM;initialEvent;initialListener;selectedRegion;ENABLED_RELAY_SERVERS;relayServer;activeListeners=new Map;ignoredRooms=[];loginCounter=0;constructor(e,t,r,n,i,o,a){super(t),this.name=e,this.replicationCount=r,this.storage=n,this.iconUrl=o,this.appUrl=a,GL.log("constructor","P2PCommunicationClient created"),this.ENABLED_RELAY_SERVERS=ZL,i&&(this.ENABLED_RELAY_SERVERS={...ZL,...i})}async getPairingRequestInfo(){const e=new qM(await RM(),this.name,await this.getPublicKey(),"3",(await this.getRelayServer()).server);return this.iconUrl&&(e.icon=this.iconUrl),this.appUrl&&(e.appUrl=this.appUrl),e}async getPairingResponseInfo(e){const t=new YM(e.id,this.name,await this.getPublicKey(),e.version,(await this.getRelayServer()).server);return this.iconUrl&&(t.icon=this.iconUrl),this.appUrl&&(t.appUrl=this.appUrl),t}async findBestRegionAndGetServer(){if(this.selectedRegion)return this.relayServer?.promiseResult;const e=Object.keys(this.ENABLED_RELAY_SERVERS),t=[],r=new wM;let n=0;const i=new wM;e.forEach((e=>{const o=this.ENABLED_RELAY_SERVERS[e]??[];if(0===o.length)return;n+=2;const a=(o=!0)=>{const c=Date.now();Promise.race([this.getBeaconInfo(s),i.promise]).then((i=>{"boolean"!==typeof i&&(t.push({time:Date.now()-c,server:s,region:e,result:i}),t.length>=n&&r.resolve(void 0),o||a(!0))}))},s=o[Math.floor(Math.random()*o.length)];a(!1)})),await Promise.race([r.promise,YL(1e3)]);let o=0;for(;t.length<=0;){if(o>=100)throw new Error("No server responded.");await YL(50),o++}i.resolve(!0);const a=t.reduce(((e,t)=>e.time0){const t=await this.getBeaconInfo(e);return this.relayServer.resolve({server:e,timestamp:t.timestamp,localTimestamp:(new Date).getTime()}),{server:e,timestamp:t.timestamp}}const t=await this.findBestRegionAndGetServer();if(!t)throw new Error("No servers found");return this.storage.set($M.MATRIX_SELECTED_NODE,t.server).catch((e=>GL.log(e))),this.relayServer.resolve({server:t.server,timestamp:t.timestamp,localTimestamp:(new Date).getTime()}),{server:t.server,timestamp:t.timestamp}}async getBeaconInfo(e){return dj.get(`https://${e}/_synapse/client/beacon/info`).then((e=>({region:e.data.region,known_servers:e.data.known_servers,timestamp:Math.floor(e.data.timestamp)})))}async tryJoinRooms(e,t=1){try{await(await this.client.promise).joinRooms(e)}catch(r){t<=10&&"M_FORBIDDEN"===r.errcode?(GL.log("Retrying to join...",r),setTimeout((async()=>{await this.tryJoinRooms(e,t+1)}),200)):GL.log(`Failed to join after ${t} tries.`,r)}}async start(){GL.log("start","starting client"),GL.log("start","connecting to server");const e=await this.getRelayServer(),t=KL.create({baseUrl:`https://${e.server}`,storage:this.storage});if(this.initialListener=async e=>{this.initialEvent&&this.initialEvent.timestamp&&e&&e.timestamp?this.initialEvent.timestamp{let t;1===e.content.members.length&&(t=e.content.members[0]),await this.tryJoinRooms(e.content.roomId),t&&(await this.updateRelayServer(t),await this.updatePeerRoom(t,e.content.roomId))})),!e.timestamp)throw new Error("No timestamp received from relay server");const r=Math.floor(e.timestamp),n=`login:${Math.floor(r/300)}`;GL.log("start",`login ${n}, ${await this.getPublicKeyHash()} on ${e.server}`);const i=(0,Wa.hash)((0,kM.cv)(n),32),o=this.keyPair.secretKey??this.keyPair.privateKey,a=(0,Ka.Xx)(o,i);try{await t.start({id:await this.getPublicKeyHash(),password:`ed:${PM(a)}:${await this.getPublicKey()}`,deviceId:PM(this.keyPair.publicKey)})}catch(s){if(GL.error("start","Could not log in, retrying"),await this.reset(),!this.selectedRegion)throw new Error("No region selected.");if(this.loginCounter<=(this.ENABLED_RELAY_SERVERS[this.selectedRegion]??[]).length)return this.loginCounter++,void this.start();throw GL.error("start","Tried to log in to every known beacon node, but no login was successful."),new Error("Could not connect to any beacon nodes. Try again later.")}GL.log("start","login successful, client is ready"),this.client.resolve(t)}async stop(){GL.log("stop","stopping client"),this.client.isResolved()&&await(await this.client.promise).stop().catch((e=>GL.error(e))),await this.reset()}async reset(){GL.log("reset","resetting connection"),await this.storage.delete($M.MATRIX_PEER_ROOM_IDS).catch((e=>GL.log(e))),await this.storage.delete($M.MATRIX_PRESERVED_STATE).catch((e=>GL.log(e))),await this.storage.delete($M.MATRIX_SELECTED_NODE).catch((e=>GL.log(e))),this.relayServer=void 0,this.client=new wM,this.initialEvent=void 0,this.initialListener=void 0}async listenForEncryptedMessage(e,t){if(this.activeListeners.has(e))return;GL.log("listenForEncryptedMessage",`start listening for encrypted messages from publicKey ${e}`);const r=await this.createCryptoBoxServer(e,this.keyPair),n=async n=>{if(this.isTextMessage(n.content)&&await this.isSender(n,e)){let o;await this.updateRelayServer(n.content.message.sender),await this.updatePeerRoom(n.content.message.sender,n.content.roomId);try{o=WL.from(n.content.message.content,"hex")}catch{}if(o&&o.length>=40)try{const n=await async function(e,t){const r=e.slice(0,24),n=e.slice(24),i=(0,_M.openSecretBox)(t,r,n);if(!i)throw new Error("Decryption failed");return AM.from(i).toString("utf8")}(o,r.receive);GL.log("listenForEncryptedMessage",`received a message from ${e}`,n),t(n)}catch(i){}}};this.activeListeners.set(e,n),(await this.client.promise).subscribe(HL.MESSAGE,n);const i=this.initialEvent;i&&i.timestamp&&(new Date).getTime()-i.timestamp<3e5?(GL.log("listenForEncryptedMessage","Handling previous event"),await n(i)):GL.log("listenForEncryptedMessage","No previous event found");const o=this.initialListener;o&&(await this.client.promise).unsubscribe(HL.MESSAGE,o),this.initialListener=void 0,this.initialEvent=void 0}async unsubscribeFromEncryptedMessage(e){const t=this.activeListeners.get(e);t&&((await this.client.promise).unsubscribe(HL.MESSAGE,t),this.activeListeners.delete(e))}async unsubscribeFromEncryptedMessages(){(await this.client.promise).unsubscribeAll(HL.MESSAGE),this.activeListeners.clear()}async sendMessage(e,t){const r=await this.createCryptoBoxClient(t.publicKey,this.keyPair),n=CM(await TM(WL.from(t.publicKey,"hex")),t.relayServer),i=await this.getRelevantRoom(n);await this.waitForJoin(i);const o=await async function(e,t){const r=AM.from((0,SM.randomBytes)(24));return PM(AM.concat([r,AM.from((0,_M.secretBox)(t,r,AM.from(e,"utf8")))]))}(e,r.send);GL.log("sendMessage","sending encrypted message",t.publicKey,i,e),(await this.client.promise).sendTextMessage(i,o).catch((async e=>{if("M_FORBIDDEN"===e.errcode){GL.log("sendMessage","M_FORBIDDEN",i,e),await this.deleteRoomIdFromRooms(i);const t=await this.getRelevantRoom(n);GL.log("sendMessage","Old room deleted, new room created",t),(await this.client.promise).sendTextMessage(t,o).catch((async e=>{GL.log("sendMessage","inner error",t,e)}))}else GL.log("sendMessage","unexpected error",e)}))}async updatePeerRoom(e,t){GL.log("updatePeerRoom",e,t);const r=e.split(":");if(r.length<2||!r[0].startsWith("@"))throw new Error("Invalid sender");const n=await this.storage.get($M.MATRIX_PEER_ROOM_IDS),i=n[e];i===t&&GL.debug("updatePeerRoom","rooms are the same, not updating"),GL.debug("updatePeerRoom","current room",i,"new room",t),i&&i[1]&&(GL.log("updatePeerRoom",`adding room "${i[1]}" to ignored array`),this.ignoredRooms.push(i[1])),n[e]=t,await this.storage.set($M.MATRIX_PEER_ROOM_IDS,n)}async deleteRoomIdFromRooms(e){const t=await this.storage.get($M.MATRIX_PEER_ROOM_IDS),r=Object.entries(t).filter((t=>t[1]!==e)).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{});await this.storage.set($M.MATRIX_PEER_ROOM_IDS,r),this.ignoredRooms.push(e)}async listenForChannelOpening(e){GL.debug("listenForChannelOpening"),(await this.client.promise).subscribe(HL.MESSAGE,(async t=>{if(this.isTextMessage(t.content)&&await this.isChannelOpenMessage(t.content)){GL.log("listenForChannelOpening","channel opening received, trying to decrypt",JSON.stringify(t)),await this.updateRelayServer(t.content.message.sender),await this.updatePeerRoom(t.content.message.sender,t.content.roomId);const n=t.content.message.content.split(":"),i=WL.from(n[n.length-1],"hex");if(i.length>=40)try{const t=JSON.parse(await async function(e,t,r){const n=(0,Ka.zh)(AM.from(r)),i=(0,Ka.SH)(AM.from(t)),o="string"===typeof e?(0,kM.cv)(e):e,a=o.slice(0,32),s=o.slice(32),c=new Wa.BLAKE2b(24).update(a,32).update(i,32).digest(),l=(0,_M.openBox)(a,n,c,s);if(!l)throw new Error("Decryption failed");return AM.from(l).toString()}(i,this.keyPair.publicKey,this.keyPair.secretKey));GL.log("listenForChannelOpening","channel opening received and decrypted",JSON.stringify(t)),e({...t,senderId:await hL(t.publicKey)})}catch(r){}}}))}async waitForJoin(e,t=0){const r=await(await this.client.promise).getRoomById(e);if(GL.log("waitForJoin",`Currently ${r.members.length} members, we need at least 2`),!(r.members.length>=2)){if(t<=200)return GL.log(`Waiting for join... Try: ${t}`),new Promise((r=>{setTimeout((()=>{r(this.waitForJoin(e,t+1))}),100*(t>50?10:1))}));throw new Error(`No one joined after ${t} tries.`)}}async sendPairingResponse(e){GL.log("sendPairingResponse");const t=CM(await TM(WL.from(e.publicKey,"hex")),e.relayServer),r=await(await this.client.promise).createTrustedPrivateRoom(t);GL.debug("sendPairingResponse",`Connecting to room "${r}"`),await this.updatePeerRoom(t,r),await this.waitForJoin(r),GL.debug("sendPairingResponse","Successfully joined room.");const n="undefined"===typeof e.version?await this.getPublicKey():JSON.stringify(await this.getPairingResponseInfo(e));GL.debug("sendPairingResponse","Sending pairing response",n);const i=await this.encryptMessageAsymmetric(e.publicKey,n),o=["@channel-open",t,i].join(":");(await this.client.promise).sendTextMessage(r,o).catch((async e=>{if("M_FORBIDDEN"===e.errcode){GL.log("sendPairingResponse","M_FORBIDDEN",r,e),await this.deleteRoomIdFromRooms(r);const n=await this.getRelevantRoom(t);GL.log("sendPairingResponse","Old room deleted, new room created",n),(await this.client.promise).sendTextMessage(n,o).catch((async e=>{GL.log("sendPairingResponse","inner error",n,e)}))}else GL.log("sendPairingResponse","unexpected error",e)}))}isTextMessage(e){return e.message.type===OL.TEXT}async updateRelayServer(e){GL.log("updateRelayServer",e);const t=e.split(":");if(t.length<2||!t[0].startsWith("@"))throw new Error("Invalid sender");const r=t.shift(),n=t.join(":"),i=localStorage.getItem("beacon:communication-peers-dapp")?new EL(this.storage,$M.TRANSPORT_P2P_PEERS_DAPP):new EL(this.storage,$M.TRANSPORT_P2P_PEERS_WALLET),o=(await i.getPeers()).map((async e=>{`@${await TM(WL.from(e.publicKey,"hex"))}`===r&&e.relayServer!==n&&(e.relayServer=n,await i.addPeer(e))}));await Promise.all(o)}async isChannelOpenMessage(e){return e.message.content.startsWith(`@channel-open:@${await TM(WL.from(await this.getPublicKey(),"hex"))}`)}async isSender(e,t){return e.content.message.sender.startsWith(`@${await TM(WL.from(t,"hex"))}`)}async getRelevantRoom(e){const t=await this.storage.get($M.MATRIX_PEER_ROOM_IDS);let r=t[e];if(!r){GL.log("getRelevantRoom",`No room found for peer ${e}, checking joined ones.`);const n=await this.getRelevantJoinedRoom(e);r=n.id,t[e]=n.id,await this.storage.set($M.MATRIX_PEER_ROOM_IDS,t)}return GL.log("getRelevantRoom",`Using room ${r}`),r}async getRelevantJoinedRoom(e){const t=await(await this.client.promise).joinedRooms;GL.log("checking joined rooms",t,e);const r=t.filter((e=>!this.ignoredRooms.some((t=>e.id===t)))).filter((t=>t.members.some((t=>t===e))));let n;if(0===r.length||this.ignoredRooms.length>0){GL.log("getRelevantJoinedRoom","no relevant rooms found, creating new one");const t=await(await this.client.promise).createTrustedPrivateRoom(e);n=await(await this.client.promise).getRoomById(t),GL.log("getRelevantJoinedRoom",`waiting for other party to join room: ${n.id}`),await this.waitForJoin(t),GL.log("getRelevantJoinedRoom",`new room created and peer invited: ${n.id}`)}else n=r[0],GL.log("getRelevantJoinedRoom",`channel already open, reusing room ${n.id}`);return n}}const JL=new pL("P2PTransport");class QL extends bL{type=FM.P2P;constructor(e,t,r,n,i,o,a){super(e,new XL(e,t,1,r,n,o,a),new EL(r,i))}static async isAvailable(){return Promise.resolve(!0)}async connect(){if(this._isConnected!==UM.NOT_CONNECTED)return;JL.log("connect"),this._isConnected=UM.CONNECTING,await this.client.start();const e=await this.getPeers();if(e.length>0){JL.log("connect",`connecting to ${e.length} peers`);const t=e.map((async e=>this.listen(e.publicKey)));Promise.all(t).catch((e=>JL.error("connect",e)))}return await this.startOpenChannelListener(),super.connect()}async disconnect(){return await this.client.stop(),super.disconnect()}async startOpenChannelListener(){}async getPairingRequestInfo(){return this.client.getPairingRequestInfo()}async listen(e){await this.client.listenForEncryptedMessage(e,(t=>{const r={origin:DM.P2P,id:e};this.notifyListeners(t,r).catch((e=>{throw e}))})).catch((e=>{throw e}))}}class eN extends QL{constructor(e,t,r,n,i,o){super(e,t,r,n,$M.TRANSPORT_P2P_PEERS_WALLET,i,o)}async addPeer(e,t=!0){await super.addPeer(e),t&&await this.client.sendPairingResponse(e)}}const tN=new pL("IncomingRequestInterceptor");class rN{static async intercept(e){tN.log("INTERCEPTING REQUEST",e.message),"2"===e.message.version?rN.handleV2Message(e):"3"===e.message.version&&rN.handleV3Message(e)}static async getAppMetadata(e,t){const r=await e.getAppMetadata(t);if(!r)throw new Error("AppMetadata not found");return r}static async handleV2Message(e){const{message:t,connectionInfo:r,appMetadataManager:n,interceptorCallback:i}=e;switch(t.type){case IM.PermissionRequest:tN.log("PERMISSION REQUEST V*",t),t.appMetadata.beaconId&&!t.appMetadata.senderId&&(t.appMetadata.senderId=t.appMetadata.beaconId,delete t.appMetadata.beaconId),await n.addAppMetadata(t.appMetadata);i(t,r);break;case IM.OperationRequest:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;case IM.SignPayloadRequest:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;case IM.BroadcastRequest:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;case IM.ProofOfEventChallengeRequest:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;case IM.ProofOfEventChallengeRecorded:i({appMetadata:await rN.getAppMetadata(n,t.senderId),...t},r);break;default:tN.log("intercept","Message not handled"),nN(t)}}static async handleV3Message(e){const{message:t,connectionInfo:r,appMetadataManager:n,interceptorCallback:i}=e,o=t,a=o.message;switch(a.type){case IM.PermissionRequest:await n.addAppMetadata({...a.blockchainData.appMetadata,senderId:t.senderId});i(o,r);break;case IM.BlockchainRequest:i({...o},r);break;default:tN.log("intercept","Message not handled"),nN(a)}}}function nN(e){throw new Error("Function not implemented.")}const iN=new pL("OutgoingResponseInterceptor");class oN{static async intercept(e){"2"===e.request.version?oN.handleV2Message(e):"3"===e.request.version&&oN.handleV3Message(e)}static async handleV3Message(e){const{message:t,appMetadataManager:r,interceptorCallback:n}=e,i=t.message;iN.log("LOGGING OUTGOING V3",i,r),n(t)}static async handleV2Message(e){const{senderId:t,request:r,message:n,ownAppMetadata:i,permissionManager:o,appMetadataManager:a,interceptorCallback:s}=e;switch(n.type){case IM.Error:{const e={type:n.type,version:"2",senderId:t,id:n.id,errorType:n.errorType};if(n.errorType===BM.TRANSACTION_INVALID_ERROR&&n.errorData){const t=n.errorData;Array.isArray(t)&&t.every((e=>Boolean(e.kind)&&Boolean(e.id)))?e.errorData=n.errorData:iN.warn("ErrorData provided is not in correct format. It needs to be an array of RPC errors. It will not be included in the message sent to the dApp")}s(e);break}case IM.Acknowledge:s({type:n.type,version:"2",senderId:t,id:n.id});break;case IM.PermissionResponse:{const e={senderId:t,version:"2",appMetadata:i,...n};if(!e.address&&!e.publicKey)throw new Error("Address or PublicKey must be defined");const c=e.publicKey,l=e.address??await async function(e){const t={edpk:{length:54,prefix:AM.from(new Uint8Array([6,161,159]))},sppk:{length:55,prefix:AM.from(new Uint8Array([6,161,161]))},p2pk:{length:55,prefix:AM.from(new Uint8Array([6,161,164]))}};let r,n;if(64===e.length)r=t.edpk.prefix,n=e;else{const i=Object.entries(t);for(let t=0;t{if(!["tz1","tz2","tz3","tz4","KT1","txr1","sr1"].some((t=>e.toLowerCase().startsWith(t.toLowerCase()))))return!1;try{xM.decode(e)}catch(t){return!1}return!0})(l))throw new Error(`Invalid address: "${l}"`);if("abstracted_account"===n.walletType&&"KT1"!==l.substring(0,3))throw new Error(`Invalid abstracted account address "${l}", it should be a KT1 address`);const u=await a.getAppMetadata(r.senderId);if(!u)throw new Error("AppMetadata not found");const d={accountIdentifier:await cL(l,e.network),senderId:r.senderId,appMetadata:u,website:"",address:l,publicKey:c,network:e.network,scopes:e.scopes,connectedAt:(new Date).getTime()};o.addPermission(d).catch(console.error),s(e);break}case IM.OperationResponse:s({senderId:t,version:"2",...n});break;case IM.SignPayloadResponse:s({senderId:t,version:"2",...n});break;case IM.BroadcastResponse:s({senderId:t,version:"2",...n});break;case IM.ProofOfEventChallengeResponse:s({senderId:t,version:"2",...n});break;default:iN.log("intercept","Message not handled"),function(e){throw new Error("Function not implemented.")}()}}}const aN=new pL("WalletClient");class sN extends vL{_isConnected=new wM;get isConnected(){return this._isConnected.promise}permissionManager;appMetadataManager;pendingRequests=[];constructor(e){super({storage:e&&e.storage?e.storage:new wL,...e}),this.permissionManager=new kL(this.storage),this.appMetadataManager=new SL(this.storage)}async init(){const e=await this.keyPair,t=new eN(this.name,e,this.storage,this.matrixNodes,this.iconUrl,this.appUrl);return super.init(t)}async connect(e){return this.handleResponse=async(t,r)=>{if("3"===t.version){const n=t;if(n.message.type===IM.Disconnect)return this.disconnect(n.senderId);this.pendingRequests.some((e=>e[0].id===t.id))||(this.pendingRequests.push([n,r]),await this.sendAcknowledgeResponse(n,r),await rN.intercept({message:n,connectionInfo:r,appMetadataManager:this.appMetadataManager,interceptorCallback:e}))}else{const n=t;if(n.type===IM.Disconnect)return this.disconnect(n.senderId);this.pendingRequests.some((e=>e[0].id===t.id))||(this.pendingRequests.push([n,r]),"1"!==n.version&&await this.sendAcknowledgeResponse(n,r),await rN.intercept({message:n,connectionInfo:r,appMetadataManager:this.appMetadataManager,interceptorCallback:e}))}},this._connect()}async getRegisterPushChallenge(e,t,r=tL){const n=(await dj.get(`${r}/challenge`)).data,i=PM(["Tezos Signed Message: ",n.id,n.timestamp,t,e].join(" "));return{challenge:n,payloadToSign:"0501"+i.length.toString(16).padStart(8,"0")+i}}async registerPush(e,t,r,n,i,o,a=tL){const s=await this.storage.get($M.PUSH_TOKENS),c=s.find((e=>e.publicKey===n&&e.backendUrl===r));if(c)return c;const l=(await dj.post(`${a}/register`,{name:this.name,challenge:e,accountPublicKey:n,signature:t,backendUrl:r,protocolIdentifier:i,deviceId:o})).data,u={publicKey:n,backendUrl:r,accessToken:l.accessToken,managementToken:l.managementToken};return s.push(u),await this.storage.set($M.PUSH_TOKENS,s),u}async _connect(){const e=await this.transport;e.connectionStatus===UM.NOT_CONNECTED&&(await e.connect(),e.addListener((async(e,t)=>{if("string"===typeof e){const r=await(new _L).deserialize(e);this.handleResponse(r,t)}})).catch((e=>aN.log("_connect",e))),this._isConnected.resolve(!0))}async respond(e){aN.log("RESPONSE",e);const t=this.pendingRequests.find((t=>t[0].id===e.id));if(!t)throw new Error("No matching request found!");this.pendingRequests=this.pendingRequests.filter((t=>t[0].id!==e.id)),await oN.intercept({senderId:await hL(await this.beaconId),request:t[0],message:e,ownAppMetadata:await this.getOwnAppMetadata(),permissionManager:this.permissionManager,appMetadataManager:this.appMetadataManager,interceptorCallback:async e=>{await this.respondToMessage(e,t[1])}})}async getAppMetadataList(){return this.appMetadataManager.getAppMetadataList()}async getAppMetadata(e){return this.appMetadataManager.getAppMetadata(e)}async removeAppMetadata(e){return this.appMetadataManager.removeAppMetadata(e)}async removeAllAppMetadata(){return this.appMetadataManager.removeAllAppMetadata()}async getPermissions(){return this.permissionManager.getPermissions()}async getPermission(e){return this.permissionManager.getPermission(e)}async removePermission(e){return this.permissionManager.removePermission(e)}async removeAllPermissions(){return this.permissionManager.removeAllPermissions()}async getPeerInfo(e){const t=await hL(e.publicKey);return e instanceof XM?new JM(e.id,e.name,e.publicKey,e.version,t):e instanceof qM?new KM(e.id,e.name,e.publicKey,e.version,e.relayServer,t):e instanceof eL?new eL(e.id,e.name,e.publicKey,e.version,t,e.uri):{...e,senderId:t}}async addPeer(e,t=!0){return(await this.transport).addPeer(await this.getPeerInfo(e),t)}async removePeer(e,t=!1){const r=(await this.transport).removePeer(e);return await this.removePermissionsForPeers([e]),t&&await this.sendDisconnectToPeer(e),r}async removeAllPeers(e=!1){const t=await(await this.transport).getPeers(),r=(await this.transport).removeAllPeers();if(await this.removePermissionsForPeers(t),e){const e=t.map((e=>this.sendDisconnectToPeer(e)));await Promise.all(e)}return r}async removePermissionsForPeers(e){const t=await this.permissionManager.getPermissions(),r=e.map((e=>e.senderId)),n=t.filter((e=>r.includes(e.appMetadata.senderId))).map((e=>e.accountIdentifier));await this.permissionManager.removePermissions(n)}async sendAcknowledgeResponse(e,t){const r={id:e.id,type:IM.Acknowledge};await oN.intercept({senderId:await hL(await this.beaconId),request:e,message:r,ownAppMetadata:await this.getOwnAppMetadata(),permissionManager:this.permissionManager,appMetadataManager:this.appMetadataManager,interceptorCallback:async e=>{await this.respondToMessage(e,t)}})}async respondToMessage(e,t){const r=await(new _L).serialize(e);if(t){const e=(await this.getPeers()).find((e=>e.publicKey===t.id));await(await this.transport).send(r,e)}else await(await this.transport).send(r)}async disconnect(e){const t=await this.transport,r=(await t.getPeers()).find((t=>t.senderId===e));r&&await this.removePeer(r)}}function cN(e){const{theme:t}=yn(),r=fP();return(0,n.useMemo)((()=>function(e,t){const r=r=>{var n;return{...t,...r,position:IA(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{const t=r(e),n=XA(t);return GA.notify(n,t)};return n.update=(e,t)=>{GA.update(e,r(t))},n.promise=(e,t)=>{const r=n({...t.loading,status:"loading",duration:null});e.then((e=>n.update(r,{status:"success",duration:5e3,...w(t.success,e)}))).catch((e=>n.update(r,{status:"error",duration:5e3,...w(t.error,e)})))},n.closeAll=GA.closeAll,n.close=GA.close,n.isActive=GA.isActive,n}(t.direction,{...r,...e})),[e,t.direction,r])}var lN={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,x:e,y:t,transition:null!=(o=null==r?void 0:r.exit)?o:hI(uI.exit,i),transitionEnd:null==n?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:null!=(n=null==e?void 0:e.enter)?n:dI(uI.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:i,delay:o})=>{var a;const s={x:t,y:e};return{opacity:0,transition:null!=(a=null==r?void 0:r.exit)?a:hI(uI.exit,o),...i?{...s,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{...s,...null==n?void 0:n.exit}}}}},uN={initial:"initial",animate:"enter",exit:"exit",variants:lN},dN=(0,n.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,reverse:i=!0,className:o,offsetX:a=0,offsetY:s=8,transition:c,transitionEnd:l,delay:u,...d}=e,h=!r||n&&r,f=n||r?"enter":"exit",p={offsetX:a,offsetY:s,reverse:i,transition:c,transitionEnd:l,delay:u};return(0,un.jsx)(iP,{custom:p,children:h&&(0,un.jsx)(CA.div,{ref:t,className:v("chakra-offset-slide",o),custom:p,...uN,animate:f,...d})})}));dN.displayName="SlideFade";var hN={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{scale:t,...null==n?void 0:n.exit}},transition:null!=(o=null==r?void 0:r.exit)?o:hI(uI.exit,i)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:null!=(n=null==t?void 0:t.enter)?n:dI(uI.enter,r),transitionEnd:null==e?void 0:e.enter}}},fN={initial:"exit",animate:"enter",exit:"exit",variants:hN},pN=(0,n.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,reverse:i=!0,initialScale:o=.95,className:a,transition:s,transitionEnd:c,delay:l,...u}=e,d=!r||n&&r,h=n||r?"enter":"exit",f={initialScale:o,reverse:i,transition:s,transitionEnd:c,delay:l};return(0,un.jsx)(iP,{custom:f,children:d&&(0,un.jsx)(CA.div,{ref:t,className:v("chakra-offset-slide",a),...fN,animate:h,custom:f,...u})})}));pN.displayName="ScaleFade";var mN={slideInBottom:{...uN,custom:{offsetY:16,reverse:!0}},slideInRight:{...uN,custom:{offsetX:16,reverse:!0}},slideInTop:{...uN,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...uN,custom:{offsetX:-16,reverse:!0}},scale:{...fN,custom:{initialScale:.95,reverse:!0}},none:{}},gN=ln(CA.section),vN=e=>mN[e||"none"],yN=(0,n.forwardRef)(((e,t)=>{const{preset:r,motionProps:n=vN(r),...i}=e;return(0,un.jsx)(gN,{ref:t,...n,...i})}));function bN(){return bN=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0})).sort(YN)},JN=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),QN="".concat(JN,", [data-focus-guard]"),eD=function(e,t){return LN((e.shadowRoot||e).children).reduce((function(e,r){return e.concat(r.matches(t?QN:JN)?[r]:[],eD(r))}),[])},tD=function(e,t){return e.reduce((function(e,r){var n,i=eD(r,t),o=(n=[]).concat.apply(n,i.map((function(e){return function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?tD([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(o,r.parentNode?LN(r.parentNode.querySelectorAll(JN)).filter((function(e){return e===r})):[])}),[])},rD=function(e,t){return LN(e).filter((function(e){return FN(t,e)})).filter((function(e){return function(e){return!((VN(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},nD=function(e,t){return void 0===t&&(t=new Map),LN(e).filter((function(e){return $N(t,e)}))},iD=function(e,t,r){return XN(rD(tD(e,r),t),!0,r)},oD=function(e,t){return XN(rD(tD(e),t),!1)},aD=function(e,t){return rD(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return LN(t).map((function(e){return tD([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},sD=function(e,t){return e.shadowRoot?sD(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||LN(e.children).some((function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&sD(n,t)}return sD(e,t)}))},cD=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?cD(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(t){return}}((function(){return t.contentWindow.document}))?cD(t.contentWindow.document):t}},lD=function(e){return e.parentNode?lD(e.parentNode):e},uD=function(e){return NN(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(wN);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter((function(e,r){return!t.has(r)}))}(LN(lD(t).querySelectorAll("[".concat(wN,'="').concat(r,'"]:not([').concat(xN,'="disabled"])')))):[t]),e}),[])},dD=function(e,t){return void 0===t&&(t=cD(DN(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&uD(e).some((function(e){return sD(e,t)||function(e,t){return Boolean(LN(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},hD=function(e,t){return qN(e)&&e.name?function(e,t){return t.filter(qN).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},fD=function(e){return e[0]&&e.length>1?hD(e[0],e):e[0]},pD=function(e,t){return e.length>1?e.indexOf(hD(e[t],e)):t},mD="NEW_FOCUS",gD=function(e,t,r,n){var i=e.length,o=e[0],a=e[i-1],s=WN(r);if(!(r&&e.indexOf(r)>=0)){var c=void 0!==r?t.indexOf(r):-1,l=n?t.indexOf(n):c,u=n?e.indexOf(n):-1,d=c-l,h=t.indexOf(o),f=t.indexOf(a),p=function(e){var t=new Set;return e.forEach((function(r){return t.add(hD(r,e))})),e.filter((function(e){return t.has(e)}))}(t),m=(void 0!==r?p.indexOf(r):-1)-(n?p.indexOf(n):c),g=pD(e,0),v=pD(e,i-1);return-1===c||-1===u?mD:!d&&u>=0?u:c<=h&&s&&Math.abs(d)>1?v:c>=f&&s&&Math.abs(d)>1?g:d&&Math.abs(m)>1?u:c<=h?v:c>f?g:d?Math.abs(d)>1?u:(i+u+d)%i:void 0}},vD=function(e,t,r){var n,i=e.map((function(e){return e.node})),o=nD(i.filter((n=r,function(e){var t,r=null===(t=HN(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return o&&o.length?fD(o):fD(nD(t))},yD=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&yD(e.parentNode.host||e.parentNode,t),t},bD=function(e,t){for(var r=yD(e),n=yD(t),i=0;i=0)return o}return!1},wD=function(e,t,r){var n=NN(e),i=NN(t),o=n[0],a=!1;return i.filter(Boolean).forEach((function(e){a=bD(a||e,e)||a,r.filter(Boolean).forEach((function(e){var t=bD(o,e);t&&(a=!a||sD(t,a)?t:bD(t,a))}))})),a},xD=function(e,t){var r=cD(NN(e).length>0?document:DN(e).ownerDocument),n=uD(e).filter(GN),i=wD(r||e,e,n),o=new Map,a=oD(n,o),s=iD(n,o).filter((function(e){var t=e.node;return GN(t)}));if(s[0]||(s=a)[0]){var c=oD([i],o).map((function(e){return e.node})),l=function(e,t){var r=new Map;return t.forEach((function(e){return r.set(e.node,e)})),e.map((function(e){return r.get(e)})).filter(ZN)}(c,s),u=l.map((function(e){return e.node})),d=gD(u,c,r,t);if(d===mD){var h=vD(a,u,function(e,t){return e.reduce((function(e,r){return e.concat(aD(r,t))}),[])}(n,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:l[d]}},_D=0,SD=!1,kD=function(e,t,r){void 0===r&&(r={});var n,i,o=xD(e,t);if(!SD&&o){if(_D>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),SD=!0,void setTimeout((function(){SD=!1}),1);_D++,n=o.node,i=r.focusOptions,"focus"in n&&n.focus(i),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),_D--}};function ED(e){setTimeout(e,1)}var AD=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=cD(e);return!!t&&LN(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return sD(e,t)}))}()},PD=null,TD=null,OD=null,CD=!1,jD=function(){return!0};function RD(e,t,r,n){var i=null,o=e;do{var a=n[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=r)!==t);i&&(i.node.tabIndex=0)}var ID=function(e){return e&&"current"in e?e.current:e},MD=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},LD=function(){var e,t=!1;if(PD){var r=PD,n=r.observed,i=r.persistentFocus,o=r.autoFocus,a=r.shards,s=r.crossFrame,c=r.focusOptions,l=n||OD&&OD.portaledElement,u=document&&document.activeElement;if(l){var d=[l].concat(a.map(ID).filter(Boolean));if(u&&!function(e){return(PD.whiteList||jD)(e)}(u)||(i||(s?Boolean(CD):"meanwhile"===CD)||!AD()||!TD&&o)&&(l&&!(dD(d)||u&&function(e,t){return t.some((function(t){return MD(e,t,t)}))}(u,d)||(e=u,OD&&OD.portaledElement===e))&&(document&&!TD&&u&&!o?(u.blur&&u.blur(),document.body.focus()):(t=kD(d,TD,{focusOptions:c}),OD={})),CD=!1,TD=document&&document.activeElement),document){var h=document&&document.activeElement,f=function(e){var t=uD(e).filter(GN),r=wD(e,e,t),n=new Map,i=iD([r],n,!0),o=iD(t,n).filter((function(e){var t=e.node;return GN(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:WN(t)}}))}(d),p=f.map((function(e){return e.node})).indexOf(h);p>-1&&(f.filter((function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),RD(p,f.length,1,f),RD(p,-1,-1,f))}}}return t},ND=function(e){LD()&&e&&(e.stopPropagation(),e.preventDefault())},DD=function(){return ED(LD)},zD=function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(OD={observerNode:r,portaledElement:t})},BD=function(){CD="just",ED((function(){CD="meanwhile"}))};kN.assignSyncMedium(zD),EN.assignMedium(DD),AN.assignMedium((function(e){return e({moveFocusInside:kD,focusInside:dD})}));const UD=MN((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!PD&&(document.addEventListener("focusin",ND),document.addEventListener("focusout",DD),window.addEventListener("blur",BD));var r=PD,n=r&&t&&t.id===r.id;PD=t,r&&!n&&(r.onDeactivation(),e.filter((function(e){return e.id===r.id})).length||r.returnFocus(!t)),t?(TD=null,n&&r.observed===t.observed||t.onActivation(),LD(),ED(LD)):(document.removeEventListener("focusin",ND),document.removeEventListener("focusout",DD),window.removeEventListener("blur",BD),TD=null)}))((function(){return null}));var FD=n.forwardRef((function(e,t){return n.createElement(CN,bN({sideCar:UD,ref:t},e))})),$D=CN.propTypes||{};$D.sideCar,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r])}($D,["sideCar"]);FD.propTypes={};const HD=FD;function VD(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function qD(e){var t;if(!VD(e))return!1;return e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function KD(e){return VD(e)?e.ownerDocument:document}var WD=e=>e.hasAttribute("tabindex"),GD=e=>WD(e)&&-1===e.tabIndex;function ZD(e){return!(!e.parentElement||!ZD(e.parentElement))||e.hidden}function YD(e){if(!qD(e)||ZD(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||WD(e)}var XD,JD=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join(),QD=e=>e.offsetWidth>0&&e.offsetHeight>0;function ez(e){const t=Array.from(e.querySelectorAll(JD));return t.unshift(e),t.filter((e=>YD(e)&&QD(e)))}var tz=null!=(XD=HD.default)?XD:HD,rz=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:i,restoreFocus:o,children:a,isDisabled:s,autoFocus:c,persistentFocus:l,lockFocusAcrossFrames:u}=e,d=(0,n.useCallback)((()=>{if(null==t?void 0:t.current)t.current.focus();else if(null==i?void 0:i.current){0===ez(i.current).length&&requestAnimationFrame((()=>{var e;null==(e=i.current)||e.focus()}))}}),[t,i]),h=(0,n.useCallback)((()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()}),[r]),f=o&&!r;return(0,un.jsx)(tz,{crossFrame:u,persistentFocus:l,autoFocus:c,disabled:s,onActivation:d,onDeactivation:h,returnFocus:f,children:a})};rz.displayName="FocusLock";function nz(e){const{autoFocus:t,trapFocus:r,dialogRef:i,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:c,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:h}=rI(),[f,p]=vb();(0,n.useEffect)((()=>{!f&&p&&setTimeout(p)}),[f,p]);const m=HR(i,h);return(0,un.jsx)(rz,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:c,restoreFocus:l,contentRef:i,lockFocusAcrossFrames:d,children:(0,un.jsx)(pM,{removeScrollBar:!u,allowPinchZoom:s,enabled:1===m&&a,forwardProps:!0,children:e.children})})}var iz=g(((e,t)=>{const{className:r,children:n,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:c}=rI(),l=s(a,t),u=c(i),d=v("chakra-modal__content",r),h=eI(),f={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:m}=rI();return(0,un.jsx)(nz,{children:(0,un.jsx)(ln.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:p,children:(0,un.jsx)(yN,{preset:m,motionProps:o,className:d,...l,__css:f,children:n})})})}));iz.displayName="ModalContent";var oz=g(((e,t)=>{const{className:r,...i}=e,{headerId:o,setHeaderMounted:a}=rI();(0,n.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=v("chakra-modal__header",r),c={flex:0,...eI().header};return(0,un.jsx)(ln.header,{ref:t,className:s,id:o,...i,__css:c})}));function az(e){const t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}oz.displayName="ModalHeader";var sz=g((function(e,t){const r=_n("Text",e),{className:n,align:i,decoration:o,casing:a,...s}=ht(e),c=az({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,un.jsx)(ln.p,{ref:t,className:v("chakra-text",e.className),...c,...s,__css:r})}));sz.displayName="Text";var cz=g(((e,t)=>{const{onClick:r,className:n,...i}=e,{onClose:o}=rI(),a=v("chakra-modal__close-btn",n),s=eI();return(0,un.jsx)(WA,{ref:t,__css:s.closeButton,className:a,onClick:k(r,(e=>{e.stopPropagation(),o()})),...i})}));cz.displayName="ModalCloseButton";var lz=g(((e,t)=>{const{className:r,...i}=e,{bodyId:o,setBodyMounted:a}=rI();(0,n.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=v("chakra-modal__body",r),c=eI();return(0,un.jsx)(ln.div,{ref:t,className:s,id:o,...i,__css:c.body})}));lz.displayName="ModalBody";Object.freeze(["base","sm","md","lg","xl","2xl"]);function uz(e,t){return Array.isArray(e)?e.map((e=>null===e?null:t(e))):y(e)?Object.keys(e).reduce(((r,n)=>(r[n]=t(e[n]),r)),{}):null!=e?t(e):null}var dz=g((function(e,t){const{ratio:r=4/3,children:i,className:o,...a}=e,s=n.Children.only(i),c=v("chakra-aspect-ratio",o);return(0,un.jsx)(ln.div,{ref:t,position:"relative",className:c,_before:{height:0,content:'""',display:"block",paddingBottom:uz(r,(e=>1/e*100+"%"))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...a,children:s})}));dz.displayName="AspectRatio";var hz=Object.defineProperty,fz=(e,t,r)=>(((e,t,r)=>{t in e?hz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r);function pz(e){return e.sort(((e,t)=>{const r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function mz(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function gz(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var vz="undefined"!==typeof window?n.useLayoutEffect:n.useEffect,yz=e=>e,bz=class{constructor(){fz(this,"descendants",new Map),fz(this,"register",(e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),fz(this,"unregister",(e=>{this.descendants.delete(e);const t=pz(Array.from(this.descendants.keys()));this.assignIndex(t)})),fz(this,"destroy",(()=>{this.descendants.clear()})),fz(this,"assignIndex",(e=>{this.descendants.forEach((t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()}))})),fz(this,"count",(()=>this.descendants.size)),fz(this,"enabledCount",(()=>this.enabledValues().length)),fz(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),fz(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),fz(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),fz(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),fz(this,"first",(()=>this.item(0))),fz(this,"firstEnabled",(()=>this.enabledItem(0))),fz(this,"last",(()=>this.item(this.descendants.size-1))),fz(this,"lastEnabled",(()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)})),fz(this,"indexOf",(e=>{var t,r;return e&&null!=(r=null==(t=this.descendants.get(e))?void 0:t.index)?r:-1})),fz(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),fz(this,"next",((e,t=!0)=>{const r=mz(e,this.count(),t);return this.item(r)})),fz(this,"nextEnabled",((e,t=!0)=>{const r=this.item(e);if(!r)return;const n=mz(this.enabledIndexOf(r.node),this.enabledCount(),t);return this.enabledItem(n)})),fz(this,"prev",((e,t=!0)=>{const r=gz(e,this.count()-1,t);return this.item(r)})),fz(this,"prevEnabled",((e,t=!0)=>{const r=this.item(e);if(!r)return;const n=gz(this.enabledIndexOf(r.node),this.enabledCount()-1,t);return this.enabledItem(n)})),fz(this,"registerNode",((e,t)=>{if(!e||this.descendants.has(e))return;const r=pz(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const n={node:e,index:-1,...t};this.descendants.set(e,n),this.assignIndex(r)}))}};var[wz,xz]=En({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function _z(){return[yz(wz),()=>yz(xz()),()=>function(){const e=(0,n.useRef)(new bz);return vz((()=>()=>e.current.destroy())),e.current}(),e=>function(e){const t=xz(),[r,i]=(0,n.useState)(-1),o=(0,n.useRef)(null);vz((()=>()=>{o.current&&t.unregister(o.current)}),[]),vz((()=>{if(!o.current)return;const e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||i(e)}));const a=yz(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:Ln(a,o)}}(e)]}var[Sz,kz]=En({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[Ez,Az]=En({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[Pz,Tz,Oz,Cz]=_z();function jz(e){const{value:t,defaultValue:r,onChange:i,shouldUpdate:o=((e,t)=>e!==t)}=e,a=pb(i),s=pb(o),[c,l]=(0,n.useState)(r),u=void 0!==t,d=u?t:c,h=pb((e=>{const t="function"===typeof e?e(d):e;s(d,t)&&(u||l(t),a(t))}),[u,a,d,s]);return[d,h]}function Rz(e){const{onChange:t,defaultIndex:r,index:i,allowMultiple:o,allowToggle:a,...s}=e;!function(e){const t=e.index||e.defaultIndex,r=null!=t&&!Array.isArray(t)&&e.allowMultiple;b({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}(e),function(e){b({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);const c=Oz(),[l,u]=(0,n.useState)(-1);(0,n.useEffect)((()=>()=>{u(-1)}),[]);const[d,h]=jz({value:i,defaultValue:()=>o?null!=r?r:[]:null!=r?r:-1,onChange:t});return{index:d,setIndex:h,htmlProps:s,getAccordionItemProps:e=>{let t=!1;null!==e&&(t=Array.isArray(d)?d.includes(e):d===e);return{isOpen:t,onChange:t=>{if(null!==e)if(o&&Array.isArray(d)){const r=t?d.concat(e):d.filter((t=>t!==e));h(r)}else t?h(e):a&&h(-1)}}},focusedIndex:l,setFocusedIndex:u,descendants:c}}var[Iz,Mz]=En({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function Lz(e){const{isDisabled:t,isFocusable:r,id:i,...o}=e,{getAccordionItemProps:a,setFocusedIndex:s}=Mz(),c=(0,n.useRef)(null),l=(0,n.useId)(),u=null!=i?i:l,d=`accordion-button-${u}`,h=`accordion-panel-${u}`;!function(e){b({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n "})}(e);const{register:f,index:p,descendants:m}=Cz({disabled:t&&!r}),{isOpen:g,onChange:v}=a(-1===p?null:p);!function(e){b({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:g,isDisabled:t});const y=(0,n.useCallback)((()=>{null==v||v(!g),s(p)}),[p,s,g,v]),w=(0,n.useCallback)((e=>{const t={ArrowDown:()=>{const e=m.nextEnabled(p);null==e||e.node.focus()},ArrowUp:()=>{const e=m.prevEnabled(p);null==e||e.node.focus()},Home:()=>{const e=m.firstEnabled();null==e||e.node.focus()},End:()=>{const e=m.lastEnabled();null==e||e.node.focus()}},r=t[e.key];r&&(e.preventDefault(),r(e))}),[m,p]),x=(0,n.useCallback)((()=>{s(p)}),[s,p]),_=(0,n.useCallback)((function(e={},r=null){return{...e,type:"button",ref:Ln(f,c,r),id:d,disabled:!!t,"aria-expanded":!!g,"aria-controls":h,onClick:k(e.onClick,y),onFocus:k(e.onFocus,x),onKeyDown:k(e.onKeyDown,w)}}),[d,t,g,y,x,w,h,f]),S=(0,n.useCallback)((function(e={},t=null){return{...e,ref:t,role:"region",id:h,"aria-labelledby":d,hidden:!g}}),[d,g,h]);return{isOpen:g,isDisabled:t,isFocusable:r,onOpen:()=>{null==v||v(!0)},onClose:()=>{null==v||v(!1)},getButtonProps:_,getPanelProps:S,htmlProps:o}}var Nz=g((function({children:e,reduceMotion:t,...r},i){const o=Sn("Accordion",r),a=ht(r),{htmlProps:s,descendants:c,...l}=Rz(a),u=(0,n.useMemo)((()=>({...l,reduceMotion:!!t})),[l,t]);return(0,un.jsx)(Pz,{value:c,children:(0,un.jsx)(Iz,{value:u,children:(0,un.jsx)(Sz,{value:o,children:(0,un.jsx)(ln.div,{ref:i,...s,className:v("chakra-accordion",r.className),__css:o.root,children:e})})})})}));Nz.displayName="Accordion";var Dz=g((function(e,t){const{children:r,className:i}=e,{htmlProps:o,...a}=Lz(e),s={...kz().container,overflowAnchor:"none"},c=(0,n.useMemo)((()=>a),[a]);return(0,un.jsx)(Ez,{value:c,children:(0,un.jsx)(ln.div,{ref:t,...o,className:v("chakra-accordion__item",i),__css:s,children:"function"===typeof r?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})}));Dz.displayName="AccordionItem";var zz=g((function(e,t){const{getButtonProps:r}=Az(),n=r(e,t),i={display:"flex",alignItems:"center",width:"100%",outline:0,...kz().button};return(0,un.jsx)(ln.button,{...n,className:v("chakra-accordion__button",e.className),__css:i})}));function Bz(e){const{isOpen:t,isDisabled:r}=Az(),{reduceMotion:n}=Mz(),i=v("chakra-accordion__icon",e.className),o={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...kz().icon};return(0,un.jsx)(LA,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:o,...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}zz.displayName="AccordionButton",Bz.displayName="AccordionIcon";var Uz=e=>null!=e&&parseInt(e.toString(),10)>0,Fz={exit:{height:{duration:.2,ease:iI.ease},opacity:{duration:.3,ease:iI.ease}},enter:{height:{duration:.3,ease:iI.ease},opacity:{duration:.4,ease:iI.ease}}},$z={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{...e&&{opacity:Uz(t)?1:0},height:t,transitionEnd:null==n?void 0:n.exit,transition:null!=(o=null==r?void 0:r.exit)?o:hI(Fz.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{...e&&{opacity:1},height:t,transitionEnd:null==n?void 0:n.enter,transition:null!=(o=null==r?void 0:r.enter)?o:dI(Fz.enter,i)}}},Hz=(0,n.forwardRef)(((e,t)=>{const{in:r,unmountOnExit:i,animateOpacity:o=!0,startingHeight:a=0,endingHeight:s="auto",style:c,className:l,transition:u,transitionEnd:d,...h}=e,[f,p]=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=setTimeout((()=>{p(!0)}));return()=>clearTimeout(e)}),[]),b({condition:Number(a)>0&&!!i,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(a.toString())>0,g={startingHeight:a,endingHeight:s,animateOpacity:o,transition:f?u:{enter:{duration:0}},transitionEnd:{enter:null==d?void 0:d.enter,exit:i?null==d?void 0:d.exit:{...null==d?void 0:d.exit,display:m?"block":"none"}}},y=!i||r,w=r||i?"enter":"exit";return(0,un.jsx)(iP,{initial:!1,custom:g,children:y&&(0,un.jsx)(CA.div,{ref:t,...h,className:v("chakra-collapse",l),style:{overflow:"hidden",display:"block",...c},custom:g,variants:$z,initial:!!i&&"exit",animate:w,exit:"exit"})})}));Hz.displayName="Collapse";var Vz=g((function(e,t){const{className:r,motionProps:n,...i}=e,{reduceMotion:o}=Mz(),{getPanelProps:a,isOpen:s}=Az(),c=a(i,t),l=v("chakra-accordion__panel",r),u=kz();o||delete c.hidden;const d=(0,un.jsx)(ln.div,{...c,__css:u.panel,className:l});return o?d:(0,un.jsx)(Hz,{in:s,...n,children:d})}));Vz.displayName="AccordionPanel";var[qz,Kz]=En({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[Wz,Gz]=En({strict:!1,name:"FormControlContext"});var Zz=g((function(e,t){const r=Sn("Form",e),i=ht(e),{getRootProps:o,htmlProps:a,...s}=function(e){const{id:t,isRequired:r,isInvalid:i,isDisabled:o,isReadOnly:a,...s}=e,c=(0,n.useId)(),l=t||`field-${c}`,u=`${l}-label`,d=`${l}-feedback`,h=`${l}-helptext`,[f,p]=(0,n.useState)(!1),[m,g]=(0,n.useState)(!1),[v,y]=(0,n.useState)(!1),b=(0,n.useCallback)(((e={},t=null)=>({id:h,...e,ref:Ln(t,(e=>{e&&g(!0)}))})),[h]),w=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-focus":_(v),"data-disabled":_(o),"data-invalid":_(i),"data-readonly":_(a),id:void 0!==e.id?e.id:u,htmlFor:void 0!==e.htmlFor?e.htmlFor:l})),[l,o,v,i,a,u]),x=(0,n.useCallback)(((e={},t=null)=>({id:d,...e,ref:Ln(t,(e=>{e&&p(!0)})),"aria-live":"polite"})),[d]),S=(0,n.useCallback)(((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":_(v),"data-disabled":_(o),"data-invalid":_(i),"data-readonly":_(a)})),[s,o,v,i,a]),k=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})),[]);return{isRequired:!!r,isInvalid:!!i,isReadOnly:!!a,isDisabled:!!o,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:g,id:l,labelId:u,feedbackId:d,helpTextId:h,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:x,getRootProps:S,getLabelProps:w,getRequiredIndicatorProps:k}}(i),c=v("chakra-form-control",e.className);return(0,un.jsx)(Wz,{value:s,children:(0,un.jsx)(qz,{value:r,children:(0,un.jsx)(ln.div,{...o({},t),className:c,__css:r.container})})})}));Zz.displayName="FormControl";var Yz=g((function(e,t){const r=Gz(),n=Kz(),i=v("chakra-form__helper-text",e.className);return(0,un.jsx)(ln.div,{...null==r?void 0:r.getHelpTextProps(e,t),__css:n.helperText,className:i})}));Yz.displayName="FormHelperText";var[Xz,Jz]=En({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),Qz=g(((e,t)=>{const r=Sn("FormError",e),n=ht(e),i=Gz();return(null==i?void 0:i.isInvalid)?(0,un.jsx)(Xz,{value:r,children:(0,un.jsx)(ln.div,{...null==i?void 0:i.getErrorMessageProps(n,t),className:v("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null}));Qz.displayName="FormErrorMessage";var eB=g(((e,t)=>{const r=Jz(),n=Gz();if(!(null==n?void 0:n.isInvalid))return null;const i=v("chakra-form__error-icon",e.className);return(0,un.jsx)(LA,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:i,children:(0,un.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}));eB.displayName="FormErrorIcon";var tB=g(((e,t)=>{const{className:r,...n}=e,i=v("chakra-modal__footer",r),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...eI().footer};return(0,un.jsx)(ln.footer,{ref:t,...n,__css:o,className:i})}));tB.displayName="ModalFooter";var rB=e=>"checkbox"===e.type,nB=e=>e instanceof Date,iB=e=>null==e;const oB=e=>"object"===typeof e;var aB=e=>!iB(e)&&!Array.isArray(e)&&oB(e)&&!nB(e),sB=e=>aB(e)&&e.target?rB(e.target)?e.target.checked:e.target.value:e,cB=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),lB=e=>{const t=e.constructor&&e.constructor.prototype;return aB(t)&&t.hasOwnProperty("isPrototypeOf")},uB="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function dB(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(uB&&(e instanceof Blob||e instanceof FileList)||!r&&!aB(e))return e;if(t=r?[]:{},r||lB(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=dB(e[r]));else t=e}return t}var hB=e=>Array.isArray(e)?e.filter(Boolean):[],fB=e=>void 0===e,pB=(e,t,r)=>{if(!t||!aB(e))return r;const n=hB(t.split(/[,[\].]+?/)).reduce(((e,t)=>iB(e)?e:e[t]),e);return fB(n)||n===e?fB(e[t])?r:e[t]:n},mB=e=>"boolean"===typeof e;const gB={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},vB={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},yB="max",bB="min",wB="maxLength",xB="minLength",_B="pattern",SB="required",kB="validate",EB=n.createContext(null),AB=()=>n.useContext(EB),PB=e=>{const{children:t,...r}=e;return n.createElement(EB.Provider,{value:r},t)};var TB=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==vB.all&&(t._proxyFormState[i]=!n||vB.all),r&&(r[i]=!0),e[i]}});return i},OB=e=>aB(e)&&!Object.keys(e).length,CB=(e,t,r,n)=>{r(e);const{name:i,...o}=e;return OB(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||vB.all)))},jB=e=>Array.isArray(e)?e:[e];function RB(e){const t=n.useRef(e);t.current=e,n.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}var IB=e=>"string"===typeof e,MB=(e,t,r,n,i)=>IB(e)?(n&&t.watch.add(e),pB(r,e,i)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),pB(r,e)))):(n&&(t.watchAll=!0),r);var LB=e=>/^\w*$/.test(e),NB=e=>hB(e.replace(/["|']|\]/g,"").split(/\.|\[/));function DB(e,t,r){let n=-1;const i=LB(t)?[t]:NB(t),o=i.length,a=o-1;for(;++nt?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{};const BB=(e,t,r)=>{for(const n of r||Object.keys(e)){const r=pB(e,n);if(r){const{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else aB(n)&&BB(n,t)}}};var UB=()=>{const e="undefined"===typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},FB=(e,t,r={})=>r.shouldFocus||fB(r.shouldFocus)?r.focusName||`${e}.${fB(r.focusIndex)?t:r.focusIndex}.`:"",$B=e=>({isOnSubmit:!e||e===vB.onSubmit,isOnBlur:e===vB.onBlur,isOnChange:e===vB.onChange,isOnAll:e===vB.all,isOnTouch:e===vB.onTouched}),HB=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),VB=(e,t,r)=>{const n=hB(pB(e,r));return DB(n,"root",t[r]),DB(e,r,n),e},qB=e=>"file"===e.type,KB=e=>"function"===typeof e,WB=e=>{if(!uB)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},GB=e=>IB(e),ZB=e=>"radio"===e.type,YB=e=>e instanceof RegExp;const XB={value:!1,isValid:!1},JB={value:!0,isValid:!0};var QB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!fB(e[0].attributes.value)?fB(e[0].value)||""===e[0].value?JB:{value:e[0].value,isValid:!0}:JB:XB}return XB};const eU={isValid:!1,value:null};var tU=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),eU):eU;function rU(e,t,r="validate"){if(GB(e)||Array.isArray(e)&&e.every(GB)||mB(e)&&!e)return{type:r,message:GB(e)?e:"",ref:t}}var nU=e=>aB(e)&&!YB(e)?e:{value:e,message:""},iU=async(e,t,r,n,i)=>{const{ref:o,refs:a,required:s,maxLength:c,minLength:l,min:u,max:d,pattern:h,validate:f,name:p,valueAsNumber:m,mount:g,disabled:v}=e._f,y=pB(t,p);if(!g||v)return{};const b=a?a[0]:o,w=e=>{n&&b.reportValidity&&(b.setCustomValidity(mB(e)?"":e||""),b.reportValidity())},x={},_=ZB(o),S=rB(o),k=_||S,E=(m||qB(o))&&fB(o.value)&&fB(y)||WB(o)&&""===o.value||""===y||Array.isArray(y)&&!y.length,A=zB.bind(null,p,r,x),P=(e,t,r,n=wB,i=xB)=>{const a=e?t:r;x[p]={type:e?n:i,message:a,ref:o,...A(e?n:i,a)}};if(i?!Array.isArray(y)||!y.length:s&&(!k&&(E||iB(y))||mB(y)&&!y||S&&!QB(a).isValid||_&&!tU(a).isValid)){const{value:e,message:t}=GB(s)?{value:!!s,message:s}:nU(s);if(e&&(x[p]={type:SB,message:t,ref:b,...A(SB,t)},!r))return w(t),x}if(!E&&(!iB(u)||!iB(d))){let e,t;const n=nU(d),i=nU(u);if(iB(y)||isNaN(y)){const r=o.valueAsDate||new Date(y),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,c="week"==o.type;IB(n.value)&&y&&(e=s?a(y)>a(n.value):c?y>n.value:r>new Date(n.value)),IB(i.value)&&y&&(t=s?a(y)n.value),iB(i.value)||(t=r+e.value,i=!iB(t.value)&&y.length<+t.value;if((n||i)&&(P(n,e.message,t.message),!r))return w(x[p].message),x}if(h&&!E&&IB(y)){const{value:e,message:t}=nU(h);if(YB(e)&&!y.match(e)&&(x[p]={type:_B,message:t,ref:o,...A(_B,t)},!r))return w(t),x}if(f)if(KB(f)){const e=rU(await f(y,t),b);if(e&&(x[p]={...e,...A(kB,e.message)},!r))return w(e.message),x}else if(aB(f)){let e={};for(const n in f){if(!OB(e)&&!r)break;const i=rU(await f[n](y,t),b,n);i&&(e={...i,...A(n,i.message)},w(i.message),r&&(x[p]=e))}if(!OB(e)&&(x[p]={ref:b,...e},!r))return x}return w(!0),x};function oU(e,t){return[...e,...jB(t)]}var aU=e=>Array.isArray(e)?e.map((()=>{})):void 0;function sU(e,t,r){return[...e.slice(0,t),...jB(r),...e.slice(t)]}var cU=(e,t,r)=>Array.isArray(e)?(fB(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[];function lU(e,t){return[...jB(t),...jB(e)]}var uU=(e,t)=>fB(t)?[]:function(e,t){let r=0;const n=[...e];for(const i of t)n.splice(i-r,1),r++;return hB(n).length?n:[]}(e,jB(t).sort(((e,t)=>e-t))),dU=(e,t,r)=>{e[t]=[e[r],e[r]=e[t]][0]};function hU(e,t){const r=Array.isArray(t)?t:LB(t)?[t]:NB(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function pU(){let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var mU=e=>iB(e)||!oB(e);function gU(e,t){if(mU(e)||mU(t))return e===t;if(nB(e)&&nB(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const r=e[i];if(!n.includes(i))return!1;if("ref"!==i){const e=t[i];if(nB(r)&&nB(e)||aB(r)&&aB(e)||Array.isArray(r)&&Array.isArray(e)?!gU(r,e):r!==e)return!1}}return!0}var vU=e=>"select-multiple"===e.type,yU=e=>ZB(e)||rB(e),bU=e=>WB(e)&&e.isConnected,wU=e=>{for(const t in e)if(KB(e[t]))return!0;return!1};function xU(e,t={}){const r=Array.isArray(e);if(aB(e)||r)for(const n in e)Array.isArray(e[n])||aB(e[n])&&!wU(e[n])?(t[n]=Array.isArray(e[n])?[]:{},xU(e[n],t[n])):iB(e[n])||(t[n]=!0);return t}function _U(e,t,r){const n=Array.isArray(e);if(aB(e)||n)for(const i in e)Array.isArray(e[i])||aB(e[i])&&!wU(e[i])?fB(t)||mU(r[i])?r[i]=Array.isArray(e[i])?xU(e[i],[]):{...xU(e[i])}:_U(e[i],iB(t)?{}:t[i],r[i]):r[i]=!gU(e[i],t[i]);return r}var SU=(e,t)=>_U(e,t,xU(t)),kU=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>fB(e)?e:t?""===e?NaN:e?+e:e:r&&IB(e)?new Date(e):n?n(e):e;function EU(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return qB(t)?t.files:ZB(t)?tU(e.refs).value:vU(t)?[...t.selectedOptions].map((({value:e})=>e)):rB(t)?QB(e.refs).value:kU(fB(t.value)?e.ref.value:t.value,e)}var AU=(e,t,r,n)=>{const i={};for(const o of e){const e=pB(t,o);e&&DB(i,o,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},PU=e=>fB(e)?e:YB(e)?e.source:aB(e)?YB(e.value)?e.value.source:e.value:e,TU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function OU(e,t,r){const n=pB(e,r);if(n||LB(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const n=i.join("."),o=pB(t,n),a=pB(e,n);if(o&&!Array.isArray(o)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var CU=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:!(r?n.isOnChange:i.isOnChange)||e),jU=(e,t)=>!hB(pB(e,t)).length&&hU(e,t);const RU={mode:vB.onSubmit,reValidateMode:vB.onChange,shouldFocusError:!0};function IU(e={},t){let r,n={...RU,...e},i={submitCount:0,isDirty:!1,isLoading:KB(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=(aB(n.defaultValues)||aB(n.values))&&dB(n.defaultValues||n.values)||{},s=n.shouldUnregister?{}:dB(a),c={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:pU(),array:pU(),state:pU()},f=e.resetOptions&&e.resetOptions.keepDirtyValues,p=$B(n.mode),m=$B(n.reValidateMode),g=n.criteriaMode===vB.all,v=async e=>{if(d.isValid||e){const e=n.resolver?OB((await _()).errors):await S(o,!0);e!==i.isValid&&h.state.next({isValid:e})}},y=e=>d.isValidating&&h.state.next({isValidating:e}),b=(e,t,r,n)=>{const i=pB(o,e);if(i){const o=pB(s,e,fB(r)?pB(a,e):r);fB(o)||n&&n.defaultChecked||t?DB(s,e,t?o:EU(i._f)):A(e,o),c.mount&&v()}},w=(e,t,r,n,o)=>{let s=!1,c=!1;const l={name:e};if(!r||n){d.isDirty&&(c=i.isDirty,i.isDirty=l.isDirty=k(),s=c!==l.isDirty);const r=gU(pB(a,e),t);c=pB(i.dirtyFields,e),r?hU(i.dirtyFields,e):DB(i.dirtyFields,e,!0),l.dirtyFields=i.dirtyFields,s=s||d.dirtyFields&&c!==!r}if(r){const t=pB(i.touchedFields,e);t||(DB(i.touchedFields,e,r),l.touchedFields=i.touchedFields,s=s||d.touchedFields&&t!==r)}return s&&o&&h.state.next(l),s?l:{}},x=(t,n,o,a)=>{const s=pB(i.errors,t),c=d.isValid&&mB(n)&&i.isValid!==n;var l;if(e.delayError&&o?(l=()=>((e,t)=>{DB(i.errors,e,t),h.state.next({errors:i.errors})})(t,o),r=e=>{clearTimeout(u),u=setTimeout(l,e)},r(e.delayError)):(clearTimeout(u),r=null,o?DB(i.errors,t,o):hU(i.errors,t)),(o?!gU(s,o):s)||!OB(a)||c){const e={...a,...c&&mB(n)?{isValid:n}:{},errors:i.errors,name:t};i={...i,...e},h.state.next(e)}y(!1)},_=async e=>n.resolver(s,n.context,AU(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),S=async(e,t,r={valid:!0})=>{for(const o in e){const a=e[o];if(a){const{_f:e,...o}=a;if(e){const o=l.array.has(e.name),c=await iU(a,s,g,n.shouldUseNativeValidation&&!t,o);if(c[e.name]&&(r.valid=!1,t))break;!t&&(pB(c,e.name)?o?VB(i.errors,c,e.name):DB(i.errors,e.name,c[e.name]):hU(i.errors,e.name))}o&&await S(o,t,r)}}return r.valid},k=(e,t)=>(e&&t&&DB(s,e,t),!gU(j(),a)),E=(e,t,r)=>MB(e,l,{...c.mount?s:fB(t)?a:IB(e)?{[e]:t}:t},r,t),A=(e,t,r={})=>{const n=pB(o,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&DB(s,e,kU(t,r)),i=WB(r.ref)&&iB(t)?"":t,vU(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?rB(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):qB(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||h.values.next({name:e,values:{...s}})))}(r.shouldDirty||r.shouldTouch)&&w(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&C(e)},P=(e,t,r)=>{for(const n in t){const i=t[n],a=`${e}.${n}`,s=pB(o,a);!l.array.has(e)&&mU(i)&&(!s||s._f)||nB(i)?A(a,i,r):P(a,i,r)}},T=(e,r,n={})=>{const u=pB(o,e),f=l.array.has(e),p=dB(r);DB(s,e,p),f?(h.array.next({name:e,values:{...s}}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&h.state.next({name:e,dirtyFields:SU(a,s),isDirty:k(e,p)})):!u||u._f||iB(p)?A(e,p,n):P(e,p,n),HB(e,l)&&h.state.next({...i}),h.values.next({name:e,values:{...s}}),!c.mount&&t()},O=async e=>{const t=e.target;let a=t.name,c=!0;const u=pB(o,a);if(u){let f,b;const k=t.type?EU(u._f):sB(e),E=e.type===gB.BLUR||e.type===gB.FOCUS_OUT,A=!TU(u._f)&&!n.resolver&&!pB(i.errors,a)&&!u._f.deps||CU(E,pB(i.touchedFields,a),i.isSubmitted,m,p),P=HB(a,l,E);DB(s,a,k),E?(u._f.onBlur&&u._f.onBlur(e),r&&r(0)):u._f.onChange&&u._f.onChange(e);const T=w(a,k,E,!1),O=!OB(T)||P;if(!E&&h.values.next({name:a,type:e.type,values:{...s}}),A)return d.isValid&&v(),O&&h.state.next({name:a,...P?{}:T});if(!E&&P&&h.state.next({...i}),y(!0),n.resolver){const{errors:e}=await _([a]),t=OU(i.errors,o,a),r=OU(e,o,t.name||a);f=r.error,a=r.name,b=OB(e)}else f=(await iU(u,s,g,n.shouldUseNativeValidation))[a],c=Number.isNaN(k)||k===pB(s,a,k),c&&(f?b=!1:d.isValid&&(b=await S(o,!0)));c&&(u._f.deps&&C(u._f.deps),x(a,b,f,T))}},C=async(e,t={})=>{let r,a;const s=jB(e);if(y(!0),n.resolver){const t=await(async e=>{const{errors:t}=await _(e);if(e)for(const r of e){const e=pB(t,r);e?DB(i.errors,r,e):hU(i.errors,r)}else i.errors=t;return t})(fB(e)?e:s);r=OB(t),a=e?!s.some((e=>pB(t,e))):r}else e?(a=(await Promise.all(s.map((async e=>{const t=pB(o,e);return await S(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||i.isValid)&&v()):a=r=await S(o);return h.state.next({...!IB(e)||d.isValid&&r!==i.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:i.errors,isValidating:!1}),t.shouldFocus&&!a&&BB(o,(e=>e&&pB(i.errors,e)),e?s:l.mount),a},j=e=>{const t={...a,...c.mount?s:{}};return fB(e)?t:IB(e)?pB(t,e):e.map((e=>pB(t,e)))},R=(e,t)=>({invalid:!!pB((t||i).errors,e),isDirty:!!pB((t||i).dirtyFields,e),isTouched:!!pB((t||i).touchedFields,e),error:pB((t||i).errors,e)}),I=(e,t,r)=>{const n=(pB(o,e,{_f:{}})._f||{}).ref;DB(i.errors,e,{...t,ref:n}),h.state.next({name:e,errors:i.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},M=(e,t={})=>{for(const r of e?jB(e):l.mount)l.mount.delete(r),l.array.delete(r),t.keepValue||(hU(o,r),hU(s,r)),!t.keepError&&hU(i.errors,r),!t.keepDirty&&hU(i.dirtyFields,r),!t.keepTouched&&hU(i.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&hU(a,r);h.values.next({values:{...s}}),h.state.next({...i,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&v()},L=({disabled:e,name:t,field:r,fields:n})=>{if(mB(e)){const i=e?void 0:pB(s,t,EU(r?r._f:pB(n,t)._f));DB(s,t,i),w(t,i,!1,!1,!0)}},N=(e,t={})=>{let r=pB(o,e);const i=mB(t.disabled);return DB(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:t.disabled,name:e}):b(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:PU(t.min),max:PU(t.max),minLength:PU(t.minLength),maxLength:PU(t.maxLength),pattern:PU(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:i=>{if(i){N(e,t),r=pB(o,e);const n=fB(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=yU(n),c=r._f.refs||[];if(s?c.find((e=>e===n)):n===r._f.ref)return;DB(o,e,{_f:{...r._f,...s?{refs:[...c.filter(bU),n,...Array.isArray(pB(a,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),b(e,!1,void 0,n)}else r=pB(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!cB(l.array,e)||!c.action)&&l.unMount.add(e)}}},D=()=>n.shouldFocusError&&BB(o,(e=>e&&pB(i.errors,e)),l.mount),z=(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let a=dB(s);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await _();i.errors=e,a=t}else await S(o);hU(i.errors,"root"),OB(i.errors)?(h.state.next({errors:{}}),await e(a,r)):(t&&await t({...i.errors},r),D(),setTimeout(D)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:OB(i.errors),submitCount:i.submitCount+1,errors:i.errors})},B=(r,n={})=>{const u=r?dB(r):a,p=dB(u),m=r&&!OB(r)?p:a;if(n.keepDefaultValues||(a=u),!n.keepValues){if(n.keepDirtyValues||f)for(const e of l.mount)pB(i.dirtyFields,e)?DB(m,e,pB(s,e)):T(e,pB(m,e));else{if(uB&&fB(r))for(const e of l.mount){const t=pB(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(WB(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}s=e.shouldUnregister?n.keepDefaultValues?dB(a):{}:dB(m),h.array.next({values:{...m}}),h.values.next({values:{...m}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&t(),c.mount=!d.isValid||!!n.keepIsValid,c.watch=!!e.shouldUnregister,h.state.next({submitCount:n.keepSubmitCount?i.submitCount:0,isDirty:n.keepDirty?i.isDirty:!(!n.keepDefaultValues||gU(r,a)),isSubmitted:!!n.keepIsSubmitted&&i.isSubmitted,dirtyFields:n.keepDirtyValues?i.dirtyFields:n.keepDefaultValues&&r?SU(a,r):{},touchedFields:n.keepTouched?i.touchedFields:{},errors:n.keepErrors?i.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&i.isSubmitSuccessful,isSubmitting:!1})},U=(e,t)=>B(KB(e)?e(s):e,t);return{control:{register:N,unregister:M,getFieldState:R,handleSubmit:z,setError:I,_executeSchema:_,_getWatch:E,_getDirty:k,_updateValid:v,_removeUnmounted:()=>{for(const e of l.unMount){const t=pB(o,e);t&&(t._f.refs?t._f.refs.every((e=>!bU(e))):!bU(t._f.ref))&&M(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],r,n,l=!0,u=!0)=>{if(n&&r){if(c.action=!0,u&&Array.isArray(pB(o,e))){const t=r(pB(o,e),n.argA,n.argB);l&&DB(o,e,t)}if(u&&Array.isArray(pB(i.errors,e))){const t=r(pB(i.errors,e),n.argA,n.argB);l&&DB(i.errors,e,t),jU(i.errors,e)}if(d.touchedFields&&u&&Array.isArray(pB(i.touchedFields,e))){const t=r(pB(i.touchedFields,e),n.argA,n.argB);l&&DB(i.touchedFields,e,t)}d.dirtyFields&&(i.dirtyFields=SU(a,s)),h.state.next({name:e,isDirty:k(e,t),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else DB(s,e,t)},_updateDisabledField:L,_getFieldArray:t=>hB(pB(c.mount?s:a,t,e.shouldUnregister?pB(a,t,[]):[])),_reset:B,_resetDefaultValues:()=>KB(n.defaultValues)&&n.defaultValues().then((e=>{U(e,n.resetOptions),h.state.next({isLoading:!1})})),_updateFormState:e=>{i={...i,...e}},_subjects:h,_proxyFormState:d,get _fields(){return o},get _formValues(){return s},get _state(){return c},set _state(e){c=e},get _defaultValues(){return a},get _names(){return l},set _names(e){l=e},get _formState(){return i},set _formState(e){i=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:C,register:N,handleSubmit:z,watch:(e,t)=>KB(e)?h.values.subscribe({next:r=>e(E(void 0,t),r)}):E(e,t,!0),setValue:T,getValues:j,reset:U,resetField:(e,t={})=>{pB(o,e)&&(fB(t.defaultValue)?T(e,pB(a,e)):(T(e,t.defaultValue),DB(a,e,t.defaultValue)),t.keepTouched||hU(i.touchedFields,e),t.keepDirty||(hU(i.dirtyFields,e),i.isDirty=t.defaultValue?k(e,pB(a,e)):k()),t.keepError||(hU(i.errors,e),d.isValid&&v()),h.state.next({...i}))},clearErrors:e=>{e&&jB(e).forEach((e=>hU(i.errors,e))),h.state.next({errors:e?i.errors:{}})},unregister:M,setError:I,setFocus:(e,t={})=>{const r=pB(o,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:R}}function MU(e={}){const t=n.useRef(),r=n.useRef(),[i,o]=n.useState({isDirty:!1,isValidating:!1,isLoading:KB(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:KB(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...IU(e,(()=>o((e=>({...e}))))),formState:i});const a=t.current.control;return a._options=e,RB({subject:a._subjects.state,next:e=>{CB(e,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),n.useEffect((()=>{e.values&&!gU(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values):a._resetDefaultValues()}),[e.values,a]),n.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),t.current.formState=TB(i,a),t.current}var LU,[NU,DU]=ah({name:`${LU="Card"}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${LU} />" `}),zU=g((function(e,t){const{className:r,children:n,direction:i="column",justify:o,align:a,...s}=ht(e),c=Sn("Card",e);return(0,un.jsx)(ln.div,{ref:t,className:v("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:o,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...s,children:(0,un.jsx)(NU,{value:c,children:n})})})),BU=g((function(e,t){const{className:r,...n}=e,i=DU();return(0,un.jsx)(ln.div,{ref:t,className:v("chakra-card__body",r),__css:i.body,...n})}));const UU=({value:e,space:t=2})=>(0,un.jsx)(zU,{background:EP.gray[700],borderRadius:"5px",children:(0,un.jsx)(BU,{children:(0,un.jsx)("pre",{style:{whiteSpace:"pre-wrap",fontSize:"12px",lineHeight:"18px"},children:JSON.stringify(e,null,t)})})});var FU=g((function(e,t){var r;const n=_n("FormLabel",e),i=ht(e),{className:o,children:a,requiredIndicator:s=(0,un.jsx)($U,{}),optionalIndicator:c=null,...l}=i,u=Gz(),d=null!=(r=null==u?void 0:u.getLabelProps(l,t))?r:{ref:t,...l};return(0,un.jsxs)(ln.label,{...d,className:v("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...n},children:[a,(null==u?void 0:u.isRequired)?s:c]})}));FU.displayName="FormLabel";var $U=g((function(e,t){const r=Gz(),n=Kz();if(!(null==r?void 0:r.isRequired))return null;const i=v("chakra-form__required-indicator",e.className);return(0,un.jsx)(ln.span,{...null==r?void 0:r.getRequiredIndicatorProps(e,t),__css:n.requiredIndicator,className:i})}));function HU(e){return n.Children.toArray(e).filter((e=>(0,n.isValidElement)(e)))}$U.displayName="RequiredIndicator";var[VU,qU]=En({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),KU=g((function(e,t){const r=Sn("Input",e),{children:i,className:o,...a}=ht(e),s=v("chakra-input__group",o),c={},l=HU(i),u=r.field;l.forEach((e=>{var t,n;r&&(u&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=u.height)?t:u.h),u&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(n=u.height)?n:u.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))}));const d=l.map((t=>{var r,i;const o=az({size:(null==(r=t.props)?void 0:r.size)||e.size,variant:(null==(i=t.props)?void 0:i.variant)||e.variant});return"Input"!==t.type.id?(0,n.cloneElement)(t,o):(0,n.cloneElement)(t,Object.assign(o,c,t.props))}));return(0,un.jsx)(ln.div,{className:s,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:(0,un.jsx)(VU,{value:r,children:d})})}));function WU(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...o}=GU(e);return{...o,disabled:t,readOnly:n,required:i,"aria-invalid":S(r),"aria-required":S(i),"aria-readonly":S(n)}}function GU(e){var t,r,n;const i=Gz(),{id:o,disabled:a,readOnly:s,required:c,isRequired:l,isInvalid:u,isReadOnly:d,isDisabled:h,onFocus:f,onBlur:p,...m}=e,g=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==i?void 0:i.hasFeedbackText)&&(null==i?void 0:i.isInvalid)&&g.push(i.feedbackId),(null==i?void 0:i.hasHelpText)&&g.push(i.helpTextId),{...m,"aria-describedby":g.join(" ")||void 0,id:null!=o?o:null==i?void 0:i.id,isDisabled:null!=(t=null!=a?a:h)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(r=null!=s?s:d)?r:null==i?void 0:i.isReadOnly,isRequired:null!=(n=null!=c?c:l)?n:null==i?void 0:i.isRequired,isInvalid:null!=u?u:null==i?void 0:i.isInvalid,onFocus:k(null==i?void 0:i.onFocus,f),onBlur:k(null==i?void 0:i.onBlur,p)}}KU.displayName="InputGroup";var ZU=g((function(e,t){const{htmlSize:r,...n}=e,i=Sn("Input",n),o=WU(ht(n)),a=v("chakra-input",e.className);return(0,un.jsx)(ln.input,{size:r,...o,__css:i.field,ref:t,className:a})}));ZU.displayName="Input",ZU.id="Input";var YU=ln("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),XU=g((function(e,t){var r,n;const{placement:i="left",...o}=e,a=qU(),s=a.field,c={["left"===i?"insetStart":"insetEnd"]:"0",width:null!=(r=null==s?void 0:s.height)?r:null==s?void 0:s.h,height:null!=(n=null==s?void 0:s.height)?n:null==s?void 0:s.h,fontSize:null==s?void 0:s.fontSize,...a.element};return(0,un.jsx)(YU,{ref:t,__css:c,...o})}));XU.id="InputElement",XU.displayName="InputElement";var JU=g((function(e,t){const{className:r,...n}=e,i=v("chakra-input__left-element",r);return(0,un.jsx)(XU,{ref:t,placement:"left",className:i,...n})}));JU.id="InputLeftElement",JU.displayName="InputLeftElement";var QU=g((function(e,t){const{className:r,...n}=e,i=v("chakra-input__right-element",r);return(0,un.jsx)(XU,{ref:t,placement:"right",className:i,...n})}));QU.id="InputRightElement",QU.displayName="InputRightElement";var[eF,tF]=En({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),rF=g((function(e,t){const r=Sn("List",e),{children:n,styleType:i="none",stylePosition:o,spacing:a,...s}=ht(e),c=HU(n),l=a?{"& > *:not(style) ~ *:not(style)":{mt:a}}:{};return(0,un.jsx)(eF,{value:r,children:(0,un.jsx)(ln.ul,{ref:t,listStyleType:i,listStylePosition:o,role:"list",__css:{...r.container,...l},...s,children:c})})}));rF.displayName="List";var nF=g(((e,t)=>{const{as:r,...n}=e;return(0,un.jsx)(rF,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})}));nF.displayName="OrderedList";var iF=g((function(e,t){const{as:r,...n}=e;return(0,un.jsx)(rF,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...n})}));iF.displayName="UnorderedList";var oF=g((function(e,t){const r=tF();return(0,un.jsx)(ln.li,{ref:t,...e,__css:r.item})}));oF.displayName="ListItem";var aF=g((function(e,t){const r=tF();return(0,un.jsx)(LA,{ref:t,role:"presentation",...e,__css:r.icon})}));aF.displayName="ListIcon";var sF={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function cF(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:qD(e)&&function(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+i+n)}(e)?e:cF(function(e){return"html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}(e))}var lF=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),uF={arrowShadowColor:lF("--popper-arrow-shadow-color"),arrowSize:lF("--popper-arrow-size","8px"),arrowSizeHalf:lF("--popper-arrow-size-half"),arrowBg:lF("--popper-arrow-bg"),transformOrigin:lF("--popper-transform-origin"),arrowOffset:lF("--popper-arrow-offset")};var dF={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},hF={scroll:!0,resize:!0};function fF(e){let t;return t="object"===typeof e?{enabled:!0,options:{...hF,...e}}:{enabled:e,options:hF},t}var pF={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},mF={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{gF(e)},effect:({state:e})=>()=>{gF(e)}},gF=e=>{var t;e.elements.popper.style.setProperty(uF.transformOrigin.var,(t=e.placement,dF[t]))},vF={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{yF(e)}},yF=e=>{var t;if(!e.placement)return;const r=bF(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:uF.arrowSize.varRef,height:uF.arrowSize.varRef,zIndex:-1});const t={[uF.arrowSizeHalf.var]:`calc(${uF.arrowSize.varRef} / 2 - 1px)`,[uF.arrowOffset.var]:`calc(${uF.arrowSizeHalf.varRef} * -1)`};for(const r in t)e.elements.arrow.style.setProperty(r,t[r])}},bF=e=>e.startsWith("top")?{property:"bottom",value:uF.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:uF.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:uF.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:uF.arrowOffset.varRef}:void 0,wF={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{xF(e)},effect:({state:e})=>()=>{xF(e)}},xF=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=(n=e.placement).includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0;var n;r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:uF.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},_F={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},SF={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function kF(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function EF(e){return e instanceof kF(e).Element||e instanceof Element}function AF(e){return e instanceof kF(e).HTMLElement||e instanceof HTMLElement}function PF(e){return"undefined"!==typeof ShadowRoot&&(e instanceof kF(e).ShadowRoot||e instanceof ShadowRoot)}var TF=Math.max,OF=Math.min,CF=Math.round;function jF(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function RF(){return!/^((?!chrome|android).)*safari/i.test(jF())}function IF(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&AF(e)&&(i=e.offsetWidth>0&&CF(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&CF(n.height)/e.offsetHeight||1);var a=(EF(e)?kF(e):window).visualViewport,s=!RF()&&r,c=(n.left+(s&&a?a.offsetLeft:0))/i,l=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/i,d=n.height/o;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function MF(e){var t=kF(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function LF(e){return e?(e.nodeName||"").toLowerCase():null}function NF(e){return((EF(e)?e.ownerDocument:e.document)||window.document).documentElement}function DF(e){return IF(NF(e)).left+MF(e).scrollLeft}function zF(e){return kF(e).getComputedStyle(e)}function BF(e){var t=zF(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function UF(e,t,r){void 0===r&&(r=!1);var n=AF(t),i=AF(t)&&function(e){var t=e.getBoundingClientRect(),r=CF(t.width)/e.offsetWidth||1,n=CF(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),o=NF(t),a=IF(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==LF(t)||BF(o))&&(s=function(e){return e!==kF(e)&&AF(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:MF(e);var t}(t)),AF(t)?((c=IF(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=DF(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function FF(e){var t=IF(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function $F(e){return"html"===LF(e)?e:e.assignedSlot||e.parentNode||(PF(e)?e.host:null)||NF(e)}function HF(e){return["html","body","#document"].indexOf(LF(e))>=0?e.ownerDocument.body:AF(e)&&BF(e)?e:HF($F(e))}function VF(e,t){var r;void 0===t&&(t=[]);var n=HF(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=kF(n),a=i?[o].concat(o.visualViewport||[],BF(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(VF($F(a)))}function qF(e){return["table","td","th"].indexOf(LF(e))>=0}function KF(e){return AF(e)&&"fixed"!==zF(e).position?e.offsetParent:null}function WF(e){for(var t=kF(e),r=KF(e);r&&qF(r)&&"static"===zF(r).position;)r=KF(r);return r&&("html"===LF(r)||"body"===LF(r)&&"static"===zF(r).position)?t:r||function(e){var t=/firefox/i.test(jF());if(/Trident/i.test(jF())&&AF(e)&&"fixed"===zF(e).position)return null;var r=$F(e);for(PF(r)&&(r=r.host);AF(r)&&["html","body"].indexOf(LF(r))<0;){var n=zF(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var GF="top",ZF="bottom",YF="right",XF="left",JF="auto",QF=[GF,ZF,YF,XF],e$="start",t$="end",r$="clippingParents",n$="viewport",i$="popper",o$="reference",a$=QF.reduce((function(e,t){return e.concat([t+"-"+e$,t+"-"+t$])}),[]),s$=[].concat(QF,[JF]).reduce((function(e,t){return e.concat([t,t+"-"+e$,t+"-"+t$])}),[]),c$=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function l$(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}function u$(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var d$={placement:"bottom",modifiers:[],strategy:"absolute"};function h$(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function b$(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?g$(i):null,a=i?v$(i):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(o){case GF:t={x:s,y:r.y-n.height};break;case ZF:t={x:s,y:r.y+r.height};break;case YF:t={x:r.x+r.width,y:c};break;case XF:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var l=o?y$(o):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case e$:t[l]=t[l]-(r[u]/2-n[u]/2);break;case t$:t[l]=t[l]+(r[u]/2-n[u]/2)}}return t}const w$={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=b$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var x$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _$(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,f=void 0===h?0:h,p=a.y,m=void 0===p?0:p,g="function"===typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=XF,w=GF,x=window;if(l){var _=WF(r),S="clientHeight",k="clientWidth";if(_===kF(r)&&"static"!==zF(_=NF(r)).position&&"absolute"===s&&(S="scrollHeight",k="scrollWidth"),i===GF||(i===XF||i===YF)&&o===t$)w=ZF,m-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[S])-n.height,m*=c?1:-1;if(i===XF||(i===GF||i===ZF)&&o===t$)b=YF,f-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-n.width,f*=c?1:-1}var E,A=Object.assign({position:s},l&&x$),P=!0===u?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:CF(r*i)/i||0,y:CF(n*i)/i||0}}({x:f,y:m},kF(r)):{x:f,y:m};return f=P.x,m=P.y,c?Object.assign({},A,((E={})[w]=y?"0":"",E[b]=v?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},A,((t={})[w]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}const S$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,c=void 0===s||s,l={placement:g$(t.placement),variation:v$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_$(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_$(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const k$={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];AF(i)&&LF(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});AF(n)&&LF(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};const E$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=s$.reduce((function(e,r){return e[r]=function(e,t,r){var n=g$(e),i=[XF,GF].indexOf(n)>=0?-1:1,o="function"===typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[XF,YF].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,o),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}};var A$={left:"right",right:"left",bottom:"top",top:"bottom"};function P$(e){return e.replace(/left|right|bottom|top/g,(function(e){return A$[e]}))}var T$={start:"end",end:"start"};function O$(e){return e.replace(/start|end/g,(function(e){return T$[e]}))}function C$(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&PF(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function j$(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R$(e,t,r){return t===n$?j$(function(e,t){var r=kF(e),n=NF(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=RF();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+DF(e),y:c}}(e,r)):EF(t)?function(e,t){var r=IF(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):j$(function(e){var t,r=NF(e),n=MF(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=TF(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=TF(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+DF(e),c=-n.scrollTop;return"rtl"===zF(i||r).direction&&(s+=TF(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(NF(e)))}function I$(e,t,r,n){var i="clippingParents"===t?function(e){var t=VF($F(e)),r=["absolute","fixed"].indexOf(zF(e).position)>=0&&AF(e)?WF(e):e;return EF(r)?t.filter((function(e){return EF(e)&&C$(e,r)&&"body"!==LF(e)})):[]}(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce((function(t,r){var i=R$(e,r,n);return t.top=TF(i.top,t.top),t.right=OF(i.right,t.right),t.bottom=OF(i.bottom,t.bottom),t.left=TF(i.left,t.left),t}),R$(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function M$(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function L$(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function N$(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,a=void 0===o?e.strategy:o,s=r.boundary,c=void 0===s?r$:s,l=r.rootBoundary,u=void 0===l?n$:l,d=r.elementContext,h=void 0===d?i$:d,f=r.altBoundary,p=void 0!==f&&f,m=r.padding,g=void 0===m?0:m,v=M$("number"!==typeof g?g:L$(g,QF)),y=h===i$?o$:i$,b=e.rects.popper,w=e.elements[p?y:h],x=I$(EF(w)?w:w.contextElement||NF(e.elements.popper),c,u,a),_=IF(e.elements.reference),S=b$({reference:_,element:b,strategy:"absolute",placement:i}),k=j$(Object.assign({},b,S)),E=h===i$?k:_,A={top:x.top-E.top+v.top,bottom:E.bottom-x.bottom+v.bottom,left:x.left-E.left+v.left,right:E.right-x.right+v.right},P=e.modifiersData.offset;if(h===i$&&P){var T=P[i];Object.keys(A).forEach((function(e){var t=[YF,ZF].indexOf(e)>=0?1:-1,r=[GF,ZF].indexOf(e)>=0?"y":"x";A[e]+=T[r]*t}))}return A}const D$={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,l=r.padding,u=r.boundary,d=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,p=void 0===f||f,m=r.allowedAutoPlacements,g=t.options.placement,v=g$(g),y=c||(v===g||!p?[P$(g)]:function(e){if(g$(e)===JF)return[];var t=P$(e);return[O$(e),t,O$(t)]}(g)),b=[g].concat(y).reduce((function(e,r){return e.concat(g$(r)===JF?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=void 0===c?s$:c,u=v$(n),d=u?s?a$:a$.filter((function(e){return v$(e)===u})):QF,h=d.filter((function(e){return l.indexOf(e)>=0}));0===h.length&&(h=d);var f=h.reduce((function(t,r){return t[r]=N$(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[g$(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:l,flipVariations:p,allowedAutoPlacements:m}):r)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,S=!0,k=b[0],E=0;E=0,C=O?"width":"height",j=N$(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:h,padding:l}),R=O?T?YF:XF:T?ZF:GF;w[C]>x[C]&&(R=P$(R));var I=P$(R),M=[];if(o&&M.push(j[P]<=0),s&&M.push(j[R]<=0,j[I]<=0),M.every((function(e){return e}))){k=A,S=!1;break}_.set(A,M)}if(S)for(var L=function(e){var t=b.find((function(t){var r=_.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=p?3:1;N>0;N--){if("break"===L(N))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function z$(e,t,r){return TF(e,OF(t,r))}const B$={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,d=r.padding,h=r.tether,f=void 0===h||h,p=r.tetherOffset,m=void 0===p?0:p,g=N$(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),v=g$(t.placement),y=v$(t.placement),b=!y,w=y$(v),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,E="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(_){if(o){var O,C="y"===w?GF:XF,j="y"===w?ZF:YF,R="y"===w?"height":"width",I=_[w],M=I+g[C],L=I-g[j],N=f?-k[R]/2:0,D=y===e$?S[R]:k[R],z=y===e$?-k[R]:-S[R],B=t.elements.arrow,U=f&&B?FF(B):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=F[C],H=F[j],V=z$(0,S[R],U[R]),q=b?S[R]/2-N-V-$-A.mainAxis:D-V-$-A.mainAxis,K=b?-S[R]/2+N+V+H+A.mainAxis:z+V+H+A.mainAxis,W=t.elements.arrow&&WF(t.elements.arrow),G=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Z=null!=(O=null==P?void 0:P[w])?O:0,Y=I+K-Z,X=z$(f?OF(M,I+q-Z-G):M,I,f?TF(L,Y):L);_[w]=X,T[w]=X-I}if(s){var J,Q="x"===w?GF:XF,ee="x"===w?ZF:YF,te=_[x],re="y"===x?"height":"width",ne=te+g[Q],ie=te-g[ee],oe=-1!==[GF,XF].indexOf(v),ae=null!=(J=null==P?void 0:P[x])?J:0,se=oe?ne:te-S[re]-k[re]-ae+A.altAxis,ce=oe?te+S[re]+k[re]-ae-A.altAxis:ie,le=f&&oe?function(e,t,r){var n=z$(e,t,r);return n>r?r:n}(se,te,ce):z$(f?se:ne,te,f?ce:ie);_[x]=le,T[x]=le-te}t.modifiersData[n]=T}},requiresIfExists:["offset"]};const U$={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=g$(r.placement),c=y$(s),l=[XF,YF].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return M$("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:L$(e,QF))}(i.padding,r),d=FF(o),h="y"===c?GF:XF,f="y"===c?ZF:YF,p=r.rects.reference[l]+r.rects.reference[c]-a[c]-r.rects.popper[l],m=a[c]-r.rects.reference[c],g=WF(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,b=u[h],w=v-d[l]-u[f],x=v/2-d[l]/2+y,_=z$(b,x,w),S=c;r.modifiersData[n]=((t={})[S]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&C$(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function F$(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function $$(e){return[GF,YF,ZF,XF].some((function(t){return e[t]>=0}))}const H$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=N$(t,{elementContext:"reference"}),s=N$(t,{altBoundary:!0}),c=F$(a,n),l=F$(s,i,o),u=$$(c),d=$$(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var V$=f$({defaultModifiers:[m$,w$,S$,k$,E$,D$,B$,U$,H$]});function q$(e={}){const{enabled:t=!0,modifiers:r,placement:i="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:c,gutter:l=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:h=!0,matchWidth:f,direction:p="ltr"}=e,m=(0,n.useRef)(null),g=(0,n.useRef)(null),v=(0,n.useRef)(null),y=function(e,t="ltr"){var r,n;const i=(null==(r=_F[e])?void 0:r[t])||e;return"ltr"===t?i:null!=(n=SF[e])?n:i}(i,p),b=(0,n.useRef)((()=>{})),w=(0,n.useCallback)((()=>{var e;t&&m.current&&g.current&&(null==(e=b.current)||e.call(b),v.current=V$(m.current,g.current,{placement:y,modifiers:[wF,vF,mF,{...pF,enabled:!!f},{name:"eventListeners",...fF(s)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=c?c:[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:d}},...null!=r?r:[]],strategy:o}),v.current.forceUpdate(),b.current=v.current.destroy)}),[y,t,r,f,s,a,c,l,u,h,d,o]);(0,n.useEffect)((()=>()=>{var e;m.current||g.current||(null==(e=v.current)||e.destroy(),v.current=null)}),[]);const x=(0,n.useCallback)((e=>{m.current=e,w()}),[w]),_=(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(x,t)})),[x]),S=(0,n.useCallback)((e=>{g.current=e,w()}),[w]),k=(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(S,t),style:{...e.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}})),[o,S,f]),E=(0,n.useCallback)(((e={},t=null)=>{const{size:r,shadowColor:n,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:K$(e)}}),[]),A=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""})),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:uF.transformOrigin.varRef,referenceRef:x,popperRef:S,getPopperProps:k,getArrowProps:E,getArrowInnerProps:A,getReferenceProps:_}}function K$(e){const{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function W$(e={}){const{onClose:t,onOpen:r,isOpen:i,id:o}=e,a=pb(r),s=pb(t),[c,l]=(0,n.useState)(e.defaultIsOpen||!1),u=void 0!==i?i:c,d=void 0!==i,h=(0,n.useId)(),f=null!=o?o:`disclosure-${h}`,p=(0,n.useCallback)((()=>{d||l(!1),null==s||s()}),[d,s]),m=(0,n.useCallback)((()=>{d||l(!0),null==a||a()}),[d,a]),g=(0,n.useCallback)((()=>{u?p():m()}),[u,m,p]);return{isOpen:u,onOpen:m,onClose:p,onToggle:g,isControlled:d,getButtonProps:function(e={}){return{...e,"aria-expanded":u,"aria-controls":f,onClick(t){var r;null==(r=e.onClick)||r.call(e,t),g()}}},getDisclosureProps:function(e={}){return{...e,hidden:!u,id:f}}}}function G$(e,t,r,i){const o=pb(r);return(0,n.useEffect)((()=>{const n="function"===typeof e?e():null!=e?e:document;if(r&&n)return n.addEventListener(t,o,i),()=>{n.removeEventListener(t,o,i)}}),[t,e,i,o,r]),()=>{const r="function"===typeof e?e():null!=e?e:document;null==r||r.removeEventListener(t,o,i)}}var Z$=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},Y$=e=>{var t,r;return(null==(r=null==(t=e.current)?void 0:t.ownerDocument)?void 0:r.defaultView)||window};function X$(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:i=!0,closeOnMouseDown:o,closeOnScroll:a,closeOnPointerDown:s=o,closeOnEsc:c=!0,onOpen:l,onClose:u,placement:d,id:h,isOpen:f,defaultIsOpen:p,arrowSize:m=10,arrowShadowColor:g,arrowPadding:v,modifiers:y,isDisabled:b,gutter:w,offset:x,direction:_,...S}=e,{isOpen:E,onOpen:A,onClose:P}=W$({isOpen:f,defaultIsOpen:p,onOpen:l,onClose:u}),{referenceRef:T,getPopperProps:O,getArrowInnerProps:C,getArrowProps:j}=q$({enabled:E,placement:d,arrowPadding:v,modifiers:y,gutter:w,offset:x,direction:_}),R=(0,n.useId)(),I=`tooltip-${null!=h?h:R}`,M=(0,n.useRef)(null),L=(0,n.useRef)(),N=(0,n.useCallback)((()=>{L.current&&(clearTimeout(L.current),L.current=void 0)}),[]),D=(0,n.useRef)(),z=(0,n.useCallback)((()=>{D.current&&(clearTimeout(D.current),D.current=void 0)}),[]),B=(0,n.useCallback)((()=>{z(),P()}),[P,z]),U=function(e,t){return(0,n.useEffect)((()=>{const r=Z$(e);return r.addEventListener(J$,t),()=>r.removeEventListener(J$,t)}),[t,e]),()=>{const t=Z$(e),r=Y$(e);t.dispatchEvent(new r.CustomEvent(J$))}}(M,B),F=(0,n.useCallback)((()=>{if(!b&&!L.current){E&&U();const e=Y$(M);L.current=e.setTimeout(A,t)}}),[U,b,E,A,t]),$=(0,n.useCallback)((()=>{N();const e=Y$(M);D.current=e.setTimeout(B,r)}),[r,B,N]),H=(0,n.useCallback)((()=>{E&&i&&$()}),[i,$,E]),V=(0,n.useCallback)((()=>{E&&s&&$()}),[s,$,E]),q=(0,n.useCallback)((e=>{E&&"Escape"===e.key&&$()}),[E,$]);G$((()=>Z$(M)),"keydown",c?q:void 0),G$((()=>{if(!a)return null;const e=M.current;if(!e)return null;const t=cF(e);return"body"===t.localName?Y$(M):t}),"scroll",(()=>{E&&a&&B()}),{passive:!0,capture:!0}),(0,n.useEffect)((()=>{b&&(N(),E&&P())}),[b,E,P,N]),(0,n.useEffect)((()=>()=>{N(),z()}),[N,z]),G$((()=>M.current),"pointerleave",$);const K=(0,n.useCallback)(((e={},t=null)=>{const r={...e,ref:Ln(M,t,T),onPointerEnter:k(e.onPointerEnter,(e=>{"touch"!==e.pointerType&&F()})),onClick:k(e.onClick,H),onPointerDown:k(e.onPointerDown,V),onFocus:k(e.onFocus,F),onBlur:k(e.onBlur,$),"aria-describedby":E?I:void 0};return r}),[F,$,V,E,I,H,T]),W=(0,n.useCallback)(((e={},t=null)=>O({...e,style:{...e.style,[uF.arrowSize.var]:m?`${m}px`:void 0,[uF.arrowShadowColor.var]:g}},t)),[O,m,g]),G=(0,n.useCallback)(((e={},t=null)=>{const r={...e.style,position:"relative",transformOrigin:uF.transformOrigin.varRef};return{ref:t,...S,...e,id:I,role:"tooltip",style:r}}),[S,I]);return{isOpen:E,show:F,hide:$,getTriggerProps:K,getTooltipProps:G,getTooltipPositionerProps:W,getArrowProps:j,getArrowInnerProps:C}}var J$="chakra-ui:close-tooltip";var Q$=ln(CA.div),eH=g(((e,t)=>{var r,i;const o=_n("Tooltip",e),a=ht(e),s=vn(),{children:c,label:l,shouldWrapChildren:u,"aria-label":d,hasArrow:h,bg:f,portalProps:p,background:m,backgroundColor:g,bgColor:v,motionProps:y,...b}=a,w=null!=(i=null!=(r=null!=m?m:g)?r:f)?i:v;if(w){o.bg=w;const e=function(e,t,r){var n,i,o;return null!=(o=null==(i=null==(n=e.__cssMap)?void 0:n[`${t}.${r}`])?void 0:i.varRef)?o:r}(s,"colors",w);o[uF.arrowBg.var]=e}const x=X$({...b,direction:s.direction});let _;if("string"===typeof c||u)_=(0,un.jsx)(ln.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:c});else{const e=n.Children.only(c);_=(0,n.cloneElement)(e,x.getTriggerProps(e.props,e.ref))}const S=!!d,k=x.getTooltipProps({},t),E=S?function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(k,["role","id"]):k,A=function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(k,["role","id"]);return l?(0,un.jsxs)(un.Fragment,{children:[_,(0,un.jsx)(iP,{children:x.isOpen&&(0,un.jsx)(dP,{...p,children:(0,un.jsx)(ln.div,{...x.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:(0,un.jsxs)(Q$,{variants:sF,initial:"exit",animate:"enter",exit:"exit",...y,...E,__css:o,children:[l,S&&(0,un.jsx)(ln.span,{srOnly:!0,...A,children:d}),h&&(0,un.jsx)(ln.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,un.jsx)(ln.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):(0,un.jsx)(un.Fragment,{children:c})}));eH.displayName="Tooltip";var tH=r(9685),rH=r.n(tH),nH=r(9378),iH=r.n(nH);const oH="default"in iH()?iH().default:iH(),aH=({address:e,identiconSize:t,...r})=>(0,un.jsx)(pn,{sx:{canvas:{borderRadius:"4px"}},zIndex:10,background:"white",borderRadius:"4px","data-testid":"identicon",...r,children:(0,un.jsx)(oH,{background:"white",size:t,string:e,style:{borderRadius:4}})}),sH={stroke:EP.gray[400],borderRadius:"4px",padding:"5px",background:EP.gray[500]},cH=({addressKind:e,size:t="sm",identiconSize:r=20})=>{let n;switch(t){case"sm":n="30px";break;case"md":n="38.5px";break;case"lg":n="45.5px"}switch(e.type){case"secret_key":case"mnemonic":return(0,un.jsx)(aH,{width:n,height:n,padding:"5px",address:e.pkh,identiconSize:r});case"social":return(0,un.jsx)(mR,{width:n,height:n,...sH,stroke:"transparent",background:"white"});case"ledger":return(0,un.jsx)(rR,{width:n,height:n,...sH,color:EP.gray[400]});case"multisig":return(0,un.jsx)(Wj,{width:n,height:n,...sH});case"contact":return(0,un.jsx)(kj,{width:n,height:n,...sH});case"unknown":return(0,un.jsx)(_R,{width:n,height:n,...sH});case"baker":{const t=`https://services.tzkt.io/v1/avatars/${e.pkh}`;return(0,un.jsx)(dz,{width:"30px",height:"30px",marginRight:"8px","data-testid":"baker-icon",ratio:1,children:(0,un.jsx)(bR,{src:t})})}}};var lH=r(8614),uH=r(4200),dH=r(1787),hH=r(4516),fH=r(292),pH=r.n(fH);function mH(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))}"function"===typeof SuppressedError&&SuppressedError;class gH{constructor(e,t,r){this.key=e;const n=e.substring(0,t?5:4);if(!Ys(n))throw new ds(`${hc(Zs.NO_PREFIX_MATCHED)} expecting either '${Fs.EDESK}' or '${Fs.EDSK}'.`);if(this._key=r(yc(this.key,Ks[n])),this._publicKey=this._key.slice(32),!this._key)throw new ds("unable to decode");this.isInit=this.init()}init(){return mH(this,void 0,void 0,(function*(){if(64!==this._key.length){const{publicKey:e,secretKey:t}=(0,Ka._w)(new Uint8Array(this._key));this._publicKey=e,this._key=t}return!0}))}sign(e,t){return mH(this,void 0,void 0,(function*(){yield this.isInit;const r=(0,Ka.Xx)(new Uint8Array(this._key),new Uint8Array(t)),n=qs()(r),i=e+kc(n);return{bytes:e,sig:vc(r,Ks.sig),prefixSig:vc(r,Ks.edsig),sbytes:i}}))}publicKey(){return mH(this,void 0,void 0,(function*(){return yield this.isInit,vc(this._publicKey,Ks.edpk)}))}publicKeyHash(){return mH(this,void 0,void 0,(function*(){return yield this.isInit,vc((0,Wa.hash)(new Uint8Array(this._publicKey),20),Ks.tz1)}))}secretKey(){return mH(this,void 0,void 0,(function*(){yield this.isInit;let e=this._key;const{secretKey:t}=(0,Ka._w)(new Uint8Array(e).slice(0,32));return e=qs()(t),vc(e,Ks.edsk)}))}}const vH={p256:{pk:Ks.p2pk,sk:Ks.p2sk,pkh:Ks.tz3,sig:Ks.p2sig},secp256k1:{pk:Ks.sppk,sk:Ks.spsk,pkh:Ks.tz2,sig:Ks.spsig}};class yH{constructor(e,t,r,n){this.curve=e,this.key=t;const i=t.substring(0,r?5:4);if(!Ys(i))throw new ds(hc(Zs.NO_PREFIX_MATCHED)+` expecting one of the following prefix '${Fs.SPSK}', '${Fs.SPESK}', '${Fs.P2SK}' or '${Fs.P2ESK}'.`);this._key=n(yc(this.key,Ks[i]));const o=new(Hs().ec)(this.curve).keyFromPrivate(this._key),a=o.getPublic().getY().toArray(),s=(a.length<32?a[a.length-1]:a[31])%2?3:2,c=new Array(32).fill(0);this._publicKey=qs()(new Uint8Array([s].concat(c.concat(o.getPublic().getX().toArray()).slice(-32))))}sign(e,t){return mH(this,void 0,void 0,(function*(){const r=new(Hs().ec)(this.curve).keyFromPrivate(this._key).sign(t,{canonical:!0}),n=r.r.toString("hex",64)+r.s.toString("hex",64),i=e+n;return{bytes:e,sig:vc(n,Ks.sig),prefixSig:vc(n,vH[this.curve].sig),sbytes:i}}))}publicKey(){return mH(this,void 0,void 0,(function*(){return vc(this._publicKey,vH[this.curve].pk)}))}publicKeyHash(){return mH(this,void 0,void 0,(function*(){return vc((0,Wa.hash)(new Uint8Array(this._publicKey),20),vH[this.curve].pkh)}))}secretKey(){return mH(this,void 0,void 0,(function*(){return vc(this._key,vH[this.curve].sk)}))}}const bH=yH.bind(null,"p256"),wH=yH.bind(null,"secp256k1");function xH(e){const t=[];for(let r=0;r64)throw new EH(o.length);if(!Object.prototype.hasOwnProperty.call(TH,r))throw new kH(`Unsupported curve "${r}" expecting either "p256" or "secp256k1"`);const a=new $s.ec(r);if(256!==(null===(n=a.n)||void 0===n?void 0:n.bitLength()))throw new SH(`Invalid curve "${r}" with bit size "${null===(i=a.n)||void 0===i?void 0:i.bitLength()}" expecting bit size "256"`);const s=(new TextEncoder).encode(TH[r]);let c=null,l=new Uint8Array,u=0;for(;0===u;){const e=new dH.zU(hH.SHA512,s).update(o).digest();c=new(pH())(e.subarray(0,32)),l=e.subarray(32),c.isZero()||c.cmp(a.n)>=0?o=e:u++}const d=a.keyPair({});return d.priv=c,new e(d,l)}derive(t){const r=new Uint8Array(37);0!==(t&CH)?r.set(this.keyPair.getPrivate().toArray(),1):r.set(this.keyPair.getPublic().encodeCompressed(),0),new DataView(r.buffer).setUint32(33,t);let n=new(pH())(0),i=new Uint8Array,o=0;for(;0===o;){const e=new dH.zU(hH.SHA512,this.chainCode).update(r).digest();n=new(pH())(e.subarray(0,32)),i=e.subarray(32),this.keyPair.ec.n&&n.cmp(this.keyPair.ec.n)<0&&(n=n.add(this.keyPair.getPrivate()).mod(this.keyPair.ec.n),n.isZero()||o++),r.set(i,1),r[0]=1}const a=this.keyPair.ec.keyPair({});return a.priv=n,new e(a,i)}derivePath(e){let t=this;for(const r of e)t=t.derive(r);return t}bytes(){if(!this.keyPair.priv)throw new ds("missing private key");const e=this.keyPair.priv.toArray(),t=new Uint8Array(32);return t.set(e,t.length-e.length),t}};const CH=2147483648;class jH extends Array{static from(e){return super.from(e).map((e=>e>>>0))}static fromString(e){if(0===e.length)return new jH;let t=e.split("/");const r=[];"m"===t[0]&&(t=t.slice(1));for(let n of t){if(0===n.length)throw new ss(e,": Invalid BIP32 path");let t=0;const i=n[n.length-1];"'"!==i&&"h"!==i&&"H"!==i||(t=CH,n=n.slice(0,n.length-1));const o=(parseInt(n,10)|t)>>>0;r.push(o)}return jH.from(r)}}class RH{constructor(e,t){this.priv=e,this.chainCode=t}static fromSeed(e){const t="string"===typeof e?xH(e):e;if(t.length<16||t.length>64)throw new EH(t.length);const r=(new TextEncoder).encode("ed25519 seed"),n=new dH.zU(hH.SHA512,r).update(t).digest();return new RH((0,Ka._w)(n.subarray(0,32)).secretKey,n.subarray(32))}seed(){return this.priv.subarray(0,32)}derive(e){if(0===(e&CH))throw new ss(e.toString(),": Non-hardened derivation path.");const t=new Uint8Array(37);t.set(this.seed(),1),new DataView(t.buffer).setUint32(33,e);const r=new dH.zU(hH.SHA512,this.chainCode).update(t).digest();return new RH((0,Ka._w)(r.subarray(0,32)).secretKey,r.subarray(32))}derivePath(e){let t=this;for(const r of e)t=t.derive(r);return t}}class IH{static fromFundraiser(e,t,r){if(!uH._I(r))throw new _H(r);const n=vc(uH.Z1(r,`${e}${t}`).slice(0,32),Ks.edsk2);return new IH(n)}static fromSecretKey(e,t){return mH(this,void 0,void 0,(function*(){return new IH(e,t)}))}static fromMnemonic({mnemonic:e,password:t="",derivationPath:r="44'/1729'/0'/0'",curve:n="ed25519"}){if(!uH._I(e))throw new _H(e);const i=((e,t,r)=>{const n=jH.fromString(t);let i;switch(r){case"ed25519":return i=RH.fromSeed(e).derivePath(n),vc(i.seed().slice(0,32),Ks.edsk2);case"secp256k1":case"p256":{const t="secp256k1"===r?Ks.spsk:Ks.p2sk;let i=OH.fromSeed(e,r);return i=i.derivePath(n),vc(new Uint8Array(i.keyPair.getPrivate().toArray()),t)}case"bip25519":throw new AH;default:throw new kH(`Unsupported curve "${r}" expecting one of the following "ed25519", "secp256k1", "p256"`)}})(uH.Z1(e,t),r,n);return new IH(i)}constructor(e,t){const r="e"===e.substring(2,3);let n=e=>e;if(r){if(!t)throw new PH("No passphrase provided to decrypt encrypted key");n=e=>{const r=qs()(e.slice(0,8)),n=e.slice(8),i=lH.pbkdf2Sync(t,r,32768,32,"sha512");return(0,_M.openSecretBox)(new Uint8Array(i),new Uint8Array(24),new Uint8Array(n))}}switch(e.substring(0,4)){case"edes":case"edsk":this._key=new gH(e,r,n);break;case"spsk":case"spes":this._key=new wH(e,r,n);break;case"p2sk":case"p2es":this._key=new bH(e,r,n);break;default:throw new ds(`${hc(Zs.NO_PREFIX_MATCHED)} expecting one of the following '${Fs.EDESK}', '${Fs.EDSK}', '${Fs.SPSK}', '${Fs.SPESK}', '${Fs.P2SK}' or '${Fs.P2ESK}'.`)}}sign(e,t){return mH(this,void 0,void 0,(function*(){let r=_c(e);"undefined"!==typeof t&&(r=Sc(t,r));const n=(0,Wa.hash)(r,32);return this._key.sign(e,n)}))}publicKey(){return mH(this,void 0,void 0,(function*(){return this._key.publicKey()}))}publicKeyHash(){return mH(this,void 0,void 0,(function*(){return this._key.publicKeyHash()}))}secretKey(){return mH(this,void 0,void 0,(function*(){return this._key.secretKey()}))}}const MH="44'/1729'/?'/0'",LH={label:"Default - m/44'/1729'/?'/0'",value:MH},NH=[LH,{label:"m/44'/1729'/0'/?'",value:"44'/1729'/0'/?'"},{label:"m/44'/1729'/?'/0'/0'",value:"44'/1729'/?'/0'/0'"},{label:"m/44'/1729'/0'/0'/?'",value:"44'/1729'/0'/0'/?'"}],DH=(e,t)=>e.replace("?",t.toString()),zH=(e,t,r,n,i,o)=>({curve:"ed25519",derivationPath:r,derivationPathPattern:n,pk:e,address:Yu(t),seedFingerPrint:i,label:o,type:"mnemonic"}),BH=()=>jR((e=>e.contacts)),UH=()=>{const e=BH();return{addressExistsInContacts:t=>t in e,nameExistsInContacts:t=>Md(e,t)}},FH=()=>{const e=BH();return t=>t in e?e[t].name:void 0},$H=()=>jR((e=>e.accounts.seedPhrases)),HH=()=>jR((e=>e.accounts.items)),VH=()=>{const e=HH();return t=>e.find((e=>e.address.pkh===t))},qH=()=>{const e=HH(),t=jR((e=>e.multisigs.items));return[...e,...t]},KH=()=>{const e=qH().map((e=>e.label)),t=Object.values(BH()).map((e=>e.name));return r=>![...e,...t].includes(r)},WH=()=>{const e=KH();return(t,r=1)=>{const n=[];for(let i=1;n.length{const e=qH();return t=>e.find((e=>e.address.pkh===t))},ZH=()=>{const e=GH();return t=>{const r=e(t);if(!r)throw new Error(`You do not own account:${t}`);return r}},YH=e=>qH().map((e=>e.address.pkh)).includes(e),XH=()=>{const e=(()=>{const e=HH();return t=>{const r=e.filter((e=>t.signers.some((t=>t.pkh===e.address.pkh))));return 0===r.length&&console.warn("Wallet doesn't own any signers for multisig contract "+t.address.pkh),r}})();return t=>{switch(t.type){case"ledger":case"mnemonic":case"social":case"secret_key":return[t];case"multisig":return e(t)}}},JH=()=>{const e=XH(),t=i3();return r=>(0,Va.maxBy)(e(r),(e=>t(e.address.pkh)||"0"))};var QH=r(4062),eV=r.n(QH);const tV={},rV={},nV=(e,t)=>{rV[e]=t},iV=e=>{class t extends Error{constructor(r,n,i){if(super(r||e,i),Object.setPrototypeOf(this,t.prototype),this.name=e,n)for(const e in n)this[e]=n[e];if(i&&function(e){return"object"===typeof e}(i)&&"cause"in i&&!("cause"in this)){const e=i.cause;this.cause=e,"stack"in e&&(this.stack=this.stack+"\nCAUSE: "+e.stack)}}}return tV[e]=t,t};iV("AccountNameRequired"),iV("AccountNotSupported"),iV("AmountRequired"),iV("BluetoothRequired"),iV("BtcUnmatchedApp"),iV("CantOpenDevice"),iV("CashAddrNotSupported"),iV("ClaimRewardsFeesWarning"),iV("CurrencyNotSupported"),iV("DeviceAppVerifyNotSupported"),iV("DeviceGenuineSocketEarlyClose"),iV("DeviceNotGenuine"),iV("DeviceOnDashboardExpected"),iV("DeviceOnDashboardUnexpected"),iV("DeviceInOSUExpected"),iV("DeviceHalted"),iV("DeviceNameInvalid"),iV("DeviceSocketFail"),iV("DeviceSocketNoBulkStatus"),iV("DeviceSocketNoBulkStatus"),iV("UnresponsiveDeviceError");const oV=iV("DisconnectedDevice"),aV=iV("DisconnectedDeviceDuringOperation"),sV=(iV("DeviceExtractOnboardingStateError"),iV("DeviceOnboardingStatePollingError"),iV("EnpointConfig"),iV("EthAppPleaseEnableContractData"),iV("FeeEstimationFailed"),iV("FirmwareNotRecognized"),iV("HardResetFail"),iV("InvalidXRPTag"),iV("InvalidAddress"),iV("InvalidNonce"),iV("InvalidAddressBecauseDestinationIsAlsoSource"),iV("LatestMCUInstalledError"),iV("UnknownMCU"),iV("LedgerAPIError"),iV("LedgerAPIErrorWithMessage"),iV("LedgerAPINotAvailable"),iV("ManagerAppAlreadyInstalled"),iV("ManagerAppRelyOnBTC"),iV("ManagerAppDepInstallRequired"),iV("ManagerAppDepUninstallRequired"),iV("ManagerDeviceLocked"),iV("ManagerFirmwareNotEnoughSpace"),iV("ManagerNotEnoughSpace"),iV("ManagerUninstallBTCDep"),iV("NetworkDown"),iV("NetworkError"),iV("NoAddressesFound"),iV("NotEnoughBalance"),iV("NotEnoughBalanceToDelegate"),iV("NotEnoughBalanceInParentAccount"),iV("NotEnoughSpendableBalance"),iV("NotEnoughBalanceBecauseDestinationNotCreated"),iV("NoAccessToCamera"),iV("NotEnoughGas"),iV("NotEnoughGasSwap"),iV("NotSupportedLegacyAddress"),iV("GasLessThanEstimate"),iV("PriorityFeeTooLow"),iV("PriorityFeeTooHigh"),iV("PriorityFeeHigherThanMaxFee"),iV("MaxFeeTooLow"),iV("PasswordsDontMatch"),iV("PasswordIncorrect"),iV("RecommendSubAccountsToEmpty"),iV("RecommendUndelegation"),iV("TimeoutTagged"),iV("UnexpectedBootloader"),iV("MCUNotGenuineToDashboard"),iV("RecipientRequired"),iV("UnavailableTezosOriginatedAccountReceive"),iV("UnavailableTezosOriginatedAccountSend"),iV("UpdateFetchFileFail"),iV("UpdateIncorrectHash"),iV("UpdateIncorrectSig"),iV("UpdateYourApp"),iV("UserRefusedDeviceNameChange"),iV("UserRefusedAddress"),iV("UserRefusedFirmwareUpdate"),iV("UserRefusedAllowManager"),iV("UserRefusedOnDevice"),iV("ExpertModeRequired"),iV("TransportOpenUserCancelled")),cV=iV("TransportInterfaceNotAvailable"),lV=iV("TransportRaceCondition"),uV=iV("TransportWebUSBGestureRequired");iV("TransactionHasBeenValidatedError"),iV("TransportExchangeTimeoutError"),iV("DeviceShouldStayInApp"),iV("WebsocketConnectionError"),iV("WebsocketConnectionFailed"),iV("WrongDeviceForAccount"),iV("WrongAppForCurrency"),iV("ETHAddressNonEIP"),iV("CantScanQRCode"),iV("FeeNotLoaded"),iV("FeeNotLoadedSwap"),iV("FeeRequired"),iV("FeeTooHigh"),iV("PendingOperation"),iV("SyncError"),iV("PairingFailed"),iV("PeerRemovedPairing"),iV("GenuineCheckFailed"),iV("LedgerAPI4xx"),iV("LedgerAPI5xx"),iV("FirmwareOrAppUpdateRequired"),iV("ReplacementTransactionUnderpriced"),iV("OpReturnSizeLimit"),iV("DustLimit"),iV("LanguageNotFound"),iV("NoDBPathGiven"),iV("DBWrongPassword"),iV("DBNotReset");var dV;!function(e){e.Unknown="Unknown",e.LocationServicesDisabled="LocationServicesDisabled",e.LocationServicesUnauthorized="LocationServicesUnauthorized",e.BluetoothScanStartFailed="BluetoothScanStartFailed"}(dV||(dV={}));class hV extends Error{constructor(e,t){const r="TransportError";super(e||r),this.name=r,this.message=e,this.stack=new Error(e).stack,this.id=t}}nV("TransportError",(e=>new hV(e.message,e.id)));const fV={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};class pV extends Error{constructor(e,{canBeMappedToChildError:t=!0}={}){const r=Object.keys(fV).find((t=>fV[t]===e))||"UNKNOWN_ERROR",n=function(e){switch(e){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=e&&e<=28671)return"Internal error, please report"}(e)||r,i=`Ledger device: ${n} (0x${e.toString(16)})`;if(super(i),this.name="TransportStatusError",this.statusCode=e,this.statusText=r,t&&e===fV.LOCKED_DEVICE)return new mV(i)}}class mV extends pV{constructor(e){super(fV.LOCKED_DEVICE,{canBeMappedToChildError:!1}),e&&(this.message=e),this.name="LockedDeviceError"}}nV("TransportStatusError",(e=>new pV(e.statusCode)));let gV=0;const vV=[],yV=(e,t,r)=>{const n={type:e,id:String(++gV),date:new Date};t&&(n.message=t),r&&(n.data=r),xV(n)};class bV{constructor(e,t){this.type=e,this.context=t}trace(e,t){(({type:e,message:t,data:r,context:n})=>{const i={type:e,id:String(++gV),date:new Date};t&&(i.message=t),r&&(i.data=r),n&&(i.context=n),xV(i)})({type:this.type,message:e,data:t,context:this.context})}getContext(){return this.context}setContext(e){this.context=e}updateContext(e){this.context=Object.assign(Object.assign({},this.context),e)}getType(){return this.type}setType(e){this.type=e}withType(e){return new bV(e,this.context)}withContext(e){return new bV(this.type,e)}withUpdatedContext(e){return new bV(this.type,Object.assign(Object.assign({},this.context),e))}}const wV=e=>(vV.push(e),()=>{const t=vV.indexOf(e);-1!==t&&(vV[t]=vV[vV.length-1],vV.pop())});function xV(e){for(let r=0;rSV(this,void 0,void 0,(function*(){const s=this.tracer.withUpdatedContext({function:"send"});if(i.length>=256)throw s.trace("data.length exceeded 256 bytes limit",{dataLength:i.length}),new hV("data.length exceed 256 bytes limit. Got: "+i.length,"DataLengthTooBig");s.trace("Starting an exchange",{abortTimeoutMs:a});const c=yield this.exchange(_V.concat([_V.from([e,t,r,n]),_V.from([i.length]),i]),{abortTimeoutMs:a});s.trace("Received response from exchange");const l=c.readUInt16BE(c.length-2);if(!o.some((e=>e===l)))throw new pV(l);return c})),this._appAPIlock=null,this.tracer=new bV(null!==t&&void 0!==t?t:"transport",e)}exchange(e,{abortTimeoutMs:t}={}){throw new Error("exchange not implemented")}exchangeBulk(e,t){let r=!1;return(()=>SV(this,void 0,void 0,(function*(){if(!r)for(const n of e){const e=yield this.exchange(n);if(r)return;const i=e.readUInt16BE(e.length-2);if(i!==fV.OK)throw new pV(i);t.next(e)}})))().then((()=>!r&&t.complete()),(e=>!r&&t.error(e))),{unsubscribe:()=>{r=!0}}}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise(((r,n)=>{let i=!1;const o=this.listen({next:t=>{i=!0,o&&o.unsubscribe(),a&&clearTimeout(a),this.open(t.descriptor,e).then(r,n)},error:e=>{a&&clearTimeout(a),n(e)},complete:()=>{a&&clearTimeout(a),i||n(new hV(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),a=t?setTimeout((()=>{o.unsubscribe(),n(new hV(this.ErrorMessage_ListenTimeout,"ListenTimeout"))}),t):null}))}exchangeAtomicImpl(e){return SV(this,void 0,void 0,(function*(){const t=this.tracer.withUpdatedContext({function:"exchangeAtomicImpl"});if(this.exchangeBusyPromise)throw t.trace("Atomic exchange is already busy"),new lV("An action was already pending on the Ledger device. Please deny or reconnect.");let r;const n=new Promise((e=>{r=e}));this.exchangeBusyPromise=n;let i=!1;const o=setTimeout((()=>{t.trace('Timeout reached, emitting Transport event "unresponsive"',{unresponsiveTimeout:this.unresponsiveTimeout}),i=!0,this.emit("unresponsive")}),this.unresponsiveTimeout);try{const r=yield e();return i&&(t.trace("Device was unresponsive, emitting responsive"),this.emit("responsive")),r}finally{t.trace("Finalize, clearing busy guard"),clearTimeout(o),r&&r(),this.exchangeBusyPromise=null}}))}decorateAppAPIMethods(e,t,r){for(const n of t)e[n]=this.decorateAppAPIMethod(n,e[n],e,r)}decorateAppAPIMethod(e,t,r,n){return(...i)=>SV(this,void 0,void 0,(function*(){const{_appAPIlock:o}=this;if(o)return Promise.reject(new hV("Ledger Device is busy (lock "+o+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(n),yield t.apply(r,i)}finally{this._appAPIlock=null}}))}setTraceContext(e){this.tracer=this.tracer.withContext(e)}updateTraceContext(e){this.tracer.updateContext(e)}getTraceContext(){return this.tracer.getContext()}}kV.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",kV.ErrorMessage_NoDeviceFound="No Ledger device found";const EV=kV;var AV=r(4872).Buffer;function PV(e){const t=AV.alloc(2);return t.writeUInt16BE(e,0),t}const TV={data:AV.alloc(0),dataLength:0,sequence:0},OV=(e,t)=>({makeBlocks(r){let n=AV.concat([PV(r.length),r]);const i=t-5,o=Math.ceil(n.length/i);n=AV.concat([n,AV.alloc(o*i-n.length+1).fill(0)]);const a=[];for(let t=0;ti&&(n=n.slice(0,i)),{data:n,dataLength:i,sequence:o}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}});var CV=r(5353),jV=r.n(CV);var RV;!function(e){e.blue="blue",e.nanoS="nanoS",e.nanoSP="nanoSP",e.nanoX="nanoX",e.stax="stax"}(RV||(RV={}));const IV={[RV.blue]:{id:RV.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:e=>4096},[RV.nanoS]:{id:RV.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:e=>{var t;return jV().lt(null!==(t=jV().coerce(e))&&void 0!==t?t:"","2.0.0")?4096:2048}},[RV.nanoSP]:{id:RV.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:e=>32},[RV.nanoX]:{id:RV.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:e=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[RV.stax]:{id:RV.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:e=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}},MV=(RV.blue,RV.nanoS,RV.nanoSP,RV.nanoX,RV.stax,Object.values(IV)),LV=11415,NV=e=>{const t=MV.find((t=>t.legacyUsbProductId===e));if(t)return t;const r=e>>8,n=MV.find((e=>e.productIdMM===r));return n},DV=[],zV={};for(const r in IV){const e=IV[r],{bluetoothSpec:t}=e;if(t)for(let r=0;re.vendorId===LV))}))}var HV=r(4872).Buffer,VV=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class qV extends EV{constructor(e,t){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.device=e,this.interfaceNumber=t,this.deviceModel=NV(e.productId)}static request(){return VV(this,void 0,void 0,(function*(){const e=yield FV();return qV.open(e)}))}static openConnected(){return VV(this,void 0,void 0,(function*(){const e=yield $V();return 0===e.length?null:qV.open(e[0])}))}static open(e){return VV(this,void 0,void 0,(function*(){yield e.open(),null===e.configuration&&(yield e.selectConfiguration(1)),yield WV(e);const t=e.configurations[0].interfaces.find((({alternates:e})=>e.some((e=>255===e.interfaceClass))));if(!t)throw new cV("No WebUSB interface found for your Ledger device. Please upgrade firmware or contact techsupport.");const r=t.interfaceNumber;try{yield e.claimInterface(r)}catch(o){throw yield e.close(),new cV(o.message)}const n=new qV(e,r),i=t=>{e===t.device&&(navigator.usb.removeEventListener("disconnect",i),n._emitDisconnect(new oV))};return navigator.usb.addEventListener("disconnect",i),n}))}close(){return VV(this,void 0,void 0,(function*(){yield this.exchangeBusyPromise,yield this.device.releaseInterface(this.interfaceNumber),yield WV(this.device),yield this.device.close()}))}exchange(e){return VV(this,void 0,void 0,(function*(){const t=yield this.exchangeAtomicImpl((()=>VV(this,void 0,void 0,(function*(){const{channel:t,packetSize:r}=this;yV("apdu","=> "+e.toString("hex"));const n=OV(t,r),i=n.makeBlocks(e);for(let e=0;e{if(e&&e.message&&e.message.includes("disconnected"))throw this._emitDisconnect(e),new aV(e.message);throw e}));return t}))}setScrambleKey(){}}qV.isSupported=()=>Promise.resolve(!!navigator&&!!navigator.usb&&"function"===typeof navigator.usb.getDevices),qV.list=$V,qV.listen=e=>{let t=!1;return function(){return BV(this,void 0,void 0,(function*(){const e=yield $V();return e.length>0?e[0]:FV()}))}().then((r=>{if(!t){const t=NV(r.productId);e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}}),(t=>{window.DOMException&&t instanceof window.DOMException&&18===t.code?e.error(new uV(t.message)):e.error(new sV(t.message))})),{unsubscribe:function(){t=!0}}};const KV=qV;function WV(e){return VV(this,void 0,void 0,(function*(){try{yield e.reset()}catch(Cle){console.warn(Cle)}}))}var GV=r(4872).Buffer;function ZV(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))}"function"===typeof SuppressedError&&SuppressedError;function YV(e){const t=[];e.split("/").forEach((e=>{let r=parseInt(e,10);Number.isNaN(r)||(e.length>1&&"'"===e[e.length-1]&&(r+=2147483648),t.push(r))}));const r=GV.alloc(1+4*t.length);return r[0]=t.length,t.forEach(((e,t)=>{r.writeUInt32BE(e,1+4*t)})),r}function XV(e,t){const r=GV.alloc(32);r.fill(0);let n=t[e],i=e+1;return n>32&&(i+=n-32,n=32),t.copy(r,32-n,i,i+n),{buffer:r,idxValueStart:i,length:n}}class JV extends Ja{constructor(e){super(),this.message=e,this.name="InvalidLedgerResponseError"}}class QV extends Ja{constructor(e){super(),this.cause=e,this.name="PublicKeyRetrievalError",this.message="Unable to retrieve Public Key from Ledger"}}class eq extends Ja{constructor(){super(),this.name="PublicKeyHashRetrievalError",this.message="Unable to retrieve Public Key Hash from Ledger"}}class tq extends Qa{constructor(e){super(),this.derivationType=e,this.name="InvalidDerivationTypeError",this.message=`Invalid derivation type ${e} expecting one of the following: DerivationType.ED25519, DerivationType.SECP256K1, DerivationType.P256 or DerivationType.BIP32_ED25519`}}var rq;!function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256",e[e.BIP32_ED25519=3]="BIP32_ED25519"}(rq||(rq={}));class nq{constructor(e,t="44'/1729'/0'/0'",r=!0,n=rq.ED25519){if(this.transport=e,this.path=t,this.prompt=r,this.derivationType=n,this.CLA=128,this.INS_GET_PUBLIC_KEY=2,this.INS_PROMPT_PUBLIC_KEY=3,this.INS_SIGN=4,this.FIRST_MESSAGE_SEQUENCE=0,this.LAST_MESSAGE_SEQUENCE=129,this.OTHER_MESSAGE_SEQUENCE=1,this.transport.setScrambleKey("XTZ"),!t.startsWith("44'/1729'"))throw new ss(t,`${hc(Zs.NO_PREFIX_MATCHED)} expecting prefix "44'/1729'".`);if(!Object.values(rq).includes(n))throw new tq(n.toString())}publicKeyHash(){return ZV(this,void 0,void 0,(function*(){if(this._publicKeyHash||(yield this.publicKey()),this._publicKeyHash)return this._publicKeyHash;throw new eq}))}publicKey(){return ZV(this,void 0,void 0,(function*(){if(this._publicKey)return this._publicKey;const e=yield this.getLedgerPublicKey(),t=e[0],r=function(e,t){return 0===t||3===t?e=e.slice(1):(e[0]=2+(1&e[64]),e=e.slice(0,33)),e}(e.slice(1,1+t),this.derivationType),n=this.getPrefixes(),i=vc(r,n.prefPk),o=vc((0,Wa.hash)(r,20),n.prefPkh);return this._publicKey=i,this._publicKeyHash=o,i}))}getLedgerPublicKey(){return ZV(this,void 0,void 0,(function*(){try{let e=this.INS_PROMPT_PUBLIC_KEY;!1===this.prompt&&(e=this.INS_GET_PUBLIC_KEY);return yield this.transport.send(this.CLA,e,this.FIRST_MESSAGE_SEQUENCE,this.derivationType,YV(this.path))}catch(e){throw new QV(e)}}))}secretKey(){return ZV(this,void 0,void 0,(function*(){throw new bs("Secret key cannot be exposed")}))}sign(e,t){return ZV(this,void 0,void 0,(function*(){const r=function(e,t){let r=e;"undefined"!==typeof t&&(r=GV.from(t).toString("hex").concat(e));return r}(e,t),n=GV.from(r,"hex");let i=[];i.push(YV(this.path)),i=function(e,t){let r=0;for(;r!==t.length;){const n=r+230>=t.length?t.length-r:230,i=GV.alloc(n);t.copy(i,0,r,r+n),e.push(i),r+=n}return e}(i,n);const o=yield this.signWithLedger(i);let a;if(this.derivationType===rq.ED25519||this.derivationType===rq.BIP32_ED25519)a=o.slice(0,o.length-2).toString("hex");else{if(!function(e){let t=!0;49!==e[0]&&48!==e[0]&&(t=!1),e[1]+4!==e.length&&(t=!1),2!==e[2]&&(t=!1);const r=e[3];2!==e[4+r]&&(t=!1);const n=5+r;return n+1+e[n]+2!==e.length&&(t=!1),t}(o))throw new JV("Invalid signature return by ledger unable to parse the response");const e=XV(3,o),t=XV(e.idxValueStart+e.length+1,o);a=GV.concat([e.buffer,t.buffer]).toString("hex")}return{bytes:e,sig:vc(a,Ks[Fs.SIG]),prefixSig:vc(a,this.getPrefixes().prefSig),sbytes:e+a}}))}signWithLedger(e){return ZV(this,void 0,void 0,(function*(){let t=yield this.transport.send(this.CLA,this.INS_SIGN,this.FIRST_MESSAGE_SEQUENCE,this.derivationType,e[0]);for(let r=1;r{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}));continue}t.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}const r=t.join("&");return r?`?${r}`:""}createRequest({url:e,method:t,timeout:r=this.timeout,query:n,headers:i={},json:o=!0},a){return aq(this,void 0,void 0,(function*(){const s=e+this.serialize(n);i["Content-Type"]||(i["Content-Type"]="application/json");const c=new AbortController,l=setTimeout((()=>c.abort()),r);try{const e=yield dq(s,{method:t,headers:i,body:JSON.stringify(a),signal:c.signal});if("undefined"===typeof e)throw new Error("Response is undefined");if(e.status>=400){const t=yield e.text();throw new cq(`Http error response: (${e.status}) ${t}`,e.status,e.statusText,t,s)}return o?e.json():e.text()}catch(u){throw u instanceof Error&&"AbortError"===u.name?new lq(r,s):u instanceof cq?u:new sq(String(t),s,u)}finally{clearTimeout(l)}}))}}function fq(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{const r=e[t];let i;if("undefined"!==typeof r){if(Array.isArray(r))return i=vq(r),void(n[t]=i);i=new Us(r),n[t]=i}})),n}!function(e){e.GET_BAKING_RIGHTS="getBakingRights",e.GET_BALLOTS="getBallots",e.GET_BALLOT_LIST="getBallotList",e.GET_BIG_MAP_KEY="getBigMapKey",e.GET_BIG_MAP_EXPR="getBigMapExpr",e.GET_BLOCK_HASH="getBlockHash",e.GET_BLOCK="getBlock",e.GET_BLOCK_HEADER="getBlockHeader",e.GET_BLOCK_METADATA="getBlockMetadata",e.GET_BALANCE="getBalance",e.GET_CHAIN_ID="getChainId",e.GET_CONSTANTS="getConstants",e.GET_CONTRACT="getContract",e.GET_CURRENT_PERIOD="getCurrentPeriod",e.GET_CURRENT_PROPOSAL="getCurrentProposal",e.GET_CURRENT_QUORUM="getCurrentQuorum",e.GET_DELEGATE="getDelegate",e.GET_DELEGATES="getDelegates",e.GET_VOTING_INFO="getVotingInfo",e.GET_ENDORSING_RIGHTS="getEndorsingRights",e.GET_ENTRYPOINTS="getEntrypoints",e.GET_LIVE_BLOCKS="getLiveBlocks",e.GET_MANAGER_KEY="getManagerKey",e.GET_NORMALIZED_SCRIPT="getNormalizedScript",e.GET_PROPOSALS="getProposals",e.GET_PROTOCOLS="getProtocols",e.GET_SAPLING_DIFF_BY_CONTRACT="getSaplingDiffByContract",e.GET_SAPLING_DIFF_BY_ID="getSaplingDiffById",e.GET_SCRIPT="getScript",e.GET_STORAGE="getStorage",e.GET_SUCCESSOR_PERIOD="getSuccessorPeriod",e.GET_TX_ROLLUP_INBOX="getTxRollupInbox",e.GET_TX_ROLLUP_STATE="getTxRollupState",e.GET_VOTES_LISTINGS="getVotesListings",e.PACK_DATA="packData",e.GET_STORAGE_USED_SPACE="getStorageUsedSpace",e.GET_STORAGE_PAID_SPACE="getStoragePaidSpace",e.GET_TICKET_BALANCE="getTicketBalance",e.GET_ALL_TICKET_BALANCES="getAllTicketBalances",e.GET_PENDING_OPERATIONS="getPendingOperations",e.GET_ORIGINATION_PROOF="getOriginationProof"}(gq||(gq={}));var yq,bq,wq,xq,_q,Sq,kq,Eq,Aq,Pq;!function(e){e.TOO_LARGE="too large"}(yq||(yq={})),function(e){e.BAKING_REWARDS="baking rewards",e.REWARDS="rewards",e.FEES="fees",e.DEPOSITS="deposits",e.LEGACY_REWARDS="legacy_rewards",e.LEGACY_FEES="legacy_fees",e.LEGACY_DEPOSITS="legacy_deposits",e.BLOCK_FEES="block fees",e.NONCE_REVELATION_REWARDS="nonce revelation rewards",e.DOUBLE_SIGNING_EVIDENCE_REWARDS="double signing evidence rewards",e.ENDORSING_REWARDS="endorsing rewards",e.BAKING_BONUSES="baking bonuses",e.STORAGE_FEES="storage fees",e.PUNISHMENTS="punishments",e.LOST_ENDORSING_REWARDS="lost endorsing rewards",e.SUBSIDY="subsidy",e.BURNED="burned",e.COMMITMENT="commitment",e.BOOTSTRAP="bootstrap",e.INVOICE="invoice",e.MINTED="minted",e.TX_ROLLUP_REJECTION_REWARDS="tx_rollup_rejection_rewards",e.TX_ROLLUP_REJECTION_PUNISHMENTS="tx_rollup_rejection_punishments",e.BONDS="bonds"}(bq||(bq={})),function(e){e.WASM2="wasm_2_0_0",e.ARITH="arith"}(wq||(wq={})),function(e){e.START="start",e.MOVE="move"}(xq||(xq={})),function(e){e.INBOX_PROOF="inbox_proof",e.REVEAL_PROOF="reveal_proof",e.FIRST_INPUT="first_input"}(_q||(_q={})),function(e){e.RAW_DATA_PROOF="raw_data_proof",e.METADATA_PROOF="metadata_proof",e.DAL_PAGE_PROOF="dal_page_proof"}(Sq||(Sq={})),function(e){e.ONGOING="ongoing",e.ENDED="ended"}(kq||(kq={})),function(e){e.LOSER="loser",e.DRAW="draw"}(Eq||(Eq={})),function(e){e.CONFLICT_RESOLVED="conflict_resolved",e.TIMEOUT="timeout"}(Aq||(Aq={})),function(e){e.ORIGINATION="origination",e.DELEGATION="delegation",e.REVEAL="reveal",e.TRANSACTION="transaction",e.ACTIVATION="activate_account",e.ENDORSEMENT="endorsement",e.PREENDORSEMENT="preendorsement",e.SET_DEPOSITS_LIMIT="set_deposits_limit",e.DOUBLE_PREENDORSEMENT_EVIDENCE="double_preendorsement_evidence",e.ENDORSEMENT_WITH_SLOT="endorsement_with_slot",e.SEED_NONCE_REVELATION="seed_nonce_revelation",e.DOUBLE_ENDORSEMENT_EVIDENCE="double_endorsement_evidence",e.DOUBLE_BAKING_EVIDENCE="double_baking_evidence",e.PROPOSALS="proposals",e.BALLOT="ballot",e.FAILING_NOOP="failing_noop",e.REGISTER_GLOBAL_CONSTANT="register_global_constant",e.TX_ROLLUP_ORIGINATION="tx_rollup_origination",e.TX_ROLLUP_SUBMIT_BATCH="tx_rollup_submit_batch",e.TX_ROLLUP_COMMIT="tx_rollup_commit",e.TX_ROLLUP_RETURN_BOND="tx_rollup_return_bond",e.TX_ROLLUP_FINALIZE_COMMITMENT="tx_rollup_finalize_commitment",e.TX_ROLLUP_REMOVE_COMMITMENT="tx_rollup_remove_commitment",e.TX_ROLLUP_REJECTION="tx_rollup_rejection",e.TX_ROLLUP_DISPATCH_TICKETS="tx_rollup_dispatch_tickets",e.TRANSFER_TICKET="transfer_ticket",e.INCREASE_PAID_STORAGE="increase_paid_storage",e.UPDATE_CONSENSUS_KEY="update_consensus_key",e.DRAIN_DELEGATE="drain_delegate",e.VDF_REVELATION="vdf_revelation",e.EVENT="event",e.TICKET_UPDATES="ticket_updates",e.SMART_ROLLUP_ORIGINATE="smart_rollup_originate",e.SMART_ROLLUP_ADD_MESSAGES="smart_rollup_add_messages",e.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE="smart_rollup_execute_outbox_message",e.SMART_ROLLUP_PUBLISH="smart_rollup_publish",e.SMART_ROLLUP_CEMENT="smart_rollup_cement",e.SMART_ROLLUP_RECOVER_BOND="smart_rollup_recover_bond",e.SMART_ROLLUP_REFUTE="smart_rollup_refute",e.SMART_ROLLUP_TIMEOUT="smart_rollup_timeout"}(Pq||(Pq={}));class Tq{constructor(e,t="main",r=new hq){this.url=e,this.chain=t,this.httpBackend=r}createURL(e){let t=this.url;for(;t.endsWith("/");)t=t.slice(0,-1);return`${t}${e}`}validateAddress(e){const t=oc(e);if(t!==Zs.VALID)throw new is(e,hc(t))}validateContract(e){const t=sc(e);if(t!==Zs.VALID)throw new fs(e,hc(t))}getBlockHash({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/hash`),method:"GET"})}))}getLiveBlocks({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/live_blocks`),method:"GET"})}))}getBalance(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/balance`),method:"GET"});return new Us(r)}))}getStorage(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage`),method:"GET"})}))}getScript(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/script`),method:"GET"})}))}getNormalizedScript(e,t={unparsing_mode:"Readable"},{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/script/normalized`),method:"POST"},t)}))}getContract(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}`),method:"GET"});return Object.assign(Object.assign({},r),{balance:new Us(r.balance)})}))}getManagerKey(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.validateAddress(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/manager_key`),method:"GET"})}))}getDelegate(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){let r;this.validateAddress(e);try{r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/delegate`),method:"GET"})}catch(n){if(!(n instanceof cq&&n.status===iq.NOT_FOUND))throw n;r=null}return r}))}getBigMapKey(e,t,{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.validateAddress(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/big_map_get`),method:"POST"},t)}))}getBigMapExpr(e,t,{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/big_maps/${e}/${t}`),method:"GET"})}))}getDelegates(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/delegates/${e}`),method:"GET"}),n=vq(r,["balance","full_balance","current_frozen_deposits","frozen_deposits","frozen_balance","frozen_deposits_limit","staking_balance","delegated_balance","voting_power"]);return Object.assign(Object.assign(Object.assign({},r),n),{frozen_balance_by_cycle:r.frozen_balance_by_cycle?r.frozen_balance_by_cycle.map((e=>{var{deposit:t,deposits:r,fees:n,rewards:i}=e,o=fq(e,["deposit","deposits","fees","rewards"]);const a=vq({deposit:t,deposits:r,fees:n,rewards:i},["deposit","deposits","fees","rewards"]);return Object.assign(Object.assign({},o),{deposit:a.deposit,deposits:a.deposits,fees:a.fees,rewards:a.rewards})})):void 0})}))}getVotingInfo(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.validateAddress(e),yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/delegates/${e}/voting_info`),method:"GET"})}))}getConstants({block:e}=mq){return pq(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/context/constants`),method:"GET"}),r=vq(t,["time_between_blocks","hard_gas_limit_per_operation","hard_gas_limit_per_block","proof_of_work_threshold","tokens_per_roll","seed_nonce_revelation_tip","block_security_deposit","endorsement_security_deposit","block_reward","endorsement_reward","cost_per_byte","hard_storage_limit_per_operation","test_chain_duration","baking_reward_per_endorsement","delay_per_missing_endorsement","minimal_block_delay","liquidity_baking_subsidy","cache_layout","baking_reward_fixed_portion","baking_reward_bonus_per_slot","endorsing_reward_per_slot","double_baking_punishment","delay_increment_per_round","tx_rollup_commitment_bond","vdf_difficulty","sc_rollup_stake_amount","minimal_stake"]);return Object.assign(Object.assign({},t),r)}))}getBlock({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}`),method:"GET"})}))}getBlockHeader({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/header`),method:"GET"})}))}getBlockMetadata({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/metadata`),method:"GET"})}))}getBakingRights(e={},{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/baking_rights`),method:"GET",query:e})}))}getEndorsingRights(e={},{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/endorsing_rights`),method:"GET",query:e})}))}getBallotList({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/ballot_list`),method:"GET"})}))}getBallots({block:e}=mq){return pq(this,void 0,void 0,(function*(){return vq(yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/ballots`),method:"GET"}),["yay","nay","pass"])}))}getCurrentProposal({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_proposal`),method:"GET"})}))}getCurrentQuorum({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_quorum`),method:"GET"})}))}getVotesListings({block:e}=mq){return pq(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/listings`),method:"GET"});return t.map((e=>(e.voting_power&&(e.voting_power=new Us(e.voting_power)),e))),t}))}getProposals({block:e}=mq){return pq(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/proposals`),method:"GET"});return t.map((e=>e[1]=new Us(e[1]))),t}))}forgeOperations(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/forge/operations`),method:"POST"},e)}))}injectOperation(e){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL("/injection/operation"),method:"POST"},e)}))}preapplyOperations(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/preapply/operations`),method:"POST"},e)}))}getEntrypoints(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){this.validateContract(e);return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/entrypoints`),method:"GET"})}))}runOperation(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/run_operation`),method:"POST"},e)}))}simulateOperation(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/simulate_operation`),method:"POST"},e)}))}runCode(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/run_code`),method:"POST"},e)}))}runScriptView(e,t){var{unparsing_mode:r="Readable"}=e,n=fq(e,["unparsing_mode"]),i=(void 0===t?mq:t).block;return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${i}/helpers/scripts/run_script_view`),method:"POST"},Object.assign({unparsing_mode:r},n))}))}runView(e,t){var{unparsing_mode:r="Readable"}=e,n=fq(e,["unparsing_mode"]),i=(void 0===t?mq:t).block;return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${i}/helpers/scripts/run_view`),method:"POST"},Object.assign({unparsing_mode:r},n))}))}getChainId(){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/chain_id`),method:"GET"})}))}packData(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/pack_data`),method:"POST"},e),{gas:n}=r,i=fq(r,["gas"]);let o=n;const a=new Us(n||"");return a.isNaN()||(o=a),Object.assign({gas:o},i)}))}getRpcUrl(){return this.url}getCurrentPeriod({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_period`),method:"GET"})}))}getSuccessorPeriod({block:e}=mq){return pq(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/successor_period`),method:"GET"})}))}getSaplingDiffById(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/sapling/${e}/get_diff`),method:"GET"})}))}getSaplingDiffByContract(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/single_sapling_get_diff`),method:"GET"})}))}getProtocols({block:e}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/protocols`),method:"GET"})}))}getTxRollupState(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/tx_rollup/${e}/state`),method:"GET"})}))}getTxRollupInbox(e,t,{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/tx_rollup/${e}/inbox/${t}`),method:"GET"})}))}getStorageUsedSpace(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage/used_space`),method:"GET"})}))}getStoragePaidSpace(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage/paid_space`),method:"GET"})}))}getTicketBalance(e,t,{block:r}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/ticket_balance`),method:"POST"},t)}))}getAllTicketBalances(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/all_ticket_balances`),method:"GET"})}))}getPendingOperations(e={}){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/mempool/pending_operations`),method:"GET",query:e})}))}getOriginationProof(e,{block:t}=mq){return pq(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/smart_rollups/all/origination_proof`),method:"POST"},e)}))}}function Oq(e){return"function"===typeof e}function Cq(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var jq=Cq((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Rq(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Iq=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=kI(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(f){e={error:f}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(Oq(c))try{c()}catch(p){i=p instanceof jq?p.errors:[p]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=kI(l),d=u.next();!d.done;d=u.next()){var h=d.value;try{Nq(h)}catch(Cle){i=null!==i&&void 0!==i?i:[],Cle instanceof jq?i=AI(AI([],EI(i)),EI(Cle.errors)):i.push(Cle)}}}catch(m){r={error:m}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(i)throw new jq(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Nq(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Rq(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&Rq(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Mq=Iq.EMPTY;function Lq(e){return e instanceof Iq||e&&"closed"in e&&Oq(e.remove)&&Oq(e.add)&&Oq(e.unsubscribe)}function Nq(e){Oq(e)?e():e.unsubscribe()}var Dq={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zq={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?Mq:(this.currentObservers=null,o.push(e),new Iq((function(){t.currentObservers=null,Rq(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new rK;return e.source=this,e},t.create=function(e,t){return new aK(e,t)},t}(rK),aK=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return bI(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:Mq},t}(oK),sK={now:function(){return(sK.delegate||Date).now()},delegate:void 0},cK=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=sK);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return bI(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i0&&d(i)}),void 0,void 0,(function(){(null===o||void 0===o?void 0:o.closed)||null===o||void 0===o||o.unsubscribe(),s=null}))),!l&&d(null!=n?"number"===typeof n?n:+n-c.now():i)}))}function dW(e){throw new lW(e)}function hW(e,t){return Oq(t)?ZK(e,t,1):ZK(e,1)}function fW(){for(var e=[],t=0;t0&&(t=new Zq({next:function(e){return m.next(e)},error:function(e){u=!0,d(),n=gW(h,i,e),m.error(e)},complete:function(){l=!0,d(),n=gW(h,a),m.complete()}}),wK(e).subscribe(t))}))(e)}}function gW(e,t){for(var r=[],n=2;n=2;return function(n){return n.pipe(e?yW((function(t,r){return e(t,r,n)})):eK,(o=1)<=0?function(){return SK}:CK((function(e,t){var r=0;e.subscribe(jK(t,(function(e){++r<=o&&(t.next(e),o<=r&&t.complete())})))})),r?function(e){return CK((function(t,r){var n=!1;t.subscribe(jK(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))}(t):(void 0===(i=function(){return new bW})&&(i=wW),CK((function(e,t){var r=!1;e.subscribe(jK(t,(function(e){r=!0,t.next(e)}),(function(){return r?t.complete():t.error(i())})))}))));var i,o}}function _W(e){return CK((function(t,r){var n,i=null,o=!1;i=t.subscribe(jK(r,void 0,void 0,(function(a){n=wK(e(a,_W(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0}))),o&&(i.unsubscribe(),i=null,n.subscribe(r))}))}function SW(e,t){return void 0===t&&(t=eK),e=null!==e&&void 0!==e?e:kW,CK((function(r,n){var i,o=!0;r.subscribe(jK(n,(function(r){var a=t(r);!o&&e(i,a)||(o=!1,i=a,n.next(r))})))}))}function kW(e,t){return e===t}function EW(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"===typeof e?e:{count:e}).count,n=void 0===r?1/0:r,i=t.delay,o=t.resetOnSuccess,a=void 0!==o&&o;return n<=0?eK:CK((function(e,t){var r,o=0,s=function(){var c=!1;r=e.subscribe(jK(t,(function(e){a&&(o=0),t.next(e)}),void 0,(function(e){if(o++{r.set(t,e[t])})),r}typecheckKey(e){this.keySchema&&this.keySchema.Typecheck(e)}typecheckValue(e){this.valueSchema&&this.valueSchema.Typecheck(e)}assertTypecheckValue(e){try{this.typecheckValue(e)}catch(t){throw new zW(e,this.valueSchema,"value",t)}}assertTypecheckKey(e){try{this.typecheckKey(e)}catch(t){throw new zW(e,this.keySchema,"key",t)}}serializeDeterministically(e){return MW()(e)}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){for(const e of this.valueMap.keys())yield[this.keyMap.get(e),this.valueMap.get(e)]}get(e){this.assertTypecheckKey(e);const t=this.serializeDeterministically(e);return this.valueMap.get(t)}set(e,t){this.assertTypecheckKey(e),this.assertTypecheckValue(t);const r=this.serializeDeterministically(e);this.keyMap.set(r,e),this.valueMap.set(r,t)}delete(e){this.assertTypecheckKey(e),this.keyMap.delete(this.serializeDeterministically(e)),this.valueMap.delete(this.serializeDeterministically(e))}has(e){this.assertTypecheckKey(e);const t=this.serializeDeterministically(e);return this.keyMap.has(t)&&this.valueMap.has(t)}clear(){this.keyMap.clear(),this.valueMap.clear()}get size(){return this.keyMap.size}forEach(e){for(const[t,r]of this.entries())e(r,t,this)}}RW=DW;class UW extends Ja{constructor(e,t,r){super(),this.value=e,this.token=t,this.name="TokenValidationError";const n=this.token.annot(),i=n?`[${n}] `:"";this.message=`${i}${r}`}}class FW{constructor(e,t,r){this.val=e,this.idx=t,this.fac=r,this.createToken=this.fac}typeWithoutAnnotations(){const e=t=>{if("object"===typeof t){if(Array.isArray(t)){return t.map((t=>e(t)))}const r=t;return r.args?{prim:r.prim,args:r.args.map((t=>e(t)))}:{prim:r.prim}}return t};return(t=this.val).args?{prim:t.prim,args:t.args.map((t=>e(t)))}:{prim:t.prim};var t}annot(){return(Array.isArray(this.val.annots)&&this.val.annots.length>0?this.val.annots[0]:String(this.idx)).replace(/(%|:)(_Liq_entry_)?/,"")}hasAnnotations(){return Array.isArray(this.val.annots)&&this.val.annots.length}get tokenVal(){return this.val}ExtractSignature(){return[[this.ExtractSchema()]]}}class $W extends FW{compare(e,t){return e===t?0:ethis.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(t.get(e))]})))}EncodeObject(e,t){const r=this.objLitToMichelsonMap(e);return this.validate(r),t&&t[VW.prim]?t[VW.prim](r,this.val):Array.from(r.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(r.get(e))]})))}Execute(e,t){if(t&&t[VW.prim])return t[VW.prim](e,this.val);if(Array.isArray(e)){const t=new BW(this.val);return e.forEach((e=>{t.set(this.KeySchema.ToKey(e.args[0]),this.ValueSchema.Execute(e.args[1]))})),t}if("int"in e)return e.int;throw new HW(e,this,`Big map is expecting either an array (Athens) or an object with an int property (Babylon). Got ${JSON.stringify(e)}`)}findAndReturnTokens(e,t){return VW.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),this.ValueSchema.findAndReturnTokens(e,t),t}}VW.prim="big_map";class qW extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="OrValidationError"}}class KW extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Encode(e){const t=e[e.length-1],r=this.createToken(this.val.args[0],this.idx);let n=1;r instanceof KW&&(n=Object.keys(r.ExtractSchema()).length);const i=this.createToken(this.val.args[1],this.idx+n);if(String(r.annot())!==String(t)||r instanceof KW){if(String(i.annot())!==String(t)||i instanceof KW){if(r instanceof KW){const t=r.Encode(e);if(t)return{prim:"Left",args:[t]}}if(i instanceof KW){const t=i.Encode(e);if(t)return{prim:"Right",args:[t]}}return null}return e.pop(),{prim:"Right",args:[i.Encode(e)]}}return e.pop(),{prim:"Left",args:[r.Encode(e)]}}ExtractSignature(){const e=this.createToken(this.val.args[0],this.idx);let t=1;e instanceof KW&&(t=Object.keys(e.ExtractSchema()).length);const r=this.createToken(this.val.args[1],this.idx+t),n=[];if(e instanceof KW)n.push(...e.ExtractSignature());else for(const i of e.ExtractSignature())n.push([e.annot(),...i]);if(r instanceof KW)n.push(...r.ExtractSignature());else for(const i of r.ExtractSignature())n.push([r.annot(),...i]);return n}EncodeObject(e,t){this.validateJavascriptObject(e);const r=Object.keys(e)[0],n=this.createToken(this.val.args[0],this.idx);let i=1;n instanceof KW&&(i=Object.keys(n.ExtractSchema()).length);const o=this.createToken(this.val.args[1],this.idx+i);if(String(n.annot())!==String(r)||n instanceof KW){if(String(o.annot())!==String(r)||o instanceof KW){if(n instanceof KW){const r=n.EncodeObject(e,t);if(r)return{prim:"Left",args:[r]}}if(o instanceof KW){const r=o.EncodeObject(e,t);if(r)return{prim:"Right",args:[r]}}return null}return{prim:"Right",args:[o.EncodeObject(e[r],t)]}}return{prim:"Left",args:[n.EncodeObject(e[r],t)]}}validateJavascriptObject(e){if("object"!==typeof e||Array.isArray(e)||null===e||1!==Object.keys(e).length)throw new qW(e,this,`EncodeObject expects an object with a single key but got: ${JSON.stringify(e)}`)}Execute(e,t){const r=this.createToken(this.val.args[0],this.idx);let n=1;r instanceof KW&&(n=Object.keys(r.ExtractSchema()).length);const i=this.createToken(this.val.args[1],this.idx+n);if("Right"===e.prim)return i instanceof KW?i.Execute(e.args[0],t):{[i.annot()]:i.Execute(e.args[0],t)};if("Left"===e.prim)return r instanceof KW?r.Execute(e.args[0],t):{[r.annot()]:r.Execute(e.args[0],t)};throw new qW(e,this,`Was expecting Left or Right prim but got: ${JSON.stringify(e.prim)}`)}traversal(e,t,r){const n=this.createToken(this.val.args[0],this.idx);let i,o=1;n instanceof KW?(i=e(n),o=Object.keys(n.ExtractSchema()).length):i={[n.annot()]:e(n)};const a=this.createToken(this.val.args[1],this.idx+o);let s;s=a instanceof KW?t(a):{[a.annot()]:t(a)};return r(i,s)}ExtractSchema(){return this.traversal((e=>e.ExtractSchema()),(e=>e.ExtractSchema()),((e,t)=>Object.assign(Object.assign({},e),t)))}generateSchema(){return{__michelsonType:KW.prim,schema:this.traversal((e=>e instanceof KW?e.generateSchema().schema:e.generateSchema()),(e=>e instanceof KW?e.generateSchema().schema:e.generateSchema()),((e,t)=>Object.assign(Object.assign({},e),t)))}}findToken(e){const t=this.createToken(this.val.args[0],this.idx);let r=1;t instanceof KW&&(r=Object.keys(t.ExtractSchema()).length);const n=this.createToken(this.val.args[1],this.idx+r);if(String(t.annot())===String(e)&&!(t instanceof KW)&&t instanceof $W)return t;if(String(n.annot())===String(e)&&!(n instanceof KW)&&n instanceof $W)return n;if(t instanceof KW){const r=t.findToken(e);if(r)return r}if(n instanceof KW){const t=n.findToken(e);if(t)return t}return null}compare(e,t){const r=Object.keys(e)[0];if(r!==Object.keys(t)[0]){return JSON.stringify(this.EncodeObject(e))r.findAndReturnTokens(e,t)),(r=>r.findAndReturnTokens(e,t)),((e,t)=>Object.assign(Object.assign({},e),t))),t}}KW.prim="or";class WW extends Ja{constructor(e){super(e),this.message=e,this.name="TokenArgumentValidationError"}}class GW extends Ja{constructor(e,t){super(),this.val1=e,this.val2=t,this.name="TokenComparisonError",this.message=`Tokens ${JSON.stringify(e)} and ${JSON.stringify(t)} are not comparable`}}function ZW(e,t=YW.prim){if(Array.isArray(e))return ZW({prim:t,args:e},t);if(void 0===e.args)throw new WW(`The value ${JSON.stringify(e)} is an invalid PairToken with no arguments, a pair must have two or more arguments.`);return e.args.length>2?[e.args[0],{prim:t,args:e.args.slice(1)}]:[e.args[0],e.args[1]]}class YW extends $W{constructor(e,t,r){super(Array.isArray(e)?{prim:YW.prim,args:e}:e.prim?e:{prim:YW.prim,args:e},t,r)}args(){return ZW(this.val)}tokens(){let e=0;return this.args().map((t=>{const r=this.createToken(t,this.idx+e);return r instanceof YW?e+=Object.keys(r.ExtractSchema()).length:e++,r}))}Encode(e){return{prim:"Pair",args:this.tokens().map((t=>t.Encode(e)))}}ExtractSignature(){const e=this.args(),t=this.createToken(e[0],this.idx);let r=1;t instanceof KW&&(r=Object.keys(t.ExtractSchema()).length);const n=this.createToken(e[1],this.idx+r),i=[];for(const o of t.ExtractSignature())for(const e of n.ExtractSignature())i.push([...o,...e]);return i}ToBigMapKey(e){return{key:this.EncodeObject(e),type:this.typeWithoutAnnotations()}}ToKey(e){return this.Execute(e)}EncodeObject(e,t){const[r,n]=this.tokens();let i,o;return i=r instanceof YW&&!r.hasAnnotations()?e:e[r.annot()],o=n instanceof YW&&!n.hasAnnotations()?e:e[n.annot()],{prim:"Pair",args:[r.EncodeObject(i,t),n.EncodeObject(o,t)]}}traversal(e,t){const r=this.args(),n=this.createToken(r[0],this.idx);let i,o=1;n instanceof YW&&!n.hasAnnotations()?(i=e(n),n instanceof YW&&(o=Object.keys(n.ExtractSchema()).length)):i={[n.annot()]:e(n)};const a=this.createToken(r[1],this.idx+o);let s;s=a instanceof YW&&!a.hasAnnotations()?t(a):{[a.annot()]:t(a)};return Object.assign(Object.assign({},i),s)}Execute(e,t){const r=ZW(e,"Pair");return this.traversal((e=>e.Execute(r[0],t)),(e=>e.Execute(r[1],t)))}ExtractSchema(){return this.traversal((e=>e.ExtractSchema()),(e=>e.ExtractSchema()))}generateSchema(){return{__michelsonType:YW.prim,schema:this.traversal((e=>e instanceof YW&&!e.hasAnnotations()?e.generateSchema().schema:e.generateSchema()),(e=>e instanceof YW&&!e.hasAnnotations()?e.generateSchema().schema:e.generateSchema()))}}compare(e,t){const[r,n]=this.tokens(),i=(e,t)=>e instanceof YW&&!e.hasAnnotations()?t:t[e.annot()];if(r instanceof $W&&n instanceof $W){const o=r.compare(i(r,e),i(r,t));return 0===o?n.compare(i(n,e),i(n,t)):o}throw new GW(e,t)}findAndReturnTokens(e,t){return YW.prim===e&&t.push(this),this.tokens().map((r=>r.findAndReturnTokens(e,t))),t}}YW.prim="pair";class XW extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="NatValidationError"}}class JW extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return new Us(e[Object.keys(e)[0]])}Encode(e){const t=e.pop();return this.validate(t),{int:new Us(t).toFixed()}}validate(e){const t=new Us(e);if(t.isNaN())throw new XW(e,this,`Value is not a number: ${JSON.stringify(e)}`);if(t.isNegative())throw new XW(e,this,`Value cannot be negative: ${JSON.stringify(e)}`)}EncodeObject(e,t){return this.validate(e),t&&t[JW.prim]?t[JW.prim](e):{int:new Us(e).toFixed()}}ExtractSchema(){return JW.prim}generateSchema(){return{__michelsonType:JW.prim,schema:JW.prim}}ToBigMapKey(e){return{key:{int:String(e)},type:{prim:JW.prim}}}ToKey({int:e}){return new Us(e)}compare(e,t){const r=Number(e),n=Number(t);return r===n?0:re.startsWith("tz"),n=r(e),i=r(t);return n&&!i?-1:i&&!n?1:super.compare(e,t)}findAndReturnTokens(e,t){return tG.prim===e&&t.push(this),t}}tG.prim="address";class rG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="MapValidationError"}}class nG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get ValueSchema(){return this.createToken(this.val.args[1],0)}get KeySchema(){return this.createToken(this.val.args[0],0)}validate(e){if(!BW.isMichelsonMap(e))throw new rG(e,this,`Value ${JSON.stringify(e)} is not a valid MichelsonMap`)}Execute(e,t){const r=new BW(this.val);return e.forEach((e=>{r.set(this.KeySchema.ToKey(e.args[0]),this.ValueSchema.Execute(e.args[1],t))})),r}objLitToMichelsonMap(e){return e instanceof BW?e:"object"===typeof e?0===Object.keys(e).length?new BW:BW.fromLiteral(e):e}Encode(e){const t=this.objLitToMichelsonMap(e.pop());return this.validate(t),Array.from(t.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(t.get(e))]})))}EncodeObject(e,t){const r=this.objLitToMichelsonMap(e);return this.validate(r),t&&t[nG.prim]?t[nG.prim](r):Array.from(r.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(r.get(e))]})))}ExtractSchema(){return{map:{key:this.KeySchema.ExtractSchema(),value:this.ValueSchema.ExtractSchema()}}}generateSchema(){return{__michelsonType:nG.prim,schema:{key:this.KeySchema.generateSchema(),value:this.ValueSchema.generateSchema()}}}findAndReturnTokens(e,t){return nG.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),this.ValueSchema.findAndReturnTokens(e,t),t}}nG.prim="map";class iG extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return"true"===String(e.prim).toLowerCase()}Encode(e){return{prim:e.pop()?"True":"False"}}EncodeObject(e,t){return t&&t[iG.prim]?t[iG.prim](e):{prim:e?"True":"False"}}ExtractSchema(){return iG.prim}generateSchema(){return{__michelsonType:iG.prim,schema:iG.prim}}ToBigMapKey(e){return{key:this.EncodeObject(e),type:{prim:iG.prim}}}ToKey(e){return this.EncodeObject(e)}compare(e,t){return e&&t||!e&&!t?0:e?1:-1}findAndReturnTokens(e,t){return iG.prim===e&&t.push(this),t}}iG.prim="bool";class oG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="TxRollupL2AddressValidationError"}}class aG extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}ToBigMapKey(e){return{key:{bytes:function(e){const t=Xa().decode(e);return kc(t.slice(3,42))}(e)},type:{prim:"bytes"}}}validate(e){if(oc(e)!==Zs.VALID)throw new oG(e,this,`tx_rollup_l2_address is not valid: ${JSON.stringify(e)}`)}Encode(e){const t=e.pop();if(!t)throw new oG(t,this,`arg missing to encode: this -> "${JSON.stringify(t)}"`);return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[aG.prim]?t[aG.prim](e):{string:e}}Execute(e){if(e.string)return e.string;if(!e.bytes)throw new oG(e,this,`value cannot be missing string and byte value. must have one ${JSON.stringify(e)}`);return wc(e.bytes)}ExtractSchema(){return aG.prim}generateSchema(){return{__michelsonType:aG.prim,schema:aG.prim}}ToKey({bytes:e,string:t}){if(t)return t;if(!e)throw new oG(e,this,`value cannot be missing string and byte value. must have one: bytes = ${JSON.stringify(e)}`);return wc(e)}findAndReturnTokens(e,t){return aG.prim===e&&t.push(this),t}}aG.prim="tx_rollup_l2_address";class sG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ContractValidationError"}}class cG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(oc(e)!==Zs.VALID)throw new sG(e,this,`Value ${JSON.stringify(e)} is not a valid contract address.`);return null}Execute(e){if(e.string)return e.string;if(!e.bytes)throw new sG(e,this,`Value ${JSON.stringify(e)} is not a valid contract address. must contain bytes or string.`);return bc(e.bytes)}Encode(e){const t=e.pop();return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[cG.prim]?t[cG.prim](e):{string:e}}ExtractSchema(){return cG.prim}generateSchema(){const e=this.createToken(this.val.args[0],0);return{__michelsonType:cG.prim,schema:{parameter:this.val.args[0]?e.generateSchema():{}}}}findAndReturnTokens(e,t){return cG.prim===e&&t.push(this),t}}cG.prim="contract";class lG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ListValidationError"}}class uG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueSchema(){return this.createToken(this.val.args[0],this.idx)}validate(e){if(!Array.isArray(e))throw new lG(e,this,`Value ${JSON.stringify(e)} is not a valid array`)}Encode(e){const t=e.pop();this.validate(t);const r=this.createToken(this.val.args[0],0);return t.reduce(((e,t)=>[...e,r.EncodeObject(t)]),[])}Execute(e,t){const r=this.createToken(this.val.args[0],0);return this.validate(e),e.reduce(((e,n)=>[...e,r.Execute(n,t)]),[])}EncodeObject(e,t){const r=this.createToken(this.val.args[0],0);return this.validate(e),t&&t[uG.prim]?t[uG.prim](e):e.reduce(((e,t)=>[...e,r.EncodeObject(t)]),[])}ExtractSchema(){return{[uG.prim]:this.valueSchema.ExtractSchema()}}generateSchema(){return{__michelsonType:uG.prim,schema:this.valueSchema.generateSchema()}}findAndReturnTokens(e,t){return uG.prim===e&&t.push(this),this.createToken(this.val.args[0],this.idx).findAndReturnTokens(e,t),t}}uG.prim="list";class dG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="MutezValidationError"}}class hG extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return new Us(e[Object.keys(e)[0]])}ExtractSchema(){return hG.prim}generateSchema(){return{__michelsonType:hG.prim,schema:hG.prim}}validate(e){if(new Us(e).isNaN())throw new dG(e,this,`Value is not a number: ${e}`)}Encode(e){const t=e.pop();return this.validate(t),{int:String(t).toString()}}EncodeObject(e,t){return this.validate(e),t&&t[hG.prim]?t[hG.prim](e):{int:String(e).toString()}}ToBigMapKey(e){return{key:{int:String(e)},type:{prim:hG.prim}}}ToKey({int:e}){return e}compare(e,t){const r=Number(e),n=Number(t);return r===n?0:rthis.KeySchema.compare(e,t))).reduce(((e,t)=>[...e,this.KeySchema.EncodeObject(t)]),[])}Execute(e,t){return e.reduce(((e,r)=>[...e,this.KeySchema.Execute(r,t)]),[])}EncodeObject(e,t){return this.validate(e),t&&t[OG.prim]?t[OG.prim](e):e.sort(((e,t)=>this.KeySchema.compare(e,t))).reduce(((e,t)=>[...e,this.KeySchema.EncodeObject(t)]),[])}ExtractSchema(){return OG.prim}generateSchema(){return{__michelsonType:OG.prim,schema:this.KeySchema.generateSchema()}}findAndReturnTokens(e,t){return OG.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),t}}OG.prim="set";class CG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChainIDValidationError"}}class jG extends $W{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(ac(e)!==Zs.VALID)throw new CG(e,this,`Value ${JSON.stringify(e)} is not a valid ChainID`)}Execute(e){return e[Object.keys(e)[0]]}ExtractSchema(){return jG.prim}generateSchema(){return{__michelsonType:jG.prim,schema:jG.prim}}Encode(e){const t=e.pop();return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[jG.prim]?t[jG.prim](e):{string:e}}ToKey({string:e}){return e}ToBigMapKey(e){return{key:{string:e},type:{prim:jG.prim}}}findAndReturnTokens(e,t){return jG.prim===e&&t.push(this),t}}jG.prim="chain_id";class RG extends Ja{constructor(){super(),this.name="TicketEncodeError",this.message="Tickets cannot be sent to the blockchain; they are created on-chain"}}const IG={prim:"contract"},MG={prim:"int"};class LG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueToken(){return this.createToken(this.val.args[0],this.idx)}Encode(e){throw new RG}EncodeObject(e,t){if(t&&t[LG.prim])return t[LG.prim](e,this.val);throw new RG}Execute(e,t){if(t&&t[LG.prim])return t[LG.prim](e,this.val);const r=this.createToken(IG,this.idx),n=this.valueToken,i=this.createToken(MG,this.idx);return void 0===e.args[2]&&void 0!==e.args[1].args?{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1].args[0],t),amount:i.Execute(e.args[1].args[1],t)}:{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1],t),amount:i.Execute(e.args[2],t)}}ExtractSchema(){return{ticketer:cG.prim,value:this.valueToken.ExtractSchema(),amount:yG.prim}}generateSchema(){return{__michelsonType:LG.prim,schema:{value:this.valueToken.generateSchema(),ticketer:{__michelsonType:cG.prim,schema:cG.prim},amount:{__michelsonType:yG.prim,schema:yG.prim}}}}findAndReturnTokens(e,t){return LG.prim===e&&t.push(this),this.valueToken.findAndReturnTokens(e,t),t}}LG.prim="ticket";class NG extends Ja{constructor(){super(),this.name="TicketDeprecatedEncodeError",this.message="Ticket_deprecated cannot be sent to the blockchain; they are created on-chain"}}const DG={prim:"contract"},zG={prim:"int"};class BG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueToken(){return this.createToken(this.val.args[0],this.idx)}Encode(e){throw new NG}EncodeObject(e,t){if(t&&t[BG.prim])return t[BG.prim](e,this.val);throw new NG}Execute(e,t){if(t&&t[BG.prim])return t[BG.prim](e,this.val);const r=this.createToken(DG,this.idx),n=this.valueToken,i=this.createToken(zG,this.idx);return void 0===e.args[2]&&void 0!==e.args[1].args?{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1].args[0],t),amount:i.Execute(e.args[1].args[1],t)}:{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1],t),amount:i.Execute(e.args[2],t)}}ExtractSchema(){return{ticketer:cG.prim,value:this.valueToken.ExtractSchema(),amount:yG.prim}}generateSchema(){return{__michelsonType:BG.prim,schema:{value:this.valueToken.generateSchema(),ticketer:{__michelsonType:cG.prim,schema:cG.prim},amount:{__michelsonType:yG.prim,schema:yG.prim}}}}findAndReturnTokens(e,t){return BG.prim===e&&t.push(this),this.valueToken.findAndReturnTokens(e,t),t}}BG.prim="ticket_deprecated";class UG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="NeverTokenError"}}class FG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Encode(e){const t=e.pop();throw new UG(t,this,`Assigning a value to the type never is forbidden. Trying to assign ${JSON.stringify(t)}.`)}EncodeObject(e,t){if(t&&t[FG.prim])return t[FG.prim](e);throw new UG(e,this,`Assigning a value to the type never is forbidden. Trying to assign ${JSON.stringify(e)}.`)}Execute(e){throw new UG(e,this,`There is no literal value for the type never. Trying to execute ${JSON.stringify(e)}.`)}ExtractSchema(){return FG.prim}generateSchema(){return{__michelsonType:FG.prim,schema:FG.prim}}findAndReturnTokens(e,t){return FG.prim===e&&t.push(this),t}}FG.prim="never";class $G extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingStateValidationError"}}class HG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}isValid(e){return"object"===typeof e&&0===Object.keys(e).length}Execute(e,t){if(t&&t[HG.prim])return t[HG.prim](e,this.val);if("int"in e)return e.int;throw new $G(e,this,`Sapling state is expecting an object with an int property. Got ${JSON.stringify(e)}`)}Encode(e){const t=e.pop();if(this.isValid(t))return[];throw new $G(t,this,`Invalid sapling_state. Received: ${JSON.stringify(t)} while expecting: {}`)}EncodeObject(e,t){if(t&&t[HG.prim])return t[HG.prim](e);if(this.isValid(e))return[];throw new $G(e,this,`Invalid sapling_state. Received: ${JSON.stringify(e)} while expecting: {}`)}ExtractSchema(){return{[HG.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:HG.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return HG.prim===e&&t.push(this),t}}HG.prim="sapling_state";class VG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingTransactionValidationError"}}class qG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){throw new VG(e,this,`There is no literal value for the sapling_transaction type. Got: ${JSON.stringify(e)}.`)}validateBytes(e){const t=/^(0x|0X)?([0-9a-fA-F]*$)/.exec(e);if(t&&t[2].length%2===0)return t[2];throw new VG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.validateBytes(this.convertUint8ArrayToHexString(t)),{bytes:String(t).toString()}}EncodeObject(e,t){return e=this.validateBytes(this.convertUint8ArrayToHexString(e)),t&&t[qG.prim]?t[qG.prim](e):{bytes:String(e).toString()}}ExtractSchema(){return{[qG.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:qG.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return qG.prim===e&&t.push(this),t}}qG.prim="sapling_transaction";class KG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingTransactionDeprecatedValidationError"}}class WG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){throw new KG(e,this,`There is no literal value for the sapling_transaction_deprecated type. Got: ${JSON.stringify(e)}.`)}validateBytes(e){const t=/^(0x|0X)?([0-9a-fA-F]*$)/.exec(e);if(t&&t[2].length%2===0)return t[2];throw new KG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.validateBytes(this.convertUint8ArrayToHexString(t)),{bytes:String(t).toString()}}EncodeObject(e,t){return e=this.validateBytes(this.convertUint8ArrayToHexString(e)),t&&t[WG.prim]?t[WG.prim](e):{bytes:String(e).toString()}}ExtractSchema(){return{[WG.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:WG.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return WG.prim===e&&t.push(this),t}}WG.prim="sapling_transaction_deprecated";class GG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381frValidationError"}}class ZG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new GG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return"number"===typeof t?{int:t.toString()}:(t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t})}EncodeObject(e,t){return t&&t[ZG.prim]?t[ZG.prim](e):"number"===typeof e?{int:e.toString()}:(e=this.convertUint8ArrayToHexString(e),this.validate(e),{bytes:e})}Execute(e){return e.bytes}ExtractSchema(){return ZG.prim}generateSchema(){return{__michelsonType:ZG.prim,schema:ZG.prim}}findAndReturnTokens(e,t){return ZG.prim===e&&t.push(this),t}}ZG.prim="bls12_381_fr";class YG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381g1ValidationError"}}class XG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new YG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[XG.prim]?t[XG.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return XG.prim}generateSchema(){return{__michelsonType:XG.prim,schema:XG.prim}}findAndReturnTokens(e,t){return XG.prim===e&&t.push(this),t}}XG.prim="bls12_381_g1";class JG extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381g2ValidationError"}}class QG extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new JG(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[QG.prim]?t[QG.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return QG.prim}generateSchema(){return{__michelsonType:QG.prim,schema:QG.prim}}findAndReturnTokens(e,t){return QG.prim===e&&t.push(this),t}}QG.prim="bls12_381_g2";class eZ extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChestValidationError"}}class tZ extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!=0)throw new eZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[tZ.prim]?t[tZ.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return tZ.prim}generateSchema(){return{__michelsonType:tZ.prim,schema:tZ.prim}}findAndReturnTokens(e,t){return tZ.prim===e&&t.push(this),t}}tZ.prim="chest";class rZ extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChestKeyValidationError"}}class nZ extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new rZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?LW.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[nZ.prim]?t[nZ.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return nZ.prim}generateSchema(){return{__michelsonType:nZ.prim,schema:nZ.prim}}findAndReturnTokens(e,t){return nZ.prim===e&&t.push(this),t}}nZ.prim="chest_key";class iZ extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="GlobalConstantEncodingError"}}class oZ extends UW{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="GlobalConstantDecodingError"}}class aZ extends FW{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e,t){if(t&&t[aZ.prim])return t[aZ.prim](e,this.val);throw new oZ(e,this,`Unable to decode a value represented by a global constants. Please provide an expanded script to the Michelson-Encoder or semantics for the decoding. The following global constant hash was encountered: ${this.val.args[0].string}.`)}Encode(e){throw new iZ(e,this,`Unable to encode a script containing global constants. Please provide an expanded script to the Michelson-Encoder. The following global constant hash was encountered: ${this.val.args[0].string}.`)}EncodeObject(e,t){if(t&&t[aZ.prim])return t[aZ.prim](e);throw new iZ(e,this,`Unable to encode a script containing global constants. Please provide an expanded script to the Michelson-Encoder. The following global constant hash was encountered: ${this.val.args[0].string}.`)}ExtractSchema(){return aZ.prim}generateSchema(){return{__michelsonType:aZ.prim,schema:{hash:this.val.args[0].string}}}findAndReturnTokens(e,t){return aZ.prim===e&&t.push(this),t}}aZ.prim="constant";const sZ=[YW,JW,QW,VW,tG,aG,nG,iG,KW,cG,uG,hG,pG,mG,gG,yG,bG,xG,SG,EG,AG,PG,OG,jG,LG,BG,FG,HG,qG,WG,ZG,XG,QG,tZ,nZ,aZ];class cZ extends Ja{constructor(e,t){super(e),this.message=e,this.data=t,this.name="Invalid token error"}}function lZ(e,t){if(Array.isArray(e))return new YW(e,t,lZ);const r=sZ.find((t=>t.prim===e.prim));if(!r)throw new cZ(`Malformed data: ${JSON.stringify(e)}. Expected a value with a valid prim property`,e);return new r(e,t,lZ)}class uZ extends us{constructor(e,t,r,n){super(e,t,r,n),this.viewName=e,this.sigs=t,this.args=r,this.cause=n,this.name="ParameterEncodingError",this.message=`Could not encode parameter ${JSON.stringify(r)} received for name "${e}" expecting one of the following signatures ${JSON.stringify(t)}`}}class dZ extends Ja{constructor(e,t){super(),this.script=e,this.reason=t,this.name="InvalidScriptError";let r="Invalid on-chain view found in the following script.";t&&(r+=` Reason: ${t}.`),r+=`Script: ${JSON.stringify(e)}`,this.message=r}}class hZ extends Ja{constructor(e,t){super(),this.script=e,this.reason=t,this.name="InvalidRpcResponseError";let r="Invalid RPC response passed as argument(s).";t&&(r+=` Reason: ${t}.`),r+=` Received: ${JSON.stringify(e)}`,this.message=r}}class fZ extends Ja{constructor(e){super(e),this.message=e,this.name="InvalidBigMapSchemaError"}}class pZ extends Ja{constructor(e,t){super(e),this.message=e,this.value=t,this.name="InvalidBigMapDiffError"}}class mZ extends Ja{constructor(e,t,r,n){super(),this.details=t,this.schema=r,this.value=n,this.name="BigMapEncodingError",this.message=`Unable to encode the big map ${e}. Schema is: ${JSON.stringify(r)}. The ${e} is: ${JSON.stringify(n)}. Error details: ${t}`}}class gZ extends Ja{constructor(e,t,r,n,i){super(),this.details=t,this.schema=r,this.value=n,this.semantics=i,this.name="StorageEncodingError",this.message=`Unable to encode ${e}. The schema is: ${JSON.stringify(r)}, the value is: ${JSON.stringify(n)}.${i?`And the semantic is: ${JSON.stringify(i)}`:""}. Error details: ${t}`}}class vZ extends Ja{constructor(e){super(e),this.message=e,this.name="MissingArgumentError"}}var yZ;const bZ=Symbol.for("taquito-schema-type-symbol");function wZ(e,t=YW.prim){var r,n;if(Array.isArray(e))return wZ({prim:t,args:e},t);const i=e;return i.prim===t&&i.args&&i.args.length>2?Object.assign(Object.assign({},i),{args:[null===(r=i.args)||void 0===r?void 0:r[0],{prim:t,args:null===(n=i.args)||void 0===n?void 0:n.slice(1)}]}):i}function xZ(e,t){if(void 0===e||void 0===t)return e===t;const r=wZ(e),n=wZ(t);return r.prim===n.prim&&(void 0===r.args&&void 0===n.args||void 0!==r.args&&void 0!==n.args&&r.args.length===n.args.length&&r.args.every(((e,t)=>{var r,i;return xZ(e,null!==(i=null===(r=n.args)||void 0===r?void 0:r[t])&&void 0!==i?i:{})})))&&(void 0===r.annots&&void 0===n.annots||void 0!==r.annots&&void 0!==n.annots&&r.annots.length===n.annots.length&&r.annots.every(((e,t)=>{var r;return e===(null===(r=n.annots)||void 0===r?void 0:r[t])})))}class _Z{static isSchema(e){return e&&!0===e[bZ]}static fromRPCResponse(e){if(!e)throw new hZ(e,"the RPC response is empty");if(!e.script)throw new hZ(e,"the RPC response has no script");if(!Array.isArray(e.script.code))throw new hZ(e,"The response.script.code should be an array");let t=e.script.code;for(;1===t.length&&Array.isArray(t[0]);)t=t[0];const r=t.find((e=>"prim"in e&&"storage"===e.prim));if(!r||!Array.isArray(r.args))throw new hZ(e,'The response.script.code has an element of type {prim: "storage"}, but its args is not an array');return new _Z(r.args[0])}isExpressionExtended(e){return"prim"in e&&Array.isArray(e.args)}constructor(e){if(this.val=e,this[yZ]=!0,this.root=lZ(e,0),this.root instanceof VW)this.bigMap=this.root;else if(this.isExpressionExtended(e)&&"pair"===e.prim){const t=e.args[0];this.isExpressionExtended(t)&&"big_map"===t.prim&&(this.bigMap=new VW(t,0,lZ))}}removeTopLevelAnnotation(e){return(this.root instanceof YW||this.root instanceof KW)&&this.root.hasAnnotations()&&"object"===typeof e&&1===Object.keys(e).length?e[Object.keys(e)[0]]:e}Execute(e,t){const r=this.root.Execute(e,t);return this.removeTopLevelAnnotation(r)}Typecheck(e){this.root instanceof VW&&Number.isInteger(Number(e))||this.root instanceof LG&&e.ticketer&&e.value&&e.amount||this.root instanceof BG&&e.ticketer&&e.value&&e.amount||this.root instanceof nG&&this.root.ValueSchema instanceof VW||this.root.EncodeObject(e)}ExecuteOnBigMapDiff(e,t){if(!this.bigMap)throw new fZ("Big map schema is undefined");if(!Array.isArray(e))throw new pZ(`Big map diff must be an array, got: ${JSON.stringify(e)}`,e);const r=e.map((({key:e,value:t})=>({args:[e,t]})));return this.bigMap.Execute(r,t)}ExecuteOnBigMapValue(e,t){if(!this.bigMap)throw new fZ("Big map schema is undefined");return this.bigMap.ValueSchema.Execute(e,t)}EncodeBigMapKey(e){if(!this.bigMap)throw new fZ("Big map schema is undefined");try{return this.bigMap.KeySchema.ToBigMapKey(e)}catch(t){throw new mZ("key",t,this.bigMap.KeySchema,e)}}Encode(e,t){try{return this.root.EncodeObject(e,t)}catch(r){if(r instanceof UW)throw r;throw new gZ("storage object",r,this.root,e,t)}}ExtractSchema(){return this.removeTopLevelAnnotation(this.root.ExtractSchema())}generateSchema(){return this.removeTopLevelAnnotation(this.root.generateSchema())}ComputeState(e,t){if(!this.bigMap)throw new fZ("Big map schema is undefined");const r=e.reduce(((e,t)=>Object.assign(Object.assign({},e),this.ExecuteOnBigMapDiff(t.contents[0].metadata.operation_result.big_map_diff))),{});return Object.assign(Object.assign({},this.Execute(t)),{[this.bigMap.annot()]:r})}FindFirstInTopLevelPair(e,t){return this.findValue(this.root.val,e,t)}findValue(e,t,r){if(xZ(r,e))return t;if(Array.isArray(e)||"pair"===e.prim){const n=wZ(e),i=wZ(t,"Pair");if(void 0===n.args||void 0===i.args)throw new vZ("Tokens have no arguments");if(n.args[0])return this.findValue(n.args[0],i.args[0],r)||this.findValue(n.args[1],i.args[1],r)}}findToken(e){return this.root.findAndReturnTokens(e,[])}}yZ=bZ;class SZ{static fromRPCResponse(e){if(!e)throw new hZ(e,"the RPC response is empty");if(!e.script)throw new hZ(e,"the RPC response has no script");if(!Array.isArray(e.script.code))throw new hZ(e,"The response.script.code should be an array");const t=e.script.code.find((e=>"prim"in e&&"parameter"===e.prim));if(!t)throw new hZ(e,'The response.script.code should have an element of type {prim: "parameter"}');if(!Array.isArray(t.args))throw new hZ(e,'The response.script.code has an element of type {prim: "parameter"}, but its args is not an array');return new SZ(t.args[0])}get isMultipleEntryPoint(){return this.root instanceof KW||this.root instanceof mG&&this.root.subToken()instanceof KW}get hasAnnotation(){return!this.isMultipleEntryPoint||"0"!==Object.keys(this.ExtractSchema())[0]}constructor(e){this.root=lZ(e,0)}Execute(e,t){return this.root.Execute(e,t)}Encode(...e){try{return this.root.Encode(e.reverse())}catch(t){if(t instanceof UW)throw t;throw new uZ("Unable to encode parameter",this.root,e,t)}}EncodeObject(e,t){try{return this.root.EncodeObject(e,t)}catch(r){if(r instanceof UW)throw r;throw new uZ("Unable to encode parameter object",this.root,e,r)}}ExtractSchema(){return this.root.ExtractSchema()}generateSchema(){return this.root.generateSchema()}ExtractSignatures(){return this.root.ExtractSignature()}}class kZ{static fromRPCResponse(e){const t=[],r=e&&e.script&&Array.isArray(e.script.code)&&e.script.code.filter((e=>"view"===e.prim));return r&&r.forEach((e=>{t.push(new kZ(e.args))})),t}constructor(e){if(!e)throw new dZ(e,"the args are not defined");if(4!==e.length)throw new dZ(e,"there should be exactly 4 arguments");if(!("string"in e[0])||!e[0].string)throw new dZ(e,"The first argument should be a string, representing the view name. It should be in the form: { string: 'viewName' }");this.viewName=e[0].string,this.viewArgsType=e[1],this.viewReturnType=e[2],this.instructions=e[3],this.rootArgsType=lZ(this.viewArgsType,0),this.rootReturnType=lZ(this.viewReturnType,0)}encodeViewArgs(e){try{return this.rootArgsType.EncodeObject(e)}catch(t){throw new uZ(this.viewName,void 0,e,t)}}decodeViewResult(e,t){return this.rootReturnType.Execute(e,t)}extractArgsSchema(){return this.rootArgsType.ExtractSchema()}extractResultSchema(){return this.rootReturnType.ExtractSchema()}}class EZ{constructor(e,t){this.tag=e,this.type=t}static fromMichelineValue(e){var t,r;return new EZ(null===(t=e.annots)||void 0===t?void 0:t[0],null===(r=e.args)||void 0===r?void 0:r[0])}static fromRPCResponse(e){const t=[];return e.script.code.forEach((e=>{"prim"in e&&"code"===e.prim&&"args"in e&&e.args&&t.push(...EZ.extractEventsRecursively(e.args))})),EZ.removeDuplicates(t)}static removeDuplicates(e){const t=[];return e.forEach((e=>{const r=t.findIndex((t=>t.tag===e.tag&&xZ(t.type,e.type)));-1===r&&t.push(e)})),t}static extractEventsRecursively(e){return Array.isArray(e)?e.flatMap((e=>EZ.extractEventsRecursively(e))):"prim"in e?"EMIT"===e.prim?[EZ.fromMichelineValue(e)]:"args"in e&&e.args?e.args.flatMap((e=>EZ.extractEventsRecursively(e))):[]:[]}}const AZ=Symbol(),PZ=Symbol("source_reference");class TZ extends Ja{constructor(e,t,r){super(),this.src=e,this.idx=t,this.message=r,this.name="ScanError"}}var OZ;!function(e){e[e.Comment=0]="Comment",e[e.Number=1]="Number",e[e.String=2]="String",e[e.Bytes=3]="Bytes",e[e.Ident=4]="Ident"}(OZ||(OZ={}));const CZ=new RegExp("\\s"),jZ=new RegExp("[:@%_A-Za-z]"),RZ=new RegExp("[@%_\\.A-Za-z0-9]"),IZ=new RegExp("[0-9]"),MZ=new RegExp("[0-9a-fA-F]");function*LZ(e,t=!1){let r=0;for(;r1&&"0x"===e.substring(r,r+2)){for(r+=2;r1&&"/*"===e.substring(r,r+2)){for(r+=2;r1&&"*/"===e.substring(r,r+2));)r++;if(r===e.length)throw new TZ(e,r,"Unterminated C style comment");r+=2,t&&(yield{t:OZ.Comment,v:e.slice(i,r),first:i,last:r})}else{if("("!==n&&")"!==n&&"{"!==n&&"}"!==n&&";"!==n)throw new TZ(e,r,`Invalid character at offset ${r}: \`${n}'`);r++,yield{t:n,v:n,first:i,last:r}}}}const NZ=Symbol("ref_contract");var DZ;!function(e){e.Ps9mPmXa="Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P",e.PtCJ7pwo="PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY",e.PsYLVpVv="PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt",e.PsddFKi3="PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP",e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdoTez="PtEdoTezd3RHSC31mpxxo1npxFjoWWcFgQtxapi51Z8TLu6v6Uq",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangzH="PtHangzHogokSuiMHemCuowEavgYTP8J5qQ9fQS793MHYFpCY3r",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.PsiThaCa="PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakarta="PtJakartaiDz69SfDDLXJSiuZqTSeSKRDbKVZC8MNzJnvRjvnGw",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(DZ||(DZ={}));const zZ=DZ.Psithaca2,BZ={Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P:0,PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY:1,PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt:2,PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP:3,Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd:4,PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU:5,PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS:5,PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb:6,PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo:7,PtEdoTezd3RHSC31mpxxo1npxFjoWWcFgQtxapi51Z8TLu6v6Uq:8,PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA:8,PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i:9,PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV:10,PtHangzHogokSuiMHemCuowEavgYTP8J5qQ9fQS793MHYFpCY3r:11,PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx:11,PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP:12,Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A:12,PtJakartaiDz69SfDDLXJSiuZqTSeSKRDbKVZC8MNzJnvRjvnGw:13,PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY:13,PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg:14,PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW:15,PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc:16,PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1:16,PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf:17,ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK:18};function UZ(e,t){return BZ[e][e+1,t])),i+=s,o+=l;break}case"I":o!==r.length&&(a[1]=r[o++]);break;default:throw new FZ(e,`${e.prim}: unexpected character: ${l}`)}return{r:n(s,c,[0,a]),n:i,an:o}}function KZ(e,t,r,n){const i=t[0];switch(i){case"A":return t.length>1?[{prim:"DUP"},{prim:"DIP",args:[[{prim:"CAR",annots:["@%%"]},KZ(e,t.slice(1),[],n)]]},{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:["%@","%@",...r]}]:n.a;case"D":return t.length>1?[{prim:"DUP"},{prim:"DIP",args:[[{prim:"CDR",annots:["@%%"]},KZ(e,t.slice(1),[],n)]]},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@","%@",...r]}]:n.d;default:throw new FZ(e,`${e.prim}: unexpected character: ${i}`)}}function WZ(e,t){let r=e.length;for(;r>0&&e[r-1]===t;)r--;return e.slice(0,r)}function GZ(e){const t=[],r=[];if(void 0!==e)for(const n of e)(0!==n.length&&"%"===n[0]?t:r).push(n);return{fields:t,rest:r}}function ZZ({prim:e,annots:t,args:r}){return Object.assign(Object.assign({prim:e},t&&{annots:t}),r&&{args:r})}const YZ=/^P[PAI]{3,}R$/,XZ=/^UNP[PAI]{2,}R$/,JZ=/^C[AD]{2,}R$/,QZ=/^SET_C[AD]+R$/,eY=/^MAP_C[AD]+R$/,tY=/^DI{2,}P$/,rY=/^DU+P$/;class nY extends Ja{constructor(e,t){super(),this.token=e,this.message=t,this.name="MichelineParseError"}}class iY extends Ja{constructor(e,t){super(),this.node=e,this.message=t,this.name="JSONParseError"}}const oY=new nY(null,"Unexpected EOF");function aY(e){return e.t===OZ.Ident&&("@"===e.v[0]||"%"===e.v[0]||":"===e.v[0])}const sY=new RegExp("^-?[0-9]+$"),cY=new RegExp("^([0-9a-fA-F]{2})*$");class lY{constructor(e){this.opt=e}expand(e){var t,r,n;if(void 0!==(null===(t=this.opt)||void 0===t?void 0:t.expandGlobalConstant)&&"constant"===e.prim){const t=function(e,t){return void 0!==e.args&&1===e.args.length&&"string"in e.args[0]&&e.args[0].string in t?t[e.args[0].string]:e}(e,this.opt.expandGlobalConstant);return t!==e&&(t[PZ]=Object.assign(Object.assign({},e[PZ]||{first:0,last:0}),{globalConstant:e})),t}if(void 0===(null===(r=this.opt)||void 0===r?void 0:r.expandMacros)||(null===(n=this.opt)||void 0===n?void 0:n.expandMacros)){const t=function(e,t){const r=(null===t||void 0===t?void 0:t.protocol)||zZ;function n(e){return void 0!==e?[{prim:"RENAME",annots:e}]:[]}switch(e.prim){case"CMPEQ":case"CMPNEQ":case"CMPLT":case"CMPGT":case"CMPLE":case"CMPGE":if($Z(e,0))return[{prim:"COMPARE"},ZZ({prim:e.prim.slice(3),annots:e.annots})];break;case"IFEQ":case"IFNEQ":case"IFLT":case"IFGT":case"IFLE":case"IFGE":if($Z(e,2))return[{prim:e.prim.slice(2)},ZZ({prim:"IF",annots:e.annots,args:e.args})];break;case"IFCMPEQ":case"IFCMPNEQ":case"IFCMPLT":case"IFCMPGT":case"IFCMPLE":case"IFCMPGE":if($Z(e,2))return[{prim:"COMPARE"},{prim:e.prim.slice(5)},ZZ({prim:"IF",annots:e.annots,args:e.args})];break;case"FAIL":if($Z(e,0)&&HZ(e))return[{prim:"UNIT"},{prim:"FAILWITH"}];break;case"ASSERT":if($Z(e,0)&&HZ(e))return[{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_EQ":case"ASSERT_NEQ":case"ASSERT_LT":case"ASSERT_GT":case"ASSERT_LE":case"ASSERT_GE":if($Z(e,0)&&HZ(e))return[{prim:e.prim.slice(7)},{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_CMPEQ":case"ASSERT_CMPNEQ":case"ASSERT_CMPLT":case"ASSERT_CMPGT":case"ASSERT_CMPLE":case"ASSERT_CMPGE":if($Z(e,0)&&HZ(e))return[[{prim:"COMPARE"},{prim:e.prim.slice(10)}],{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_NONE":if($Z(e,0)&&HZ(e))return[{prim:"IF_NONE",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_SOME":if($Z(e,0))return[{prim:"IF_NONE",args:[[[{prim:"UNIT"},{prim:"FAILWITH"}]],n(e.annots)]}];break;case"ASSERT_LEFT":if($Z(e,0))return[{prim:"IF_LEFT",args:[n(e.annots),[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_RIGHT":if($Z(e,0))return[{prim:"IF_LEFT",args:[[[{prim:"UNIT"},{prim:"FAILWITH"}]],n(e.annots)]}];break;case"IF_SOME":if($Z(e,2))return[ZZ({prim:"IF_NONE",annots:e.annots,args:[e.args[1],e.args[0]]})];break;case"IF_RIGHT":if($Z(e,2))return[ZZ({prim:"IF_LEFT",annots:e.annots,args:[e.args[1],e.args[0]]})];break;case"CAR":case"CDR":if(void 0===e.args)return e;if($Z(e,1)&&VZ(e,e.args[0])){const t=parseInt(e.args[0].int,10);return ZZ({prim:"GET",args:[{int:"CAR"===e.prim?String(2*t+1):String(2*t)}],annots:e.annots})}}if(YZ.test(e.prim)&&$Z(e,0)){const{fields:t,rest:r}=GZ(e.annots),{r:n}=qZ(e,e.prim.slice(1),t,((e,t,r)=>[...e||[],...t||[],r]));return n.map((([e,t],i)=>{const o=[...WZ(t,null).map((e=>null===e?"%":e)),...0===e&&i===n.length-1?r:[]],a=ZZ({prim:"PAIR",annots:0!==o.length?o:void 0});return 0===e?a:{prim:"DIP",args:1===e?[[a]]:[{int:String(e)},[a]]}}))}if(XZ.test(e.prim)){if(UZ(r,DZ.PtEdo2Zk)&&$Z(e,0)){const{r:t}=qZ(e,e.prim.slice(3),e.annots||[],((e,t,r)=>[r,...t||[],...e||[]]));return t.map((([e,t])=>{const r=[{prim:"DUP"},ZZ({prim:"CAR",annots:null!==t[0]?[t[0]]:void 0}),{prim:"DIP",args:[[ZZ({prim:"CDR",annots:null!==t[1]?[t[1]]:void 0})]]}];return 0===e?r:{prim:"DIP",args:1===e?[[r]]:[{int:String(e)},[r]]}}))}if("UNPAIR"===e.prim)return e;if($Z(e,0)){const{r:t}=qZ(e,e.prim.slice(3),[],((e,t,r)=>[r,...t||[],...e||[]]));return t.map((([e])=>{const t=ZZ({prim:"UNPAIR"});return 0===e?t:{prim:"DIP",args:1===e?[[t]]:[{int:String(e)},[t]]}}))}}if(JZ.test(e.prim)&&$Z(e,0)){const t=[...e.prim.slice(1,e.prim.length-1)];return t.map(((r,n)=>{const i=n===t.length-1?e.annots:void 0;switch(r){case"A":return ZZ({prim:"CAR",annots:i});case"D":return ZZ({prim:"CDR",annots:i});default:throw new FZ(e,`unexpected character: ${r}`)}}))}if(QZ.test(e.prim)&&$Z(e,0)){const{fields:t,rest:r}=GZ(e.annots);if(t.length>1)throw new FZ(e,`unexpected annotation on macro ${e.prim}: ${t}`);const n=0!==t.length?{a:[{prim:"DUP"},{prim:"CAR",annots:t},{prim:"DROP"},{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:[t[0],"%@"]}],d:[{prim:"DUP"},{prim:"CDR",annots:t},{prim:"DROP"},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@",t[0]]}]}:{a:[{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:["%","%@"]}],d:[{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@","%"]}]};return KZ(e,e.prim.slice(5,e.prim.length-1),r,n)}if(eY.test(e.prim)&&$Z(e,1)){const{fields:t}=GZ(e.annots);if(t.length>1)throw new FZ(e,`unexpected annotation on macro ${e.prim}: ${t}`);const r={a:[{prim:"DUP"},{prim:"CDR",annots:["@%%"]},{prim:"DIP",args:[[ZZ({prim:"CAR",annots:0!==t.length?["@"+t[0].slice(1)]:void 0}),e.args[0]]]},{prim:"SWAP"},{prim:"PAIR",annots:[0!==t.length?t[0]:"%","%@"]}],d:[{prim:"DUP"},ZZ({prim:"CDR",annots:0!==t.length?["@"+t[0].slice(1)]:void 0}),e.args[0],{prim:"SWAP"},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@",0!==t.length?t[0]:"%"]}]};return KZ(e,e.prim.slice(5,e.prim.length-1),[],r)}if(tY.test(e.prim)&&$Z(e,1)){let t=0;for(;"I"===e.prim[1+t];)t++;return ZZ({prim:"DIP",args:[{int:String(t)},e.args[0]]})}if(rY.test(e.prim)){let t=0;for(;"U"===e.prim[1+t];)t++;if(UZ(r,DZ.PtEdo2Zk)){if(1===t){if(void 0===e.args)return e;$Z(e,1)&&VZ(e,e.args[0])&&(t=parseInt(e.args[0].int,10))}else $Z(e,0);return 1===t?[ZZ({prim:"DUP",annots:e.annots})]:2===t?[{prim:"DIP",args:[[ZZ({prim:"DUP",annots:e.annots})]]},{prim:"SWAP"}]:[{prim:"DIP",args:[{int:String(t-1)},[ZZ({prim:"DUP",annots:e.annots})]]},{prim:"DIG",args:[{int:String(t)}]}]}if(1===t)return e;if($Z(e,0))return ZZ({prim:"DUP",args:[{int:String(t)}],annots:e.annots})}return e}(e,this.opt);return t!==e&&(t[PZ]=Object.assign(Object.assign({},e[PZ]||{first:0,last:0}),{macro:e})),t}return e}parseListExpr(e,t){var r;const n={first:t.first,last:t.last},i="("===t.t;let o;if(i){if(o=e.next(),o.done)throw oY;n.last=o.value.last}else o={value:t};if(o.value.t!==OZ.Ident)throw new nY(o.value,`not an identifier: ${o.value.v}`);const a={prim:o.value.v,[PZ]:n};for(;;){const t=e.next();if(t.done){if(i)throw oY;break}if(")"===t.value.t){if(!i)throw new nY(t.value,"unexpected closing bracket");n.last=t.value.last;break}if(aY(t.value))a.annots=a.annots||[],a.annots.push(t.value.v),n.last=t.value.last;else{a.args=a.args||[];const i=this.parseExpr(e,t.value);n.last=(null===(r=i[PZ])||void 0===r?void 0:r.last)||n.last,a.args.push(i)}}return this.expand(a)}parseArgs(e,t){var r;const n={first:t.first,last:t.last},i={prim:t.v,[PZ]:n};for(;;){const t=e.next();if(t.done||"}"===t.value.t||";"===t.value.t)return[i,t];if(aY(t.value))n.last=t.value.last,i.annots=i.annots||[],i.annots.push(t.value.v);else{const o=this.parseExpr(e,t.value);n.last=(null===(r=o[PZ])||void 0===r?void 0:r.last)||n.last,i.args=i.args||[],i.args.push(o)}}}parseSequenceExpr(e,t){var r,n;const i={first:t.first,last:t.last},o=[];o[PZ]=i;const a="{"===t.t;let s="{"===t.t?null:{value:t};for(;;){if(null===s&&(s=e.next(),s.done||(i.last=s.value.last)),s.done){if(a)throw oY;return o}if("}"===s.value.t){if(a)return o;throw new nY(s.value,"unexpected closing bracket")}if(s.value.t===OZ.Ident){const[t,n]=this.parseArgs(e,s.value);i.last=(null===(r=t[PZ])||void 0===r?void 0:r.last)||i.last,o.push(this.expand(t)),s=n}else{const t=this.parseExpr(e,s.value);i.last=(null===(n=t[PZ])||void 0===n?void 0:n.last)||i.last,o.push(t),s=null}null===s&&(s=e.next(),s.done||(i.last=s.value.last)),s.done||";"!==s.value.t||(s=null)}}parseExpr(e,t){switch(t.t){case OZ.Ident:return this.expand({prim:t.v,[PZ]:{first:t.first,last:t.last}});case OZ.Number:return{int:t.v,[PZ]:{first:t.first,last:t.last}};case OZ.String:return{string:JSON.parse(t.v),[PZ]:{first:t.first,last:t.last}};case OZ.Bytes:return{bytes:t.v.slice(2),[PZ]:{first:t.first,last:t.last}};case"{":return this.parseSequenceExpr(e,t);default:return this.parseListExpr(e,t)}}parseSequence(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=LZ(e),r=t.next();return r.done?null:this.parseSequenceExpr(t,r.value)}parseList(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=LZ(e),r=t.next();return r.done?null:this.parseListExpr(t,r.value)}parseMichelineExpression(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=LZ(e),r=t.next();return r.done?null:this.parseExpr(t,r.value)}parseScript(e){return this.parseSequence(e)}parseData(e){return this.parseList(e)}parseJSON(e){if("object"!==typeof e)throw new TypeError(`object type was expected, got ${typeof e} instead`);if(Array.isArray(e)){const t=[];for(const r of e){if(null===r||"object"!==typeof r)throw new iY(r,`unexpected sequence element: ${r}`);t.push(this.parseJSON(r))}return t}if("prim"in e){const t=e;if("string"===typeof t.prim&&(void 0===t.annots||Array.isArray(t.annots))&&(void 0===t.args||Array.isArray(t.args))){const e={prim:t.prim};if(void 0!==t.annots){for(const e of t.annots)if("string"!==typeof e)throw new iY(e,`string expected: ${e}`);e.annots=t.annots}if(void 0!==t.args){e.args=[];for(const r of t.args){if(null===r||"object"!==typeof r)throw new iY(r,`unexpected argument: ${r}`);e.args.push(this.parseJSON(r))}}return this.expand(e)}throw new iY(e,`malformed prim expression: ${e}`)}if("string"in e){if("string"===typeof e.string)return{string:e.string};throw new iY(e,`malformed string literal: ${e}`)}if("int"in e){if("string"===typeof e.int&&sY.test(e.int))return{int:e.int};throw new iY(e,`malformed int literal: ${e}`)}if("bytes"in e){if("string"===typeof e.bytes&&cY.test(e.bytes))return{bytes:e.bytes};throw new iY(e,`malformed bytes literal: ${e}`)}throw new iY(e,`unexpected object: ${e}`)}}const uY=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],dY=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];class hY extends Ja{constructor(e){super(),this.message=e,this.name="Base58DecodingError"}}function fY(e){const t=(e.length+9)%64,r=0===t?0:64-t;if(e.length>268435455)throw new ls("",`: Invalid length ${e.length} is too big -- SHA-256.`);const n=e.length<<3,i=[...e,128,...new Array(r).fill(0),0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n];function o(e,t){return e>>>t|e<<32-t}const a=[...uY],s=new Array(64),c=new Array(8);for(let u=0;u>>3,r=o(s[t-2],17)^o(s[t-2],19)^s[t-2]>>>10;s[t]=(0|r)+s[t-7]+e+s[t-16]|0,t++}for(let r=0;r<8;r++)c[r]=a[r];for(let r=0;r<64;r++){const e=o(c[0],2)^o(c[0],13)^o(c[0],22),t=o(c[4],6)^o(c[4],11)^o(c[4],25),n=c[7]+t+(c[4]&c[5]^~c[4]&c[6])+dY[r]+s[r]|0,i=e+(c[0]&c[1]^c[0]&c[2]^c[1]&c[2])|0;c[7]=c[6],c[6]=c[5],c[5]=c[4],c[4]=c[3]+n|0,c[3]=c[2],c[2]=c[1],c[1]=c[0],c[0]=n+i|0}for(let r=0;r<8;r++)a[r]=a[r]+c[r]|0}const l=[];for(const u of a)l.push(u>>24&255),l.push(u>>16&255),l.push(u>>8&255),l.push(255&u);return l}const pY=[0,1,2,3,4,5,6,7,8,-1,-1,-1,-1,-1,-1,-1,9,10,11,12,13,14,15,16,-1,17,18,19,20,21,-1,22,23,24,25,26,27,28,29,30,31,32,-1,-1,-1,-1,-1,-1,33,34,35,36,37,38,39,40,41,42,43,-1,44,45,46,47,48,49,50,51,52,53,54,55,56,57];function mY(e,t){const r=e.charCodeAt(t)-49;if(r>=pY.length||-1===pY[r])throw new hY(`Unexpected character at position ${t}: ${e[t]}`);return pY[r]}function gY(e){const t=function(e){const t=[];let r=0;for(;r0;)t.push(0);return t.reverse()}(e);if(t.length<4)throw new hY(`Data is too short ${t.length}`);const r=t.slice(0,t.length-4),n=t.slice(t.length-4),i=fY(fY(r));if(n[0]!==i[0]||n[1]!==i[1]||n[2]!==i[2]||n[3]!==i[3])throw new hY("Invalid checksum");return r}class vY extends Qa{constructor(e){super(),this.message=e,this.name="InvalidMichelsonError"}}class yY extends Qa{constructor(e){super(),this.message=e,this.name="InvalidTypeExpressionError"}}class bY extends Qa{constructor(e){super(),this.message=e,this.name="InvalidDataExpressionError"}}class wY extends Qa{constructor(e){super(),this.entrypoint=e,this.name="InvalidEntrypointError",this.message=`Contract has no entrypoint named: "${e}"`}}class xY extends Ja{constructor(e){super(),this.message=e,this.name="LongIntegerError"}}class _Y extends Ja{constructor(e,t){super(),this.val=e,this.message=t,this.name="MichelsonError"}}class SY extends _Y{constructor(e,t,r){super(e,t),this.val=e,this.message=t,this.name="MichelsonTypeError",void 0!==r&&(this.data=r)}}class kY{append(e){let t=0;for(;0!==e||t57)throw new xY(`unexpected character in integer constant "${e[t]}"`);this.append(r-48)}}else e<0?(this.neg=!0,this.append(-e)):this.append(e)}cmp(e){if(this.neg!==e.neg)return(e.neg?1:0)-(this.neg?1:0);{let t=0;if(this.buf.length!==e.buf.length)t=this.buf.length=0&&this.buf[r]===e.buf[r];)r--;t=r<0?0:this.buf[r]=0}catch(Yr){return!1}}const TY=/^(@%|@%%|%@|[@:%]([_0-9a-zA-Z][_0-9a-zA-Z.%@]*)?)$/;function OY(e,t){if(Array.isArray(e))return{};let r,n,i;if(void 0!==e.annots)for(const o of e.annots)if(0!==o.length){if(!TY.test(o)||!(null===t||void 0===t?void 0:t.specialVar)&&("@%"===o||"@%%"===o)||!(null===t||void 0===t?void 0:t.specialFields)&&"%@"===o)throw new _Y(e,`${e.prim}: unexpected annotation: ${o}`);switch(o[0]){case"%":((null===t||void 0===t?void 0:t.emptyFields)||o.length>1)&&(r=r||[],r.push(o));break;case":":o.length>1&&(n=n||[],n.push(o));break;case"@":((null===t||void 0===t?void 0:t.emptyVar)||o.length>1)&&(i=i||[],i.push(o))}}return{f:r,t:n,v:i}}const CY={BlockHash:[32,[1,52]],OperationHash:[32,[5,116]],OperationListHash:[32,[133,233]],OperationListListHash:[32,[29,159,109]],ProtocolHash:[32,[2,170]],ContextHash:[32,[79,199]],ED25519PublicKeyHash:[20,[6,161,159]],SECP256K1PublicKeyHash:[20,[6,161,161]],P256PublicKeyHash:[20,[6,161,164]],ContractHash:[20,[2,90,121]],CryptoboxPublicKeyHash:[16,[153,103]],ED25519Seed:[32,[13,15,58,7]],ED25519PublicKey:[32,[13,15,37,217]],SECP256K1SecretKey:[32,[17,162,224,201]],P256SecretKey:[32,[16,81,238,189]],ED25519EncryptedSeed:[56,[7,90,60,179,41]],SECP256K1EncryptedSecretKey:[56,[9,237,241,174,150]],P256EncryptedSecretKey:[56,[9,48,57,115,171]],SECP256K1PublicKey:[33,[3,254,226,86]],P256PublicKey:[33,[3,178,139,127]],SECP256K1Scalar:[33,[38,248,136]],SECP256K1Element:[33,[5,92,0]],ED25519SecretKey:[64,[43,246,78,7]],ED25519Signature:[64,[9,245,205,134,18]],SECP256K1Signature:[64,[13,115,101,19,63]],P256Signature:[64,[54,240,44,52]],GenericSignature:[64,[4,130,43]],ChainID:[4,[87,82,0]],RollupAddress:[20,[1,128,120,31]],TxRollupL2Address:[20,[6,161,166]]};function jY(e,...t){const r=gY(e);for(const n of t){const[e,t]=CY[n];if(r.length===e+t.length){let e=0;for(;e0?YY(e,1):YY(e,0);break;default:throw new $Y(e,"instruction expected")}}return!0}function JY(e){if(KY(e))if(Array.isArray(e)||"pair"===e.prim||"or"===e.prim||"option"===e.prim)sX(e,(e=>JY(e)));else if(!Object.prototype.hasOwnProperty.call(UY,e.prim))throw new $Y(e,`${e.prim}: type is not comparable`);return!0}function QY(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim||"ticket"===e.prim)throw new $Y(e,`${e.prim}: type can't be used inside PACK/UNPACK instructions`);sX(e,(e=>QY(e)))}return!0}function eX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim||"ticket"===e.prim||"contract"===e.prim)throw new $Y(e,`${e.prim}: type can't be pushed`);sX(e,(e=>eX(e)))}return!0}function tX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"operation"===e.prim||"contract"===e.prim)throw new $Y(e,`${e.prim}: type can't be used as part of a storage`);sX(e,(e=>tX(e)))}return!0}function rX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"operation"===e.prim)throw new $Y(e,`${e.prim}: type can't be used as part of a parameter`);sX(e,(e=>rX(e)))}return!0}function nX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim)throw new $Y(e,`${e.prim}: type can't be used inside a big_map`);sX(e,(e=>nX(e)))}return!0}const iX=new RegExp("^[a-zA-Z0-9_.%@]*$");function oX(e){if(e.string.length>DY)throw new $Y(e,`view name too long: ${e.string}`);if(!iX.test(e.string))throw new $Y(e,`invalid character(s) in view name: ${e.string}`)}function aX(e){if(KY(e)&&HY(e)){if(!Object.prototype.hasOwnProperty.call(FY,e.prim))throw new $Y(e,"type expected");sX(e,(e=>aX(e)))}return!0}function sX(e,t){if(Array.isArray(e)||"pair"===e.prim){const r=Array.isArray(e)?e:e.args;if(void 0===r||r.length<2)throw new $Y(e,"at least 2 arguments expected");return r.forEach((e=>{KY(e)&&t(e)})),!0}switch(e.prim){case"option":case"list":YY(e,1)&&KY(e.args[0])&&t(e.args[0]);break;case"contract":YY(e,1)&&rX(e.args[0]);break;case"or":YY(e,2)&&KY(e.args[0])&&KY(e.args[1])&&(t(e.args[0]),t(e.args[1]));break;case"lambda":YY(e,2)&&(aX(e.args[0]),aX(e.args[1]));break;case"set":YY(e,1)&&JY(e.args[0]);break;case"map":YY(e,2)&&KY(e.args[0])&&KY(e.args[1])&&(JY(e.args[0]),t(e.args[1]));break;case"big_map":YY(e,2)&&KY(e.args[0])&&KY(e.args[1])&&(JY(e.args[0]),nX(e.args[1]),t(e.args[1]));break;case"ticket":YY(e,1)&&KY(e.args[0])&&JY(e.args[0]);break;case"sapling_state":case"sapling_transaction":YY(e,1)&&GY(e.args[0]);break;default:YY(e,0)}return!0}function cX(e){if("int"in e||"string"in e||"bytes"in e)return!0;if(Array.isArray(e)){let t=0;for(const r of e)HY(r)&&"Elt"===r.prim?(YY(r,2)&&(cX(r.args[0]),cX(r.args[1])),t++):cX(r);if(0!==t&&t!==e.length)throw new $Y(e,"data entries and map elements can't be intermixed");return!0}if(!HY(e))throw new $Y(e,"data entry expected");switch(e.prim){case"Unit":case"True":case"False":case"None":YY(e,0);break;case"Pair":if(void 0===e.args||e.args.length<2)throw new $Y(e,"at least 2 arguments expected");for(const t of e.args)cX(t);break;case"Left":case"Right":case"Some":YY(e,1)&&cX(e.args[0]);break;case"Lambda_rec":e.args&&XY(e.args);break;default:if(!Object.prototype.hasOwnProperty.call(BY,e.prim))throw new $Y(e,"data entry or instruction expected");XY(e)}return!0}function lX(e){if(qY(e)){const t={},r={};for(const n of e)if(VY(n)){if("view"!==n.prim){if(n.prim in t)throw new $Y(e,`duplicate contract section: ${n.prim}`);t[n.prim]=!0}switch(n.prim){case"code":YY(n,1)&&qY(n.args[0])&&XY(n.args[0]);break;case"parameter":if(YY(n,1)&&rX(n.args[0]),n.annots)throw new $Y(n,"Annotation must be part of the parameter type");break;case"storage":YY(n,1)&&tX(n.args[0]);break;case"view":if(YY(n,4)){if(ZY(n.args[0])){const t=n.args[0];if(t.string in r)throw new $Y(e,`duplicate view name: ${t.string}`);r[t.string]=!0,oX(t)}eX(n.args[1]),eX(n.args[2]),qY(n.args[3])&&XY(n.args[3])}break;default:throw new $Y(e,`unexpected contract section: ${n.prim}`)}}}return!0}function uX(e){return Object.prototype.hasOwnProperty.call(BY,e.prim)}function dX(e){if(!Array.isArray(e))return!1;for(const t of e)if("prim"in t){if(uX(t))throw new _Y(e,`Instruction outside of a lambda: ${JSON.stringify(e)}`);if("Elt"===t.prim)throw new _Y(e,`Elt item outside of a map literal: ${JSON.stringify(e)}`)}return!0}"function"===typeof SuppressedError&&SuppressedError;const hX=["parameter","storage","code","False","Elt","Left","None","Pair","Right","Some","True","Unit","PACK","UNPACK","BLAKE2B","SHA256","SHA512","ABS","ADD","AMOUNT","AND","BALANCE","CAR","CDR","CHECK_SIGNATURE","COMPARE","CONCAT","CONS","CREATE_ACCOUNT","CREATE_CONTRACT","IMPLICIT_ACCOUNT","DIP","DROP","DUP","EDIV","EMPTY_MAP","EMPTY_SET","EQ","EXEC","FAILWITH","GE","GET","GT","HASH_KEY","IF","IF_CONS","IF_LEFT","IF_NONE","INT","LAMBDA","LE","LEFT","LOOP","LSL","LSR","LT","MAP","MEM","MUL","NEG","NEQ","NIL","NONE","NOT","NOW","OR","PAIR","PUSH","RIGHT","SIZE","SOME","SOURCE","SENDER","SELF","STEPS_TO_QUOTA","SUB","SWAP","TRANSFER_TOKENS","SET_DELEGATE","UNIT","UPDATE","XOR","ITER","LOOP_LEFT","ADDRESS","CONTRACT","ISNAT","CAST","RENAME","bool","contract","int","key","key_hash","lambda","list","map","big_map","nat","option","or","pair","set","signature","string","bytes","mutez","timestamp","unit","operation","address","SLICE","DIG","DUG","EMPTY_BIG_MAP","APPLY","chain_id","CHAIN_ID","LEVEL","SELF_ADDRESS","never","NEVER","UNPAIR","VOTING_POWER","TOTAL_VOTING_POWER","KECCAK","SHA3","PAIRING_CHECK","bls12_381_g1","bls12_381_g2","bls12_381_fr","sapling_state","sapling_transaction_deprecated","SAPLING_EMPTY_STATE","SAPLING_VERIFY_UPDATE","ticket","TICKET_DEPRECATED","READ_TICKET","SPLIT_TICKET","JOIN_TICKETS","GET_AND_UPDATE","chest","chest_key","OPEN_CHEST","VIEW","view","constant","SUB_MUTEZ","tx_rollup_l2_address","MIN_BLOCK_TIME","sapling_transaction","EMIT","Lambda_rec","LAMBDA_REC","TICKET","BYTES","NAT"];Object.assign({},...hX.map(((e,t)=>({[e]:t}))));var fX;!function(e){e[e.Int=0]="Int",e[e.String=1]="String",e[e.Sequence=2]="Sequence",e[e.Prim0=3]="Prim0",e[e.Prim0Annot=4]="Prim0Annot",e[e.Prim1=5]="Prim1",e[e.Prim1Annot=6]="Prim1Annot",e[e.Prim2=7]="Prim2",e[e.Prim2Annot=8]="Prim2Annot",e[e.Prim=9]="Prim",e[e.Bytes=10]="Bytes"}(fX||(fX={}));const pX=new Error("bounds out of range");class mX{constructor(e,t=0,r=e.length){this.buffer=e,this.idx=t,this.cap=r}get length(){return this.cap-this.idx}readBytes(e){if(this.cap-this.idx>>0}readUint16(){if(this.cap-this.idx<2)throw pX;return(this.buffer[this.idx++]<<8|this.buffer[this.idx++])>>>0}readUint32(){if(this.cap-this.idx<4)throw pX;return(this.buffer[this.idx++]<<24|this.buffer[this.idx++]<<16|this.buffer[this.idx++]<<8|this.buffer[this.idx++])>>>0}readInt8(){if(this.cap-this.idx<1)throw pX;return this.buffer[this.idx++]<<24>>24}readInt16(){if(this.cap-this.idx<2)throw pX;return(this.buffer[this.idx++]<<8|this.buffer[this.idx++])<<16>>16}readInt32(){if(this.cap-this.idx<4)throw pX;return this.buffer[this.idx++]<<24|this.buffer[this.idx++]<<16|this.buffer[this.idx++]<<8|this.buffer[this.idx++]}}var gX,vX,yX;function bX(e){let t;const r=e.readUint8();switch(r){case vX.ED25519:t="ED25519PublicKeyHash";break;case vX.SECP256K1:t="SECP256K1PublicKeyHash";break;case vX.P256:t="P256PublicKeyHash";break;default:throw new Error(`unknown public key hash tag: ${r}`)}return{type:t,hash:e.readBytes(20)}}function wX(e){let t;const r=e.readUint8();switch(r){case gX.Implicit:t=bX(e);break;case gX.Originated:t={type:"ContractHash",hash:e.readBytes(20)},e.readBytes(1);break;default:throw new Error(`unknown address tag: ${r}`)}if(0!==e.length){const r=new TextDecoder;t.entryPoint=r.decode(new Uint8Array(e.readBytes(e.length)))}return t}function xX(e){let t,r;const n=e.readUint8();switch(n){case yX.ED25519:r="ED25519PublicKey",t=32;break;case yX.SECP256K1:r="SECP256K1PublicKey",t=33;break;case yX.P256:r="P256PublicKey",t=33;break;default:throw new Error(`unknown public key tag: ${n}`)}return{type:r,publicKey:e.readBytes(t)}}!function(e){e[e.Implicit=0]="Implicit",e[e.Originated=1]="Originated"}(gX||(gX={})),function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256"}(vX||(vX={})),function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256"}(yX||(yX={}));class _X extends _Y{constructor(e,t,r){super(e,r),this.val=e,this.stackState=t,this.message=r,this.name="MichelsonInstructionError"}}function SX(e){return Array.isArray(e)?"pair":e.prim}function kX(e){return"prim"in e?e.args:e}function EX(e,t,r=!1){if(SX(e)!==SX(t))throw new SY(e,`types mismatch: ${SX(e)} != ${SX(t)}`,void 0);const n=[OY(e),OY(t)];if(n[0].t&&n[1].t&&n[0].t[0]!==n[1].t[0])throw new SY(e,`${SX(e)}: type names mismatch: ${n[0].t[0]} != ${n[1].t[0]}`,void 0);if(r&&n[0].f&&n[1].f&&n[0].f[0]!==n[1].f[0])throw new SY(e,`${SX(e)}: field names mismatch: ${n[0].f[0]} != ${n[1].f}`,void 0);if(IY(e)){const r=RY("pair",e),n=RY("pair",t);return EX(r.args[0],n.args[0],!0),void EX(r.args[1],n.args[1],!0)}switch(e.prim){case"option":case"list":case"contract":case"set":case"ticket":EX(e.args[0],t.args[0]);break;case"or":EX(e.args[0],t.args[0],!0),EX(e.args[1],t.args[1],!0);break;case"lambda":case"map":case"big_map":EX(e.args[0],t.args[0]),EX(e.args[1],t.args[1]);break;case"sapling_state":case"sapling_transaction":if(parseInt(e.args[0].int,10)!==parseInt(t.args[0].int,10))throw new SY(e,`${SX(e)}: type argument mismatch: ${e.args[0].int} != ${t.args[0].int}`,void 0)}}function AX(e,t){if(e.length!==t.length)throw new SY(e,`stack length mismatch: ${e.length} != ${t.length}`,void 0);for(let r=0;r1)throw new SY(e,`${e.prim}: at most one type annotation allowed: ${e.annots}`,void 0);if(t){if(((null===(n=o.f)||void 0===n?void 0:n.length)||0)>1)throw new SY(e,`${e.prim}: at most one field annotation allowed: ${e.annots}`,void 0)}else if(((null===(i=o.f)||void 0===i?void 0:i.length)||0)>0)throw new SY(e,`${e.prim}: field annotations aren't allowed: ${e.annots}`,void 0)}if(IY(e)){const t=kX(e);for(const e of t)PX(e,!0)}else switch(e.prim){case"option":case"list":case"contract":case"set":PX(e.args[0]);break;case"or":for(const t of e.args)PX(t,!0);break;case"lambda":case"map":case"big_map":PX(e.args[0]),PX(e.args[1])}}function TX(e){if(!Array.isArray(e))return!1;for(const t of e)if(!(Array.isArray(t)&&TX(t)||"prim"in t&&uX(t)))return!1;return!0}function OX(e,t,r){if(IY(t)){if(MY(e)){dX(e);const n=RY("Pair",e),i=RY("pair",t);return OX(n.args[0],i.args[0],r),void OX(n.args[1],i.args[1],r)}throw new SY(t,`pair expected: ${JSON.stringify(e)}`,e)}switch(t.prim){case"int":if("int"in e&&AY(e.int))return;throw new SY(t,`integer value expected: ${JSON.stringify(e)}`,e);case"nat":case"mutez":if("int"in e&&PY(e.int))return;throw new SY(t,`natural value expected: ${JSON.stringify(e)}`,e);case"string":if("string"in e)return;throw new SY(t,`string value expected: ${JSON.stringify(e)}`,e);case"bytes":case"bls12_381_g1":case"bls12_381_g2":if("bytes"in e&&null!==EY(e.bytes))return;throw new SY(t,`bytes value expected: ${JSON.stringify(e)}`,e);case"bool":if("prim"in e&&("True"===e.prim||"False"===e.prim))return;throw new SY(t,`boolean value expected: ${JSON.stringify(e)}`,e);case"key_hash":if("string"in e&&null!==jY(e.string,"ED25519PublicKeyHash","SECP256K1PublicKeyHash","P256PublicKeyHash"))return;if("bytes"in e)try{return void function(e){const t=EY(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);bX(new mX(new Uint8Array(t)))}(e)}catch(Cle){}throw new SY(t,`key hash expected: ${JSON.stringify(e)}`,e);case"timestamp":if(("string"in e||"int"in e)&&null!==NY(e))return;throw new SY(t,`timestamp expected: ${JSON.stringify(e)}`,e);case"address":if("string"in e){let t=e.string;const r=e.string.indexOf("%");if(r>=0&&(t=e.string.slice(0,r)),null!==jY(t,"ED25519PublicKeyHash","SECP256K1PublicKeyHash","P256PublicKeyHash","ContractHash","TxRollupL2Address","RollupAddress"))return}else if("bytes"in e)try{return void function(e){const t=EY(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);wX(new mX(new Uint8Array(t)))}(e)}catch(Cle){}throw new SY(t,`address expected: ${JSON.stringify(e)}`,e);case"key":if("string"in e&&null!==jY(e.string,"ED25519PublicKey","SECP256K1PublicKey","P256PublicKey"))return;if("bytes"in e)try{return void function(e){const t=EY(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);xX(new mX(new Uint8Array(t)))}(e)}catch(Cle){}throw new SY(t,`public key expected: ${JSON.stringify(e)}`,e);case"unit":if("prim"in e&&"Unit"===e.prim)return;throw new SY(t,`unit value expected: ${JSON.stringify(e)}`,e);case"signature":if("bytes"in e||"string"in e&&null!==jY(e.string,"ED25519Signature","SECP256K1Signature","P256Signature","GenericSignature"))return;throw new SY(t,`signature expected: ${JSON.stringify(e)}`,e);case"chain_id":if("bytes"in e||"string"in e){if(null!==("string"in e?gY(e.string):EY(e.bytes)))return}throw new SY(t,`chain id expected: ${JSON.stringify(e)}`,e);case"option":if("prim"in e){if("None"===e.prim)return;if("Some"===e.prim)return void OX(e.args[0],t.args[0],r)}throw new SY(t,`option expected: ${JSON.stringify(e)}`,e);case"list":case"set":if(dX(e)){for(const n of e)OX(n,t.args[0],r);return}throw new SY(t,`${t.prim} expected: ${JSON.stringify(e)}`,e);case"or":if("prim"in e){if("Left"===e.prim)return void OX(e.args[0],t.args[0],r);if("Right"===e.prim)return void OX(e.args[0],t.args[1],r)}throw new SY(t,`union (or) expected: ${JSON.stringify(e)}`,e);case"lambda":if(TX(e)){const n=CX(e,[t.args[0]],r);if("failed"in n)throw new SY(t,`function is failed with error type: ${n.failed}`,e);if(1!==n.length)throw new SY(t,"function must return a value",e);return void EX(t.args[1],n[0])}throw new SY(t,`function expected: ${JSON.stringify(e)}`,e);case"map":case"big_map":if(Array.isArray(e)){for(const n of e){if(!("prim"in n)||"Elt"!==n.prim)throw new SY(t,`map elements expected: ${JSON.stringify(e)}`,e);OX(n.args[0],t.args[0],r),OX(n.args[1],t.args[1],r)}return}throw new SY(t,`${t.prim} expected: ${JSON.stringify(e)}`,e);case"bls12_381_fr":if("int"in e&&AY(e.int)||"bytes"in e&&null!==EY(e.bytes))return;throw new SY(t,`BLS12-381 element expected: ${JSON.stringify(e)}`,e);case"sapling_state":if(Array.isArray(e))return;throw new SY(t,`sapling state expected: ${JSON.stringify(e)}`,e);case"ticket":return void OX(e,{prim:"pair",args:[{prim:"address"},t.args[0],{prim:"nat"}]},r);default:throw new SY(t,`type ${SX(t)} don't have Michelson literal representation`,e)}}function CX(e,t,r){const n=(null===r||void 0===r?void 0:r.protocol)||zZ;if(Array.isArray(e))return function(e,t,r){let n=t,i=t,o=0;for(const a of e){const e=CX(a,i,r);if(n=e,"failed"in e)break;i=e,o++}if("failed"in n&&0==n.level&&(!("prim"in n.failed)||"never"!==n.failed.prim)&&o!==e.length-1)throw new _X(e,n,"FAIL must appear in a tail position");if(void 0!==(null===r||void 0===r?void 0:r.traceCallback)){const i={op:e,in:t,out:n};r.traceCallback(i)}return"failed"in n?{failed:n.failed,level:n.level+1}:n}(e,t,r);const i=e;function o(e,...r){if(t.length{try{return e(...r)}catch(Cle){throw Cle instanceof _Y?new _X(i,t,Cle.message):Cle}}}function s(e){return r=>{try{return e(r)}catch(Cle){throw Cle instanceof _Y?new _X(i,t,Cle.message):Cle}}}const c=a(OY),l=a(AX),u=a(EX),d=s(JY),h=s(QY),f=s(tX),p=s(eX),m=s(nX);function g(e,r){const n=c(i,Object.assign(Object.assign({},r),{emptyFields:void 0!==e.f&&e.f>1,emptyVar:void 0!==e.v&&e.v>1})),o=(e,r,n)=>{if(e&&e.length>(r||0))throw new _X(i,t,`${i.prim}: at most ${r||0} ${n} annotations allowed`)};return o(n.f,e.f,"field"),o(n.t,e.t,"type"),o(n.v,e.v,"variable"),n}function v(e,t){const r=e,n=Array.isArray(r)?{prim:"pair",args:r}:r,i=c(n),o=void 0!==t.v||void 0!==t.t||void 0!==t.f?[...(null===t.v?i.v:t.v)||[],...(null===t.t?i.t:t.t)||[],...(null===t.f?i.f:t.f)||[]]:void 0,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i["@"+(e.v?e.v[0].slice(1)+".":"")+t];function k(e,t){return"failed"in e||"failed"in t?"failed"in e?t:e:(l(e,t),e)}const E=(e=>{var i,a,s,E,A;switch(e.prim){case"DUP":{const r=e.args?parseInt(e.args[0].int,10):1;if(0===r)throw new _X(e,t,"DUP 0 is forbidden");const n=o(r-1,null)[0];if("ticket"===SX(n))throw new _X(e,t,"ticket can't be DUPed");return[n,...t]}case"SWAP":{const e=o(0,null,null);return g({}),[e[1],e[0],...t.slice(2)]}case"SOME":return[v({prim:"option",args:[o(0,null)[0]]},g({t:1,v:1})),...t.slice(1)];case"UNIT":return[v({prim:"unit"},g({v:1,t:1})),...t];case"PAIR":{const r=e.args?parseInt(e.args[0].int,10):2;if(r<2)throw new _X(e,t,`PAIR ${r} is forbidden`);const n=o(0,...new Array(r).fill(null)),i=g({f:r,t:1,v:1},{specialFields:!0}),a=e=>{const t=e.lastIndexOf(".");return e.slice(t>0?t+1:1)},s=n.map(((e,t)=>{var r;const n=c(e);return v(e,{v:null,t:null,f:i.f&&i.f.length>t&&"%"!==i.f[t]?"%@"===i.f[t]?n.v?["%"+a((null===(r=n.v)||void 0===r?void 0:r[0])||"")]:void 0:[i.f[t]]:void 0})}));return[v({prim:"pair",args:s},{t:i.t,v:i.v}),...t.slice(r)]}case"UNPAIR":{const r=e.args?parseInt(e.args[0].int,10):2;if(r<2)throw new _X(e,t,`UNPAIR ${r} is forbidden`);const n=o(0,["pair"])[0],i=g({f:2,v:2},{specialVar:!0});return[...w(n,r).map(((e,t)=>b(n,e,i,t,0===t?"car":"cdr"))),...t.slice(1)]}case"CAR":case"CDR":{const r=RY("pair",o(0,["pair"])[0]);return[b(r,r.args["CAR"===e.prim?0:1],g({f:1,v:1},{specialVar:!0}),0,e.prim.toLocaleLowerCase()),...t.slice(1)]}case"CONS":{const e=o(0,null,["list"]);return u(e[0],e[1].args[0]),[y({prim:"list",args:[e[1].args[0]]}),...t.slice(2)]}case"SIZE":return o(0,["string","list","set","map","bytes"]),[y({prim:"nat"}),...t.slice(1)];case"MEM":{const e=o(0,null,["set","map","big_map"]);return d(e[0]),u(e[0],e[1].args[0]),[y({prim:"bool"}),...t.slice(2)]}case"GET":if(e.args){const r=parseInt(e.args[0].int,10);return[y(x(o(0,["pair"])[0],r)),...t.slice(1)]}{const e=o(0,null,["map","big_map"]);return d(e[0]),u(e[0],e[1].args[0]),[y({prim:"option",args:[e[1].args[1]]}),...t.slice(2)]}case"UPDATE":if(e.args){const r=parseInt(e.args[0].int,10),n=o(0,null,["pair"]);return[y(_(n[1],n[0],r)),...t.slice(2)]}{const e=o(0,null,["bool","option"]);if(d(e[0]),"bool"===e[1].prim){const r=o(2,["set"]);return u(e[0],r[0].args[0]),[y({prim:"set",args:[v(e[0],{t:null})]}),...t.slice(3)]}const r=o(2,["map","big_map"]);return u(e[0],r[0].args[0]),"map"===r[0].prim?[y({prim:"map",args:[v(e[0],{t:null}),v(e[1].args[0],{t:null})]}),...t.slice(3)]:(m(e[1].args[0]),[y({prim:"big_map",args:[v(e[0],{t:null}),v(e[1].args[0],{t:null})]}),...t.slice(3)])}case"GET_AND_UPDATE":{const e=g({v:2}),r=o(0,null,["option"],["map","big_map"]);d(r[0]),u(r[0],r[2].args[0]),u(r[1].args[0],r[2].args[1]);const n=null===(i=e.v)||void 0===i?void 0:i.map((e=>"@"!==e?[e]:void 0));return"map"===r[2].prim?[v({prim:"option",args:[r[2].args[1]]},{v:null===n||void 0===n?void 0:n[0]}),v({prim:"map",args:[v(r[0],{t:null}),v(r[1].args[0],{t:null})]},{v:null===n||void 0===n?void 0:n[1]}),...t.slice(3)]:(m(r[1].args[0]),[v({prim:"option",args:[r[2].args[1]]},{v:null===n||void 0===n?void 0:n[0]}),v({prim:"big_map",args:[v(r[0],{t:null}),v(r[1].args[0],{t:null})]},{v:null===n||void 0===n?void 0:n[1]}),...t.slice(3)])}case"EXEC":{const e=o(0,null,["lambda"]);return u(e[0],e[1].args[0]),[y(e[1].args[1]),...t.slice(2)]}case"APPLY":{const r=o(0,null,["lambda"]);if(f(r[0]),p(r[0]),!IY(r[1].args[0]))throw new _X(e,t,`${e.prim}: function's argument must be a pair: ${SX(r[1].args[0])}`);const n=r[1].args[0];return u(r[0],kX(n)[0]),[y({prim:"lambda",args:[kX(n)[1],r[1].args[1]]}),...t.slice(2)]}case"FAILWITH":{const e=o(0,null)[0];return UZ(n,DZ.PtEdo2Zk)||h(e),{failed:e,level:0}}case"NEVER":return o(0,["never"]),{failed:{prim:"never"},level:0};case"RENAME":return[y(o(0,null)[0]),...t.slice(1)];case"CONCAT":{const r=o(0,["string","list","bytes"]);if("list"===r[0].prim){if("string"!==SX(r[0].args[0])&&"bytes"!==SX(r[0].args[0]))throw new _X(e,t,`${e.prim}: can't concatenate list of ${SX(r[0].args[0])}'s`);return[y(r[0].args[0]),...t.slice(1)]}const n=o(1,["string","bytes"]);if(r[0].prim!==n[0].prim)throw new _X(e,t,`${e.prim}: can't concatenate ${r[0].prim} with ${n[0].prim}`);return[y(n[0]),...t.slice(2)]}case"SLICE":return[y({prim:"option",args:[o(0,["nat"],["nat"],["string","bytes"])[2]]},"@slice"),...t.slice(3)];case"PACK":{const e=o(0,null)[0];return h(e),[y({prim:"bytes"},"@packed"),...t.slice(1)]}case"ADD":{const r=o(0,["nat","int","timestamp","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"],["nat","int","timestamp","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"]);if("nat"===r[0].prim&&"int"===r[1].prim||"int"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("int"===r[0].prim&&"timestamp"===r[1].prim||"timestamp"===r[0].prim&&"int"===r[1].prim)return[y({prim:"timestamp"}),...t.slice(2)];if(("int"===r[0].prim||"nat"===r[0].prim||"mutez"===r[0].prim||"bls12_381_g1"===r[0].prim||"bls12_381_g2"===r[0].prim||"bls12_381_fr"===r[0].prim)&&r[0].prim===r[1].prim)return[y(r[0]),...t.slice(2)];throw new _X(e,t,`${e.prim}: can't add ${r[0].prim} to ${r[1].prim}`)}case"SUB":{const r=UZ(n,DZ.PsiThaCa)?o(0,["nat","int","timestamp","mutez"],["nat","int","timestamp","mutez"]):o(0,["nat","int","timestamp"],["nat","int","timestamp"]);if(("nat"===r[0].prim||"int"===r[0].prim)&&("nat"===r[1].prim||"int"===r[1].prim)||"timestamp"===r[0].prim&&"timestamp"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("timestamp"===r[0].prim&&"int"===r[1].prim)return[y({prim:"timestamp"}),...t.slice(2)];if("mutez"===r[0].prim&&"mutez"===r[1].prim)return[y({prim:"mutez"}),...t.slice(2)];throw new _X(e,t,`${e.prim}: can't subtract ${r[0].prim} from ${r[1].prim}`)}case"SUB_MUTEZ":return o(0,["mutez"],["mutez"]),[y({prim:"option",args:[{prim:"mutez"}]}),...t.slice(2)];case"MUL":{const r=o(0,["nat","int","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"],["nat","int","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"]);if("nat"===r[0].prim&&"int"===r[1].prim||"int"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("nat"===r[0].prim&&"mutez"===r[1].prim||"mutez"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"mutez"}),...t.slice(2)];if(("bls12_381_g1"===r[0].prim||"bls12_381_g2"===r[0].prim||"bls12_381_fr"===r[0].prim)&&"bls12_381_fr"===r[1].prim||("nat"===r[0].prim||"int"===r[0].prim)&&r[0].prim===r[1].prim)return[y(r[0]),...t.slice(2)];if(("nat"===r[0].prim||"int"===r[0].prim)&&"bls12_381_fr"===r[1].prim||("nat"===r[1].prim||"int"===r[1].prim)&&"bls12_381_fr"===r[0].prim)return[y({prim:"bls12_381_fr"}),...t.slice(2)];throw new _X(e,t,`${e.prim}: can't multiply ${r[0].prim} by ${r[1].prim}`)}case"EDIV":{const r=(e,t)=>({prim:"option",args:[{prim:"pair",args:[{prim:e},{prim:t}]}]}),n=o(0,["nat","int","mutez"],["nat","int","mutez"]);if("nat"===n[0].prim&&"nat"===n[1].prim)return[y(r("nat","nat")),...t.slice(2)];if(!("nat"!==n[0].prim&&"int"!==n[0].prim||"nat"!==n[1].prim&&"int"!==n[1].prim))return[y(r("int","nat")),...t.slice(2)];if("mutez"===n[0].prim&&"nat"===n[1].prim)return[y(r("mutez","mutez")),...t.slice(2)];if("mutez"===n[0].prim&&"mutez"===n[1].prim)return[y(r("nat","mutez")),...t.slice(2)];throw new _X(e,t,`${e.prim}: can't euclideally divide ${n[0].prim} by ${n[1].prim}`)}case"ABS":return o(0,["int"]),[y({prim:"nat"}),...t.slice(1)];case"ISNAT":return o(0,["int"]),[y({prim:"option",args:[{prim:"nat"}]}),...t.slice(1)];case"INT":return o(0,["nat","bls12_381_fr","bytes"]),[y({prim:"int"}),...t.slice(1)];case"BYTES":return o(0,["nat","int"]),[y({prim:"bytes"}),...t.slice(1)];case"NAT":return o(0,["bytes"]),[y({prim:"nat"}),...t.slice(1)];case"NEG":{const e=o(0,["nat","int","bls12_381_g1","bls12_381_g2","bls12_381_fr"])[0];return"nat"===e.prim||"int"===e.prim?[y({prim:"int"}),...t.slice(1)]:[y(e),...t.slice(1)]}case"LSL":case"LSR":return o(0,["nat","bytes"],["nat","bytes"]),[y({prim:"nat"}),...t.slice(2)];case"OR":case"XOR":{const r=o(0,["nat","bytes","bool"],["nat","bytes","bool"]);if(r[0].prim!==r[1].prim)throw new _X(e,t,`${e.prim}: both arguments must be of the same type: ${r[0].prim}, ${r[1].prim}`);return[y(r[1]),...t.slice(2)]}case"AND":{const r=o(0,["nat","bytes","bool","int"],["nat","bytes","bool"]);if(("int"!==r[0].prim||"nat"!==r[1].prim)&&r[0].prim!==r[1].prim)throw new _X(e,t,`${e.prim}: both arguments must be of the same type: ${r[0].prim}, ${r[1].prim}`);return[y(r[1]),...t.slice(2)]}case"NOT":return"bool"===o(0,["nat","bytes","bool","int"])[0].prim?[y({prim:"bool"}),...t.slice(1)]:[y({prim:"int"}),...t.slice(1)];case"COMPARE":{const e=o(0,null,null);return d(e[0]),d(e[1]),[y({prim:"int"}),...t.slice(2)]}case"EQ":case"NEQ":case"LT":case"GT":case"LE":case"GE":return o(0,["int"]),[y({prim:"bool"}),...t.slice(1)];case"SELF":{if(void 0===(null===r||void 0===r?void 0:r.contract))throw new _X(e,t,`${e.prim}: contract required`);const n=g({f:1,v:1}),i=IX(r.contract,null===(a=n.f)||void 0===a?void 0:a[0]);if(null===i)throw new _X(e,t,`${e.prim}: contract has no entrypoint ${i}`);return[v({prim:"contract",args:[i]},{v:n.v?n.v:["@self"]}),...t]}case"TRANSFER_TOKENS":{const e=o(0,null,["mutez"],["contract"]);return u(e[0],e[2].args[0]),[y({prim:"operation"}),...t.slice(3)]}case"SET_DELEGATE":{const r=o(0,["option"])[0];if("key_hash"!==SX(r.args[0]))throw new _X(e,t,`${e.prim}: key hash expected: ${SX(r.args[0])}`);return[y({prim:"operation"}),...t.slice(1)]}case"IMPLICIT_ACCOUNT":return o(0,["key_hash"]),[y({prim:"contract",args:[{prim:"unit"}]}),...t.slice(1)];case"NOW":return[y({prim:"timestamp"},"@now"),...t];case"AMOUNT":return[y({prim:"mutez"},"@amount"),...t];case"BALANCE":return[y({prim:"mutez"},"@balance"),...t];case"CHECK_SIGNATURE":return o(0,["key"],["signature"],["bytes"]),[y({prim:"bool"}),...t.slice(3)];case"BLAKE2B":case"SHA256":case"SHA512":case"KECCAK":case"SHA3":return o(0,["bytes"]),[y({prim:"bytes"}),...t.slice(1)];case"HASH_KEY":return o(0,["key"]),[y({prim:"key_hash"}),...t.slice(1)];case"SOURCE":return[y({prim:"address"},"@source"),...t];case"SENDER":return[y({prim:"address"},"@sender"),...t];case"ADDRESS":{const e=o(0,["contract"])[0],r=g({v:1});return[v({prim:"address",[NZ]:e},{v:r.v?r.v:S(c(e),"address")}),...t.slice(1)]}case"SELF_ADDRESS":{const e={prim:"address"};return void 0!==(null===r||void 0===r?void 0:r.contract)&&(e[NZ]={prim:"contract",args:[jX(r.contract,"parameter").args[0]]}),[y(e,"@address"),...t]}case"CHAIN_ID":return[y({prim:"chain_id"}),...t];case"DROP":{g({});const r=void 0!==e.args?parseInt(e.args[0].int,10):1;return o(r-1,null),t.slice(r)}case"DIG":{g({});const r=parseInt(e.args[0].int,10);return[o(r,null)[0],...t.slice(0,r),...t.slice(r+1)]}case"DUG":{g({});const r=parseInt(e.args[0].int,10);return[...t.slice(1,r+1),o(0,null)[0],...t.slice(r+1)]}case"NONE":return PX(e.args[0]),[v({prim:"option",args:[e.args[0]]},g({t:1,v:1})),...t];case"LEFT":case"RIGHT":{const r=o(0,null)[0],n=g({f:2,t:1,v:1},{specialFields:!0}),i=c(r),a=[v(r,{t:null,v:null,f:n.f&&n.f.length>0&&"%"!==n.f[0]?"%@"===n.f[0]?i.v?["%"+i.v[0].slice(1)]:void 0:n.f:void 0}),v(e.args[0],{t:null,f:n.f&&n.f.length>1&&"%"!==n.f[1]?n.f:void 0})];return[v({prim:"or",args:"LEFT"===e.prim?a:[a[1],a[0]]},{t:n.t,v:n.v}),...t.slice(1)]}case"NIL":return PX(e.args[0]),[v({prim:"list",args:[e.args[0]]},g({t:1,v:1})),...t];case"UNPACK":return o(0,["bytes"]),PX(e.args[0]),[y({prim:"option",args:[e.args[0]]},"@unpacked"),...t.slice(1)];case"CONTRACT":{const r=o(0,["address"])[0];PX(e.args[0]);const n=g({v:1,f:1}),i=r[NZ];if(void 0!==i){const r=IX(i,null===(s=n.f)||void 0===s?void 0:s[0]);if(null===r)throw new _X(e,t,`${e.prim}: contract has no entrypoint ${r}`);u(r,e.args[0])}return[v({prim:"option",args:[{prim:"contract",args:[e.args[0]]}]},{v:n.v?n.v:S(c(r),"contract")}),...t.slice(1)]}case"CAST":{g({});const r=o(0,null)[0];return PX(e.args[0]),u(e.args[0],r),[e.args[0],...t.slice(1)]}case"IF_NONE":{g({});const n=o(0,["option"])[0],i=t.slice(1);return k(CX(e.args[0],i,r),CX(e.args[1],[v(n.args[0],{t:null,v:S(c(n),"some")}),...i],r))}case"IF_LEFT":{g({});const n=o(0,["or"])[0],i=c(n),a=c(n.args[0]),s=c(n.args[1]),l=t.slice(1);return k(CX(e.args[0],[v(n.args[0],{t:null,v:S(i,a.f?a.f[0].slice(1):"left")}),...l],r),CX(e.args[1],[v(n.args[1],{t:null,v:S(i,s.f?s.f[0].slice(1):"right")}),...l],r))}case"IF_CONS":{g({});const n=o(0,["list"])[0],i=c(n),a=t.slice(1);return k(CX(e.args[0],[v(n.args[0],{t:null,v:S(i,"hd")}),v(n,{t:null,v:S(i,"tl")}),...a],r),CX(e.args[1],a,r))}case"IF":{g({}),o(0,["bool"]);const n=t.slice(1);return k(CX(e.args[0],n,r),CX(e.args[1],n,r))}case"MAP":{const n=o(0,["list","map","option"])[0],i=t.slice(1),a="map"===n.prim?{prim:"pair",args:n.args}:n.args[0],s=CX(e.args[0],[v(a,{t:null,v:S(c(n),"elt")}),...i],r);if("failed"in s){if(!("prim"in s.failed)||"never"!==s.failed.prim)throw new _X(e,t,`${e.prim}: FAIL is not allowed in MAP`);return{failed:s.failed,level:s.level+1}}if(s.length<1)throw new _X(e,t,`${e.prim}: function must return a value`);return l(s.slice(1),i),"list"===n.prim?[y({prim:"list",args:[s[0]]}),...i]:"map"===n.prim?[y({prim:"map",args:[n.args[0],s[0]]}),...i]:[y({prim:"option",args:[s[0]]}),...i]}case"ITER":{g({});const n=o(0,["set","list","map"])[0],i=t.slice(1),a="map"===n.prim?{prim:"pair",args:n.args}:n.args[0],s=CX(e.args[0],[v(a,{t:null,v:S(c(n),"elt")}),...i],r);return"failed"in s?{failed:s.failed,level:s.level+1}:(l(s,i),i)}case"LOOP":{g({}),o(0,["bool"]);const n=t.slice(1),i=CX(e.args[0],n,r);return"failed"in i?{failed:i.failed,level:i.level+1}:(l(i,[{prim:"bool"},...n]),n)}case"LOOP_LEFT":{g({});const n=o(0,["or"])[0],i=t.slice(1),a=CX(e.args[0],[v(n.args[0],{t:null,v:S(c(n),"left")}),...i],r);return"failed"in a?{failed:a.failed,level:a.level+1}:(l(a,[n,...i]),[v(n.args[1],{t:null,v:g({v:1}).v}),...i])}case"DIP":{g({});const n=2===e.args.length?parseInt(e.args[0].int,10):1;o(n-1,null);const i=t.slice(0,n),a=t.slice(n),s=2===e.args.length?CX(e.args[1],a,r):CX(e.args[0],a,r);return"failed"in s?{failed:s.failed,level:s.level+1}:[...i,...s]}case"CREATE_CONTRACT":{const r=g({v:2}),n=o(0,["option"],["mutez"],null);if("key_hash"!==SX(n[0].args[0]))throw new _X(e,t,`${e.prim}: key hash expected: ${SX(n[0].args[0])}`);f(n[2])&&(LX(e.args[0]),EX(jX(e.args[0],"storage").args[0],n[2]));const i=null===(E=r.v)||void 0===E?void 0:E.map((e=>"@"!==e?[e]:void 0));return[v({prim:"operation"},{v:null===i||void 0===i?void 0:i[0]}),v({prim:"address",[NZ]:{prim:"contract",args:[jX(e.args[0],"parameter").args[0]]}},{v:null===i||void 0===i?void 0:i[1]}),...t.slice(3)]}case"PUSH":return PX(e.args[0]),OX(e.args[1],e.args[0],Object.assign(Object.assign({},r),{contract:void 0})),[y(e.args[0]),...t];case"EMPTY_SET":return PX(e.args[0]),d(e.args[0]),[v({prim:"set",args:e.args},g({t:1,v:1})),...t];case"EMPTY_MAP":return PX(e.args[0]),d(e.args[0]),PX(e.args[1]),[v({prim:"map",args:e.args},g({t:1,v:1})),...t];case"EMPTY_BIG_MAP":return PX(e.args[0]),d(e.args[0]),PX(e.args[1]),m(e.args[0]),[v({prim:"big_map",args:e.args},g({t:1,v:1})),...t];case"LAMBDA_REC":case"LAMBDA":{PX(e.args[0]),PX(e.args[1]);const n=[e.args[0]];"LAMBDA_REC"===e.prim&&n.push({prim:"lambda",args:[e.args[0],e.args[1]]});const i=CX(e.args[2],n,Object.assign(Object.assign({},r),{contract:void 0}));if("failed"in i)return{failed:i.failed,level:i.level+1};if(1!==i.length)throw new _X(e,t,`${e.prim}: function must return a value`);return u(e.args[1],i[0]),[y({prim:"lambda",args:[e.args[0],e.args[1]]}),...t]}case"LEVEL":return[y({prim:"nat"},"@level"),...t];case"TOTAL_VOTING_POWER":case"MIN_BLOCK_TIME":return[y({prim:"nat"}),...t];case"VOTING_POWER":return o(0,["key_hash"]),[y({prim:"nat"}),...t.slice(1)];case"TICKET":{const e=o(0,null,["nat"])[0];return d(e),UZ(n,DZ.PtLimaPtL)?[v({prim:"ticket",args:[e]},g({t:1,v:1})),...t.slice(2)]:[y({prim:"option",args:[v({prim:"ticket",args:[e]},g({t:1,v:1}))]}),...t.slice(2)]}case"JOIN_TICKETS":{const r=RY("pair",o(0,["pair"])[0]);if("ticket"!==SX(r.args[0]))throw new _X(e,t,`${e.prim}: ticket expected: ${SX(r.args[0])}`);return u(r.args[0],r.args[1]),[y({prim:"option",args:[v(r.args[0],{t:null})]}),...t.slice(1)]}case"SPLIT_TICKET":{const r=o(0,["ticket"],["pair"]),n=RY("pair",r[1]);if("nat"!==SX(n.args[0]))throw new _X(e,t,`${e.prim}: nat expected: ${SX(n.args[0])}`);return u(n.args[0],n.args[1]),[y({prim:"option",args:[{prim:"pair",args:[v(r[0],{t:null}),v(r[0],{t:null})]}]}),...t.slice(2)]}case"READ_TICKET":{const e=g({v:2}),r=o(0,["ticket"])[0],n=null===(A=e.v)||void 0===A?void 0:A.map((e=>"@"!==e?[e]:void 0));return[v({prim:"pair",args:[{prim:"address"},v(r.args[0],{t:null}),{prim:"nat"}]},{v:null===n||void 0===n?void 0:n[0]}),v(r,{v:null===n||void 0===n?void 0:n[1],t:null}),...t.slice(1)]}case"PAIRING_CHECK":{const r=o(0,["list"])[0].args[0];if(!IY(r))throw new _X(e,t,`${e.prim}: pair expected: ${SX(r)}`);const n=RY("pair",r);if("bls12_381_g1"!==SX(n.args[0]))throw new _X(e,t,`${e.prim}: bls12_381_g1 expected: ${SX(n.args[0])}`);if("bls12_381_g2"!==SX(n.args[1]))throw new _X(e,t,`${e.prim}: bls12_381_g2 expected: ${SX(n.args[1])}`);return[y({prim:"bool"}),...t.slice(1)]}case"SAPLING_EMPTY_STATE":return[v({prim:"sapling_state",args:[e.args[0]]},g({v:1,t:1})),...t];case"SAPLING_VERIFY_UPDATE":{const r=o(0,["sapling_transaction"],["sapling_state"]);if(parseInt(r[0].args[0].int,10)!==parseInt(r[1].args[0].int,10))throw new _X(e,t,`${e.prim}: sapling memo size mismatch: ${r[0].args[0].int} != ${r[1].args[0].int}`);return UZ(n,DZ.PtJakarta)?[y({prim:"option",args:[{prim:"pair",args:[{prim:"int"},v(r[1],{t:null})]}]}),...t.slice(2)]:[y({prim:"option",args:[{prim:"pair",args:[{prim:"bytes"},{prim:"pair",args:[{prim:"int"},v(r[1],{t:null})]}]}]}),...t.slice(2)]}case"OPEN_CHEST":return o(0,["chest_key"],["chest"],["nat"]),[y({prim:"or",args:[{prim:"bytes"},{prim:"bool"}]}),...t.slice(3)];case"VIEW":{const r=o(0,null,["address"]);return p(r[0]),[y({prim:"option",args:[e.args[1]]}),...t.slice(2)]}case"EMIT":{const r=g({f:1,t:1});if(e.args){const n=o(0,null);return u(n[0],e.args[0]),[v({prim:"operation"},r),...t.slice(1)]}return[v({prim:"operation"},r),...t.slice(1)]}default:throw new _Y(e,`unexpected instruction: ${e.prim}`)}})(i);if(void 0!==(null===r||void 0===r?void 0:r.traceCallback)){const e={op:i,in:t,out:E};r.traceCallback(e)}return E}function jX(e,t){for(const r of e)if(r.prim===t)return r;throw new _Y(e,`missing contract section: ${t}`)}function RX(e){if(Array.isArray(e))for(const t of e)if("prim"in t&&("parameter"===t.prim||"storage"===t.prim||"code"===t.prim))return!0;return!1}function IX(e,t){t=t||"%default";const r=MX(e).find((e=>e[0]===t));return void 0!==r?r[1]:"%default"===t?RX(e)?jX(e,"parameter").args[0]:e:null}function MX(e){if(RX(e)){const t=jX(e,"parameter"),r=MX(t.args[0]),n=OY(t);return n.f?[[n.f[0],t.args[0]],...r]:r}if(function(e){return Array.isArray(e)||"or"===e.prim}(e)){const t=kX(e),r=e=>{const r=OY(t[e]);if("or"===SX(t[e])){const n=MX(t[e]);return r.f?[[r.f[0],t[e]],...n]:n}return r.f?[[r.f[0],t[e]]]:[]};return[...r(0),...r(1)]}return[]}function LX(e,t){const r=(r,n,i,o)=>{PX(r,!0),PX(n);const a=CX(o,[{prim:"pair",args:[Object.assign(Object.assign({},r),{annots:["@parameter"]}),Object.assign(Object.assign({},n),{annots:["@storage"]})]}],Object.assign(Object.assign({},t),{contract:e}));if("failed"in a)return a;try{AX(a,[i])}catch(Cle){throw Cle instanceof _Y?new _X(o,a,Cle.message):Cle}return a},n=jX(e,"parameter").args[0],i=jX(e,"storage").args[0],o=r(n,i,{prim:"pair",args:[{prim:"list",args:[{prim:"operation"}]},i]},jX(e,"code").args[0]);for(const a of Object.values(function(e){const t={};for(const r of e)"view"===r.prim&&(t[r.args[0].string]=r);return t}(e)))r(a.args[1],i,a.args[2],a.args[3]);return o}function NX(e,t,r){PX(t),OX(e,t,r||null)}class DX{constructor(e,t){this.contract=e,this.ctx=Object.assign({contract:e},t),this.output=LX(e,this.ctx)}static parse(e,t){const r=new lY(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new vY("empty Michelson");if(lX(n))return new DX(n,t)}static parseTypeExpression(e,t){const r=new lY(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new yY("empty type expression");if(aX(n))return PX(n),n}static parseDataExpression(e,t){const r=new lY(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new bY("empty data expression");if(cX(n))return n;throw void 0}section(e){return jX(this.contract,e)}entryPoints(){return MX(this.contract)}entryPoint(e){return IX(this.contract,e)}assertDataValid(e,t){NX(e,t,this.ctx)}isDataValid(e,t){return function(e,t,r){try{return NX(e,t,r),!0}catch(Yr){return!1}}(e,t,this.ctx)}assertParameterValid(e,t){const r=this.entryPoint(e||void 0);if(null===r)throw new wY(null===e||void 0===e?void 0:e.toString());this.assertDataValid(t,r)}isParameterValid(e,t){try{return this.assertParameterValid(e,t),!0}catch(Yr){return!1}}functionType(e,t){return function(e,t,r){for(const n of t)PX(n);if(void 0!==(null===r||void 0===r?void 0:r.contract))for(const n of["parameter","storage"])PX(jX(r.contract,n).args[0]);return CX(e,t,r||null)}(e,t,this.ctx)}}new DX([{prim:"parameter",args:[{prim:"unit"}]},{prim:"storage",args:[{prim:"unit"}]},{prim:"code",args:[[{prim:"CAR"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PAIR"}]]}]);var zX=r(4872).Buffer;const BX=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),UX=(e,t=8)=>e.toString(16).padStart(t,"0");var FX;!function(e){e.SECRET="secret",e.RAW="raw",e.TZ1="tz1",e.BRANCH="branch",e.ZARITH="zarith",e.PUBLIC_KEY="public_key",e.PKH="pkh",e.DELEGATE="delegate",e.SCRIPT="script",e.BALLOT_STATEMENT="ballotStmt",e.PROPOSAL="proposal",e.PROPOSAL_ARR="proposalArr",e.INT32="int32",e.INT16="int16",e.PARAMETERS="parameters",e.ADDRESS="address",e.SMART_CONTRACT_ADDRESS="smart_contract_address",e.SMART_ROLLUP_ADDRESS="smart_rollup_address",e.SMART_ROLLUP_COMMITMENT_HASH="smart_rollup_commitment_hash",e.VALUE="value",e.PADDED_BYTES="padded_bytes",e.SMART_ROLLUP_MESSAGE="smart_rollup_message",e.MANAGER="manager",e.BLOCK_PAYLOAD_HASH="blockPayloadHash",e.ENTRYPOINT="entrypoint",e.OPERATION="operation",e.OP_ACTIVATE_ACCOUNT="activate_account",e.OP_DELEGATION="delegation",e.OP_TRANSACTION="transaction",e.OP_ORIGINATION="origination",e.OP_BALLOT="ballot",e.OP_FAILING_NOOP="failing_noop",e.OP_ENDORSEMENT="endorsement",e.OP_SEED_NONCE_REVELATION="seed_nonce_revelation",e.OP_REVEAL="reveal",e.OP_PROPOSALS="proposals",e.OP_REGISTER_GLOBAL_CONSTANT="register_global_constant",e.OP_TRANSFER_TICKET="transfer_ticket",e.OP_TX_ROLLUP_ORIGINATION="tx_rollup_origination",e.OP_TX_ROLLUP_SUBMIT_BATCH="tx_rollup_submit_batch",e.BURN_LIMIT="burn_limit",e.TX_ROLLUP_ORIGINATION_PARAM="tx_rollup_origination_param",e.TX_ROLLUP_ID="tx_rollup_id",e.TX_ROLLUP_BATCH_CONTENT="tx_rollup_batch_content",e.OP_INCREASE_PAID_STORAGE="increase_paid_storage",e.OP_UPDATE_CONSENSUS_KEY="update_consensus_key",e.OP_DRAIN_DELEGATE="drain_delegate",e.DEPOSITS_LIMIT="deposits_limit",e.OP_SET_DEPOSITS_LIMIT="set_deposits_limit",e.OP_SMART_ROLLUP_ORIGINATE="smart_rollup_originate",e.PVM_KIND="pvm_kind",e.OP_SMART_ROLLUP_ADD_MESSAGES="smart_rollup_add_messages",e.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE="smart_rollup_execute_outbox_message"}(FX||(FX={}));const $X={"00":"parameter","01":"storage","02":"code","03":"False","04":"Elt","05":"Left","06":"None","07":"Pair","08":"Right","09":"Some","0a":"True","0b":"Unit","0c":"PACK","0d":"UNPACK","0e":"BLAKE2B","0f":"SHA256",10:"SHA512",11:"ABS",12:"ADD",13:"AMOUNT",14:"AND",15:"BALANCE",16:"CAR",17:"CDR",18:"CHECK_SIGNATURE",19:"COMPARE","1a":"CONCAT","1b":"CONS","1c":"CREATE_ACCOUNT","1d":"CREATE_CONTRACT","1e":"IMPLICIT_ACCOUNT","1f":"DIP",20:"DROP",21:"DUP",22:"EDIV",23:"EMPTY_MAP",24:"EMPTY_SET",25:"EQ",26:"EXEC",27:"FAILWITH",28:"GE",29:"GET","2a":"GT","2b":"HASH_KEY","2c":"IF","2d":"IF_CONS","2e":"IF_LEFT","2f":"IF_NONE",30:"INT",31:"LAMBDA",32:"LE",33:"LEFT",34:"LOOP",35:"LSL",36:"LSR",37:"LT",38:"MAP",39:"MEM","3a":"MUL","3b":"NEG","3c":"NEQ","3d":"NIL","3e":"NONE","3f":"NOT",40:"NOW",41:"OR",42:"PAIR",43:"PUSH",44:"RIGHT",45:"SIZE",46:"SOME",47:"SOURCE",48:"SENDER",49:"SELF","4a":"STEPS_TO_QUOTA","4b":"SUB","4c":"SWAP","4d":"TRANSFER_TOKENS","4e":"SET_DELEGATE","4f":"UNIT",50:"UPDATE",51:"XOR",52:"ITER",53:"LOOP_LEFT",54:"ADDRESS",55:"CONTRACT",56:"ISNAT",57:"CAST",58:"RENAME",59:"bool","5a":"contract","5b":"int","5c":"key","5d":"key_hash","5e":"lambda","5f":"list",60:"map",61:"big_map",62:"nat",63:"option",64:"or",65:"pair",66:"set",67:"signature",68:"string",69:"bytes","6a":"mutez","6b":"timestamp","6c":"unit","6d":"operation","6e":"address","6f":"SLICE",70:"DIG",71:"DUG",72:"EMPTY_BIG_MAP",73:"APPLY",74:"chain_id",75:"CHAIN_ID",76:"LEVEL",77:"SELF_ADDRESS",78:"never",79:"NEVER","7a":"UNPAIR","7b":"VOTING_POWER","7c":"TOTAL_VOTING_POWER","7d":"KECCAK","7e":"SHA3","7f":"PAIRING_CHECK",80:"bls12_381_g1",81:"bls12_381_g2",82:"bls12_381_fr",83:"sapling_state",84:"sapling_transaction_deprecated",85:"SAPLING_EMPTY_STATE",86:"SAPLING_VERIFY_UPDATE",87:"ticket",88:"TICKET_DEPRECATED",89:"READ_TICKET","8a":"SPLIT_TICKET","8b":"JOIN_TICKETS","8c":"GET_AND_UPDATE","8d":"chest","8e":"chest_key","8f":"OPEN_CHEST",90:"VIEW",91:"view",92:"constant",93:"SUB_MUTEZ",94:"tx_rollup_l2_address",95:"MIN_BLOCK_TIME",96:"sapling_transaction",97:"EMIT",98:"Lambda_rec",99:"LAMBDA_REC","9a":"TICKET","9b":"BYTES","9c":"NAT"},HX=(()=>{const e={};return Object.keys($X).forEach((t=>{e[$X[t]]=t})),e})(),VX={4:"activate_account",107:"reveal",110:"delegation",108:"transaction",109:"origination",6:"ballot",21:"endorsement",1:"seed_nonce_revelation",5:"proposals",111:"register_global_constant",150:"tx_rollup_origination",151:"tx_rollup_submit_batch",158:"transfer_ticket",112:"set_deposits_limit",113:"increase_paid_storage",114:"update_consensus_key",9:"drain_delegate",200:"smart_rollup_originate",201:"smart_rollup_add_messages",206:"smart_rollup_execute_outbox_message",17:"failing_noop"},qX=(()=>{const e={};return Object.keys(VX).forEach((t=>{const r="string"===typeof t?parseInt(t,10):t;e[VX[r]]=UX(r,2)})),e})(),KX={"00":"default","01":"root","02":"do","03":"set_delegate","04":"remove_delegate","05":"deposit"},WX=(()=>{const e={};return Object.keys(KX).forEach((t=>{e[KX[t]]=t})),e})();class GX extends Qa{constructor(e,t){super(),this.operation=e,this.errorDetail=t,this.name="InvalidOperationSchemaError",this.message="Invalid operation content recevied",t&&(this.message+=` ${t}.`)}}class ZX extends Qa{constructor(e){super(),this.entrypoint=e,this.name="OversizedEntryPointError",this.message=`Invalid entrypoint length "${e.length}", maximum length is "31".`}}class YX extends Qa{constructor(e){super(),this.ballotValue=e,this.name="InvalidBallotValueError",this.message=`Invalid ballot value "${e}" expecting one of the following: "yay", "nay", "pass".`}}class XX extends Qa{constructor(e){super(),this.ballotValue=e,this.name="DecodeBallotValueError",this.message=`Invalid ballot value "${e}", cannot be decoded.`}}class JX extends Qa{constructor(e){super(),this.value=e,this.name="UnexpectedMichelsonValueError",this.message=`Invalid Michelson value "${e}", unalbe to encode.`}}class QX extends Qa{constructor(e){super(),this.message=e,this.name="OperationDecodingError"}}class eJ extends Qa{constructor(e){super(),this.message=e,this.name="OperationEncodingError"}}class tJ extends Qa{constructor(e){super(),this.op=e,this.name="UnsupportedOperationError",this.message=`Unsupported operation "${e}", can submit an issue on our github for feature request.`}}class rJ extends Qa{constructor(e){super(),this.pvm=e,this.name="UnsupportedPvmKindError",this.message=`Invalid Pvm kind "${e}" expecting either "arith" or "wasm_2_0_0".`}}class nJ extends Qa{constructor(e){super(),this.pvm=e,this.name="DecodePvmKindError",this.message=`Invalid Pvm kind "${e}", cannot be decoded.`}}class iJ extends Qa{constructor(e,t){super(),this.address=e,this.errorDetail=t,this.name="InvalidSmartRollupAddress",this.message=`Invalid smart rollup address "${e}"`,t&&(this.message+=` ${t}.`)}}class oJ extends Qa{constructor(e,t){super(),this.hash=e,this.errorDetail=t,this.name="InvalidSmartRollupCommitmentHashError",this.message=`Invalid smart rollup commitment hash "${e}"`,t&&(this.message+=` ${t}.`)}}class aJ{static fromHexString(e){const t=e.toLowerCase();if(/^(([a-f]|\d){2})*$/.test(t)){const e=new Uint8Array((t.match(/([a-z]|\d){2}/g)||[]).map((e=>parseInt(e,16))));return new aJ(e)}throw new cs(t)}constructor(e,t=0){this.arr=e,this.offset=t}consume(e){const t=this.arr.subarray(this.offset,this.offset+e);return this.offset+=e,t}get(e){return this.arr[this.offset+e]}length(){return this.arr.length-this.offset}slice(e,t){return new aJ(this.arr.slice(e,t))}}const sJ=e=>{if(Array.isArray(e)){const t=e.map((e=>sJ(e))).join(""),r=t.length/2;return`02${UX(r)}${t}`}if((e=>"prim"in e)(e))return gJ(e);if((e=>"bytes"in e&&"string"===typeof e.bytes)(e))return uJ(e);if((e=>"string"in e&&"string"===typeof e.string)(e))return hJ(e);if((e=>"int"in e&&"string"===typeof e.int)(e))return pJ(e);throw new JX(JSON.stringify(e))},cJ=e=>{const t=e.consume(1);switch(t[0]){case 10:return dJ(e);case 1:return fJ(e);case 0:return mJ(e);case 2:{const t=new aJ(lJ(e)),r=[];for(;t.length()>0;)r.push(cJ(t));return r}default:return vJ(e,t)}},lJ=(e,t=4)=>{const r=e.consume(t),n=parseInt(zX.from(r).toString("hex"),16);return e.consume(n)},uJ=e=>{if(!/^([A-Fa-f0-9]{2})*$/.test(e.bytes))throw new cs(e.bytes);const t=e.bytes.length/2;return`0a${UX(t)}${e.bytes}`},dJ=e=>{const t=lJ(e);return{bytes:zX.from(t).toString("hex")}},hJ=e=>{const t=zX.from(e.string,"utf8").toString("hex"),r=t.length/2;return`01${UX(r)}${t}`},fJ=e=>{const t=lJ(e);return{string:zX.from(t).toString("utf8")}},pJ=({int:e})=>{const t=new Bs(e,10),r="-"===t.toString(2)[0]?"1":"0",n=t.toString(2).replace(/-/g,""),i=n.length<=6?6:(n.length-6)%7?n.length+7-(n.length-6)%7:n.length,o=n.padStart(i,"0").match(/\d{6,7}/g).reverse();o[0]=r+o[0];const a=o.map(((e,t)=>parseInt((t===o.length-1?"0":"1")+e,2).toString(16).padStart(2,"0")));return`00${a.join("")}`},mJ=e=>{let t=e.consume(1)[0];const r=[];for(;128&t;)r.push(t),t=e.consume(1)[0];r.push(t);const n=!!(64&r[0]);r[0]=127&r[0];const i=r.map(((e,t)=>e.toString(2).slice(0===t?-6:-7).padStart(0===t?6:7,"0"))).reverse();let o=new Bs(i.join(""),2);return n&&(o=o.times(-1)),{int:o.toFixed()}},gJ=e=>{const t=+Array.isArray(e.annots),r=Array.isArray(e.args)?e.args.length:0,n=UX(Math.min(2*r+t+3,9),2),i=HX[e.prim];let o=(e.args||[]).map((e=>sJ(e))).join("");const a=Array.isArray(e.annots)?wJ(e.annots):"";return"LAMBDA"!==e.prim&&"LAMBDA_REC"!==e.prim||!r||(o=UX(o.length/2)+o+UX(0)),("pair"===e.prim||"Pair"===e.prim)&&r>2&&(o=""===a?UX(o.length/2)+o+UX(0):UX(o.length/2)+o),"view"===e.prim&&e.args&&(o=UX(o.length/2)+o+UX(0)),`${n}${i}${o}${a}`},vJ=(e,t)=>{const r=(t[0]-3)%2===1;let n=Math.floor((t[0]-3)/2);const i=e.consume(1)[0].toString(16).padStart(2,"0"),o={prim:$X[i]};if("LAMBDA"!==$X[i]&&"LAMBDA_REC"!==$X[i]||e.consume(4),"view"===$X[i])return 0!=n?yJ(e,o):o;let a,s;("pair"===$X[i]||"Pair"===$X[i])&&n>2&&(a=bJ(e),n=0,s=xJ(e));const c=new Array(n).fill(0).map((()=>cJ(e)));return"LAMBDA"!==$X[i]&&"LAMBDA_REC"!==$X[i]||e.consume(4),a?o.args=a:c.length&&(o.args=c),s&&""!==s[0]?o.annots=s:r&&(o.annots=xJ(e)),o},yJ=(e,t)=>(e.consume(4),t.args=new Array(4).fill(0).map((()=>cJ(e))),e.consume(4),t),bJ=e=>{const t=new aJ(lJ(e)),r=[];for(;t.length()>0;)r.push(cJ(t));return r},wJ=e=>{const t=e.map((e=>zX.from(e,"utf8").toString("hex"))).join("20"),r=t.length/2;return`${UX(r)}${t}`},xJ=e=>{const t=e.consume(4),r=parseInt(zX.from(t).toString("hex"),16),n=e.consume(r);return zX.from(n).toString("hex").split("20").map((e=>zX.from(e,"hex").toString("utf8")))},_J=e=>t=>kc(zX.from(yc(t,Ks[e]))),SJ=e=>t=>vc(t.consume(Ws[e]),Ks[e]),kJ=SJ(Fs.TZ1),EJ=SJ(Fs.B),AJ=e=>{const t=e.consume(1);return 0===t[0]?SJ(Fs.TZ1)(e):1===t[0]?SJ(Fs.TZ2)(e):2===t[0]?SJ(Fs.TZ3)(e):void 0},PJ=_J(Fs.B),TJ=_J(Fs.TZ1),OJ=e=>e?"ff":"00",CJ=e=>_J(Fs.P)(e),jJ=e=>SJ(Fs.P)(e),RJ=e=>{switch(e.substring(0,3)){case Fs.TZ1:return"00"+_J(Fs.TZ1)(e);case Fs.TZ2:return"01"+_J(Fs.TZ2)(e);case Fs.TZ3:return"02"+_J(Fs.TZ3)(e);case Fs.TZ4:return"03"+_J(Fs.TZ4)(e);default:throw new ms(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting one for the following "${Fs.TZ1}", "${Fs.TZ2}", "${Fs.TZ3}" or "${Fs.TZ4}".`)}},IJ=e=>{const t=[];let r=new Us(e,10);if(r.isNaN())throw new TypeError(`Invalid zarith number ${e}`);for(;;){if(r.lt(128)){r.lt(16)&&t.push("0"),t.push(r.toString(16));break}{let e=r.mod(128);r=r.minus(e),r=r.dividedBy(128),e=e.plus(128),t.push(e.toString(16))}}return t.join("")},MJ=e=>{let t=0;for(;t=0;n-=1){const t=127&e.get(n);r=r.multipliedBy(128),r=r.plus(t)}return e.consume(t+1),new Us(r).toString()},LJ=_J(Fs.VH),NJ=SJ(Fs.VH),DJ=_J(Fs.TXR1),zJ=SJ(Fs.TXR1),BJ={branch:FX.BRANCH,contents:[FX.OPERATION]},UJ={pkh:FX.TZ1,secret:FX.SECRET},FJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,public_key:FX.PUBLIC_KEY},$J={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,delegate:FX.DELEGATE},HJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,amount:FX.ZARITH,destination:FX.ADDRESS,parameters:FX.PARAMETERS},VJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,balance:FX.ZARITH,delegate:FX.DELEGATE,script:FX.SCRIPT},qJ={source:FX.PKH,period:FX.INT32,proposal:FX.PROPOSAL,ballot:FX.BALLOT_STATEMENT},KJ={slot:FX.INT16,level:FX.INT32,round:FX.INT32,block_payload_hash:FX.BLOCK_PAYLOAD_HASH},WJ={level:FX.INT32,nonce:FX.RAW},GJ={source:FX.PKH,period:FX.INT32,proposals:FX.PROPOSAL_ARR},ZJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,value:FX.VALUE},YJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,ticket_contents:FX.VALUE,ticket_ty:FX.VALUE,ticket_ticketer:FX.ADDRESS,ticket_amount:FX.ZARITH,destination:FX.ADDRESS,entrypoint:FX.ENTRYPOINT},XJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,tx_rollup_origination:FX.TX_ROLLUP_ORIGINATION_PARAM},JJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,rollup:FX.TX_ROLLUP_ID,content:FX.TX_ROLLUP_BATCH_CONTENT,burn_limit:FX.BURN_LIMIT},QJ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,amount:FX.ZARITH,destination:FX.SMART_CONTRACT_ADDRESS},eQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,pk:FX.PUBLIC_KEY},tQ={consensus_key:FX.PKH,delegate:FX.PKH,destination:FX.PKH},rQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,limit:FX.DEPOSITS_LIMIT},nQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,pvm_kind:FX.PVM_KIND,kernel:FX.PADDED_BYTES,origination_proof:FX.PADDED_BYTES,parameters_ty:FX.VALUE},iQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,message:FX.SMART_ROLLUP_MESSAGE},oQ={source:FX.PKH,fee:FX.ZARITH,counter:FX.ZARITH,gas_limit:FX.ZARITH,storage_limit:FX.ZARITH,rollup:FX.SMART_ROLLUP_ADDRESS,cemented_commitment:FX.SMART_ROLLUP_COMMITMENT_HASH,output_proof:FX.PADDED_BYTES},aQ={arbitrary:FX.PADDED_BYTES},sQ=e=>t=>r=>Object.keys(t).reduce(((n,i)=>{const o=t[i];if(r&&Array.isArray(o)){const t=e[o[0]],a=r[i];if(!Array.isArray(a))throw new eJ(`Invalid operation value "${JSON.stringify(a)}" of key "${i}, expected value to be Array.`);return n+a.reduce(((e,r)=>e+t(r)),"")}return n+(0,e[o])(r[i])}),""),cQ=e=>t=>r=>Object.keys(t).reduce(((n,i)=>{const o=t[i];if(Array.isArray(o)){const t=e[o[0]],a=[],s=r.length();for(;r.length()>0;)if(a.push(t(r)),s===r.length())throw new QX("Unable to decode value");return Object.assign(Object.assign({},n),{[i]:a})}{const t=(0,e[o])(r);return"undefined"!==typeof t?Object.assign(Object.assign({},n),{[i]:t}):Object.assign({},n)}}),{}),lQ={[FX.SECRET]:e=>BX(e.consume(20)),[FX.RAW]:e=>BX(e.consume(32)),[FX.TZ1]:kJ,[FX.BRANCH]:EJ,[FX.ZARITH]:MJ,[FX.PUBLIC_KEY]:e=>{switch(e.consume(1)[0]){case 0:return SJ(Fs.EDPK)(e);case 1:return SJ(Fs.SPPK)(e);case 2:return SJ(Fs.P2PK)(e);default:throw new hs(e.toString(),hc(Zs.NO_PREFIX_MATCHED))}},[FX.PKH]:AJ,[FX.DELEGATE]:e=>{const t=(e=>255===e.consume(1)[0])(e);if(t)return AJ(e)},[FX.INT32]:e=>{const t=e.consume(4);let r=0;for(let n=0;n{const t=lJ(e),r=lJ(e);return{code:cJ(new aJ(t)),storage:cJ(new aJ(r))}},[FX.BALLOT_STATEMENT]:e=>{const t=e.consume(1);switch(t[0]){case 0:return"yay";case 1:return"nay";case 2:return"pass";default:throw new XX(t[0].toString())}},[FX.PROPOSAL]:jJ,[FX.PROPOSAL_ARR]:e=>{const t=[];for(e.consume(4);e.length()>0;)t.push(jJ(e));return t},[FX.PARAMETERS]:e=>{if(0!==e.consume(1)[0]){const t=(e=>{const t=UX(e.consume(1)[0],2);if(t in KX)return KX[t];{const t=lJ(e,1),r=zX.from(t).toString("utf8");if(r.length>31)throw new ZX(r);return r}})(e),r=lJ(e);return{entrypoint:t,value:cJ(new aJ(r))}}},[FX.ADDRESS]:e=>{switch(e.consume(1)[0]){case 0:return AJ(e);case 1:{const t=SJ(Fs.KT1)(e);return e.consume(1),t}default:throw new is(e.toString(),": Unable to decode.")}},[FX.SMART_ROLLUP_ADDRESS]:e=>{const t=SJ(Fs.SR1)(e);if(t.substring(0,3)!==Fs.SR1)throw new iJ(t,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.SR1}'.`);return t},[FX.SMART_CONTRACT_ADDRESS]:e=>{if(1===e.consume(1)[0]){const t=SJ(Fs.KT1)(e);return e.consume(1),t}throw new fs(e.toString(),hc(Zs.NO_PREFIX_MATCHED))},[FX.SMART_ROLLUP_COMMITMENT_HASH]:e=>{const t=SJ(Fs.SRC1)(e);if(t.substring(0,4)!==Fs.SRC1)throw new oJ(t,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.SRC1}'`);return t},[FX.VALUE]:e=>{const t=lJ(e);return cJ(new aJ(t))},[FX.INT16]:e=>{const t=e.consume(2);let r=0;for(let n=0;n{const t=lJ(e);return zX.from(t).toString("utf8")},[FX.TX_ROLLUP_ORIGINATION_PARAM]:e=>({}),[FX.TX_ROLLUP_ID]:zJ,[FX.TX_ROLLUP_BATCH_CONTENT]:e=>{const t=lJ(e);return zX.from(t).toString("hex")},[FX.BURN_LIMIT]:e=>{const t=e.consume(1);if("00"!==zX.from(t).toString("hex"))return MJ(e)},[FX.DEPOSITS_LIMIT]:e=>{const t=e.consume(1);if("00"!==zX.from(t).toString("hex"))return MJ(e)},[FX.PVM_KIND]:e=>{const t=e.consume(1);switch(t[0]){case 0:return"arith";case 1:return"wasm_2_0_0";default:throw new nJ(t[0].toString())}},[FX.PADDED_BYTES]:e=>{const t=lJ(e);return zX.from(t).toString("hex")},[FX.SMART_ROLLUP_MESSAGE]:e=>{const t=lJ(e),r=((e,t=4)=>{const r=[];let n=e;for(;n.length();){const e=n.consume(t),i=parseInt(zX.from(e).toString("hex"),16);r.push(n.consume(i)),n=n.slice(i+t)}return r})(new aJ(t));return r.map((e=>zX.from(e).toString("hex")))}};lQ[FX.OPERATION]=(e=>t=>{const r=t.consume(1),n=VX[r[0]];if(void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cQ(lQ)(rQ)(e);const uQ={[FX.SECRET]:e=>e,[FX.RAW]:e=>e,[FX.TZ1]:TJ,[FX.BRANCH]:PJ,[FX.ZARITH]:IJ,[FX.PUBLIC_KEY]:e=>{switch(e.substring(0,4)){case Fs.EDPK:return"00"+_J(Fs.EDPK)(e);case Fs.SPPK:return"01"+_J(Fs.SPPK)(e);case Fs.P2PK:return"02"+_J(Fs.P2PK)(e);default:throw new hs(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting one of the following '${Fs.EDPK}', '${Fs.SPPK}', '${Fs.P2PK}' or '${Fs.BLPK}'.`)}},[FX.PKH]:RJ,[FX.DELEGATE]:e=>e?OJ(!0)+RJ(e):OJ(!1),[FX.SCRIPT]:e=>{const t=sJ(e.code),r=sJ(e.storage);return`${UX(t.length/2,8)}${t}${UX(r.length/2,8)}${r}`},[FX.BALLOT_STATEMENT]:e=>{switch(e){case"yay":return"00";case"nay":return"01";case"pass":return"02";default:throw new YX(e)}},[FX.PROPOSAL]:CJ,[FX.PROPOSAL_ARR]:e=>UX(32*e.length)+e.map((e=>CJ(e))).join(""),[FX.INT32]:e=>{const t=parseInt(String(e),10),r=[];for(let n=0;n<4;n++){const e=8*(4-(n+1));r.push((t&255<>e)}return zX.from(r).toString("hex")},[FX.PARAMETERS]:e=>{if(!e||"default"===e.entrypoint&&"prim"in e.value&&"Unit"===e.value.prim)return"00";const t=(e=>{if(e in WX)return`${WX[e]}`;if(e.length>31)throw new ZX(e);return`ff${sJ({string:e}).slice(8)}`})(e.entrypoint),r=sJ(e.value);return`ff${t}${(r.length/2).toString(16).padStart(8,"0")}${r}`},[FX.ADDRESS]:e=>{switch(e.substring(0,3)){case Fs.TZ1:case Fs.TZ2:case Fs.TZ3:case Fs.TZ4:return"00"+RJ(e);case Fs.KT1:return"01"+_J(Fs.KT1)(e)+"00";default:throw new is(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting one of the following prefix '${Fs.TZ1}', ${Fs.TZ2}', '${Fs.TZ3}', '${Fs.TZ4}' or '${Fs.KT1}'.`)}},[FX.SMART_ROLLUP_ADDRESS]:e=>{if(e.substring(0,3)!==Fs.SR1)throw new iJ(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.SR1}'.`);return _J(Fs.SR1)(e)},[FX.SMART_CONTRACT_ADDRESS]:e=>{if(e.substring(0,3)===Fs.KT1)return"01"+_J(Fs.KT1)(e)+"00";throw new fs(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.KT1}'.`)},[FX.SMART_ROLLUP_COMMITMENT_HASH]:e=>{if(e.substring(0,4)===Fs.SRC1)return _J(Fs.SRC1)(e);throw new oJ(e,hc(Zs.NO_PREFIX_MATCHED)+` expecting prefix '${Fs.SRC1}'`)},[FX.VALUE]:e=>{const t=sJ(e);return`${UX(t.length/2)}${t}`},[FX.INT16]:e=>{const t=parseInt(String(e),10),r=[];for(let n=0;n<2;n++){const e=8*(2-(n+1));r.push((t&255<>e)}return zX.from(r).toString("hex")},[FX.BLOCK_PAYLOAD_HASH]:LJ,[FX.ENTRYPOINT]:e=>`${sJ({string:e}).slice(2)}`,[FX.TX_ROLLUP_ORIGINATION_PARAM]:e=>"",[FX.TX_ROLLUP_ID]:DJ,[FX.TX_ROLLUP_BATCH_CONTENT]:e=>`${UX(e.length/2)}${e}`,[FX.BURN_LIMIT]:e=>e?`ff${IJ(e)}`:"00",[FX.DEPOSITS_LIMIT]:e=>e?`ff${IJ(e)}`:"00",[FX.PVM_KIND]:e=>{switch(e){case"arith":return"00";case"wasm_2_0_0":return"01";default:throw new rJ(e)}},[FX.PADDED_BYTES]:(e,t=8)=>`${UX(e.length/2,t)}${e}`,[FX.SMART_ROLLUP_MESSAGE]:e=>{const t=e.reduce(((e,t)=>e+`${UX(t.length/2)}${t}`),"");return`${UX(t.length/2)}${t}`}};uQ[FX.OPERATION]=(e=>t=>{if(!(t.kind in e)||!(t.kind in qX))throw new vs(t.kind);return qX[t.kind]+e[t.kind](t)})(uQ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_nonce_revelation:WJ,proposals:GJ,register_global_constant:ZJ,transfer_ticket:YJ,tx_rollup_origination:XJ,tx_rollup_submit_batch:JJ,increase_paid_storage:QJ,update_consensus_key:eQ,drain_delegate:tQ,set_deposits_limit:rQ,smart_rollup_originate:nQ,smart_rollup_add_messages:iQ,smart_rollup_execute_outbox_message:oQ,failing_noop:aQ},hQ=e=>{const t=e.kind,r=Object.keys(e),n=(i="kind",r.filter((e=>e!==i)));var i;const o=Object.keys(dQ[t]);return a=n,o.filter((e=>!a.includes(e)));var a};var fQ;!function(e){e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(fQ||(fQ={}));const pQ=fQ.PtMumbai2;class mQ{constructor(e=pQ){var t;this.protocolHash=e,this.codec=(t=FX.MANAGER,this.protocolHash,{encoder:uQ[t],decoder:e=>{const r=aJ.fromHexString(e);return lQ[t](r)}})}forge(e){const t=function(e){return Xs(e,nc)}(e.branch);if(t!==Zs.VALID)throw new os(e.branch,hc(t));for(const i of e.contents){if(r=i.kind,!Object.keys(dQ).includes(r))throw new vs(i.kind);const e=hQ(i);if(1===e.length){if("delegation"===i.kind&&"delegate"===e[0])continue;if("origination"===i.kind&&"delegate"===e[0])continue;if("transaction"===i.kind&&"parameters"===e[0])continue;if("set_deposits_limit"===i.kind&&"limit"===e[0])continue;if("tx_rollup_submit_batch"===i.kind&&"burn_limit"===e[0])continue;throw new GX(i,`missing properties "${e.join(", ")}"`)}if(e.length>1)throw new GX(i,`missing properties "${e.join(", ")}"`)}var r;const n=this.codec.encoder(e).toLowerCase();return Promise.resolve(n)}parse(e){return Promise.resolve(this.codec.decoder(e))}}new mQ;function gQ(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i(e.on("data",(e=>{t.next(e)})),e.on("error",(e=>{t.error(e)})),e.on("close",(()=>{t.complete()})),()=>{e.close()})))}const kQ=10600,EQ=10600,AQ=10600,PQ=1e3,TQ=1e3,OQ=2e3,CQ=2e3,jQ=1257,RQ=1e4,IQ=1e4,MQ=374,LQ=0,NQ=257,DQ=257,zQ=0;var BQ;!function(e){e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.PsiThaCa="PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(BQ||(BQ={}));BQ.Pt24m4xi,BQ.PsBABY5H,BQ.PsBabyM1,BQ.PsCARTHA,BQ.PsDELPH1,BQ.PtEdo2Zk,BQ.PsFLorena,BQ.PtGRANADs,BQ.PtHangz2,BQ.PsiThaCa,BQ.Psithaca2,BQ.PtJakart2,BQ.PtKathman,BQ.PtLimaPtL,BQ.PtMumbai2,BQ.PtNairobi,BQ.ProtoALpha;var UQ;!function(e){e.MAINNET="NetXdQprcVkpaWU",e.CARTHAGENET="NetXjD3HPJJjmcd",e.DELPHINET="NetXm8tYqnMWky1",e.EDONET="NetXSgo1ZT2DRUG",e.FLORENCENET="NetXxkAx4woPLyu",e.GRANADANET="NetXz969SFaFn8k",e.HANGZHOUNET="NetXZSsxBpMQeAT",e.ITHACANET="NetXbhmtAbMukLc",e.ITHACANET2="NetXnHfVqm9iesp",e.JAKARTANET2="NetXLH1uAxK7CCh",e.KATHMANDUNET="NetXazhm4yetmff",e.LIMANET="NetXizpkH94bocH",e.MUMBAINET="NetXQw6nWSnrJ5t",e.MUMBAINET2="NetXgbcrNtXD2yA",e.NAIROBINET="NetXyuzvDo2Ugzb"}(UQ||(UQ={}));const FQ=e=>Math.round(11*$Q(e)/10),$Q=e=>{switch(e.substring(0,3)){case"tz1":return PQ;case"tz2":return TQ;case"tz3":return OQ;case"tz4":return CQ;default:throw new Error(`Cannot estimate reveal gas limit for ${e}`)}};class HQ extends Qa{constructor(e,t,r){super(),this.smartContractMethodName=e,this.sigs=t,this.invalidParams=r,this.name="InvalidParameterError",this.message=`${e} Received ${r.length} arguments while expecting one of the following signatures (${JSON.stringify(t)})`}}class VQ extends Qa{constructor(e){super(),this.source=e,this.name="InvalidDelegationSource",this.message=`Since Babylon delegation source can no longer be a contract address ${e}. Please use the smart contract abstraction to set your delegate.`}}class qQ extends Qa{constructor(e,t){super(),this.message=e,this.data=t,this.name="InvalidCodeParameter"}}class KQ extends Qa{constructor(e,t){super(),this.message=e,this.data=t,this.name="InvalidInitParameter"}}class WQ extends es{constructor(e,t,r,n){super(),this.message=e,this.viewName=t,this.failWith=r,this.cause=n,this.name="ViewSimulationError"}}const GQ=e=>{try{JSON.parse(e)}catch(t){return!1}return!0};class ZQ extends Qa{constructor(e){super(),this.info=e,this.name="InvalidViewSimulationContext",this.message=`${e} Please configure the context of the view execution in the executeView method.`}}class YQ extends es{constructor(e){super(),this.message=e,this.name="RevealOperationError"}}class XQ extends Qa{constructor(e){super(),this.message=e,this.name}}class JQ extends Qa{constructor(e){super(),this.message=e,this.name="InvalidBalanceError"}}const QQ=({code:e,init:t,balance:r="0",delegate:n,storage:i,fee:o=RQ,gasLimit:a=EQ,storageLimit:s=NQ,mutez:c=!1})=>vQ(void 0,void 0,void 0,(function*(){if(void 0!==i&&void 0!==t)throw new XQ("Storage and Init cannot be set a the same time. Please either use storage or init but not both.");if(!Array.isArray(e))throw new qQ("Wrong code parameter type, expected an array",e);let l;if(void 0!==i){const t=e.find((e=>"prim"in e&&"storage"===e.prim));if(void 0===(null===t||void 0===t?void 0:t.args))throw new qQ("The storage section is missing from the script",e);l=new _Z(t.args[0]).Encode(i)}else{if(void 0===t||"object"!==typeof t)throw new KQ("Wrong init parameter type, expected JSON Michelson",t);l=t}const u={code:e,storage:l};if(isNaN(Number(r)))throw new JQ(`Invalid Balance "${r}", cannot be converted to a number`);const d={kind:Pq.ORIGINATION,fee:o,gas_limit:a,storage_limit:s,balance:c?r.toString():gc("tz","mutez",r).toString(),script:u};return n&&(d.delegate=n),d})),e0=({to:e,amount:t,parameter:r,fee:n=IQ,gasLimit:i=AQ,storageLimit:o=DQ,mutez:a=!1})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.TRANSACTION,fee:n,gas_limit:i,storage_limit:o,amount:a?t.toString():gc("tz","mutez",t).toString(),destination:e,parameters:r}})),t0=({delegate:e,source:t,fee:r=jQ,gasLimit:n=kQ,storageLimit:i=LQ})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.DELEGATION,source:t,fee:r,gas_limit:n,storage_limit:i,delegate:e}})),r0=({fee:e=MQ,gasLimit:t,storageLimit:r=zQ},n,i)=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.REVEAL,fee:e,public_key:i,source:n,gas_limit:null!==t&&void 0!==t?t:FQ(n),storage_limit:r}})),n0=({value:e,source:t,fee:r,gasLimit:n,storageLimit:i})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.REGISTER_GLOBAL_CONSTANT,value:e,fee:r,gas_limit:n,storage_limit:i,source:t}})),i0=({ticketContents:e,ticketTy:t,ticketTicketer:r,ticketAmount:n,destination:i,entrypoint:o,source:a,fee:s,gasLimit:c,storageLimit:l})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.TRANSFER_TICKET,fee:s,gas_limit:c,storage_limit:l,source:a,ticket_contents:e,ticket_ty:t,ticket_ticketer:r,ticket_amount:n,destination:i,entrypoint:o}})),o0=({source:e,fee:t,gasLimit:r,storageLimit:n,amount:i,destination:o})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.INCREASE_PAID_STORAGE,source:e,fee:t,gas_limit:r,storage_limit:n,amount:i,destination:o}})),a0=({source:e,fee:t,gasLimit:r,storageLimit:n,message:i})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.SMART_ROLLUP_ADD_MESSAGES,source:e,fee:t,gas_limit:r,storage_limit:n,message:i}})),s0=({source:e,fee:t,gasLimit:r,storageLimit:n,pvmKind:i,kernel:o,originationProof:a,parametersType:s})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.SMART_ROLLUP_ORIGINATE,source:e,fee:t,gas_limit:r,storage_limit:n,pvm_kind:i,kernel:o,origination_proof:a,parameters_ty:s}})),c0=(e,t)=>Object.assign(Object.assign({},e),{kind:t}),l0=(e,t)=>{if(Array.isArray(e)){const r=e.find((e=>e.kind===t));if(r&&u0(r,t))return r}},u0=(e,t)=>e.kind===t,d0=e=>-1!==["transaction","delegation","origination","reveal","register_global_constant","increase_paid_storage","tx_rollup_origination","tx_rollup_submit_batch","transfer_ticket","update_consensus_key","smart_rollup_add_messages","smart_rollup_originate"].indexOf(e.kind),h0=e=>-1!==["transaction","delegation","origination","register_global_constant","increase_paid_storage","tx_rollup_origination","tx_rollup_submit_batch","transfer_ticket","update_consensus_key","smart_rollup_add_messages","smart_rollup_originate"].indexOf(e.kind),f0=e=>"metadata"in e,p0=e=>f0(e)&&"operation_result"in e.metadata;class m0 extends es{constructor(e,t,r){super(),this.errors=e,this.errorDetails=t,this.operationsWithResults=r,this.name="TezosOperationError",this.lastError=e[e.length-1],this.message=`(${this.kind}) ${this.id}`,(e=>"with"in e)(this.lastError)&&(this.lastError.with.string?this.message=this.lastError.with.string:this.lastError.with.int?this.message=this.lastError.with.int:this.message=JSON.stringify(this.lastError.with))}get id(){return this.lastError.id}get kind(){return this.lastError.kind}}class g0 extends Error{constructor(e){super(),this.result=e,this.name="TezosPreapplyFailureError",this.message="Preapply returned an unexpected result"}}const v0=e=>{const t=Array.isArray(e)?e:[e],r=[];for(let n=0;nr.push(e.result))))}return r},y0=(e,t="failed")=>{const r=Array.isArray(e)?e:[e];let n=[];for(let o=0;onew lK(e).pipe(uW({each:1e3*e.timeout,with:()=>uK((()=>new _0("Confirmation polling timed out")))})))),cW((()=>_K((()=>SQ(this.context.stream.subscribeBlock("head")))).pipe(cW((e=>{var t,r;const n=null!==(r=null===(t=this.lastHead)||void 0===t?void 0:t.header.level)&&void 0!==r?r:e.header.level-1;return kK(n+1,e.header.level-n-1).pipe(hW((e=>this.context.readProvider.getBlock(e))),fW(e))})),pW((e=>this.lastHead=e))))),vW({refCount:!0})),this.confirmed$=this.currentHead$.pipe(VK((e=>{for(let t=3;t>=0;t--)e.operations[t].forEach((t=>{t.hash===this.hash&&(this._foundAt=e.header.level)}));if(e.header.level-this._foundAt>=0)return this._foundAt})),yW((e=>void 0!==e)),xW(),vW()),this._foundAt=Number.POSITIVE_INFINITY,dc(this.hash)!==Zs.VALID)throw new gs(this.hash);this.confirmed$.pipe(xW(),_W((()=>zK(SK)))).subscribe()}get revealOperation(){return Array.isArray(this.results)&&this.results.find((e=>"reveal"===e.kind))}get revealStatus(){return this.revealOperation?this.revealOperation.metadata.operation_result.status:"unknown"}get status(){return this.results.map((e=>p0(e)?e.metadata.operation_result.status:"unknown"))[0]||"unknown"}confirmation(e,t){return vQ(this,void 0,void 0,(function*(){if("undefined"!==typeof e&&e<1)throw new x0(e);const{defaultConfirmationCount:r,confirmationPollingTimeoutSecond:n}=this.context.config;this._pollingConfig$.next({timeout:t||n});const i=void 0!==e?e:r;return new Promise(((e,t)=>{this.confirmed$.pipe(cW((()=>this.currentHead$)),yW((e=>e.header.level-this._foundAt>=i-1)),xW()).subscribe((t=>{e(this._foundAt+(i-1))}),t)}))}))}}class E0 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}getOriginatedContractAddresses(){const e=this.results.filter((e=>"origination"===e.kind));let t=[];for(const r of e)r.metadata.operation_result.originated_contracts&&(t=[...t,...r.metadata.operation_result.originated_contracts]);return t}get status(){return this.results.filter((e=>-1!==Q0.indexOf(e.kind))).map((e=>{if(p0(e)){return e.metadata.operation_result.status}return"unknown"}))[0]||"unknown"}get fee(){return this.sumProp(this.params,"fee")}get gasLimit(){return this.sumProp(this.params,"gas_limit")}get storageLimit(){return this.sumProp(this.params,"storage_limit")}get consumedGas(){return Us.config({DECIMAL_PLACES:0,ROUNDING_MODE:Us.ROUND_UP}),new Us(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(v0({contents:this.results}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(v0({contents:this.results}),"paid_storage_size_diff"))}get errors(){return y0({contents:this.results})}}class A0{get rpc(){return this.context.rpc}get signer(){return this.context.signer}constructor(e){this.context=e}forge({opOb:{branch:e,contents:t,protocol:r},counter:n}){return vQ(this,void 0,void 0,(function*(){return{opbytes:yield this.context.forger.forge({branch:e,contents:t}),opOb:{branch:e,contents:t,protocol:r},counter:n}}))}estimate(e,t){var{fee:r,gasLimit:n,storageLimit:i}=e,o=gQ(e,["fee","gasLimit","storageLimit"]);return vQ(this,void 0,void 0,(function*(){let e=r,a=n,s=i;if(e&&e%1!==0)throw new w0(`Fee value must not be a decimal: ${e}`);if(a&&a%1!==0)throw new w0(`Gas Limit value must not be a decimal: ${a}`);if(s&&s%1!==0)throw new w0(`Storage Limit value must not be a decimal: ${s}`);if(void 0===r||void 0===n||void 0===i){const c=yield t(Object.assign({fee:r,gasLimit:n,storageLimit:i},o));null!==e&&void 0!==e||(e=c.suggestedFeeMutez),null!==a&&void 0!==a||(a=c.gasLimit),null!==s&&void 0!==s||(s=c.storageLimit)}return{fee:e,gasLimit:a,storageLimit:s}}))}getRPCOp(e){return vQ(this,void 0,void 0,(function*(){switch(e.kind){case Pq.TRANSACTION:return e0(Object.assign({},e));case Pq.ORIGINATION:return QQ(yield this.context.parser.prepareCodeOrigination(Object.assign({},e)));case Pq.DELEGATION:return t0(Object.assign({},e));case Pq.REGISTER_GLOBAL_CONSTANT:return n0(Object.assign({},e));case Pq.INCREASE_PAID_STORAGE:return o0(Object.assign({},e));case Pq.TRANSFER_TICKET:return i0(Object.assign({},e));case Pq.SMART_ROLLUP_ADD_MESSAGES:return a0(Object.assign({},e));case Pq.SMART_ROLLUP_ORIGINATE:return s0(Object.assign({},e));default:throw new vs(e.kind)}}))}runOperation(e){return vQ(this,void 0,void 0,(function*(){return{opResponse:yield this.rpc.runOperation(e),op:e,context:this.context.clone()}}))}simulate(e){return vQ(this,void 0,void 0,(function*(){return{opResponse:yield this.rpc.simulateOperation(e),op:e,context:this.context.clone()}}))}isRevealOpNeeded(e,t){return vQ(this,void 0,void 0,(function*(){return!(!(yield this.isAccountRevealRequired(t))||!this.isRevealRequiredForOpType(e))}))}isAccountRevealRequired(e){return vQ(this,void 0,void 0,(function*(){return!(yield this.context.readProvider.isAccountRevealed(e,"head"))}))}isRevealRequiredForOpType(e){let t=!1;for(const r of e)h0(r)&&(t=!0);return t}signAndInject(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.sign(e.opbytes,new Uint8Array([3]));e.opbytes=t.sbytes,e.opOb.signature=t.prefixSig;const r=[],n=yield this.rpc.preapplyOperations([e.opOb]);if(!Array.isArray(n))throw new g0(n);for(let e=0;evQ(this,void 0,void 0,(function*(){return e}))));case Pq.ORIGINATION:return this.walletProvider.mapOriginateParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return this.context.parser.prepareCodeOrigination(Object.assign({},e))}))));case Pq.DELEGATION:return this.walletProvider.mapDelegateParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e}))));case Pq.INCREASE_PAID_STORAGE:return this.walletProvider.mapIncreasePaidStorageWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e}))));default:throw new vs(JSON.stringify(e.kind))}}))}with(e){for(const t of e)switch(t.kind){case Pq.TRANSACTION:this.withTransfer(t);break;case Pq.ORIGINATION:this.withOrigination(t);break;case Pq.DELEGATION:this.withDelegation(t);break;case Pq.INCREASE_PAID_STORAGE:this.withIncreasePaidStorage(t);break;default:throw new vs(JSON.stringify(t.kind))}return this}send(){return vQ(this,void 0,void 0,(function*(){const e=[];for(const r of this.operations)e.push(yield this.mapOperation(r));const t=yield this.walletProvider.sendOperations(e);return this.context.operationFactory.createBatchOperation(t)}))}}class T0{constructor(e){this.context=e,this.walletCommand=e=>({send:e})}get walletProvider(){return this.context.walletProvider}pkh({forceRefetch:e}={}){return vQ(this,void 0,void 0,(function*(){return this._pkh&&!e||(this._pkh=yield this.walletProvider.getPKH()),this._pkh}))}pk({forceRefetch:e}={}){return vQ(this,void 0,void 0,(function*(){return this._pk&&!e||(this._pk=yield this.walletProvider.getPK()),this._pk}))}originate(e){return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapOriginateParamsToWalletParams((()=>this.context.parser.prepareCodeOrigination(Object.assign({},e)))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createOriginationOperation(r)}))))}setDelegate(e){var t;const r=oc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&r!==Zs.VALID)throw new is(e.delegate,hc(r));return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapDelegateParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createDelegationOperation(r)}))))}signFailingNoop(e){return vQ(this,void 0,void 0,(function*(){const t={kind:Pq.FAILING_NOOP,arbitrary:e.arbitrary},r=yield this.context.readProvider.getBlockHash(e.basedOnBlock),n=yield this.context.forger.forge({branch:r,contents:[t]});return{signature:yield this.walletProvider.sign(n,Uint8Array.from([3])),bytes:n,signedContent:{branch:r,contents:[{kind:Pq.FAILING_NOOP,arbitrary:e.arbitrary}]}}}))}registerDelegate(){return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const e=yield this.walletProvider.mapDelegateParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return{delegate:yield this.pkh()}})))),t=yield this.walletProvider.sendOperations([e]);return this.context.operationFactory.createDelegationOperation(t)}))))}transfer(e){const t=oc(e.to);if(t!==Zs.VALID)throw new is(e.to,hc(t));return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapTransferParamsToWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createTransactionOperation(r)}))))}increasePaidStorage(e){const t=oc(e.destination);if(t!==Zs.VALID)throw new is(e.destination,hc(t));return this.walletCommand((()=>vQ(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapIncreasePaidStorageWalletParams((()=>vQ(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createIncreasePaidStorageOperation(r)}))))}batch(e){const t=new P0(this.walletProvider,this.context);return Array.isArray(e)&&t.with(e),t}at(e,t=(e=>e)){return vQ(this,void 0,void 0,(function*(){const r=sc(e);if(r!==Zs.VALID)throw new fs(e,hc(r));const n=this.context.withExtensions().rpc,i=this.context.withExtensions().readProvider,o=yield i.getScript(e,"head"),a=yield i.getEntrypoints(e),s=new $0(e,o,this,this.context.contract,a,n,i);return t(s,this.context)}))}getPK(){return vQ(this,void 0,void 0,(function*(){return yield this.pk()}))}}class O0 extends ts{constructor(){super(),this.name="ConfirmationUndefinedError",this.message="Default confirmation count can not be undefined"}}class C0 extends ns{constructor(e){super(),this.message=e,this.name="ObservableError"}}class j0{operationResults(){return vQ(this,void 0,void 0,(function*(){return this._operationResult.pipe(xW()).toPromise()}))}receipt(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new C0("Unable to get operation results");return((e,{ALLOCATION_BURN:t,ORIGINATION_BURN:r}={ALLOCATION_BURN:257,ORIGINATION_BURN:257})=>{Us.config({DECIMAL_PLACES:0,ROUNDING_MODE:Us.ROUND_UP});const n=v0({contents:e});let i=new Us(0),o=new Us(0),a=new Us(0),s=new Us(0),c=new Us(0),l=new Us(0);return n.forEach((e=>{a=a.plus(e.fee||0),s=s.plus(Array.isArray(e.originated_contracts)?e.originated_contracts.length*r:0),c=c.plus("allocated_destination_contract"in e?t:0),i=i.plus(e.consumed_milligas||0),l=l.plus("paid_storage_size_diff"in e&&Number(e.paid_storage_size_diff)||0)})),o=o.plus(c).plus(s).plus(l),{totalFee:a,totalMilliGas:i,totalGas:i.dividedBy(1e3),totalStorage:o,totalAllocationBurn:c,totalOriginationBurn:s,totalPaidStorageDiff:l,totalStorageBurn:new Us(o.multipliedBy(250))}})(e)}))}constructor(e,t,r){if(this.opHash=e,this.context=t,this._newHead$=r,this._operationResult=new cK(1),this._includedInBlock=new cK(1),this._included=!1,this.newHead$=this._newHead$.pipe(cW((e=>{var t,r;const n=null!==(r=null===(t=this.lastHead)||void 0===t?void 0:t.header.level)&&void 0!==r?r:e.header.level-1;return kK(n+1,e.header.level-n-1).pipe(hW((e=>this.context.readProvider.getBlock(e))),fW(e))})),pW((e=>this.lastHead=e)),mW({connector:()=>new cK(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),this.confirmed$=this.newHead$.pipe(VK((e=>{for(const t of e.operations)for(const r of t)if(r.hash===this.opHash)return this._included=!0,this._includedInBlock.next(e),this._operationResult.next(r.contents),e})),yW((e=>"undefined"!==typeof e)),xW(),mW({connector:()=>new cK(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),dc(this.opHash)!==Zs.VALID)throw new gs(this.opHash);this.confirmed$.pipe(xW(),_W((()=>zK(void 0)))).subscribe()}getCurrentConfirmation(){return vQ(this,void 0,void 0,(function*(){return this._included?WK([this._includedInBlock,DK(this.context.readProvider.getBlock("head"))]).pipe(VK((([e,t])=>t.header.level-e.header.level+1)),xW()).toPromise():0}))}isInCurrentBranch(e="head"){return vQ(this,void 0,void 0,(function*(){if(!this._included)return!0;const t=yield this.context.readProvider.getBlockLevel(e),r=yield this._includedInBlock.pipe(xW()).toPromise();if(!r)throw new C0("Inclusion block is undefined");const n=t-r.header.level;if(n<=0)return!0;const i=Math.min(r.header.level+n,r.header.level+60);return new Set(yield this.context.readProvider.getLiveBlocks(i)).has(r.hash)}))}confirmationObservable(e){if("undefined"!==typeof e&&e<1)throw new x0(e);const{defaultConfirmationCount:t}=this.context.config,r=void 0!==e?e:t;if(void 0===r)throw new O0;return WK([this._includedInBlock,this.newHead$]).pipe(SW((([,e],[,t])=>e.hash===t.hash)),VK((([e,t])=>({block:t,expectedConfirmation:r,currentConfirmation:t.header.level-e.header.level+1,completed:t.header.level-e.header.level>=r-1,isInCurrentBranch:()=>this.isInCurrentBranch(t.hash)}))),(n=({completed:e})=>!e,void 0===(i=!0)&&(i=!1),CK((function(e,t){var r=0;e.subscribe(jK(t,(function(e){var o=n(e,r++);(o||i)&&t.next(e),!o&&t.complete()})))}))));var n,i}confirmation(e){return this.confirmationObservable(e).toPromise()}}class R0 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new C0("operationResult returned undefined");return e.find((e=>e.kind===Pq.REVEAL))}))}transactionOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new C0("operationResult returned undefined");return e.find((e=>e.kind===Pq.TRANSACTION))}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.transactionOperation();return e?e.metadata.operation_result.status:"unknown"}))}}class I0 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}originationOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return l0(e,Pq.ORIGINATION);throw new C0("Unable to fetch operation result")}))}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return l0(e,Pq.REVEAL);throw new C0("Unable to fetch operation result")}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.originationOperation();return e?e.metadata.operation_result.status:"unknown"}))}contract(){return vQ(this,void 0,void 0,(function*(){const e=yield this.originationOperation(),t=((null===e||void 0===e?void 0:e.metadata.operation_result.originated_contracts)||[])[0];return this.context.wallet.at(t)}))}}class M0 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.REVEAL));throw new C0("Unable to fetch operation result")}))}delegationOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.DELEGATION));throw new C0("Unable to fetch operation result")}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.delegationOperation();return e?e.metadata.operation_result.status:"unknown"}))}}class L0{constructor(e){this.context=e}getPKH(){return vQ(this,void 0,void 0,(function*(){return this.context.signer.publicKeyHash()}))}getPK(){return vQ(this,void 0,void 0,(function*(){return this.context.signer.publicKey()}))}mapTransferParamsToWalletParams(e){return vQ(this,void 0,void 0,(function*(){return c0(yield e(),Pq.TRANSACTION)}))}mapOriginateParamsToWalletParams(e){return vQ(this,void 0,void 0,(function*(){return c0(yield e(),Pq.ORIGINATION)}))}mapDelegateParamsToWalletParams(e){return vQ(this,void 0,void 0,(function*(){return c0(yield e(),Pq.DELEGATION)}))}mapIncreasePaidStorageWalletParams(e){return vQ(this,void 0,void 0,(function*(){return c0(yield e(),Pq.INCREASE_PAID_STORAGE)}))}sendOperations(e){return vQ(this,void 0,void 0,(function*(){return(yield this.context.batch.batch(e).send()).hash}))}sign(e,t){return vQ(this,void 0,void 0,(function*(){const{prefixSig:r}=yield this.context.signer.sign(e,t);return r}))}}class N0{constructor(e,t,r,n,i="unit",o=!0,a=!1){this.provider=e,this.address=t,this.parameterSchema=r,this.name=n,this.args=i,this.isMultipleEntrypoint=o,this.isAnonymous=a}getSignature(){return this.isAnonymous?this.parameterSchema.ExtractSchema()[this.name]:this.parameterSchema.ExtractSchema()}send(e={}){return this.provider instanceof T0?this.provider.transfer(this.toTransferParams(e)).send():this.provider.transfer(this.toTransferParams(e))}toTransferParams({fee:e,gasLimit:t,storageLimit:r,source:n,amount:i=0,mutez:o=!1}={}){return{to:this.address,amount:i,fee:e,mutez:o,source:n,gasLimit:t,storageLimit:r,parameter:{entrypoint:this.isMultipleEntrypoint?this.name:U0,value:this.isAnonymous?this.parameterSchema.EncodeObject({[this.name]:this.args}):this.parameterSchema.EncodeObject(this.args)}}}}class D0{constructor(e,t,r,n,i,o=!0,a=!1){this.provider=e,this.address=t,this.parameterSchema=r,this.name=n,this.args=i,this.isMultipleEntrypoint=o,this.isAnonymous=a}validateArgs(e,t,r){const n=t.ExtractSignatures();if(!n.find((t=>t.length===e.length)))throw new HQ(r,n,e)}get schema(){return this.isAnonymous?this.parameterSchema.ExtractSchema()[this.name]:this.parameterSchema.ExtractSchema()}getSignature(){if(!this.isAnonymous){const e=this.parameterSchema.ExtractSignatures();return 1==e.length?e[0]:e}{const e=this.parameterSchema.ExtractSignatures().find((e=>e[0]===this.name));if(e)return e.shift(),e}}send(e={}){return this.provider instanceof T0?this.provider.transfer(this.toTransferParams(e)).send():this.provider.transfer(this.toTransferParams(e))}toTransferParams({fee:e,gasLimit:t,storageLimit:r,source:n,amount:i=0,mutez:o=!1}={}){return{to:this.address,amount:i,fee:e,mutez:o,source:n,gasLimit:t,storageLimit:r,parameter:{entrypoint:this.isMultipleEntrypoint?this.name:U0,value:this.isAnonymous?this.parameterSchema.Encode(this.name,...this.args):this.parameterSchema.Encode(...this.args)}}}}class z0{constructor(e,t,r,n,i,o="Unit"){this._rpc=e,this._readProvider=t,this._contractAddress=r,this._smartContractViewSchema=n,this._contractStorageType=i,this._args=o}getSignature(){return{parameter:this._smartContractViewSchema.extractArgsSchema(),result:this._smartContractViewSchema.extractResultSchema()}}executeView(e){return vQ(this,void 0,void 0,(function*(){this.verifyContextExecution(e);const t=yield this._readProvider.getChainId(),r=this.transformArgsToMichelson(),n={contract:this._contractAddress,view:this._smartContractViewSchema.viewName,input:r,chain_id:t,source:e.viewCaller};return e.source&&(n.payer=e.source),this.executeViewAndDecodeResult(n)}))}verifyContextExecution(e){if(e.source&&oc(e.source)!==Zs.VALID)throw new ZQ(`The source account who initialized the view execution is invalid: ${e.source}.`);if(!e.viewCaller||oc(e.viewCaller)!==Zs.VALID)throw new ZQ(`The contract which is the caller of view is invalid: ${e.viewCaller}.`)}transformArgsToMichelson(){try{return this._smartContractViewSchema.encodeViewArgs(this._args)}catch(e){throw new us(this._smartContractViewSchema.viewName,this.getSignature(),this._args,e)}}adaptViewCodeToContext(e,t,r){const n={BALANCE:[{prim:"PUSH",args:[{prim:"mutez"},{int:r}]}],SENDER:[{prim:"PUSH",args:[{prim:"address"},{string:t}]}],SELF_ADDRESS:[{prim:"PUSH",args:[{prim:"address"},{string:this._contractAddress}]}],AMOUNT:[{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]}]};return e.forEach(((i,o)=>{i.prim in n&&(e[o]=Object(n)[i.prim]),i.args&&0!==i.args.length?this.adaptViewCodeToContext(i.args,t,r):Array.isArray(i)&&this.adaptViewCodeToContext(i,t,r)})),e}executeViewAndDecodeResult(e){return vQ(this,void 0,void 0,(function*(){let t;try{t=(yield this._rpc.runScriptView(e)).data}catch(r){const e=(e=>{if(GQ(e.body)){const t=JSON.parse(e.body);if(Array.isArray(t)&&"with"in t[t.length-1])return t[t.length-1].with}})(r);throw e?new WQ(`The simulation of the on-chain view named ${this._smartContractViewSchema.viewName} failed with: ${JSON.stringify(e)}`,this._smartContractViewSchema.viewName,e,r):r}return this._smartContractViewSchema.decodeViewResult(t)}))}}class B0{constructor(e,t){this.provider=e,this.contractAddress=t}createContractMethodFlatParams(e,t,r,n=!0,i=!1){return new D0(this.provider,this.contractAddress,e,t,r,n,i)}createContractMethodObjectParam(e,t,r,n=!0,i=!1){return new N0(this.provider,this.contractAddress,e,t,r,n,i)}createContractViewObjectParam(e,t,r,n,i){return new z0(e,t,this.contractAddress,r,n,i)}}const U0="default";class F0{constructor(e,t,r,n,i,o,a){this.currentContract=e,this.name=t,this.callbackParametersSchema=r,this.parameterSchema=n,this.args=i,this.rpc=o,this.readProvider=a}read(e){return vQ(this,void 0,void 0,(function*(){const t=ac(null!==e&&void 0!==e?e:"");if(sc(null!==e&&void 0!==e?e:"")==Zs.VALID)throw new ys("Since version 12, the lambda view no longer depends on a lambda contract. The read method no longer accepts a contract address as a parameter.");if(e&&t!==Zs.VALID)throw new ps(e,hc(t));const r=this.parameterSchema.Encode(...this.args),n=yield this.rpc.runView({contract:this.currentContract.address,entrypoint:this.name,input:r,chain_id:e||(yield this.readProvider.getChainId())});return this.callbackParametersSchema.Execute(n.data)}))}}class $0{constructor(e,t,r,n,i,o,a){this.address=e,this.script=t,this.storageProvider=n,this.entrypoints=i,this.rpc=o,this.readProvider=a,this.methods={},this.methodsObject={},this.views={},this.contractViews={},this.contractMethodFactory=new B0(r,e),this.schema=_Z.fromRPCResponse({script:this.script}),this.parameterSchema=SZ.fromRPCResponse({script:this.script}),this.viewSchema=kZ.fromRPCResponse({script:this.script}),0!==this.viewSchema.length&&this._initializeOnChainViews(this,o,this.readProvider,this.viewSchema),this.eventSchema=EZ.fromRPCResponse({script:this.script}),this._initializeMethods(this,this.entrypoints.entrypoints,this.rpc,this.readProvider)}_initializeMethods(e,t,r,n){const i=this.parameterSchema,o=Object.keys(t);if(i.isMultipleEntryPoint){o.forEach((i=>{const o=new SZ(t[i]);if(this.methods[i]=function(...t){return e.contractMethodFactory.createContractMethodFlatParams(o,i,t)},this.methodsObject[i]=function(t){return e.contractMethodFactory.createContractMethodObjectParam(o,i,t)},(e=>{let t=!1;if("prim"in e&&"pair"===e.prim&&e.args){const r=e.args[e.args.length-1];"prim"in r&&"contract"===r.prim&&(t=!0)}return t})(t[i])){const o=function(...o){const a=t[i].args[0],s=new SZ(a),c=t[i].args[1].args[0],l=new SZ(c);return((e,t,r)=>{const n=t.ExtractSignatures();if(!n.find((t=>t.length===e.length)))throw new HQ(r,n,e)})(o,s,i),new F0(e,i,l,s,o,r,n)};this.views[i]=o}}));const a=Object.keys(i.ExtractSchema()).filter((e=>-1===Object.keys(t).indexOf(e)));a.forEach((t=>{this.methods[t]=function(...r){return e.contractMethodFactory.createContractMethodFlatParams(i,t,r,!1,!0)},this.methodsObject[t]=function(r){return e.contractMethodFactory.createContractMethodObjectParam(i,t,r,!1,!0)}}))}else{const t=this.parameterSchema;this.methods[U0]=function(...r){return e.contractMethodFactory.createContractMethodFlatParams(t,U0,r,!1)},this.methodsObject[U0]=function(r){return e.contractMethodFactory.createContractMethodObjectParam(t,U0,r,!1)}}}_initializeOnChainViews(e,t,r,n){const i=this.schema.val;n.forEach((n=>{this.contractViews[n.viewName]=function(o){return e.contractMethodFactory.createContractViewObjectParam(t,r,n,i,o)}}))}storage(){return this.storageProvider.getStorage(this.address,this.schema)}bigMap(e){return this.storageProvider.getBigMapKey(this.address,e,this.schema)}}const H0=e=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"key_hash"},{string:e}]},{prim:"SOME"},{prim:"SET_DELEGATE"},{prim:"CONS"}],V0=()=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"NONE",args:[{prim:"key_hash"}]},{prim:"SET_DELEGATE"},{prim:"CONS"}],q0=(e,t)=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"key_hash"},{string:e}]},{prim:"IMPLICIT_ACCOUNT"},{prim:"PUSH",args:[{prim:"mutez"},{int:`${t}`}]},{prim:"UNIT"},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}],K0=(e,t)=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"address"},{string:e}]},{prim:"CONTRACT",args:[{prim:"unit"}]},{prim:"IF_NONE",args:[[{prim:"UNIT"},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:`${t}`}]},{prim:"UNIT"},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}];class W0{constructor(e,t){this.id=e,this.provider=t}getSaplingDiff(e){return vQ(this,void 0,void 0,(function*(){return this.provider.getSaplingDiffByID(this.id.toString(),e)}))}getId(){return this.id.toString()}}class G0{constructor(e,t,r){this.id=e,this.schema=t,this.provider=r}get(e,t){return vQ(this,void 0,void 0,(function*(){try{return yield this.provider.getBigMapKeyByID(this.id.toString(),e,this.schema,t)}catch(r){if(r instanceof cq&&r.status===iq.NOT_FOUND)return;throw r}}))}getMultipleValues(e,t,r=5){return vQ(this,void 0,void 0,(function*(){return this.provider.getBigMapKeysByID(this.id.toString(),e,this.schema,t,r)}))}toJSON(){return this.id.toString()}toString(){return this.id.toString()}}const Z0=e=>({big_map:(t,r)=>{if(t&&"int"in t&&void 0!==t.int){const n=new _Z(r);return new G0(new Us(t.int),n,e)}return{}},sapling_state:t=>t&&"int"in t&&void 0!==t.int?new W0(new Us(t.int),e):{}});var Y0;const X0=(e,t)=>{var r,n,i;return{fee:null!==(r=e.fee)&&void 0!==r?r:t.fee,gasLimit:null!==(n=e.gasLimit)&&void 0!==n?n:t.gasLimit,storageLimit:null!==(i=e.storageLimit)&&void 0!==i?i:t.storageLimit}};class J0 extends A0{constructor(e){super(e),this.context=e,Y0.set(this,void 0),bQ(this,Y0,{},"f")}getBlockHash(e){return vQ(this,void 0,void 0,(function*(){return this.context.readProvider.getBlockHash(null!==e&&void 0!==e?e:"head~2")}))}getProtocolHash(){return vQ(this,void 0,void 0,(function*(){return this.context.readProvider.getNextProtocol("head")}))}getHeadCounter(e){var t;return vQ(this,void 0,void 0,(function*(){return null!==(t=this.context.readProvider.getCounter(e,"head"))&&void 0!==t?t:"0"}))}adjustGasForBatchOperation(e,t,r){return Us.min(t,e.div(r+1))}getAccountLimits(e,t,r){return vQ(this,void 0,void 0,(function*(){const n=yield this.context.readProvider.getBalance(e,"head"),{hard_gas_limit_per_operation:i,hard_gas_limit_per_block:o,hard_storage_limit_per_operation:a,cost_per_byte:s}=t;return{fee:0,gasLimit:r?Math.floor(this.adjustGasForBatchOperation(o,i,r).toNumber()):i.toNumber(),storageLimit:Math.floor(Us.min(n.dividedBy(s),a).toNumber())}}))}getFee(e,t,r){(!yQ(this,Y0,"f")[t]||yQ(this,Y0,"f")[t]{switch(e.kind){case Pq.ACTIVATION:case Pq.DRAIN_DELEGATE:return Object.assign({},e);case Pq.ORIGINATION:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{balance:"undefined"!==typeof e.balance?`${e.balance}`:"0"}),this.getSource(e,r,n)),this.getFee(e,r,t));case Pq.TRANSACTION:{const i=Object.assign(Object.assign(Object.assign(Object.assign({},e),{amount:"undefined"!==typeof e.amount?`${e.amount}`:"0"}),this.getSource(e,r,n)),this.getFee(e,r,t));if(i.source.toLowerCase().startsWith("kt1"))throw new ys(`KT1 addresses are not supported as source since ${BQ.PsBabyM1}`);return i}case Pq.REVEAL:case Pq.DELEGATION:case Pq.REGISTER_GLOBAL_CONSTANT:case Pq.UPDATE_CONSENSUS_KEY:case Pq.SMART_ROLLUP_ADD_MESSAGES:case Pq.SMART_ROLLUP_ORIGINATE:return Object.assign(Object.assign(Object.assign({},e),this.getSource(e,r,n)),this.getFee(e,r,t));case Pq.TRANSFER_TICKET:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{ticket_amount:`${e.ticket_amount}`}),this.getSource(e,r,n)),this.getFee(e,r,t));case Pq.INCREASE_PAID_STORAGE:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{amount:`${e.amount}`}),this.getSource(e,r,n)),this.getFee(e,r,t));case Pq.BALLOT:case Pq.PROPOSALS:if(void 0===i)throw new S0("Failed to get the current voting period index");return Object.assign(Object.assign({},e),{period:null===i||void 0===i?void 0:i.voting_period.index});default:throw new vs(e.kind)}}))}activate({pkh:e,secret:t}){return vQ(this,void 0,void 0,(function*(){const r=yield(({pkh:e,secret:t})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.ACTIVATION,pkh:e,secret:t}})))({pkh:e,secret:t}),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();bQ(this,Y0,{},"f");const a=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:i,contents:this.constructOpContents(n,a,e),protocol:o},counter:a}}))}reveal({fee:e,gasLimit:t,storageLimit:r}){return vQ(this,void 0,void 0,(function*(){const{pkh:n,publicKey:i}=yield this.getKeys();if(!i)throw new ws(n);const o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(n,o),s=X0({fee:e,storageLimit:r,gasLimit:t},a),c=yield r0({fee:s.fee,gasLimit:s.gasLimit,storageLimit:s.storageLimit},n,i),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(n),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,n),protocol:d},counter:h}}))}originate(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield QQ(yield this.context.parser.prepareCodeOrigination(Object.assign(Object.assign({},o),X0({fee:r,storageLimit:n,gasLimit:i},s)))),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();bQ(this,Y0,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,t),protocol:h},counter:f}}))}transaction(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield e0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}delegation(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield t0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}registerDelegate({fee:e,storageLimit:t,gasLimit:r},n){return vQ(this,void 0,void 0,(function*(){const{pkh:i}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(i,o),s=X0({fee:e,storageLimit:t,gasLimit:r},a),c=yield(({fee:e=jQ,gasLimit:t=kQ,storageLimit:r=LQ},n)=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.DELEGATION,fee:e,gas_limit:t,storage_limit:r,delegate:n}})))({fee:s.fee,storageLimit:s.storageLimit,gasLimit:s.gasLimit},i),l=yield this.addRevealOperationIfNeeded(c,i),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();bQ(this,Y0,{},"f");const f=parseInt(yield this.getHeadCounter(i),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,i,n),protocol:h},counter:f}}))}registerGlobalConstant(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield n0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}updateConsensusKey(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield(({source:e,fee:t,gasLimit:r,storageLimit:n,pk:i})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.UPDATE_CONSENSUS_KEY,source:e,fee:t,gas_limit:r,storage_limit:n,pk:i}})))(Object.assign(Object.assign({},o),X0({fee:r,storageLimit:n,gasLimit:i},s))),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();bQ(this,Y0,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,t),protocol:h},counter:f}}))}increasePaidStorage(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield o0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}ballot(e){return vQ(this,void 0,void 0,(function*(){const{pkh:t}=yield this.getKeys(),r=yield(({source:e,proposal:t,ballot:r})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.BALLOT,source:e,proposal:t,ballot:r}})))(Object.assign({},e)),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();bQ(this,Y0,{},"f");const a=parseInt(yield this.getHeadCounter(t),10);let s;try{s=yield this.rpc.getCurrentPeriod()}catch(c){throw new S0("Failed to get the current voting period index")}return{opOb:{branch:i,contents:this.constructOpContents(n,a,t,void 0,s),protocol:o},counter:a}}))}proposals(e){return vQ(this,void 0,void 0,(function*(){const{pkh:t}=yield this.getKeys(),r=yield(({source:e,proposals:t})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.PROPOSALS,source:e,proposals:t}})))(Object.assign({},e)),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();bQ(this,Y0,{},"f");const a=parseInt(yield this.getHeadCounter(t),10);let s;try{s=yield this.rpc.getCurrentPeriod()}catch(c){throw new S0("Failed to get the current voting period index")}return{opOb:{branch:i,contents:this.constructOpContents(n,a,t,void 0,s),protocol:o},counter:a}}))}drainDelegate(e,t){return vQ(this,void 0,void 0,(function*(){const{pkh:r}=yield this.getKeys(),n=yield(({consensus_key:e,delegate:t,destination:r})=>vQ(void 0,void 0,void 0,(function*(){return{kind:Pq.DRAIN_DELEGATE,consensus_key:e,delegate:t,destination:r}})))(Object.assign({},e)),i=this.convertIntoArray(n),o=yield this.getBlockHash(),a=yield this.getProtocolHash();bQ(this,Y0,{},"f");const s=parseInt(yield this.getHeadCounter(r),10);return{opOb:{branch:o,contents:this.constructOpContents(i,s,r,t),protocol:a},counter:s}}))}transferTicket(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield i0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}smartRollupAddMessages(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield a0(Object.assign(Object.assign({},i),X0({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();bQ(this,Y0,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}smartRollupOriginate(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.rpc.getOriginationProof({kind:i.pvmKind,kernel:i.kernel}),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield s0(Object.assign(Object.assign(Object.assign({},X0({fee:t,storageLimit:r,gasLimit:n},s)),i),{originationProof:o})),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();bQ(this,Y0,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,i.source),protocol:h},counter:f}}))}batch(e,t){return vQ(this,void 0,void 0,(function*(){const{pkh:r,publicKey:n}=yield this.getKeys(),i=yield this.context.readProvider.getProtocolConstants("head"),o=yield this.getAccountLimits(r,i,e.length),a=yield this.isRevealOpNeeded(e,r),s=[];if(t)for(const d of e)if(d0(d)){const e=t.shift(),r=X0(d,{fee:e.suggestedFeeMutez,storageLimit:e.storageLimit,gasLimit:e.gasLimit});s.push(yield this.getRPCOp(Object.assign(Object.assign({},d),r)))}else s.push(Object.assign({},d));else for(const t of e)if(d0(t)){const e=X0(t,o);s.push(yield this.getRPCOp(Object.assign(Object.assign({},t),e)))}else s.push(Object.assign({},t));if(a){if(!n)throw new ws(r);s.unshift(yield r0({fee:MQ,storageLimit:zQ,gasLimit:FQ(r)},r,n))}const c=yield this.getBlockHash(),l=yield this.getProtocolHash();bQ(this,Y0,{},"f");const u=parseInt(yield this.getHeadCounter(r),10);return{opOb:{branch:c,contents:this.constructOpContents(s,u,r),protocol:l},counter:u}}))}contractCall(e){var t,r,n;return vQ(this,void 0,void 0,(function*(){const i=yield this.getBlockHash(),o=yield this.getProtocolHash(),{pkh:a}=yield this.getKeys();bQ(this,Y0,{},"f");const s=parseInt(yield this.getHeadCounter(a),10),c=e.toTransferParams(),l=yield this.context.readProvider.getProtocolConstants("head"),u=yield this.getAccountLimits(a,l),d=X0({fee:c.fee,storageLimit:c.storageLimit,gasLimit:c.gasLimit},u),h={kind:Pq.TRANSACTION,fee:null!==(t=c.fee)&&void 0!==t?t:d.fee,gas_limit:null!==(r=c.gasLimit)&&void 0!==r?r:d.gasLimit,storage_limit:null!==(n=c.storageLimit)&&void 0!==n?n:d.storageLimit,amount:String(c.amount),destination:c.to,parameters:c.parameter},f=yield this.addRevealOperationIfNeeded(h,a),p=this.convertIntoArray(f);return{opOb:{branch:i,contents:this.constructOpContents(p,s,a),protocol:o},counter:s}}))}toPreapply(e){return vQ(this,void 0,void 0,(function*(){const{opOb:{contents:t,branch:r,protocol:n}}=e,i=this.toForge(e),o=yield this.context.forger.forge(i);return[{contents:t,branch:r,protocol:n,signature:(yield this.context.signer.sign(o,new Uint8Array([3]))).prefixSig}]}))}toForge({opOb:{contents:e,branch:t}}){return{branch:t,contents:e}}}Y0=new WeakMap;const Q0=[Pq.ACTIVATION,Pq.ORIGINATION,Pq.TRANSACTION,Pq.DELEGATION];class e1 extends A0{constructor(e,t){super(e),this.estimator=t,this.operations=[],this.prepare=new J0(this.context)}withTransfer(e){const t=oc(e.to);if(e.amount<0)throw new as(e.amount.toString());if(t!==Zs.VALID)throw new is(e.to,hc(t));return this.operations.push(Object.assign({kind:Pq.TRANSACTION},e)),this}withTransferTicket(e){const t=oc(e.destination);if(t!==Zs.VALID)throw new is(e.destination,hc(t));return this.operations.push(Object.assign({kind:Pq.TRANSFER_TICKET},e)),this}withContractCall(e,t={}){return this.withTransfer(e.toTransferParams(t))}withDelegation(e){var t;const r=oc(e.source);if(e.source&&r!==Zs.VALID)throw new is(e.source,hc(r));const n=oc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&n!==Zs.VALID)throw new is(e.delegate,hc(n));return this.operations.push(Object.assign({kind:Pq.DELEGATION},e)),this}withActivation({pkh:e,secret:t}){const r=cc(e);if(r!==Zs.VALID)throw new ms(e,hc(r));return this.operations.push({kind:Pq.ACTIVATION,pkh:e,secret:t}),this}withOrigination(e){return this.operations.push(Object.assign({kind:Pq.ORIGINATION},e)),this}withRegisterGlobalConstant(e){return this.operations.push(Object.assign({kind:Pq.REGISTER_GLOBAL_CONSTANT},e)),this}withIncreasePaidStorage(e){return this.operations.push(Object.assign({kind:Pq.INCREASE_PAID_STORAGE},e)),this}withSmartRollupAddMessages(e){return this.operations.push(Object.assign({kind:Pq.SMART_ROLLUP_ADD_MESSAGES},e)),this}withSmartRollupOriginate(e){return this.operations.push(Object.assign({kind:Pq.SMART_ROLLUP_ORIGINATE},e)),this}getRPCOp(e){return vQ(this,void 0,void 0,(function*(){switch(e.kind){case Pq.TRANSACTION:return e0(Object.assign({},e));case Pq.ORIGINATION:return QQ(yield this.context.parser.prepareCodeOrigination(Object.assign({},e)));case Pq.DELEGATION:return t0(Object.assign({},e));case Pq.REGISTER_GLOBAL_CONSTANT:return n0(Object.assign({},e));case Pq.INCREASE_PAID_STORAGE:return o0(Object.assign({},e));case Pq.TRANSFER_TICKET:return i0(Object.assign({},e));case Pq.SMART_ROLLUP_ADD_MESSAGES:return a0(Object.assign({},e));case Pq.SMART_ROLLUP_ORIGINATE:return s0(Object.assign({},e));default:throw new vs(JSON.stringify(e.kind))}}))}with(e){for(const t of e)switch(t.kind){case Pq.TRANSACTION:this.withTransfer(t);break;case Pq.ORIGINATION:this.withOrigination(t);break;case Pq.DELEGATION:this.withDelegation(t);break;case Pq.ACTIVATION:this.withActivation(t);break;case Pq.REGISTER_GLOBAL_CONSTANT:this.withRegisterGlobalConstant(t);break;case Pq.INCREASE_PAID_STORAGE:this.withIncreasePaidStorage(t);break;case Pq.TRANSFER_TICKET:this.withTransferTicket(t);break;case Pq.SMART_ROLLUP_ADD_MESSAGES:this.withSmartRollupAddMessages(t);break;case Pq.SMART_ROLLUP_ORIGINATE:this.withSmartRollupOriginate(t);break;default:throw new vs(JSON.stringify(t.kind))}return this}send(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=e&&e.source||t,n=yield this.estimator.batch(this.operations);n.length!==this.operations.length&&n.shift();const i=yield this.prepare.batch(this.operations,n),o=yield this.forge(i),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new E0(a,i.opOb.contents,r,c,l,s)}))}}class t1{constructor(e,t){this.context=e,this.estimator=t}batch(e){const t=new e1(this.context,this.estimator);return Array.isArray(e)&&t.with(e),t}}class r1 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t,this.getOriginatedContractAddresses=()=>vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e){const t=e.filter((e=>"origination"===e.kind));let r=[];for(const e of t)e.metadata.operation_result.originated_contracts&&(r=[...r,...e.metadata.operation_result.originated_contracts]);return r}throw new C0("Unable to fetch operation results")}))}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.REVEAL));throw new C0("Unable to fetch operation results")}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.operationResults();if(e)return e.filter((e=>-1!==Q0.indexOf(e.kind))).map((e=>{if(p0(e)){return e.metadata.operation_result.status}return"unknown"}))[0]||"unknown";throw new C0("Unable to fetch operation results")}))}}class n1 extends j0{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.REVEAL));throw new C0("Unable to fetch operation result")}))}increasePaidStorageOperation(){return vQ(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===Pq.INCREASE_PAID_STORAGE));throw new C0("Unable to fetch operation result")}))}status(){return vQ(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.increasePaidStorageOperation();return e?e.metadata.operation_result.status:"unknown"}))}}const i1=(e,t,r)=>{return e.pipe((n=1e3*t.config.confirmationPollingTimeoutSecond,function(e){return new lK(null).pipe(uW({each:n,with:()=>uK((()=>new _0("Confirmation polling timed out")))}),ZK((()=>e)))}),mW({connector:()=>new cK(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1}));var n};class o1{constructor(e){this.context=e,this.sharedHeadObs=_K((()=>SQ(this.context.stream.subscribeBlock("head"))))}createNewHeadObservable(){return vQ(this,void 0,void 0,(function*(){return i1(this.sharedHeadObs,this.context)}))}createPastBlockWalker(e,t=1){return DK(this.context.readProvider.getBlock(e)).pipe(cW((e=>1===t?zK(e):kK(e.header.level,t-1).pipe(function(){for(var e=[],t=0;tvQ(this,void 0,void 0,(function*(){return this.context.readProvider.getBlock("number"===typeof e?e:e.header.level)}))))))))}createHeadObservableFromConfig({blockIdentifier:e}){return vQ(this,void 0,void 0,(function*(){const t=[];return e&&t.push(this.createPastBlockWalker(e)),t.push(yield this.createNewHeadObservable()),XK(...t)}))}createOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new j0(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createBatchOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new r1(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createTransactionOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new R0(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createDelegationOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new M0(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createOriginationOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new I0(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createIncreasePaidStorageOperation(e,t={}){return vQ(this,void 0,void 0,(function*(){return new n1(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}}class a1 extends A0{constructor(e){super(e),this.prepare=new J0(this.context)}getBalance(e){return vQ(this,void 0,void 0,(function*(){const t=oc(e);if(t!==Zs.VALID)throw new is(e,hc(t));return this.context.readProvider.getBalance(e,"head")}))}getDelegate(e){return vQ(this,void 0,void 0,(function*(){const t=oc(e);if(t!==Zs.VALID)throw new is(e,hc(t));return this.context.readProvider.getDelegate(e,"head")}))}activate(e,t){return vQ(this,void 0,void 0,(function*(){const r=cc(e);if(r!==Zs.VALID)throw new ms(e,hc(r));const n=yield this.prepare.activate({pkh:e,secret:t}),i=yield this.forge(n),o=`${i.opbytes}00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`;return new k0(yield this.rpc.injectOperation(o),Object.assign(Object.assign({},i),{opbytes:o}),[],this.context.clone())}))}}const s1=100;class c1{constructor(e,t,r,n,i=100){this._milligasLimit=e,this._storageLimit=t,this.opSize=r,this.minimalFeePerStorageByteMutez=n,this.baseFeeMutez=i}get burnFeeMutez(){return this.roundUp(Number(this.storageLimit)*Number(this.minimalFeePerStorageByteMutez))}get storageLimit(){const e=Math.max(Number(this._storageLimit),0);return e>0?e:0}get gasLimit(){return this.roundUp(Number(this._milligasLimit)/1e3+100)}get operationFeeMutez(){return.1*(Number(this._milligasLimit)/1e3+100)+1*Number(this.opSize)}roundUp(e){return Math.ceil(Number(e))}get minimalFeeMutez(){return this.roundUp(s1+this.operationFeeMutez)}get suggestedFeeMutez(){return this.roundUp(this.operationFeeMutez+200)}get usingBaseFeeMutez(){return Math.max(Number(this.baseFeeMutez),s1)+this.roundUp(this.operationFeeMutez)}get totalCost(){return this.minimalFeeMutez+this.burnFeeMutez}get consumedMilligas(){return Number(this._milligasLimit)}static createEstimateInstanceFromProperties(e){let t,r=0,n=0,i=0,o=0;return e.forEach((e=>{r+=e.milligasLimit,n+=e.storageLimit,i+=e.opSize,o=Math.max(e.minimalFeePerStorageByteMutez,o),e.baseFeeMutez&&(t=t?t+e.baseFeeMutez:e.baseFeeMutez)})),new c1(r,n,i,o,t)}static createArrayEstimateInstancesFromProperties(e){return e.map((e=>new c1(e.milligasLimit,e.storageLimit,e.opSize,e.minimalFeePerStorageByteMutez,e.baseFeeMutez)))}}class l1 extends Ja{constructor(){super(),this.name="RevealEstimateError",this.message="Public key is unknown, unable to estimate the reveal operation in Wallet API."}}class u1 extends A0{constructor(){super(...arguments),this.ALLOCATION_STORAGE=257,this.ORIGINATION_STORAGE=257,this.OP_SIZE_REVEAL=128,this.prepare=new J0(this.context)}getKeys(){return vQ(this,void 0,void 0,(function*(){const e=this.context.isAnySignerConfigured();return{publicKeyHash:e?yield this.signer.publicKeyHash():yield this.context.walletProvider.getPKH(),publicKey:e?yield this.signer.publicKey():void 0}}))}getEstimationPropertiesFromOperationContent(e,t,r){const n=v0({contents:[e]});let i=0,o=0;return n.forEach((e=>{o+="originated_contracts"in e&&"undefined"!==typeof e.originated_contracts?e.originated_contracts.length*this.ORIGINATION_STORAGE:0,o+="allocated_destination_contract"in e?this.ALLOCATION_STORAGE:0,i+=Number(e.consumed_milligas)||0,o+="paid_storage_size_diff"in e&&Number(e.paid_storage_size_diff)||0,o+="storage_size"in e&&"global_address"in e&&Number(e.storage_size)||0,o+="genesis_commitment_hash"in e?Number(e.size):0})),d0(e)?{milligasLimit:i||0,storageLimit:Number(o||0),opSize:t,minimalFeePerStorageByteMutez:r.toNumber()}:{milligasLimit:0,storageLimit:0,opSize:t,minimalFeePerStorageByteMutez:r.toNumber(),baseFeeMutez:0}}calculateEstimates(e,t){return vQ(this,void 0,void 0,(function*(){const{opbytes:r,opOb:{branch:n,contents:i}}=yield this.forge(e),o={operation:{branch:n,contents:i},chain_id:yield this.context.readProvider.getChainId()},{opResponse:a}=yield this.simulate(o),{cost_per_byte:s}=t,c=[...y0(a,"backtracked"),...y0(a)];if(c.length)throw new m0(c,"Error occurred during estimation",a.contents);let l=1;return Array.isArray(e.opOb.contents)&&e.opOb.contents.length>1&&(l="reveal"===a.contents[0].kind?e.opOb.contents.length-1:e.opOb.contents.length),a.contents.map((e=>this.getEstimationPropertiesFromOperationContent(e,"reveal"===e.kind?this.OP_SIZE_REVEAL/2:r.length/2/l,s)))}))}originate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.prepare.originate(e),r=yield this.context.readProvider.getProtocolConstants("head"),n=yield this.calculateEstimates(t,r);return"reveal"===t.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}transfer(e){var t,{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const e=oc(o.to);if(e!==Zs.VALID)throw new is(o.to,hc(e));const a=oc(null!==(t=o.source)&&void 0!==t?t:"");if(o.source&&a!==Zs.VALID)throw new is(o.source,hc(a));if(o.amount<0)throw new as(o.amount.toString());const s=yield this.prepare.transaction(Object.assign({fee:r,storageLimit:n,gasLimit:i},o)),c=yield this.context.readProvider.getProtocolConstants("head"),l=yield this.calculateEstimates(s,c);return"reveal"===s.opOb.contents[0].kind&&l.shift(),c1.createEstimateInstanceFromProperties(l)}))}transferTicket(e){var t,{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const e=oc(o.destination);if(e!==Zs.VALID)throw new is(o.destination,hc(e));const a=oc(null!==(t=o.source)&&void 0!==t?t:"");if(o.source&&a!==Zs.VALID)throw new is(o.source,hc(a));const s=yield this.context.readProvider.getProtocolConstants("head"),c=yield this.prepare.transferTicket(Object.assign({fee:r,storageLimit:n,gasLimit:i},o)),l=yield this.calculateEstimates(c,s);return"reveal"===c.opOb.contents[0].kind&&l.shift(),c1.createEstimateInstanceFromProperties(l)}))}setDelegate(e){var t,{fee:r,gasLimit:n,storageLimit:i}=e,o=gQ(e,["fee","gasLimit","storageLimit"]);return vQ(this,void 0,void 0,(function*(){const e=oc(o.source);if(o.source&&e!==Zs.VALID)throw new is(o.source,hc(e));const a=oc(null!==(t=o.delegate)&&void 0!==t?t:"");if(o.delegate&&a!==Zs.VALID)throw new is(o.delegate,hc(a));const s=yield this.prepare.delegation(Object.assign({fee:r,storageLimit:i,gasLimit:n},o)),c=yield this.context.readProvider.getProtocolConstants("head"),l=yield this.calculateEstimates(s,c);return"reveal"===s.opOb.contents[0].kind&&l.shift(),c1.createEstimateInstanceFromProperties(l)}))}batch(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.batch(e),n=yield this.calculateEstimates(r,t);return c1.createArrayEstimateInstancesFromProperties(n)}))}registerDelegate(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const e=(yield this.getKeys()).publicKeyHash,a=yield this.context.readProvider.getProtocolConstants("head"),s=t||e,c=yield this.prepare.registerDelegate(Object.assign({fee:r,storageLimit:n,gasLimit:i},o),s),l=yield this.calculateEstimates(c,a);return"reveal"===c.opOb.contents[0].kind&&l.shift(),c1.createEstimateInstanceFromProperties(l)}))}reveal(e){return vQ(this,void 0,void 0,(function*(){const{publicKeyHash:t,publicKey:r}=yield this.getKeys();if(!r)throw new l1;if(yield this.isAccountRevealRequired(t)){const t=yield this.context.readProvider.getProtocolConstants("head"),r=e?yield this.prepare.reveal(e):yield this.prepare.reveal({}),n=yield this.calculateEstimates(r,t);return c1.createEstimateInstanceFromProperties(n)}}))}registerGlobalConstant(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){const e=yield this.prepare.registerGlobalConstant(Object.assign({fee:t,storageLimit:r,gasLimit:n},i)),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.calculateEstimates(e,o);return"reveal"===e.opOb.contents[0].kind&&a.shift(),c1.createEstimateInstanceFromProperties(a)}))}increasePaidStorage(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=gQ(e,["fee","storageLimit","gasLimit"]);return vQ(this,void 0,void 0,(function*(){if(i.amount<0)throw new as(i.amount.toString());const e=yield this.context.readProvider.getProtocolConstants("head"),o=yield this.prepare.increasePaidStorage(Object.assign({fee:t,storageLimit:r,gasLimit:n},i)),a=yield this.calculateEstimates(o,e);return"reveal"===o.opOb.contents[0].kind&&a.shift(),c1.createEstimateInstanceFromProperties(a)}))}updateConsensusKey(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.updateConsensusKey(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}smartRollupAddMessages(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.smartRollupAddMessages(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}smartRollupOriginate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.smartRollupOriginate(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}contractCall(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.contractCall(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),c1.createEstimateInstanceFromProperties(n)}))}}class d1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"delegation"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get delegate(){return this.params.delegate}get isRegisterOperation(){return this.delegate===this.source}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),this.consumedMilliGas?new Bs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class h1 extends k0{constructor(e,t,r,n,i,o){super(e,r,n,i),this.params=t,this.contractProvider=o;const a=this.operationResults&&this.operationResults.originated_contracts;Array.isArray(a)&&(this.contractAddress=a[0])}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"origination"===e.kind)),t=e&&p0(e)&&e.metadata.operation_result;return t||void 0}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),this.consumedMilliGas?new Bs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get storageDiff(){const e=this.operationResults&&this.operationResults.paid_storage_size_diff;return e||void 0}get storageSize(){const e=this.operationResults&&this.operationResults.storage_size;return e||void 0}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}contract(e,t){return vQ(this,void 0,void 0,(function*(){if(!this.contractAddress)throw new b0("No contract was originated in this operation");return yield this.confirmation(e,t),this.contractProvider.at(this.contractAddress)}))}}class f1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r,this.globalConstantHash=this.operationResults&&this.operationResults.global_address}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"register_global_constant"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get registeredExpression(){return this.params.value}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),this.consumedMilliGas?new Bs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}}class p1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"reveal"===e.kind));return e?[e]:[]}get status(){const e=this.operationResults[0];return e?e.metadata.operation_result.status:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get publicKey(){return this.params.public_key}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),new Bs(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(v0({contents:this.operationResults}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(v0({contents:this.operationResults}),"paid_storage_size_diff"))}get storageSize(){return String(this.sumProp(v0({contents:this.operationResults}),"storage_size"))}get errors(){return y0({contents:this.operationResults})}}class m1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"transaction"===e.kind));return e?[e]:[]}get status(){const e=this.operationResults[0];return e?e.metadata.operation_result.status:"unknown"}get amount(){return new Us(this.params.amount)}get destination(){return this.params.destination}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}get consumedGas(){return Us.config({DECIMAL_PLACES:0,ROUNDING_MODE:Us.ROUND_UP}),new Us(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(v0({contents:this.operationResults}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(v0({contents:this.operationResults}),"paid_storage_size_diff"))}get storageSize(){return String(this.sumProp(v0({contents:this.operationResults}),"storage_size"))}get errors(){return y0({contents:this.operationResults})}}class g1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"ballot"===e.kind));return e||void 0}get period(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.period}get proposal(){return this.params.proposal}get ballot(){return this.params.ballot}}class v1 extends k0{constructor(e,t,r,n,i){super(e,r,n,i),this.params=t}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"drain_delegate"===e.kind)),t=e&&e.metadata&&e.metadata.balance_updates;return t||void 0}get consensusKey(){return this.params.consensus_key}get delegate(){return this.params.delegate}get destination(){return this.params.destination}}class y1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>e.kind===Pq.TRANSFER_TICKET)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Bs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Bs.ROUND_UP}),this.consumedMilliGas?new Bs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}}class b1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"increase_paid_storage"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get amount(){return this.params.amount}get destination(){return this.params.destination}}class w1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"proposals"===e.kind));return e||void 0}get proposals(){return this.params.proposals}get period(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.period}}class x1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"update_consensus_key"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get pk(){return this.params.pk}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class _1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"smart_rollup_add_messages"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get message(){return this.params.message}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class S1 extends k0{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>e.kind===Pq.SMART_ROLLUP_ORIGINATE)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get pvmKind(){return this.params.pvm_kind}get kernel(){return this.params.kernel}get originationProof(){return this.params.origination_proof}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class k1 extends A0{constructor(e,t){super(e),this.estimator=t,this.contractProviderTypeSymbol=Symbol.for("taquito-contract-provider-type-symbol"),this.prepare=new J0(this.context)}getStorage(e,t){return vQ(this,void 0,void 0,(function*(){const r=sc(e);if(r!==Zs.VALID)throw new fs(e,hc(r));const n=yield this.context.readProvider.getScript(e,"head");let i;return t||(t=n),i=_Z.isSchema(t)?t:_Z.fromRPCResponse({script:t}),i.Execute(n.storage,Z0(this))}))}getBigMapKey(e,t,r){return vQ(this,void 0,void 0,(function*(){const n=sc(e);if(n!==Zs.VALID)throw new fs(e,hc(n));let i;r||(r=(yield this.rpc.getContract(e)).script),i=_Z.isSchema(r)?r:_Z.fromRPCResponse({script:r});const o=i.EncodeBigMapKey(t),a=yield this.rpc.getBigMapKey(e,o);return i.ExecuteOnBigMapValue(a)}))}getBigMapKeyByID(e,t,r,n){return vQ(this,void 0,void 0,(function*(){const{key:i,type:o}=r.EncodeBigMapKey(t),{packed:a}=yield this.context.packer.packData({data:i,type:o}),s=function(e){return vc(Za().blake2b(_c(e),void 0,32),Ks.expr)}(a),c=n?yield this.context.readProvider.getBigMapValue({id:e.toString(),expr:s},n):yield this.context.readProvider.getBigMapValue({id:e.toString(),expr:s},"head");return r.ExecuteOnBigMapValue(c,Z0(this))}))}getBigMapKeysByID(e,t,r,n,i=5){return vQ(this,void 0,void 0,(function*(){const o=yield this.getBlockForRequest(t,n),a=new BW;let s=0,c=[];for(;sthis.getBigMapValueOrUndefined(t,e,r,o)));c=[...c,...yield Promise.all(n)],s+=i}for(let e=0;ee.kind===Pq.ORIGINATION)),i=yield this.forge(r),{hash:o,context:a,forgedBytes:s,opResponse:c}=yield this.signAndInject(i);return new h1(o,n,s,c,a,this)}))}setDelegate(e){var t;return vQ(this,void 0,void 0,(function*(){const r=oc(e.source);if(e.source&&r!==Zs.VALID)throw new is(e.source,hc(r));const n=oc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&n!==Zs.VALID)throw new is(e.delegate,hc(n));if(/kt1/i.test(e.source))throw new VQ(e.source);const i=yield this.signer.publicKeyHash(),o=e.source||i,a=yield this.estimate(e,this.estimator.setDelegate.bind(this.estimator)),s=yield this.prepare.delegation(Object.assign(Object.assign({},e),a)),c=s.opOb.contents.find((e=>e.kind===Pq.DELEGATION)),l=yield this.forge(s),{hash:u,context:d,forgedBytes:h,opResponse:f}=yield this.signAndInject(l);return new d1(u,c,o,h,f,d)}))}registerDelegate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.estimate(e,this.estimator.registerDelegate.bind(this.estimator)),r=yield this.signer.publicKeyHash(),n=yield this.prepare.registerDelegate(Object.assign(Object.assign({},e),t)),i=n.opOb.contents.find((e=>e.kind===Pq.DELEGATION)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new d1(a,i,r,c,l,s)}))}transfer(e){var t;return vQ(this,void 0,void 0,(function*(){const r=oc(e.to);if(r!==Zs.VALID)throw new is(e.to,hc(r));const n=oc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&n!==Zs.VALID)throw new is(e.source,hc(n));if(e.amount<0)throw new as(e.amount.toString());const i=yield this.signer.publicKeyHash(),o=yield this.estimate(e,this.estimator.transfer.bind(this.estimator)),a=e.source||i,s=yield this.prepare.transaction(Object.assign(Object.assign({},e),o)),c=s.opOb.contents.find((e=>e.kind===Pq.TRANSACTION)),l=yield this.forge(s),{hash:u,context:d,forgedBytes:h,opResponse:f}=yield this.signAndInject(l);return new m1(u,c,a,h,f,d)}))}transferTicket(e){var t,r;return vQ(this,void 0,void 0,(function*(){const n=oc(e.destination);if(n!==Zs.VALID)throw new is(e.destination,hc(n));const i=oc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==Zs.VALID)throw new is(e.source,hc(i));const o=yield this.signer.publicKeyHash(),a=null!==(r=e.source)&&void 0!==r?r:o,s=yield this.estimate(e,this.estimator.transferTicket.bind(this.estimator)),c=yield this.prepare.transferTicket(Object.assign(Object.assign({},e),s)),l=c.opOb.contents.find((e=>e.kind===Pq.TRANSFER_TICKET)),u=yield this.forge(c),{hash:d,context:h,forgedBytes:f,opResponse:p}=yield this.signAndInject(u);return new y1(d,l,a,f,p,h)}))}reveal(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimator.reveal(e);if(r){const n=yield this.estimate(e,(()=>vQ(this,void 0,void 0,(function*(){return r})))),i=yield this.prepare.reveal(Object.assign(Object.assign({},e),n)),o=i.opOb.contents.find((e=>e.kind===Pq.REVEAL)),a=yield this.forge(i),{hash:s,context:c,forgedBytes:l,opResponse:u}=yield this.signAndInject(a);return new p1(s,o,t,l,u,c)}throw new YQ(`The publicKeyHash '${t}' has already been revealed.`)}))}registerGlobalConstant(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.registerGlobalConstant.bind(this.estimator)),n=yield this.prepare.registerGlobalConstant(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===Pq.REGISTER_GLOBAL_CONSTANT)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new f1(a,i,t,c,l,s)}))}increasePaidStorage(e){return vQ(this,void 0,void 0,(function*(){if(e.amount<0)throw new as(e.amount.toString());const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.increasePaidStorage.bind(this.estimator)),n=yield this.prepare.increasePaidStorage(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===Pq.INCREASE_PAID_STORAGE)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new b1(a,i,t,c,l,s)}))}drainDelegate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.prepare.drainDelegate(e),r=t.opOb.contents.find((e=>e.kind===Pq.DRAIN_DELEGATE)),n=yield this.forge(t),{hash:i,context:o,forgedBytes:a,opResponse:s}=yield this.signAndInject(n);return new v1(i,r,a,s,o)}))}ballot(e){var t,r;return vQ(this,void 0,void 0,(function*(){const n=yield this.signer.publicKeyHash(),i=oc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==Zs.VALID)throw new is(e.source,hc(i));const o=null!==(r=e.source)&&void 0!==r?r:n,a=yield this.prepare.ballot(Object.assign(Object.assign({},e),{source:o})),s=a.opOb.contents.find((e=>e.kind===Pq.BALLOT)),c=yield this.forge(a),{hash:l,context:u,forgedBytes:d,opResponse:h}=yield this.signAndInject(c);return new g1(l,s,n,d,h,u)}))}proposals(e){var t,r;return vQ(this,void 0,void 0,(function*(){const n=yield this.signer.publicKeyHash(),i=oc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==Zs.VALID)throw new is(e.source,hc(i));const o=null!==(r=e.source)&&void 0!==r?r:n,a=yield this.prepare.proposals(Object.assign(Object.assign({},e),{source:o})),s=a.opOb.contents.find((e=>e.kind===Pq.PROPOSALS)),c=yield this.forge(a),{hash:l,context:u,forgedBytes:d,opResponse:h}=yield this.signAndInject(c);return new w1(l,s,n,d,h,u)}))}updateConsensusKey(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.updateConsensusKey.bind(this.estimator)),n=yield this.prepare.updateConsensusKey(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===Pq.UPDATE_CONSENSUS_KEY)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new x1(a,i,t,c,l,s)}))}smartRollupAddMessages(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.smartRollupAddMessages.bind(this.estimator)),n=yield this.prepare.smartRollupAddMessages(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===Pq.SMART_ROLLUP_ADD_MESSAGES)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new _1(a,i,t,c,l,s)}))}smartRollupOriginate(e){return vQ(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.smartRollupOriginate.bind(this.estimator)),n=yield this.rpc.getOriginationProof({kind:e.pvmKind,kernel:e.kernel}),i=Object.assign(Object.assign({},e),{originationProof:n}),o=yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({},i),r)),a=o.opOb.contents.find((e=>e.kind===Pq.SMART_ROLLUP_ORIGINATE)),s=yield this.forge(o),{hash:c,context:l,forgedBytes:u,opResponse:d}=yield this.signAndInject(s);return new S1(c,a,t,u,d,l)}))}failingNoop(e){return vQ(this,void 0,void 0,(function*(){const t={kind:Pq.FAILING_NOOP,arbitrary:e.arbitrary},r=yield this.context.readProvider.getBlockHash(e.basedOnBlock),n=yield this.context.forger.forge({branch:r,contents:[t]}),{prefixSig:i}=yield this.signer.sign(n,new Uint8Array([3]));return{signature:i,bytes:n,signedContent:{branch:r,contents:[{kind:Pq.FAILING_NOOP,arbitrary:e.arbitrary}]}}}))}at(e,t=(e=>e)){return vQ(this,void 0,void 0,(function*(){const r=sc(e);if(r!==Zs.VALID)throw new fs(e,hc(r));const n=this.context.withExtensions().rpc,i=this.context.withExtensions().readProvider,o=yield i.getScript(e,"head"),a=yield i.getEntrypoints(e),s=new $0(e,o,this,this,a,n,i);return t(s,this.context)}))}batch(e){const t=new e1(this.context,this.estimator);return Array.isArray(e)&&t.with(e),t}}class E1{constructor(e){this.context=e}getNextProto(){return vQ(this,void 0,void 0,(function*(){if(!this.context.proto){const e=yield this.context.readProvider.getNextProtocol("head");this.context.proto=e}return this.context.proto}))}parseScript(e){return vQ(this,void 0,void 0,(function*(){return new lY({protocol:yield this.getNextProto()}).parseScript(e)}))}parseMichelineExpression(e){return vQ(this,void 0,void 0,(function*(){return new lY({protocol:yield this.getNextProto()}).parseMichelineExpression(e)}))}parseJSON(e){return vQ(this,void 0,void 0,(function*(){return new lY({protocol:yield this.getNextProto()}).parseJSON(e)}))}prepareCodeOrigination(e){return vQ(this,void 0,void 0,(function*(){const t=e;if(t.code=yield this.formatCodeParam(e.code),e.init)t.init=yield this.formatInitParam(e.init);else if(e.storage){const r=t.code.find((e=>"prim"in e&&"storage"===e.prim));if(!(null===r||void 0===r?void 0:r.args))throw new qQ("The storage section is missing from the script",e.code);const n=new _Z(r.args[0]),i=yield this.findGlobalConstantsHashAndValue(n);if(0!==Object.keys(i).length){const n=new lY({expandGlobalConstant:i}).parseJSON(r.args[0]),o=new _Z(n);t.init=o.Encode(e.storage)}else t.init=n.Encode(e.storage);delete t.storage}return t}))}formatCodeParam(e){return vQ(this,void 0,void 0,(function*(){let t;if("string"===typeof e){const r=yield this.parseScript(e);if(null===r)throw new qQ("Unable to parse",e);t=r}else{const r=yield this.parseJSON(e),n=["parameter","storage","code"];t=r.sort(((e,t)=>n.indexOf(e.prim)-n.indexOf(t.prim)))}return t}))}formatInitParam(e){return vQ(this,void 0,void 0,(function*(){let t;if("string"===typeof e){const r=yield this.parseMichelineExpression(e);if(null===r)throw new KQ("Invalid init parameter",e);t=r}else t=yield this.parseJSON(e);return t}))}findGlobalConstantsHashAndValue(e){return vQ(this,void 0,void 0,(function*(){const t=e.findToken("constant"),r={};if(0!==t.length)for(const e of t){const t=e.tokenVal.args;if(t){const e=t[0];if(e.string){const t=e.string,n=yield this.context.globalConstantsProvider.getGlobalConstantByHash(t);Object.assign(r,{[t]:n})}}}return r}))}}class A1{constructor(e){this.context=e}packData(e){return vQ(this,void 0,void 0,(function*(){return this.context.rpc.packData(e)}))}}class P1 extends ts{constructor(){super(),this.name="UnconfiguredGlobalConstantsProviderError",this.message="No global constants provider has been configured. Please configure one by calling setGlobalConstantsProvider({globalConstantsProvider}) on your TezosToolkit instance."}}class T1{getGlobalConstantByHash(e){return vQ(this,void 0,void 0,(function*(){throw new P1}))}}class O1{constructor(e){this.rpc=e}getBalance(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getBalance(e,{block:String(t)})}))}getDelegate(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getDelegate(e,{block:String(t)})}))}getNextProtocol(e){return vQ(this,void 0,void 0,(function*(){return(yield this.rpc.getProtocols({block:String(e)})).next_protocol}))}getProtocolConstants(e){return vQ(this,void 0,void 0,(function*(){const{time_between_blocks:t,minimal_block_delay:r,hard_gas_limit_per_operation:n,hard_gas_limit_per_block:i,hard_storage_limit_per_operation:o,cost_per_byte:a,tx_rollup_origination_size:s,smart_rollup_origination_size:c}=yield this.rpc.getConstants({block:String(e)});return{time_between_blocks:t,minimal_block_delay:r,hard_gas_limit_per_operation:n,hard_gas_limit_per_block:i,hard_storage_limit_per_operation:o,cost_per_byte:a,tx_rollup_origination_size:s,smart_rollup_origination_size:c}}))}getScript(e,t){return vQ(this,void 0,void 0,(function*(){const{script:r}=yield this.rpc.getContract(e,{block:String(t)});return r}))}getStorage(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getStorage(e,{block:String(t)})}))}getBlockHash(e){return vQ(this,void 0,void 0,(function*(){const{hash:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getBlockLevel(e){return vQ(this,void 0,void 0,(function*(){const{level:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getCounter(e,t){return vQ(this,void 0,void 0,(function*(){const{counter:r}=yield this.rpc.getContract(e,{block:String(t)});return r||"0"}))}getBlockTimestamp(e){return vQ(this,void 0,void 0,(function*(){const{timestamp:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getBigMapValue(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getBigMapExpr(e.id,e.expr,{block:String(t)})}))}getSaplingDiffById(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getSaplingDiffById(e.id,{block:String(t)})}))}getSaplingDiffByContract(e,t){return vQ(this,void 0,void 0,(function*(){return this.rpc.getSaplingDiffByContract(e,{block:String(t)})}))}getEntrypoints(e){return vQ(this,void 0,void 0,(function*(){return this.rpc.getEntrypoints(e)}))}getChainId(){return vQ(this,void 0,void 0,(function*(){return this.rpc.getChainId()}))}isAccountRevealed(e,t){return vQ(this,void 0,void 0,(function*(){const r=yield this.rpc.getManagerKey(e,{block:String(t)});return r&&"object"===typeof r?!!r.key:!!r}))}getBlock(e){return vQ(this,void 0,void 0,(function*(){return this.rpc.getBlock({block:String(e)})}))}getLiveBlocks(e){return this.rpc.getLiveBlocks({block:String(e)})}}class C1 extends Qa{constructor(e){super(),this.type=e,this.name="UnsupportedEventError",this.message=`Unsupported event type "${e}" expecting one of the "data", "error", or "close".`}}class j1 extends Qa{constructor(e){super(),this.invalidExpression=e,this.name="InvalidFilterExpressionError",this.message="Invalid filter expression expecting the object to contain either and/or property"}}const R1=(e,t)=>"opHash"in t?((e,t)=>e.hash===t.opHash)(e,t):"source"in t?((e,t)=>{switch(e.kind){case"endorsement":return"metadata"in e&&e.metadata.delegate===t.source;case"activate_account":return"metadata"in e&&e.pkh===t.source;default:return"source"in e&&e.source===t.source}})(e,t):"kind"in t?((e,t)=>"kind"in e&&e.kind===t.kind)(e,t):"destination"in t&&((e,t)=>{switch(e.kind){case"delegation":return e.delegate===t.destination;case"origination":if("metadata"in e&&"operation_result"in e.metadata&&"originated_contracts"in e.metadata.operation_result&&Array.isArray(e.metadata.operation_result.originated_contracts))return e.metadata.operation_result.originated_contracts.some((e=>e===t.destination));break;case"transaction":return e.destination===t.destination;default:return!1}})(e,t),I1=(e,t)=>{const r=[];return Array.isArray(t)?r.push(...t):r.push(t),r.every((t=>"and"in t||"or"in t?((e,t)=>{if(Array.isArray(t.and))return t.and.every((t=>I1(e,t)));if(Array.isArray(t.or))return t.or.some((t=>I1(e,t)));throw new j1(t)})(e,t):R1(e,t)))};class M1{constructor(e,t=!1,r=EW()){var n;this.shouldRetry=t,this.operatorFunction=r,this.errorListeners=[],this.messageListeners=[],this.closeListeners=[],this.completed$=new oK,e.pipe((n=this.completed$,CK((function(e,t){wK(n).subscribe(jK(t,(function(){return t.complete()}),Uq)),!t.closed&&e.subscribe(t)}))),pW((e=>{this.call(this.messageListeners,e)}),(e=>{this.call(this.errorListeners,e)}),(()=>{this.call(this.closeListeners)})),this.shouldRetry?r:pW(),_W((()=>JK))).subscribe()}call(e,t){for(const n of e)try{n(t)}catch(r){console.error(r)}}remove(e,t){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}on(e,t){switch(e){case"data":this.messageListeners.push(t);break;case"error":this.errorListeners.push(t);break;case"close":this.closeListeners.push(t);break;default:throw new C1(e)}}off(e,t){switch(e){case"data":this.remove(this.messageListeners,t);break;case"error":this.remove(this.errorListeners,t);break;case"close":this.remove(this.closeListeners,t);break;default:throw new C1(e)}}close(){this.completed$.next()}}const L1={shouldObservableSubscriptionRetry:!1,observableSubscriptionRetryFunction:EW()},N1=e=>hW((t=>new rK((r=>{for(const s of t.operations)for(const c of s)for(const s of c.contents){const l=s.metadata.internal_operation_results;if(l)for(const s of l)n=s,i=null===e||void 0===e?void 0:e.address,o=null===e||void 0===e?void 0:e.tag,a=null===e||void 0===e?void 0:e.excludeFailedOperations,"event"!==n.kind||o&&n.tag!==o||i&&n.source!==i||a&&"applied"!==n.result.status||r.next(Object.assign({opHash:c.hash,blockHash:t.hash,level:t.header.level},s))}var n,i,o,a;r.complete()}))));class D1{constructor(e,t={}){this.context=e,this._config$=new lK(Object.assign(Object.assign({},L1),t)),this.timer$=this._config$.pipe(AW("pollingIntervalMilliseconds"),cW((e=>e?sW(0,e):DK(this.getConfirmationPollingInterval()).pipe(cW((e=>sW(0,e))))))),this.newBlock$=this.timer$.pipe(cW((()=>(e=>DK(e.rpc.getBlock()).pipe(xW()))(this.context))),function(e,t){return SW((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}("hash"),jW(),PW())}get config(){return this._config$.getValue()}getConfirmationPollingInterval(){return vQ(this,void 0,void 0,(function*(){if(!this.config.pollingIntervalMilliseconds){const t=5e3,r=1e3;try{const e=yield this.context.readProvider.getProtocolConstants("head"),n=(e.minimal_block_delay?e.minimal_block_delay.multipliedBy(1e3):e.time_between_blocks?e.time_between_blocks[0].multipliedBy(1e3):new Us(t)).dividedBy(3);this.config.pollingIntervalMilliseconds=0===n.toNumber()?r:n.toNumber()}catch(e){return t}}return this.config.pollingIntervalMilliseconds}))}subscribeBlock(e){return new M1(this.newBlock$,this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribe(e){return new M1(this.newBlock$.pipe(AW("hash")),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribeOperation(e){return new M1(this.newBlock$.pipe((e=>hW((t=>new rK((r=>{for(const n of t.operations)for(const t of n)for(const n of t.contents)I1(Object.assign({hash:t.hash},n),e)&&r.next(Object.assign({hash:t.hash},n));r.complete()})))))(e)),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribeEvent(e){return new M1(this.newBlock$.pipe(N1(e)),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}}class z1{constructor(e){this.context=e}getNextProto(){return vQ(this,void 0,void 0,(function*(){if(!this.context.proto){const e=yield this.context.readProvider.getNextProtocol("head");this.context.proto=e}return this.context.proto}))}forge({branch:e,contents:t}){return vQ(this,void 0,void 0,(function*(){return new mQ(yield this.getNextProto()).forge({branch:e,contents:t})}))}}const B1={defaultConfirmationCount:1,confirmationPollingTimeoutSecond:180};class U1{constructor(e,t=new _Q,r,n=new lK(Object.assign({},B1)),i,o,a,s,c,l,u,d){this._rpc=e,this._signer=t,this._proto=r,this._config=n,this.providerDecorator=[],this.tz=new a1(this),this.estimate=new u1(this),this.contract=new k1(this,this.estimate),this.prepare=new J0(this),this.batch=new t1(this,this.estimate),this.wallet=new T0(this),this.withExtensions=()=>{let e=this.clone();return this.providerDecorator.forEach((t=>{e=t(e)})),e},"string"===typeof this._rpc?this._rpcClient=new Tq(this._rpc):this._rpcClient=this._rpc,this._forger=i||new z1(this),this._injector=o||new wQ(this),this.operationFactory=new o1(this),this._walletProvider=s||new L0(this),this._parser=c||new E1(this),this._packer=a||new A1(this),this._globalConstantsProvider=l||new T1,this._readProvider=u||new O1(this._rpcClient),this._stream=d||new D1(this)}get config(){return this._config.getValue()}set config(e){this._config.next(Object.assign({},e))}setPartialConfig(e){this._config.next(Object.assign(Object.assign({},this._config.getValue()),e))}get rpc(){return this._rpcClient}set rpc(e){this._rpcClient=e}get injector(){return this._injector}set injector(e){this._injector=e}get forger(){return this._forger}set forger(e){this._forger=e}get signer(){return this._signer}set signer(e){this._signer=e}get walletProvider(){return this._walletProvider}set walletProvider(e){this._walletProvider=e}set proto(e){this._proto=e}get proto(){return this._proto}get parser(){return this._parser}set parser(e){this._parser=e}get packer(){return this._packer}set packer(e){this._packer=e}get globalConstantsProvider(){return this._globalConstantsProvider}set globalConstantsProvider(e){this._globalConstantsProvider=e}get readProvider(){return this._readProvider}set readProvider(e){this._readProvider=e}get stream(){return this._stream}set stream(e){this._stream=e}isAnyProtocolActive(e=[]){return vQ(this,void 0,void 0,(function*(){if(this._proto)return e.includes(this._proto);{const t=yield this.readProvider.getNextProtocol("head");return e.includes(t)}}))}isAnySignerConfigured(){return!(this.signer instanceof _Q)}clone(){return new U1(this.rpc,this.signer,this.proto,this._config,this.forger,this._injector,this.packer,this._walletProvider,this._parser,this._globalConstantsProvider,this._readProvider,this._stream)}registerProviderDecorator(e){this.providerDecorator.push(e)}}const F1={commitHash:"462c992ab912a8be0d8ea377eb94433df9e36d8e",version:"17.5.2-462c992--"};class $1{constructor(e){this._rpc=e,this._options={},this.format=gc,"string"===typeof this._rpc?this._rpcClient=new Tq(this._rpc):this._rpcClient=this._rpc,this._context=new U1(e),this._wallet=new T0(this._context),this.setProvider({rpc:this._rpcClient}),this.batch=this._context.batch.batch.bind(this._context.batch)}setProvider({rpc:e,stream:t,signer:r,protocol:n,config:i,forger:o,wallet:a,packer:s,globalConstantsProvider:c,readProvider:l,parserProvider:u,injectorProvider:d}){this.setRpcProvider(e),this.setStreamProvider(t),this.setSignerProvider(r),this.setForgerProvider(o),this.setWalletProvider(a),this.setPackerProvider(s),this.setGlobalConstantsProvider(c),this.setReadProvider(l),this.setParserProvider(u),this.setInjectorProvider(d),this._context.proto=n,i&&this._context.setPartialConfig(i)}setSignerProvider(e){this._options.signer||"undefined"!==typeof e?"undefined"!==typeof e&&(this._context.signer=e,this._options.signer=e):(this._context.signer=new _Q,this._options.signer=e)}setRpcProvider(e){"string"===typeof e?this._rpcClient=new Tq(e):void 0===e||(this._rpcClient=e),this._options.rpc=this._rpcClient,this._context.rpc=this._rpcClient}setForgerProvider(e){if("undefined"!==typeof e)this._options.forger=e,this._context.forger=e;else if(void 0===this._options.forger){const e=this.getFactory(z1)();this._options.forger=e,this._context.forger=e}}setStreamProvider(e){if("string"===typeof e){const t=new D1(new U1(new Tq(e)));this._options.stream=t,this._context.stream=t}else if("undefined"!==typeof e)this._options.stream=e,this._context.stream=e;else if(void 0===this._options.stream){const e=this.getFactory(D1)();this._options.stream=e,this._context.stream=e}}setWalletProvider(e){if(this._options.wallet||"undefined"!==typeof e)"undefined"!==typeof e&&(this._options.wallet=e,this._context.walletProvider=e);else{const e=this.getFactory(L0)();this._options.wallet=e,this._context.walletProvider=e}}setPackerProvider(e){if(this._options.packer||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.packer=e,this._options.packer=e);else{const e=this.getFactory(A1)();this._context.packer=e,this._options.packer=e}}setGlobalConstantsProvider(e){if(this._options.globalConstantsProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.globalConstantsProvider=e,this._options.globalConstantsProvider=e);else{const e=new T1;this._context.globalConstantsProvider=e,this._options.globalConstantsProvider=e}}setReadProvider(e){const t=e||new O1(this._context.rpc);this._options.readProvider=t,this._context.readProvider=t}setParserProvider(e){if(this._options.parserProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.parser=e,this._options.parserProvider=e);else{const e=new E1(this._context);this._context.parser=e,this._options.parserProvider=e}}setInjectorProvider(e){if(this._options.injectorProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.injector=e,this._options.injectorProvider=e);else{const e=new wQ(this._context);this._context.injector=e,this._options.injectorProvider=e}}get tz(){return this._context.tz}get contract(){return this._context.contract}get prepare(){return this._context.prepare}get wallet(){return this._wallet}get operation(){return this._context.operationFactory}get estimate(){return this._context.estimate}get stream(){return this._context.stream}get rpc(){return this._context.rpc}get signer(){return this._context.signer}get globalConstants(){return this._context.globalConstantsProvider}addExtension(e){Array.isArray(e)?e.forEach((e=>e.configureContext(this._context))):e.configureContext(this._context)}getFactory(e){return(...t)=>new e(this._context,...t)}getVersionInfo(){return F1}}class H1{constructor(e,t){this.pk=void 0,this.pkh=void 0,this.pk=e,this.pkh=t}async publicKey(){return this.pk}async publicKeyHash(){return this.pkh}async sign(){throw new Error("`sign` method not available")}async secretKey(){throw new Error("empty secret key")}}const V1={args:[{args:[{annots:["%from_"],prim:"address"},{annots:["%txs"],args:[{args:[{annots:["%to_"],prim:"address"},{args:[{annots:["%token_id"],prim:"nat"},{annots:["%amount"],prim:"nat"}],prim:"pair"}],prim:"pair"}],prim:"list"}],prim:"pair"}],prim:"list"},q1={args:[{annots:[":from"],prim:"address"},{args:[{annots:[":to"],prim:"address"},{annots:[":value"],prim:"nat"}],prim:"pair"}],prim:"pair"},K1=(e,t,r)=>[...W1,{prim:"PUSH",args:[{prim:"address"},{string:e.contract.pkh+"%"+r.entrypoint}]},{prim:"CONTRACT",args:[t]},[{prim:"IF_NONE",args:[[{prim:"UNIT"},{prim:"FAILWITH"}],[]]}],{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"PUSH",args:[t,r.value]},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}],W1=[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]}],G1=e=>(0,Va.isEqual)(e.slice(0,2),W1)?e.slice(2):e,Z1=e=>{const t=e.map((e=>(e=>{switch(e.type){case"tez":switch(e.recipient.type){case"implicit":return q0(e.recipient.pkh,Number(e.amount));case"contract":return K0(e.recipient.pkh,Number(e.amount))}case"fa1.2":return K1(e,q1,i2(e));case"fa2":return K1(e,V1,o2(e));case"delegation":return H0(e.recipient.pkh);case"undelegation":return V0();case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}})(e))).flatMap(G1);return[...W1,...t]},Y1=(e,t,r)=>J1(e,t,{int:r}),X1=(e,t)=>{const r=Z1(t);return J1(e,"propose",r)},J1=(e,t,r,n="0")=>({type:"contract_call",contract:e,entrypoint:t,args:r,amount:n}),Q1=async(e,t)=>{try{const r=`${t.tzktApiUrl}/v1/accounts/${e}`,{data:{type:n}}=await dj.get(r);return"empty"!==n}catch(r){throw new Error(`Error fetching account from tzkt ${r.message}`)}},e2=async e=>{const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t),n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("").slice(0,8);return n},t2=async e=>{switch(e.type){case"social":case"mnemonic":case"secret_key":return new IH(e.secretKey);case"ledger":{const t=await KV.list();for(let e=0;e{switch(e){case"ed25519":return rq.ED25519;case"secp256k1":return rq.SECP256K1;case"p256":return rq.P256;case"bip25519":throw new Error("bip25519 is not supported in Tezos")}})(e.account.curve))}case"fake":return new H1(e.signer.pk,e.signer.address.pkh)}},r2=async e=>{const t=new $1(e.network.rpcUrl),r=await t2(e);return t.setSignerProvider(r),t},n2=async e=>{const t=new IH(e);return{pk:await t.publicKey(),pkh:await t.publicKeyHash()}},i2=({sender:e,recipient:t,amount:r})=>({entrypoint:"transfer",value:{prim:"Pair",args:[{string:e.pkh},{prim:"Pair",args:[{string:t.pkh},{int:r}]}]}}),o2=({sender:e,recipient:t,tokenId:r,amount:n})=>({entrypoint:"transfer",value:[{prim:"Pair",args:[{string:e.pkh},[{prim:"Pair",args:[{string:t.pkh},{prim:"Pair",args:[{int:r},{int:n}]}]}]]}]}),a2=e=>{switch(e.type){case"tez":return{kind:Pq.TRANSACTION,to:e.recipient.pkh,amount:parseInt(e.amount),mutez:!0};case"contract_call":return{kind:Pq.TRANSACTION,to:e.contract.pkh,amount:parseInt(e.amount),mutez:!0,parameter:{entrypoint:e.entrypoint,value:e.args}};case"delegation":return{kind:Pq.DELEGATION,source:e.sender.pkh,delegate:e.recipient.pkh};case"undelegation":return{kind:Pq.DELEGATION,source:e.sender.pkh,delegate:void 0};case"fa1.2":return{kind:Pq.TRANSACTION,amount:0,to:e.contract.pkh,parameter:i2(e)};case"fa2":return{kind:Pq.TRANSACTION,amount:0,to:e.contract.pkh,parameter:o2(e)};case"contract_origination":return{kind:Pq.ORIGINATION,...e}}},s2=({type:e,operations:t,sender:r})=>("implicit"===e?t:[X1(r.address,t)]).map(a2),c2=s2,l2=async(e,t)=>{const r=await r2({type:"fake",signer:e.signer,network:t});try{const t=await r.estimate.batch(s2(e));return n=t.map((e=>Math.max(e.suggestedFeeMutez,e.totalCost).toString())),n.reduce(((e,t)=>e.plus(t)),new Us(0))}catch(Cle){if(!await Q1(e.signer.address.pkh,t))throw new Error(`Signer address is not revealed on the ${t.name}.`);throw Cle instanceof Error&&(Cle.message=u2(Cle)),Cle}var n},u2=e=>e.message.includes("subtraction_underflow")?"Insufficient balance, please make sure you have enough funds.":e.message.includes("contract.non_existing_contract")?"Contract does not exist, please check if the correct network is selected.":e.message;class d2{constructor(e){this.queue=void 0,this.maxConcurrent=void 0,this.count=void 0,this.queue=[],this.maxConcurrent=e,this.count=0}get canAcquire(){return this.countthis.queue.push(e)))}release(){const e=this.queue.shift();e?setTimeout(e,0):this.count--}}const h2="_default";const f2=[encodeURIComponent,encodeURIComponent];encodeURIComponent,encodeURI;function p2(e,t=","){return(r,...n)=>r.reduce(((r,i,o)=>`${r}${i}${((r,n)=>{const i=e[n%e.length];if("undefined"===typeof r)return"";if("object"===typeof r)return Array.isArray(r)?r.map(i).join(t):Object.entries(r).reduce(((e,t)=>[...e,...t]),[]).map(i).join(t);return i(String(r))})(n[o],o)}`),"")}function m2(e=","){return(t,r=f2)=>Object.entries(t).filter((([,e])=>void 0!==e)).map((([t,n])=>p2(r,e)`${t}=${n}`)).join("&")}function g2(...e){const t=e.filter(Boolean).join("&");return t&&`?${t}`}function v2(e,t=f2){const r=p2(t);return Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,n])=>Array.isArray(n)?n.map((t=>r`${e}=${t}`)).join("&"):"object"===typeof n?v2(n,t):r`${e}=${n}`)).join("&")}const y2=m2();m2("|"),m2("%20");const b2=[200,201,202,204];async function w2(e){const t=await e;if(b2.some((e=>e==t.status)))return t.data;throw new x2(t.status,t.data)}class x2 extends Error{status;data;constructor(e,t){super(`Error: ${e}`),this.status=e,this.data=t}}const _2={jsonParameter:(e,t)=>{if(!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{if(!(n instanceof Object))throw new Error(`Expected ${e} value to be object, received ${typeof n}`);const{jsonPath:i,jsonValue:o}=n;if(void 0===o||null===o)throw new Error(`Expected jsonValue in ${e} -> ${t}, found: ${o}`);const a=[e,i,t].filter((e=>void 0!==e)).join(".");r[a]=o})),r},queryParameter:(e,t)=>{if(!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{r[`${e}.${t}`]=n})),r},anyofParameter:(e,t)=>{if(!t)return{};const{fields:r}=t;if(!(t=>{if(!Array.isArray(t))throw new Error(`Expected ${e} fields to be Array. Received ${typeof t}.`);return t.forEach((t=>{if("string"!==typeof t)throw new Error(`Expected ${e} fields to be strings. Received ${typeof t}`)})),!0})(r))return{};const n={},i=r.join(".");if(t.value){n[`${e}.${i}`]=t.value}for(const o of["in","eq","null"])if(t[o]){return n[`${e}.${i}.${o}`]=Array.isArray(t[o])?t[o].join(","):t[o],n}return n}},S2=_2,k2=function(e){async function t(e,t){const n=await r(e,t);let i;try{i=await n.text()}catch(Cle){}return{status:n.status,headers:n.headers,contentType:n.headers.get("content-type"),data:i}}async function r(t,r={}){const{baseUrl:n,headers:i,fetch:o,...a}={...e,...r},s=function(...e){return e.filter(Boolean).map(((e,t)=>0===t?e:e.replace(/^\/+/,""))).map(((e,t,r)=>t===r.length-1?e:e.replace(/\/+$/,""))).join("/")}(n,t);var c;return await(o||fetch)(s,{...a,headers:(c={...e.headers,...i},c&&JSON.parse(JSON.stringify(c)))})}return{ok:w2,fetchText:t,fetchJson:async function(e,r={}){const{status:n,headers:i,contentType:o,data:a}=await t(e,{...r,headers:{Accept:"application/json",...r.headers}});return!!o&&o.includes("json")?{status:n,headers:i,data:a?JSON.parse(a):null}:{status:n,headers:i,data:a}},fetchBlob:async function(e,t={}){const n=await r(e,t);let i;try{i=await n.blob()}catch(Cle){}return{status:n.status,headers:n.headers,data:i}},json:({body:e,headers:t,...r})=>({...r,...null!=e&&{body:JSON.stringify(e)},headers:{...t,"Content-Type":"application/json"}}),form:({body:e,headers:t,...r})=>({...r,...null!=e&&{body:y2(e)},headers:{...t,"Content-Type":"application/x-www-form-urlencoded"}}),multipart({body:t,...r}){if(null==t)return r;const n=new(e.formDataConstructor||r.formDataConstructor||FormData);return Object.entries(t).forEach((([e,t])=>{n.append(e,t)})),{...r,body:n}}}}({baseUrl:"https://api.tzkt.io"});function E2({id:e,level:t,timestamp:r,tokenId:n,tokenContract:i,tokenTokenId:o,tokenStandard:a,tokenMetadata:s,tokenHasFilters:c,anyof:l,$from:u,to:d,amount:h,transactionId:f,originationId:p,migrationId:m,indexedAt:g,sort:v,offset:y,limit:b,select:w}={},x){return k2.ok(k2.fetchJson(`/v1/tokens/transfers${g2(v2({"token.HasFilters":c,limit:b,...S2.queryParameter("id",e),...S2.queryParameter("level",t),...S2.queryParameter("timestamp",r),...S2.queryParameter("token.id",n),...S2.queryParameter("token.contract",i),...S2.queryParameter("token.tokenId",o),...S2.queryParameter("token.standard",a),...S2.jsonParameter("token.metadata",s),...S2.anyofParameter("anyof",l),...S2.queryParameter("from",u),...S2.queryParameter("to",d),...S2.queryParameter("amount",h),...S2.queryParameter("transactionId",f),...S2.queryParameter("originationId",p),...S2.queryParameter("migrationId",m),...S2.queryParameter("indexedAt",g),...S2.queryParameter("sort",v),...S2.queryParameter("offset",y),...S2.queryParameter("select",w)}))}`,{...x}))}var A2=r(7786),P2=r.n(A2);const T2=new class{constructor(e=1){this.semaphoreInstances=void 0,this.maxConcurrent=void 0,this.semaphoreInstances={},this.maxConcurrent=e}hasSemaphoreInstance(e=h2){return Boolean(this.semaphoreInstances[e])}getSemaphoreInstance(e=h2){return this.hasSemaphoreInstance(e)||(this.semaphoreInstances[e]=new d2(this.maxConcurrent)),this.semaphoreInstances[e]}tidy(e=h2){this.hasSemaphoreInstance(e)&&0==this.getSemaphoreInstance(e).count&&delete this.semaphoreInstances[e]}canAcquire(e=h2){return this.getSemaphoreInstance(e).canAcquire}acquire(e=h2){return this.getSemaphoreInstance(e).acquire()}release(e=h2){this.getSemaphoreInstance(e).release(),this.tidy(e)}count(e=h2){return this.hasSemaphoreInstance(e)?this.getSemaphoreInstance(e).count:0}hasTasks(e=h2){return this.count(e)>0}async request(e,t=h2){try{return await this.acquire(t),await e()}finally{this.release(t)}}async requestIfAvailable(e,t=h2){return this.canAcquire(t)?this.request(e,t):null}}(10),O2=e=>T2.acquire().then((()=>P2()((t=>e().catch(t)),{retries:3,minTimeout:100}))).catch((e=>{if("status"in e&&"data"in e)throw new Error(`Fetching data from tzkt failed with: ${e.status}, ${e.data}`);throw e})).finally((()=>T2.release())),C2=async(e,t)=>O2((()=>function({id:e,address:t,$type:r,kind:n,delegate:i,balance:o,staked:a,lastActivity:s,select:c,sort:l,offset:u,limit:d}={},h){return k2.ok(k2.fetchJson(`/v1/accounts${g2(v2({limit:d,...S2.queryParameter("id",e),...S2.queryParameter("address",t),...S2.queryParameter("type",r),...S2.queryParameter("kind",n),...S2.queryParameter("delegate",i),...S2.queryParameter("balance",o),...S2.queryParameter("staked",a),...S2.queryParameter("lastActivity",s),...S2.queryParameter("select",c),...S2.queryParameter("sort",l),...S2.queryParameter("offset",u)}))}`,{...h}))}({address:{in:[e.join(",")]},select:{fields:["address,balance,delegationLevel"]}},{baseUrl:t.tzktApiUrl}))),j2=async(e,t)=>O2((()=>function({id:e,account:t,tokenId:r,tokenContract:n,tokenTokenId:i,tokenStandard:o,tokenMetadata:a,tokenHasFilters:s,balance:c,firstLevel:l,firstTime:u,lastLevel:d,lastTime:h,indexedAt:f,sort:p,offset:m,limit:g,select:v}={},y){return k2.ok(k2.fetchJson(`/v1/tokens/balances${g2(v2({"token.HasFilters":s,limit:g,...S2.queryParameter("id",e),...S2.queryParameter("account",t),...S2.queryParameter("token.id",r),...S2.queryParameter("token.contract",n),...S2.queryParameter("token.tokenId",i),...S2.queryParameter("token.standard",o),...S2.jsonParameter("token.metadata",a),...S2.queryParameter("balance",c),...S2.queryParameter("firstLevel",l),...S2.queryParameter("firstTime",u),...S2.queryParameter("lastLevel",d),...S2.queryParameter("lastTime",h),...S2.queryParameter("indexedAt",f),...S2.queryParameter("sort",p),...S2.queryParameter("offset",m),...S2.queryParameter("select",v)}))}`,{...y}))}({account:{in:[e.join(",")]},balance:{gt:"0"},limit:1e4},{baseUrl:t.tzktApiUrl}))),R2=async(e,t,r)=>O2((()=>function({anyof:e,initiator:t,sender:r,prevDelegate:n,newDelegate:i,level:o,timestamp:a,senderCodeHash:s,status:c,select:l,sort:u,offset:d,limit:h,quote:f}={},p){return k2.ok(k2.fetchJson(`/v1/operations/delegations${g2(v2({limit:h,quote:f,...S2.anyofParameter("anyof",e),...S2.queryParameter("initiator",t),...S2.queryParameter("sender",r),...S2.queryParameter("prevDelegate",n),...S2.queryParameter("newDelegate",i),...S2.queryParameter("level",o),...S2.queryParameter("timestamp",a),...S2.queryParameter("senderCodeHash",s),...S2.queryParameter("status",c),...S2.queryParameter("select",l),...S2.queryParameter("sort",u),...S2.queryParameter("offset",d)}))}`,{...p}))}({sender:{in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),I2=async(e,t,r)=>O2((()=>function({anyof:e,initiator:t,sender:r,target:n,amount:i,id:o,level:a,timestamp:s,senderCodeHash:c,targetCodeHash:l,codeHash:u,entrypoint:d,parameter:h,hasInternals:f,status:p,select:m,sort:g,offset:v,limit:y,micheline:b,quote:w}={},x){return k2.ok(k2.fetchJson(`/v1/operations/transactions${g2(v2({limit:y,micheline:b,quote:w,...S2.anyofParameter("anyof",e),...S2.queryParameter("initiator",t),...S2.queryParameter("sender",r),...S2.queryParameter("target",n),...S2.queryParameter("amount",i),...S2.queryParameter("id",o),...S2.queryParameter("level",a),...S2.queryParameter("timestamp",s),...S2.queryParameter("senderCodeHash",c),...S2.queryParameter("targetCodeHash",l),...S2.queryParameter("codeHash",u),...S2.queryParameter("entrypoint",d),...S2.jsonParameter("parameter",h),...S2.queryParameter("hasInternals",f),...S2.queryParameter("status",p),...S2.queryParameter("select",m),...S2.queryParameter("sort",g),...S2.queryParameter("offset",v)}))}`,{...x}))}({anyof:{fields:["sender","target","initiator"],in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),M2=async(e,t,r)=>O2((()=>function({anyof:e,initiator:t,sender:r,contractManager:n,contractDelegate:i,originatedContract:o,id:a,typeHash:s,codeHash:c,level:l,timestamp:u,senderCodeHash:d,anyCodeHash:h,status:f,select:p,sort:m,offset:g,limit:v,micheline:y,quote:b}={},w){return k2.ok(k2.fetchJson(`/v1/operations/originations${g2(v2({limit:v,micheline:y,quote:b,...S2.anyofParameter("anyof",e),...S2.queryParameter("initiator",t),...S2.queryParameter("sender",r),...S2.queryParameter("contractManager",n),...S2.queryParameter("contractDelegate",i),...S2.queryParameter("originatedContract",o),...S2.queryParameter("id",a),...S2.queryParameter("typeHash",s),...S2.queryParameter("codeHash",c),...S2.queryParameter("level",l),...S2.queryParameter("timestamp",u),...S2.queryParameter("senderCodeHash",d),...S2.queryParameter("anyCodeHash",h),...S2.queryParameter("status",f),...S2.queryParameter("select",p),...S2.queryParameter("sort",m),...S2.queryParameter("offset",g)}))}`,{...w}))}({sender:{in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),L2=async(e,t,r)=>O2((async()=>(await E2({anyof:{fields:["from","to"],in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl})).map((e=>({...e,type:"token_transfer"}))))),N2=async e=>O2((async()=>{return await(t={baseUrl:e.tzktApiUrl},k2.ok(k2.fetchJson("/v1/blocks/count",{...t})));var t})),D2=async e=>O2((()=>function({active:e,lastActivity:t,select:r,sort:n,offset:i,limit:o}={},a){return k2.ok(k2.fetchJson(`/v1/delegates${g2(v2({limit:o,...S2.queryParameter("active",e),...S2.queryParameter("lastActivity",t),...S2.queryParameter("select",r),...S2.queryParameter("sort",n),...S2.queryParameter("offset",i)}))}`,{...a}))}({sort:{desc:"stakingBalance"},active:{eq:!0},limit:1e4,select:{fields:["address,alias,stakingBalance"]}},{baseUrl:e.tzktApiUrl}))),z2=async(e,t)=>{const r=c2(e);return t.wallet.batch(r).send()},B2=async(e,t)=>{const r=IH.fromMnemonic({mnemonic:e,derivationPath:t,curve:"ed25519"});return{pkh:await r.publicKeyHash(),pk:await r.publicKey()}},U2=()=>{const e=WH();return async(t,r,n,i)=>{const o=await(async(e,t,r)=>{const n=[];let i=0,o=await B2(e,DH(t,i));do{n.push(o),i+=1,o=await B2(e,DH(t,i))}while(await Q1(o.pkh,r));return n})(t,n,r),a=await e2(t),s=e(i,o.length);return o.map((({pk:e,pkh:t},r)=>zH(e,t,DH(n,r),n,a,s[r])))}},F2=()=>{const e=jR((e=>e.accounts.seedPhrases)),t=jR((e=>e.accounts.secretKeys));return async(r,n)=>{if("secret_key"===r.type){const e=t[r.address.pkh];if(!e)throw new Error(`Missing secret key for account ${r.address.pkh}`);return Ic(e,n)}{const t=e[r.seedFingerPrint];if(!t)throw new Error(`Missing seedphrase for account ${r.address.pkh}`);return((e,t,r)=>IH.fromMnemonic({mnemonic:e,derivationPath:t,curve:r}).secretKey())(await Ic(t,n),r.derivationPath,r.curve)}}},$2=()=>jR((e=>e.networks.current)),H2=()=>jR((e=>e.networks.available)),V2=()=>{const e=H2(),t=pi();return r=>{const n=e.find((e=>e.name===r));n&&t(qd.setCurrent(n))}},q2=()=>{const e=$2(),t=jR((t=>t.tokens[e.name]));return(e,r)=>(0,Va.get)(t,[e,r])},K2=(e,t)=>e.length>t?e.slice(0,t-3)+"...":e,W2=e=>gc("tz","mutez",e),G2=e=>gc("mutez","tz",e),Z2=e=>{const t=Us(G2(e)).toNumber();return`${new Intl.NumberFormat("en-US",{minimumFractionDigits:6,maximumFractionDigits:6}).format(t)} \ua729`},Y2=e=>`${e.slice(0,5)}...${e.slice(-5)}`,X2=e=>{const t=jR((e=>e.assets.blockLevel));return null!==t?t-e>=2:null},J2=()=>{const e=t3(),t=jR((e=>e.assets.balances.tokens)),r=Object.keys(t);return(0,Va.fromPairs)(r.map((t=>[t,e(t)])))},Q2=()=>{const e=q2(),t=jR((e=>e.assets.balances.tokens));return r=>{const n=t[r]||[];return(0,Va.compact)(n.map((({contract:t,tokenId:r,...n})=>{const i=e(t,r);return i&&{...i,...n}})))}},e3=()=>{const e=(()=>{const e=Q2();return t=>e(t).filter((e=>"fa1.2"===e.type))})(),t=(()=>{const e=Q2();return t=>e(t).filter((e=>"fa2"===e.type))})();return r=>[...e(r),...t(r)]},t3=()=>{const e=Q2();return t=>e(t).filter((e=>"nft"===e.type))},r3=()=>{const e=jR((e=>e.assets.conversionRate));return t=>null===e?null:new Bs(t).multipliedBy(e).decimalPlaces(2,Bs.ROUND_UP)},n3=()=>{const e=jR((e=>e.assets.balances.mutez)),t=r3(),r=(e=>{const t=(0,Va.compact)(Object.values(e));return 0===t.length?null:t.reduce(((e,t)=>e.plus(t)),new Us(0))})(e);if(null==r)return null;const n=t(G2(r));return{mutez:r.toFixed(),usd:n}},i3=()=>{const e=jR((e=>e.assets.balances.mutez));return t=>e[t]},o3=()=>jR((e=>e.assets.bakers)),a3=e=>{const t=s3(e),r=c3(e),n=l3(e);return t||r||n||{pkh:e.pkh,type:"unknown",label:null}},s3=({pkh:e})=>{const t=GH()(e);return t?{type:t.type,pkh:e,label:t.label}:null},c3=({pkh:e})=>{const t=(()=>{const e=o3();return t=>e.find((e=>e.address===t))})(),r=t(e);return r?{pkh:e,type:"baker",label:r.name}:null},l3=({pkh:e})=>{const t=FH()(e);return t?{pkh:e,type:"contact",label:t}:null},u3=({number:e,size:t="md"})=>{const r="md"===t?"md":"lg",n="md"===t?"sm":"md",{integer:i,decimal:o}=(e=>{const[t,r]=e.split(".");return{integer:t,decimal:r}})(e);return(0,un.jsxs)(dn,{alignItems:"end","data-testid":"pretty-number",children:[(0,un.jsx)(kn,{size:r,children:i}),o&&(0,un.jsxs)(kn,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",size:n,children:[".",o]})]})},d3=({address:e,size:t,...r})=>{const n=i3()(e);if(!n)return null;const i=Z2(n);return(0,un.jsx)(pn,{overflow:"hidden",textAlign:"right","data-testid":"account-balance",...r,children:(0,un.jsx)(u3,{number:i,size:t})})},h3=({address:e,...t})=>{const r=a3(e);return(0,un.jsx)(eH,{background:EP.white,hasArrow:!0,label:r.label,placement:"left",children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",width:"400px",padding:"9px 10px",background:EP.gray[800],borderRadius:"4px","data-testid":"address-tile",...t,children:[(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(cH,{addressKind:r}),"unknown"===r.type?(0,un.jsx)(sz,{marginLeft:"10px",color:EP.gray[300],size:"sm",children:e.pkh}):(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(pn,{overflow:"hidden",width:"102px",marginLeft:"12px",whiteSpace:"nowrap",children:(0,un.jsx)(kn,{overflow:"hidden",textOverflow:"ellipsis",size:"sm",children:r.label})}),(0,un.jsx)(sz,{width:"89px",marginLeft:"10px",color:EP.gray[300],size:"xs",children:Y2(r.pkh)})]})]}),(0,un.jsx)(d3,{overflow:"hidden",textAlign:"right",address:e.pkh})]})})},f3=({contacts:e,onChange:t})=>0===e.length?null:(0,un.jsx)(iF,{position:"absolute",zIndex:2,overflowY:"auto",width:"100%",maxHeight:300,marginTop:"8px",marginLeft:0,background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px","data-testid":"suggestions-list",listStyleType:"none",children:e.map(((r,n)=>(0,un.jsx)(pn,{children:(0,un.jsx)(oF,{marginBottom:n===e.length-1?"5px":0,padding:"5px 15px 0 5px",onMouseDown:()=>{t(r.name)},children:(0,un.jsx)(h3,{width:"370px",height:"40px",padding:"10px 8px 10px 5px",background:EP.gray[700],borderRadius:"4px",_hover:{background:EP.gray[500]},cursor:"pointer",address:qu(r.pkh)})})},r.pkh)))}),p3=(e,t)=>{if(""===e)return t;return t.filter((t=>t.name.toLowerCase().includes(e.trim().toLowerCase())))},m3=({contacts:e,isDisabled:t,isLoading:r=!1,allowUnknown:i,inputName:o,onUpdate:a,validate:s,label:c,keepValid:l,style:u,size:d})=>{const{register:h,setValue:f,formState:{defaultValues:p},getValues:m}=AB(),g=f,v=(0,n.useId)(),[y,b]=(0,n.useState)((()=>{var t;if(l||!p)return"";const r=(0,Va.get)(p,o);return r?(null===(t=e.find((e=>e.pkh===r)))||void 0===t?void 0:t.name)||r:""})),[w,x]=(0,n.useState)(!0),[_,S]=(0,n.useState)(p3("",e)),k=m(o),E=t=>{b(t),S(p3(t,e));const r=e.find((e=>e.name===t||e.pkh===t));let n;if(void 0!==r)n=r.pkh,x(!0);else if(i&&Ku(t))n=t;else{if(l)return;n=""}g(o,n,{shouldValidate:!0}),a&&a(n)};let A="raw_input";r?A="selected_tile":t?A="disabled_tile":k&&(A="selected_tile");const P=()=>{E(""),x(!1)};return(0,un.jsxs)(pn,{"data-testid":`address-autocomplete-${o}`,children:[(0,un.jsx)(FU,{htmlFor:v,children:c}),"disabled_tile"===A&&(0,un.jsx)(h3,{address:qu(k)}),"selected_tile"===A&&(0,un.jsx)(pn,{height:"48px",background:EP.gray[800],border:"1px solid",borderColor:EP.gray[500],borderRadius:"4px","data-testid":`selected-address-tile-${k}`,onClick:P,paddingY:0,children:(0,un.jsxs)(hn,{justifyContent:"space-between",cursor:"pointer","data-testid":"clear-selected-button",children:[(0,un.jsx)(h3,{width:"short"===d?"338px":"365px",paddingTop:"8px",background:"transparent",address:qu(k)}),l?(0,un.jsx)(wj,{marginRight:"12px","data-testid":"chevron-icon"}):(0,un.jsx)(g3,{marginRight:"14px"})]})}),"raw_input"===A&&(0,un.jsxs)(KU,{children:[(0,un.jsx)(ZU,{...u,"aria-label":o,autoComplete:"off",id:v,onBlur:e=>{if(e.preventDefault(),x(!0),l&&k!==e.target.value)return E(k);E(e.target.value)},onChange:e=>E(e.target.value),onFocus:()=>x(!1),placeholder:"Enter address or contact name",value:y}),(0,un.jsx)(QU,{children:y?(0,un.jsx)(g3,{marginRight:"0px",onClick:P}):(0,un.jsx)(wj,{"data-testid":"chevron-icon"})})]}),(0,un.jsx)(ZU,{...h(o,{required:"Invalid address or contact name",validate:s}),marginBottom:0,"data-testid":`real-address-input-${o}`,name:o,type:"hidden"}),!w&&(0,un.jsx)(f3,{contacts:_,onChange:E})]})},g3=e=>(0,un.jsx)(OR,{marginRight:"16px",stroke:EP.gray[450],cursor:"pointer","data-testid":"clear-input-button",...e}),v3=e=>{const t=Object.values(BH()),r=qH().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,un.jsx)(m3,{...e,contacts:t.concat(r)})},y3=e=>{const t=HH().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,un.jsx)(m3,{...e,contacts:t})},b3=e=>{const t=qH().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,un.jsx)(m3,{...e,contacts:t})},w3=e=>{const t=o3().map((e=>({name:e.name,pkh:e.address})));return(0,un.jsx)(m3,{...e,contacts:t})},x3=e=>{const t=XH()(e.account).map((e=>({name:e.label,pkh:e.address.pkh})));return(0,un.jsx)(m3,{allowUnknown:!1,contacts:t,isDisabled:1===t.length,...e})},_3=({request:e,onSuccess:t})=>{const r=(()=>{const e=pi();return(t,r,n)=>e(Id.actions.addConnection({dAppId:t,accountPkh:r,networkType:n}))})(),n=HH(),i=MU({mode:"onBlur"}),{getValues:o,formState:{errors:a,isValid:s}}=i;return(0,un.jsxs)(iz,{children:[(0,un.jsxs)(oz,{marginBottom:"24px",children:[(0,un.jsx)(dn,{alignItems:"center",justifyContent:"center",children:"Permission Request"}),(0,un.jsxs)(sz,{marginTop:"10px",color:EP.gray[400],textAlign:"center",size:"sm",children:[e.appMetadata.name," is requesting permission to sign this operation."]}),(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"center",marginTop:"10px",children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"sm",children:"Network:"}),(0,un.jsx)(sz,{color:EP.gray[400],size:"sm",children:e.network.type})]})]}),(0,un.jsx)(cz,{}),(0,un.jsxs)(lz,{"data-testid":"beacon-request-body",children:[e.appMetadata.icon&&(0,un.jsxs)(dn,{alignItems:"center",marginTop:"16px",padding:"15px",borderRadius:"4px",backgroundColor:EP.gray[800],children:[(0,un.jsx)(dz,{width:"60px",marginRight:"12px",ratio:1,children:(0,un.jsx)(bR,{borderRadius:"4px",src:e.appMetadata.icon})}),(0,un.jsx)(kn,{size:"sm",children:e.appMetadata.name})]}),(0,un.jsx)(Nz,{marginTop:"16px",allowToggle:!0,children:(0,un.jsxs)(Dz,{background:EP.gray[800],border:"none",borderRadius:"8px",children:[(0,un.jsxs)(zz,{children:[(0,un.jsx)(kn,{flex:"1",textAlign:"left",marginY:"10px",size:"md",children:"Request Payload"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(UU,{value:e})})]})}),(0,un.jsx)(PB,{...i,children:(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!a.address,children:[(0,un.jsx)(y3,{allowUnknown:!1,inputName:"address",label:"Select Account"}),a.address&&(0,un.jsx)(Qz,{children:a.address.message})]})})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",isDisabled:!s,onClick:i=>(async()=>{const i=n.find((e=>e.address.pkh===o().address));if(!i)throw new Error("No account selected");const a={type:IM.PermissionResponse,network:{type:e.network.type},scopes:e.scopes,id:e.id,publicKey:i.pk,walletType:"implicit"};await X7.respond(a),r(e.senderId,i.address.pkh,e.network.type),t()})(),size:"lg",children:"Grant"})})]})};var S3=g(((e,t)=>{const{icon:r,children:i,isRound:o,"aria-label":a,...s}=e,c=r||i,l=(0,n.isValidElement)(c)?(0,n.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,un.jsx)(Dn,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...s,children:l})}));function k3(e){return Qj({tag:"svg",attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r\n\tc0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r\n\tc0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}},{tag:"path",attr:{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r\n\tC34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}},{tag:"path",attr:{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r\n\tc-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}},{tag:"path",attr:{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r\n\tc0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"}}]})(e)}function E3(e){return E3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E3(e)}function A3(e){var t=function(e,t){if("object"!=E3(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=E3(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E3(t)?t:String(t)}function P3(e,t,r){return(t=A3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}S3.displayName="IconButton";var T3=r(4579),O3=r.n(T3),C3=r(8634),j3=r.n(C3);function R3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I3(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};const r={mode:"cors",headers:{}};(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).useAPIKey&&(r.headers=I3(I3({},r.headers),H3()));const n=O3()(r,t,{method:"GET"}),i=await $3(e,n);if(i.ok)return i.json();throw V3(i),i},K3=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(i.headers=I3(I3({},i.headers),H3()));const o=O3()(i,r,{method:"POST"});return n.isUrlEncodedData?(o.body=t,"application/json; charset=utf-8"===o.headers["Content-Type"]&&delete o.headers["Content-Type"]):o.body=JSON.stringify(t),((e,t)=>{const r=new Promise(((t,r)=>{const n=setTimeout((()=>{clearTimeout(n),r(new Error(`Timed out in ${e}ms`))}),e)}));return Promise.race([t,r])})(n.timeout||6e4,$3(e,o).then((e=>{if(n.logTracingHeader&&function(e){M3.info(`Request tracing with traceID=${e.headers.get("x-web3-correlation-id")}`)}(e),e.ok)return e.json();throw V3(e),e})))},W3=(e,t)=>({jsonrpc:"2.0",method:e,id:10,params:t});function G3(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Z3=r(3521),Y3=r.n(Z3);Promise.resolve(!1),Promise.resolve(!0);var X3=Promise.resolve();function J3(e,t){return e||(e=0),new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))}function Q3(){return Math.random().toString(36).substring(2)}var e5=0,t5=0;function r5(){var e=(new Date).getTime();return e===e5?1e3*e+ ++t5:(e5=e,t5=0,1e3*e)}var n5=j3().getLogger("broadcast-channel");n5.setLevel("error");const i5={create:function(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close(),e.subFns=[]},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){try{return e.bc.postMessage(t,!1),X3}catch(Cle){return Promise.reject(Cle)}},canBeUsed:function(e){if("undefined"===typeof window)return!1;if(!e.support3PC)return!1;if("function"===typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1},type:"native",averageResponseTime:function(){return 150},microSeconds:r5};var o5=function(){function e(e){this.ttl=e,this.map=new Map,this._to=!1}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.add=function(e){var t=this;this.map.set(e,a5()),this._to||(this._to=!0,setTimeout((function(){t._to=!1,function(e){var t=a5()-e.ttl,r=e.map[Symbol.iterator]();for(;;){var n=r.next().value;if(!n)return;var i=n[0];if(!(n[1]0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return"undefined"===typeof t.support3PC&&(t.support3PC=function(){if("undefined"===typeof navigator)return!1;var e=Y3().parse(navigator.userAgent);n5.info(JSON.stringify(e),"current browser info");var t=!0;return navigator.brave&&(t=!1),e.engine.name!==Y3().ENGINE_MAP.WebKit&&e.engine.name!==Y3().ENGINE_MAP.Gecko||(t=!1),t}()),"undefined"===typeof t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"===typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),t.server||(t.server={}),t.server.url||(t.server.url="https://broadcast-server.tor.us"),t.server.removeTimeout||(t.server.removeTimeout=3e5),e.methods&&(t.methods=e.methods),t}var c5="pubkey.broadcast-channel-0-",l5="messages",u5={durability:"relaxed"};function d5(){if("undefined"!==typeof indexedDB)return indexedDB;if("undefined"!==typeof window){if("undefined"!==typeof window.mozIndexedDB)return window.mozIndexedDB;if("undefined"!==typeof window.webkitIndexedDB)return window.webkitIndexedDB;if("undefined"!==typeof window.msIndexedDB)return window.msIndexedDB}return!1}function h5(e){e.commit&&e.commit()}function f5(e,t){var r=e.transaction(l5,"readonly",u5),n=r.objectStore(l5),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var a=n.getAll(o);return new Promise((function(e,t){a.onerror=function(e){return t(e)},a.onsuccess=function(t){e(t.target.result)}}))}return new Promise((function(e,a){var s=function(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch(e){return n.openCursor()}}();s.onerror=function(e){return a(e)},s.onsuccess=function(n){var o=n.target.result;o?o.value.ide.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return e.uuid!==t.uuid&&!t.eMIs.has(e.id)&&!(e.data.time{T5[P5[e]]=e}));const O5={type:"error",data:"parser error"},C5="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),j5="function"===typeof ArrayBuffer,R5=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,I5=({type:e,data:t},r,n)=>C5&&t instanceof Blob?r?n(t):M5(t,n):j5&&(t instanceof ArrayBuffer||R5(t))?r?n(t):M5(new Blob([t]),n):n(P5[e]+(t||"")),M5=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function L5(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let N5;function D5(e,t){return C5&&e.data instanceof Blob?e.data.arrayBuffer().then(L5).then(t):j5&&(e.data instanceof ArrayBuffer||R5(e.data))?t(L5(e.data)):void I5(e,!1,(e=>{N5||(N5=new TextEncoder),t(N5.encode(e))}))}const z5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B5="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let r=0;r<64;r++)B5[z5.charCodeAt(r)]=r;const U5="function"===typeof ArrayBuffer,F5=(e,t)=>{if("string"!==typeof e)return{type:"message",data:H5(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:$5(e.substring(1),t)};return T5[r]?e.length>1?{type:T5[r],data:e.substring(1)}:{type:T5[r]}:O5},$5=(e,t)=>{if(U5){const r=(e=>{let t,r,n,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),u=new Uint8Array(l);for(t=0;t>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l})(e);return H5(r,t)}return{base64:!0,data:e}},H5=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,V5=String.fromCharCode(30);let q5;function K5(e){if(e)return function(e){for(var t in K5.prototype)e[t]=K5.prototype[t];return e}(e)}K5.prototype.on=K5.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},K5.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},K5.prototype.off=K5.prototype.removeListener=K5.prototype.removeAllListeners=K5.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i(e.hasOwnProperty(r)&&(t[r]=e[r]),t)),{})}const Z5=W5.setTimeout,Y5=W5.clearTimeout;function X5(e,t){t.useNativeTimers?(e.setTimeoutFn=Z5.bind(W5),e.clearTimeoutFn=Y5.bind(W5)):(e.setTimeoutFn=W5.setTimeout.bind(W5),e.clearTimeoutFn=W5.clearTimeout.bind(W5))}class J5 extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class Q5 extends K5{constructor(e){super(),this.writable=!1,X5(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new J5(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=F5(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}const e6="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t6=64,r6={};let n6,i6=0,o6=0;function a6(e){let t="";do{t=e6[e%t6]+t,e=Math.floor(e/t6)}while(e>0);return t}function s6(){const e=a6(+new Date);return e!==n6?(i6=0,n6=e):e+"."+a6(i6++)}for(;o6{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(n){return void this.setTimeoutFn((()=>{this.onError(n)}),0)}"undefined"!==typeof document&&(this.index=f6.requestsCount++,f6.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=d6,e)try{this.xhr.abort()}catch(t){}"undefined"!==typeof document&&delete f6.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(f6.requestsCount=0,f6.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",p6);else if("function"===typeof addEventListener){addEventListener("onpagehide"in W5?"pagehide":"unload",p6,!1)}function p6(){for(let e in f6.requests)f6.requests.hasOwnProperty(e)&&f6.requests[e].abort()}const m6="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),g6=W5.WebSocket||W5.MozWebSocket;r(4872).Buffer;const v6="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();function y6(e,t){return"message"===e.type&&"string"!==typeof e.data&&t[0]>=48&&t[0]<=54}const b6={websocket:class extends Q5{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=v6?{}:G5(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=v6?new g6(e,t,r):t?new g6(e,t):new g6(e)}catch(Cle){return this.emitReserved("error",Cle)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(t){}n&&m6((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=s6()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!g6}},webtransport:class extends Q5{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=e.readable.getReader();let r;this.writer=e.writable.getWriter();const n=()=>{t.read().then((({done:e,value:t})=>{e||(r||1!==t.byteLength||54!==t[0]?(this.onPacket(function(e,t,r){q5||(q5=new TextDecoder);const n=t||e[0]<48||e[0]>54;return F5(n?e:q5.decode(e),r)}(t,r,"arraybuffer")),r=!1):r=!0,n())})).catch((e=>{}))};n();const i=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write((new TextEncoder).encode(i)).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t{y6(r,e)&&this.writer.write(Uint8Array.of(54)),this.writer.write(e).then((()=>{n&&m6((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends Q5{constructor(e){if(super(e),this.polling=!1,"undefined"!==typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||r!==e.port}const t=e&&e.forceBase64;this.supportsBinary=h6&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const r=e.split(V5),n=[];for(let i=0;i{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const r=e.length,n=new Array(r);let i=0;e.forEach(((e,o)=>{I5(e,!1,(e=>{n[o]=e,++i===r&&t(n.join(V5))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=s6()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new f6(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},w6=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,x6=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function _6(e){const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=w6.exec(e||""),o={},a=14;for(;a--;)o[x6[a]]=i[a]||"";return-1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,o.path),o.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(r[t]=n)})),r}(0,o.query),o}class S6 extends K5{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"===typeof e&&(t=e,e=null),e?(e=_6(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=_6(t.host).host),X5(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let n=0,i=r.length;n{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new b6[e](r)}open(){let e;if(this.opts.rememberUpgrade&&S6.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(t){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),r=!1;S6.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;S6.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){r||(r=!0,l(),t.close(),t=null)}const o=e=>{const r=new Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function c(e){t&&e.name!==t.name&&i()}const l=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",c)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{r||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",S6.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let r=0;r=57344?r+=3:(n++,r+=4);return r}(t):Math.ceil(1.33*(t.byteLength||t.size))),r>0&&e>this.maxPayload)return this.writeBuffer.slice(0,r);e+=2}var t;return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"===typeof t&&(n=t,t=void 0),"function"===typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():e()})):this.upgrading?r():e()),this}onError(e){S6.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,A6=Object.prototype.toString,P6="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===A6.call(Blob),T6="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===A6.call(File);function O6(e){return k6&&(e instanceof ArrayBuffer||E6(e))||P6&&e instanceof Blob||T6&&e instanceof File}function C6(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const r=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((n,i)=>{t.push(((e,t)=>r?e?i(e):n(t):n(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"===typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:D6.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case D6.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case D6.EVENT:case D6.BINARY_EVENT:this.onevent(e);break;case D6.ACK:case D6.BINARY_ACK:this.onack(e);break;case D6.DISCONNECT:this.ondisconnect();break;case D6.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:D6.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:D6.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}q6.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},q6.prototype.reset=function(){this.attempts=0},q6.prototype.setMin=function(e){this.ms=e},q6.prototype.setMax=function(e){this.max=e},q6.prototype.setJitter=function(e){this.jitter=e};class K6 extends K5{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(r=e,e=void 0),(r=r||{}).path=r.path||"/socket.io",this.opts=r,X5(this,r),this.reconnection(!1!==r.reconnection),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=r.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new q6({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==r.timeout?2e4:r.timeout),this._readyState="closed",this.uri=e;const i=r.parser||t;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==r.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new S6(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=$6(t,"open",(function(){r.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=$6(t,"error",i);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn((()=>{n(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push($6(e,"ping",this.onping.bind(this)),$6(e,"data",this.ondata.bind(this)),$6(e,"error",this.onerror.bind(this)),$6(e,"close",this.onclose.bind(this)),$6(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){m6((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new V6(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const W6={};function G6(e,t){"object"===typeof e&&(t=e,e=void 0);const r=function(e,t="",r){let n=e;r=r||"undefined"!==typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof r?r.protocol+"//"+e:"https://"+e),n=_6(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=r.source,i=r.id,o=r.path,a=W6[i]&&o in W6[i].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new K6(n,t):(W6[i]||(W6[i]=new K6(n,t)),s=W6[i]),r.query&&!t.query&&(t.query=r.queryKey),s.socket(r.path,t)}Object.assign(G6,{Manager:K6,Socket:V6,io:G6,connect:G6});var Z6=r(8247),Y6=r.n(Z6),X6=r(4872).Buffer;const J6=new $s.ec("secp256k1"),Q6=r.g.crypto||r.g.msCrypto||{},e4=Q6.subtle||Q6.webkitSubtle,t4=X6.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),r4=X6.alloc(32,0);function n4(e,t){if(!e)throw new Error(t||"Assertion failed")}function i4(e){return!!function(e){return X6.isBuffer(e)&&32===e.length}(e)&&(e.compare(r4)>0&&e.compare(t4)<0)}function o4(e){const t=new Uint8Array(e);return"undefined"===typeof Q6.getRandomValues?X6.from(Y6().randomBytes(e)):(Q6.getRandomValues(t),X6.from(t))}async function a4(e){if(e4){const t=await e4.digest("SHA-512",e);return new Uint8Array(t)}const t=Y6().createHash("sha512").update(e).digest();return new Uint8Array(t)}function s4(e){return async function(t,r,n){if(e4){const i={name:"AES-CBC"},o=await e4.importKey("raw",r,i,!1,[e]),a={name:"AES-CBC",iv:t},s=await e4[e](a,o,n);return X6.from(new Uint8Array(s))}if("encrypt"===e){const e=Y6().createCipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return X6.concat([i,o])}if("decrypt"===e){const e=Y6().createDecipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return X6.concat([i,o])}throw new Error(`Unsupported operation: ${e}`)}}const c4=s4("encrypt"),l4=s4("decrypt");async function u4(e,t){if(e4){const r={name:"HMAC",hash:{name:"SHA-256"}},n=await e4.importKey("raw",new Uint8Array(e),r,!1,["sign","verify"]),i=await e4.sign("HMAC",n,t);return X6.from(new Uint8Array(i))}const r=Y6().createHmac("sha256",X6.from(e));r.update(t);return r.digest()}const d4=function(){let e=o4(32);for(;!i4(e);)e=o4(32);return e},h4=function(e){return n4(32===e.length,"Bad private key"),n4(i4(e),"Bad private key"),X6.from(J6.keyFromPrivate(e).getPublic("array"))},f4=async function(e,t){return n4(32===e.length,"Bad private key"),n4(i4(e),"Bad private key"),n4(t.length>0,"Message should not be empty"),n4(t.length<=32,"Message is too long"),X6.from(J6.sign(t,e,{canonical:!0}).toDER())},p4=async function(e,t){n4(X6.isBuffer(e),"Bad private key"),n4(X6.isBuffer(t),"Bad public key"),n4(32===e.length,"Bad private key"),n4(i4(e),"Bad private key"),n4(65===t.length||33===t.length,"Bad public key"),65===t.length&&n4(4===t[0],"Bad public key"),33===t.length&&n4(2===t[0]||3===t[0],"Bad public key");const r=J6.keyFromPrivate(e),n=J6.keyFromPublic(t),i=r.derive(n.getPublic());return X6.from(i.toArray())},m4=async function(e,t){n4(X6.isBuffer(e),"Bad private key"),n4(X6.isBuffer(t),"Bad public key"),n4(32===e.length,"Bad private key"),n4(i4(e),"Bad private key"),n4(65===t.length||33===t.length,"Bad public key"),65===t.length&&n4(4===t[0],"Bad public key"),33===t.length&&n4(2===t[0]||3===t[0],"Bad public key");const r=J6.keyFromPrivate(e),n=J6.keyFromPublic(t),i=r.derive(n.getPublic());return X6.from(i.toString(16,64),"hex")},g4=async function(e,t,r){let n=(r=r||{}).ephemPrivateKey||o4(32);for(;!i4(n);)n=r.ephemPrivateKey||o4(32);const i=h4(n),o=await p4(n,e),a=await a4(o),s=r.iv||o4(16),c=a.slice(0,32),l=a.slice(32),u=await c4(s,X6.from(c),t),d=X6.concat([s,i,u]);return{iv:s,ephemPublicKey:i,ciphertext:u,mac:await u4(X6.from(l),d)}},v4=async function(e,t,r){const n=null!==r&&void 0!==r&&r,i=n?m4:p4,o=await i(e,t.ephemPublicKey),a=await a4(o),s=a.slice(0,32),c=a.slice(32),l=X6.concat([t.iv,t.ephemPublicKey,t.ciphertext]),u=await async function(e,t,r){return function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n0||e._addEL.internal.length>0}function G4(e,t,r){e._addEL[t].push(r),function(e){if(!e._iL&&W4(e)){var t=function(t){e._addEL[t.type].forEach((function(r){var n=1e5,i=r.time-n;(t.time>=i||"server"===e.method.type)&&r.fn(t.data)}))},r=e.method.microSeconds();e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,r)})):(e._iL=!0,e.method.onMessage(e._state,t,r))}}(e)}function Z4(e,t,r){e._addEL[t]=e._addEL[t].filter((function(e){return e!==r})),function(e){if(e._iL&&!W4(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}function Y4(e){this.message=e}q4._pubkey=!0,q4.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return K4(this,"message",e)},postInternal:function(e){return K4(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};Z4(this,"message",this._onML),e&&"function"===typeof e?(this._onML=t,G4(this,"message",t)):this._onML=null},addEventListener:function(e,t){G4(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){Z4(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this;if(!this.closed){H4.delete(this),this.closed=!0;var t=this._prepP?this._prepP:X3;return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(Array.from(e._uMP))})).then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}},Y4.prototype=new Error,Y4.prototype.name="InvalidCharacterError";var X4="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Y4("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,i=0,o=0,a="";n=t.charAt(o++);~n&&(r=i%4?64*r+n:n,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function J4(e){this.message=e}J4.prototype=new Error,J4.prototype.name="InvalidTokenError";const Q4=function(e,t){if("string"!=typeof e)throw new J4("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(X4(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return X4(t)}}(e.split(".")[r]))}catch(e){throw new J4("Invalid token specified: "+e.message)}},e8={MAINNET:"mainnet",TESTNET:"testnet",CYAN:"cyan",AQUA:"aqua",CELESTE:"celeste"},t8={SAPPHIRE_DEVNET:"sapphire_devnet",SAPPHIRE_TESTNET:"sapphire_testnet",SAPPHIRE_MAINNET:"sapphire_mainnet"},r8=[e8.AQUA,e8.CELESTE,e8.CYAN],n8={[e8.AQUA]:{migrationCompleted:!1,networkIdentifier:"aqua",networkMigratedTo:t8.SAPPHIRE_MAINNET},[e8.CELESTE]:{migrationCompleted:!1,networkIdentifier:"celeste",networkMigratedTo:t8.SAPPHIRE_MAINNET},[e8.CYAN]:{migrationCompleted:!1,networkIdentifier:"cyan",networkMigratedTo:t8.SAPPHIRE_MAINNET},[e8.MAINNET]:{migrationCompleted:!1,networkIdentifier:"mainnet",networkMigratedTo:t8.SAPPHIRE_MAINNET},[e8.TESTNET]:{migrationCompleted:!0,networkIdentifier:"teal",networkMigratedTo:t8.SAPPHIRE_TESTNET}},i8={[e8.MAINNET]:"https://signer.tor.us",[e8.TESTNET]:"https://signer.tor.us",[e8.CYAN]:"https://signer-polygon.tor.us",[e8.AQUA]:"https://signer-polygon.tor.us",[e8.CELESTE]:"https://signer-polygon.tor.us"},o8={[t8.SAPPHIRE_DEVNET]:["https://sapphire-dev-2-1.authnetwork.dev","https://sapphire-dev-2-2.authnetwork.dev","https://sapphire-dev-2-3.authnetwork.dev","https://sapphire-dev-2-4.authnetwork.dev","https://sapphire-dev-2-5.authnetwork.dev"],[t8.SAPPHIRE_TESTNET]:["https://sapphire-dev-2-1.authnetwork.dev","https://sapphire-dev-2-2.authnetwork.dev","https://sapphire-dev-2-3.authnetwork.dev","https://sapphire-dev-2-4.authnetwork.dev","https://sapphire-dev-2-5.authnetwork.dev"],[t8.SAPPHIRE_MAINNET]:["https://sapphire-1.auth.network","https://sapphire-2.auth.network","https://sapphire-3.auth.network","https://sapphire-4.auth.network","https://sapphire-5.auth.network"]},a8=(e,t)=>{const r=o8[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=n8[t];return r.map((e=>n&&n.networkIdentifier?`${e}/sss/${n.networkIdentifier}/jrpc`:`${e}/sss/jrpc`))},s8=(e,t)=>{const r=o8[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=n8[t];return r.map((e=>n&&n.networkIdentifier?`${e}/rss/${n.networkIdentifier}`:`${e}/rss`))},c8=(e,t)=>{const r=o8[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=n8[t];return r.map((e=>n&&n.networkIdentifier?`${e}/tss/${n.networkIdentifier}`:`${e}/tss`))},l8={currentEpoch:"19",torusNodeEndpoints:["https://torus-19.torusnode.com/jrpc","https://torus-node.ens.domains/jrpc","https://torus-node.matic.network/jrpc","https://torus.zilliqa.network/jrpc","https://torus-mainnet.cosmos.network/jrpc","https://torus2.etherscan.com/jrpc","https://torus-node-v2.skalelabs.com/jrpc","https://torus-node.binancex.dev/jrpc","https://torusnode.ont.io/jrpc"],torusIndexes:[1,2,3,4,5,6,7,8,9],torusNodePub:[{X:"bbe83c64177c3775550e6ba6ac2bc059f6847d644c9e4894e42c60d7974d8c2b",Y:"82b49a7caf70def38cdad2740af45c1e4f969650105c5019a29bb18b21a9acb5"},{X:"c208cac4ef9a47d386097a9c915b28e9cb89213abee8d26a17198ee261201b0d",Y:"c7db2fe4631109f40833de9dc78d07e35706549ee48fa557b33e4e75e1047873"},{X:"ca1766bb426d4ca5582818a0c5439d560ea64f5baa060793ab29dd3d0ceacfe",Y:"d46c1d08c40e1306e1bca328c2287b8268166b11a1ba4b8442ea2ad0c5e32152"},{X:"c3934dd2f6f4b3d2e1e398cc501e143c1e1a381b52feb6d1525af34d16253768",Y:"71f5141a5035799099f5ea3e241e66946bc55dc857ac3bd7d6fcdb8dcd3eeeef"},{X:"22e66f1929631d00bf026227581597f085fd94fd952fc0dca9f0833398b5c064",Y:"6088b3912e10a1e9d50355a609c10db7d188f16a2e2fd7357e51bf4f6a74f0a1"},{X:"9dc9fa410f3ce9eb70df70cdea00a49f2c4cc7a31c08c0dab5f863ed35ff5139",Y:"627a291cb87a75c61da3f65d6818e1e05e360217179817ed27e8c73bca7ec122"},{X:"118b9fc07e97b096d899b9f6658463ce6a8caa64038e37fc969df4e6023dd8c6",Y:"baf9fa4e51770f4796ea165dd03a769b8606681a38954a0a92c4cbffd6609ce9"},{X:"8a6d8b925da15a273dec3d8f8395ec35cd6878f274b2b180e4e106999db64043",Y:"96f67f870c157743da0b1eb84d89bf30500d74dc84c11f501ee1cb013acc8c46"},{X:"39cecb62e863729f572f7dfc46c24867981bf04bb405fed0df39e33984bfade5",Y:"61c2364434012e68a2be2e9952805037e52629d7762fafc8e10e9fb5bad8f790"}]},u8={[t8.SAPPHIRE_MAINNET]:[{X:"e0925898fee0e9e941fdca7ee88deec99939ae9407e923535c4d4a3a3ff8b052",Y:"54b9fea924e3f3e40791f9987f4234ae4222412d65b74068032fa5d8b63375c1"},{X:"9124cf1e280aab32ba50dffd2de81cecabc13d82d2c1fe9de82f3b3523f9b637",Y:"fca939a1ceb42ce745c55b21ef094f543b457630cb63a94ef4f1afeee2b1f107"},{X:"555f681a63d469cc6c3a58a97e29ebd277425f0e6159708e7c7bf05f18f89476",Y:"606f2bcc0884fa5b64366fc3e8362e4939841b56acd60d5f4553cf36b891ac4e"},{X:"2b5f58d8e340f1ab922e89b3a69a68930edfe51364644a456335e179bc130128",Y:"4b4daa05939426e3cbe7d08f0e773d2bf36f64c00d04620ee6df2a7af4d2247"},{X:"3ecbb6a68afe72cf34ec6c0a12b5cb78a0d2e83ba402983b6adbc5f36219861a",Y:"dc1031c5cc8f0472bd521a62a64ebca9e163902c247bf05937daf4ae835091e4"}],[t8.SAPPHIRE_TESTNET]:[{X:"f74389b0a4c8d10d2a687ae575f69b20f412d41ab7f1fe6b358aa14871327247",Y:"54e3a73098ed9bced3ef8821736e9794f9264a1420c0c7ad15d2fa617ba35ef7"},{X:"bc38813a6873e526087918507c78fc3a61624670ee851ecfb4f3bef55d027b5a",Y:"ac4b21229f662a0aefdfdac21cf17c3261a392c74a8790db218b34e3e4c1d56a"},{X:"b56541684ea5fa40c8337b7688d502f0e9e092098962ad344c34e94f06d293fb",Y:"759a998cef79d389082f9a75061a29190eec0cac99b8c25ddcf6b58569dad55c"},{X:"7bcb058d4c6ffc6ba4bfdfd93d141af35a66338a62c7c27cdad2ae3f8289b767",Y:"336ab1935e41ed4719e162587f0ab55518db4207a1eb36cc72303f1b86689d2b"},{X:"bf12a136ef94399ea098f926f04e26a4ec4ac70f69cce274e8893704c4951773",Y:"bdd44828020f52ce510e026338216ada184a6867eb4e19fb4c2d495d4a7e15e4"}],[t8.SAPPHIRE_DEVNET]:[{X:"f74389b0a4c8d10d2a687ae575f69b20f412d41ab7f1fe6b358aa14871327247",Y:"54e3a73098ed9bced3ef8821736e9794f9264a1420c0c7ad15d2fa617ba35ef7"},{X:"bc38813a6873e526087918507c78fc3a61624670ee851ecfb4f3bef55d027b5a",Y:"ac4b21229f662a0aefdfdac21cf17c3261a392c74a8790db218b34e3e4c1d56a"},{X:"b56541684ea5fa40c8337b7688d502f0e9e092098962ad344c34e94f06d293fb",Y:"759a998cef79d389082f9a75061a29190eec0cac99b8c25ddcf6b58569dad55c"},{X:"7bcb058d4c6ffc6ba4bfdfd93d141af35a66338a62c7c27cdad2ae3f8289b767",Y:"336ab1935e41ed4719e162587f0ab55518db4207a1eb36cc72303f1b86689d2b"},{X:"bf12a136ef94399ea098f926f04e26a4ec4ac70f69cce274e8893704c4951773",Y:"bdd44828020f52ce510e026338216ada184a6867eb4e19fb4c2d495d4a7e15e4"}]},d8=(e,t)=>({currentEpoch:"1",torusNodeEndpoints:a8(e,t),torusNodeSSSEndpoints:a8(e,t),torusNodeRSSEndpoints:s8(e,t),torusNodeTSSEndpoints:c8(e,t),torusIndexes:[1,2,3,4,5],torusNodePub:u8[e]});const h8=j3().getLogger("fnd");class f8{constructor(){let{network:e=t8.SAPPHIRE_MAINNET,fndServerEndpoint:t,enableLogging:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P3(this,"fndServerEndpoint","https://fnd.tor.us/node-details"),P3(this,"_currentEpoch","1"),P3(this,"_torusNodeEndpoints",[]),P3(this,"_torusNodeRSSEndpoints",[]),P3(this,"_torusNodeSSSEndpoints",[]),P3(this,"_torusNodeTSSEndpoints",[]),P3(this,"_torusNodePub",[]),P3(this,"_torusIndexes",[]),P3(this,"updated",void 0),P3(this,"network",void 0),this.network=e,this.updated=!1,t&&(this.fndServerEndpoint=t),r?h8.enableAll():h8.disableAll()}get _nodeDetails(){return{currentEpoch:this._currentEpoch,torusNodeEndpoints:this._torusNodeEndpoints,torusNodeSSSEndpoints:this._torusNodeSSSEndpoints,torusNodeRSSEndpoints:this._torusNodeRSSEndpoints,torusNodeTSSEndpoints:this._torusNodeTSSEndpoints,torusNodePub:this._torusNodePub,torusIndexes:this._torusIndexes,updated:this.updated}}async getNodeDetails(e){let{verifier:t,verifierId:r}=e;try{if(this.updated&&!r8.includes(this.network))return this._nodeDetails;try{const{nodeDetails:e}=await q3(`${this.fndServerEndpoint}?network=${this.network}&verifier=${t}&verifierId=${r}`);return this.setNodeDetails(e),this._nodeDetails}catch(n){h8.error("Failed to fetch node details from server, using local.",n)}const e=function(e){if(Object.values(t8).includes(e))return d8(e);if(Object.values(e8).includes(e)){const t=n8[e];if(t.migrationCompleted)return d8(t.networkMigratedTo,e);if(e===e8.MAINNET)return l8}}(this.network);if(!e)throw new Error("Failed to fetch node details");return this.setNodeDetails(e),this._nodeDetails}catch(n){throw h8.error("Failed to fetch node details",n),n}}setNodeDetails(e){const{currentEpoch:t,torusNodeEndpoints:r,torusNodeSSSEndpoints:n,torusNodeRSSEndpoints:i,torusNodeTSSEndpoints:o,torusNodePub:a,torusIndexes:s}=e;this._torusNodeEndpoints=r,this._torusNodeSSSEndpoints=n||[],this._torusNodeRSSEndpoints=i||[],this._torusNodeTSSEndpoints=o||[],this._torusNodePub=a,this._torusIndexes=s,this._currentEpoch=t,this.updated=!0}}var p8=r(4203),m8=r.n(p8),g8=r(4872).Buffer;const v8="GetPubKeyOrKeyAssign",y8="CommitmentRequest",b8="ImportShare",w8="GetShareOrKeyAssign",x8="https://metadata.tor.us",_8=(e,t)=>{let r=e;if("number"===typeof r&&(r=Array.from({length:r},((e,t)=>t))),t>r.length||t<=0)return[];if(t===r.length)return[r];if(1===t)return r.reduce(((e,t)=>[...e,[t]]),[]);const n=[];let i=[];for(let o=0;o<=r.length-t+1;o+=1){i=_8(r.slice(o+1),t-1);for(let e=0;e{const r={};for(let n=0;n=8?o+=t[a].toUpperCase():o+=t[a];return o}function O8(e,t){const r=e.keyFromPrivate(t.toString("hex",64),"hex").getPublic().encode("hex",!1).slice(2);A8.info(r,"public key");return T8(`0x${P8(g8.from(r,"hex")).slice(26)}`)}function C8(e,t,r){const n=e.keyFromPublic({x:t.toString("hex",64),y:r.toString("hex",64)}),i=n.getPublic().encode("hex",!1).slice(2);A8.info(n.getPublic().encode("hex",!1),"public key");return T8(`0x${P8(g8.from(i,"hex")).slice(26)}`)}A8.disableAll();class j8{constructor(e,t,r){P3(this,"x",void 0),P3(this,"y",void 0),P3(this,"ecCurve",void 0),this.x=new(m8())(e,"hex"),this.y=new(m8())(t,"hex"),this.ecCurve=r}encode(e){switch(e){case"arr":return g8.concat([g8.from("0x04","hex"),g8.from(this.x.toString("hex"),"hex"),g8.from(this.y.toString("hex"),"hex")]);case"elliptic-compressed":{const e=this.ecCurve.keyFromPublic({x:this.x.toString("hex",64),y:this.y.toString("hex",64)},"hex");return g8.from(e.getPublic(!0,"hex"))}default:throw new Error("encoding doesn't exist in Point")}}}class R8{constructor(e,t){P3(this,"share",void 0),P3(this,"shareIndex",void 0),this.share=new(m8())(t,"hex"),this.shareIndex=new(m8())(e,"hex")}static fromJSON(e){const{share:t,shareIndex:r}=e;return new R8(r,t)}toJSON(){return{share:this.share.toString("hex"),shareIndex:this.shareIndex.toString("hex")}}}class I8{constructor(e,t){P3(this,"polynomial",void 0),P3(this,"ecCurve",void 0),this.polynomial=e,this.ecCurve=t}getThreshold(){return this.polynomial.length}polyEval(e){const t=new(m8())(e,"hex");let r=new(m8())(t),n=new(m8())(0);n=n.add(this.polynomial[0]);for(let i=1;i"number"===typeof e?new(m8())(e):e instanceof m8()?e:"string"===typeof e?new(m8())(e,"hex"):e)),r={};for(let n=0;ne.eq(t)))?M8(e):t}const L8=e=>Array.from({length:e},(()=>new(m8())(0))),N8=(e,t,r)=>{let n=L8(r.length);const i=((e,t,r)=>{let n=new(m8())(1);const i=r[t].x;for(let o=r.length-1;o>=0;o-=1)if(t!==o){let t=new(m8())(i);t=t.sub(r[o].x),t=t.umod(e.curve.n),n=n.mul(t),n=n.umod(e.curve.n)}return n})(e,t,r);if(0===i.cmp(new(m8())(0)))throw new Error("Denominator for interpolationPoly is 0");n[0]=i.invm(e.curve.n);for(let o=0;o=0;a-=1){i[a+1]=i[a+1].add(n[a]).umod(e.curve.n);let t=new(m8())(r[o].x);t=t.mul(n[a]).umod(e.curve.n),i[a]=i[a].sub(t).umod(e.curve.n)}n=i}}return n},D8=(e,t)=>{const r=(e=>{const t=[...e];return t.sort(((e,t)=>e.x.cmp(t.x))),t})(t),n=L8(r.length);for(let i=0;it)throw new Error("deterministicShares in generateRandomPolynomial should be less or equal than degree to ensure an element of randomness");const o={};n.forEach((t=>{o[t.shareIndex.toString("hex",64)]=new j8(t.shareIndex,t.share,e)}));for(let a=0;a2&&void 0!==arguments[2]?arguments[2]:{};try{const n=await K3(`${e}/get`,t,r,{useAPIKey:!0});return n&&n.message?new(m8())(n.message,16):new(m8())(0)}catch(n){return j3().error("get metadata error",n),new(m8())(0)}}async function V8(e,t,r,n,i,o){let a;const s=arguments.length>6&&void 0!==arguments[6]&&arguments[6]?"getNonce":"getOrSetNonce";return a=o?function(e,t,r,n){const i=e.keyFromPrivate(n.toString("hex",64)),o={data:r,timestamp:new(m8())(~~(t+Date.now()/1e3)).toString(16)},a=i.sign(P8(g8.from(w4()(o),"utf8")).slice(2));return{pub_key_X:i.getPublic().getX().toString("hex",64),pub_key_Y:i.getPublic().getY().toString("hex",64),set_data:o,signature:g8.from(a.r.toString(16,64)+a.s.toString(16,64)+new(m8())("").toString(16,2),"hex").toString("base64")}}(t,r,s,o):{pub_key_X:n,pub_key_Y:i,set_data:{data:s}},K3(`${e}/get_or_set_nonce`,a,void 0,{useAPIKey:!0})}async function q8(e,t,r,n,i,o){return V8(e,t,r,n,i,o,!0)}const K8={logRequestTracing:!1};class W8 extends Error{constructor(e){let{errors:t,responses:r,predicate:n}=e;super("Unable to resolve enough promises."),P3(this,"errors",void 0),P3(this,"responses",void 0),P3(this,"predicate",void 0),this.errors=t,this.responses=r,this.predicate=n}get message(){return`${super.message}. ${this.errors.length} errors: ${this.errors.map((e=>e.message||e)).join(", ")} and ${this.responses.length} responses: ${JSON.stringify(this.responses)}`}toString(){return this.message}}const G8=(e,t)=>new Promise(((r,n)=>{let i=0;const o={resolved:!1},a=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);let c;return e.forEach(((l,u)=>l.then((e=>{s[u]=e})).catch((e=>{a[u]=e})).finally((()=>{if(!o.resolved)return t(s.slice(0),o).then((e=>{o.resolved=!0,r(e)})).catch((e=>{c=e})).finally((()=>{if(i+=1,i===e.length){const e=Object.values(s.reduce(((e,t)=>{if(t){var r;const{id:i,error:o}=t;(null===o||void 0===o||null===(r=o.data)||void 0===r?void 0:r.length)>0&&(o.data.startsWith("Error occurred while verifying params")?e[i]=(n=o.data).charAt(0).toUpperCase()+n.slice(1):e[i]=o.data)}var n;return e}),{}));if(e.length>0){const t=e.length>1?`\n${e.map((e=>`\u2022 ${e}`)).join("\n")}`:e[0];n(new Error(t))}else{var t;n(new W8({errors:a,responses:s,predicate:(null===(t=c)||void 0===t?void 0:t.message)||c}))}}}))}))))}));function Z8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y8(e){for(var t=1;t0){if(h.length!==c.length)throw new Error("Invalid imported shares length");w=!0}for(let x=0;x{A8.error("commitment error",e)}));p.push(e)}return G8(p,(e=>{const t=e.filter((e=>!(!e||"object"!==typeof e)&&!e.error));if(h.length>0&&t.length===c.length)return Promise.resolve(e);if(0===h.length&&t.length>=1+~~(3*c.length/4)){if(t.find((e=>{var t;return!(!e||"1"!==(null===(t=e.result)||void 0===t?void 0:t.nodeindex))})))return Promise.resolve(e)}return Promise.reject(new Error(`invalid ${JSON.stringify(e)}`))})).then((e=>{const t=[],r=[];for(let i=0;iA8.error("share req",e)));t.push(n)}else{const e=K3(c[i],W3(w8,{encrypted:"yes",use_temp:!0,item:[Y8(Y8({},u),{},{idtoken:d,nodesignatures:r,verifieridentifier:l},f)],one_key_flow:!0}),null,{logTracingHeader:K8.logRequestTracing}).catch((e=>A8.error("share req",e)));t.push(e)}}let n;return G8(t,(async(e,t)=>{const r=e.filter((e=>!(!e||"object"!==typeof e)&&!e.error)),o=e.map((e=>{if(e&&e.result&&e.result.keys[0].public_key){if(!n&&!u.extended_verifier_id){var t,r;(null===(t=e.result.keys[0].nonce_data)||void 0===t||null===(r=t.pubNonce)||void 0===r?void 0:r.x)&&(n=e.result.keys[0].nonce_data)}return e.result.keys[0].public_key}})),s=S8(o,1+~~(c.length/2));if(!s)throw new Error("invalid result from nodes, threshold number of public key results are not matching");if(!n&&!u.extended_verifier_id&&!n8[a])throw new Error(`invalid metadata result from nodes, nonce metadata is empty for verifier: ${l} and verifierId: ${u.verifier_id}`);const d=h.length>0?c.length:1+~~(c.length/2);if(r.length>=d&&s&&(n||u.extended_verifier_id||n8[a])){const e=[],o=[],a=[],l=[],d=[];for(let t=0;t0)u&&null!==(f=u[0])&&void 0!==f&&f.ephemPublicKey?o.push($8(u[0],c[0],m).catch((e=>A8.debug("session sig decryption",e)))):o.push(Promise.resolve(g8.from(c[0],"hex")));else o.push(Promise.resolve(void 0));if((null===i||void 0===i?void 0:i.length)>0)s&&null!==(p=s[0])&&void 0!==p&&p.ephemPublicKey?a.push($8(s[0],i[0],m).catch((e=>A8.debug("session token sig decryption",e)))):a.push(Promise.resolve(g8.from(i[0],"base64")));else a.push(Promise.resolve(void 0));if((null===d||void 0===d?void 0:d.length)>0){const t=n.result.keys[0];l.push(new(m8())(t.node_index)),t.share_metadata&&e.push($8(t.share_metadata,g8.from(t.share,"base64").toString("binary").padStart(64,"0"),m).catch((e=>A8.debug("share decryption",e))))}else l.push(void 0),e.push(Promise.resolve(void 0))}const h=await Promise.all(e.concat(o).concat(a)),g=h.slice(0,e.length),v=h.slice(e.length,e.length+o.length),y=h.slice(e.length+o.length,h.length),b=v.filter((e=>!!e)),w=1+~~(c.length/2);if(!u.extended_verifier_id&&b.length!!e));if(!u.extended_verifier_id&&x.length{e?d.push({token:e.toString("base64"),signature:v[t].toString("hex"),node_pubx:r[t].result.node_pubx,node_puby:r[t].result.node_puby}):d.push(void 0)})),t.resolved)return;const _=g.reduce(((e,t,r)=>(t&&e.push({index:l[r],value:new(m8())(t)}),e)),[]),S=_8(_.length,1+~~(c.length/2));let k=null;for(let t=0;te.includes(r))),n=r.map((e=>e.value)),o=r.map((e=>e.index)),a=z8(i,n,o);if(!a)continue;const c=h4(g8.from(a.toString(16,64),"hex")).toString("hex"),l=c.slice(2,66),u=c.slice(66);if(0===new(m8())(l,16).cmp(new(m8())(s.X,16))&&0===new(m8())(u,16).cmp(new(m8())(s.Y,16))){k=a;break}}if(void 0===k||null===k)throw new Error("could not derive private key");return{privateKey:k,sessionTokenData:d,thresholdNonceData:n,nodeIndexes:l}}throw new Error("Invalid")}))})).then((async e=>{var o;const{privateKey:s,sessionTokenData:c,thresholdNonceData:l,nodeIndexes:d}=e;let h=l;if(!s)throw new Error("Invalid private key returned");const f=s,p=h4(g8.from(f.toString(16,64),"hex")).toString("hex"),g=p.slice(2,66),v=p.slice(66);let y,b,w=new(m8())(null!==(o=h)&&void 0!==o&&o.nonce?h.nonce.padStart(64,"0"):"0","hex"),x="v1";if(u.extended_verifier_id)x="v2",y=i.keyFromPublic({x:g,y:v}).getPublic();else if(n8[a])if(n)h=await q8(t,i,r,g,v,f),w=new(m8())(h.nonce||"0",16),b={X:h.pubNonce.x,Y:h.pubNonce.y},x=h.typeOfUser,"v2"===x&&(y=i.keyFromPublic({x:g,y:v}).getPublic().add(i.keyFromPublic({x:h.pubNonce.x,y:h.pubNonce.y}).getPublic()));else{x="v1",w=await H8(t,{pub_key_X:g,pub_key_Y:v});const e=f.add(w).umod(i.curve.n);y=i.keyFromPrivate(e.toString(16,64),"hex").getPublic()}else x="v2",y=i.keyFromPublic({x:g,y:v}).getPublic().add(i.keyFromPublic({x:h.pubNonce.x,y:h.pubNonce.y}).getPublic()),b={X:h.pubNonce.x,Y:h.pubNonce.y};const _=O8(i,f),S=C8(i,y.getX(),y.getY());A8.debug("> torus.js/retrieveShares",{finalEvmAddress:S});let k="";if("v1"===x||"v2"===x&&w.gt(new(m8())(0))){k=f.add(w).umod(i.curve.n).toString("hex",64)}let E=!1;return"v1"===x?E=null:"v2"===x&&(E=w.eq(new(m8())("0"))),{finalKeyData:{evmAddress:S,X:y.getX().toString(16,64),Y:y.getY().toString(16,64),privKey:k},oAuthKeyData:{evmAddress:_,X:g,Y:v,privKey:f.toString("hex",64).padStart(64,"0")},sessionData:{sessionTokenData:c,sessionAuthKey:m.toString("hex").padStart(64,"0")},metadata:{pubNonce:b,nonce:w,typeOfUser:x,upgraded:E},nodesData:{nodeIndexes:d.map((e=>e.toNumber()))}}}))}const J8=async(e,t,r)=>{const n=e.map((e=>K3(e,W3("VerifierLookupRequest",{verifier:t,verifier_id:r.toString()})).catch((e=>A8.error("lookup request failed",e)))));return G8(n,(t=>{const r=t.filter((e=>e)),n=S8(r.map((e=>e&&e.error)),1+~~(e.length/2)),i=S8(r.map((e=>e&&e.result)),1+~~(e.length/2));return i||n?Promise.resolve({keyResult:i,errorResult:n}):Promise.reject(new Error(`invalid results ${JSON.stringify(t)}`))}))},Q8=async e=>{let t,r,{endpoints:n,torusNodePubs:i,lastPoint:o,firstPoint:a,verifier:s,verifierId:c,signerHost:l,network:u,clientId:d}=e;if(void 0===o?(t=Math.floor(Math.random()*n.length),A8.info("keyassign",t,n[t]),r=t):t=o%n.length,t===a)throw new Error("Looped through all");void 0!==a&&(r=a);const h=W3("KeyAssign",{verifier:s,verifier_id:c.toString()});try{const e=await K3(l,h,{headers:{pubKeyX:i[t].X,pubKeyY:i[t].Y,network:u,clientId:d}},{useAPIKey:!0});return await K3(n[t],Y8(Y8({},h),e),{headers:{"Content-Type":"application/json; charset=utf-8"}})}catch(f){A8.error(f.status,f.message,f,"key assign error");const e=["Timed out","Failed to fetch","cancelled","NetworkError when attempting to fetch resource.","TypeError: Failed to fetch","TypeError: cancelled","TypeError: NetworkError when attempting to fetch resource."];if(502===(null===f||void 0===f?void 0:f.status)||504===(null===f||void 0===f?void 0:f.status)||401===(null===f||void 0===f?void 0:f.status)||e.includes(f.message)||e.some((e=>f.message.includes(e)))||f.message&&f.message.includes("reason: getaddrinfo EAI_AGAIN"))return Q8({endpoints:n,torusNodePubs:i,lastPoint:t+1,firstPoint:r,verifier:s,verifierId:c,signerHost:l,network:u,clientId:d});throw new Error(`Sorry, the Torus Network that powers Web3Auth is currently very busy.\n We will generate your key in time. Pls try again later. \n\n ${f.message||""}`)}};function e9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t9(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0]?(A8.enableAll(),K8.logRequestTracing=!0):A8.disableAll()}static setAPIKey(e){F3(e)}static setEmbedHost(e){U3(e)}static isGetOrSetNonceError(e){return e instanceof E8}static getPostboxKey(e){return"v1"===e.metadata.typeOfUser&&e.finalKeyData.privKey||e.oAuthKeyData.privKey}async retrieveShares(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.isLegacyNetwork?this.legacyRetrieveShares(e,t,r,n,i,o):X8({legacyMetadataHost:this.legacyMetadataHost,serverTimeOffset:this.serverTimeOffset,enableOneKey:this.enableOneKey,ecCurve:this.ec,allowHost:this.allowHost,network:this.network,clientId:this.clientId,endpoints:e,verifier:r,verifierParams:n,idToken:i,importedShares:[],extraParams:o})}async getPublicAddress(e,t,r){let{verifier:n,verifierId:i,extendedVerifierId:o}=r;return this.isLegacyNetwork?this.getLegacyPublicAddress(e,t,{verifier:n,verifierId:i},this.enableOneKey):this.getNewPublicAddress(e,{verifier:n,verifierId:i,extendedVerifierId:o},this.enableOneKey)}async importPrivateKey(e,t,r,n,i,o,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(this.isLegacyNetwork)throw new Error("This function is not supported on legacy networks");if(e.length!==t.length)throw new Error("length of endpoints array must be same as length of nodeIndexes array");const c=1+~~(e.length/2)-1,l=[],u=this.ec.keyFromPrivate(a.padStart(64,"0"),"hex");for(const x of t)l.push(new(m8())(x));const d=u.getPrivate(),h=new(m8())(d4()),f=d.sub(h).umod(this.ec.curve.n),p=this.ec.keyFromPrivate(f.toString("hex").padStart(64,"0")).getPublic(),m=B8(this.ec,c,f).generateShares(l),g=this.generateNonceMetadataParams("getOrSetNonce",f,h),v=g8.from(w4()(g.set_data),"utf8").toString("base64"),y=[],b=[];for(let x=0;x5&&void 0!==arguments[5]?arguments[5]:{};const a=[];await q3(this.allowHost,{headers:{verifier:r,verifierId:n.verifier_id,network:this.network,clientId:this.clientId}},{useAPIKey:!0});const s=d4(),c=h4(s).toString("hex"),l=c.slice(2,66),u=c.slice(66),d=P8(g8.from(i,"utf8"));for(let h=0;h{A8.error("commitment",e)}));a.push(t)}return G8(a,(t=>{const r=t.filter((e=>!(!e||"object"!==typeof e)&&!e.error));return r.length>=3*~~(e.length/4)+1?Promise.resolve(t):Promise.reject(new Error(`invalid ${JSON.stringify(t)}`))})).then((a=>{const c=[],l=[];for(let e=0;eA8.error("share req",e)));c.push(a)}return G8(c,(async(r,n)=>{const i=r.filter((e=>e)),o=S8(r.map((e=>e&&e.result&&e.result.keys[0].PublicKey)),1+~~(e.length/2));if(i.length>=1+~~(e.length/2)&&o){const i=[],l=[];for(let e=0;e0){n.result.keys.sort(((e,t)=>new(m8())(e.Index,16).cmp(new(m8())(t.Index,16))));const e=n.result.keys[0];if(e.Metadata){const t={ephemPublicKey:g8.from(e.Metadata.ephemPublicKey,"hex"),iv:g8.from(e.Metadata.iv,"hex"),mac:g8.from(e.Metadata.mac,"hex")};i.push(v4(s,t9(t9({},t),{},{ciphertext:g8.from(g8.from(e.Share,"base64").toString("binary").padStart(64,"0"),"hex")})).catch((e=>A8.debug("share decryption",e))))}else i.push(Promise.resolve(g8.from(e.Share.padStart(64,"0"),"hex")))}else i.push(Promise.resolve(void 0));l.push(new(m8())(t[e],16))}const u=await Promise.all(i);if(n.resolved)return;const d=u.reduce(((e,t,r)=>(t&&e.push({index:l[r],value:new(m8())(t)}),e)),[]),h=_8(d.length,1+~~(e.length/2));let f=null;for(let e=0;et.includes(r))),n=r.map((e=>e.value)),i=r.map((e=>e.index)),a=z8(this.ec,n,i);if(!a)continue;const s=h4(g8.from(a.toString(16,64),"hex")).toString("hex"),c=s.slice(2,66),l=s.slice(66);if(0===new(m8())(c,16).cmp(new(m8())(o.X,16))&&0===new(m8())(l,16).cmp(new(m8())(o.Y,16))){f=a;break}}if(void 0===f||null===f)throw new Error("could not derive private key");return f}throw new Error("invalid")}))})).then((async e=>{const t=e;if(!t)throw new Error("Invalid private key returned");const r=h4(g8.from(t.toString(16,64),"hex")).toString("hex"),n=r.slice(2,66),i=r.slice(66);let o,a,s,c="v1";if(this.enableOneKey){const e=await q8(this.legacyMetadataHost,this.ec,this.serverTimeOffset,n,i,t);o=new(m8())(e.nonce||"0",16),c=e.typeOfUser,"v2"===e.typeOfUser&&(a=this.ec.keyFromPublic({x:n,y:i}).getPublic().add(this.ec.keyFromPublic({x:e.pubNonce.x,y:e.pubNonce.y}).getPublic()),s={X:e.pubNonce.x,Y:e.pubNonce.y})}else{o=await H8(this.legacyMetadataHost,{pub_key_X:n,pub_key_Y:i});const e=t.add(o).umod(this.ec.curve.n);a=this.ec.keyFromPrivate(e.toString("hex"),"hex").getPublic()}const l=O8(this.ec,t),u=C8(this.ec,a.getX(),a.getY());A8.debug("> torus.js/retrieveShares",{finalEvmAddress:u});let d="";if("v1"===c||"v2"===c&&o.gt(new(m8())(0))){d=t.add(o).umod(this.ec.curve.n).toString("hex",64).padStart(64,"0")}let h=!1;return"v1"===c?h=null:"v2"===c&&(h=o.eq(new(m8())("0"))),{finalKeyData:{evmAddress:u,X:a?a.getX().toString(16,64):"",Y:a?a.getY().toString(16,64):"",privKey:d},oAuthKeyData:{evmAddress:l,X:n,Y:i,privKey:t.toString("hex",64).padStart(64,"0")},sessionData:{sessionTokenData:[],sessionAuthKey:""},metadata:{pubNonce:s,nonce:o,typeOfUser:c,upgraded:h},nodesData:{nodeIndexes:[]}}}))}async getLegacyPublicAddress(e,t,r,n){let i,{verifier:o,verifierId:a}=r;A8.debug("> torus.js/getPublicAddress",{endpoints:e,torusNodePubs:t,verifier:o,verifierId:a});let s=!1;const{keyResult:c,errorResult:l}=await J8(e,o,a)||{};if(l&&JSON.stringify(l).includes("Verifier not supported"))throw new Error("Verifier not supported. Check if you: \n\n 1. Are on the right network (Torus testnet/mainnet) \n\n 2. Have setup a verifier on dashboard.web3auth.io?");if(l&&JSON.stringify(l).includes("Verifier + VerifierID has not yet been assigned")){await Q8({endpoints:e,torusNodePubs:t,lastPoint:void 0,firstPoint:void 0,verifier:o,verifierId:a,signerHost:this.signerHost,network:this.network,clientId:this.clientId});const r=await((e,t,r,n)=>new Promise(((i,o)=>{setTimeout((()=>{J8(e,t,r).then(i).catch(o)}),n)})))(e,o,a,1e3);i=null===r||void 0===r?void 0:r.keyResult,s=!0}else{if(!c)throw new Error(`node results do not match at first lookup ${JSON.stringify(c||{})}, ${JSON.stringify(l||{})}`);i=c}if(A8.debug("> torus.js/getPublicAddress",{finalKeyResult:i,isNewKey:s}),i)return this.formatLegacyPublicKeyData({finalKeyResult:i,isNewKey:s,enableOneKey:n});throw new Error(`node results do not match at final lookup ${JSON.stringify(c||{})}, ${JSON.stringify(l||{})}`)}generateNonceMetadataParams(e,t,r){const n=this.ec.keyFromPrivate(t.toString("hex",64)),i={operation:e,timestamp:new(m8())(~~(this.serverTimeOffset+Date.now()/1e3)).toString(16)};r&&(i.data=r.toString("hex",64));const o=n.sign(P8(g8.from(w4()(i),"utf8")).slice(2));return{pub_key_X:n.getPublic().getX().toString("hex",64),pub_key_Y:n.getPublic().getY().toString("hex",64),set_data:i,signature:g8.from(o.r.toString(16,64)+o.s.toString(16,64)+new(m8())("").toString(16,2),"hex").toString("base64")}}async getNewPublicAddress(e,t,r){let{verifier:n,verifierId:i,extendedVerifierId:o}=t;A8.debug("> torus.js/getPublicAddress",{endpoints:e,verifier:n,verifierId:i});const a=await(async e=>{const{endpoints:t,network:r,verifier:n,verifierId:i,extendedVerifierId:o}=e,a=t.map((e=>K3(e,W3(v8,{verifier:n,verifier_id:i.toString(),extended_verifier_id:o,one_key_flow:!0,fetch_node_index:!0}),null,{logTracingHeader:K8.logRequestTracing}).catch((e=>A8.error(`${v8} request failed`,e)))));let s;const c=[],l=await G8(a,(e=>{const a=e.filter((e=>{if(e&&!e.error){var t,r,n;if(!s)(null===(t=e.result)||void 0===t||null===(r=t.keys[0].nonce_data)||void 0===r||null===(n=r.pubNonce)||void 0===n?void 0:n.x)&&(s=e.result.keys[0].nonce_data);return e}return!1})),l=S8(a.map((e=>e&&e.error)),1+~~(t.length/2)),u=S8(a.map((e=>e&&(e=>{const t={keys:[],is_new_key:e.is_new_key};return e&&e.keys&&e.keys.length>0&&(t.keys=e.keys.map((e=>({pub_key_X:e.pub_key_X,pub_key_Y:e.pub_key_Y,address:e.address})))),t})(e.result))),1+~~(t.length/2));return u&&(s||o||n8[r])||l?(u&&e.forEach((e=>{if(e&&e.result){const t=parseInt(e.result.node_index);t&&c.push(t)}})),Promise.resolve({keyResult:u,nodeIndexes:c,errorResult:l,nonceResult:s})):Promise.reject(new Error(`invalid public key result: ${JSON.stringify(e)} and nonce result:${JSON.stringify(s||{})} for verifier: ${n}, verifierId: ${i} and extendedVerifierId: ${o} `))}));return l})({endpoints:e,network:this.network,verifier:n,verifierId:i,extendedVerifierId:o}),{errorResult:s,keyResult:c,nodeIndexes:l=[]}=a,{nonceResult:u}=a;if(s&&JSON.stringify(s).toLowerCase().includes("verifier not supported"))throw new Error("Verifier not supported. Check if you: \n\n 1. Are on the right network (Torus testnet/mainnet) \n\n 2. Have setup a verifier on dashboard.web3auth.io?");if(s)throw new Error(`node results do not match at first lookup ${JSON.stringify(c||{})}, ${JSON.stringify(s||{})}`);if(A8.debug("> torus.js/getPublicAddress",{keyResult:c}),null===c||void 0===c||!c.keys)throw new Error(`node results do not match at final lookup ${JSON.stringify(c||{})}, ${JSON.stringify(s||{})}`);if(!u&&!o&&!n8[this.network])throw new E8("metadata nonce is missing in share response");const{pub_key_X:d,pub_key_Y:h}=c.keys[0];let f;const p=new(m8())((null===u||void 0===u?void 0:u.nonce)||"0",16);let m,g;if(o)g=this.ec.keyFromPublic({x:d,y:h}).getPublic(),m=g;else{if(n8[this.network])return this.formatLegacyPublicKeyData({isNewKey:c.is_new_key,enableOneKey:r,finalKeyResult:{keys:c.keys}});{const e=u;m=this.ec.keyFromPublic({x:d,y:h}).getPublic(),g=this.ec.keyFromPublic({x:d,y:h}).getPublic().add(this.ec.keyFromPublic({x:e.pubNonce.x,y:e.pubNonce.y}).getPublic()),f={X:e.pubNonce.x,Y:e.pubNonce.y}}}if(!m)throw new Error("Unable to derive oAuthPubKey");const v=m.getX().toString(16,64),y=m.getY().toString(16,64),b=C8(this.ec,m.getX(),m.getY());if(A8.debug("> torus.js/getPublicAddress, oAuthKeyData",{X:v,Y:y,oAuthAddress:b,nonce:null===p||void 0===p?void 0:p.toString(16),pubNonce:f}),!g)throw new Error("Unable to derive finalPubKey");const w=g?g.getX().toString(16,64):"",x=g?g.getY().toString(16,64):"";return{oAuthKeyData:{evmAddress:b,X:v,Y:y},finalKeyData:{evmAddress:g?C8(this.ec,g.getX(),g.getY()):"",X:w,Y:x},metadata:{pubNonce:f,nonce:p,upgraded:(null===u||void 0===u?void 0:u.upgraded)||!1,typeOfUser:"v2"},nodesData:{nodeIndexes:l}}}async formatLegacyPublicKeyData(e){var t,r;const{finalKeyResult:n,enableOneKey:i,isNewKey:o}=e,{pub_key_X:a,pub_key_Y:s}=n.keys[0];let c,l,u,d,h;const f=this.ec.keyFromPublic({x:a,y:s}).getPublic();if(i){try{c=await V8(this.legacyMetadataHost,this.ec,this.serverTimeOffset,a,s,void 0,!o),l=new(m8())(c.nonce||"0",16),d=c.typeOfUser}catch{throw new E8}if("v1"===c.typeOfUser)u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPrivate(l.toString(16)).getPublic());else{if("v2"!==c.typeOfUser)throw new Error("getOrSetNonce should always return typeOfUser.");u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPublic({x:c.pubNonce.x,y:c.pubNonce.y}).getPublic()),h={X:c.pubNonce.x,Y:c.pubNonce.y}}}else d="v1",l=await H8(this.legacyMetadataHost,{pub_key_X:a,pub_key_Y:s}),u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPrivate(l.toString(16)).getPublic());if(!f)throw new Error("Unable to derive oAuthPubKey");const p=f.getX().toString(16,64),m=f.getY().toString(16,64),g=C8(this.ec,f.getX(),f.getY());if(A8.debug("> torus.js/getPublicAddress, oAuthKeyData",{X:p,Y:m,oAuthAddress:g,nonce:null===(t=l)||void 0===t?void 0:t.toString(16),pubNonce:h}),"v2"===d&&!u)throw new Error("Unable to derive finalPubKey");const v=u?u.getX().toString(16,64):"",y=u?u.getY().toString(16,64):"";return{oAuthKeyData:{evmAddress:g,X:p,Y:m},finalKeyData:{evmAddress:u?C8(this.ec,u.getX(),u.getY()):"",X:v,Y:y},metadata:{pubNonce:h,nonce:l,upgraded:(null===(r=c)||void 0===r?void 0:r.upgraded)||!1,typeOfUser:d},nodesData:{nodeIndexes:[]}}}}var n9=r(5505),i9=r(4872).Buffer;function o9(e){return i9.from((0,x4.wn)(e))}const a9=new $s.ec("secp256k1");function s9(e){return{iv:i9.from(e.iv,"hex"),ephemPublicKey:i9.from(e.ephemPublicKey,"hex"),ciphertext:i9.from(e.ciphertext,"hex"),mac:i9.from(e.mac,"hex")}}function c9(e){return{iv:i9.from(e.iv).toString("hex"),ephemPublicKey:i9.from(e.ephemPublicKey).toString("hex"),ciphertext:i9.from(e.ciphertext).toString("hex"),mac:i9.from(e.mac).toString("hex")}}async function l9(e,t){const r=JSON.stringify(t),n=i9.from(r,"utf-8"),i=c9(await g4(h4(i9.from(e,"hex")),n));return JSON.stringify(i)}async function u9(e,t){const r=s9(JSON.parse(t)),n=a9.keyFromPrivate(e),i=(await v4(i9.from(n.getPrivate().toString("hex",64),"hex"),r)).toString("utf-8");return JSON.parse(i)}var d9=r(4872).Buffer;const h9="google",f9="facebook",p9="reddit",m9="discord",g9="twitch",v9="apple",y9="github",b9="linkedin",w9="twitter",x9="weibo",_9="line",S9="email_password",k9="passwordless",E9="jwt",A9="webauthn",P9="single_id_verifier",T9={POPUP:"popup",REDIRECT:"redirect"},O9="localStorage",C9="server",j9="triggerLogin",R9="triggerAggregateLogin",I9="triggerHybridAggregateLogin",M9="fetchNodeDetails",L9="pubAddressLookup",N9="fetchShares";var D9=j3().getLogger("customauth");const z9={[v9]:"apple",[y9]:"github",[b9]:"linkedin",[w9]:"twitter",[x9]:"weibo",[_9]:"line",[S9]:"Username-Password-Authentication",[k9]:"email"},B9=e=>e.href.endsWith("/")?e.href:`${e.href}/`,U9={webWorkerSupport:!1};function F9(e,t){return t?e:e.toLowerCase()}const $9=function(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{name:i,sub:o}=e;if(r)return F9(e[r],n);switch(t){case k9:case S9:return F9(i,n);case x9:case y9:case w9:case v9:case b9:case _9:case E9:return F9(o,n);default:throw new Error("Invalid login type")}},H9=(e,t)=>{const r=e.split("&").reduce(((e,t)=>{const[r,n]=t.split("=");return e[r]=n,e}),{});D9.info(r,t);let n={},i="";return Object.keys(r).length>0&&r.state?(n=JSON.parse(atob(decodeURIComponent(decodeURIComponent(r.state))))||{},i=r.error_description||r.error||i):Object.keys(t).length>0&&t.state&&(n=JSON.parse(atob(decodeURIComponent(decodeURIComponent(t.state))))||{},t.error&&(i=t.error)),{error:i,instanceParameters:n,hashParameters:r}};function V9(e){const{baseURL:t,query:r,hash:n}=e,i=new URL(t);if(r&&Object.keys(r).forEach((e=>{i.searchParams.append(e,r[e])})),n){const e=new URL(V9({baseURL:t,query:n})).searchParams.toString();i.hash=e}return i.toString()}const q9=e=>{try{return new URL(decodeURIComponent(e))}catch(t){throw new Error(`${(null===t||void 0===t?void 0:t.message)||""}, Note: Your jwt domain: (i.e ${e}) must have http:// or https:// prefix`)}};function K9(e){return e!==f9&&e!==_9||!function(){const e=Y3().getParser(navigator.userAgent).getPlatform();return e.type===Y3().PLATFORMS_MAP.tablet||e.type===Y3().PLATFORMS_MAP.mobile}()?1e4:6e4}class W9 extends QH.EventEmitter{constructor(e){let{url:t,target:r,features:n,timeout:i=3e4}=e;super(),P3(this,"url",void 0),P3(this,"target",void 0),P3(this,"features",void 0),P3(this,"window",void 0),P3(this,"windowTimer",void 0),P3(this,"iClosedWindow",void 0),P3(this,"timeout",void 0),this.url=t,this.target=r||"_blank",this.features=n||function(){const e=void 0!==window.screenLeft?window.screenLeft:window.screenX,t=void 0!==window.screenTop?window.screenTop:window.screenY,r=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,n=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,i=Math.abs((r-1200)/2/1+e);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=700,width=1200,top=${Math.abs((n-700)/2/1+t)},left=${i}`}(),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this.timeout=i,this._setupTimer()}_setupTimer(){this.window&&(this.windowTimer=Number(setInterval((()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),setTimeout((()=>{this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0}),this.timeout)),void 0===this.window&&clearInterval(this.windowTimer)}),500)))}open(){var e;return this.window=window.open(this.url.href,this.target,this.features),null!==(e=this.window)&&void 0!==e&&e.focus&&this.window.focus(),Promise.resolve()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(e){e?window.location.replace(this.url.href):window.location.href=this.url.href}}const G9=["access_token","id_token"];function Z9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y9(e){for(var t=1;t{let n;const i=async t=>{try{const{error:i,data:o}=t,a=o||{},{instanceParams:s,hashParams:{access_token:c,id_token:l}}=a,u=G3(a.hashParams,G9);if(i)return D9.error(t),void r(new Error(`Error: ${i}. Info: ${JSON.stringify(t.data||{})}`));t.data&&s.verifier===this.verifier&&(D9.info(t.data),!this.redirectToOpener&&n&&await n.postMessage({success:!0}),e(Y9(Y9({accessToken:c,idToken:l||""},u),{},{state:s})))}catch(i){D9.error(i),r(i)}};if(this.redirectToOpener){const e=async r=>{if(!r.data)return;const n=r.data;n.channel===`redirect_channel_${this.nonce}`&&(window.removeEventListener("message",e),i(n),t.close())};window.addEventListener("message",e)}else n=new q4(`redirect_channel_${this.nonce}`,U9),n.addEventListener("message",(async e=>{await i(e),n.close(),t.close()}));t.open(),t.once("close",(()=>{n&&n.close(),r(new Error("user closed popup"))}))})):(t.redirect(e.locationReplaceOnRedirect),null)}}class J9 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token"),P3(this,"SCOPE","identify email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://discord.com/api/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://discord.com/api/users/@me",{headers:{Authorization:`Bearer ${t}`}}),{id:n,avatar:i,email:o="",username:a="",discriminator:s=""}=r;return{profileImage:null===i?`https://cdn.discordapp.com/embed/avatars/${Number(s)%5}.png`:`https://cdn.discordapp.com/avatars/${n}/${i}.png?size=2048`,name:`${a}#${s}`,email:o,verifierId:n,verifier:this.verifier,typeOfLogin:this.typeOfLogin}}}class Q9 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token"),P3(this,"SCOPE","public_profile email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://www.facebook.com/v15.0/dialog/oauth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://graph.facebook.com/me?fields=name,email,picture.type(large)",{headers:{Authorization:`Bearer ${t}`}}),{name:n="",id:i,picture:o,email:a=""}=r;return{email:a,name:n,profileImage:o.data.url||"",verifier:this.verifier,verifierId:i,typeOfLogin:this.typeOfLogin}}}class e7 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token id_token"),P3(this,"SCOPE","profile email openid"),P3(this,"PROMPT","consent select_account"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://accounts.google.com/o/oauth2/v2/auth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,nonce:this.nonce},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://www.googleapis.com/userinfo/v2/me",{headers:{Authorization:`Bearer ${t}`}}),{picture:n="",email:i="",name:o=""}=r;return{email:i,name:o,profileImage:n,verifier:this.verifier,verifierId:i.toLowerCase(),typeOfLogin:this.typeOfLogin}}}let t7=class extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"SCOPE","openid profile email"),P3(this,"RESPONSE_TYPE","token id_token"),P3(this,"PROMPT","login"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const{domain:e}=this.jwtParams,t=q9(e);t.pathname+=t.pathname.endsWith("/")?"authorize":"/authorize";const r=JSON.parse(JSON.stringify(this.jwtParams));delete r.domain;const n=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,connection:z9[this.typeOfLogin],nonce:this.nonce},r);Object.keys(n).forEach((e=>{n[e]&&t.searchParams.append(e,n[e])})),this.finalURL=t}async getUserInfo(e){const{idToken:t,accessToken:r}=e,{domain:n,verifierIdField:i,isVerifierIdCaseSensitive:o,user_info_route:a="userinfo"}=this.jwtParams;if(r)try{const e=new URL(n),t=await q3(`${B9(e)}${a}`,{headers:{Authorization:`Bearer ${r}`}}),{picture:s,name:c,email:l}=t;return{email:l,name:c,profileImage:s,verifierId:$9(t,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}catch(s){j3().warn(s,"Unable to get userinfo from endpoint")}if(t){const e=Q4(t),{name:r,email:n,picture:a}=e;return{profileImage:a,name:r,email:n,verifierId:$9(e,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}throw new Error("Access/id token not available")}};class r7 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=JSON.parse(JSON.stringify(this.jwtParams));delete e.domain;const t=O3()({state:this.state,client_id:this.clientId,nonce:this.nonce},e);this.finalURL=new URL(V9({baseURL:this.redirect_uri,query:null,hash:t}))}async getUserInfo(e){const{idToken:t,accessToken:r}=e,{domain:n,verifierIdField:i,isVerifierIdCaseSensitive:o,user_info_route:a="userinfo"}=this.jwtParams;if(r)try{const e=new URL(n),t=await q3(`${B9(e)}${a}`,{headers:{Authorization:`Bearer ${r}`}}),{picture:s,name:c,email:l}=t;return{email:l,name:c,profileImage:s,verifierId:$9(t,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}catch(s){j3().warn(s,"Unable to get userinfo from endpoint")}if(t){const e=Q4(t),{name:r,email:n,picture:a}=e;return{profileImage:a,name:r,email:n,verifierId:$9(e,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}throw new Error("Access/id token not available")}handleLoginWindow(e){const{id_token:t,access_token:r}=this.jwtParams,n=new W9({url:this.finalURL,features:e.popupFeatures});return this.uxMode!==T9.REDIRECT?Promise.resolve({state:{},idToken:t,accessToken:r}):(n.redirect(e.locationReplaceOnRedirect),null)}}const n7=["access_token","id_token"];function i7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o7(e){for(var t=1;t{if(this.redirectToOpener)return void t(new Error("Cannot use redirect to opener for passwordless"));const r=r=>{try{const{error:n,data:i}=r,o=i||{},{instanceParams:a,hashParams:{access_token:s,id_token:c}}=o,l=G3(o.hashParams,n7);if(n)return D9.error(r.error),void t(new Error(n));r.data&&a.verifier===this.verifier&&(D9.info(r.data),e(o7(o7({accessToken:s,idToken:c||""},l),{},{state:a})))}catch(n){D9.error(n),t(n)}},n=new q4(`redirect_channel_${this.nonce}`,U9);n.addEventListener("message",(async e=>{r(e),n.close()}));try{const{connection:e="email",login_hint:r}=this.jwtParams,n=O3()({client_id:this.clientId,connection:e,email:"email"===e?r:void 0,phone_number:"sms"===e?r:void 0,send:"link",authParams:{scope:this.SCOPE,state:this.state,response_type:this.RESPONSE_TYPE,redirect_uri:this.redirect_uri,nonce:this.nonce,prompt:this.PROMPT}},{authParams:this.jwtParams});K3(this.finalURL.href,JSON.parse(JSON.stringify(n))).then((e=>{D9.info("posted",e)})).catch((e=>{D9.error(e),t(e)}))}catch(i){D9.error(i),t(i)}}))}}class s7 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token"),P3(this,"SCOPE","identity"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://www.reddit.com/api/v1/authorize"+(window.innerWidth<600?".compact":"")),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://oauth.reddit.com/api/v1/me",{headers:{Authorization:`Bearer ${t}`}}),{icon_img:n="",name:i=""}=r;return{email:"",name:i,profileImage:n.split("?").length>0?n.split("?")[0]:n,verifier:this.verifier,verifierId:i.toLowerCase(),typeOfLogin:this.typeOfLogin}}}class c7 extends X9{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"RESPONSE_TYPE","token"),P3(this,"SCOPE","user:read:email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://id.twitch.tv/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O3()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE,force_verify:!0},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await q3("https://api.twitch.tv/helix/users",{headers:{Authorization:`Bearer ${t}`,"Client-ID":this.clientId}}),[{profile_image_url:n="",display_name:i="",email:o="",id:a}]=r.data||[];return{profileImage:n,name:i,email:o,verifierId:a,verifier:this.verifier,typeOfLogin:this.typeOfLogin}}}const l7="https://api.webauthn.openlogin.com";class u7 extends X9{constructor(e,t,r,n,i,o,a,s,c){super(e,t,r,n,i,o,a,s),P3(this,"clientId",void 0),P3(this,"verifier",void 0),P3(this,"redirect_uri",void 0),P3(this,"typeOfLogin",void 0),P3(this,"uxMode",void 0),P3(this,"redirectToOpener",void 0),P3(this,"jwtParams",void 0),P3(this,"customState",void 0),P3(this,"registerOnly",void 0),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.registerOnly=c,this.setFinalUrl()}setFinalUrl(){const{webauthnURL:e}=this.customState||{},t=e?new URL(e):new URL("https://webauthn.openlogin.com"),r=JSON.parse(JSON.stringify(this.jwtParams||{})),n=O3()({register_only:!!this.registerOnly,state:this.state,client_id:this.clientId,redirect_uri:this.redirect_uri},r);Object.keys(n).forEach((e=>{n[e]&&t.searchParams.append(e,n[e])})),this.finalURL=t}async getUserInfo(e){const{idToken:t,ref:r,extraParamsPassed:n,extraParams:i}=e;let o,a,s,c,l,u,d,h,f;if("true"===n){D9.debug("extraParamsPassed is true, using extraParams passed through hashParams");try{({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=JSON.parse(atob(i)))}catch(p){D9.warn("unable to parse extraParams",p),({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=await q3(`${l7}/signature/fetch/${t}`))}}else D9.debug("extraParamsPassed is false, using extraParams passed through bridge server"),({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=await q3(`${l7}/signature/fetch/${t}`));if(a!==t)throw new Error("idtoken should be equal to signature");return{email:"",name:"WebAuthn Login",profileImage:"",verifier:this.verifier,verifierId:o,typeOfLogin:this.typeOfLogin,ref:r,registerOnly:this.registerOnly,extraVerifierParams:{signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}}}}const d7=e=>{let{clientId:t,redirect_uri:r,typeOfLogin:n,verifier:i,jwtParams:o,redirectToOpener:a,uxMode:s,customState:c,registerOnly:l}=e;if(!i||!n||!t)throw new Error("Invalid params");const{domain:u,login_hint:d,id_token:h,access_token:f}=o||{};switch(n){case h9:return new e7(t,i,r,n,s,a,o,c);case f9:return new Q9(t,i,r,n,s,a,o,c);case g9:return new c7(t,i,r,n,s,a,o,c);case p9:return new s7(t,i,r,n,s,a,o,c);case m9:return new J9(t,i,r,n,s,a,o,c);case k9:if(!u||!d)throw new Error("Invalid params");return new a7(t,i,r,n,s,a,o,c);case v9:case y9:case b9:case w9:case x9:case _9:case S9:case E9:if(h||f)return new r7(t,i,r,n,s,a,o,c);if(!u)throw new Error("Invalid params");return new t7(t,i,r,n,s,a,o,c);case A9:return new u7(t,i,r,n,s,a,o,c,l);default:throw new Error("Invalid login type")}};class h7{constructor(e){P3(this,"sentry",null),this.sentry=e}startTransaction(e){if(this.sentry)return this.sentry.startTransaction(e)}finishTransaction(e){e&&e.finish()}}class f7{constructor(e){P3(this,"currentStorageMethod",O9),P3(this,"isInitialized",!1),P3(this,"storageServerUrl","https://broadcast-server.tor.us"),this.storageServerUrl=e}init(){const e=function(){var e;const t=Y3().parse(navigator.userAgent);D9.info(JSON.stringify(t),"current browser info");let r=!0;return null!==(e=navigator)&&void 0!==e&&e.brave&&(r=!1),t.engine.name!==Y3().ENGINE_MAP.WebKit&&t.engine.name!==Y3().ENGINE_MAP.Gecko||(r=!1),r}(),t=function(e){let t;try{t=window[e];const r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(r){return r&&(22===r.code||1014===r.code||"QuotaExceededError"===r.name||"NS_ERROR_DOM_QUOTA_REACHED"===r.name)&&t&&0!==t.length}}(O9);this.currentStorageMethod=e&&t?O9:C9,this.isInitialized=!0}async storeLoginDetails(e,t){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===C9){const r=o9(d9.from(t,"utf8")),n=r.toString("hex"),i=h4(r).toString("hex"),o=await l9(n,e),a=(await f4(r,o9(d9.from(o,"utf8")))).toString("hex");await K3(`${this.storageServerUrl}/store/set`,{key:i,data:o,signature:a})}else window.localStorage.setItem(`torus_login_${t}`,JSON.stringify(e))}async retrieveLoginDetails(e){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===C9){const t=o9(d9.from(e,"utf8")),n=t.toString("hex"),i=h4(t).toString("hex");try{const e=await q3(`${this.storageServerUrl}/store/get?key=${i}`);if(e.message){return await u9(n,e.message)}}catch(r){if(404!==r.status)throw r;D9.warn(r,"Session likely expired")}}const t=window.localStorage.getItem(`torus_login_${e}`);return JSON.parse(t||"{}")}clearLoginDetailsStorage(e){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");this.currentStorageMethod===O9&&window.localStorage.removeItem(`torus_login_${e}`)}clearOrphanedLoginDetails(){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===O9){Object.keys(window.localStorage).forEach((e=>{e.startsWith("torus_login_")&&window.localStorage.removeItem(e)}))}}}const p7=["access_token","id_token"],m7=["access_token","id_token"],g7=["access_token","id_token"],v7=["args","method"];function y7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b7(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(this.storageHelper.init(),t)this.isInitialized=!0;else{if(!e){if(!(await fetch(`${this.config.baseUrl}sw.js`,{cache:"reload"})).ok)throw new Error("Service worker is not being served. Please serve it");try{return await(n=this.config.baseUrl,new Promise(((e,t)=>{const r=`${n}sw.js`;"serviceWorker"in window.navigator?(0,n9.z)(r,{ready(){D9.info("App is being served from cache by a service worker.\n For more details, visit https://goo.gl/AFskqB"),e(void 0)},registered(){D9.info("Service worker has been registered."),e(void 0)},cached(){D9.info("Content has been cached for offline use."),e(void 0)},updatefound(){D9.info("New content is downloading.")},updated(){D9.info("New content is available; please refresh.")},offline(){D9.info("No internet connection found. App is running in offline mode."),t(new Error("App is offline"))},error(e){D9.error("Error during service worker registration:",e),t(e)}}):t(new Error("Service workers are not supported"))}))),void(this.isInitialized=!0)}catch(i){D9.warn(i)}}var n;if(!r)return(()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t?void 0:t.userAgent.toLowerCase().indexOf("firefox"))>-1||!1})()?void(this.isInitialized=!0):void await this.handlePrefetchRedirectUri();this.isInitialized=!0}}async triggerLogin(e){const{verifier:t,typeOfLogin:r,clientId:n,jwtParams:i,hash:o,queryParameters:a,customState:s,registerOnly:c}=e;if(D9.info("Verifier: ",t),!this.isInitialized)throw new Error("Not initialized yet");if(c&&r!==A9)throw new Error("registerOnly flag can only be passed for webauthn");const l=d7({typeOfLogin:r,clientId:n,verifier:t,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:i,uxMode:this.config.uxMode,customState:s,registerOnly:c});let u;if(o&&a){const{error:e,hashParameters:t,instanceParameters:r}=H9(o,a);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;u=b7(b7({accessToken:n,idToken:i},G3(t,p7)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===T9.REDIRECT&&await this.storageHelper.storeLoginDetails({method:j9,args:e},l.nonce),u=await l.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===T9.REDIRECT)return null;const d=await l.getUserInfo(u);if(c){const e=this.sentryHandler.startTransaction({name:M9}),r=await this.nodeDetailManager.getNodeDetails({verifier:t,verifierId:d.verifierId});this.sentryHandler.finishTransaction(e);const n=this.sentryHandler.startTransaction({name:L9}),i=await this.torus.getPublicAddress(r.torusNodeEndpoints,r.torusNodePub,{verifier:t,verifierId:d.verifierId});this.sentryHandler.finishTransaction(n);const o={userInfo:b7(b7({},d),u)};return b7(b7(b7({},o),i),{},{finalKeyData:b7(b7({},i.finalKeyData),{},{privKey:void 0}),oAuthKeyData:b7(b7({},i.finalKeyData),{},{privKey:void 0}),metadata:b7(b7({},i.metadata),{},{nonce:void 0}),sessionData:void 0})}return b7(b7({},await this.getTorusKey(t,d.verifierId,{verifier_id:d.verifierId},u.idToken||u.accessToken,d.extraVerifierParams)),{},{userInfo:b7(b7({},d),u)})}async triggerAggregateLogin(e){const{aggregateVerifierType:t,verifierIdentifier:r,subVerifierDetailsArray:n}=e;if(!this.isInitialized)throw new Error("Not initialized yet");if(!t||!r||!Array.isArray(n))throw new Error("Invalid params");if(t===P9&&1!==n.length)throw new Error("Single id verifier can only have one sub verifier");const i=[],o=[];for(const h of n){const{clientId:t,typeOfLogin:r,verifier:n,jwtParams:a,hash:s,queryParameters:c,customState:l}=h,u=d7({typeOfLogin:r,clientId:t,verifier:n,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:a,uxMode:this.config.uxMode,customState:l});let d;if(s&&c){const{error:e,hashParameters:t,instanceParameters:r}=H9(s,c);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;d=b7(b7({accessToken:n,idToken:i},G3(t,m7)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===T9.REDIRECT&&await this.storageHelper.storeLoginDetails({method:R9,args:e},u.nonce),d=await u.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===T9.REDIRECT)return null;i.push(u.getUserInfo(d)),o.push(d)}const a=(await Promise.all(i)).map((e=>b7(b7({},e),{},{aggregateVerifier:r}))),s={verify_params:[],sub_verifier_ids:[],verifier_id:""},c=[];let l="",u={};for(let h=0;hb7(b7({},e),o[t])))})}async triggerHybridAggregateLogin(e){const{singleLogin:t,aggregateLoginParams:r}=e;if(!this.isInitialized)throw new Error("Not initialized yet");if(!r.aggregateVerifierType||!r.verifierIdentifier||!Array.isArray(r.subVerifierDetailsArray))throw new Error("Invalid params");if(r.aggregateVerifierType===P9&&1!==r.subVerifierDetailsArray.length)throw new Error("Single id verifier can only have one sub verifier");const{typeOfLogin:n,clientId:i,verifier:o,jwtParams:a,hash:s,queryParameters:c,customState:l}=t,u=d7({typeOfLogin:n,clientId:i,verifier:o,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:a,uxMode:this.config.uxMode,customState:l});let d;if(s&&c){const{error:e,hashParameters:t,instanceParameters:r}=H9(s,c);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;d=b7(b7({accessToken:n,idToken:i},G3(t,g7)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===T9.REDIRECT&&await this.storageHelper.storeLoginDetails({method:I9,args:e},u.nonce),d=await u.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===T9.REDIRECT)return null;const h=await u.getUserInfo(d),f=this.getTorusKey(o,h.verifierId,{verifier_id:h.verifierId},d.idToken||d.accessToken,h.extraVerifierParams),{verifierIdentifier:p,subVerifierDetailsArray:m}=r,g={verify_params:[],sub_verifier_ids:[],verifier_id:""},v=[];let y="";for(let S=0;S0&&void 0!==arguments[0]?arguments[0]:{};await this.init({skipInit:!0});const r=new URL(window.location.href),n=r.hash.substring(1),i={};if(r.searchParams.forEach(((e,t)=>{i[t]=e})),e){const e=window.location.origin+window.location.pathname;window.history.replaceState(b7(b7({},window.history.state),{},{as:e,url:e}),"",e)}if(!n&&0===Object.keys(i).length)throw new Error("Unable to fetch result from OAuth login");const{error:o,instanceParameters:a,hashParameters:s}=H9(n,i),{instanceId:c}=a;D9.info(c,"instanceId");const l=await this.storageHelper.retrieveLoginDetails(c),{args:u,method:d}=l,h=G3(l,v7);if(D9.info(u,d),t&&this.storageHelper.clearLoginDetailsStorage(c),o)return{error:o,state:a||{},method:d,result:{},hashParameters:s,args:u};let f;try{if(d===j9){const e=u;e.hash=n,e.queryParameters=i,f=await this.triggerLogin(e)}else if(d===R9){const e=u;e.subVerifierDetailsArray.forEach((e=>{e.hash=n,e.queryParameters=i})),f=await this.triggerAggregateLogin(e)}else if(d===I9){const e=u;e.singleLogin.hash=n,e.singleLogin.queryParameters=i,f=await this.triggerHybridAggregateLogin(e)}}catch(Cle){return D9.error(Cle),b7({error:`Could not get result from torus nodes \n ${(null===Cle||void 0===Cle?void 0:Cle.message)||""}`,state:a||{},method:d,result:{},hashParameters:s,args:u},h)}return b7(f?{method:d,result:f,state:a||{},hashParameters:s,args:u}:{error:"Unsupported method type",state:a||{},method:d,result:{},hashParameters:s,args:u},h)}async handlePrefetchRedirectUri(){return document?new Promise(((e,t)=>{const r=document.createElement("link");r.href=this.config.redirect_uri,window.location.origin!==new URL(this.config.redirect_uri).origin&&(r.crossOrigin="anonymous"),r.type="text/html",r.rel="prefetch";const n=()=>{this.isInitialized=!0,e()};try{r.relList&&r.relList.supports&&r.relList.supports("prefetch")?(r.onload=n,r.onerror=()=>{t(new Error(`Please serve redirect.html present in serviceworker folder of this package on ${this.config.redirect_uri}`))},document.head.appendChild(r)):n()}catch(Cle){n()}})):Promise.resolve()}}const x7=(e,t,r)=>Promise.race([e(),new Promise(((e,n)=>setTimeout((()=>{n(new Error(r||"The operation has timed out"))}),t)))]),_7=async()=>x7((async()=>{const e=new w7({web3AuthClientId:"BBHmFdLXgGDzSiizRVMWtyL_7Dsoxu5B8zep2Pns8sGELslgXDbktJewVDVDDBlknEKkMCtzISLjJtxk60SK2-g",baseUrl:"https://umamiwallet.com/auth/v2/",redirectPathName:"redirect.html",redirectToOpener:!0,uxMode:"popup",network:"mainnet"});await e.init({skipSw:!0});const t=await e.triggerAggregateLogin({verifierIdentifier:"tezos-google",aggregateVerifierType:"single_id_verifier",subVerifierDetailsArray:[{clientId:"1070572364808-d31nlkneam5ee6dr0tu28fjjbsdkfta5.apps.googleusercontent.com",typeOfLogin:"google",verifier:"umami"}]});return{secretKey:vc(t.finalKeyData.privKey||t.oAuthKeyData.privKey,Ks[Fs.SPSK]),email:t.userInfo[0].email}}),6e4),S7=e=>{let t="Something went wrong";"object"===typeof e&&"message"in e?t=e.message:"string"===typeof e&&(t=e);let r="";return"object"===typeof e&&"stack"in e&&(r=e.stack),{timestamp:(new Date).toISOString(),description:t,stacktrace:r}},k7=()=>{const[e,t]=(0,n.useState)(!1),r=cN(),i=CR(),o=async(n,o)=>{if(!e){t(!0);try{return await n()}catch(a){const e=S7(a);throw r({description:e.description,status:"error",..."function"===typeof o?o(a):o}),i(Bd.actions.add(e)),a}finally{t(!1)}}};return{isLoading:e,handleAsyncAction:async(e,t)=>o(e,t).catch((()=>{})),handleAsyncActionUnsafe:o}},E7=({onAuth:e})=>{const{isLoading:t,handleAsyncAction:r}=k7();return(0,un.jsx)(S3,{width:"48px",background:"white",borderRadius:"full",_disabled:{bg:EP.gray[900]},"aria-label":"Google SSO","data-testid":"google-auth-button",icon:(0,un.jsx)(k3,{size:"24px"}),isLoading:t,onClick:async()=>r((async()=>{const{secretKey:t,email:r}=await _7();return e(t,r)}),{title:"Social login failed"}),size:"lg",variant:"outline"})},A7=({children:e,...t})=>(0,un.jsxs)(Qz,{color:EP.orange,fontSize:"12px",...t,children:[(0,un.jsx)(LA,{as:Rj,marginRight:"6px"}),e]}),P7=({inputName:e,label:t="Password",placeholder:r="Enter your password",required:i="Password is required",validate:o,...a})=>{const{register:s}=AB(),[c,l]=(0,n.useState)(!1);return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(FU,{children:t}),(0,un.jsxs)(KU,{marginTop:"12px",children:[(0,un.jsx)(ZU,{"aria-label":t,autoComplete:"off",placeholder:r,type:c?"text":"password",...s(e,{required:i,minLength:{value:i?8:0,message:"Your password must be at least 8 characters long"},validate:o}),...a}),(0,un.jsx)(QU,{children:(0,un.jsx)(Dn,{onClick:()=>l((e=>!e)),tabIndex:-1,variant:"unstyled",children:c?(0,un.jsx)(Nj,{"data-testid":"eye-slash-icon"}):(0,un.jsx)(Lj,{width:"16.5px","data-testid":"eye-icon"})})})]})]})},T7=({signer:e,onSubmit:t,isLoading:r,isDisabled:n,text:i})=>{const o=MU({mode:"onBlur",defaultValues:{password:""}}),{handleSubmit:a,formState:{errors:s,isValid:c}}=o,l=$2(),u=F2(),d=cN(),{isLoading:h,handleAsyncAction:f}=k7(),p=h||r,m=n||!c,g=async({password:r})=>f((async()=>{const n=await u(e,r);return t(await r2({type:"mnemonic",secretKey:n,network:l}))})),v=async({password:r})=>f((async()=>{const n=await u(e,r);return t(await r2({type:"secret_key",secretKey:n,network:l}))})),y=async()=>f((async()=>{const{secretKey:e}=await _7();t(await r2({type:"social",secretKey:e,network:l}))})),b=async()=>f((async()=>(d({description:"Please open the Tezos app on your Ledger and approve the operation",status:"info",duration:6e4,isClosable:!0}),t(await r2({type:"ledger",account:e,network:l})))));switch(e.type){case"secret_key":case"mnemonic":return(0,un.jsx)(pn,{width:"100%",children:(0,un.jsxs)(PB,{...o,children:[(0,un.jsxs)(Zz,{isInvalid:!!s.password,marginY:"16px",children:[(0,un.jsx)(P7,{"data-testid":"password",inputName:"password"}),s.password&&(0,un.jsx)(A7,{children:s.password.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"8px",isDisabled:m,isLoading:p,onClick:a("mnemonic"===e.type?g:v),size:"lg",type:"submit",children:i||"Submit Transaction"})]})});case"social":return(0,un.jsx)(Dn,{width:"100%",isDisabled:m,isLoading:p,onClick:y,size:"lg",children:i||"Sign with Google"});case"ledger":return(0,un.jsx)(Dn,{width:"100%",isDisabled:m,isLoading:p,onClick:b,size:"lg",children:i||"Sign with Ledger"})}},O7=({request:e,onSuccess:t})=>{const r=VH()(e.sourceAddress),n=cN();if(!r)return(0,un.jsx)("div",{children:'"unknown account"'});return(0,un.jsxs)(iz,{children:[(0,un.jsxs)(oz,{marginBottom:"10px",children:["Sign payload request from ",e.appMetadata.name]}),(0,un.jsx)(cz,{}),(0,un.jsx)(lz,{children:e.payload}),(0,un.jsx)(tB,{justifyContent:"center",display:"flex",children:(0,un.jsx)(T7,{onSubmit:async r=>{const i=await r.signer.sign(e.payload),o={type:IM.SignPayloadResponse,id:e.id,signingType:e.signingType,signature:i.prefixSig};await X7.respond(o),n({description:"Successfully submitted Beacon operation",status:"success"}),t()},signer:r})})]})},C7=e=>(0,un.jsx)(LA,{width:"14px",height:"14px",fill:"none",stroke:EP.gray[450],viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M13 1L7 7M13 1V4.375M13 1H9.625M12.25 7.375V10.6C12.25 11.4401 12.25 11.8601 12.0865 12.181C11.9427 12.4632 11.7132 12.6927 11.431 12.8365C11.1101 13 10.6901 13 9.85 13H3.4C2.55992 13 2.13988 13 1.81901 12.8365C1.53677 12.6927 1.3073 12.4632 1.16349 12.181C1 11.8601 1 11.4401 1 10.6V4.15C1 3.30992 1 2.88988 1.16349 2.56901C1.3073 2.28677 1.53677 2.0573 1.81901 1.91349C2.13988 1.75 2.55992 1.75 3.4 1.75H6.625",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),j7=({hash:e})=>{const t=`${$2().tzktExplorerUrl}/${e}`,{onClose:r}=(0,n.useContext)(mM),i=VT();return(0,un.jsxs)(iz,{paddingY:"20px",children:[(0,un.jsx)(cz,{}),(0,un.jsx)(oz,{textAlign:"center",children:(0,un.jsx)(kn,{children:"Operation Submitted"})}),(0,un.jsx)(lz,{children:(0,un.jsx)(dn,{justifyContent:"center",marginTop:"10px",children:(0,un.jsx)(sz,{color:"text.dark",textAlign:"center",size:"sm",children:"You can follow this operation's progress in the Operations section. It may take up to 30 seconds to appear."})})}),(0,un.jsxs)(tB,{justifyContent:"center",flexDirection:"column",width:"100%",children:[(0,un.jsx)(Dn,{width:"100%",onClick:()=>{r(),i("/operations")},size:"lg",children:"See all Operations"}),(0,un.jsx)(vO,{rel:"noopener noreferrer",target:"_blank",to:t,children:(0,un.jsx)(dn,{alignItems:"center",marginTop:"24px",children:(0,un.jsxs)(Dn,{variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"View in Tzkt"}),(0,un.jsx)(C7,{stroke:"currentcolor"})]})})})]})]})},R7=(e,t)=>{const{onClose:r}=(0,n.useContext)(mM),[i,o]=(0,n.useState)(null),a=$2(),{isLoading:s,handleAsyncAction:c}=k7(),{openWith:l}=(0,n.useContext)(mM),u=MU({mode:"onBlur",defaultValues:{signer:e.signer.address.pkh,sender:e.sender.address.pkh}});(0,n.useEffect)((()=>{c((async()=>{const t=await l2(e,a);o(t)}),(e=>(r(),{title:"Error",description:`Error while processing beacon request: ${e.message}`,status:"error"})))}),[a,e]);return{fee:i,form:u,isSigning:s,onSign:async r=>c((async()=>{const{opHash:n}=await z2(e,r);l((0,un.jsx)(j7,{hash:n})),t(n)}))}},I7=({mutezAmount:e})=>(0,un.jsxs)(dn,{alignItems:"center",height:"60px",padding:"15px",background:EP.gray[800],borderRadius:"4px",children:[(0,un.jsx)(gR,{marginRight:"12px"}),(0,un.jsx)(dn,{alignItems:"end",children:(0,un.jsx)(u3,{number:Z2(e)})})]}),M7=({fee:e})=>(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"sm",children:"Fee:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"fee",size:"sm",children:Z2(e)})]}),L7=ln(oz,{baseStyle:{padding:0,paddingBottom:"32px",textAlign:"center"}}),N7=({title:e="Send",subTitle:t="Send one or insert into batch"})=>(0,un.jsxs)(L7,{children:[(0,un.jsx)(kn,{size:"2xl",children:e}),(0,un.jsx)(sz,{marginTop:"10px",color:EP.gray[400],textAlign:"center",size:"sm",children:t}),(0,un.jsx)(cz,{})]});function D7(e){const{viewBox:t="0 0 24 24",d:r,displayName:i,defaultProps:o={}}=e,a=n.Children.toArray(e.path),s=g(((e,n)=>(0,un.jsx)(LA,{ref:n,viewBox:t,...o,...e,children:a.length?a:(0,un.jsx)("path",{fill:"currentColor",d:r})})));return s.displayName=i,s}var z7=D7({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});const B7=({onClick:e})=>(0,un.jsx)(S3,{...FP,"aria-label":"Back",icon:(0,un.jsx)(z7,{width:"24px",height:"20px"}),onClick:e,size:"sm",variant:"ghost"}),U7=(e,t)=>{let r;switch(e){case"implicit":r="batch"===t?"Submit":"Confirm";break;case"proposal":r="Propose"}switch(t){case"single":return`${r} Transaction`;case"batch":return`${r} Batch`}},F7=e=>{switch(e.type){case"ledger":case"social":return;case"mnemonic":case"secret_key":return"Enter your password to confirm this transaction."}},$7=({goBack:e,mode:t,operationsType:r,signer:n})=>(0,un.jsxs)(L7,{children:[e&&(0,un.jsx)(B7,{onClick:e}),(0,un.jsx)(kn,{size:"2xl",children:U7(r,t)}),(0,un.jsx)(sz,{marginTop:"10px",color:EP.gray[400],textAlign:"center",size:"sm",children:F7(n)}),(0,un.jsx)(cz,{})]}),H7=({operation:e,onBeaconSuccess:t})=>{const{amount:r,contract:n,entrypoint:i,args:o}=e.operations[0],{isSigning:a,form:s,onSign:c,fee:l}=R7(e,t);return l?(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{mode:"single",operationsType:e.type,signer:e.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(I7,{mutezAmount:r}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,un.jsx)(M7,{fee:l})}),(0,un.jsx)(FU,{marginTop:"24px",children:"From "}),(0,un.jsx)(h3,{address:e.sender.address}),(0,un.jsx)(FU,{marginTop:"24px",children:"To "}),(0,un.jsx)(h3,{address:n}),(0,un.jsx)(FU,{marginTop:"24px",children:"Parameter"}),(0,un.jsx)(Nz,{allowToggle:!0,children:(0,un.jsxs)(Dz,{background:EP.gray[800],border:"none",borderRadius:"8px",children:[(0,un.jsxs)(zz,{children:[(0,un.jsx)(pn,{flex:"1",textAlign:"left",children:"JSON"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(UU,{value:{entrypoint:i,values:o}})})]})})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isLoading:a,onSubmit:c,signer:e.signer,text:U7(e.type,"single")})})]})})}):null},V7=({operation:e,onBeaconSuccess:t})=>{const{recipient:r}=e.operations[0],{isSigning:n,form:i,onSign:o,fee:a}=R7(e,t);return a?(0,un.jsx)(PB,{...i,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{mode:"single",operationsType:e.type,signer:e.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:e.signer.address}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(M7,{fee:a})})}),(0,un.jsx)(FU,{children:"To"}),(0,un.jsx)(h3,{address:r})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isLoading:n,onSubmit:o,signer:e.signer,text:U7(e.type,"single")})})]})})}):null},q7=({operation:e,onBeaconSuccess:t})=>{const{amount:r,recipient:n}=e.operations[0],{isSigning:i,form:o,onSign:a,fee:s}=R7(e,t);return s?(0,un.jsx)(PB,{...o,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{mode:"single",operationsType:e.type,signer:e.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(I7,{mutezAmount:r}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,un.jsx)(M7,{fee:s})}),(0,un.jsx)(FU,{marginTop:"24px",children:"From "}),(0,un.jsx)(h3,{address:e.sender.address}),(0,un.jsx)(FU,{marginTop:"24px",children:"To "}),(0,un.jsx)(h3,{address:n})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isLoading:i,onSubmit:a,signer:e.signer,text:U7(e.type,"single")})})]})})}):null},K7=({operation:e,onBeaconSuccess:t})=>{const{isSigning:r,form:n,onSign:i,fee:o}=R7(e,t);return o?(0,un.jsx)(PB,{...n,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{mode:"single",operationsType:e.type,signer:e.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:e.signer.address}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",paddingX:"4px",children:(0,un.jsx)(M7,{fee:o})})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isLoading:r,onSubmit:i,signer:e.signer,text:U7(e.type,"single")})})]})})}):null},W7=({operation:e,onBeaconSuccess:t})=>{switch(e.operations[0].type){case"tez":return(0,un.jsx)(q7,{onBeaconSuccess:t,operation:e});case"contract_call":return(0,un.jsx)(H7,{onBeaconSuccess:t,operation:e});case"delegation":return(0,un.jsx)(V7,{onBeaconSuccess:t,operation:e});case"undelegation":return(0,un.jsx)(K7,{onBeaconSuccess:t,operation:e});case"fa1.2":case"fa2":case"contract_origination":throw new Error("Unsupported operation type")}},G7=({message:e,onClose:t})=>{const r=VH(),n=cN();switch(e.type){case IM.PermissionRequest:return(0,un.jsx)(_3,{onSuccess:t,request:e});case IM.SignPayloadRequest:return(0,un.jsx)(O7,{onSuccess:t,request:e});case IM.OperationRequest:{const o=r(e.sourceAddress);if(!o)return(0,un.jsxs)(pn,{children:["Account not in this wallet ",e.sourceAddress]});try{const r=Z7(e,o),i=async r=>{const i={type:IM.OperationResponse,id:e.id,transactionHash:r};try{await X7.respond(i)}catch(o){console.warn("Failed to parse Beacon request",o),n({description:`Failed to confirm Beacon operation: ${o.message}`})}finally{t()}};return(0,un.jsx)(W7,{onBeaconSuccess:i,operation:r})}catch(i){return(0,un.jsxs)(pn,{children:["Error handling operation request: ",i.message]})}}default:return(0,un.jsxs)("div",{children:["Unsupported request: ",e.type]})}},Z7=({operationDetails:e},t)=>{if(0===e.length)throw new Error("Empty operation details!");if(e.length>1)throw new Error("Batch operation is not supported");const r=e[0],n=((e,t)=>{switch(e.kind){case NM.TRANSACTION:{const{destination:t,amount:r,parameters:n}=e;return Wu(t)&&n?{type:"contract_call",amount:r,contract:Zu(t),entrypoint:n.entrypoint,args:n.value}:{type:"tez",amount:r,recipient:Yu(e.destination)}}case NM.DELEGATION:{const{delegate:r}=e;return r?{type:"delegation",sender:t.address,recipient:Yu(r)}:{type:"undelegation",sender:t.address}}default:return null}})(e[0],t);if(!n)throw new Error(`Unsupported operation: ${r.kind}`);return{type:"implicit",operations:[n],sender:t,signer:t}},Y7=Hu.object({id:Hu.string(),type:Hu.string(),name:Hu.string(),publicKey:Hu.string(),version:Hu.string(),icon:Hu.string().optional(),relayServer:Hu.string().optional()}).parse,X7=new sN({name:"Umami",iconUrl:"",appUrl:"https://umamiwallet.com/"}),J7="beaconPeers",Q7=()=>{const e=(0,Fn.useQueryClient)();return()=>e.refetchQueries(J7)},eee=()=>{const e=Q7(),t=(()=>{const e=pi();return t=>e(Id.actions.removeConnection({dAppId:t}))})();return r=>X7.removePeer(r).then((()=>t(r.senderId))).then(e)},tee=()=>{const e=Q7(),t=cN();return r=>{(new _L).deserialize(r).then(Y7).then((t=>{X7.addPeer(t).then(e)})).catch((e=>{t({description:"Beacon sync code in the clipboard is invalid. Please copy a beacon sync code from the dApp",status:"error"}),console.error(e)}))}},ree=({children:e})=>{const{openWith:t,onClose:r}=(0,n.useContext)(mM);return(0,n.useEffect)((()=>{X7.init().then((()=>{X7.connect((e=>{t((0,un.jsx)(G7,{message:e,onClose:r}))}))})).catch(console.error)}),[r,t]),(0,un.jsx)(un.Fragment,{children:e})},nee=1963879877,iee=-1890025422,oee=e=>({address:Zu(e.address),threshold:Number(e.storage.threshold),signers:e.storage.signers.map(Yu),pendingOperationsBigmapId:e.storage.pending_ops}),aee=async(e,t)=>O2((async()=>{const r=await(e=>O2((async()=>{try{const t=`${e.tzktApiUrl}/v1/contracts?typeHash=1963879877&codeHash=-1890025422&includeStorage=true&limit=10000`,{data:r}=await dj.get(t);return r}catch(t){throw new Error(`Error fetching same contracts from tzkt: ${t.message}`)}})))(t);return r.filter((({storage:{signers:t}})=>{if(!(0,Va.every)(t,Gu))return!1;const r=t.filter((t=>e.has(t)));return r.length>0})).map(oee)})),see=e=>{const{bigmap:t,key:r,value:n}=e;if(null===r||null===n)throw new Error("parseMultisigOperation failed");return{id:r,bigmapId:t,rawActions:n.actions,approvals:n.approvals.map(Yu)}},cee=async(e,t)=>0===e.length?[]:O2((async()=>{const r=e.map((e=>e.pendingOperationsBigmapId)),n=await((e,t)=>0===e.length?Promise.resolve([]):O2((async()=>{const r=`${t.tzktApiUrl}/v1/bigmaps/keys?active=true&bigmap.in=${e.join(",")}&limit=10000`,{data:n}=await dj.get(r);return n})))(r,t);return(0,Va.compact)(n.map(see))})),lee=async(e,t,r)=>{const n=await cee(r,t);e($d.setPendingOperations(n.flat()))},uee=async(e,t,r)=>{const n=await C2(r,t);e(Ed.updateTezBalance(n.flat()))},dee=async(e,t,r)=>{const n=await j2(r,t),i=n.flat().map((({token:e,lastLevel:t})=>({...e,lastLevel:t})));e(Gd.addTokens({network:t,tokens:i})),e(Ed.updateTokenBalance(n.flat()))},hee=async e=>{const t=await(async()=>{const{data:{data:{priceUsd:e}}}=await dj.get("https://api.coincap.io/v2/assets/tezos");return null!==e&&void 0!==e?e:null})();e(Ed.updateConversionRate({rate:t}))},fee=()=>{const e=CR(),t=HH(),r=jR((e=>e.assets.refetchTrigger)),i=$2(),o=(0,Fn.useQueryClient)(),a=cN(),s=t.map((e=>e.address.pkh)),c=(0,n.useCallback)((t=>{e(Bd.actions.add(S7(t))),a({description:`Data fetching error: ${t.message}`,status:"error",isClosable:!0})}),[e,a]),l=(0,Fn.useQuery)("allAssets",{queryFn:()=>(async(e,t,r)=>{try{e(Ed.setIsLoading(!0));const n=await aee(new Set(r),t);e($d.setMultisigs(n));const i=[...r,...n.map((e=>e.address.pkh))];await Promise.all([lee(e,t,n),uee(e,t,i),dee(e,t,i)]),e(Ed.setLastTimeUpdated((new Date).toUTCString()))}finally{e(Ed.setIsLoading(!1))}})(e,i,s),onError:c,retry:!1,refetchInterval:15e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),u=(0,Fn.useQuery)("conversionRate",{queryFn:()=>hee(e),onError:c,refetchInterval:3e5,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),d=(0,Fn.useQuery)("blockNumber",{queryFn:()=>(async(e,t)=>{const r=await N2(t);e(Ed.updateBlockLevel(r))})(e,i),onError:c,retry:!1,refetchInterval:15e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),h=(0,Fn.useQuery)("bakers",{queryFn:()=>(async(e,t)=>{const r=(await D2(t)).map((({address:e,alias:t,stakingBalance:r})=>({address:e,stakingBalance:r,name:null!==t&&void 0!==t?t:"Unknown baker"})));e(Ed.updateBakers(r))})(e,i),onError:c,retry:!1,refetchInterval:72e5,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),f=(0,n.useRef)(u),p=(0,n.useRef)(d),m=(0,n.useRef)(l),g=(0,n.useRef)(h);(0,n.useEffect)((()=>{o.cancelQueries({queryKey:"allAssets"}),o.cancelQueries({queryKey:"conversionRate"}),o.cancelQueries({queryKey:"blockNumber"}),o.cancelQueries({queryKey:"bakers"}),f.current.refetch(),p.current.refetch(),m.current.refetch(),g.current.refetch()}),[i,r,o])},pee=()=>{const e=cN(),t=tee(),r=(0,n.useRef)(t),i=(0,n.useRef)(e),o=(e,t)=>{const n=t.replace(":///","://");if(n.startsWith("umami://auth/")){const e=(e=>{const t=e.replace("umami://auth/",""),r=new URLSearchParams(t),n={instanceParams:{insanceId:r.get("instanceId"),verifier:r.get("verifier"),typeOfLogin:r.get("typeOfLogin"),redirectToOpener:r.get("redirectToOpener")},hashParams:{state:r.get("state"),access_token:r.get("access_token"),token_type:r.get("token_type"),expires_in:r.get("expires_in"),scope:r.get("scope"),id_token:r.get("id_token"),authuser:r.get("authuser"),hd:r.get("hd"),prompt:r.get("prompt")}};return{channel:r.get("channel"),data:n,error:r.get("error")}})(n);window.postMessage(e)}else if(n.startsWith("umami://?type=tzip10&data=")){const e=new URL(n).searchParams.get("data");e?r.current(e):i.current({title:"Linkhandler",description:"Data Payload missing"})}else i.current({title:"Linkhandler",description:"Unsupported link type"})};(0,n.useEffect)((()=>{const e=window;return e&&e.electronAPI&&e.electronAPI.onDeeplink(o),()=>{}}),[])};var mee=g(((e,t)=>{var r;const{overflow:n,overflowX:i,className:o,...a}=e;return(0,un.jsx)(ln.div,{ref:t,className:v("chakra-table__container",o),...a,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(r=null!=n?n:i)?r:"auto",overflowY:"hidden",maxWidth:"100%"}})})),[gee,vee]=En({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"
\" "}),yee=g(((e,t)=>{const r=Sn("Table",e),{className:n,layout:i,...o}=ht(e);return(0,un.jsx)(gee,{value:r,children:(0,un.jsx)(ln.table,{ref:t,__css:{tableLayout:i,...r.table},className:v("chakra-table",n),...o})})}));yee.displayName="Table";var bee=g(((e,t)=>{const r=vee();return(0,un.jsx)(ln.tbody,{...e,ref:t,__css:r.tbody})})),wee=g(((e,t)=>{const r=vee();return(0,un.jsx)(ln.tr,{...e,ref:t,__css:r.tr})})),xee=g((({isNumeric:e,...t},r)=>{const n=vee();return(0,un.jsx)(ln.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}));function _ee(e){return Qj({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z"}}]})(e)}function See(e){return Qj({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"}}]})(e)}function kee(e){return Qj({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:"currentColor"}}]})(e)}function Eee(e){return Qj({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:"currentColor"}}]})(e)}const Aee="TOAST_ID",Pee=({pkh:e,formatAddress:t=!0,copyable:r=!0,iconColor:n=EP.gray[600],...i})=>(0,un.jsx)(Tee,{copyValue:r?e:void 0,displayText:t?Y2(e):e,iconColor:n,toastMessage:"Address copied to clipboard",...i}),Tee=({displayText:e,copyValue:t,toastMessage:r,iconColor:n,...i})=>{const o=cN();return(0,un.jsxs)(dn,{alignItems:"center",...i,children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[400],size:"sm",children:e}),t&&(0,un.jsx)(Fj,{stroke:EP.gray[450],_hover:{stroke:EP.green},cursor:"pointer",onClick:()=>(async()=>{t&&(await navigator.clipboard.writeText(t),r&&!o.isActive(Aee)&&o({id:Aee,render:()=>(0,un.jsx)(Oee,{message:r,onClose:()=>{o.close(Aee)}})}))})()})]})},Oee=({message:e,onClose:t})=>(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",padding:2,borderRadius:"4px",backgroundColor:"white",children:[(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(LA,{as:_ee,margin:1,color:EP.green}),(0,un.jsx)(sz,{color:"black",children:e})]}),(0,un.jsx)(LA,{as:Eee,color:"black",_hover:{color:EP.gray[600]},cursor:"pointer",onClick:t})]}),Cee=({title:e,buttonText:t,contact:r})=>{const i=CR(),o=GH(),{isOpen:a,onClose:s}=(0,n.useContext)(mM),{handleSubmit:c,formState:{isValid:l,errors:u},register:d,reset:h,getValues:f}=MU({mode:"onBlur",defaultValues:r}),p=void 0!==r,m=qH(),{nameExistsInContacts:g,addressExistsInContacts:v}=UH(),y=(0,n.useRef)(h);return(0,n.useEffect)((()=>{a&&y.current(r)}),[a,r]),(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:c((({name:e,pkh:t})=>{var r;r={name:e.trim(),pkh:t},o(r.pkh)||(i(Dd.upsert(r)),s()),h()})),children:[(0,un.jsx)(oz,{textAlign:"center",children:e}),(0,un.jsx)(cz,{}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!u.name,marginY:5,children:[(0,un.jsx)(FU,{children:"Name"}),(0,un.jsx)(ZU,{type:"text",...d("name",{required:"Name is required",validate:e=>m.map((e=>e.label)).includes(e)?"Name already used in accounts":!g(e.trim())||"Name already registered"}),placeholder:"Enter contact's name"}),u.name&&(0,un.jsx)(A7,{children:u.name.message})]}),(0,un.jsxs)(Zz,{isInvalid:!!u.pkh,marginY:5,children:[(0,un.jsx)(FU,{children:"Address"}),(0,un.jsx)(ZU,{type:"text",...d("pkh",{required:"Address is required",validate:e=>Ku(e)?p?f("name")!==r.name:o(e)?"Address already used in accounts":!v(e)||"Address already registered":"Invalid address"}),disabled:p,placeholder:"Enter contact\u2019s tz address",value:null===r||void 0===r?void 0:r.pkh,variant:p?"filled":void 0}),u.pkh&&(0,un.jsx)(A7,{children:u.pkh.message})]})]}),(0,un.jsx)(tB,{padding:"16px 0 0 0",children:(0,un.jsx)(pn,{width:"100%",children:(0,un.jsx)(Dn,{width:"100%",marginBottom:2,isDisabled:!l,size:"lg",type:"submit",children:t})})})]})})},jee=({contact:e})=>{const t=CR(),{onClose:r}=(0,n.useContext)(mM);return(0,un.jsxs)(iz,{children:[(0,un.jsx)(oz,{marginBottom:"10px",textAlign:"center",children:"Delete Contact"}),(0,un.jsx)(cz,{}),(0,un.jsx)(lz,{children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",flexDirection:"column",children:[(0,un.jsx)(sz,{color:EP.gray[400],size:"sm",children:"Are you sure you want to remove this contact?"}),(0,un.jsxs)(pn,{marginTop:5,children:[(0,un.jsx)(kn,{marginBottom:3,textAlign:"center",size:"md",children:e.name}),(0,un.jsx)(Pee,{pkh:e.pkh})]})]})}),(0,un.jsx)(tB,{children:(0,un.jsx)(pn,{width:"100%",children:(0,un.jsx)(Dn,{width:"100%",marginBottom:2,onClick:()=>{t(Dd.remove(e.pkh)),r()},variant:"warning",children:"Delete"})})})]})};var Ree=g((function(e,t){const{borderLeftWidth:r,borderBottomWidth:n,borderTopWidth:i,borderRightWidth:o,borderWidth:a,borderStyle:s,borderColor:c,...l}=_n("Divider",e),{className:u,orientation:d="horizontal",__css:h,...f}=ht(e),p={vertical:{borderLeftWidth:r||o||a||"1px",height:"100%"},horizontal:{borderBottomWidth:n||i||a||"1px",width:"100%"}};return(0,un.jsx)(ln.hr,{ref:t,"aria-orientation":d,...f,__css:{...l,border:"0",borderColor:c,borderStyle:s,...p[d],...h},className:v("chakra-divider",u)})}));function Iee(e){const{isOpen:t,ref:r}=e,[i,o]=(0,n.useState)(t),[a,s]=(0,n.useState)(!1);(0,n.useEffect)((()=>{a||(o(t),s(!0))}),[t,a,i]),G$((()=>r.current),"animationend",(()=>{o(t)}));return{present:!(!t&&!i),onComplete(){var e;const t=function(e){var t,r;return null!=(r=null==(t=KD(e))?void 0:t.defaultView)?r:window}(r.current),n=new t.CustomEvent("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}Ree.displayName="Divider";var Mee=()=>"undefined"!==typeof window;var Lee=e=>Mee()&&e.test(function(){var e;const t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),Nee=()=>Lee(/mac|iphone|ipad|ipod/i)&&(e=>Mee()&&e.test(navigator.vendor))(/apple/i);function Dee(e){const t=e.current;if(!t)return!1;const r=function(e){return KD(e).activeElement}(t);return!!r&&(!t.contains(r)&&!(!((n=r)&&qD(n)&&YD(n))||GD(n)));var n}function zee(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,o=r&&!n;mb((()=>{if(!o)return;if(Dee(e))return;const t=(null==i?void 0:i.current)||e.current;let r;return t?(r=requestAnimationFrame((()=>{t.focus({preventScroll:!0})})),()=>{cancelAnimationFrame(r)}):void 0}),[o,e,i])}var Bee={preventScroll:!0,shouldFocus:!1};function Uee(e){const{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!r||(!!n||!("keepMounted"!==i||!t))}var Fee={click:"click",hover:"hover"};function $ee(e={}){const{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:i,id:o,returnFocusOnClose:a=!0,autoFocus:s=!0,arrowSize:c,arrowShadowColor:l,trigger:u=Fee.click,openDelay:d=200,closeDelay:h=200,isLazy:f,lazyBehavior:p="unmount",computePositionOnMount:m,...g}=e,{isOpen:v,onClose:y,onOpen:b,onToggle:w}=W$(e),x=(0,n.useRef)(null),_=(0,n.useRef)(null),S=(0,n.useRef)(null),E=(0,n.useRef)(!1),A=(0,n.useRef)(!1);v&&(A.current=!0);const[P,T]=(0,n.useState)(!1),[O,C]=(0,n.useState)(!1),j=(0,n.useId)(),R=null!=o?o:j,[I,M,L,N]=["popover-trigger","popover-content","popover-header","popover-body"].map((e=>`${e}-${R}`)),{referenceRef:D,getArrowProps:z,getPopperProps:B,getArrowInnerProps:U,forceUpdate:F}=q$({...g,enabled:v||!!m}),$=Iee({isOpen:v,ref:S});!function(e){const{ref:t,elements:r,enabled:n}=e,i=()=>{var e,r;return null!=(r=null==(e=t.current)?void 0:e.ownerDocument)?r:document};G$(i,"pointerdown",(e=>{if(!Nee()||!n)return;const o=e.target,a=(null!=r?r:[t]).some((e=>{const t="current"in e?e.current:e;return(null==t?void 0:t.contains(o))||t===o}));i().activeElement!==o&&a&&(e.preventDefault(),o.focus())}))}({enabled:v,ref:_}),zee(S,{focusRef:_,visible:v,shouldFocus:a&&u===Fee.click}),function(e,t=Bee){const{focusRef:r,preventScroll:i,shouldFocus:o,visible:a}=t,s="current"in e?e.current:e,c=o&&a,l=(0,n.useRef)(c),u=(0,n.useRef)(a);yh((()=>{!u.current&&a&&(l.current=c),u.current=a}),[a,c]);const d=(0,n.useCallback)((()=>{if(a&&s&&l.current&&(l.current=!1,!s.contains(document.activeElement)))if(null==r?void 0:r.current)requestAnimationFrame((()=>{var e;null==(e=r.current)||e.focus({preventScroll:i})}));else{const e=ez(s);e.length>0&&requestAnimationFrame((()=>{e[0].focus({preventScroll:i})}))}}),[a,i,s,r]);mb((()=>{d()}),[d]),G$(s,"transitionend",d)}(S,{focusRef:i,visible:v,shouldFocus:s&&u===Fee.click});const H=Uee({wasSelected:A.current,enabled:f,mode:p,isSelected:$.present}),V=(0,n.useCallback)(((e={},n=null)=>{const i={...e,style:{...e.style,transformOrigin:uF.transformOrigin.varRef,[uF.arrowSize.var]:c?`${c}px`:void 0,[uF.arrowShadowColor.var]:l},ref:Ln(S,n),children:H?e.children:null,id:M,tabIndex:-1,role:"dialog",onKeyDown:k(e.onKeyDown,(e=>{r&&"Escape"===e.key&&y()})),onBlur:k(e.onBlur,(e=>{const r=Vee(e),n=Hee(S.current,r),i=Hee(_.current,r);v&&t&&(!n&&!i)&&y()})),"aria-labelledby":P?L:void 0,"aria-describedby":O?N:void 0};return u===Fee.hover&&(i.role="tooltip",i.onMouseEnter=k(e.onMouseEnter,(()=>{E.current=!0})),i.onMouseLeave=k(e.onMouseLeave,(e=>{null!==e.nativeEvent.relatedTarget&&(E.current=!1,setTimeout((()=>y()),h))}))),i}),[H,M,P,L,O,N,u,r,y,v,t,h,l,c]),q=(0,n.useCallback)(((e={},t=null)=>B({...e,style:{visibility:v?"visible":"hidden",...e.style}},t)),[v,B]),K=(0,n.useCallback)(((e,t=null)=>({...e,ref:Ln(t,x,D)})),[x,D]),W=(0,n.useRef)(),G=(0,n.useRef)(),Z=(0,n.useCallback)((e=>{null==x.current&&D(e)}),[D]),Y=(0,n.useCallback)(((e={},r=null)=>{const n={...e,ref:Ln(_,r,Z),id:I,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":M};return u===Fee.click&&(n.onClick=k(e.onClick,w)),u===Fee.hover&&(n.onFocus=k(e.onFocus,(()=>{void 0===W.current&&b()})),n.onBlur=k(e.onBlur,(e=>{const r=Vee(e),n=!Hee(S.current,r);v&&t&&n&&y()})),n.onKeyDown=k(e.onKeyDown,(e=>{"Escape"===e.key&&y()})),n.onMouseEnter=k(e.onMouseEnter,(()=>{E.current=!0,W.current=window.setTimeout((()=>b()),d)})),n.onMouseLeave=k(e.onMouseLeave,(()=>{E.current=!1,W.current&&(clearTimeout(W.current),W.current=void 0),G.current=window.setTimeout((()=>{!1===E.current&&y()}),h)}))),n}),[I,v,M,u,Z,w,b,t,y,d,h]);(0,n.useEffect)((()=>()=>{W.current&&clearTimeout(W.current),G.current&&clearTimeout(G.current)}),[]);const X=(0,n.useCallback)(((e={},t=null)=>({...e,id:L,ref:Ln(t,(e=>{T(!!e)}))})),[L]),J=(0,n.useCallback)(((e={},t=null)=>({...e,id:N,ref:Ln(t,(e=>{C(!!e)}))})),[N]);return{forceUpdate:F,isOpen:v,onAnimationComplete:$.onComplete,onClose:y,getAnchorProps:K,getArrowProps:z,getArrowInnerProps:U,getPopoverPositionerProps:q,getPopoverProps:V,getTriggerProps:Y,getHeaderProps:X,getBodyProps:J}}function Hee(e,t){return e===t||(null==e?void 0:e.contains(t))}function Vee(e){var t;const r=e.currentTarget.ownerDocument.activeElement;return null!=(t=e.relatedTarget)?t:r}var[qee,Kee]=En({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[Wee,Gee]=En({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "});function Zee(e){const t=Sn("Popover",e),{children:r,...n}=ht(e),i=$ee({...n,direction:vn().direction});return(0,un.jsx)(qee,{value:i,children:(0,un.jsx)(Wee,{value:t,children:w(r,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})})})}function Yee(e){const t=n.Children.only(e.children),{getTriggerProps:r}=Kee();return(0,n.cloneElement)(t,r(t.props,t.ref))}function Xee(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}Zee.displayName="Popover",Yee.displayName="PopoverTrigger";var Jee={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Qee=ln(CA.section),ete=g((function(e,t){const{variants:r=Jee,...n}=e,{isOpen:i}=Kee();return(0,un.jsx)(Qee,{ref:t,variants:Xee(r),initial:!1,animate:i?"enter":"exit",...n})}));ete.displayName="PopoverTransition";var tte=g((function(e,t){const{rootProps:r,motionProps:n,...i}=e,{getPopoverProps:o,getPopoverPositionerProps:a,onAnimationComplete:s}=Kee(),c=Gee(),l={position:"relative",display:"flex",flexDirection:"column",...c.content};return(0,un.jsx)(ln.div,{...a(r),__css:c.popper,className:"chakra-popover__popper",children:(0,un.jsx)(ete,{...n,...o(i,t),onAnimationComplete:E(s,i.onAnimationComplete),className:v("chakra-popover__content",e.className),__css:l})})}));tte.displayName="PopoverContent";var rte=g((function(e,t){const{getBodyProps:r}=Kee(),n=Gee();return(0,un.jsx)(ln.div,{...r(e,t),className:v("chakra-popover__body",e.className),__css:n.body})}));rte.displayName="PopoverBody";const nte=e=>{const{onOpen:t,onClose:r,isOpen:n}=BR();return(0,un.jsxs)(Zee,{isOpen:n,onClose:r,onOpen:t,placement:"bottom-start",children:[(0,un.jsx)(Yee,{children:(0,un.jsx)(Dn,{minWidth:"24px",height:"24px",padding:"0",background:n?EP.green:EP.gray[500],border:"none",borderRadius:"full",_hover:{bg:n?EP.green:EP.gray[450]},"data-testid":"popover-cta",variant:"unstyled",children:(0,un.jsx)(hn,{children:(0,un.jsx)(LA,{as:See,display:"inline",color:EP.white})})})}),(0,un.jsx)(tte,{width:"100px",background:EP.gray[700],children:(0,un.jsx)(rte,{borderRadius:"lg",children:e.children})})]})},ite=({onRename:e,onRemove:t})=>(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(nte,{children:(0,un.jsxs)(pn,{paddingY:"0",children:[(0,un.jsx)(Dn,{height:t?"24px":"28px",onClick:e,variant:"popover",children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Rename"}),(0,un.jsx)(lR,{stroke:"inherit"})]})}),t&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Ree,{marginY:"4px"}),(0,un.jsx)(Dn,{"data-testid":"popover-remove",onClick:t,variant:"popover",children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Remove"}),(0,un.jsx)(xR,{stroke:"inherit"})]})})]})]})})}),ote=({onClick:e,...t})=>(0,un.jsxs)(Dn,{width:"60px",onClick:e,variant:"specialCTA",...t,children:[(0,un.jsx)(cR,{stroke:"currentcolor"}),(0,un.jsx)(sz,{marginLeft:"4px",children:"Send"})]}),ate=({sender:e,operationType:t,isLoading:r,reEstimate:n})=>{switch(t){case"proposal":return(0,un.jsx)(Zz,{marginTop:"24px","data-testid":"signer-selector",children:(0,un.jsx)(x3,{account:e,inputName:"signer",isLoading:r,keepValid:!0,label:"Select Proposer",onUpdate:n})});case"implicit":return null}},ste=(e,t,r)=>{switch(e.type){case"ledger":case"mnemonic":case"social":case"secret_key":if(e.address.pkh!==t.address.pkh)throw new Error("Sender and Signer must be the same");return{type:"implicit",operations:r,signer:e,sender:e};case"multisig":return{type:"proposal",operations:r,sender:e,signer:t}}},cte=()=>{const e=CR(),t=$2();return r=>e(jd.clear({pkh:r.address.pkh,network:t}))},lte=({isLoading:e,isValid:t,onSingleSubmit:r,onAddToBatch:n,showPreview:i=!0})=>(0,un.jsx)(un.Fragment,{children:(0,un.jsxs)(pn,{width:"100%",children:[i&&(0,un.jsx)(Dn,{width:"100%",marginBottom:"16px",isDisabled:!t,isLoading:e,onClick:r,size:"lg",type:"submit",children:"Preview"}),(0,un.jsx)(Dn,{width:"100%",isDisabled:!t,isLoading:e,onClick:n,size:"lg",type:"submit",variant:"tertiary",children:"Insert Into Batch"})]})}),ute=({sender:e,form:t})=>t||(e?{sender:e.address.pkh}:{}),dte=(e,t,r)=>{const[i,o]=(0,n.useState)(!1),a=(()=>{const e=VH();return t=>e(t)})(),[s,c]=(0,n.useState)(e),[l,u]=(0,n.useState)(t),d=$2(),h=cte(),{isLoading:f,handleAsyncAction:p,handleAsyncActionUnsafe:m}=k7(),{openWith:g}=(0,n.useContext)(mM),v=MU({mode:"onBlur",defaultValues:{signer:l.signer.address.pkh,sender:l.sender.address.pkh}}),y=v.watch("signer");return{fee:s,estimationFailed:i,operations:l,isLoading:f,form:v,signer:a(y),reEstimate:async e=>m((async()=>{const t={...l,signer:a(e)};c(await l2(l,d)),u(t),o(!1)}),{isClosable:!0,duration:null}).catch((()=>o(!0))),onSign:async e=>p((async()=>{const t=await z2(l,e);return"batch"===r&&h(l.sender),g((0,un.jsx)(j7,{hash:t.opHash})),t})),handleAsyncAction:p}},hte=e=>{const t=ZH(),r=JH();return n=>{const i=t(n.sender);return ste(i,r(i),[e(n)])}},fte=e=>{e<0&&(console.warn("Decimals cannot be negative"),e=0);return`${0===e?"":"0."+(0,Va.repeat)("0",e-1)}1`},pte=e=>t=>{if(t.includes(".")){if(t.split(".")[1].length>e)return`Please enter a value with up to ${e} decimal places`}return!0},mte=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=dte(n,r,t),{amount:h,recipient:f}=o.operations[0];return(0,un.jsx)(PB,{...c,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:o.type,signer:o.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(I7,{mutezAmount:h}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,un.jsx)(M7,{fee:i})}),(0,un.jsx)(FU,{marginTop:"24px",children:"From "}),(0,un.jsx)(h3,{address:o.sender.address}),(0,un.jsx)(FU,{marginTop:"24px",children:"To "}),(0,un.jsx)(h3,{address:f}),(0,un.jsx)(ate,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:U7(o.type,t)})})]})})})},gte=(e,t)=>async r=>{await l2(e,t),r(jd.add({operations:e,network:t}))},vte=({SignPage:e,signPageExtraData:t,FormPage:r,defaultFormPageProps:i,toOperation:o})=>{const{openWith:a}=(0,n.useContext)(mM),s=hte(o),c=$2();return async n=>{const o=s(n);a((0,un.jsx)(e,{data:t,fee:await l2(o,c),goBack:()=>{a((0,un.jsx)(r,{...i,form:n}))},mode:"single",operations:o}))}},yte=e=>{const{onClose:t}=(0,n.useContext)(mM),r=$2(),i=hte(e),o=CR(),a=cN();return async e=>{const n=i(e);await o(gte(n,r)),a({description:"Transaction added to batch!",status:"success"}),t()}},bte=e=>{const{handleAsyncAction:t,isLoading:r}=k7();return{onFormSubmitActionHandlers:e.map((e=>async r=>t((()=>e(r))))),isLoading:r}},wte=({showPreview:e=!0,...t})=>{const r=vte({SignPage:mte,signPageExtraData:void 0,FormPage:wte,defaultFormPageProps:t,toOperation:xte}),n=yte(xte),{onFormSubmitActionHandlers:[i,o],isLoading:a}=bte([r,n]),s=MU({mode:"onBlur",defaultValues:ute(t)}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s;return(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(N7,{}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!l.prettyAmount,children:[(0,un.jsx)(FU,{children:"Amount"}),(0,un.jsxs)(KU,{children:[(0,un.jsx)(ZU,{isDisabled:a,step:fte(6),type:"number",...u("prettyAmount",{required:"Amount is required",validate:pte(6)}),placeholder:"0.000000"}),(0,un.jsx)(QU,{children:"\ua729"})]}),l.prettyAmount&&(0,un.jsx)(A7,{"data-testid":"amount-error",children:l.prettyAmount.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!!t.sender,label:"From"}),l.sender&&(0,un.jsx)(A7,{"data-testid":"from-error",children:l.sender.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,un.jsx)(v3,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,un.jsx)(A7,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i),showPreview:e})})]})})})},xte=e=>({type:"tez",amount:W2(e.prettyAmount).toFixed(),recipient:qu(e.recipient)}),_te=({contacts:e})=>{const{openWith:t}=(0,n.useContext)(mM);return(0,un.jsx)(pn,{overflow:"auto",background:EP.gray[900],borderRadius:"8px",paddingX:"30px",children:(0,un.jsx)(mee,{overflowX:"unset",overflowY:"unset",children:(0,un.jsx)(yee,{children:(0,un.jsx)(bee,{children:e.map(((r,n)=>{const i=n===e.length-1?"transparent":EP.gray[700];return(0,un.jsxs)(wee,{"data-testid":"contact-row",children:[(0,un.jsx)(xee,{borderColor:i,"data-testid":"contact-row-name",paddingX:"0",children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(pn,{width:"150px",marginRight:"40px",children:(0,un.jsx)(sz,{overflow:"hidden",fontWeight:600,whiteSpace:"nowrap",textOverflow:"ellipsis",children:r.name})}),(0,un.jsx)(Pee,{justifyContent:"space-between","data-testid":"contact-row-pkh",formatAddress:!1,iconColor:EP.gray[400],pkh:r.pkh})]})}),(0,un.jsx)(xee,{borderColor:i,paddingX:"0",children:(0,un.jsxs)(dn,{justifyContent:"end",children:[(0,un.jsx)(ote,{marginRight:"20px",onClick:()=>t((0,un.jsx)(wte,{form:{sender:"",recipient:r.pkh,prettyAmount:""}}))}),(0,un.jsx)(ite,{onRemove:()=>{t((0,un.jsx)(jee,{contact:r}))},onRename:()=>{t((0,un.jsx)(Cee,{buttonText:"Update",contact:r,title:"Edit contact"}))}})]})})]},r.pkh)}))})})})})};function Ste(e,t={}){const{ssr:r=!0,fallback:i}=t,{getWindow:o}=function({defer:e}={}){const[,t]=(0,n.useReducer)((e=>e+1),0);return yh((()=>{e&&t()}),[e]),(0,n.useContext)(_h)}(),a=Array.isArray(e)?e:[e];let s=Array.isArray(i)?i:[i];s=s.filter((e=>null!=e));const[c,l]=(0,n.useState)((()=>a.map(((e,t)=>({media:e,matches:r?!!s[t]:o().matchMedia(e).matches})))));return(0,n.useEffect)((()=>{const e=o();l(a.map((t=>({media:t,matches:e.matchMedia(t).matches}))));const t=a.map((t=>e.matchMedia(t))),r=e=>{l((t=>t.slice().map((t=>t.media===e.media?{...t,matches:e.matches}:t))))};return t.forEach((e=>{"function"===typeof e.addListener?e.addListener(r):e.addEventListener("change",r)})),()=>{t.forEach((e=>{"function"===typeof e.removeListener?e.removeListener(r):e.removeEventListener("change",r)}))}}),[o]),c.map((e=>e.matches))}function kte(e){return e?Math[e]:Math.trunc}Math.pow(10,8);const Ete=6048e5,Ate=864e5,Pte=43200;function Tte(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new e.constructor(+e):"number"===typeof e||"[object Number]"===t||"string"===typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Ote(e,t){return Tte(e).getTime()-Tte(t).getTime()}function Cte(e,t,r){const n=Ote(e,t)/6e4;return kte(r?.roundingMethod)(n)}function jte(e,t){const r=Tte(e),n=Tte(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function Rte(e,t){const r=Tte(e),n=Tte(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}function Ite(e){const t=Tte(e);return t.setHours(23,59,59,999),t}function Mte(e){const t=Tte(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Lte(e){const t=Tte(e);return+Ite(t)===+Mte(t)}function Nte(e,t){const r=Tte(e),n=Tte(t),i=jte(r,n),o=Math.abs(Rte(r,n));let a;if(o<1)a=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);let t=jte(r,n)===-i;Lte(Tte(e))&&1===o&&1===jte(e,n)&&(t=!1),a=i*(o-Number(t))}return 0===a?0:a}function Dte(e,t,r){const n=Ote(e,t)/1e3;return kte(r?.roundingMethod)(n)}const zte={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Bte(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Ute={date:Bte({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Bte({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Bte({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Fte={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function $te(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Hte={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:$te({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:$te({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:$te({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:$te({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:$te({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Vte(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let r=0;re.test(a))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=r.valueCallback?r.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}const qte={ordinalNumber:(Kte={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(Kte.matchPattern);if(!r)return null;const n=r[0],i=e.match(Kte.parsePattern);if(!i)return null;let o=Kte.valueCallback?Kte.valueCallback(i[0]):i[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(n.length)}}),era:Vte({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Vte({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Vte({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Vte({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Vte({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Kte;const Wte={code:"en-US",formatDistance:(e,t,r)=>{let n;const i=zte[e];return n="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Ute,formatRelative:(e,t,r,n)=>Fte[e],localize:Hte,match:qte,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Gte={};function Zte(){return Gte}function Yte(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Xte(e,t,r){const n=Zte(),i=r?.locale??n.locale??Wte,o=jte(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:o});let s,c;o>0?(s=Tte(t),c=Tte(e)):(s=Tte(e),c=Tte(t));const l=Dte(c,s),u=(Yte(c)-Yte(s))/1e3,d=Math.round((l-u)/60);let h;if(d<2)return r?.includeSeconds?l<5?i.formatDistance("lessThanXSeconds",5,a):l<10?i.formatDistance("lessThanXSeconds",10,a):l<20?i.formatDistance("lessThanXSeconds",20,a):l<40?i.formatDistance("halfAMinute",0,a):l<60?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):0===d?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",d,a);if(d<45)return i.formatDistance("xMinutes",d,a);if(d<90)return i.formatDistance("aboutXHours",1,a);if(d<1440){const e=Math.round(d/60);return i.formatDistance("aboutXHours",e,a)}if(d<2520)return i.formatDistance("xDays",1,a);if(d{const t=$2(),r="mainnet"===t.name,n=r?"Buy Tez":"Request Tez from faucet",i=MU({mode:"onBlur",defaultValues:{address:e}}),{formState:{isValid:o,errors:a}}=i;let s=t.buyTezUrl;return t.buyTezUrl&&r&&(s+="/default/widget/"),(0,un.jsx)(PB,{...i,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{action:s,rel:"noreferrer noopener",target:"_blank",children:[(0,un.jsx)(cz,{}),(0,un.jsx)(oz,{marginBottom:"10px",textAlign:"center",children:"Buy Tez"}),r&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)("input",{name:"commodity",type:"hidden",value:"XTZ:Tezos"}),(0,un.jsx)(sz,{color:EP.gray[400],textAlign:"center",size:"sm",children:"Please select the recipient account."}),(0,un.jsx)(lz,{children:(0,un.jsxs)(Zz,{"data-testid":"buy-tez-selector",isInvalid:!!a.address,paddingY:5,children:[(0,un.jsx)(y3,{allowUnknown:!1,inputName:"address",isDisabled:!!e,label:"Recipient Account"}),a.address&&(0,un.jsx)(A7,{children:a.address.message})]})})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(pn,{width:"100%","data-testid":"buy-tez-button",children:(0,un.jsx)(Dn,{width:"100%",marginBottom:2,isDisabled:!o,size:"lg",type:"submit",children:n})})})]})})})},Qte=e=>(0,un.jsx)(LA,{width:"15px",height:"11px",fill:"none",stroke:"white",viewBox:"0 0 15 11",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,un.jsx)("path",{d:"M1.16602 5.98371L5.06345 9.85408L13.8327 1.14575",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),ere=()=>{const e=CR(),t=jR((e=>e.assets.isLoading)),r=jR((e=>e.assets.lastTimeUpdated)),[i,o]=(0,n.useState)(!1),[a,s]=(0,n.useState)(!1),[c]=Ste("(max-width: 1200px)");if((0,n.useEffect)((()=>{if(r){o(!0),s(!0);const e=setTimeout((()=>{o(!1)}),2e3),t=setTimeout((()=>{s(!1)}),3500);return()=>{clearTimeout(e),clearTimeout(t)}}}),[r]),c||null===r)return null;const l=Cte(new Date,new Date(r))>=2,u={opacity:i?1:0,transition:"opacity 2s ease-in-out"};return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsxs)(sz,{display:"inline",color:EP.gray[400],size:"sm",style:a?u:void 0,children:[a&&"Updated just now",l&&`Updated ${Xte(new Date(r),new Date)} ago`]}),(0,un.jsx)(S3,{marginRight:"36px",marginLeft:"8px",_active:{color:"white",bg:EP.green},"aria-label":"refetch",backgroundColor:a?EP.green:EP.gray[500],"data-testid":"refetch-button",icon:a?(0,un.jsx)(Qte,{style:u}):(0,un.jsx)(Bj,{color:"white"}),isLoading:t,onClick:()=>{e(Ed.refetch())},variant:"circle_without_hover_color"})]})},tre=({title:e,subtitle:t})=>{const{openWith:r}=(0,n.useContext)(mM);return(0,un.jsxs)(pn,{children:[(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",height:"88px",children:[(0,un.jsxs)(dn,{alignItems:"end",children:[(0,un.jsx)(kn,{marginRight:"6px",size:"xl",children:e}),(0,un.jsx)(sz,{color:EP.gray[450],"data-testid":"nft-total-amount",size:"xs",children:t})]}),(0,un.jsxs)(pn,{children:[(0,un.jsx)(ere,{}),(0,un.jsx)(Dn,{onClick:()=>r((0,un.jsx)(Jte,{})),variant:"tertiary",children:"Buy Tez"}),(0,un.jsx)(Dn,{marginLeft:4,onClick:()=>r((0,un.jsx)(wte,{})),children:"Send"})]})]}),(0,un.jsx)(Ree,{})]})},rre=()=>{const{openWith:e}=(0,n.useContext)(mM);return(0,un.jsxs)(Dn,{alignItems:"center",justifyContent:"end",marginTop:"16px",marginBottom:"16px",cursor:"pointer",onClick:()=>e((0,un.jsx)(Cee,{buttonText:"Add to Contact",title:"Add contact"})),variant:"CTAWithIcon",children:[(0,un.jsx)(pj,{stroke:"currentcolor"}),(0,un.jsx)(sz,{marginLeft:"4px",size:"sm",children:"Add contact"})]})},nre=()=>{const e=(()=>{const e=BH();return Object.values(e).sort(((e,t)=>e.name.localeCompare(t.name)))})();return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Address Book"}),(0,un.jsx)(dn,{flexDirection:"row-reverse",children:(0,un.jsx)(rre,{})}),(0,un.jsx)(_te,{contacts:e})]})};var ire=r(9095),ore=r.n(ire);const are=({account:{address:e},...t})=>{const r=qH().find((t=>t.address.pkh===e.pkh)),n=i3()(e.pkh),i=a3(e);return r?(0,un.jsxs)(dn,{alignItems:"space-between",cursor:"pointer","data-testid":"account-small-tile",...t,children:[(0,un.jsx)(cH,{addressKind:i}),(0,un.jsxs)(dn,{alignSelf:"center",height:"20px",marginLeft:"12px",children:[(0,un.jsx)(kn,{marginRight:"10px","data-testid":"account-small-tile-label",size:"sm",children:r.label}),(0,un.jsx)(sz,{marginRight:"35px",color:EP.gray[300],"data-testid":"account-small-tile-pkh",size:"xs",children:Y2(e.pkh)}),n&&(0,un.jsx)(kn,{"data-testid":"account-small-tile-balance",size:"sm",children:Z2(n)})]})]}):null},sre=({estimationResult:e})=>{if(!e)return null;const t=(0,Va.get)(e,"metadata.operation_result.status");if(!t)return null;let r,n,i;switch(t){case"applied":case"backtracked":n=EP.green,i="Estimated",r=(0,un.jsx)(bj,{height:"14.5px"});break;case"failed":n=EP.orange,i="Failed",r=(0,un.jsx)(TR,{width:"13px",height:"12px",stroke:"currentcolor"});break;case"skipped":n=EP.orangeL,i="Not Estimated",r=(0,un.jsx)(Rj,{stroke:"currentcolor"})}return(0,un.jsxs)(hn,{marginTop:"8px",color:n,"data-testid":"estimation-status",children:[r,(0,un.jsx)(sz,{marginLeft:"4px",size:"xs",children:i})]})};function cre(e,t){var r;const n=e.target;if(n){if(!LR(n).contains(n))return!1}return!(null==(r=t.current)?void 0:r.contains(n))}var lre=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function ure(e){var t;const{bg:r,bgColor:n,backgroundColor:i,shadow:o,boxShadow:a,shadowColor:s}=e,{getArrowProps:c,getArrowInnerProps:l}=Kee(),u=Gee(),d=null!=(t=null!=r?r:n)?t:i,h=null!=o?o:a;return(0,un.jsx)(ln.div,{...c(),className:"chakra-popover__arrow-positioner",children:(0,un.jsx)(ln.div,{className:v("chakra-popover__arrow",e.className),...l(e),__css:{"--popper-arrow-shadow-color":lre("colors",s),"--popper-arrow-bg":lre("colors",d),"--popper-arrow-shadow":lre("shadows",h),...u.arrow}})})}ure.displayName="PopoverArrow";const dre=({addressKind:{type:e},...t})=>{switch(e){case"multisig":return(0,un.jsx)(Wj,{"data-testid":`${e}-icon`,...t});case"fa1.2":return(0,un.jsx)(Dj,{"data-testid":`${e}-icon`,...t,fill:t.stroke,stroke:"none"});case"fa2":return(0,un.jsx)(zj,{"data-testid":`${e}-icon`,...t,fill:t.stroke,stroke:"none"});case"baker":return(0,un.jsx)(gj,{"data-testid":`${e}-icon`,...t});case"contact":return(0,un.jsx)(kj,{"data-testid":`${e}-icon`,...t});case"unknown":case"implicit":return null}},hre=({addressKind:{type:e,pkh:t},addressPillMode:r,...i})=>{const{addressExistsInContacts:o}=UH(),{openWith:a}=(0,n.useContext)(mM);if("removable"===r.type)return(0,un.jsx)(OR,{cursor:"pointer",onClick:r.onRemove,...i});return["implicit","multisig","baker"].includes(e)||o(t)?null:(0,un.jsx)(un.Fragment,{children:(0,un.jsx)(pj,{"data-testid":"add-contact-icon",onClick:()=>{a((0,un.jsx)(Cee,{buttonText:"Add to Contact",contact:{name:"",pkh:t},title:"Add contact"}))},...i})})},fre=({addressKind:{pkh:e,label:t},showPkh:r,alias:n,...i})=>{const o=FH(),a=Y2(e),s=o(e)||t||n;return r?(0,un.jsx)(sz,{...i,children:a}):(0,un.jsx)(sz,{...i,children:s?K2(s,21):a})},pre=e=>{const t=s3(e);if(!t)return null;const{pkh:r,label:n}=t;return{type:"multisig"===t.type?"multisig":"implicit",pkh:r,label:n}},mre=({pkh:e})=>{const t=(e=>{const t=jR((t=>t.tokens[e.name]));return e=>{if(!t||!(e in t))return;const r=t[e],n=Object.keys(r)[0];return n?r[n].type:void 0}})($2()),r=t(e);if(!r)return null;switch(r){case"fa1.2":return{pkh:e,type:"fa1.2",label:null};case"fa2":case"nft":return{pkh:e,type:"fa2",label:null}}},gre=({address:e,mode:t={type:"default"},...r})=>{const i=!("pkh"in e&&"type"in e),o=i?qu(e.address):e,a=(e=>{const t=pre(e),r=mre(e),n=c3(e),i=l3(e);return t||r||n||i||{pkh:e.pkh,type:"unknown",label:null}})(o),s="no_icons"!==t.type,{onOpen:c,onClose:l,isOpen:u}=BR(),[d,h]=(0,n.useState)(!1),f=(0,n.useRef)(null);let p,m,g;return function(e){const{ref:t,handler:r,enabled:i=!0}=e,o=zR(r),a=(0,n.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,n.useEffect)((()=>{if(!i)return;const e=e=>{cre(e,t)&&(a.isPointerDown=!0)},n=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&cre(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&cre(e,t)&&(a.isPointerDown=!1,o(e))},c=LR(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",n,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",s,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",n,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",s,!0)}}),[r,t,o,a,i])}({ref:f,handler:()=>{h(!1)}}),u?(p=EP.green,m=EP.gray[300],g="white"):d?(p=EP.gray[450],m=EP.gray[400],g=EP.gray[200]):(p=EP.gray[500],m=EP.gray[450],g=EP.gray[300]),(0,un.jsx)(pn,{maxWidth:"max-content","data-testid":"address-pill",...r,children:(0,un.jsxs)(dn,{ref:f,alignItems:"center",background:p,borderRadius:"full",onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},paddingX:"4px",children:[s&&(0,un.jsx)(dre,{marginLeft:"4px",stroke:m,addressKind:a,"data-testid":"address-pill-left-icon"}),(0,un.jsxs)(Zee,{autoFocus:!1,isOpen:u,onOpen:async()=>{await navigator.clipboard.writeText(o.pkh),c(),setTimeout(l,1e3)},children:[(0,un.jsx)(Yee,{children:(0,un.jsx)(Dn,{height:"24px",_focus:{boxShadow:"none"},onClick:e=>e.stopPropagation(),variant:"unstyled",children:(0,un.jsx)(fre,{color:g,cursor:"pointer",addressKind:a,alias:i&&e.alias?e.alias:void 0,"data-testid":"address-pill-text",marginX:"4px",showPkh:!s,size:"sm"})})}),(0,un.jsxs)(tte,{maxWidth:"max-content",background:"white",children:[(0,un.jsx)(ure,{background:"white !important"}),(0,un.jsx)(rte,{children:(0,un.jsx)(sz,{color:"black",size:"sm",children:"Copied!"})})]})]}),s&&(0,un.jsx)(hre,{marginRight:"4px",stroke:EP.gray[300],cursor:"pointer",addressKind:a,addressPillMode:t,"data-testid":"address-pill-right-icon"})]})})},vre=({operation:e})=>{let t;switch(e.type){case"undelegation":case"contract_origination":t=void 0;break;case"tez":case"fa1.2":case"fa2":case"delegation":t=e.recipient;break;case"contract_call":t=e.contract}return t?(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(gre,{address:t,"data-testid":"recipient"})]}):(0,un.jsx)(sz,{color:EP.gray[500],"data-testid":"recipient",children:"N/A"})},yre=e=>null===e||void 0===e?void 0:e.replace("ipfs://","https://ipfs.io/ipfs/"),bre=e=>(0,Va.orderBy)(e,["lastLevel","id","owner"],["desc"]),wre=({operation:e})=>{const t=q2(),r=$2();switch(e.type){case"tez":return(0,un.jsxs)(dn,{children:[(0,un.jsx)(cR,{marginRight:"8px"}),(0,un.jsx)(kn,{size:"sm",children:Z2(e.amount)})]});case"fa1.2":case"fa2":{const n=t(e.contract.pkh,e.tokenId);return"nft"===(null===n||void 0===n?void 0:n.type)?(0,un.jsxs)(dn,{children:[(0,un.jsx)(cR,{marginRight:"8px"}),Number(e.amount)>1&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsxs)(kn,{color:EP.gray[450],size:"sm",children:["x",e.amount]}),"\xa0"]}),(0,un.jsx)(kn,{size:"sm",children:(0,un.jsx)(eH,{padding:"8px",background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px",label:(0,un.jsx)(dz,{width:"170px",height:"170px",ratio:1,children:(0,un.jsx)(bR,{src:yre(dd(n))})}),children:(0,un.jsx)(Bn,{"data-testid":"link",href:pd(n,r),children:rd(n)})})})]}):(0,un.jsxs)(dn,{children:[(0,un.jsx)(cR,{marginRight:"8px"}),(0,un.jsx)(kn,{size:"sm",children:(0,un.jsx)(Bn,{"data-testid":"link",href:n?pd(n,r):void 0,children:Ire(n,e.amount)})})]})}case"delegation":return(0,un.jsxs)(dn,{children:[(0,un.jsx)(gj,{marginRight:"8px"}),(0,un.jsx)(kn,{size:"sm",children:"Delegate"})]});case"undelegation":return(0,un.jsxs)(dn,{children:[(0,un.jsx)(gj,{marginRight:"8px"}),(0,un.jsx)(kn,{size:"sm",children:"End Delegation"})]});case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}},xre=({addressKind:e})=>{switch(e.type){case"secret_key":case"mnemonic":return(0,un.jsx)(aH,{width:"48px",height:"48px",padding:"8px",address:e.pkh,identiconSize:32});case"social":case"contact":case"ledger":case"multisig":case"unknown":case"baker":{const t="social"===e.type?"white":EP.gray[500];return(0,un.jsx)(dn,{alignItems:"center",justifyContent:"center",padding:"4px",background:t,borderRadius:"4px",children:(0,un.jsx)(cH,{addressKind:e,size:"md"})})}}},_re=(0,n.createContext)({selectedAccount:null,selectAccount:()=>{}}),Sre=({icon:e,leftElement:t,rightElement:r,...n})=>(0,un.jsxs)(dn,{alignItems:"center",height:90,marginBottom:4,padding:4,border:`1px solid ${EP.gray[800]}`,borderRadius:4,...n,children:[e,(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",flex:1,children:[t,r]})]}),kre=({label:e,pkh:t})=>(0,un.jsxs)(pn,{margin:4,"data-testid":"account-identifier",children:[e&&(0,un.jsx)(kn,{size:"md",children:e}),(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(sz,{color:"text.dark","data-testid":"short-address",size:"sm",children:Y2(t)})})]}),Ere=({account:e,radius:t,left:r="0px",top:n="0px",mainBackgroundColor:i=EP.gray[900],opacity:o="60"})=>{let a;switch(e.type){case"mnemonic":case"secret_key":s=e.address.pkh,a=`#${rH()(s).slice(0,6)}`;break;case"ledger":case"multisig":a=EP.gray[450];break;case"social":a="#EA4335"}var s;return a+=o,`radial-gradient(circle farthest-side at ${r} ${n}, ${a} 0%, ${a} ${parseInt(t)/4}px, transparent ${t}), ${i}`},Are=({account:e,balance:t})=>{const{selectedAccount:r,selectAccount:i}=(0,n.useContext)(_re),o=(null===r||void 0===r?void 0:r.address.pkh)===e.address.pkh,a=a3(e.address),{address:{pkh:s}}=e,c=!!jR((e=>e.assets.delegationLevels))[s],l=t3(),u=bre(l(s));return(0,un.jsxs)(pn,{zIndex:2,background:Ere({left:"-10px",top:"-10px",account:e,radius:u.length>0?"120px":"100px"}),borderWidth:"1px",borderStyle:"solid",borderColor:o?EP.orangeL:EP.gray[900],borderRadius:"8px",_hover:{borderColor:o?EP.orangeL:EP.gray[700]},cursor:"pointer","data-testid":"account-tile-container",onClick:()=>i(e),paddingX:"21px",children:[(0,un.jsx)(Sre,{align:"bottom",marginBottom:0,padding:0,border:"none","data-testid":`account-tile-${s}`+(o?"-selected":""),icon:(0,un.jsx)(xre,{addressKind:a}),leftElement:(0,un.jsx)(kre,{label:a.label,pkh:s}),rightElement:(0,un.jsxs)(dn,{flexDirection:"column",children:[t&&(0,un.jsx)(kn,{alignSelf:"flex-end",size:"lg",children:Z2(t)}),(0,un.jsx)(sz,{align:"right",color:EP.gray[450],fontWeight:700,size:"sm",children:c?"Delegated":(0,un.jsx)(un.Fragment,{children:"\xa0"})})]})}),u.length>0&&(0,un.jsxs)(dn,{flexDirection:"column","data-testid":"nfts-list",children:[(0,un.jsx)(Ree,{}),(0,un.jsx)(dn,{marginY:"21px",children:u.slice(0,7).map(((e,t)=>{const r=yre(dd(e));return 6===t?(0,un.jsx)(vO,{"data-testid":"show-more-nfts-link",to:`/nfts?accounts=${s}`,children:(0,un.jsx)(pn,{height:"32px",marginLeft:"4px",background:EP.gray[600],borderRadius:"4px",children:(0,un.jsx)(sz,{align:"center",width:"32px",color:EP.gray[450],fontWeight:700,children:"..."})})},"last"):(0,un.jsx)(vO,{"data-testid":"nft-link",to:`/home/${s}/${td(e)}`,children:(0,un.jsx)(dz,{width:"32px",height:"32px",marginLeft:t>0?"4px":0,ratio:1,children:(0,un.jsx)(bR,{borderRadius:"4px",src:r})})},td(e))}))})]})]})},Pre=({title:e,description:t,buttonLabel:r,onSubmit:i})=>{const{onClose:o}=(0,n.useContext)(mM);return(0,un.jsxs)(iz,{children:[(0,un.jsxs)(oz,{marginBottom:"10px",textAlign:"center",children:[(0,un.jsx)(pn,{children:(0,un.jsx)(TR,{width:"40px",height:"40px",marginBottom:"16px"})}),(0,un.jsx)(kn,{children:e}),(0,un.jsx)(cz,{})]}),t&&(0,un.jsx)(lz,{children:(0,un.jsx)(sz,{align:"center",color:EP.gray[400],"data-testid":"description",children:t})}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",onClick:()=>{i(),o()},size:"lg",variant:"warning",children:r})})]})},Tre=({title:e,fee:t,transactionCount:r,signer:n})=>(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(N7,{subTitle:F7(n),title:e}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:n.address}),(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",marginY:"12px",paddingX:"4px",children:[(0,un.jsxs)(dn,{children:[(0,un.jsx)(sz,{marginRight:1,color:EP.gray[450],size:"sm",children:"Transactions:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"transaction-length",size:"sm",children:r})]}),(0,un.jsx)(M7,{fee:t})]})]})]}),Ore=({initialOperations:e,initialFee:t})=>{const{fee:r,operations:n,estimationFailed:i,isLoading:o,signer:a,form:s,reEstimate:c,onSign:l}=dte(t,e,"batch"),u=U7(n.type,"batch");return(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(Tre,{fee:r,signer:a,title:u,transactionCount:n.operations.length}),(0,un.jsx)(ate,{isLoading:o,operationType:n.type,reEstimate:c,sender:n.sender}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:i,isLoading:o,onSubmit:l,signer:a,text:u})})]})})})},Cre=({operations:e,onSubmit:t,isLoading:r})=>{const{type:i,sender:o,operations:a}=e,{openWith:s}=(0,n.useContext)(mM);return(0,un.jsxs)(pn,{alignItems:"center",justifyContent:"space-between","data-testid":"right-header",children:[(0,un.jsx)(sz,{display:"inline-block",color:EP.gray[400],size:"sm",children:ore()("transaction",a.length,!0)}),(0,un.jsx)(Dn,{marginLeft:"30px",isLoading:r,onClick:t,variant:"primary",children:U7(i,"batch")}),(0,un.jsx)(S3,{marginLeft:"16px",borderRadius:"4px","aria-label":"remove-batch","data-testid":"remove-batch",icon:(0,un.jsx)(xR,{stroke:EP.gray[300]}),onClick:()=>s((0,un.jsx)(Rre,{sender:o}),"sm"),variant:"circle"})]})},jre=e=>{switch(e.type){case"fa1.2":case"fa2":return"Token Transfer";case"undelegation":case"delegation":return"Delegation";case"tez":return"\ua729 Transfer";case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}},Rre=({sender:e})=>{const t=cte();return(0,un.jsx)(Pre,{buttonLabel:"Delete Batch",description:"Are you sure you want to remove all transactions from the batch?",onSubmit:()=>t(e),title:"Delete Batch"})},Ire=(e,t)=>{if(!e)return`${t} Unknown Token`;const r=nd(e),n=ld(t,e,{showSymbol:!1}),i=r?void 0:od(e);return(0,Va.compact)([n,i,r]).join(" ")},Mre={metadata:{operation_result:{status:"applied"}}},Lre=({operations:e})=>{const{operations:t,sender:r}=e,i=t.length>9,o=(()=>{const e=CR(),t=$2();return(r,n)=>e(jd.removeItem({pkh:r.address.pkh,index:n,network:t}))})(),{openWith:a}=(0,n.useContext)(mM),s=$2(),[c,l]=n.useState([]);(0,n.useEffect)((()=>{l([])}),[t.length]);const{isLoading:u,handleAsyncAction:d}=k7(),h=(0,un.jsx)(Cre,{isLoading:u,onSubmit:()=>d((async()=>{l([]);try{const r=await l2(e,s);l(t.map((e=>Mre))),a((0,un.jsx)(Ore,{initialFee:r,initialOperations:e}))}catch(r){if(r instanceof m0){const e=r.operationsWithResults;e.length>t.length&&e.shift(),l(e)}throw r}})),operations:e});return(0,un.jsxs)(pn,{width:"100%",marginBottom:"16px","data-testid":`batch-table-${r.address.pkh}`,children:[(0,un.jsxs)(dn,{justifyContent:"space-between",padding:"20px 23px 20px 30px",background:Ere({top:"-10px",left:"-10px",account:r,radius:"100px",opacity:"40",mainBackgroundColor:EP.gray[800]}),borderTopRadius:"8px","data-testid":"header",children:[(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(are,{paddingLeft:0,account:r})}),h]}),(0,un.jsx)(dn,{flexDirection:"column",background:EP.gray[900],borderBottomRadius:i?0:"8px",paddingX:"30px",paddingY:"20px",children:t.map(((e,n)=>{const i=c.at(n);return(0,un.jsxs)(pn,{"data-testid":"operation",children:[(0,un.jsxs)(dn,{flexDirection:"column",height:i?"80px":"50px",children:[(0,un.jsx)(dn,{children:(0,un.jsx)(wre,{operation:e})}),(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",width:"100%",marginTop:"8px",children:[(0,un.jsxs)(dn,{flexDirection:"column",children:[(0,un.jsx)(dn,{children:(0,un.jsx)(vre,{operation:e})}),(0,un.jsx)(sre,{estimationResult:i})]}),(0,un.jsxs)(dn,{alignSelf:"flex-end",children:[(0,un.jsx)(sz,{alignSelf:"flex-end",color:EP.gray[450],size:"sm",children:jre(e)}),(0,un.jsx)(S3,{width:"24px",marginLeft:"12px",borderRadius:"full","aria-label":"Remove",icon:(0,un.jsx)(xR,{stroke:EP.gray[300]}),onClick:()=>o(r,n),size:"xs",variant:"circle"})]})]})]}),n{const n=t.filter((e=>e.length>0)),i=n.length;if(i<2||4{const e=$2(),t=cN(),r=q2(),i=CR(),o=ZH(),a=JH(),{onClose:s}=(0,n.useContext)(mM),{isLoading:c,handleAsyncAction:l}=k7(),u=MU({mode:"onBlur"}),{handleSubmit:d,formState:{isValid:h,errors:f}}=u;return(0,un.jsx)(PB,{...u,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:d((async({file:n,sender:c})=>l((async()=>{const l=o(c),u=await new Promise((e=>{Dre().parse(n[0],{skipEmptyLines:!0,complete:e})}));if(u.errors.length>0)throw new Error("Error loading csv file: "+u.errors.map((e=>e.message)).join(", "));const d=[];for(let e=0;e{const{openWith:e}=(0,n.useContext)(mM);return(0,un.jsxs)(Dn,{onClick:()=>e((0,un.jsx)(Ure,{})),variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{marginRight:"4px",size:"sm",children:"Load CSV file"}),(0,un.jsx)(Uj,{stroke:"currentcolor"})]})},$re=({href:e,children:t,...r})=>(0,un.jsx)(Bn,{alignItems:"center",display:"flex",_hover:{textDecoration:"none"},href:e,rel:"noopener noreferrer",role:"link",target:"_blank",...r,children:t}),Hre=({batchPending:e})=>(0,un.jsxs)(dn,{alignItems:"center",marginTop:"24px",marginBottom:"24px",children:[(0,un.jsxs)(kn,{flex:1,color:EP.orangeL,size:"sm",children:[e," Pending"]}),(0,un.jsx)(Fre,{}),(0,un.jsx)($re,{marginLeft:"8px",href:"https://github.com/trilitech/umami-v1/blob/main/CSV_FILE_SPEC.md",children:(0,un.jsxs)(Dn,{paddingRight:"0",variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{marginRight:"4px",size:"sm",children:"See file specs"}),(0,un.jsx)(Mj,{stroke:"currentcolor"})]})})]}),Vre=()=>{const e=(()=>{const e=$2(),t=jR((t=>t.batches[e.name]));return t||[]})();return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Batch"}),(0,un.jsx)(Hre,{batchPending:e.length}),(0,un.jsx)(pn,{overflowY:"auto",minHeight:"80%",children:e.length>0?e.map((e=>(0,un.jsx)(Lre,{operations:e},e.sender.address.pkh))):(0,un.jsx)(qre,{})})]})},qre=()=>{const{openWith:e}=(0,n.useContext)(mM);return(0,un.jsx)(hn,{height:"100%",textAlign:"center",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(kn,{size:"3xl",children:"No 'batch' to show"}),(0,un.jsx)(sz,{marginTop:"10px",color:EP.gray[400],size:"xl",children:"There is no batch transaction to show..."}),(0,un.jsx)(dn,{justifyContent:"space-around",marginTop:"30px",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(Dn,{onClick:()=>e((0,un.jsx)(wte,{showPreview:!1})),children:"Start a Batch"}),(0,un.jsx)(Dn,{marginLeft:"15px",onClick:()=>e((0,un.jsx)(Ure,{})),variant:"tertiary",children:"Load CSV file"})]})})]})})};var Kre=g((function(e,t){const{templateAreas:r,gap:n,rowGap:i,columnGap:o,column:a,row:s,autoFlow:c,autoRows:l,templateRows:u,autoColumns:d,templateColumns:h,...f}=e,p={display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:i,gridColumnGap:o,gridAutoColumns:d,gridColumn:a,gridRow:s,gridAutoFlow:c,gridAutoRows:l,gridTemplateRows:u,gridTemplateColumns:h};return(0,un.jsx)(ln.div,{ref:t,__css:p,...f})}));function Wre(e){return uz(e,(e=>"auto"===e?"auto":`span ${e}/span ${e}`))}Kre.displayName="Grid";var Gre=g((function(e,t){const{area:r,colSpan:n,colStart:i,colEnd:o,rowEnd:a,rowSpan:s,rowStart:c,...l}=e,u=az({gridArea:r,gridColumn:Wre(n),gridRow:Wre(s),gridColumnStart:i,gridColumnEnd:o,gridRowStart:c,gridRowEnd:a});return(0,un.jsx)(ln.div,{ref:t,__css:u,...l})}));Gre.displayName="GridItem";const Zre=({onClick:e,children:t,isSelected:r,...n})=>(0,un.jsx)(zU,{justifyContent:"center",height:"66px",marginBottom:"10px",padding:"24px",border:"1px solid",borderColor:r?` ${EP.orangeL}`:"transparent",borderRadius:"lg",_hover:{border:`1px solid ${EP.gray[500]}`,bg:EP.gray[800]},cursor:e?"pointer":void 0,backgroundColor:EP.gray[900],onClick:e,...n,children:(0,un.jsx)(BU,{padding:0,children:t})}),Yre=({left:e,isSelected:t,onClick:r})=>(0,un.jsx)(Zre,{isSelected:t,onClick:r,children:(0,un.jsx)(dn,{alignItems:"center",height:"100%",children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,un.jsx)(kn,{size:"sm",children:e}),(0,un.jsx)(xj,{})]})})}),Xre=()=>(0,un.jsxs)(Kre,{gridGap:"1",gridTemplateRows:"0fr 1fr 1fr",gridTemplateColumns:"1fr 1fr",gridTemplateAreas:'\n "header header"\n "main main"\n "main main"\n ',height:"100%",children:[(0,un.jsx)(Gre,{gridArea:"header",children:(0,un.jsx)(tre,{title:"Help"})}),(0,un.jsxs)(Gre,{gridArea:"main",marginTop:1,children:[(0,un.jsx)(Qre,{title:"Learn More",children:(0,un.jsx)(Jre,{about:"Browse Articles",externalLink:"https://medium.com/umamiwallet"})}),(0,un.jsxs)(Qre,{title:"Need Help?",children:[(0,un.jsx)(Jre,{about:"Contact our Support Team",externalLink:"mailto:umami-support@trili.tech",linkDescription:"umami-support@trili.tech"}),(0,un.jsx)(Jre,{about:"Get in touch with the Community",externalLink:"https://join.slack.com/t/tezos-dev/shared_invite/zt-1ur1ymxrp-G_X_bFHrvWXwoeiy53J8lg",linkDescription:"Slack #Umami"})]}),(0,un.jsx)(Qre,{title:"Terms of Use",children:(0,un.jsx)(Jre,{about:"Read Terms of Service",externalLink:"https://umamiwallet.com/tos.html"})})]})]}),Jre=({about:e,externalLink:t,linkDescription:r})=>(0,un.jsx)(vO,{rel:"noopener noreferrer",target:"_blank",to:t,children:(0,un.jsx)(Zre,{cursor:"pointer",isSelected:!1,children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",children:[(0,un.jsx)(kn,{size:"sm",children:e}),(0,un.jsxs)(dn,{alignItems:"center",children:[r&&(0,un.jsx)(sz,{marginRight:"4px",color:EP.gray[400],size:"sm",children:r}),(0,un.jsx)(Mj,{})]})]})})}),Qre=({title:e,children:t})=>(0,un.jsx)(pn,{"data-testid":"help-card",marginY:"10px",children:(0,un.jsx)(dn,{children:(0,un.jsxs)(pn,{width:"550px",children:[(0,un.jsx)(kn,{marginBottom:"16px",size:"lg",children:e}),t]})})});var[ene,tne]=En(),rne={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function nne(e){var t;const{isOpen:r,onClose:n,placement:i="right",children:o,...a}=e,s=vn(),c=null==(t=s.components)?void 0:t.Drawer,l=function(e,t){var r,n;if(e)return null!=(n=null==(r=rne[e])?void 0:r[t])?n:e}(i,s.direction);return(0,un.jsx)(ene,{value:{placement:l},children:(0,un.jsx)(nI,{isOpen:r,onClose:n,styleConfig:c,...a,children:o})})}var ine={exit:{duration:.15,ease:iI.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},one={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var i;const{exit:o}=lI({direction:e});return{...o,transition:null!=(i=null==t?void 0:t.exit)?i:hI(ine.exit,n),transitionEnd:null==r?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var i;const{enter:o}=lI({direction:e});return{...o,transition:null!=(i=null==r?void 0:r.enter)?i:dI(ine.enter,n),transitionEnd:null==t?void 0:t.enter}}},ane=(0,n.forwardRef)((function(e,t){const{direction:r="right",style:n,unmountOnExit:i,in:o,className:a,transition:s,transitionEnd:c,delay:l,motionProps:u,...d}=e,h=lI({direction:r}),f=Object.assign({position:"fixed"},h.position,n),p=!i||o&&i,m=o||i?"enter":"exit",g={transitionEnd:c,transition:s,direction:r,delay:l};return(0,un.jsx)(iP,{custom:g,children:p&&(0,un.jsx)(CA.div,{...d,ref:t,initial:"exit",className:v("chakra-slide",a),animate:m,exit:"exit",custom:g,variants:one,style:f,...u})})}));ane.displayName="Slide";var sne=ln(ane),cne=g(((e,t)=>{const{className:r,children:n,motionProps:i,containerProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:c,isOpen:l}=rI(),u=s(a,t),d=c(o),h=v("chakra-modal__content",r),f=eI(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{placement:g}=tne();return(0,un.jsx)(nz,{children:(0,un.jsx)(ln.div,{...d,className:"chakra-modal__content-container",__css:m,children:(0,un.jsx)(sne,{motionProps:i,direction:g,in:l,className:h,...u,__css:p,children:n})})})}));cne.displayName="DrawerContent";const lne=({onRemove:e,onCreate:t})=>(0,un.jsx)(nte,{children:(0,un.jsxs)(pn,{paddingY:"0",children:[(0,un.jsx)(Dn,{height:t?"24px":"28px","data-testid":"popover-remove",onClick:e,variant:"popover",children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",flex:1,children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Remove"}),(0,un.jsx)(xR,{stroke:"inherit"})]})}),t&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Ree,{marginY:"4px"}),(0,un.jsx)(Dn,{onClick:t,variant:"popover",children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",flex:1,children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Create"}),(0,un.jsx)(uR,{width:"18px",height:"18px",stroke:"inherit"})]})})]})]})});var une=e=>(0,un.jsx)(ln.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});une.displayName="StackItem";var dne=g(((e,t)=>{const{isInline:r,direction:i,align:o,justify:a,spacing:s="0.5rem",wrap:c,children:l,divider:u,className:d,shouldWrapChildren:h,...f}=e,p=r?"row":null!=i?i:"column",m=(0,n.useMemo)((()=>function(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":uz(r,(e=>n[e]))}}({spacing:s,direction:p})),[s,p]),g=!!u,y=!h&&!g,b=(0,n.useMemo)((()=>{const e=HU(l);return y?e:e.map(((t,r)=>{const i="undefined"!==typeof t.key?t.key:r,o=r+1===e.length,a=h?(0,un.jsx)(une,{children:t},i):t;if(!g)return a;const s=(0,n.cloneElement)(u,{__css:m}),c=o?null:s;return(0,un.jsxs)(n.Fragment,{children:[a,c]},i)}))}),[u,m,g,y,h,l]),w=v("chakra-stack",d);return(0,un.jsx)(ln.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:p,flexWrap:c,gap:g?void 0:s,className:w,...f,children:b})}));dne.displayName="Stack";var hne=g(((e,t)=>(0,un.jsx)(dne,{align:"center",...e,direction:"column",ref:t})));hne.displayName="VStack";const fne=({icon:e,size:t,onClick:r=(()=>{})})=>(0,un.jsx)(pn,{width:t,height:t,margin:"auto",background:EP.gray[700],borderRadius:"full",onClick:r,children:(0,un.jsx)(hn,{height:"100%",children:e})}),pne=({children:e,icon:t,title:r,subtitle:n})=>(0,un.jsxs)(hne,{maxHeight:"83vh",spacing:0,children:[(0,un.jsx)(pn,{marginBottom:"20px",children:(0,un.jsx)(fne,{icon:t,size:"48px"})}),(0,un.jsxs)(hn,{flexDirection:"column",marginBottom:"32px",children:[(0,un.jsx)(kn,{size:"xl",children:r}),n&&(0,un.jsx)(sz,{marginTop:"10px",color:EP.gray[400],textAlign:"center",size:"sm",children:n})]}),e]}),mne=({onSubmit:e,isLoading:t})=>{const r=MU({mode:"onBlur"}),{handleSubmit:n,formState:{errors:i,isValid:o}}=r;return(0,un.jsx)(pne,{icon:(0,un.jsx)(iR,{}),subtitle:"Enter your master password for Umami.",title:"Umami Master Password",children:(0,un.jsx)(PB,{...r,children:(0,un.jsxs)("form",{onSubmit:n((t=>{e(t.password)})),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{isInvalid:!!i.password,children:[(0,un.jsx)(P7,{"data-testid":"password",inputName:"password"}),i.password&&(0,un.jsx)(A7,{children:i.password.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",isDisabled:!o,isLoading:t,size:"lg",type:"submit",children:"Submit"})]})})})},gne=({onSubmit:e,title:t="Name Your Account",subtitle:r})=>{const{register:n,handleSubmit:i}=MU({mode:"onChange"});return(0,un.jsx)(pne,{icon:(0,un.jsx)(jj,{}),subtitle:r,title:t,children:(0,un.jsxs)("form",{onSubmit:i(e),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{children:[(0,un.jsx)(FU,{children:"Account name"}),(0,un.jsx)(ZU,{"data-testid":"name",type:"text",...n("accountName",{required:!1}),placeholder:"Optional"})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",size:"lg",type:"submit",children:"Continue"})]})})},vne=e=>{const[t,r]=(0,n.useState)();return void 0===t?(0,un.jsx)(gne,{onSubmit:e=>r(e.accountName),subtitle:e.subtitle,title:e.title}):(0,un.jsx)(mne,{isLoading:e.isLoading,onSubmit:r=>e.onSubmit({name:t,password:r})})},yne=e=>(0,un.jsx)(pn,{overflowY:"auto",height:"100%",children:e.children}),bne=({goToStep:e})=>{const t=HH().length>0;return(0,un.jsx)(pne,{icon:(0,un.jsx)(nR,{}),title:"Connect or Import Account",children:(0,un.jsxs)(hne,{width:"100%",spacing:"16px",children:[(0,un.jsx)(Dn,{width:"100%",onClick:t=>e({type:Oie.restoreMnemonic}),size:"lg",children:"Import with Seed Phrase"}),(0,un.jsx)(Dn,{width:"100%",onClick:t=>e({type:Oie.restoreSecretKey}),size:"lg",variant:"tertiary",children:"Import with Secret Key"}),!t&&(0,un.jsx)(Dn,{width:"100%",onClick:t=>{e({type:Oie.restoreBackup})},size:"lg",variant:"tertiary",children:"Restore from Backup"}),(0,un.jsx)(Dn,{width:"100%",onClick:t=>{e({type:Oie.nameAccount,account:{type:"ledger"}})},size:"lg",variant:"tertiary",children:"Connect ledger"})]})})},wne=({secretKey:e,label:t,password:r})=>async n=>{const{account:i,encryptedSecretKey:o}=await(async({secretKey:e,label:t,password:r})=>{const{pk:n,pkh:i}=await n2(e),o=await Rc(e,r);return{account:{type:"secret_key",pk:n,label:t,address:Yu(i)},encryptedSecretKey:o}})({secretKey:e,label:t,password:r});n(Nc.actions.addAccount(i)),n(Nc.actions.addSecretKey({pkh:i.address.pkh,encryptedSecretKey:o}))},xne=e=>async t=>{t(Nc.actions.removeSecretKey(e)),t(Nc.actions.removeAccount(e))},{addAccount:_ne,removeMnemonicAndAccounts:Sne,removeNonMnemonicAccounts:kne}=Nc.actions,Ene=()=>{const e=$2(),t=U2(),r=pi();return async({mnemonic:n,password:i,derivationPath:o,label:a})=>{const s=await e2(n),c=await t(n,e,o,a),l=await Rc(n,i);r(Nc.actions.addMnemonicAccounts({seedFingerprint:s,accounts:c,encryptedMnemonic:l}))}},Ane=()=>{const e=CR();return(t,r,n,i)=>{e(_ne({derivationPath:t,curve:"ed25519",type:"ledger",pk:r,address:{type:"implicit",pkh:n},label:i}))}},Pne=({goToStep:e,closeModal:t})=>{const{handleAsyncAction:r}=k7(),n=(()=>{const e=CR();return(t,r,n)=>{e(_ne({type:"social",pk:t,address:{type:"implicit",pkh:r},idp:"google",label:n}))}})(),i=cN();return(0,un.jsx)(pne,{icon:(0,un.jsx)(PR,{}),title:"Connect or Create Account",children:(0,un.jsxs)(hne,{width:"100%",spacing:"16px",children:[(0,un.jsx)(Dn,{width:"100%",onClick:t=>e({type:Oie.notice}),size:"lg",children:"Create a new Account"}),(0,un.jsx)(Dn,{width:"100%",onClick:t=>e({type:Oie.connectOptions}),size:"lg",variant:"tertiary",children:"I already have a wallet"}),(0,un.jsxs)(dn,{width:"100%",paddingTop:"14px",paddingBottom:"6px",children:[(0,un.jsx)(Ree,{marginTop:"11px"}),(0,un.jsx)(sz,{minWidth:"160px",color:EP.gray[400],textAlign:"center",noOfLines:1,size:"sm",children:"Continue with Google"}),(0,un.jsx)(Ree,{marginTop:"11px"})]}),(0,un.jsx)(E7,{onAuth:(e,o)=>r((async()=>{const{pk:r,pkh:a}=await n2(e);n(r,a,o),i({description:`Successfully added ${o} account`,status:"success"}),t()}))})]})})},Tne=({selected:e,options:t,onChange:r})=>{const[i,o]=(0,n.useState)(e),[a,s]=(0,n.useState)(!1);return(0,un.jsxs)(pn,{children:[(0,un.jsxs)(dn,{justifyContent:"space-between",height:"48px",padding:"12px 15px 15px 15px",color:EP.gray[300],background:EP.gray[800],border:"1px solid",borderColor:EP.gray[500],borderRadius:"4px",_hover:{borderColor:EP.gray[450]},cursor:"pointer","data-testid":"select-input",onClick:()=>s((e=>!e)),children:[(0,un.jsx)(sz,{size:"sm",children:i.label}),(0,un.jsx)(wj,{marginTop:"2px"})]}),a&&(0,un.jsx)(iF,{position:"absolute",zIndex:2,width:"100%",margin:0,marginTop:"8px",padding:"15px",background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px","data-testid":"select-options",listStyleType:"none",children:t.map((e=>(0,un.jsx)(oF,{marginBottom:"5px",padding:"11px",color:EP.gray[300],background:"transparent",borderRadius:"4px",_hover:{background:EP.gray[500]},cursor:"pointer",onClick:()=>{s(!1),o(e),r(e.value)},children:(0,un.jsx)(sz,{size:"sm",children:e.label})},e.value)))})]})},One=({goToStep:e,account:t})=>{const{handleSubmit:r,setValue:n,formState:{errors:i}}=MU({mode:"onBlur",defaultValues:{derivationPath:MH}});return(0,un.jsx)(pne,{icon:(0,un.jsx)(fR,{}),subtitle:"Choose a custom derivation path or select the default derivation path and use the default key.",title:"Derivation Path",children:(0,un.jsxs)("form",{onSubmit:r((async({derivationPath:r})=>{switch(t.type){case"ledger":e({type:Oie.restoreLedger,account:{...t,derivationPath:r}});break;case"mnemonic":e({type:Oie.masterPassword,account:{...t,derivationPath:r}})}})),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{marginBottom:"20px",children:[(0,un.jsx)(FU,{children:"Select Path"}),(0,un.jsx)(Tne,{onChange:e=>n("derivationPath",e),options:NH,selected:LH}),i.derivationPath&&(0,un.jsx)(A7,{"data-testid":"error-message",children:i.derivationPath.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"12px",size:"lg",type:"submit",children:"Continue"}),(0,un.jsx)($re,{display:"block",width:"100%",marginTop:"32px",textAlign:"center",href:"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki",children:(0,un.jsx)(eH,{backgroundColor:"white",defaultIsOpen:!1,hasArrow:!0,label:"Derivation path is a set of directions that helps create different secret keys; it starts from a master key or seed.",children:(0,un.jsx)(sz,{color:EP.blue,fontWeight:600,textDecoration:"underline",_hover:{textDecoration:"underline"},size:"sm",children:"What's a Derivation Path?"})})})]})})};var[Cne,jne]=En({name:"CheckboxGroupContext",strict:!1});function Rne(e){return(0,un.jsx)(ln.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,un.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Ine(e){return(0,un.jsx)(ln.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,un.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Mne(e){const{isIndeterminate:t,isChecked:r,...n}=e,i=t?Ine:Rne;return r||t?(0,un.jsx)(ln.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,un.jsx)(i,{...n})}):null}var Lne={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};var Nne=()=>"undefined"!==typeof document;var Dne=!1,zne=null,Bne=!1,Une=!1,Fne=new Set;function $ne(e,t){Fne.forEach((r=>r(e,t)))}var Hne="undefined"!==typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function Vne(e){Bne=!0,function(e){return!(e.metaKey||!Hne&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(zne="keyboard",$ne("keyboard",e))}function qne(e){if(zne="pointer","mousedown"===e.type||"pointerdown"===e.type){Bne=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;$ne("pointer",e)}}function Kne(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(Bne=!0,zne="virtual")}function Wne(e){e.target!==window&&e.target!==document&&(Bne||Une||(zne="virtual",$ne("virtual",e)),Bne=!1,Une=!1)}function Gne(){Bne=!1,Une=!0}function Zne(){return"pointer"!==zne}function Yne(){if(!Nne()||Dne)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Bne=!0,e.apply(this,t)},document.addEventListener("keydown",Vne,!0),document.addEventListener("keyup",Vne,!0),document.addEventListener("click",Kne,!0),window.addEventListener("focus",Wne,!0),window.addEventListener("blur",Gne,!1),"undefined"!==typeof PointerEvent?(document.addEventListener("pointerdown",qne,!0),document.addEventListener("pointermove",qne,!0),document.addEventListener("pointerup",qne,!0)):(document.addEventListener("mousedown",qne,!0),document.addEventListener("mousemove",qne,!0),document.addEventListener("mouseup",qne,!0)),Dne=!0}function Xne(e){Yne(),e(Zne());const t=()=>e(Zne());return Fne.add(t),()=>{Fne.delete(t)}}function Jne(e={}){const t=GU(e),{isDisabled:r,isReadOnly:i,isRequired:o,isInvalid:a,id:s,onBlur:c,onFocus:l,"aria-describedby":u}=t,{defaultChecked:d,isChecked:h,isFocusable:f,onChange:p,isIndeterminate:m,name:g,value:v,tabIndex:y,"aria-label":b,"aria-labelledby":w,"aria-invalid":x,...S}=e,E=function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(S,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),A=pb(p),P=pb(c),T=pb(l),[O,C]=(0,n.useState)(!1),[j,R]=(0,n.useState)(!1),[I,M]=(0,n.useState)(!1),[L,N]=(0,n.useState)(!1);(0,n.useEffect)((()=>Xne(C)),[]);const D=(0,n.useRef)(null),[z,B]=(0,n.useState)(!0),[U,F]=(0,n.useState)(!!d),$=void 0!==h,H=$?h:U,V=(0,n.useCallback)((e=>{i||r?e.preventDefault():($||F(H?e.target.checked:!!m||e.target.checked),null==A||A(e))}),[i,r,H,$,m,A]);yh((()=>{D.current&&(D.current.indeterminate=Boolean(m))}),[m]),mb((()=>{r&&R(!1)}),[r,R]),yh((()=>{const e=D.current;if(!(null==e?void 0:e.form))return;const t=()=>{F(!!d)};return e.form.addEventListener("reset",t),()=>{var r;return null==(r=e.form)?void 0:r.removeEventListener("reset",t)}}),[]);const q=r&&!f,K=(0,n.useCallback)((e=>{" "===e.key&&N(!0)}),[N]),W=(0,n.useCallback)((e=>{" "===e.key&&N(!1)}),[N]);yh((()=>{if(!D.current)return;D.current.checked!==H&&F(D.current.checked)}),[D.current]);const G=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":_(L),"data-hover":_(I),"data-checked":_(H),"data-focus":_(j),"data-focus-visible":_(j&&O),"data-indeterminate":_(m),"data-disabled":_(r),"data-invalid":_(a),"data-readonly":_(i),"aria-hidden":!0,onMouseDown:k(e.onMouseDown,(e=>{j&&e.preventDefault(),N(!0)})),onMouseUp:k(e.onMouseUp,(()=>N(!1))),onMouseEnter:k(e.onMouseEnter,(()=>M(!0))),onMouseLeave:k(e.onMouseLeave,(()=>M(!1)))})),[L,H,r,j,O,I,m,a,i]),Z=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":_(L),"data-hover":_(I),"data-checked":_(H),"data-focus":_(j),"data-focus-visible":_(j&&O),"data-indeterminate":_(m),"data-disabled":_(r),"data-invalid":_(a),"data-readonly":_(i)})),[L,H,r,j,O,I,m,a,i]),Y=(0,n.useCallback)(((e={},t=null)=>({...E,...e,ref:Ln(t,(e=>{e&&B("LABEL"===e.tagName)})),onClick:k(e.onClick,(()=>{var e;z||(null==(e=D.current)||e.click(),requestAnimationFrame((()=>{var e;null==(e=D.current)||e.focus({preventScroll:!0})})))})),"data-disabled":_(r),"data-checked":_(H),"data-invalid":_(a)})),[E,r,H,a,z]),X=(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(D,t),type:"checkbox",name:g,value:v,id:s,tabIndex:y,onChange:k(e.onChange,V),onBlur:k(e.onBlur,P,(()=>R(!1))),onFocus:k(e.onFocus,T,(()=>R(!0))),onKeyDown:k(e.onKeyDown,K),onKeyUp:k(e.onKeyUp,W),required:o,checked:H,disabled:q,readOnly:i,"aria-label":b,"aria-labelledby":w,"aria-invalid":x?Boolean(x):a,"aria-describedby":u,"aria-disabled":r,style:Lne})),[g,v,s,V,P,T,K,W,o,H,q,i,b,w,x,a,u,r,y]),J=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,onMouseDown:k(e.onMouseDown,Qne),"data-disabled":_(r),"data-checked":_(H),"data-invalid":_(a)})),[H,r,a]);return{state:{isInvalid:a,isFocused:j,isChecked:H,isActive:L,isHovered:I,isIndeterminate:m,isDisabled:r,isReadOnly:i,isRequired:o},getRootProps:Y,getCheckboxProps:G,getIndicatorProps:Z,getInputProps:X,getLabelProps:J,htmlProps:E}}function Qne(e){e.preventDefault(),e.stopPropagation()}var eie={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},tie={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},rie=jn({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),nie=jn({from:{opacity:0},to:{opacity:1}}),iie=jn({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),oie=g((function(e,t){const r=jne(),i=Sn("Checkbox",{...r,...e}),o=ht(e),{spacing:a="0.5rem",className:s,children:c,iconColor:l,iconSize:u,icon:d=(0,un.jsx)(Mne,{}),isChecked:h,isDisabled:f=(null==r?void 0:r.isDisabled),onChange:p,inputProps:m,...g}=o;let y=h;(null==r?void 0:r.value)&&o.value&&(y=r.value.includes(o.value));let b=p;(null==r?void 0:r.onChange)&&o.value&&(b=E(r.onChange,p));const{state:w,getInputProps:x,getCheckboxProps:_,getLabelProps:S,getRootProps:k}=Jne({...g,isDisabled:f,isChecked:y,onChange:b}),A=function(e){const[t,r]=(0,n.useState)(e),[i,o]=(0,n.useState)(!1);return e!==t&&(o(!0),r(e)),i}(w.isChecked),P=(0,n.useMemo)((()=>({animation:A?w.isIndeterminate?`${nie} 20ms linear, ${iie} 200ms linear`:`${rie} 200ms linear`:void 0,fontSize:u,color:l,...i.icon})),[l,u,A,w.isIndeterminate,i.icon]),T=(0,n.cloneElement)(d,{__css:P,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});return(0,un.jsxs)(ln.label,{__css:{...tie,...i.container},className:v("chakra-checkbox",s),...k(),children:[(0,un.jsx)("input",{className:"chakra-checkbox__input",...x(m,t)}),(0,un.jsx)(ln.span,{__css:{...eie,...i.control},className:"chakra-checkbox__control",..._(),children:T}),c&&(0,un.jsx)(ln.span,{className:"chakra-checkbox__label",...S(),__css:{marginStart:a,...i.label},children:c})]})}));oie.displayName="Checkbox";const aie=({goToStep:e})=>{const[t,r]=n.useState(!1);return(0,un.jsx)(pne,{icon:(0,un.jsx)(Tj,{}),title:"Accept to Continue",children:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsxs)(oie,{paddingBottom:"24px",fontWeight:"600",onChange:e=>r(e.target.checked),children:["I confirm that I have read and agreed with the"," ",(0,un.jsx)(Bn,{textDecoration:"underline",_hover:{color:EP.green},href:"https://umamiwallet.com/tos.html",rel:"noopener noreferrer",target:"_blank",children:"Terms of Service"})," ","and the"," ",(0,un.jsx)(Bn,{textDecoration:"underline",_hover:{color:EP.green},href:"https://umamiwallet.com/privacypolicy.html",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]}),(0,un.jsx)(Dn,{width:"100%",isDisabled:!t,onClick:()=>{e({type:Oie.connectOrCreate})},size:"lg",children:"Continue"})]})})},sie=({onClose:e})=>{const{register:t,handleSubmit:r,formState:{errors:n}}=MU({mode:"onBlur"}),i=Ane();return(0,un.jsx)(pne,{icon:(0,un.jsx)(PR,{}),title:"Add a Fake Account",children:(0,un.jsxs)("form",{onSubmit:r((async({pkh:t,name:r})=>{const n=new Tq(Ad.rpcUrl),o=await n.getManagerKey(t),a="string"===typeof o?o:o.key;i(MH,a,t,r),e()})),style:{width:"100%"},children:[(0,un.jsx)(sz,{children:"It will be restored as a ledger account"}),(0,un.jsxs)(Zz,{isInvalid:!!n.pkh,children:[(0,un.jsx)(FU,{children:"Address"}),(0,un.jsx)(ZU,{...t("pkh",{required:!0}),autoComplete:"off",placeholder:"Please enter the account address"})]}),(0,un.jsxs)(Zz,{isInvalid:!!n.name,children:[(0,un.jsx)(FU,{children:"Name"}),(0,un.jsx)(ZU,{...t("name",{required:!0}),autoComplete:"off",placeholder:"Please enter the account name"})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:2,size:"lg",type:"submit",children:"Add account"})]})})},cie=({onSubmit:e,isLoading:t})=>{const r=MU({mode:"onBlur"}),{handleSubmit:n,formState:{errors:i,isValid:o},getValues:a}=r;return(0,un.jsx)(pne,{icon:(0,un.jsx)(iR,{}),subtitle:"Please choose a master password for Umami. You will need to use this password in order to perform any operations within Umami.",title:"Umami Master Password",children:(0,un.jsx)(PB,{...r,children:(0,un.jsxs)("form",{onSubmit:n((async t=>{e(t.confirm)})),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{isInvalid:!!i.password,children:[(0,un.jsx)(P7,{"data-testid":"password",inputName:"password",placeholder:"Enter master password"}),i.password&&(0,un.jsx)(A7,{children:i.password.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!i.confirm,children:[(0,un.jsx)(P7,{"data-testid":"confirmation",inputName:"confirm",label:"Confirm Password",placeholder:"Confirm your password",required:"Confirmation is required",validate:e=>a("password")===e||"Your passwords do no match"}),i.confirm&&(0,un.jsx)(A7,{children:i.confirm.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",isDisabled:!o||t,isLoading:t,size:"lg",type:"submit",children:"Submit"})]})})})},lie=({account:e,onClose:t})=>{const r=Ene(),n=(()=>{const e=CR();return(t,r,n)=>e(wne({secretKey:t,password:r,label:n}))})(),i=(()=>{const e=$H(),t=Object.values(e)[0];return t?async e=>{await Ic(t,e)}:null})(),o=null!==i,{isLoading:a,handleAsyncAction:s}=k7(),c=cN(),l=a=>s((async()=>{switch(o&&await i(a),e.type){case"secret_key":await n(e.secretKey,a,e.label);break;case"mnemonic":await r({...e,password:a})}c({description:"Account successfully created!",status:"success"}),t()}));return o?(0,un.jsx)(mne,{isLoading:a,onSubmit:l}):(0,un.jsx)(cie,{isLoading:a,onSubmit:l})},uie=({goToStep:e})=>(0,un.jsx)(pne,{icon:(0,un.jsx)(sR,{}),subtitle:"Please read the following before you continue to see your secret Seed Phrase.",title:"Important Notice",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(nF,{spacing:"16px",variant:"onboardingNotice",children:[{content:"Write down your seed phrase and store it in a safe place."},{content:"Make sure there is no one around you or looking over your shoulder."},{content:"Do not copy and paste the Seed Phrase or store it on your device."},{content:"Do not take a screenshot of your Seed Phrase."}].map(((e,t)=>(0,un.jsx)(oF,{fontSize:"16px",fontWeight:600,children:e.content},t)))}),(0,un.jsx)(Dn,{width:"100%",marginTop:"28px",onClick:()=>e({type:Oie.showSeedphrase,account:{type:"mnemonic",mnemonic:(0,uH.OF)(256)}}),size:"lg",children:"I understand"}),(0,un.jsx)(Dn,{width:"100%",marginTop:"16px",onClick:()=>e({type:Oie.restoreMnemonic}),size:"lg",variant:"tertiary",children:"I already have a Seed Phrase"})]})}),die=function(e,t,r){var n=r||!1,i=To(Ba,za,t&&t.enhancer?t.enhancer:void 0),o=function(e){i.dispatch({type:ba,key:e})},a=function(t,r,o){var a={type:ma,payload:r,err:o,key:t};e.dispatch(a),i.dispatch(a),n&&s.getState().bootstrapped&&(n(),n=!1)},s=Na({},i,{purge:function(){var t=[];return e.dispatch({type:ya,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:pa,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:ga})},persist:function(){e.dispatch({type:va,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}(Xd),hie=()=>{const e=MU({mode:"onBlur"}),{handleSubmit:t,register:r,formState:{errors:n,isValid:i}}=e,{handleAsyncAction:o}=k7(),a=(()=>{const e=Ene();return async(t,r)=>{const n=t.recoveryPhrases,i=t.derivationPaths.map((e=>"m/"===e.slice(0,2)?e.slice(2):e));localStorage.clear();try{for(const[t,o]of n.entries()){const n=await Ic(o,r,"V1");await e({mnemonic:n,password:r,label:jie,derivationPath:i[t]})}}catch(o){throw new Error("Invalid password.")}await die.flush()}})();return(0,un.jsx)(pne,{icon:(0,un.jsx)(hR,{}),subtitle:"Select a JSON backup file and enter the password you used to encrypt it.",title:"Restore from Backup",children:(0,un.jsx)(PB,{...e,children:(0,un.jsx)("form",{onSubmit:t((({password:e,file:t})=>o((async()=>{const r=await t[0].text(),n=JSON.parse(r);if(n.recoveryPhrases&&n.derivationPaths)await a(n,e);else{if(!n["persist:accounts"])throw new Error("Invalid backup file.");await(async(e,t)=>{const r=e["persist:accounts"];if(!r)throw new Error("Invalid backup file.");const n=JSON.parse(r),i=JSON.parse(n.seedPhrases);try{for(const e of Object.values(i))await Ic(e,t,"V2")}catch(o){throw new Error("Invalid password.")}die.pause(),localStorage.clear(),localStorage.setItem("persist:accounts",r),localStorage.setItem("persist:root",e["persist:root"]),die.persist()})(n,e)}window.location.reload()})))),style:{width:"100%"},children:(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!n.file,children:[(0,un.jsx)(FU,{children:"Upload File"}),(0,un.jsx)(dn,{children:(0,un.jsx)(ZU,{padding:"2px","data-testid":"file-input",...r("file",{required:"File is required"}),accept:".json",type:"file",variant:"unstyled"})}),n.file&&(0,un.jsx)(Qz,{"data-testid":"file",children:n.file.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",children:[(0,un.jsx)(P7,{"data-testid":"password-input",inputName:"password",label:"Your password (if you have one)",required:!1}),n.password&&(0,un.jsx)(Qz,{"data-testid":"password",children:n.password.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",isDisabled:!i,size:"lg",type:"submit",children:"Import Wallet"})]})})})})},fie=({closeModal:e,account:t})=>{const r=Ane(),n=cN(),{isLoading:i,handleAsyncAction:o}=k7();return(0,un.jsx)(pne,{icon:(0,un.jsx)(SR,{}),subtitle:"Complete the steps to connect.",title:"Connect Ledger",children:(0,un.jsxs)(hne,{overflowY:"auto",spacing:"24px",children:[(0,un.jsx)(nF,{spacing:4,children:[{content:"Plug your Ledger into your computer using a USB cable."},{content:"Unlock your Ledger."},{content:"Make sure your Ledger has the latest firmware version."},{content:"Install and open the Tezos Wallet app on your Ledger."},{content:"Click the button below and confirm the action on your Ledger."}].map(((e,t)=>(0,un.jsx)(oF,{children:e.content},t)))}),(0,un.jsx)(Dn,{width:"100%",isLoading:i,onClick:()=>o((()=>x7((async()=>{const i=n({description:"Please open the Tezos app on your Ledger and approve the operation",status:"info"}),o=DH(t.derivationPath,0),{pk:a,pkh:s}=await(async e=>{const t=await KV.create(),r=new nq(t,e,!0),n=await r.publicKey(),i=await r.publicKeyHash();return await t.close(),{pk:n,pkh:i}})(o);r(o,a,s,t.label),n.close(i),n({description:"Account successfully created!",status:"success"}),e()}),6e4)),(e=>"PublicKeyRetrievalError"===e.name?{description:"Request rejected. Please unlock your Ledger and open the Tezos app"}:"InvalidStateError"===e.name?{description:"Request pending. Check your ledger..."}:{description:`Ledger error. ${e.message||e.name}`})),size:"lg",children:"Export Public Key"})]})})};var pie=D7({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),mie=g((function(e,t){const{children:r,placeholder:n,className:i,...o}=e;return(0,un.jsxs)(ln.select,{...o,ref:t,className:v("chakra-select",i),children:[n&&(0,un.jsx)("option",{value:"",children:n}),r]})}));mie.displayName="SelectField";var gie=g(((e,t)=>{var r;const n=Sn("Select",e),{rootProps:i,placeholder:o,icon:a,color:s,height:c,h:l,minH:u,minHeight:d,iconColor:h,iconSize:f,...p}=ht(e),[m,g]=function(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(p,tt),v=WU(g),y={width:"100%",height:"fit-content",position:"relative",color:s},b={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...null==(r=n.field)?void 0:r._focus}};return(0,un.jsxs)(ln.div,{className:"chakra-select__wrapper",__css:y,...m,...i,children:[(0,un.jsx)(mie,{ref:t,height:null!=l?l:c,minH:null!=u?u:d,placeholder:o,...v,__css:b,children:e.children}),(0,un.jsx)(bie,{"data-disabled":_(v.disabled),...(h||s)&&{color:h||s},__css:n.icon,...f&&{fontSize:f},children:a})]})}));gie.displayName="Select";var vie=e=>(0,un.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,un.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),yie=ln("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),bie=e=>{const{children:t=(0,un.jsx)(vie,{}),...r}=e,i=(0,n.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,un.jsx)(yie,{...r,className:"chakra-select__icon-wrapper",children:(0,n.isValidElement)(t)?i:null})};bie.displayName="SelectIcon";const wie=({inputName:e,validate:t,inputProps:r,listProps:i})=>{const[o,a]=(0,n.useState)(!0),{register:s,setValue:c,watch:l}=AB(),u=l(e),d=uH.ET.EN.filter((e=>u&&e.startsWith(u))).sort(),h=!o&&d.length>0&&(d.length>1||d[0]!==u);return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(ZU,{zIndex:0,autoComplete:"off","data-testid":"mnemonic-input",onFocus:()=>a(!1),placeholder:"Type here...",...s(e,{required:"Required",validate:t,onChange:()=>a(!1),onBlur:()=>a(!0)}),...r}),h&&(0,un.jsx)(iF,{"data-testid":"suggestions",variant:"suggestions",...i,children:d.map((t=>(0,un.jsx)(oF,{paddingTop:"2px",fontSize:"14px",fontWeight:600,"data-testid":"suggestion",onMouseDown:()=>c(e,t),paddingX:"7px",children:t},t)))})]})},xie=[12,15,18,24],_ie=({goToStep:e})=>{const t=MU({mode:"onBlur"}),{handleSubmit:r,setValue:i,trigger:o,formState:{isValid:a}}=t,{handleAsyncAction:s}=k7(),[c,l]=(0,n.useState)(24);return(0,un.jsx)(pne,{icon:(0,un.jsx)(Wj,{width:"24px",height:"24px",stroke:EP.gray[450]}),subtitle:"Please fill in the Seed Phrase in sequence.",title:"Import Seed Phrase",children:(0,un.jsx)(pn,{overflowX:"hidden",children:(0,un.jsx)(PB,{...t,children:(0,un.jsx)("form",{onSubmit:r((t=>s((async()=>{const r=Object.values(t).join(" ").trim();if(!(0,uH._I)(r))throw new Error(`Invalid Mnemonic: "${r}"`);e({type:Oie.nameAccount,account:{type:"mnemonic",mnemonic:r}})})))),style:{width:"100%"},children:(0,un.jsxs)(hne,{width:"100%",spacing:4,children:[(0,un.jsx)(gie,{height:"48px",color:EP.gray[450],"data-testid":"select",icon:(0,un.jsx)(pie,{}),onChange:e=>(e=>{const t=Number(e);xie.includes(t)&&(l((e=>(e>t&&(0,Va.range)(t,Math.max(...xie)).forEach((e=>{i(`word${e}`,void 0)})),t))),o())})(e.target.value),value:c,children:xie.reverse().map((e=>(0,un.jsxs)("option",{value:e,children:[e," Words"]},e)))}),(0,un.jsx)(Kre,{gridGap:3,gridTemplateColumns:"repeat(3, 1fr)",paddingBottom:"20px",children:(0,Va.range)(c).map((e=>{const t=`word${e}`;return(0,un.jsxs)(Gre,{display:"flex",height:"38px",padding:"4px",fontSize:"sm",background:EP.gray[800],border:"1px solid",borderColor:EP.gray[500],borderRadius:"4px",children:[(0,un.jsx)(kn,{width:"18px",marginRight:"6px",paddingTop:"6px",color:EP.gray[400],textAlign:"right",size:"sm",children:e+1}),(0,un.jsx)(wie,{inputName:t,inputProps:{onPaste:async e=>{e.preventDefault();(e=>{s((async()=>{const t=e.split(" ");if(!xie.includes(t.length))throw new Error(`the mnemonic must be ${xie.join(", ")} words long`);t.slice(0,c).forEach(((e,t)=>{i(`word${t}`,e)})),o()}))})(await navigator.clipboard.readText())},border:"none",size:"xsmall"},listProps:{width:"126px",marginTop:"38px",marginLeft:"-5px"}})]},e)}))}),(0,un.jsx)(Dn,{width:"100%",isDisabled:!a,size:"lg",type:"submit",children:"Continue"})]})})})})})};var Sie=["h","minH","height","minHeight"],kie=g(((e,t)=>{const r=_n("Textarea",e),{className:n,rows:i,...o}=ht(e),a=WU(o),s=i?function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(r,Sie):r;return(0,un.jsx)(ln.textarea,{ref:t,rows:i,...a,className:v("chakra-textarea",n),__css:s})}));kie.displayName="Textarea";const Eie=({goToStep:e})=>{const{register:t,handleSubmit:r,formState:{errors:n}}=MU({mode:"onBlur"});return(0,un.jsx)(pne,{icon:(0,un.jsx)(Wj,{width:"24px",height:"24px",stroke:EP.gray[450]}),title:"Insert Secret Key",children:(0,un.jsxs)("form",{onSubmit:r((({secretKey:t})=>e({type:Oie.nameAccount,account:{type:"secret_key",secretKey:t.trim()}}))),style:{width:"100%"},children:[(0,un.jsxs)(Zz,{isInvalid:!!n.secretKey,children:[(0,un.jsx)(FU,{children:"Secret Key"}),(0,un.jsx)(kie,{minHeight:"130px","data-testid":"name",...t("secretKey",{required:"Secret key is required"}),placeholder:"Your secret key"}),n.secretKey&&(0,un.jsx)(Qz,{children:n.secretKey.message})]}),(0,un.jsx)(Dn,{width:"100%",marginTop:"32px",isDisabled:!!n.secretKey,size:"lg",type:"submit",children:"Continue"})]})})};var Aie=g((function(e,t){const{columns:r,spacingX:n,spacingY:i,spacing:o,minChildWidth:a,...s}=e,c=vn(),l=a?function(e,t){return uz(e,(e=>{const r=bn("sizes",e,function(e){return"number"===typeof e?`${e}px`:e}(e))(t);return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`}))}(a,c):uz(r,(e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`));return(0,un.jsx)(Kre,{ref:t,gap:o,columnGap:n,rowGap:i,templateColumns:l,...s})}));Aie.displayName="SimpleGrid";const Pie=({goToStep:e,account:t})=>(0,un.jsx)(pne,{icon:(0,un.jsx)(Wj,{width:"24px",height:"24px",stroke:EP.gray[450]}),subtitle:"Please record the following 24 words in sequence in order to restore it in the future.",title:"Record Seed Phrase",children:(0,un.jsxs)(hne,{children:[(0,un.jsx)(Aie,{columns:3,spacing:2,children:t.mnemonic.split(" ").map(((e,t)=>(0,un.jsxs)(dn,{width:"126px",padding:"6px",border:"1px dashed",borderColor:EP.gray[500],borderRadius:"4px",children:[(0,un.jsx)(kn,{width:"18px",marginRight:"10px",paddingTop:"2px",color:EP.gray[450],textAlign:"right",size:"sm",children:t+1}),(0,un.jsx)(sz,{"data-testid":`mnemonic-word-${t}`,size:"sm",children:e})]},t)))}),(0,un.jsx)(Dn,{width:"100%",marginTop:"20px",onClick:r=>{e({type:Oie.verifySeedphrase,account:t})},size:"lg",children:"OK, I've recorded it"})]})}),Tie=({goToStep:e,account:t})=>{const r=t.mnemonic.split(" "),i=MU({mode:"onBlur"}),{handleSubmit:o,formState:{errors:a,isValid:s}}=i,[c]=(0,n.useState)(((e,t)=>(0,Va.shuffle)(e.map(((e,t)=>({value:e,index:t})))).slice(0,t).sort(((e,t)=>e.index-t.index)))(r,5));return(0,un.jsx)(pne,{icon:(0,un.jsx)(Oj,{}),subtitle:"To verify, please type in the word that corresponds to each sequence number.",title:"Verify Seed Phrase",children:(0,un.jsx)(pn,{overflowX:"hidden",overflowY:"auto",width:"100%",children:(0,un.jsx)(PB,{...i,children:(0,un.jsxs)("form",{onSubmit:o((()=>e({type:Oie.nameAccount,account:t}))),children:[c.map(((e,t)=>{const r=`${e.index}`,n=a[r];return(0,un.jsxs)(Zz,{marginBottom:"12px",isInvalid:!!n,children:[(0,un.jsx)(sz,{position:"absolute",zIndex:1,width:"26px",marginTop:"12px",marginLeft:"4px",textAlign:"right","data-testid":"mnemonic-index",children:e.index+1}),(0,un.jsx)(pn,{width:"100%",children:(0,un.jsx)(wie,{inputName:r,inputProps:{paddingLeft:"36px",size:"md"},listProps:{marginTop:"6px"},validate:t=>{if(t!==e.value)return"Word doesn't match"}})}),(null===n||void 0===n?void 0:n.message)&&(0,un.jsx)(A7,{children:n.message})]},t)})),(0,un.jsx)(Dn,{width:"100%",marginTop:"20px",isDisabled:!s,size:"lg",type:"submit",children:"Continue"})]})})})})};let Oie=function(e){return e.eula="eula",e.connectOrCreate="connectOrCreate",e.connectOptions="connectOptions",e.notice="notice",e.restoreMnemonic="restoreMnemonic",e.restoreSecretKey="restoreSecretKey",e.restoreLedger="restoreLedger",e.restoreBackup="restoreBackup",e.showSeedphrase="showSeedphrase",e.verifySeedphrase="verifySeedphrase",e.nameAccount="nameAccount",e.derivationPath="derivationPath",e.masterPassword="masterPassword",e.fakeAccount="fakeAccount",e}({});const Cie=e=>{const{isOpen:t,onOpen:r,onClose:i}=BR(),o=0!==HH().length,a=(e=>{const[t,r]=(0,n.useState)(e),[i,o]=(0,n.useState)([t]),a=1===i.length;return{reset:()=>{r(e),o([e])},goToStep:e=>{r(e),o([...i,e])},currentStep:t,goBack:()=>{if(a)return;i.pop();const e=i[i.length-1];o(i),r(e)},atInitialStep:a,fullHistory:i}})({type:o?Oie.connectOrCreate:Oie.eula}),{currentStep:s,goToStep:c}=a,l=()=>{a.reset(),e&&e(),i()};return{modalElement:(0,un.jsxs)(nI,{autoFocus:!1,closeOnOverlayClick:!1,isCentered:!0,isOpen:t,onClose:l,children:[o&&(0,un.jsx)(vI,{}),(0,un.jsxs)(iz,{children:[!a.atInitialStep&&(0,un.jsx)(B7,{onClick:a.goBack}),(0,un.jsx)(cz,{onClick:l}),(()=>{switch(s.type){case Oie.eula:return(0,un.jsx)(aie,{goToStep:c});case Oie.connectOrCreate:return(0,un.jsx)(Pne,{closeModal:l,goToStep:c});case Oie.connectOptions:return(0,un.jsx)(bne,{goToStep:c});case Oie.notice:return(0,un.jsx)(uie,{goToStep:c});case Oie.restoreMnemonic:return(0,un.jsx)(_ie,{goToStep:c});case Oie.restoreBackup:return(0,un.jsx)(hie,{});case Oie.showSeedphrase:return(0,un.jsx)(Pie,{goToStep:c,...s});case Oie.verifySeedphrase:return(0,un.jsx)(Tie,{goToStep:c,...s});case Oie.nameAccount:return(0,un.jsx)(Rie,{goToStep:c,...s});case Oie.derivationPath:return(0,un.jsx)(One,{goToStep:c,...s});case Oie.restoreLedger:return(0,un.jsx)(fie,{closeModal:l,...s});case Oie.masterPassword:return(0,un.jsx)(lie,{onClose:l,...s});case Oie.fakeAccount:return(0,un.jsx)(sie,{onClose:i});case Oie.restoreSecretKey:return(0,un.jsx)(Eie,{goToStep:c})}})()]})]}),onOpen:r}},jie="Account",Rie=({goToStep:e,account:t})=>{const r=WH();return(0,un.jsx)(gne,{onSubmit:n=>{const i=n.accountName.trim()||jie,o=r(i)[0];switch(t.type){case"secret_key":return e({type:Oie.masterPassword,account:{...t,label:o}});case"ledger":return e({type:Oie.derivationPath,account:{...t,label:o}});case"mnemonic":return e({type:Oie.derivationPath,account:{...t,label:i}})}},subtitle:"Please choose a name for your first account. You can edit your account name later."})},Iie=e=>{const t=CR(),{openWith:r}=(0,n.useContext)(mM),{mode:i,operations:o,fee:a,data:{threshold:s,signers:c,name:l,sender:u}}=e,{fee:d,operations:h,estimationFailed:f,isLoading:p,form:m,signer:g,onSign:v,handleAsyncAction:y}=dte(a,o,i);return(0,un.jsx)(PB,{...m,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:h.type,signer:h.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"Contract Name"}),(0,un.jsx)(sz,{marginBottom:"24px",padding:"14px",color:EP.gray[50],background:EP.gray[800],borderRadius:"6px","data-testid":"contract-name",children:l}),(0,un.jsxs)(pn,{marginBottom:"24px",children:[(0,un.jsx)(FU,{children:"Owner"}),(0,un.jsx)(h3,{marginBottom:"12px",address:qu(u),"data-testid":"multisig-owner"}),(0,un.jsx)(dn,{justifyContent:"flex-end",children:(0,un.jsx)(M7,{fee:d})})]}),(0,un.jsx)(FU,{children:"Approvers"}),(0,un.jsx)(pn,{"data-testid":"approvers",children:c.map((e=>(0,un.jsx)(h3,{marginBottom:"12px",address:qu(e.val),"data-testid":`approver-${e.val}`},e.val)))}),(0,un.jsxs)(dn,{alignItems:"center",marginTop:"24px",marginBottom:"24px",children:[(0,un.jsx)(kn,{marginRight:"12px",size:"md",children:"Min No. of approvals:"}),(0,un.jsx)(hn,{width:"100px",height:"48px",background:EP.gray[800],borderRadius:"4px",children:(0,un.jsxs)(sz,{textAlign:"center","data-testid":"threshold",children:[s," out of ",c.length]})})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:f,isLoading:p,onSubmit:async e=>y((async()=>{const n=await v(e);if(!n)throw new Error("An error occurred during contract origination");const i=(await n.getOriginatedContractAddresses())[0];t($d.addMultisigLabel({pkh:i,label:l})),r((0,un.jsx)(j7,{hash:n.opHash}))})),signer:g,text:U7(h.type,i)})})]})})})},Mie=[{prim:"storage",args:[{prim:"pair",args:[{prim:"address",annots:["%owner"]},{prim:"pair",args:[{prim:"set",args:[{prim:"address"}],annots:["%signers"]},{prim:"pair",args:[{prim:"nat",annots:["%threshold"]},{prim:"pair",args:[{prim:"nat",annots:["%last_op_id"]},{prim:"pair",args:[{prim:"big_map",args:[{prim:"nat"},{prim:"pair",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}],annots:["%actions"]},{prim:"set",args:[{prim:"address"}],annots:["%approvals"]}]}],annots:["%pending_ops"]},{prim:"big_map",args:[{prim:"string"},{prim:"bytes"}],annots:["%metadata"]}]}]}]}]}]}]},{prim:"parameter",args:[{prim:"or",args:[{prim:"or",args:[{prim:"or",args:[{prim:"bytes",annots:["%set_metadata_uri"]},{prim:"unit",annots:["%default"]}]},{prim:"or",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}],annots:["%propose"]},{prim:"nat",annots:["%approve"]}]}]},{prim:"nat",annots:["%execute"]}]}]},{prim:"code",args:[[{prim:"NIL",args:[{prim:"operation"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"UNPAIR"},{prim:"DIP",args:[{int:"1"},[{prim:"UNPAIR",args:[{int:"6"}]}]]},{prim:"IF_LEFT",args:[[{prim:"IF_LEFT",args:[[{prim:"IF_LEFT",args:[[{prim:"DUP",args:[{int:"2"}]},{prim:"SENDER"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID_CALLER"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"SOME"},{prim:"PUSH",args:[{prim:"string"},{string:""}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}],[{prim:"DROP",args:[{int:"1"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"SIZE"},{prim:"COMPARE"},{prim:"GE"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"FUNDING BLOCKED SINCE PARAMS ARE INVALID"}]},{prim:"FAILWITH"}],[]]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}],[{prim:"IF_LEFT",args:[[{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"3"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"nat"},{int:"1"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"ADD"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"4"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"4"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"MEM"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"KEY_EXISTS"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[{prim:"DUP",args:[{int:"6"}]},{prim:"EMPTY_SET",args:[{prim:"address"}]},{prim:"PUSH",args:[{prim:"bool"},{prim:"True"}]},{prim:"SENDER"},{prim:"UPDATE"},{prim:"DUP",args:[{int:"3"}]},{prim:"PAIR"},{prim:"SOME"},{prim:"DUP",args:[{int:"7"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"5"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"5"}]}]]},{prim:"DROP",args:[{int:"1"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}],[{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID OP ID"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"4"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP"},{prim:"CDR"},{prim:"SENDER"},{prim:"MEM"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ALREADY APPROVED"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"8"}]},{prim:"DUP",args:[{int:"4"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"UNPAIR"},{prim:"SWAP"},{prim:"DROP",args:[{int:"1"}]},{prim:"DUP",args:[{int:"9"}]},{prim:"DUP",args:[{int:"5"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"CDR"},{prim:"PUSH",args:[{prim:"bool"},{prim:"True"}]},{prim:"SENDER"},{prim:"UPDATE"},{prim:"SWAP"},{prim:"PAIR"},{prim:"SOME"},{prim:"DUP",args:[{int:"4"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"2"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}]]}],[{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID OP ID"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"4"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"5"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"CDR"},{prim:"SIZE"},{prim:"COMPARE"},{prim:"GE"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"NOT YET APPROVED"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"CAR"},{prim:"PUSH",args:[{prim:"unit"},{prim:"Unit"}]},{prim:"EXEC"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"8"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"8"}]},{prim:"DUP",args:[{int:"7"}]},{prim:"NONE",args:[{prim:"pair",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}]},{prim:"set",args:[{prim:"address"}]}]}]},{prim:"DUP",args:[{int:"4"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"2"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}]]}],Lie=e=>{return{type:"contract_origination",sender:qu(e.sender),code:Mie,storage:(t=e.sender,r=e.signers.map((e=>e.val)),n=String(e.threshold),{owner:t,signers:r,threshold:n,last_op_id:"0",pending_ops:[],metadata:[]})};var t,r,n},Nie=e=>{const t=MU({mode:"onBlur",defaultValues:{signers:[{val:""}],threshold:1,...ute(e)}}),{formState:{errors:r,isValid:i},control:o,register:a,handleSubmit:s,getValues:c,watch:l}=t,u=function(e){const t=AB(),{control:r=t.control,name:i,keyName:o="id",shouldUnregister:a}=e,[s,c]=n.useState(r._getFieldArray(i)),l=n.useRef(r._getFieldArray(i).map(UB)),u=n.useRef(s),d=n.useRef(i),h=n.useRef(!1);d.current=i,u.current=s,r._names.array.add(i),e.rules&&r.register(i,e.rules),RB({next:({values:e,name:t})=>{if(t===d.current||!t){const t=pB(e,d.current);Array.isArray(t)&&(c(t),l.current=t.map(UB))}},subject:r._subjects.array});const f=n.useCallback((e=>{h.current=!0,r._updateFieldArray(i,e)}),[r,i]);return n.useEffect((()=>{if(r._state.action=!1,HB(i,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!$B(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([i]).then((e=>{const t=pB(e.errors,i),n=pB(r._formState.errors,i);(n?!t&&n.type||t&&(n.type!==t.type||n.message!==t.message):t&&t.type)&&(t?DB(r._formState.errors,i,t):hU(r._formState.errors,i),r._subjects.state.next({errors:r._formState.errors}))}));else{const e=pB(r._fields,i);e&&e._f&&iU(e,r._formValues,r._options.criteriaMode===vB.all,r._options.shouldUseNativeValidation,!0).then((e=>!OB(e)&&r._subjects.state.next({errors:VB(r._formState.errors,e,i)})))}r._subjects.values.next({name:i,values:{...r._formValues}}),r._names.focus&&BB(r._fields,(e=>!!e&&e.startsWith(r._names.focus||""))),r._names.focus="",r._updateValid(),h.current=!1}),[s,i,r]),n.useEffect((()=>(!pB(r._formValues,i)&&r._updateFieldArray(i),()=>{(r._options.shouldUnregister||a)&&r.unregister(i)})),[i,r,o,a]),{swap:n.useCallback(((e,t)=>{const n=r._getFieldArray(i);dU(n,e,t),dU(l.current,e,t),f(n),c(n),r._updateFieldArray(i,n,dU,{argA:e,argB:t},!1)}),[f,i,r]),move:n.useCallback(((e,t)=>{const n=r._getFieldArray(i);cU(n,e,t),cU(l.current,e,t),f(n),c(n),r._updateFieldArray(i,n,cU,{argA:e,argB:t},!1)}),[f,i,r]),prepend:n.useCallback(((e,t)=>{const n=jB(dB(e)),o=lU(r._getFieldArray(i),n);r._names.focus=FB(i,0,t),l.current=lU(l.current,n.map(UB)),f(o),c(o),r._updateFieldArray(i,o,lU,{argA:aU(e)})}),[f,i,r]),append:n.useCallback(((e,t)=>{const n=jB(dB(e)),o=oU(r._getFieldArray(i),n);r._names.focus=FB(i,o.length-1,t),l.current=oU(l.current,n.map(UB)),f(o),c(o),r._updateFieldArray(i,o,oU,{argA:aU(e)})}),[f,i,r]),remove:n.useCallback((e=>{const t=uU(r._getFieldArray(i),e);l.current=uU(l.current,e),f(t),c(t),r._updateFieldArray(i,t,uU,{argA:e})}),[f,i,r]),insert:n.useCallback(((e,t,n)=>{const o=jB(dB(t)),a=sU(r._getFieldArray(i),e,o);r._names.focus=FB(i,e,n),l.current=sU(l.current,e,o.map(UB)),f(a),c(a),r._updateFieldArray(i,a,sU,{argA:e,argB:aU(t)})}),[f,i,r]),update:n.useCallback(((e,t)=>{const n=dB(t),o=fU(r._getFieldArray(i),e,n);l.current=[...o].map(((t,r)=>t&&r!==e?l.current[r]:UB())),f(o),c([...o]),r._updateFieldArray(i,o,fU,{argA:e,argB:n},!0,!1)}),[f,i,r]),replace:n.useCallback((e=>{const t=jB(dB(e));l.current=t.map(UB),f([...t]),c([...t]),r._updateFieldArray(i,[...t],(e=>e),{},!0,!1)}),[f,i,r]),fields:n.useMemo((()=>s.map(((e,t)=>({...e,[o]:l.current[t]||UB()})))),[s,o])}}({control:o,name:"signers",rules:{minLength:1}}),d=l("signers").length,h=vte({SignPage:Iie,signPageExtraData:l(),FormPage:Nie,defaultFormPageProps:{},toOperation:Lie}),{onFormSubmitActionHandlers:[f],isLoading:p}=bte([h]),m=KH();return(0,un.jsx)(PB,{...t,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:s(f),children:[(0,un.jsx)(N7,{subTitle:"Name your contract, select an owner and the signers of the contract.",title:"Create Multisig"}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!r.name,children:[(0,un.jsx)(FU,{children:"Name the Contract"}),(0,un.jsx)(KU,{children:(0,un.jsx)(ZU,{type:"text",...a("name",{required:"Name is required",validate:e=>{if(!m(e))return"Name must be unique across all accounts and contacts"}}),placeholder:"The name is only stored locally"})}),r.name&&(0,un.jsx)(A7,{"data-testid":"name-error",children:r.name.message})]}),(0,un.jsxs)(Zz,{isInvalid:!!r.sender,marginY:"24px",children:[(0,un.jsx)(y3,{allowUnknown:!1,inputName:"sender",label:"Select Owner"}),r.sender&&(0,un.jsx)(A7,{"data-testid":"owner-error",children:r.sender.message})]}),u.fields.map(((e,t)=>{var n;const i=r.signers&&r.signers[t],o=`${0===t?"Select ":""}${t+1} signer`,a=d>1?"short":"default",s="short"===a?"368px":"100%";return(0,un.jsxs)(Zz,{display:"inline-block",width:s,marginBottom:"8px","data-testid":`signer-input-${t}`,isInvalid:!!i,children:[(0,un.jsx)(y3,{allowUnknown:!0,inputName:`signers.${t}.val`,label:o,size:a,style:{width:s},validate:e=>{if(!Gu(e))return"Signer must be valid TZ address";const t=c("signers").map((e=>e.val));return t.length>new Set(t).size?"Duplicate signer":void 0}}),d>1&&(0,un.jsx)(S3,{position:"absolute",height:"24px",marginTop:"-36px",marginLeft:"374px",background:EP.gray[500],"aria-label":"Remove","data-testid":`remove-signer-${t}`,icon:(0,un.jsx)(xR,{width:"12px",height:"14px",stroke:EP.gray[300]}),isRound:!0,onClick:()=>u.remove(t),size:"xs",variant:"tertiary"}),i&&(0,un.jsx)(A7,{"data-testid":`signer-${t}-error`,children:null===(n=i.val)||void 0===n?void 0:n.message})]},e.id)})),(0,un.jsx)(Dn,{paddingLeft:0,onClick:()=>u.append({val:""}),variant:"specialCTA",children:"+ Add Signer"}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!r.threshold,children:[(0,un.jsxs)(FU,{display:"inline",children:["Min No. of approvals:",(0,un.jsx)(KU,{display:"inline",marginLeft:"10px",children:(0,un.jsx)(ZU,{width:"60px",color:"white","data-testid":"threshold-input",step:1,type:"number",...a("threshold",{required:"No. of approvals is required",max:{value:d,message:`Max no. of approvals is ${d}`},min:{value:1,message:"Min no. of approvals is 1"}})})})]}),(0,un.jsxs)(sz,{display:"inline","data-testid":"max-signers",children:["out of ",d]}),r.threshold&&(0,un.jsx)(A7,{"data-testid":"threshold-error",children:r.threshold.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",isDisabled:!i,isLoading:p,size:"lg",type:"submit",children:"Review"})})]})})})},Die=()=>{const{onOpen:e,modalElement:t}=Cie();return(0,un.jsxs)(dn,{flexDirection:"row-reverse",marginTop:"12px",marginBottom:"16px",children:[(0,un.jsxs)(Dn,{paddingRight:"0",onClick:e,variant:"CTAWithIcon",children:[(0,un.jsx)(fj,{stroke:"currentcolor"}),(0,un.jsx)(sz,{marginLeft:"4px",size:"sm",children:"Add Account"})]}),t]})},zie=({groupLabel:e,accounts:t,balances:r})=>{const i=t[0],o="multisig"===i.type,a="mnemonic"===i.type,{openWith:s,onClose:c}=(0,n.useContext)(mM),l=(()=>{const e=CR();return t=>{e(Sne({fingerPrint:t}))}})(),u=(()=>{const e=CR();return t=>{e(kne({accountType:t}))}})(),d=HH().length===t.length;let h,f="Remove All";const p=Bie(i);d?(h="Removing all your accounts will off-board you from Umami. This will remove or reset all customised settings to their defaults. Personal data (including saved contacts, password and accounts) won't be affected.",f="Remove & Off-board"):h=a?`Are you sure you want to remove all accounts derived from ${p}?`:`Are you sure you want to remove all of your ${p}?`;return(0,un.jsxs)(pn,{"data-testid":`account-group-${e}`,children:[(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsx)(kn,{marginBottom:4,"data-testid":"account-group-title",size:"md",children:e}),!o&&(0,un.jsx)(lne,{onCreate:a?()=>{if(!a)throw new Error("Can't derive a non mnemonic account!");s((0,un.jsx)(Fie,{fingerprint:i.seedFingerPrint,onDone:c}))}:void 0,onRemove:()=>{s((0,un.jsx)(Pre,{buttonLabel:f,description:h,onSubmit:()=>{a?l(i.seedFingerPrint):u(i.type),c()},title:"Remove All Accounts"}))}})]}),t.map((e=>(0,un.jsx)(pn,{marginBottom:"16px",children:(0,un.jsx)(Are,{account:e,balance:r[e.address.pkh]})},e.address.pkh)))]})},Bie=e=>{switch(e.type){case"mnemonic":return`Seedphrase ${e.seedFingerPrint}`;case"social":return"Social Accounts";case"ledger":return"Ledger Accounts";case"secret_key":return"Secret Key Accounts";case"multisig":return"Multisig Accounts"}},Uie=()=>{const e=qH(),t=jR((e=>e.assets.balances.mutez)),r=(0,Va.groupBy)(e,Bie),{openWith:i}=(0,n.useContext)(mM),o=Object.entries(r).map((([e,r])=>(0,un.jsx)(zie,{accounts:r,balances:t,groupLabel:e},e)));return(0,un.jsx)(un.Fragment,{children:(0,un.jsx)(pn,{height:"100%",marginRight:0,children:(0,un.jsxs)(yne,{children:[(0,Va.compact)(o),(0,un.jsx)(Dn,{width:"100%",height:"90px",background:EP.black,border:"1px dashed",borderColor:EP.gray[500],onClick:()=>i((0,un.jsx)(Nie,{})),variant:"outline",children:(0,un.jsxs)(sz,{display:"block",width:"100%",margin:5,color:EP.gray[400],textAlign:"center",children:[(0,un.jsx)(Wj,{marginRight:1,stroke:EP.gray[450]}),"Create New Multisig"]})})]})})})},Fie=e=>{const{isLoading:t,handleAsyncAction:r}=k7(),n=cN(),i=(()=>{const e=$H(),t=HH(),r=WH(),n=pi();return async({fingerPrint:i,password:o,label:a})=>{const s=e[i];if(!s)throw new Error(`No seedphrase found with fingerprint: ${i}`);const c=await Ic(s,o),l=t.filter((e=>"mnemonic"===e.type&&e.seedFingerPrint===i)),u=l.length,d=l[0].derivationPathPattern,h=DH(d,u),{pk:f,pkh:p}=await B2(c,h),m=r(a,1)[0],g=zH(f,p,h,d,i,m);n(Nc.actions.addAccount(g))}})();return(0,un.jsxs)(iz,{children:[(0,un.jsx)(cz,{}),(0,un.jsx)(vne,{isLoading:t,onSubmit:({name:t,password:o})=>r((async()=>{await i({fingerPrint:e.fingerprint,password:o,label:t.trim()||jie}),e.onDone(),n({description:`New account created! Successfully derived account from ${e.fingerprint}`})}),{title:"Failed to derive new account"}),subtitle:`Name the new account derived from ${e.fingerprint}`})]})},$ie=({onClose:e})=>(0,un.jsx)(dn,{justifyContent:"flex-end",paddingBottom:"30px",cursor:"pointer",children:(0,un.jsx)(Hie,{onClose:e})}),Hie=({onClose:e})=>(0,un.jsxs)(Dn,{onClick:e,variant:"CTAWithIcon",children:[(0,un.jsx)(Ij,{stroke:"currentcolor"}),(0,un.jsx)(sz,{marginLeft:"4px",children:"Close"})]});function Vie(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==n}function qie(e={}){const{ref:t,isDisabled:r,isFocusable:i,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:c,onClick:l,onKeyDown:u,onKeyUp:d,tabIndex:h,onMouseOver:f,onMouseLeave:p,...m}=e,[g,v]=(0,n.useState)(!0),[y,b]=(0,n.useState)(!1),w=function(){const e=(0,n.useRef)(new Map),t=e.current,r=(0,n.useCallback)(((t,r,n,i)=>{e.current.set(n,{type:r,el:t,options:i}),t.addEventListener(r,n,i)}),[]),i=(0,n.useCallback)(((t,r,n,i)=>{t.removeEventListener(r,n,i),e.current.delete(n)}),[]);return(0,n.useEffect)((()=>()=>{t.forEach(((e,t)=>{i(e.el,e.type,t,e.options)}))}),[i,t]),{add:r,remove:i}}(),x=g?h:h||0,S=r&&!i,k=(0,n.useCallback)((e=>{if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)}),[r,l]),E=(0,n.useCallback)((e=>{y&&Vie(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),w.remove(document,"keyup",E,!1))}),[y,w]),A=(0,n.useCallback)((e=>{if(null==u||u(e),r||e.defaultPrevented||e.metaKey)return;if(!Vie(e.nativeEvent)||g)return;const t=o&&"Enter"===e.key;if(a&&" "===e.key&&(e.preventDefault(),b(!0)),t){e.preventDefault();e.currentTarget.click()}w.add(document,"keyup",E,!1)}),[r,g,u,o,a,w,E]),P=(0,n.useCallback)((e=>{if(null==d||d(e),r||e.defaultPrevented||e.metaKey)return;if(!Vie(e.nativeEvent)||g)return;if(a&&" "===e.key){e.preventDefault(),b(!1);e.currentTarget.click()}}),[a,g,r,d]),T=(0,n.useCallback)((e=>{0===e.button&&(b(!1),w.remove(document,"mouseup",T,!1))}),[w]),O=(0,n.useCallback)((e=>{if(0!==e.button)return;if(r)return e.stopPropagation(),void e.preventDefault();g||b(!0);e.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",T,!1),null==s||s(e)}),[r,g,s,w,T]),C=(0,n.useCallback)((e=>{0===e.button&&(g||b(!1),null==c||c(e))}),[c,g]),j=(0,n.useCallback)((e=>{r?e.preventDefault():null==f||f(e)}),[r,f]),R=(0,n.useCallback)((e=>{y&&(e.preventDefault(),b(!1)),null==p||p(e)}),[y,p]),I=Ln(t,(e=>{e&&"BUTTON"!==e.tagName&&v(!1)}));return g?{...m,ref:I,type:"button","aria-disabled":S?void 0:r,disabled:S,onClick:k,onMouseDown:s,onMouseUp:c,onKeyUp:d,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:I,role:"button","data-active":_(y),"aria-disabled":r?"true":void 0,tabIndex:S?void 0:x,onClick:k,onMouseDown:O,onMouseUp:C,onKeyUp:P,onKeyDown:A,onMouseOver:j,onMouseLeave:R}}var[Kie,Wie,Gie,Zie]=_z();var[Yie,Xie]=En({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});var[Jie,Qie]=En({});function eoe(e,t){return`${e}--tab-${t}`}function toe(e,t){return`${e}--tabpanel-${t}`}var[roe,noe]=En({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),ioe=g((function(e,t){const r=Sn("Tabs",e),{children:i,className:o,...a}=ht(e),{htmlProps:s,descendants:c,...l}=function(e){var t;const{defaultIndex:r,onChange:i,index:o,isManual:a,isLazy:s,lazyBehavior:c="unmount",orientation:l="horizontal",direction:u="ltr",...d}=e,[h,f]=(0,n.useState)(null!=r?r:0),[p,m]=jz({defaultValue:null!=r?r:0,value:o,onChange:i});(0,n.useEffect)((()=>{null!=o&&f(o)}),[o]);const g=Gie(),v=(0,n.useId)();return{id:`tabs-${null!=(t=e.id)?t:v}`,selectedIndex:p,focusedIndex:h,setSelectedIndex:m,setFocusedIndex:f,isManual:a,isLazy:s,lazyBehavior:c,orientation:l,descendants:g,direction:u,htmlProps:d}}(a),u=(0,n.useMemo)((()=>l),[l]),{isFitted:d,...h}=s,f={position:"relative",...r.root};return(0,un.jsx)(Kie,{value:c,children:(0,un.jsx)(Yie,{value:u,children:(0,un.jsx)(roe,{value:r,children:(0,un.jsx)(ln.div,{className:v("chakra-tabs",o),ref:t,...h,__css:f,children:i})})})})}));ioe.displayName="Tabs";var ooe=g((function(e,t){const r=function(e){const{focusedIndex:t,orientation:r,direction:i}=Xie(),o=Wie(),a=(0,n.useCallback)((e=>{const n=()=>{var e;const r=o.nextEnabled(t);r&&(null==(e=r.node)||e.focus())},a=()=>{var e;const r=o.prevEnabled(t);r&&(null==(e=r.node)||e.focus())},s="horizontal"===r,c="vertical"===r,l=e.key,u={["ltr"===i?"ArrowLeft":"ArrowRight"]:()=>s&&a(),["ltr"===i?"ArrowRight":"ArrowLeft"]:()=>s&&n(),ArrowDown:()=>c&&n(),ArrowUp:()=>c&&a(),Home:()=>{var e;const t=o.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;const t=o.lastEnabled();t&&(null==(e=t.node)||e.focus())}},d=u[l];d&&(e.preventDefault(),d(e))}),[o,t,r,i]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:k(e.onKeyDown,a)}}({...e,ref:t}),i={display:"flex",...noe().tablist};return(0,un.jsx)(ln.div,{...r,className:v("chakra-tabs__tablist",e.className),__css:i})}));ooe.displayName="TabList";var aoe=g((function(e,t){const r=function(e){const t=Xie(),{id:r,selectedIndex:i}=t,o=HU(e.children).map(((e,t)=>(0,n.createElement)(Jie,{key:t,value:{isSelected:t===i,id:toe(r,t),tabId:eoe(r,t),selectedIndex:i}},e)));return{...e,children:o}}(e),i=noe();return(0,un.jsx)(ln.div,{...r,width:"100%",ref:t,className:v("chakra-tabs__tab-panels",e.className),__css:i.tabpanels})}));aoe.displayName="TabPanels";var soe=g((function(e,t){const r=function(e){const{children:t,...r}=e,{isLazy:i,lazyBehavior:o}=Xie(),{isSelected:a,id:s,tabId:c}=Qie(),l=(0,n.useRef)(!1);return a&&(l.current=!0),{tabIndex:0,...r,children:Uee({wasSelected:l.current,isSelected:a,enabled:i,mode:o})?t:null,role:"tabpanel","aria-labelledby":c,hidden:!a,id:s}}({...e,ref:t}),i=noe();return(0,un.jsx)(ln.div,{outline:"0",...r,className:v("chakra-tabs__tab-panel",e.className),__css:i.tabpanel})}));function coe(e){const t=Tte(e);return t.setHours(0,0,0,0),t}soe.displayName="TabPanel";function loe(e,t){const r=coe(e),n=coe(t),i=r.getTime()-Yte(r),o=n.getTime()-Yte(n);return Math.round((i-o)/Ate)}function uoe(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function doe(e){if(!uoe(e)&&"number"!==typeof e)return!1;const t=Tte(e);return!isNaN(Number(t))}function hoe(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function foe(e){const t=Tte(e),r=hoe(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function poe(e){const t=Tte(e);return loe(t,foe(t))+1}function moe(e,t){const r=Zte(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Tte(e),o=i.getDay(),a=(o=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function yoe(e){const t=voe(e),r=hoe(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),goe(r)}function boe(e){const t=Tte(e),r=goe(t).getTime()-yoe(t).getTime();return Math.round(r/Ete)+1}function woe(e,t){const r=Tte(e),n=r.getFullYear(),i=Zte(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=hoe(e,0);a.setFullYear(n+1,0,o),a.setHours(0,0,0,0);const s=moe(a,t),c=hoe(e,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const l=moe(c,t);return r.getTime()>=s.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}function xoe(e,t){const r=Zte(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=woe(e,t),o=hoe(e,0);o.setFullYear(i,0,n),o.setHours(0,0,0,0);return moe(o,t)}function _oe(e,t){const r=Tte(e),n=moe(r,t).getTime()-xoe(r,t).getTime();return Math.round(n/Ete)+1}function Soe(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const koe={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Soe("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):Soe(r+1,2)},d:(e,t)=>Soe(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>Soe(e.getHours()%12||12,t.length),H:(e,t)=>Soe(e.getHours(),t.length),m:(e,t)=>Soe(e.getMinutes(),t.length),s:(e,t)=>Soe(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return Soe(Math.floor(n*Math.pow(10,r-3)),t.length)}},Eoe="midnight",Aoe="noon",Poe="morning",Toe="afternoon",Ooe="evening",Coe="night",joe={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return koe.y(e,t)},Y:function(e,t,r,n){const i=woe(e,n),o=i>0?i:1-i;if("YY"===t){return Soe(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):Soe(o,t.length)},R:function(e,t){return Soe(voe(e),t.length)},u:function(e,t){return Soe(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Soe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Soe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return koe.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Soe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=_oe(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):Soe(i,t.length)},I:function(e,t,r){const n=boe(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):Soe(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):koe.d(e,t)},D:function(e,t,r){const n=poe(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):Soe(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Soe(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Soe(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return Soe(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(i=12===n?Aoe:0===n?Eoe:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(i=n>=17?Ooe:n>=12?Toe:n>=4?Poe:Coe,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return koe.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):koe.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):Soe(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):Soe(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):koe.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):koe.s(e,t)},S:function(e,t){return koe.S(e,t)},X:function(e,t,r,n){const i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return Ioe(i);case"XXXX":case"XX":return Moe(i);default:return Moe(i,":")}},x:function(e,t,r,n){const i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ioe(i);case"xxxx":case"xx":return Moe(i);default:return Moe(i,":")}},O:function(e,t,r,n){const i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Roe(i,":");default:return"GMT"+Moe(i,":")}},z:function(e,t,r,n){const i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Roe(i,":");default:return"GMT"+Moe(i,":")}},t:function(e,t,r,n){const i=n._originalDate||e;return Soe(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,r,n){return Soe((n._originalDate||e).getTime(),t.length)}};function Roe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+Soe(o,2)}function Ioe(e,t){if(e%60===0){return(e>0?"-":"+")+Soe(Math.abs(e)/60,2)}return Moe(e,t)}function Moe(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+Soe(Math.floor(n/60),2)+t+Soe(n%60,2)}const Loe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Noe=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Doe={p:Noe,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Loe(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",Loe(n,t)).replace("{{time}}",Noe(i,t))}},zoe=/^D+$/,Boe=/^Y+$/,Uoe=["D","DD","YY","YYYY"];function Foe(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),Uoe.includes(e))throw new RangeError(n)}const $oe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Hoe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Voe=/^'([^]*?)'?$/,qoe=/''/g,Koe=/[a-zA-Z]/;function Woe(e,t,r){const n=Zte(),i=r?.locale??n.locale??Wte,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Tte(e);if(!doe(s))throw new RangeError("Invalid time value");const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i,_originalDate:s},l=t.match(Hoe).map((function(e){const t=e[0];if("p"===t||"P"===t){return(0,Doe[t])(e,i.formatLong)}return e})).join("").match($oe).map((function(n){if("''"===n)return"'";const o=n[0];if("'"===o)return function(e){const t=e.match(Voe);if(!t)return e;return t[1].replace(qoe,"'")}(n);const a=joe[o];if(a)return!r?.useAdditionalWeekYearTokens&&function(e){return Boe.test(e)}(n)&&Foe(n,t,String(e)),!r?.useAdditionalDayOfYearTokens&&function(e){return zoe.test(e)}(n)&&Foe(n,t,String(e)),a(s,n,i.localize,c);if(o.match(Koe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("");return l}function Goe(e,t,r){const n=Tte(e),i=Tte(t),o=Zte(),a=r?.locale??o.locale??Wte,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=loe(n,i);if(isNaN(c))throw new RangeError("Invalid time value");let l;l=c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other";return Woe(n,a.formatRelative(l,n,i,{locale:a,weekStartsOn:s}),{locale:a,weekStartsOn:s})}const Zoe=({title:e,children:t,small:r=!1})=>{const n=r?"md":"3xl";return(0,un.jsx)(dn,{alignItems:"center",justifyContent:"center",width:"100%",height:"100%",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(kn,{padding:"42px",size:n,children:e}),(0,un.jsx)(hn,{children:t})]})})},Yoe=({small:e})=>(0,un.jsx)(Zoe,{small:e,title:"No NFTs found",children:(0,un.jsx)($re,{href:"https://objkt.com",children:(0,un.jsx)(Dn,{size:e?"md":"lg",children:"Buy your first NFT"})})}),Xoe=({small:e})=>(0,un.jsx)(Zoe,{small:e,title:"No operations found"}),Joe=({small:e,onDelegate:t})=>(0,un.jsx)(Zoe,{small:e,title:"Currently not delegating",children:(0,un.jsx)(Dn,{onClick:t,size:e?"md":"lg",children:"Start delegating"})}),Qoe=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=dte(n,r,t),h=o.operations[0].recipient;return(0,un.jsx)(PB,{...c,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:o.type,signer:o.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:l.address}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(M7,{fee:i})})}),(0,un.jsx)(FU,{children:"To"}),(0,un.jsx)(h3,{address:h}),(0,un.jsx)(ate,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:U7(o.type,t)})})]})})})},eae=e=>{var t;const r=null===(t=e.form)||void 0===t?void 0:t.baker,n=vte({SignPage:Qoe,signPageExtraData:void 0,FormPage:eae,defaultFormPageProps:e,toOperation:tae}),i=yte(tae),{onFormSubmitActionHandlers:[o,a],isLoading:s}=bte([n,i]),c=MU({mode:"onBlur",defaultValues:ute(e)}),{formState:{isValid:l,errors:u},handleSubmit:d}=c;return(0,un.jsx)(PB,{...c,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsxs)(L7,{children:[(0,un.jsx)(sz,{fontWeight:"600",size:"2xl",children:r?"Change Baker":"Delegate"}),(0,un.jsx)(cz,{})]}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!u.sender,children:[(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!!e.sender,label:"From"}),u.sender&&(0,un.jsx)(A7,{"data-testid":"from-error",children:u.sender.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px","data-testid":"baker",isInvalid:!!u.baker,children:[(0,un.jsx)(w3,{allowUnknown:!0,inputName:"baker",label:"Baker"}),u.baker&&(0,un.jsx)(A7,{children:u.baker.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:s,isValid:l,onAddToBatch:d(a),onSingleSubmit:d(o)})})]})})})},tae=e=>({type:"delegation",sender:qu(e.sender),recipient:Yu(e.baker)}),rae=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=dte(n,r,t);return(0,un.jsx)(PB,{...c,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:o.type,signer:o.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{address:l.address}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",paddingX:"4px",children:(0,un.jsx)(M7,{fee:i})}),(0,un.jsx)(ate,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:U7(o.type,t)})})]})})})},nae=e=>{var t;const{sender:r}=e,n=null===(t=e.form)||void 0===t?void 0:t.baker,i=vte({SignPage:rae,signPageExtraData:void 0,FormPage:nae,defaultFormPageProps:{sender:r},toOperation:iae}),o=yte(iae),{onFormSubmitActionHandlers:[a,s],isLoading:c}=bte([i,o]),l=MU({mode:"onBlur",defaultValues:ute({sender:r})}),{handleSubmit:u}=l;return(0,un.jsx)(PB,{...l,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(N7,{subTitle:"Select preview to end delegation or insert this transaction into a Batch.",title:"End delegation"}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(Zz,{children:(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"})}),(0,un.jsx)(FU,{marginTop:"24px",children:"Baker"}),n&&(0,un.jsx)(h3,{address:qu(n)})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:c,isValid:!0,onAddToBatch:u(s),onSingleSubmit:u(a)})})]})})})},iae=e=>({type:"undelegation",sender:qu(e.sender)}),oae=({label:e,value:t,...r})=>(0,un.jsxs)(dn,{alignItems:"center",height:"50px",padding:"16px","data-testid":e,...r,children:[(0,un.jsx)(pn,{flex:1,children:(0,un.jsx)(kn,{color:EP.gray[400],size:"sm",children:e})}),(0,un.jsx)(pn,{flex:1,children:"string"===typeof t?(0,un.jsx)(sz,{size:"sm",children:t}):t})]}),aae=({delegation:e,account:t})=>{const{openWith:r}=(0,n.useContext)(mM),i=ZH(),o=(()=>{const e=i3();return t=>{const r=e(t.sender),n=new Date;return{initialBalance:Z2(t.amount),currentBalance:r&&Z2(r),duration:`Since ${Goe(new Date(t.timestamp),n)}`}}})();if(!e)return(0,un.jsx)(Joe,{onDelegate:()=>{r((0,un.jsx)(eae,{sender:t}))},small:!0});const{currentBalance:a,duration:s,initialBalance:c}=o(e),{sender:l,delegate:{address:u}}=e,d=i(l);return(0,un.jsxs)(pn,{children:[(0,un.jsx)(oae,{borderBottom:`1px solid ${EP.gray[700]}`,borderTopRadius:"8px",_odd:{bg:EP.gray[800]},label:"Initial Balance:",value:c}),a&&(0,un.jsx)(oae,{_odd:{bg:EP.gray[800]},label:"Current Balance:",value:a}),(0,un.jsx)(oae,{borderBottom:`1px solid ${EP.gray[700]}`,_odd:{bg:EP.gray[800]},label:"Duration:",value:s}),(0,un.jsx)(oae,{borderBottomRadius:"8px",_odd:{bg:EP.gray[800]},label:"Baker:",value:(0,un.jsx)(gre,{address:qu(e.delegate.address)})}),(0,un.jsxs)(dn,{marginTop:"24px",children:[(0,un.jsx)(Dn,{flex:1,marginRight:"16px",onClick:()=>r((0,un.jsx)(nae,{form:{sender:l,baker:u},sender:d})),variant:"warning",children:"End Delegation"}),(0,un.jsx)(Dn,{flex:1,onClick:()=>{r((0,un.jsx)(eae,{form:{sender:l,baker:u},sender:d}))},variant:"tertiary",children:"Change Baker"})]})]})};function sae(e){return Qj({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"17",x2:"17",y2:"7"}},{tag:"polyline",attr:{points:"7 7 17 7 17 17"}}]})(e)}const cae=({operation:e})=>{switch(e.type){case"delegation":return(0,un.jsxs)(pn,{margin:1,paddingLeft:5,"data-testid":"decoded-item-delegate",marginY:6,children:["Delegate to ",(0,un.jsx)(gre,{address:e.recipient})]});case"undelegation":return(0,un.jsx)(pn,{margin:1,paddingLeft:5,"data-testid":"decoded-item-undelegate",marginY:6,children:"End Delegation"});case"tez":case"fa1.2":case"fa2":return(0,un.jsxs)(pn,{marginY:6,children:[(0,un.jsx)(lae,{operation:e}),(0,un.jsxs)(dn,{alignItems:"center",margin:1,paddingLeft:5,children:[(0,un.jsx)(kn,{marginRight:2,color:EP.gray[400],size:"sm",children:"Send to :"}),(0,un.jsx)(gre,{address:e.recipient})]})]});case"contract_origination":case"contract_call":throw new Error(`${e.type} is not suported yet`)}},lae=({operation:e})=>{const t=q2();switch(e.type){case"tez":return(0,un.jsxs)(dn,{alignItems:"center","data-testid":"decoded-tez-amount",children:[(0,un.jsx)(LA,{as:sae,width:5,height:5,color:EP.gray[400]}),(0,un.jsxs)(sz,{marginLeft:1,textAlign:"center",children:["-",Z2(e.amount)]})]});case"fa1.2":case"fa2":{const r=t(e.contract.pkh,e.tokenId);if(!r)return null;const n=rd(r),i="nft"===r.type;return(0,un.jsxs)(dn,{alignItems:"center","data-testid":"decoded-fa-amount",children:[(0,un.jsx)(LA,{as:sae,width:5,height:5,color:EP.gray[400]}),i?(0,un.jsxs)(sz,{marginLeft:1,textAlign:"center",children:[e.amount," ",n]}):(0,un.jsxs)(sz,{marginLeft:1,textAlign:"center",children:["-",ld(e.amount,r,{showSymbol:!0})]})]})}case"delegation":case"undelegation":case"contract_origination":case"contract_call":return null}},uae=e=>Hu.string().regex(new RegExp(`^${e}$`,"i")),dae=e=>Hu.object({prim:uae(e)}),hae=Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([Hu.object({prim:Hu.literal("key_hash")}),Hu.object({bytes:Hu.string()})])}),fae=Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([Hu.object({prim:Hu.literal("address")}),Hu.object({bytes:Hu.string()})])}),pae=(e,t)=>Hu.object({prim:Hu.literal("Pair"),args:Hu.tuple([e,t])}),mae=Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([Hu.object({prim:Hu.literal("mutez")}),Hu.object({int:Hu.literal("0")})])}),gae=[dae("TRANSFER_TOKENS"),dae("CONS")],vae=Hu.object({prim:Hu.literal("CONTRACT")}),yae=Hu.tuple([Hu.object({prim:Hu.literal("DROP")}),Hu.object({prim:Hu.literal("NIL"),args:Hu.array(Hu.object({prim:Hu.literal("operation")}))})]),bae=Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([Hu.object({prim:Hu.literal("mutez")}),Hu.object({int:Hu.string()})])}),wae=Hu.tuple([hae,dae("IMPLICIT_ACCOUNT"),bae,dae("UNIT"),...gae]),xae=Hu.tuple([fae,vae,dae("IF_NONE"),bae,dae("UNIT"),...gae]),_ae=Hu.tuple([hae,dae("SOME"),dae("SET_DELEGATE"),dae("CONS")]),Sae=Hu.tuple([Hu.object({prim:Hu.literal("NONE"),args:Hu.tuple([Hu.object({prim:Hu.literal("key_hash")})])}),dae("SET_DELEGATE"),dae("CONS")]),kae=Hu.tuple([fae,vae,Hu.tuple([dae("IF_NONE")]),mae,Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([dae("list"),Hu.array(pae(Hu.object({bytes:Hu.string({description:"from"})}),Hu.array(pae(Hu.object({bytes:Hu.string({description:"to"})}),pae(Hu.object({int:Hu.string({description:"token_id"})}),Hu.object({int:Hu.string({description:"amount"})}))))))])}),...gae]),Eae=Hu.tuple([fae,vae,Hu.tuple([dae("IF_NONE")]),mae,Hu.object({prim:Hu.literal("PUSH"),args:Hu.tuple([dae("Pair"),pae(Hu.object({bytes:Hu.string({description:"from"})}),pae(Hu.object({bytes:Hu.string({description:"to"})}),Hu.object({int:Hu.string({description:"amount"})})))])}),...gae]);class Aae extends Error{}const Pae=e=>(42===e.length&&(e="00"+e),bc(e)),Tae=[{schema:wae,parsingFn:e=>{const t=wae.parse(e),r=t[0].args[1].bytes,n=t[2].args[1].int;return{type:"tez",recipient:Yu(Pae(r)),amount:n}}},{schema:xae,parsingFn:e=>{const t=xae.parse(e),r=t[0].args[1].bytes,n=t[3].args[1].int;return{type:"tez",recipient:Zu(Pae(r)),amount:n}}},{schema:kae,parsingFn:e=>{const t=kae.parse(e),r=Zu(Pae(t[0].args[1].bytes));return t[4].args[1].flatMap((e=>{const t=e.args[0].bytes;return e.args[1].map((e=>{const n=e.args[0].bytes,i=e.args[1].args[0].int,o=e.args[1].args[1].int;return{type:"fa2",contract:r,sender:qu(Pae(t)),recipient:qu(Pae(n)),tokenId:i,amount:o}}))}))}},{schema:Eae,parsingFn:e=>{const t=Eae.parse(e),r=t[0],n=t[4].args[1],i=n.args[0].bytes,o=n.args[1].args[0].bytes;return{type:"fa1.2",amount:n.args[1].args[1].int,contract:Zu(Pae(r.args[1].bytes)),recipient:qu(Pae(o)),sender:qu(Pae(i)),tokenId:"0"}}},{schema:_ae,parsingFn:(e,t)=>{const r=_ae.parse(e);return{type:"delegation",sender:t.address,recipient:Yu(Pae(r[0].args[1].bytes))}}},{schema:Sae,parsingFn:(e,t)=>({type:"undelegation",sender:t.address})}],Oae=(e,t,r=[])=>{if(0===e.length)return r;for(let n=0;n((e=>{yae.parse(e.slice(0,2))})(e),Oae(e.slice(2),t)),jae=(e,t)=>{const r=JSON.parse(e);return Cae(r,t)},Rae=({rawActions:e,sender:t})=>{try{const r=jae(e,t);return(0,un.jsx)(pn,{children:r.map(((e,t)=>(0,un.jsx)(cae,{operation:e},t)))})}catch(Cle){return Cle instanceof Aae?(0,un.jsx)(Iae,{unrecoginizedRawActions:e}):(0,un.jsxs)(pn,{children:["Invalid michelson code: ",Cle.message]})}},Iae=({unrecoginizedRawActions:e})=>(0,un.jsx)(Nz,{width:"70%",marginBottom:2,allowMultiple:!0,children:(0,un.jsxs)(Dz,{marginBottom:"2",background:"umami.gray.800",border:"none",borderRadius:"8px",children:[(0,un.jsx)("h2",{children:(0,un.jsxs)(zz,{children:[(0,un.jsx)(pn,{as:"span",flex:"1",paddingLeft:1,textAlign:"left",children:"Unrecognized operation"}),(0,un.jsx)(Bz,{})]})}),(0,un.jsx)(Vz,{overflowY:"scroll",height:"400px",paddingBottom:3,children:(0,un.jsx)(UU,{space:1,value:JSON.parse(e)})})]})});function Mae(e){return Qj({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M13 6H11V7C11 7.55228 11.4477 8 12 8C12.5523 8 13 7.55228 13 7V6Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2V4H7V7C7 9.76142 9.23858 12 12 12C9.23858 12 7 14.2386 7 17V20H6V22H18V20H17V17C17 14.2386 14.7614 12 12 12C14.7614 12 17 9.76142 17 7V4H18V2H6ZM9 4H15V7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7V4ZM9 17V20H15V17C15 15.3431 13.6569 14 12 14C10.3431 14 9 15.3431 9 17Z",fill:"currentColor"}}]})(e)}const Lae=({icon:e,onClick:t=(()=>{}),label:r,iconWidth:n=4,iconHeight:i=4,textMargin:o="4px",iconColor:a,textFirst:s,...c})=>{const l=(0,un.jsx)(LA,{as:e,width:n,height:i,color:a}),u=s?{mr:o}:{ml:o},d=(0,un.jsx)(sz,{...u,fontSize:"sm",children:r});return(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",color:"text.dark",_hover:{color:EP.gray[300]},cursor:"pointer",onClick:t,role:"button",...c,children:[s?d:null,l,s?null:d]})},Nae=({onClickApproveExecute:e,isLoading:t=!1,signerState:r})=>{switch(r){case"awaitingApprovalByExternalSigner":return(0,un.jsx)(Lae,{"data-testid":"multisig-signer-awaiting-approval",icon:Mae,iconColor:EP.orange,iconHeight:5,iconWidth:5,label:"Awaiting Approval"});case"approved":return(0,un.jsx)(Lae,{"data-testid":"multisig-signer-approved",icon:kee,iconColor:EP.greenL,iconHeight:5,iconWidth:5,label:"Approved"});case"executable":return(0,un.jsx)(Dn,{"data-testid":"multisig-signer-button",isLoading:t,onClick:e,children:"Execute"});case"approvable":return(0,un.jsx)(Dn,{"data-testid":"multisig-signer-button",isLoading:t,onClick:e,children:"Approve"})}},Dae=({signer:e,fee:t,operation:r,actionType:i,transactionCount:o})=>{const{handleAsyncAction:a}=k7(),{openWith:s}=(0,n.useContext)(mM),c=`${(0,Va.capitalize)(i)} transaction`;return(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(Tre,{fee:t,signer:e,title:c,transactionCount:o}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{onSubmit:e=>a((async()=>{const{opHash:t}=await z2(r,e);s((0,un.jsx)(j7,{hash:t}))}),{title:`Failed ${i}`}),signer:e,text:c})})]})})},zae=({pendingApprovals:e,sender:t,operation:r,signerAddress:i})=>{const o=a3(i),a=VH(),{isLoading:s,handleAsyncAction:c}=k7(),{openWith:l}=(0,n.useContext)(mM),u=$2(),d=a(i.pkh),h=0===e,f=Bae({approvals:r.approvals,signerAddress:i,operationIsExecutable:h,signerAccount:d});return(0,un.jsx)(Sre,{icon:(0,un.jsx)(xre,{addressKind:o}),leftElement:(0,un.jsx)(kre,{label:o.label,pkh:o.pkh}),rightElement:(0,un.jsx)(Nae,{isLoading:s,onClickApproveExecute:()=>c((async()=>{if(!d)throw new Error("Can't approve or execute with an account you don't own");const e=h?"execute":"approve",n=ste(d,d,[Y1(t.address,e,r.id)]),i=await l2(n,u),o=jae(r.rawActions,t).length;l((0,un.jsx)(Dae,{actionType:e,fee:i,operation:n,signer:d,transactionCount:o}))})),signerState:f})})},Bae=({signerAccount:e,operationIsExecutable:t,approvals:r,signerAddress:n})=>{const i=!!r.find((e=>e.pkh===n.pkh));return e?i&&!t?"approved":t?"executable":"approvable":i?"approved":"awaitingApprovalByExternalSigner"},Uae=({operation:e,sender:t})=>{const{signers:r,threshold:n}=t,i=Math.max(n-e.approvals.length,0);return(0,un.jsx)(pn,{padding:3,paddingBottom:0,background:EP.gray[800],borderRadius:6,"data-testid":"multisig-pending-operation-"+e.id,marginY:3,children:(0,un.jsxs)(Dz,{border:"none",borderRadius:"8px",children:[(0,un.jsx)("h2",{children:(0,un.jsxs)(zz,{flex:"1",marginBottom:0,paddingBottom:0,textAlign:"left",children:[(0,un.jsxs)(kn,{width:"100%",size:"sm",children:["Pending #",e.id]}),(0,un.jsx)(Bz,{})]})}),(0,un.jsxs)(Vz,{children:[(0,un.jsxs)(dn,{alignItems:"end",justifyContent:"space-between",marginY:2,children:[(0,un.jsx)(Rae,{rawActions:e.rawActions,sender:t}),(0,un.jsxs)(dn,{alignItems:"center",marginBottom:"6",children:[(0,un.jsx)(kn,{marginRight:1,color:EP.gray[400],size:"sm",children:"Pending Approvals:"}),(0,un.jsx)(sz,{color:"w","data-testid":"pending-approvals-count",children:i})]})]}),(0,un.jsx)(pn,{marginY:5,children:r.map((r=>(0,un.jsx)(zae,{operation:e,pendingApprovals:i,sender:t,signerAddress:r},r.pkh)))})]})]})})},Fae=({account:e})=>{const t=(()=>{const e=jR((e=>e.multisigs.pendingOperations));return t=>{var r;return[...null!==(r=e[t.pendingOperationsBigmapId])&&void 0!==r?r:[]].sort(((e,t)=>Number(t.id)-Number(e.id)))}})(),r=t(e);return 0===r.length?(0,un.jsx)(Zoe,{small:!0,title:"No multisig pending operations"}):(0,un.jsx)(pn,{width:"100%",children:(0,un.jsx)(Nz,{allowMultiple:!0,defaultIndex:(0,Va.range)(r.length),children:r.map((t=>(0,un.jsx)(Uae,{operation:t,sender:e},t.id)))})})},$ae=({to:e})=>(0,un.jsx)(hn,{children:(0,un.jsxs)(Bn,{as:vO,color:EP.gray[300],stroke:EP.gray[450],_hover:{color:EP.green,stroke:EP.green},to:e,children:[(0,un.jsx)(dR,{display:"inline",stroke:"inherit"}),(0,un.jsx)(sz,{display:"inline",size:"sm",children:"\xa0View All"})]})}),Hae=({owner:e,nfts:t,...r})=>{if(0===t.length)return(0,un.jsx)(Yoe,{small:!0});const n=bre(t).slice(0,18);return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Aie,{marginBottom:"35px",spacing:"12px",...r,children:n.map((t=>{const r=yre(dd(t)),n={width:"100%",height:40,fallbackSrc:yre(t.displayUri),src:r};return(0,un.jsx)(vO,{"data-testid":"nft-link",to:`/home/${e}/${td(t)}`,children:(0,un.jsx)(zU,{background:EP.gray[800],border:"1px solid transparent",_hover:{background:EP.gray[700],borderColor:EP.gray[500]},children:(0,un.jsxs)(BU,{overflow:"hidden",padding:"8px",borderRadius:"6px",children:[(0,un.jsx)(hn,{children:(0,un.jsxs)(pn,{position:"relative",width:"100%",height:"100%",children:[(0,un.jsx)(dz,{zIndex:2,width:"100%",opacity:"0",ratio:1,children:(0,un.jsx)(bR,{...n,width:"100%",height:40})}),(0,un.jsx)(dz,{position:"absolute",zIndex:0,top:"0",width:"100%",filter:"blur(20px)",ratio:1,children:(0,un.jsx)(bR,{...n,width:"100%",height:40})}),(0,un.jsx)(dz,{position:"absolute",zIndex:1,top:"0",width:"100%",ratio:1,children:(0,un.jsx)(bR,{...n,width:"100%",height:40})})]})}),Number(t.balance)>1&&(0,un.jsx)(sz,{position:"absolute",display:"inline",height:"20px",marginTop:"-24px",marginLeft:"4px",padding:"0 8px",borderRadius:"100px",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",size:"xs",children:"x"+t.balance})]})})},`${e}:${td(t)}`)}))}),t.length>18&&(0,un.jsx)($ae,{to:`/nfts?accounts=${e}`})]})},Vae=n.createContext({mode:"page"}),qae=["bakerFee","storageFee","allocationFee"],Kae=({operation:e})=>{const t=(0,n.useContext)(Vae),r=YH(e.sender.address);if("drawer"===t.mode)return null;if(!r)return null;const i=qae.reduce(((t,r)=>r in e?t.plus((0,Va.get)(e,r)||0):t),Bs(0));return i.eq(0)?null:(0,un.jsxs)(hn,{children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"md",children:"Fee:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"fee",children:Z2(i)})]})},Wae=({level:e,status:t})=>{const r=X2(e);return void 0===t||"applied"===t?r?(0,un.jsx)(bj,{"data-testid":"checkmark"}):(0,un.jsx)(qj,{"data-testid":"hourglass"}):(0,un.jsx)(Aj,{"data-testid":"crossed-circle"})},Gae=({children:e})=>"drawer"===(0,n.useContext)(Vae).mode?null:(0,un.jsx)(sz,{marginRight:"4px",color:EP.gray[300],"data-testid":"operation-type",size:"sm",children:e});function Zae(e,t){const r=Tte(e),n=Tte(t),i=Yae(r,n),o=Math.abs(loe(r,n));r.setDate(r.getDate()-i*o);const a=i*(o-Number(Yae(r,n)===-i));return 0===a?0:a}function Yae(e,t){const r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}const Xae=({timestamp:e})=>e?(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"timestamp",size:"sm",children:Jae(e)}):null,Jae=e=>{const t=new Date,r=new Date(e);return Zae(t,r)<2?Xte(r,t,{addSuffix:!0}):Woe(r,"dd MMM yyyy")},Qae=({hash:e,counter:t,transactionId:r,originationId:n,migrationId:i,children:o,...a})=>{const{tzktExplorerUrl:s}=$2();let c=s;return e?c=(0,Va.compact)([s,e,t]).join("/"):i?c=`${c}/migrations/${i}`:n?c=`${c}/originations/${n}`:r?c=`${c}/transactions/${r}`:console.warn("No id provided to TzktLink"),(0,un.jsx)(Bn,{"data-testid":"tzkt-link",href:c,isExternal:!0,...a,children:o})},ese=e=>{const t=(0,n.useContext)(Vae);return!!e&&("page"===t.mode||t.selectedAddress.pkh!==e)},tse=({operation:e})=>{var t;const r=ese(e.target.address),n=ese(e.sender.address),i=!r&&!n;return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-contract-call",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(Ej,{marginRight:"8px"}),(0,un.jsx)(Qae,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,un.jsxs)(kn,{size:"md",children:["Contract Call: ",null===(t=e.parameter)||void 0===t?void 0:t.entrypoint]})}),(0,un.jsx)(Kae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Xae,{timestamp:e.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsxs)(dn,{children:[r&&(0,un.jsxs)(dn,{marginRight:"15px","data-testid":"to",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(gre,{address:e.target})]}),(n||i)&&(0,un.jsxs)(dn,{"data-testid":"from",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(gre,{address:e.sender})]})]}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Gae,{children:"Contract Call"}),(0,un.jsx)(Wae,{...e})]})]})})]})},rse=({operation:e})=>{const t=!!e.newDelegate,r=t?"Delegate":"Delegation Ended",n=ese(e.sender.address);return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-delegation",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(gj,{marginRight:"8px"}),(0,un.jsx)(Qae,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,un.jsx)(kn,{size:"md",children:r})}),(0,un.jsx)(Kae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Xae,{timestamp:e.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsxs)(dn,{children:[t&&(0,un.jsxs)(dn,{marginRight:"15px","data-testid":"to",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(gre,{address:e.newDelegate})]}),n&&(0,un.jsxs)(dn,{"data-testid":"from",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(gre,{address:e.sender})]}),!t&&!n&&(0,un.jsx)(sz,{color:EP.gray[450],children:"N/A"})]}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Gae,{children:r}),(0,un.jsx)(Wae,{...e})]})]})})]})},nse=({operation:e})=>{var t;const r=(null===(t=e.originatedContract)||void 0===t?void 0:t.codeHash)===iee&&e.originatedContract.typeHash===nee?"Multisig Account Created":"Contract Origination",n=ese(e.sender.address);return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-origination",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(Ej,{marginRight:"8px"}),(0,un.jsx)(Qae,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,un.jsx)(kn,{size:"md",children:r})}),(0,un.jsx)(Kae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Xae,{timestamp:e.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsx)(dn,{"data-testid":"from",children:n?(0,un.jsxs)(dn,{marginRight:"15px",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(gre,{address:e.sender})]}):(0,un.jsx)(sz,{color:EP.gray[450],children:"N/A"})}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Gae,{children:"Contract Origination"}),(0,un.jsx)(Wae,{...e})]})]})})]})},ise=({isOutgoing:e,...t})=>e?(0,un.jsx)(cR,{"data-testid":"outgoing-arrow",...t}):(0,un.jsx)(Kj,{"data-testid":"incoming-arrow",...t}),ose=({operation:e,tokenTransfer:t,token:r})=>{var n,i;const o=t.amount,a=ese(t.to.address),s=ese((null===(n=t.from)||void 0===n?void 0:n.address)||""),c=!a&&!s,l=YH((null===(i=t.from)||void 0===i?void 0:i.address)||""),u="nft"===r.type,d=ld(o,r,{showSymbol:!0}),h=l?EP.orange:EP.green,f=u?"white":h,p=l?"-":"+",m=u?(0,un.jsx)(eH,{padding:"8px",background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],borderRadius:"8px","data-testid":"nft-tooltip",label:(0,un.jsx)(dz,{width:"170px",height:"170px",ratio:1,children:(0,un.jsx)(bR,{src:yre(dd(r))})}),children:(0,un.jsx)(dn,{children:(0,un.jsxs)(Qae,{marginRight:"8px",color:f,"data-testid":"title",migrationId:t.migrationId,originationId:t.originationId,transactionId:t.transactionId,children:[(0,un.jsxs)(sz,{display:"inline",color:h,fontWeight:"600",children:[p,d]}),(0,un.jsxs)(sz,{display:"inline",fontWeight:"600",children:[" ",rd(r)]})]})})}):(0,un.jsx)(Qae,{marginRight:"8px",color:f,"data-testid":"title",migrationId:t.migrationId,originationId:t.originationId,transactionId:t.transactionId,children:(0,un.jsxs)(sz,{display:"inline",color:h,fontWeight:"600",children:[p,d]})});return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-token-transfer",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(ise,{marginRight:"8px",isOutgoing:l}),m,e&&(0,un.jsx)(Kae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Xae,{timestamp:t.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsxs)(dn,{children:[(a||c)&&(0,un.jsxs)(dn,{marginRight:"15px","data-testid":"to",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(gre,{address:t.to})]}),s&&(0,un.jsxs)(dn,{"data-testid":"from",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(gre,{address:t.from})]})]}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Gae,{children:"Token Transfer"}),(0,un.jsx)(Wae,{level:t.level})]})]})})]})},ase=({operation:e})=>{const t=YH(e.sender.address),r=Z2(String(e.amount)),n=ese(e.target.address),i=ese(e.sender.address),o=!n&&!i,a=t?EP.orange:EP.green,s=t?"-":"+";return(0,un.jsxs)(dn,{flexDirection:"column",width:"100%","data-testid":"operation-tile-transaction",children:[(0,un.jsxs)(dn,{justifyContent:"space-between",marginBottom:"10px",children:[(0,un.jsxs)(hn,{children:[(0,un.jsx)(ise,{marginRight:"8px",isOutgoing:t}),(0,un.jsx)(Qae,{marginRight:"8px",color:a,counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,un.jsxs)(sz,{color:a,fontWeight:"600",children:[s," ",r]})}),(0,un.jsx)(Kae,{operation:e})]}),(0,un.jsx)(dn,{alignSelf:"flex-end",children:(0,un.jsx)(Xae,{timestamp:e.timestamp})})]}),(0,un.jsx)(pn,{children:(0,un.jsxs)(dn,{justifyContent:"space-between",children:[(0,un.jsxs)(dn,{children:[(n||o)&&(0,un.jsxs)(dn,{marginRight:"15px","data-testid":"to",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"To:"}),(0,un.jsx)(gre,{address:qu(e.target.address)})]}),i&&(0,un.jsxs)(dn,{"data-testid":"from",children:[(0,un.jsx)(sz,{marginRight:"6px",color:EP.gray[450],children:"From:"}),(0,un.jsx)(gre,{address:qu(e.sender.address)})]})]}),(0,un.jsxs)(hn,{children:[(0,un.jsx)(Gae,{children:"Transaction"}),(0,un.jsx)(Wae,{...e})]})]})})]})},sse=({operation:e})=>{const t=(()=>{const e=jR((e=>e.assets.transfers.tokens));return t=>e[t]})();switch(e.type){case"token_transfer":{const t=ed(e.token);return t?(0,un.jsx)(ose,{token:t,tokenTransfer:e}):(console.warn(`Could not parse token transfer ${e.id}`),null)}case"transaction":{const r=!!e.parameter,n=t(e.id);if(n){const t=ed(n.token);return t?(0,un.jsx)(ose,{operation:e,token:t,tokenTransfer:n}):(0,un.jsx)(ase,{operation:e})}return r?(0,un.jsx)(tse,{operation:e}):(0,un.jsx)(ase,{operation:e})}case"delegation":return(0,un.jsx)(rse,{operation:e});case"origination":return(0,un.jsx)(nse,{operation:e})}},cse=({owner:e,operations:t})=>{if(0===t.length)return(0,un.jsx)(Xoe,{small:!0});const r=t.slice(0,20);return(0,un.jsxs)(un.Fragment,{children:[r.map(((e,t)=>(0,un.jsxs)(pn,{height:"90px",children:[(0,un.jsx)(sse,{operation:e}),t20&&(0,un.jsx)($ae,{to:`/operations?accounts=${e}`})]})},lse=["KT1XnTn74bUtxHfDtBmm2bGZAQfhPbvKWR8o","KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1K9gCRgaLRFKTErYt1wVxA3Frb9FjasjTV","KT1Ha4yFVeyzw6KRAdkzq6TxDHB97KG4pZe8","KT1JBNFcB5tiycHNdYGYCtR3kk6JaJysUCi8","KT1Xobej4mc6XgEjDoJoHtTKgbD1ELMvcQuL","KT1JVjgXPMMSaa6FkzeJcgb8q9cUaLmwaJUX","KT193D4vozYnhGJQVtw7CoxxqphqUEEwK6Vb","KT1LN4LPSqTMS7Sd2CJw4bbDGRkMv2t68Fy9","KT1914CUZ7EegAFPbfgQMRkw8Uz5mYkEz2ui","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT19ovJhcsUn4YU8Q5L3BGovKSixfbWcecEA","KT1TgmD7kXQzofpuc9VbTRMdZCS2e6JDuTtc","KT1F1mn2jbqQCJcsNgYKVAQjvenecNMY2oPK","KT1ErKVqEhG9jxXgUG2KGLW3bNM7zXHX8SDF","KT1A5P4ejnLix13jtadsfV9GCnXLMNnab8UT","KT1AM3PV1cwmGRw28DVTgsjjsjHvmL6z4rGh","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT1SjXiUX63QvdNMcM2m492f7kuf8JxXRLp4","KT1MZg99PxMDEENwB4Fi64xkqAVh5d1rv8Z9","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT1XTxpQvo7oRCqp85LikEZgAZ22uDxhbWJv","KT1VaEsVNiBoA56eToEK6n6BcPgh1tdx9eXi"],use=({token:e,...t})=>{const r=lse.includes(e.contract);return(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(sz,{...t,marginRight:"4px",children:rd(e)}),r&&(0,un.jsx)(kR,{})]})},dse=({owner:e,tokens:t})=>{if(0===t.length)return(0,un.jsx)(Zoe,{small:!0,title:"No tokens found"});const r=t.slice(0,20);return(0,un.jsxs)(pn,{children:[r.map((e=>(0,un.jsx)(hse,{token:e},td(e)))),t.length>20&&(0,un.jsx)($ae,{to:`/tokens?accounts=${e}`})]})},hse=({token:e})=>{const t=ld(e.balance,e,{showSymbol:!1});return(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-around",height:20,borderBottom:`1px solid ${EP.gray[800]}`,"data-testid":"token-tile",children:[(0,un.jsxs)(dn,{alignItems:"center",flex:1,children:[(0,un.jsx)(wR,{width:"38px",background:EP.gray[500],borderRadius:"4px",contract:e.contract}),(0,un.jsx)(pn,{marginLeft:"16px",children:(0,un.jsx)(use,{fontWeight:600,"data-testid":"token-name",token:e})})]}),(0,un.jsx)(kn,{"data-testid":"token-balance",size:"lg",children:t})]})},fse=(e,t)=>`${e.tzktExplorerUrl}/${t}`,pse=e=>{const t=$2(),[r,i]=(0,n.useState)([]),[o,a]=(0,n.useState)(!0),[s,c]=(0,n.useState)(!0),{isLoading:l,handleAsyncAction:u}=k7(),[d,h]=(0,n.useState)(e),f=CR(),[p,m]=(0,n.useState)(0);(0,n.useEffect)((()=>{const e=setInterval((()=>{u((async()=>{var e;const n=null===(e=r[0])||void 0===e?void 0:e.id,o=await mse(f,t,d,{lastId:n,sort:"asc"});i((e=>(0,Va.uniqBy)([...o.reverse(),...e],(e=>e.id))))}))}),15e3);return()=>clearInterval(e)}),[p]);const g=d.join(",");(0,n.useEffect)((()=>{i([]),a(!0),u((async()=>{const e=await mse(f,t,g.split(","));i(e),a(e.length>0),m((e=>e+1))})).finally((()=>{c(!1)}))}),[t,g,f]);return{operations:gse(r),isFirstLoad:s,isLoading:l,hasMore:o,loadMore:async()=>{var e;const n=null===(e=r[r.length-1])||void 0===e?void 0:e.id;if(n)return u((async()=>{const e=await mse(f,t,d,{lastId:n});a(e.length>0),i((t=>[...t,...e]))}))},setAddresses:h}},mse=async(e,t,r,n)=>{const i=await(async(e,t,r)=>{var n;const i=(null===r||void 0===r?void 0:r.limit)||100,o=null!==(n=null===r||void 0===r?void 0:r.sort)&&void 0!==n?n:"desc",a={limit:i,offset:null!==r&&void 0!==r&&r.lastId?{cr:r.lastId}:void 0,sort:{[o]:"id"}},s=await Promise.all([I2(e,t,a),R2(e,t,a),M2(e,t,a),L2(e,t,a)]);return(0,Va.sortBy)(s.flat(),(e=>"asc"===o?e.id:-e.id)).slice(0,i)})(r,t,n),o=i.filter((e=>"transaction"===e.type)).map((e=>e.id)),a=await(async(e,t)=>0===e.length?[]:O2((()=>E2({transactionId:{in:[e.join(",")]}},{baseUrl:t.tzktApiUrl}))))(o,t),s=[...a,...i.filter((e=>"token_transfer"===e.type))];return e(Ed.updateTokenTransfers(s)),e(Gd.addTokens({network:t,tokens:s.map((e=>e.token))})),i},gse=e=>{const t=[];for(let r=0;r{i(l)}))}),id:eoe(a,l),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":toe(a,l),onFocus:t?void 0:k(e.onFocus,(()=>{s(l),!o&&(!t||!r)&&i(l)}))}}({...e,ref:t}),i={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return(0,un.jsx)(ln.button,{...n,className:v("chakra-tabs__tab",e.className),__css:i})}));vse.displayName="Tab";const yse=({children:e,...t})=>(0,un.jsx)(vse,{...t,fontSize:"sm",paddingX:3,children:e}),bse=({tokens:e,nfts:t,account:r,delegation:n})=>{const i="multisig"===r.type,o=$2(),{operations:a,isFirstLoad:s}=pse([r.address.pkh]);return(0,un.jsxs)(ioe,{flexDirection:"column",display:"flex",overflow:"hidden",width:"100%",marginTop:"60px","data-testid":"asset-panel",children:[(0,un.jsxs)(ooe,{justifyContent:"space-between","data-testid":"asset-panel-tablist",children:[(0,un.jsxs)(dn,{children:[i&&(0,un.jsx)(yse,{"data-testid":"account-card-pending-tab",children:"Pending"}),(0,un.jsx)(yse,{children:"Operations"}),(0,un.jsx)(yse,{children:"Delegation"}),(0,un.jsx)(yse,{children:"NFTs"}),(0,un.jsx)(yse,{children:"Tokens"})]}),(0,un.jsx)($re,{href:fse(o,r.address.pkh),children:(0,un.jsxs)(Dn,{paddingRight:0,variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{marginRight:"7px",size:"sm",children:"View on Tzkt"}),(0,un.jsx)(Mj,{stroke:"currentcolor"})]})})]}),(0,un.jsxs)(aoe,{height:"100%",paddingBottom:"60px",children:[i&&(0,un.jsx)(soe,{overflowX:"hidden",height:"100%",paddingTop:"24px",paddingBottom:"60px","data-testid":"account-card-pending-tab-panel",paddingX:"0",children:(0,un.jsx)(Fae,{account:r})}),(0,un.jsx)(soe,{overflowX:"hidden",height:"100%",paddingTop:"24px",paddingBottom:"60px","data-testid":"account-card-operations-tab",paddingX:"0",children:(0,un.jsx)(Vae.Provider,{value:{mode:"drawer",selectedAddress:r.address},children:s?(0,un.jsx)(sz,{color:EP.gray[500],textAlign:"center",children:"Loading..."}):(0,un.jsx)(cse,{operations:a,owner:r.address.pkh})})}),(0,un.jsx)(soe,{overflowX:"hidden",paddingTop:"24px","data-testid":"account-card-delegation-tab",paddingX:"0",children:(0,un.jsx)(aae,{account:r,delegation:n})}),(0,un.jsx)(soe,{overflowX:"hidden",height:"100%",paddingTop:"24px","data-testid":"account-card-nfts-tab",paddingX:"0",children:(0,un.jsx)(Hae,{columns:3,nfts:t,owner:r.address.pkh})}),(0,un.jsx)(soe,{overflowX:"hidden",height:"100%",paddingTop:"24px","data-testid":"account-card-tokens-tab",paddingX:"0",children:(0,un.jsx)(dse,{owner:r.address.pkh,tokens:e})})]})]})};var wse=g((function(e,t){const{spacing:r="0.5rem",spacingX:i,spacingY:o,children:a,justify:s,direction:c,align:l,className:u,shouldWrapChildren:d,...h}=e,f=(0,n.useMemo)((()=>d?n.Children.map(a,((e,t)=>(0,un.jsx)(xse,{children:e},t))):a),[a,d]);return(0,un.jsx)(ln.div,{ref:t,className:v("chakra-wrap",u),...h,children:(0,un.jsx)(ln.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:l,flexDirection:c,listStyleType:"none",gap:r,columnGap:i,rowGap:o,padding:"0"},children:f})})}));wse.displayName="Wrap";var xse=g((function(e,t){const{className:r,...n}=e;return(0,un.jsx)(ln.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:v("chakra-wrap__listitem",r),...n})}));xse.displayName="WrapItem";const _se=({signers:e})=>(0,un.jsx)(pn,{width:"100%",marginTop:"60px",padding:"15px",background:EP.gray[800],borderRadius:"8px",children:(0,un.jsx)(Nz,{allowToggle:!0,defaultIndex:0,children:(0,un.jsxs)(Dz,{background:EP.gray[800],border:"none",borderRadius:"8px",children:[(0,un.jsx)("h2",{children:(0,un.jsxs)(zz,{as:"span",flex:"1",textAlign:"left",children:[(0,un.jsx)(kn,{width:"100%",size:"sm",children:"Approvers"}),(0,un.jsx)(Bz,{cursor:"pointer"})]})}),(0,un.jsx)(Vz,{children:(0,un.jsx)(wse,{marginTop:"3","data-testid":"multisig-tag-section",children:e.map((e=>(0,un.jsx)(xse,{padding:"3px 8px",borderRadius:"100px",children:(0,un.jsx)(gre,{address:e})},e.pkh)))})})]})})}),Sse=({account:e})=>{const t=CR(),{onClose:r}=(0,n.useContext)(mM),i=({name:n})=>{t(((e,t)=>(r,n)=>{const{accounts:i,multisigs:o,contacts:a}=n(),s="multisig"===e.type,c=i.items.map((e=>e.label));[c,o.items.map((e=>e.label)),Object.values(a).map((e=>e.name))].flat().includes(t)||r(s?Fd.actions.setName({newName:t,account:e}):Nc.actions.renameAccount({newName:t,account:e}))})(e,n)),r()},{handleSubmit:o,formState:{isValid:a,errors:s},register:c,reset:l}=MU({mode:"onBlur",defaultValues:{name:e.label}}),u=qH(),{nameExistsInContacts:d}=UH();return(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:o((({name:e})=>{i({name:e.trim()}),l()})),children:[(0,un.jsx)(N7,{subTitle:"Edit your account name here.",title:"Edit Name"}),(0,un.jsx)(cz,{}),(0,un.jsx)(lz,{children:(0,un.jsxs)(Zz,{isInvalid:!!s.name,marginY:"20px",children:[(0,un.jsx)(FU,{children:"Account name"}),(0,un.jsx)(ZU,{type:"text",...c("name",{required:"Name is required",validate:e=>u.map((e=>e.label)).includes(e)?"Name already used in accounts":!d(e.trim())||"Name already registered in address book"}),placeholder:"Enter contact's name"}),s.name&&(0,un.jsx)(Qz,{"data-testid":"name-error",children:s.name.message})]})}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",marginBottom:"8px",isDisabled:!a,size:"lg",type:"submit",children:"Save"})})]})})},kse=({account:e})=>{const{openWith:t,onClose:r}=(0,n.useContext)(mM),i=CR(),o=VT(),a=1===HH().length;let s;switch(e.type){case"secret_key":s=xne;break;case"ledger":case"social":s=()=>Nc.actions.removeAccount(e)}let c="Are you sure you want to remove this account?",l="Remove Account";a&&(c="Removing your last account will off-board you from Umami. This will remove or reset all customized settings to their defaults. Personal data (including saved contacts, password and accounts) won't be affected.",l="Remove & Off-board");const u=s?()=>{t((0,un.jsx)(Pre,{buttonLabel:l,description:c,onSubmit:()=>{i(s(e)),r(),o("/")},title:"Remove Account"}))}:void 0;return(0,un.jsx)(ite,{onRemove:u,onRename:()=>t((0,un.jsx)(Sse,{account:e}))})},Ese=e=>(0,un.jsxs)(pn,{textAlign:e.center?"center":"initial",children:[(0,un.jsx)(kn,{size:"md",children:Z2(e.balance)}),null!==e.dollarBalance&&(0,un.jsxs)(sz,{marginTop:"6px",color:EP.gray[400],size:"sm",children:["$",e.dollarBalance.toFixed(2)]})]}),Ase=({icon:e,label:t,onClick:r=(()=>{})})=>(0,un.jsxs)(pn,{className:"account-drawer-cta-button",color:EP.gray[300],textAlign:"center",_hover:{color:EP.green},cursor:"pointer",marginX:"24px",onClick:r,children:[(0,un.jsx)(S3,{className:"account-drawer-cta-button-icon",marginBottom:"8px","aria-label":"button",icon:e,size:"lg",variant:"circle_without_color"}),(0,un.jsx)(sz,{cursor:"pointer",size:"sm",children:t})]}),Pse=({onSend:e,onReceive:t=(()=>{}),balance:r,dollarBalance:i,tokens:o,nfts:a,account:s})=>{const c="multisig"===s.type,{openWith:l}=(0,n.useContext)(mM),u=a3(s.address),d=$2(),[h,f]=(0,n.useState)(null),{handleAsyncAction:p}=k7();return(0,n.useEffect)((()=>{p((async()=>{const e=await((e,t)=>R2([e],t,{limit:1,sort:{desc:"id"}}).then(Va.first))(s.address.pkh,d);e&&f((e=>{var t,r,n;const i=null===(t=e.sender)||void 0===t?void 0:t.address,o=null===(r=e.newDelegate)||void 0===r?void 0:r.address,a=e.timestamp,s=e.id,c=e.amount;return null==i||null==o||null==a||null==s||null==c?null:{sender:i,timestamp:a,id:s,amount:new Bs(c),delegate:{address:o,alias:(null===(n=e.newDelegate)||void 0===n?void 0:n.alias)||void 0}}})(e))}))}),[s.address.pkh,d]),(0,un.jsxs)(dn,{zIndex:2,alignItems:"center",flexDirection:"column",height:"100%","data-testid":`account-card-${s.address.pkh}`,children:[(0,un.jsx)(xre,{addressKind:u}),(0,un.jsx)(kn,{marginTop:"24px",size:"md",children:s.label}),(0,un.jsxs)(dn,{alignItems:"center",marginTop:"8px",marginBottom:"30px",children:[(0,un.jsx)(gre,{marginRight:"4px",address:s.address,mode:{type:"no_icons"}}),(0,un.jsx)(kse,{account:s})]}),r&&(0,un.jsx)(Ese,{balance:r,center:!0,dollarBalance:i}),(0,un.jsxs)(hn,{marginTop:"34px",children:[(0,un.jsx)(Ase,{icon:(0,un.jsx)(cR,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Send",onClick:e}),(0,un.jsx)(Ase,{icon:(0,un.jsx)(Kj,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Receive",onClick:t}),!c&&(0,un.jsx)(Ase,{icon:(0,un.jsx)(uR,{stroke:"currentcolor"}),label:"Buy tez",onClick:()=>{l((0,un.jsx)(Jte,{recipient:s.address.pkh}))}}),(0,un.jsx)(Ase,{icon:(0,un.jsx)(gj,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Delegate",onClick:()=>{l((0,un.jsx)(eae,{form:h?{baker:h.delegate.address,sender:s.address.pkh}:void 0,sender:s}))}})]}),c&&(0,un.jsx)(_se,{signers:s.signers}),(0,un.jsx)(bse,{account:s,delegation:h,nfts:a,tokens:o})]})};var Tse=r(2083);const Ose=({pkh:e})=>{const t=GH()(e);return(0,un.jsxs)(iz,{children:[(0,un.jsx)(N7,{subTitle:"You can receive tez or other digital assets by scanning or sharing this QR code",title:"Receive"}),(0,un.jsx)(lz,{children:(0,un.jsx)(dn,{alignItems:"center",justifyContent:"space-between",flexDirection:"column",children:(0,un.jsx)(pn,{padding:"8px",background:"white",borderRadius:"8px",children:(0,un.jsx)(Tse.QRCode,{size:232,value:e})})})}),(0,un.jsx)(tB,{children:(0,un.jsxs)(pn,{width:"100%",children:[t&&(0,un.jsx)(kn,{textAlign:"center",marginY:2,children:t.label}),(0,un.jsx)(dn,{justifyContent:"center",width:"100%",children:(0,un.jsx)(gre,{address:qu(e),mode:{type:"no_icons"}})})]})})]})},Cse=({account:e})=>{const t=i3(),r=(()=>{const e=r3(),t=i3();return r=>{const n=t(r);if(null==n)return null;const i=G2(n);return e(i)}})(),i=e3(),o=t3(),{openWith:a}=(0,n.useContext)(mM),s=t(e.address.pkh),c=r(e.address.pkh),l=i(e.address.pkh),u=bre(o(e.address.pkh));return(0,un.jsx)(Pse,{account:e,balance:s,dollarBalance:c,nfts:u,onReceive:()=>{a((0,un.jsx)(Ose,{pkh:e.address.pkh}))},onSend:()=>a((0,un.jsx)(wte,{sender:e})),tokens:l})};var jse=r(4606),Rse=r.n(jse);const Ise=({nft:e,style:t})=>{const r=e.metadata.attributes;return r&&0!==r.length?(0,un.jsxs)(Dz,{background:EP.gray[800],"data-testid":"attributes-section",style:t,children:[(0,un.jsxs)(zz,{paddingY:"16px",children:[(0,un.jsx)(kn,{flex:"1",textAlign:"left",size:"md",children:"Attributes"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(wse,{marginLeft:"0",spacing:"10px",children:r.map((e=>(0,un.jsx)(xse,{flex:"1","data-testid":"nft-attribute",children:(0,un.jsx)(zU,{width:"160px",height:"128px",marginBottom:"2px",background:EP.gray[700],children:(0,un.jsxs)(BU,{padding:"16px",children:[(0,un.jsx)(sz,{color:EP.gray[400],size:"sm",children:e.name}),(0,un.jsx)(kn,{size:"md",children:e.value})]})})},e.name)))})})]}):null},Mse=({text:e,maxLength:t})=>e.length<=t?(0,un.jsx)(sz,{"data-testid":"truncated-text",children:e}):(0,un.jsx)(eH,{label:e,children:(0,un.jsx)(sz,{"data-testid":"truncated-text",children:K2(e,t)})}),Lse=({url:e,...t})=>(0,un.jsx)("a",{"data-testid":"tzkt-link",href:e,rel:"noopener noreferrer",target:"_blank",children:(0,un.jsx)(C7,{...t})}),Nse=({nft:e})=>{if(!e.metadata.creators||0===e.metadata.creators.length)return(0,un.jsx)(un.Fragment,{children:"-"});const t=e.metadata.creators[0];return t.startsWith("tz")?(0,un.jsx)(gre,{marginRight:1,address:qu(t)}):(0,un.jsx)(Mse,{maxLength:15,text:t})},Dse=({nft:e,style:t})=>{const r=(e=>{const t=e.metadata.royalties;if(!t)return[];const r=Math.pow(10,Number(t.decimals)),n=Object.entries(t.shares).map((([e,t])=>({address:e,share:100*Number(t)/r})));return n.sort(((e,t)=>e.sharee+t.share),0).toFixed(2),i=$2();return(0,un.jsxs)(Dz,{background:EP.gray[800],style:t,children:[(0,un.jsxs)(zz,{paddingY:"16px",children:[(0,un.jsx)(kn,{flex:"1",textAlign:"left",size:"md",children:"Properties"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(mee,{children:(0,un.jsx)(yee,{variant:"stripped",children:(0,un.jsxs)(bee,{fontSize:"14px",children:[(0,un.jsxs)(wee,{background:EP.gray[900],borderColor:EP.gray[700],borderBottomWidth:"1px",borderRadius:"8px",children:[(0,un.jsx)(xee,{width:"20%",padding:"16px 0 16px 15px",paddingRight:"0",color:EP.gray[400],borderTopLeftRadius:"8px","data-testid":"nft-editions",children:"Editions:"}),(0,un.jsx)(xee,{width:"30%",padding:"16px 0 16px 5px",borderColor:EP.gray[700],borderRightWidth:"1px","data-testid":"nft-editions-value",children:e.totalSupply||"?"}),(0,un.jsx)(xee,{width:"20%",padding:"16px 0 16px 15px",color:EP.gray[400],children:"Token ID:"}),(0,un.jsx)(xee,{width:"30%",padding:"16px 0 16px 5px",borderTopRightRadius:"8px",children:e.tokenId})]}),(0,un.jsxs)(wee,{background:EP.gray[800],borderColor:EP.gray[700],borderBottomWidth:"1px",children:[(0,un.jsxs)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],"data-testid":"nft-royalty",children:["Royalties",r.length>1?" ("+r.length+")":"",":"]}),(0,un.jsx)(xee,{padding:"16px 0 16px 5px",borderColor:EP.gray[700],borderRightWidth:"1px","data-testid":"nft-royalty-value",children:r.length>0?n+"%":"-"}),(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],"data-testid":"nft-mime",children:"MIME type:"}),(0,un.jsx)(xee,{width:"30%",padding:"16px 0 16px 5px","data-testid":"nft-mime-value",children:hd(e)||"-"})]}),(0,un.jsxs)(wee,{background:EP.gray[900],borderColor:EP.gray[700],borderBottomWidth:"1px",children:[(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],children:"Contract:"}),(0,un.jsx)(xee,{padding:"16px 0 16px 5px",borderColor:EP.gray[700],borderRightWidth:"1px",children:(0,un.jsx)(gre,{marginRight:1,address:qu(e.contract)})}),(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],children:"Metadata:"}),(0,un.jsxs)(xee,{width:"30%",padding:"16px 0 16px 5px",children:["TzKT ",(0,un.jsx)(Lse,{url:fd(e,i)})]})]}),(0,un.jsxs)(wee,{background:EP.gray[800],borderColor:EP.gray[700],borderBottomWidth:"1px",children:[(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],"data-testid":"nft-creator",children:"Creator:"}),(0,un.jsx)(xee,{padding:"16px 0 16px 5px",borderColor:EP.gray[700],borderRightWidth:"1px","data-testid":"nft-creator-value",children:(0,un.jsx)(Nse,{nft:e})}),(0,un.jsx)(xee,{padding:"16px 0 16px 15px",color:EP.gray[400],children:"License:"}),(0,un.jsx)(xee,{width:"30%",padding:"16px 0 16px 5px",children:(0,un.jsx)(Mse,{maxLength:15,text:e.metadata.rights||"-"})})]})]})})})})]})},zse=({nft:e})=>{const t=e.metadata.tags;return t&&0!==t.length?(0,un.jsx)(wse,{marginTop:"20px","data-testid":"tags-section",children:t.map((e=>(0,un.jsx)(xse,{padding:"3px 8px",background:EP.gray[600],borderRadius:"100px",children:(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"nft-tag",children:e})},e)))}):null},Bse=({nft:e})=>{const t=yre(dd(e)),r=yre(e.displayUri);return(0,un.jsx)(pn,{width:"100%","aria-label":"nft",children:(0,un.jsxs)(dn,{alignItems:"center",height:"60px",padding:3,background:EP.gray[800],borderRadius:"4px","data-testid":"nft-name",children:[(0,un.jsx)(dz,{width:"30px",height:"30px",ratio:1,children:(0,un.jsx)(bR,{fallbackSrc:r,src:t})}),e.metadata.name&&(0,un.jsx)(kn,{marginLeft:4,size:"sm",children:K2(e.metadata.name,45)})]})})},Use=e=>{const{mode:t,operations:r,fee:n,data:{nft:i}}=e,{fee:o,operations:a,estimationFailed:s,isLoading:c,form:l,signer:u,reEstimate:d,onSign:h}=dte(n,r,t),{recipient:f}=a.operations[0];return(0,un.jsx)(PB,{...l,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:a.type,signer:a.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(dn,{marginBottom:"12px",children:(0,un.jsx)(Bse,{nft:i})}),(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",marginY:"12px",paddingX:"4px",children:[(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"sm",children:"Owned:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"nft-owned",size:"sm",children:i.balance})]}),(0,un.jsx)(M7,{fee:o})]}),(0,un.jsxs)(dn,{alignItems:"center",marginTop:"12px",marginBottom:"24px",children:[(0,un.jsx)(kn,{marginRight:"12px",size:"md",children:"Quantity:"}),(0,un.jsx)(hn,{width:"100px",height:"48px",background:EP.gray[800],borderRadius:"4px",children:(0,un.jsxs)(sz,{textAlign:"center",children:[a.operations[0].amount," out of ",i.balance]})})]}),(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{marginBottom:"24px",address:a.sender.address}),(0,un.jsx)(FU,{children:"To"}),(0,un.jsx)(h3,{address:f}),(0,un.jsx)(ate,{isLoading:c,operationType:a.type,reEstimate:d,sender:a.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:s,isLoading:c,onSubmit:h,signer:u,text:U7(a.type,t)})})]})})})},Fse=e=>{const{nft:t}=e,r=vte({SignPage:Use,signPageExtraData:{nft:t},FormPage:Fse,defaultFormPageProps:e,toOperation:$se(t)}),n=yte($se(t)),{onFormSubmitActionHandlers:[i,o],isLoading:a}=bte([r,n]),s=MU({mode:"onBlur",defaultValues:{quantity:1,...ute(e)}}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s;return(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(N7,{}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(dn,{marginBottom:"12px",children:(0,un.jsx)(Bse,{nft:e.nft})}),(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(kn,{marginRight:"4px",color:EP.gray[450],size:"sm",children:"Owned:"}),(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"nft-owned",size:"sm",children:t.balance})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.quantity,children:[(0,un.jsx)(FU,{children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(kn,{marginRight:"8px",size:"md",children:"Quantity:"}),(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(KU,{width:"75px",children:(0,un.jsx)(ZU,{width:"60px",color:"white","data-testid":"quantity-input",step:1,type:"number",...u("quantity",{required:"Quantity is required",max:{value:t.balance,message:`Max quantity is ${t.balance}`},min:{value:1,message:"Min quantity is 1"}})})}),(0,un.jsxs)(sz,{"data-testid":"out-of-nft",children:["out of ",t.balance]})]})]})}),l.quantity&&(0,un.jsx)(A7,{"data-testid":"quantity-error",children:l.quantity.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"}),l.sender&&(0,un.jsx)(A7,{"data-testid":"from-error",children:l.sender.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,un.jsx)(v3,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,un.jsx)(A7,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i)})})]})})})},$se=e=>t=>({type:"fa2",sender:qu(t.sender),recipient:qu(t.recipient),contract:Zu(e.contract),tokenId:e.tokenId,amount:t.quantity.toString()}),Hse=({nft:e,ownerPkh:t})=>{var r;const i=yre(ud(e)),o=yre(e.displayUri),a=ZH(),{openWith:s}=(0,n.useContext)(mM),c=null===(r=hd(e))||void 0===r?void 0:r.startsWith("video/"),l=nd(e),u={border:"none",borderRadius:"8px",marginBottom:"20px"};return(0,un.jsxs)(pn,{children:[(0,un.jsx)(zU,{width:"534px",height:"534px",background:EP.gray[800],children:(0,un.jsxs)(BU,{padding:"24px",children:[(0,un.jsx)(pn,{position:"relative",width:"486px",height:"486px",children:c?(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(pn,{position:"absolute",zIndex:1,width:"486px",height:"486px",children:(0,un.jsx)(Rse(),{width:"100%",height:"100%",loop:!0,playing:!0,url:i})}),(0,un.jsx)(bR,{position:"absolute",zIndex:0,top:"0",width:"486px",height:"486px",objectFit:"contain",alt:l,filter:"blur(20px)",src:o})]}):(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(bR,{position:"absolute",zIndex:1,width:"486px",height:"486px",objectFit:"contain",alt:l,fallbackSrc:o,src:i}),(0,un.jsx)(bR,{position:"absolute",zIndex:0,top:"0",width:"486px",height:"486px",objectFit:"contain",alt:l,"data-testid":"nft-image",fallbackSrc:o,filter:"blur(20px)",src:i})]})}),Number(e.balance)>1&&(0,un.jsx)(sz,{position:"absolute",display:"inline",height:"24px",marginTop:"-38px",marginLeft:"16px",borderRadius:"100px",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",paddingX:"8px",children:"x"+e.balance})]})}),(0,un.jsx)(zse,{nft:e}),l&&(0,un.jsx)(kn,{marginTop:"16px",marginBottom:"14px","data-testid":"nft-name",size:"lg",children:l}),e.metadata.description&&(0,un.jsx)(sz,{color:EP.gray[400],"data-testid":"nft-description",size:"sm",children:e.metadata.description}),(0,un.jsx)(Dn,{marginTop:"20px",onClick:()=>{s((0,un.jsx)(Fse,{nft:e,sender:a(t)}))},children:"Send"}),(0,un.jsxs)(Nz,{marginTop:"32px",allowMultiple:!0,children:[(0,un.jsx)(Ise,{nft:e,style:u}),(0,un.jsx)(Dse,{nft:e,style:u}),(0,un.jsxs)(Dz,{background:EP.gray[800],style:u,children:[(0,un.jsxs)(zz,{paddingY:"16px",children:[(0,un.jsx)(kn,{flex:"1",textAlign:"left",size:"md",children:"JSON"}),(0,un.jsx)(Bz,{})]}),(0,un.jsx)(Vz,{children:(0,un.jsx)(UU,{value:e})})]})]})]})},Vse=({ownerPkh:e,nft:t,onCloseDrawer:r})=>(0,un.jsxs)(un.Fragment,{children:[(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",paddingBottom:"22px",color:EP.gray[400],"data-testid":"nft-drawer-body",children:[(0,un.jsx)(gre,{address:qu(e)}),(0,un.jsx)(Hie,{onClose:r})]}),(0,un.jsx)(Hse,{nft:t,ownerPkh:e})]}),qse=()=>{const[e,t]=(0,n.useState)(null),{ownerPkh:r,nftId:i}=function(){let{matches:e}=n.useContext(BT),t=e[e.length-1];return t?t.params:{}}(),o=J2(),a=r&&(0,Va.get)(o,[r],[]).find((e=>td(e)===i)),s=!!a,{isOpen:c,onOpen:l,onClose:u}=BR({defaultIsOpen:s}),{isOpen:d}=gM(),h=VT(),f=(0,n.useCallback)((()=>{t(null),u(),h("/home")}),[u,h]);(0,n.useEffect)((()=>{const e=e=>{"Escape"===e.key&&f()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[f]);const p=(0,n.useMemo)((()=>({selectedAccount:e,selectAccount:e=>{t(e),l()}})),[e,l]);return(0,un.jsxs)(_re.Provider,{value:p,children:[(0,un.jsx)(Uie,{}),(0,un.jsxs)(nne,{autoFocus:!1,blockScrollOnMount:!d,isOpen:c,onClose:f,placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsxs)(cne,{children:[s&&(0,un.jsx)(lz,{children:(0,un.jsx)(Vse,{nft:a,onCloseDrawer:f,ownerPkh:r})}),!s&&e&&(0,un.jsxs)(lz,{overflow:"hidden",background:Ere({account:e,radius:"350px",opacity:"35",mainBackgroundColor:"transparent",left:"300px",top:"-125px"}),children:[(0,un.jsx)($ie,{onClose:f}),(0,un.jsx)(Cse,{account:e})]})]})]})]})},Kse=()=>(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Accounts"}),(0,un.jsx)(dn,{flex:1,minHeight:1,children:(0,un.jsxs)(dn,{flexDirection:"column",flex:1,marginRight:"12px",paddingBottom:"12px",children:[(0,un.jsx)(Die,{}),(0,un.jsx)(pn,{flex:1,overflow:"hidden",borderRadius:"8px",children:(0,un.jsx)(qse,{})})]})})]}),Wse=(0,n.createContext)({selectedNFT:void 0,setSelectedNFT:e=>{}}),Gse=({nft:e})=>{const{selectedNFT:t,setSelectedNFT:r}=(0,n.useContext)(Wse),i=yre(dd(e)),o=yre(e.displayUri),a=e.metadata.name,s={width:"100%",minWidth:"242px",minHeight:"242px",objectFit:"contain",aspectRatio:"1",fallbackSrc:o,src:i},c=t&&td(t)===td(e)&&t.owner===e.owner;return(0,un.jsx)(zU,{minWidth:"274px",borderRadius:"8px",cursor:"pointer","data-testid":"nft-card"+(c?"-selected":""),onClick:()=>r(e),children:(0,un.jsxs)(BU,{padding:"16px",background:EP.gray[900],border:"1px solid",borderColor:c?EP.orangeL:"transparent",borderRadius:"8px",_hover:{background:EP.gray[700],borderColor:EP.gray[500]},children:[(0,un.jsx)(hn,{children:(0,un.jsxs)(pn,{position:"relative",width:"100%",children:[(0,un.jsx)(bR,{...s,zIndex:2,opacity:"0"}),(0,un.jsx)(bR,{...s,position:"absolute",zIndex:0,top:"0",filter:"blur(20px)"}),(0,un.jsx)(bR,{...s,position:"absolute",zIndex:1,top:"0","data-testid":"nft-image"})]})}),Number(e.balance)>1&&(0,un.jsx)(sz,{position:"absolute",display:"inline",height:"24px",marginTop:"-36px",marginLeft:"10px",paddingTop:"1px",fontSize:"14px",borderRadius:"full",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",paddingX:"8px",children:"x"+e.balance}),(0,un.jsx)(pn,{overflow:"hidden","data-testid":"nft-card-name",children:(0,un.jsx)(kn,{overflow:"hidden",marginTop:"15px",marginBottom:"8px",fontSize:"sm",whiteSpace:"nowrap",textOverflow:"ellipsis",children:a})}),(0,un.jsx)(gre,{address:qu(e.owner)})]})})},Zse=({nftsByOwner:e})=>{const t=Object.entries(e).flatMap((([e,t])=>(t||[]).map((t=>({owner:e,...t})))));let r="repeat(auto-fit, minmax(min(100%/2, max(274px, 100%/7)), 1fr))";return t.length<3&&(r=`repeat(auto-fit, min(100% / ${t.length} - 16px, 450px))`),(0,un.jsx)(Aie,{gridTemplateColumns:r,marginBottom:"16px",minChildWidth:"340px",spacing:"16px",children:bre(t).map((e=>(0,un.jsx)(Gse,{nft:e},`${e.owner}:${td(e)}`)))})};function Yse(e={}){const{timeout:t=300,preventDefault:r=(()=>!0)}=e,[i,o]=(0,n.useState)([]),a=(0,n.useRef)(),s=()=>{a.current&&(clearTimeout(a.current),a.current=null)};return(0,n.useEffect)((()=>s),[]),function(e){return n=>{if("Backspace"===n.key){const e=[...i];return e.pop(),void o(e)}if(function(e){const{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(n)){const c=i.concat(n.key);r(n)&&(n.preventDefault(),n.stopPropagation()),o(c),e(c.join("")),s(),a.current=setTimeout((()=>{o([]),a.current=null}),t)}}}}function Xse(e,t){var r;const n=e.target;if(n){if(!Jse(n).contains(n))return!1}return!(null==(r=t.current)?void 0:r.contains(n))}function Jse(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var[Qse,ece,tce,rce]=_z(),[nce,ice]=En({strict:!1,name:"MenuContext"});function oce(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function ace(e){return oce(e).activeElement===e}function sce(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:i=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:s,isOpen:c,defaultIsOpen:l,onClose:u,onOpen:d,placement:h="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...g}=e,v=(0,n.useRef)(null),y=(0,n.useRef)(null),b=tce(),w=(0,n.useCallback)((()=>{requestAnimationFrame((()=>{var e;null==(e=v.current)||e.focus({preventScroll:!1})}))}),[]),x=(0,n.useCallback)((()=>{const e=setTimeout((()=>{var e;if(o)null==(e=o.current)||e.focus();else{const e=b.firstEnabled();e&&C(e.index)}}));L.current.add(e)}),[b,o]),_=(0,n.useCallback)((()=>{const e=setTimeout((()=>{const e=b.lastEnabled();e&&C(e.index)}));L.current.add(e)}),[b]),S=(0,n.useCallback)((()=>{null==d||d(),a?x():w()}),[a,x,w,d]),{isOpen:k,onOpen:E,onClose:A,onToggle:P}=W$({isOpen:c,defaultIsOpen:l,onClose:u,onOpen:S});!function(e){const{ref:t,handler:r,enabled:i=!0}=e,o=pb(r),a=(0,n.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,n.useEffect)((()=>{if(!i)return;const e=e=>{Xse(e,t)&&(a.isPointerDown=!0)},n=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&Xse(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&Xse(e,t)&&(a.isPointerDown=!1,o(e))},c=Jse(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",n,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",s,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",n,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",s,!0)}}),[r,t,o,a,i])}({enabled:k&&i,ref:v,handler:e=>{var t;(null==(t=y.current)?void 0:t.contains(e.target))||A()}});const T=q$({...g,enabled:k||m,placement:h,direction:p}),[O,C]=(0,n.useState)(-1);mb((()=>{k||C(-1)}),[k]),zee(v,{focusRef:y,visible:k,shouldFocus:!0});const j=Iee({isOpen:k,ref:v}),[R,I]=function(e,...t){const r=(0,n.useId)(),i=e||r;return(0,n.useMemo)((()=>t.map((e=>`${e}-${i}`))),[i,t])}(t,"menu-button","menu-list"),M=(0,n.useCallback)((()=>{E(),w()}),[E,w]),L=(0,n.useRef)(new Set([]));(0,n.useEffect)((()=>{const e=L.current;return()=>{e.forEach((e=>clearTimeout(e))),e.clear()}}),[]);const N=(0,n.useCallback)((()=>{E(),x()}),[x,E]),D=(0,n.useCallback)((()=>{E(),_()}),[E,_]),z=(0,n.useCallback)((()=>{var e,t;const r=oce(v.current),n=null==(e=v.current)?void 0:e.contains(r.activeElement);if(!(k&&!n))return;const i=null==(t=b.item(O))?void 0:t.node;null==i||i.focus({preventScroll:!0})}),[k,O,b]),B=(0,n.useRef)(null);return{openAndFocusMenu:M,openAndFocusFirstItem:N,openAndFocusLastItem:D,onTransitionEnd:z,unstable__animationState:j,descendants:b,popper:T,buttonId:R,menuId:I,forceUpdate:T.forceUpdate,orientation:"vertical",isOpen:k,onToggle:P,onOpen:E,onClose:A,menuRef:v,buttonRef:y,focusedIndex:O,closeOnSelect:r,closeOnBlur:i,autoSelect:a,setFocusedIndex:C,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:B}}function cce(e){var t;return function(e){var t;if(!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e))return!1;const r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function lce(e={},t=null){const{onMouseEnter:r,onMouseMove:i,onMouseLeave:o,onClick:a,onFocus:s,isDisabled:c,isFocusable:l,closeOnSelect:u,type:d,...h}=e,f=ice(),{setFocusedIndex:p,focusedIndex:m,closeOnSelect:g,onClose:v,menuRef:y,isOpen:b,menuId:w,rafId:x}=f,_=(0,n.useRef)(null),S=`${w}-menuitem-${(0,n.useId)()}`,{index:k,register:E}=rce({disabled:c&&!l}),A=(0,n.useCallback)((e=>{null==r||r(e),c||p(k)}),[p,k,c,r]),P=(0,n.useCallback)((e=>{null==i||i(e),_.current&&!ace(_.current)&&A(e)}),[A,i]),T=(0,n.useCallback)((e=>{null==o||o(e),c||p(-1)}),[p,c,o]),O=(0,n.useCallback)((e=>{null==a||a(e),cce(e.currentTarget)&&(null!=u?u:g)&&v()}),[v,a,g,u]),C=(0,n.useCallback)((e=>{null==s||s(e),p(k)}),[p,s,k]),j=k===m,R=c&&!l;mb((()=>{if(b)return j&&!R&&_.current?(x.current&&cancelAnimationFrame(x.current),x.current=requestAnimationFrame((()=>{var e;null==(e=_.current)||e.focus({preventScroll:!0}),x.current=null}))):y.current&&!ace(y.current)&&y.current.focus({preventScroll:!0}),()=>{x.current&&cancelAnimationFrame(x.current)}}),[j,R,y,b]);const I=qie({onClick:O,onFocus:C,onMouseEnter:A,onMouseMove:P,onMouseLeave:T,ref:Ln(E,_,t),isDisabled:c,isFocusable:l});return{...h,...I,type:null!=d?d:I.type,id:S,role:"menuitem",tabIndex:j?0:-1}}var[uce,dce]=En({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),hce=e=>{const{children:t}=e,r=Sn("Menu",e),i=ht(e),{direction:o}=vn(),{descendants:a,...s}=sce({...i,direction:o}),c=(0,n.useMemo)((()=>s),[s]),{isOpen:l,onClose:u,forceUpdate:d}=c;return(0,un.jsx)(Qse,{value:a,children:(0,un.jsx)(nce,{value:c,children:(0,un.jsx)(uce,{value:r,children:w(t,{isOpen:l,onClose:u,forceUpdate:d})})})})};hce.displayName="Menu";var fce=g(((e,t)=>{const r=dce();return(0,un.jsx)(ln.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})})),pce=g(((e,t)=>{const{children:r,as:i,...o}=e,a=function(e={},t=null){const r=ice(),{onToggle:i,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=r,c=(0,n.useCallback)((e=>{const t=e.key,r={Enter:a,ArrowDown:a,ArrowUp:s}[t];r&&(e.preventDefault(),e.stopPropagation(),r(e))}),[a,s]);return{...e,ref:Ln(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":_(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:k(e.onClick,i),onKeyDown:k(e.onKeyDown,c)}}(o,t),s=i||fce;return(0,un.jsx)(s,{...a,className:v("chakra-menu__menu-button",e.className),children:(0,un.jsx)(ln.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})}));pce.displayName="MenuButton";var mce={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},gce=ln(CA.div),vce=g((function(e,t){var r,i;const{rootProps:o,motionProps:a,...s}=e,{isOpen:c,onTransitionEnd:l,unstable__animationState:u}=ice(),d=function(e={},t=null){const r=ice();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:i,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:c,menuId:l,isLazy:u,lazyBehavior:d,unstable__animationState:h}=r,f=ece(),p=Yse({preventDefault:e=>" "!==e.key&&cce(e.target)}),m=(0,n.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=e.key,r={Tab:e=>e.preventDefault(),Escape:c,ArrowDown:()=>{const e=f.nextEnabled(i);e&&o(e.index)},ArrowUp:()=>{const e=f.prevEnabled(i);e&&o(e.index)}},n=r[t];if(n)return e.preventDefault(),void n(e);const a=p((e=>{const t=function(e,t,r,n){if(null==t)return n;if(!n)return e.find((e=>r(e).toLowerCase().startsWith(t.toLowerCase())));const i=e.filter((e=>r(e).toLowerCase().startsWith(t.toLowerCase())));if(i.length>0){let t;return i.includes(n)?(t=i.indexOf(n)+1,t===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return n}(f.values(),e,(e=>{var t,r;return null!=(r=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?r:""}),f.item(i));if(t){const e=f.indexOf(t.node);o(e)}}));cce(e.target)&&a(e)}),[f,i,p,c,o]),g=(0,n.useRef)(!1);s&&(g.current=!0);const v=Uee({wasSelected:g.current,enabled:u,mode:d,isSelected:h.present});return{...e,ref:Ln(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:k(e.onKeyDown,m)}}(s,t),h=function(e={}){const{popper:t,isOpen:r}=ice();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}(o),f=dce();return(0,un.jsx)(ln.div,{...h,__css:{zIndex:null!=(i=e.zIndex)?i:null==(r=f.list)?void 0:r.zIndex},children:(0,un.jsx)(gce,{variants:mce,initial:!1,animate:c?"enter":"exit",__css:{outline:0,...f.list},...a,className:v("chakra-menu__menu-list",d.className),...d,onUpdate:l,onAnimationComplete:E(u.onComplete,d.onAnimationComplete)})})}));vce.displayName="MenuList";var yce=g(((e,t)=>{const r=dce();return(0,un.jsx)(ln.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})}));yce.displayName="MenuCommand";var bce=g(((e,t)=>{const{type:r,...i}=e,o=dce(),a=i.as||r?null!=r?r:void 0:"button",s=(0,n.useMemo)((()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item})),[o.item]);return(0,un.jsx)(ln.button,{ref:t,type:a,...i,__css:s})})),wce=e=>{const{className:t,children:r,...i}=e,o=dce(),a=n.Children.only(r),s=(0,n.isValidElement)(a)?(0,n.cloneElement)(a,{focusable:"false","aria-hidden":!0,className:v("chakra-menu__icon",a.props.className)}):null,c=v("chakra-menu__icon-wrapper",t);return(0,un.jsx)(ln.span,{className:c,...i,__css:o.icon,children:s})};wce.displayName="MenuIcon";var xce=g(((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:i,commandSpacing:o="0.75rem",children:a,...s}=e,c=lce(s,t),l=r||i?(0,un.jsx)("span",{style:{pointerEvents:"none",flex:1},children:a}):a;return(0,un.jsxs)(bce,{...c,className:v("chakra-menu__menuitem",c.className),children:[r&&(0,un.jsx)(wce,{fontSize:"0.8em",marginEnd:n,children:r}),l,i&&(0,un.jsx)(yce,{marginStart:o,children:i})]})}));xce.displayName="MenuItem";const _ce=({accounts:e,onSelect:t})=>(0,un.jsx)(vce,{zIndex:"docked",overflowY:"scroll",maxHeight:"300px",padding:0,background:EP.gray[900],children:e.map((e=>(0,un.jsx)(xce,{width:"100%",minHeight:"48px",padding:"5px",background:EP.gray[700],"aria-label":e.label,onClick:()=>{t(e)},value:e.address.pkh,children:(0,un.jsx)(h3,{width:"370px",height:"40px",padding:"5px",background:EP.gray[700],borderRadius:"4px",_hover:{background:EP.gray[500]},cursor:"pointer",address:e.address})},e.address.pkh)))}),Sce=()=>{const e=qH(),[t,r]=wO(),n=t.getAll("accounts"),i=e.filter((e=>n.includes(e.address.pkh))),o=(0,Va.differenceBy)(e,i,(e=>e.address.pkh)),a=i.length===e.length;return{selectedAccounts:0===i.length?e:i,accountsFilter:(0,un.jsxs)(hn,{children:[(0,un.jsx)(pn,{alignSelf:"flex-start",children:(0,un.jsxs)(hce,{children:[(0,un.jsx)(pce,{as:Dn,maxHeight:"26px",paddingLeft:0,fontWeight:"normal",_hover:{bg:"none"},_active:{bg:"none"},"data-testid":"account-filter",isDisabled:a,marginY:"16px",rightIcon:(0,un.jsx)(pie,{}),variant:"ghost",children:"Filter by Account"}),(0,un.jsx)(_ce,{accounts:o,onSelect:e=>{r({...t,accounts:[...i,e].map((e=>e.address.pkh))})}})]})}),(0,un.jsx)(wse,{width:"100%",children:i.map((e=>(0,un.jsx)(gre,{address:e.address,"data-testid":"account-pill",mode:{type:"removable",onRemove:()=>{r({...t,accounts:n.filter((t=>t!==e.address.pkh))})}}},e.address.pkh)))})]})}},kce=()=>{const e=J2(),{isOpen:t}=gM(),{accountsFilter:r,selectedAccounts:i}=Sce(),[o,a]=(0,n.useState)(void 0);(0,n.useEffect)((()=>{const e=e=>{"Escape"===e.key&&a(void 0)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]);const s=(0,Va.pick)(e,i.map((e=>e.address.pkh))),c=(0,Va.sumBy)(Object.values(s).flat(),(e=>Number((null===e||void 0===e?void 0:e.balance)||0))),l=(0,Va.every)(s,(e=>!e||0===e.length));return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{subtitle:`(${c})`,title:"NFTs"}),r,l?(0,un.jsx)(Yoe,{}):(0,un.jsxs)(Wse.Provider,{value:{setSelectedNFT:a,selectedNFT:o},children:[(0,un.jsx)(pn,{overflowY:"scroll",children:(0,un.jsx)(Zse,{nftsByOwner:s})}),(0,un.jsxs)(nne,{autoFocus:!1,blockScrollOnMount:!t,isOpen:!!o,onClose:()=>a(void 0),placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsx)(cne,{children:(0,un.jsx)(lz,{children:o&&(0,un.jsx)(Vse,{nft:o,onCloseDrawer:()=>a(void 0),ownerPkh:o.owner})})})]})]})]})},Ece=()=>{const{accountsFilter:e,selectedAccounts:t}=Sce(),{operations:r,loadMore:i,hasMore:o,setAddresses:a,isLoading:s}=pse(t.map((e=>e.address.pkh))),c=t.map((e=>e.address.pkh)).join(",");(0,n.useEffect)((()=>{a(c.split(","))}),[a,c]);const l=(0,un.jsx)(sz,{color:EP.gray[500],textAlign:"center",paddingY:"20px",children:"Loading..."});return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Operations"}),e,0===r.length&&s&&l,0===r.length&&!s&&(0,un.jsx)(Xoe,{}),r.length>0&&(0,un.jsx)(pn,{overflowY:"scroll",marginBottom:"20px",background:EP.gray[900],borderRadius:"8px",onScroll:async e=>{if(!o||s)return;const t=e.target;t.scrollHeight-t.scrollTop-t.clientHeight<100&&i()},paddingX:"20px",children:(0,un.jsxs)(Vae.Provider,{value:{mode:"page"},children:[r.map(((e,t)=>{const n=t===r.length-1;return(0,un.jsxs)(pn,{height:"90px",marginBottom:n?"10px":0,paddingY:"20px",children:[(0,un.jsx)(sse,{operation:e}),!n&&(0,un.jsx)(pn,{children:(0,un.jsx)(Ree,{marginTop:"20px"})})]},e.id)})),s&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Ree,{}),l]})]})})]})},Ace=()=>{const{data:e}=(0,Fn.useQuery)(J7,(()=>X7.getPeers())),t=eee(),[r,i]=(0,n.useState)([]);return(0,n.useEffect)((()=>{(async()=>{const t=await Promise.all((e||[]).map((async e=>({...e,senderId:await hL(e.publicKey)}))));i(t)})()}),[e]),0===r.length?null:(0,un.jsx)(Pce,{peerInfos:r,removePeer:t})},Pce=({peerInfos:e,removePeer:t})=>(0,un.jsx)(pn,{children:e.map((e=>(0,un.jsxs)(n.Fragment,{children:[(0,un.jsx)(Ree,{}),(0,un.jsx)(Tce,{onRemove:()=>t(e),peerInfo:e})]},e.name)))}),Tce=({peerInfo:e,onRemove:t})=>(0,un.jsxs)(dn,{justifyContent:"space-between",height:"106px","data-testid":"peer-row",paddingY:"30px",children:[(0,un.jsxs)(dn,{children:[(0,un.jsx)(dz,{width:"48px",marginRight:"16px",ratio:1,children:(0,un.jsx)(bR,{width:"100%",src:e.icon})}),(0,un.jsxs)(hn,{alignItems:"flex-start",flexDirection:"column",children:[(0,un.jsx)(kn,{marginBottom:"6px",size:"md",children:e.name}),(0,un.jsx)(Oce,{peerInfo:e})]})]}),(0,un.jsx)(hn,{children:(0,un.jsx)(S3,{"aria-label":"Remove Peer",icon:(0,un.jsx)(xR,{}),onClick:t,size:"xs",variant:"circle"})})]}),Oce=({peerInfo:e})=>{const t=(e=>{const t=jR((e=>e.beacon));return t[e]})(e.senderId);return t?(0,un.jsxs)(dn,{children:[(0,un.jsx)(gre,{marginRight:"10px",address:qu(t.accountPkh)}),(0,un.jsx)(Ree,{marginRight:"10px",orientation:"vertical"}),(0,un.jsx)(sz,{marginTop:"2px",marginRight:"4px",color:EP.gray[450],fontWeight:650,size:"sm",children:"Network:"}),(0,un.jsx)(sz,{marginTop:"2px",color:EP.white,"data-testid":"dapp-connection-network",size:"sm",children:(0,Va.capitalize)(t.networkType)})]}):null},Cce=()=>{const{isOpen:e,onClose:t,onOpen:r}=BR(),{isOpen:n}=gM();return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Yre,{left:"dApps",isSelected:e,onClick:r}),(0,un.jsxs)(nne,{autoFocus:!1,blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsx)(cne,{children:(0,un.jsxs)(lz,{children:[(0,un.jsx)($ie,{onClose:t}),(0,un.jsx)(jce,{})]})})]})]})},jce=()=>{const e=tee();return(0,un.jsxs)(pn,{children:[(0,un.jsx)(dn,{alignItems:"center",justifyContent:"space-between",height:24,children:(0,un.jsx)(kn,{size:"xl",children:"dApps"})}),(0,un.jsx)(Dn,{onClick:()=>navigator.clipboard.readText().then((t=>{e(t)})),children:"Paste a peer request code"}),(0,un.jsx)(sz,{marginTop:"16px",marginBottom:"32px",color:"text.dark",children:"or open a deeplink from inside the dApp..."}),(0,un.jsx)(Ace,{})]})};function Rce(e){return Qj({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]})(e)}const Ice=()=>{const{isOpen:e,onClose:t,onOpen:r}=BR(),{isOpen:n}=gM();return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Yre,{left:"Error Logs",isSelected:e,onClick:r}),(0,un.jsxs)(nne,{blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsx)(cne,{children:(0,un.jsxs)(lz,{children:[(0,un.jsx)($ie,{onClose:t}),(0,un.jsx)(Mce,{})]})})]})]})},Mce=()=>{const e=[...jR((e=>e.errors))].reverse(),t=pi();return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",height:"50px",marginBottom:"20px",children:[(0,un.jsx)(kn,{size:"xl",children:"Error Logs"}),(0,un.jsxs)(pn,{children:[(0,un.jsx)("a",{download:"UmamiErrorLogs.json",href:`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(e))}`,children:(0,un.jsx)(Dn,{variant:"tertiary",children:"Download error logs"})}),(0,un.jsx)(Dn,{marginLeft:"8px",onClick:()=>{t(Bd.actions.reset())},variant:"warning",children:"Clear All"})]})]}),e.map((e=>(0,un.jsx)(Lce,{errorLog:e},na())))]})},Lce=({errorLog:e})=>(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Ree,{marginY:1}),(0,un.jsx)(dn,{justifyContent:"space-between",paddingY:3,children:(0,un.jsxs)(dn,{children:[(0,un.jsx)(LA,{as:Rce,marginTop:"1px",marginRight:2}),(0,un.jsxs)(dn,{flexDirection:"column",children:[(0,un.jsx)(kn,{wordBreak:"break-all",size:"sm",children:e.description}),(0,un.jsx)(sz,{color:EP.gray[400],size:"sm",children:e.timestamp})]})]})})]});function Nce(e={}){const{onChange:t,value:r,defaultValue:i,name:o,isDisabled:a,isFocusable:s,isNative:c,...l}=e,[u,d]=(0,n.useState)(i||""),h="undefined"!==typeof r,f=h?r:u,p=(0,n.useRef)(null),m=(0,n.useCallback)((()=>{const e=p.current;if(!e)return;let t="input:not(:disabled):checked";const r=e.querySelector(t);if(r)return void r.focus();t="input:not(:disabled)";const n=e.querySelector(t);null==n||n.focus()}),[]),g=(0,n.useId)(),v=o||`radio-${g}`,b=(0,n.useCallback)((e=>{const r=function(e){return e&&y(e)&&y(e.target)}(e)?e.target.value:e;h||d(r),null==t||t(String(r))}),[t,h]);return{getRootProps:(0,n.useCallback)(((e={},t=null)=>({...e,ref:Ln(t,p),role:"radiogroup"})),[]),getRadioProps:(0,n.useCallback)(((e={},t=null)=>{const r=c?"checked":"isChecked";return{...e,ref:t,name:v,[r]:null!=f?e.value===f:void 0,onChange(e){b(e)},"data-radiogroup":!0}}),[c,v,b,f]),name:v,ref:p,focus:m,setValue:d,value:f,onChange:b,isDisabled:a,isFocusable:s,htmlProps:l}}var[Dce,zce]=En({name:"RadioGroupContext",strict:!1}),Bce=g(((e,t)=>{const{colorScheme:r,size:i,variant:o,children:a,className:s,isDisabled:c,isFocusable:l,...u}=e,{value:d,onChange:h,getRootProps:f,name:p,htmlProps:m}=Nce(u),g=(0,n.useMemo)((()=>({name:p,size:i,onChange:h,colorScheme:r,value:d,variant:o,isDisabled:c,isFocusable:l})),[p,i,h,r,d,o,c,l]);return(0,un.jsx)(Dce,{value:g,children:(0,un.jsx)(ln.div,{...f(m,t),className:v("chakra-radio-group",s),children:a})})}));Bce.displayName="RadioGroup";var Uce={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Fce(e){e.preventDefault(),e.stopPropagation()}var $ce=g(((e,t)=>{var r;const i=zce(),{onChange:o,value:a}=e,s=Sn("Radio",{...i,...e}),c=ht(e),{spacing:l="0.5rem",children:u,isDisabled:d=(null==i?void 0:i.isDisabled),isFocusable:h=(null==i?void 0:i.isFocusable),inputProps:f,...p}=c;let m=e.isChecked;null!=(null==i?void 0:i.value)&&null!=a&&(m=i.value===a);let g=o;(null==i?void 0:i.onChange)&&null!=a&&(g=E(i.onChange,o));const v=null!=(r=null==e?void 0:e.name)?r:null==i?void 0:i.name,{getInputProps:y,getCheckboxProps:b,getLabelProps:w,getRootProps:x,htmlProps:A}=function(e={}){const{defaultChecked:t,isChecked:r,isFocusable:i,isDisabled:o,isReadOnly:a,isRequired:s,onChange:c,isInvalid:l,name:u,value:d,id:h,"data-radiogroup":f,"aria-describedby":p,...m}=e,g=`radio-${(0,n.useId)()}`,v=Gz(),y=zce();let b=!v||y||f?g:v.id;b=null!=h?h:b;const w=null!=o?o:null==v?void 0:v.isDisabled,x=null!=a?a:null==v?void 0:v.isReadOnly,E=null!=s?s:null==v?void 0:v.isRequired,A=null!=l?l:null==v?void 0:v.isInvalid,[P,T]=(0,n.useState)(!1),[O,C]=(0,n.useState)(!1),[j,R]=(0,n.useState)(!1),[I,M]=(0,n.useState)(!1),[L,N]=(0,n.useState)(Boolean(t)),D="undefined"!==typeof r,z=D?r:L;(0,n.useEffect)((()=>Xne(T)),[]);const B=(0,n.useCallback)((e=>{x||w?e.preventDefault():(D||N(e.target.checked),null==c||c(e))}),[D,w,x,c]),U=(0,n.useCallback)((e=>{" "===e.key&&M(!0)}),[M]),F=(0,n.useCallback)((e=>{" "===e.key&&M(!1)}),[M]),$=(0,n.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":_(I),"data-hover":_(j),"data-disabled":_(w),"data-invalid":_(A),"data-checked":_(z),"data-focus":_(O),"data-focus-visible":_(O&&P),"data-readonly":_(x),"aria-hidden":!0,onMouseDown:k(e.onMouseDown,(()=>M(!0))),onMouseUp:k(e.onMouseUp,(()=>M(!1))),onMouseEnter:k(e.onMouseEnter,(()=>R(!0))),onMouseLeave:k(e.onMouseLeave,(()=>R(!1)))})),[I,j,w,A,z,O,x,P]),{onFocus:H,onBlur:V}=null!=v?v:{},q=(0,n.useCallback)(((e={},t=null)=>{const r=w&&!i;return{...e,id:b,ref:t,type:"radio",name:u,value:d,onChange:k(e.onChange,B),onBlur:k(V,e.onBlur,(()=>C(!1))),onFocus:k(H,e.onFocus,(()=>C(!0))),onKeyDown:k(e.onKeyDown,U),onKeyUp:k(e.onKeyUp,F),checked:z,disabled:r,readOnly:x,required:E,"aria-invalid":S(A),"aria-disabled":S(r),"aria-required":S(E),"data-readonly":_(x),"aria-describedby":p,style:Uce}}),[w,i,b,u,d,B,V,H,U,F,z,x,E,A,p]);return{state:{isInvalid:A,isFocused:O,isChecked:z,isActive:I,isHovered:j,isDisabled:w,isReadOnly:x,isRequired:E},getCheckboxProps:$,getRadioProps:$,getInputProps:q,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:k(e.onMouseDown,Fce),"data-disabled":_(w),"data-checked":_(z),"data-invalid":_(A)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":_(w),"data-checked":_(z),"data-invalid":_(A)}),htmlProps:m}}({...p,isChecked:m,isFocusable:h,isDisabled:d,onChange:g,name:v}),[P,T]=function(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(A,tt),O=b(T),C=y(f,t),j=w(),R=Object.assign({},P,x()),I={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...s.container},M={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...s.control},L={userSelect:"none",marginStart:l,...s.label};return(0,un.jsxs)(ln.label,{className:"chakra-radio",...R,__css:I,children:[(0,un.jsx)("input",{className:"chakra-radio__input",...C}),(0,un.jsx)(ln.span,{className:"chakra-radio__control",...O,__css:M}),u&&(0,un.jsx)(ln.span,{className:"chakra-radio__label",...j,__css:L,children:u})]})}));$ce.displayName="Radio";const Hce=({network:e})=>{const t=e?"edit":"create",{onClose:r}=(0,n.useContext)(mM),i=pi(),o=H2(),{formState:{errors:a,isValid:s},register:c,handleSubmit:l}=MU({mode:"onBlur",defaultValues:e});return(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{onSubmit:l((e=>{i(qd.upsertNetwork(e)),r()})),children:[(0,un.jsxs)(oz,{textAlign:"center",children:["edit"===t?"Edit":"Add"," Network",(0,un.jsx)(cz,{})]}),(0,un.jsxs)(lz,{children:["create"===t&&(0,un.jsxs)(Zz,{marginTop:"32px",marginBottom:"24px",isInvalid:!!a.name,children:[(0,un.jsx)(FU,{children:"Name"}),(0,un.jsx)(ZU,{placeholder:"mainnet",...c("name",{required:"Name is required",validate:e=>{if(o.find((t=>t.name===e)))return"Network with this name already exists"}})}),a.name&&(0,un.jsx)(A7,{children:a.name.message})]}),(0,un.jsxs)(Zz,{marginBottom:"24px",isInvalid:!!a.rpcUrl,children:[(0,un.jsx)(FU,{children:"RPC URL"}),(0,un.jsx)(ZU,{placeholder:"https://prod.tcinfra.net/rpc/mainnet",...c("rpcUrl",{required:"RPC URL is required"})}),a.rpcUrl&&(0,un.jsx)(A7,{children:a.rpcUrl.message})]}),(0,un.jsxs)(Zz,{marginBottom:"24px",isInvalid:!!a.tzktApiUrl,children:[(0,un.jsx)(FU,{children:"Tzkt API URL"}),(0,un.jsx)(ZU,{placeholder:"https://api.ghostnet.tzkt.io",...c("tzktApiUrl",{required:"Tzkt API URL is required"})}),a.tzktApiUrl&&(0,un.jsx)(A7,{children:a.tzktApiUrl.message})]}),(0,un.jsxs)(Zz,{marginBottom:"24px",isInvalid:!!a.tzktExplorerUrl,children:[(0,un.jsx)(FU,{children:"Tzkt Explorer URL"}),(0,un.jsx)(ZU,{placeholder:"https://ghostnet.tzkt.io",...c("tzktExplorerUrl",{required:"Tzkt Explorer URL is required"})}),a.tzktExplorerUrl&&(0,un.jsx)(A7,{children:a.tzktExplorerUrl.message})]}),(0,un.jsxs)(Zz,{children:[(0,un.jsx)(FU,{children:"Buy Tez URL"}),(0,un.jsx)(ZU,{placeholder:"https://faucet.ghostnet.teztnets.xyz",...c("buyTezUrl")})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",isDisabled:!s,onClick:()=>{},type:"submit",children:"edit"===t?"Save changes":"Add network"})})]})]})})},Vce=()=>{const{openWith:e}=(0,n.useContext)(mM),t=$2(),r=V2(),i=H2(),o=CR();return(0,un.jsxs)(dn,{flexDirection:"column",children:[(0,un.jsxs)(hn,{justifyContent:"space-between",children:[(0,un.jsx)(kn,{children:"Network Settings"}),(0,un.jsxs)(Dn,{paddingRight:"0",onClick:()=>e((0,un.jsx)(Hce,{})),variant:"CTAWithIcon",children:[(0,un.jsx)(sz,{size:"sm",children:"Add Network"}),(0,un.jsx)(uR,{width:"18px",height:"18px",marginLeft:"4px",stroke:"currentcolor"})]})]}),(0,un.jsx)(Bce,{marginTop:"60px",onChange:r,value:t.name,children:(0,un.jsx)(dne,{children:i.map((t=>(0,un.jsxs)(n.Fragment,{children:[(0,un.jsx)(Ree,{borderColor:EP.gray[700]}),(0,un.jsxs)(dn,{justifyContent:"space-between","data-testid":`network-${t.name}`,children:[(0,un.jsx)($ce,{height:"100px",value:t.name,variant:"primary",children:(0,un.jsxs)(dn,{flexDirection:"column",marginLeft:"16px",children:[(0,un.jsx)(kn,{marginBottom:"4px",size:"sm",children:t.name}),(0,un.jsx)(sz,{color:EP.gray[400],children:t.rpcUrl})]})}),!Pd(t)&&(0,un.jsx)(hn,{"data-testid":"popover-menu",children:(0,un.jsxs)(nte,{children:[(0,un.jsxs)(Dn,{onClick:()=>e((0,un.jsx)(Hce,{network:t})),variant:"popover",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Edit"}),(0,un.jsx)(lR,{stroke:"inherit"})]}),(0,un.jsx)(Ree,{marginTop:"4px"}),(0,un.jsxs)(Dn,{onClick:()=>(e=>{o(qd.removeNetwork(e))})(t),variant:"popover",children:[(0,un.jsx)(sz,{marginRight:"4px",children:"Remove"}),(0,un.jsx)(xR,{stroke:"inherit"})]})]})})]})]},t.name)))})})]})},qce=()=>{const{isOpen:e,onClose:t,onOpen:r}=BR(),{isOpen:i}=(0,n.useContext)(mM);return(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(Yre,{left:"Network Settings",isSelected:e,onClick:r}),(0,un.jsxs)(nne,{blockScrollOnMount:!i,isOpen:e,onClose:t,placement:"right",children:[(0,un.jsx)(vI,{}),(0,un.jsx)(cne,{children:(0,un.jsxs)(lz,{children:[(0,un.jsx)($ie,{onClose:t}),(0,un.jsx)(Vce,{})]})})]})]})},Kce="2.0.0-beta1",Wce=()=>{const{onClose:e}=(0,n.useContext)(mM),t=MU({mode:"onBlur"}),r=cN(),i=CR(),{handleAsyncAction:o,isLoading:a}=k7(),{handleSubmit:s,formState:{isValid:c,errors:l},getValues:u}=t;return(0,un.jsx)(PB,{...t,children:(0,un.jsx)(iz,{background:EP.gray[700],"data-testid":"change-password-modal",children:(0,un.jsxs)("form",{onSubmit:s((async({currentPassword:t,newPassword:n,newPasswordConfirmation:a})=>{t!==n&&n===a&&o((async()=>{await i(Mc({currentPassword:t,newPassword:n})).unwrap(),r({description:"Password updated",status:"success"}),e()}))})),children:[(0,un.jsx)(cz,{}),(0,un.jsx)(oz,{textAlign:"center",children:(0,un.jsx)(kn,{children:"Change Password"})}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{marginTop:"32px",isInvalid:!!l.currentPassword,children:[(0,un.jsx)(P7,{"data-testid":"current-password",inputName:"currentPassword",label:"Current Password",placeholder:"Enter your current password",required:"Current password is required"}),l.currentPassword&&(0,un.jsx)(A7,{"data-testid":"current-password-error",children:l.currentPassword.message})]}),(0,un.jsxs)(Zz,{isInvalid:!!l.newPassword,marginY:6,children:[(0,un.jsx)(P7,{"data-testid":"new-password",inputName:"newPassword",label:"New Password",placeholder:"Enter new password",required:"New password is required",validate:e=>u("currentPassword")!==e||"Cannot be the same as old password"}),l.newPassword&&(0,un.jsx)(A7,{"data-testid":"new-password-error",children:l.newPassword.message})]}),(0,un.jsxs)(Zz,{marginTop:3,isInvalid:!!l.newPasswordConfirmation,children:[(0,un.jsx)(P7,{"data-testid":"new-password-confirmation",inputName:"newPasswordConfirmation",label:"Confirm New Password",placeholder:"Confirm new password",required:"Confirmation is required",validate:e=>u("newPassword")===e||"Your new passwords do no match"}),l.newPasswordConfirmation&&(0,un.jsx)(A7,{"data-testid":"new-password-confirmation-error",children:l.newPasswordConfirmation.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(Dn,{width:"100%",isDisabled:!c,isLoading:a,size:"lg",type:"submit",children:"Update Password"})})]})})})},Gce="wasabi",Zce=()=>{const e=()=>{localStorage.clear(),window.location.reload()},t=MU({mode:"onBlur"}),{register:r,handleSubmit:n,formState:{isValid:i,errors:o},getValues:a}=t;return(0,un.jsx)(PB,{...t,children:(0,un.jsxs)("form",{onSubmit:n((()=>{a("check")&&a("confirmationCode")===Gce&&e()})),children:[(0,un.jsx)(cz,{}),(0,un.jsx)(oz,{marginBottom:"10px",textAlign:"center",children:(0,un.jsxs)(pn,{children:[(0,un.jsx)(TR,{width:10,height:10,marginBottom:5}),(0,un.jsx)(kn,{children:"Off-board Wallet"})]})}),(0,un.jsxs)(pn,{children:[(0,un.jsx)(sz,{marginBottom:2,color:EP.gray[400],fontWeight:"bold",textAlign:"center",size:"sm",children:"This will permanently remove any data from this computer."}),(0,un.jsxs)(sz,{color:EP.gray[400],textAlign:"center",size:"sm",children:["Please enter \xab ",Gce," \xbb to confirm. The accounts are still available to be imported in the future; in order to regain access to your accounts, please make sure that you keep the recovery phrase."]}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(Ree,{borderColor:EP.gray[700],marginY:5}),(0,un.jsx)(Zz,{isInvalid:!!o.check,children:(0,un.jsx)(oie,{...r("check",{required:!0}),children:(0,un.jsx)(sz,{marginLeft:2,fontWeight:"bold",children:"I have read the warning and I am certain I want to remove my private keys locally. I also made sure to keep my recovery phrase."})})}),(0,un.jsx)(Ree,{borderColor:EP.gray[700],marginY:5}),(0,un.jsxs)(Zz,{isInvalid:!!o.confirmationCode,paddingY:5,children:[(0,un.jsx)(ZU,{type:"text",...r("confirmationCode",{required:"Confirmation is required",validate:e=>e===Gce||"Confirmation code does not match"}),placeholder:"Enter code word to confirm"}),o.confirmationCode&&(0,un.jsx)(A7,{children:o.confirmationCode.message})]})]})]}),(0,un.jsx)(tB,{padding:0,children:(0,un.jsx)(Dn,{width:"100%",marginBottom:2,isDisabled:!i,size:"lg",type:"submit",variant:"warning",children:"Confirm"})})]})})},Yce=()=>(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Settings"}),(0,un.jsxs)(pn,{overflowY:"scroll",children:[(0,un.jsx)(pn,{marginTop:"16px",children:(0,un.jsx)(Xce,{})}),(0,un.jsx)(Jce,{}),(0,un.jsx)(ele,{}),(0,un.jsx)(tle,{})]})]}),Xce=()=>(0,un.jsxs)(rle,{title:"General",children:[(0,un.jsx)(qce,{}),(0,un.jsx)(Ice,{})]}),Jce=()=>null,Qce=()=>{const e={version:Kce,"persist:accounts":localStorage.getItem("persist:accounts"),"persist:root":localStorage.getItem("persist:root")},t=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(e))}`,r=document.createElement("a");r.href=t,r.download="UmamiV2Backup.json",r.click()},ele=()=>(0,un.jsx)(rle,{title:"Backup",children:(0,un.jsx)(Zre,{isSelected:!1,onClick:Qce,children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"space-between",children:[(0,un.jsx)(kn,{size:"sm",children:"Download backup file"}),(0,un.jsx)(Dn,{onClick:Qce,variant:"unstyled",children:(0,un.jsx)(Cj,{cursor:"pointer"})})]})})}),tle=()=>{const{modalElement:e,onOpen:t}=(()=>{const{isOpen:e,onOpen:t,onClose:r}=BR();return{modalElement:(0,un.jsxs)(nI,{isCentered:!0,isOpen:e,onClose:r,children:[(0,un.jsx)(vI,{}),(0,un.jsx)(iz,{background:EP.gray[900],children:(0,un.jsx)(Zce,{})})]}),onOpen:t}})(),{openWith:r}=(0,n.useContext)(mM);return(0,un.jsxs)(rle,{title:"Advanced Settings",children:[(0,un.jsx)(Cce,{}),(0,un.jsx)(Yre,{left:"Off-board Wallet",isSelected:!1,onClick:t}),(0,un.jsx)(Yre,{left:"Change Password",isSelected:!1,onClick:()=>r((0,un.jsx)(Wce,{}))}),e]})},rle=({title:e,children:t})=>(0,un.jsx)(pn,{marginTop:"8px",children:(0,un.jsx)(dn,{children:(0,un.jsxs)(pn,{width:"550px",children:[(0,un.jsx)(kn,{marginBottom:"16px",size:"lg",children:e}),t]})})}),nle=({token:e,amount:t,...r})=>{const{contract:n}=e,i=ld(t,e),o=id(e);return(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"start",width:"400px",padding:"15px",background:EP.gray[800],borderRadius:"4px","data-testid":"token-tile",...r,children:[(0,un.jsx)(dn,{alignItems:"center",children:(0,un.jsx)(dz,{width:"30px",height:"30px",marginRight:"12px",ratio:1,children:(0,un.jsx)(wR,{padding:"6.25px",background:EP.gray[500],borderRadius:"4px",contract:n})})}),(0,un.jsx)(u3,{number:i}),(0,un.jsx)(sz,{marginLeft:"4px",size:"sm",children:o})]})},ile=e=>{const{mode:t,operations:r,fee:n,data:{token:i}}=e,{fee:o,operations:a,estimationFailed:s,isLoading:c,form:l,signer:u,reEstimate:d,onSign:h}=dte(n,r,t),{amount:f,recipient:p}=a.operations[0];return(0,un.jsx)(PB,{...l,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)($7,{...e,operationsType:a.type,signer:a.signer}),(0,un.jsxs)(lz,{children:[(0,un.jsx)(nle,{amount:f,token:i}),(0,un.jsx)(dn,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,un.jsx)(dn,{children:(0,un.jsx)(M7,{fee:o})})}),(0,un.jsx)(FU,{children:"From"}),(0,un.jsx)(h3,{marginBottom:"24px",address:a.sender.address}),(0,un.jsx)(FU,{children:"To"}),(0,un.jsx)(h3,{address:p}),(0,un.jsx)(ate,{isLoading:c,operationType:a.type,reEstimate:d,sender:a.sender})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(T7,{isDisabled:s,isLoading:c,onSubmit:h,signer:u,text:U7(a.type,t)})})]})})})},ole=e=>{const{token:t}=e,r=vte({SignPage:ile,signPageExtraData:{token:t},FormPage:ole,defaultFormPageProps:e,toOperation:ale(t)}),n=yte(ale(t)),{onFormSubmitActionHandlers:[i,o],isLoading:a}=bte([r,n]),s=MU({mode:"onBlur",defaultValues:ute(e)}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s,h=ad(t),f=cd(t.balance,h),p=fte(Number(h));return(0,un.jsx)(PB,{...s,children:(0,un.jsx)(iz,{children:(0,un.jsxs)("form",{children:[(0,un.jsx)(N7,{}),(0,un.jsxs)(lz,{children:[(0,un.jsxs)(Zz,{isInvalid:!!l.prettyAmount,children:[(0,un.jsx)(FU,{children:"Amount"}),(0,un.jsxs)(KU,{children:[(0,un.jsx)(ZU,{isDisabled:a,step:p,type:"number",...u("prettyAmount",{required:"Amount is required",max:{value:f.toString(),message:`Max amount is ${f}`},validate:pte(Number(h))}),placeholder:p}),(0,un.jsx)(QU,{paddingRight:"12px","data-testid":"token-symbol",children:id(t)})]}),l.prettyAmount&&(0,un.jsx)(A7,{"data-testid":"amount-error",children:l.prettyAmount.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,un.jsx)(b3,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"}),l.sender&&(0,un.jsx)(A7,{"data-testid":"from-error",children:l.sender.message})]}),(0,un.jsxs)(Zz,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,un.jsx)(v3,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,un.jsx)(A7,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,un.jsx)(tB,{children:(0,un.jsx)(lte,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i)})})]})})})},ale=e=>t=>{const r={type:"fa2",sender:qu(t.sender),recipient:qu(t.recipient),contract:Zu(e.contract),tokenId:e.tokenId,amount:sd(e,t.prettyAmount)};return"fa2"===e.type?r:{...r,type:"fa1.2",tokenId:"0"}},sle=({account:e})=>{const{address:t,label:r}=e,n=a3(t);return(0,un.jsxs)(dn,{alignItems:"center",height:"78px",background:Ere({left:"-10px",top:"-10px",account:e,radius:"100px",mainBackgroundColor:EP.gray[800]}),borderTopRadius:"8px","data-testid":"header",paddingX:"30px",children:[(0,un.jsx)(cH,{addressKind:n,identiconSize:35,size:"lg"}),(0,un.jsxs)(dn,{justifyContent:"space-between",flex:1,children:[(0,un.jsxs)(pn,{marginLeft:"16px","data-testid":"account-identifier",children:[(0,un.jsx)(kn,{marginBottom:"4px",size:"md",children:r}),(0,un.jsx)(sz,{color:EP.gray[300],size:"sm",children:Y2(t.pkh)})]}),(0,un.jsx)(dn,{flexDirection:"column-reverse",children:(0,un.jsx)(d3,{verticalAlign:"bottom",address:e.address.pkh})})]})]})},cle=({account:e,tokens:t})=>{const{openWith:r}=(0,n.useContext)(mM);return(0,un.jsxs)(zU,{overflowX:"auto",marginBottom:"16px",borderBottomRadius:"8px",backgroundColor:EP.gray[900],children:[(0,un.jsx)(sle,{account:e}),(0,un.jsx)(mee,{paddingX:"30px",children:(0,un.jsx)(yee,{children:(0,un.jsx)(bee,{children:t.map(((n,i)=>{const o=i===t.length-1?"transparent":EP.gray[700];return(0,un.jsxs)(wee,{"data-testid":"token-tile",children:[(0,un.jsx)(xee,{width:"20%",minWidth:"240px",borderColor:o,paddingX:"0",children:(0,un.jsxs)(dn,{alignItems:"center",children:[(0,un.jsx)(wR,{display:"inline-block",width:"38px",contract:n.contract}),(0,un.jsx)(kn,{display:"inline-block",marginLeft:"16px",size:"sm",children:(0,un.jsx)(use,{token:n})})]})}),(0,un.jsx)(xee,{width:"20%",minWidth:"200px",borderColor:o,paddingX:"0",children:(0,un.jsx)(gre,{address:Zu(n.contract)})}),(0,un.jsx)(xee,{width:"15%",minWidth:"160px",borderColor:o,paddingX:"0",children:(0,un.jsx)(kn,{size:"sm",children:ld(n.balance,n,{showSymbol:!1})})}),(0,un.jsx)(xee,{textAlign:"right",borderColor:o,paddingX:"0",children:(0,un.jsx)(ote,{onClick:()=>{r((0,un.jsx)(ole,{sender:e,token:n}))}})})]},td(n))}))})})})]})},lle=()=>{const{accountsFilter:e,selectedAccounts:t}=Sce(),r=e3(),n=t.map((e=>[e,r(e.address.pkh)])).filter((([,e])=>e.length>0));return(0,un.jsxs)(dn,{flexDirection:"column",height:"100%",children:[(0,un.jsx)(tre,{title:"Tokens"}),e,0===n.length?(0,un.jsx)(Zoe,{title:"No Tokens found"}):(0,un.jsx)(pn,{overflowY:"auto",children:n.map((([e,t])=>(0,un.jsx)(cle,{account:e,tokens:t},e.address.pkh)))})]})},ule=({isCollapsed:e,...t})=>{const r=e?Kce:`Umami v${Kce}`;return(0,un.jsx)(sz,{color:EP.gray[450],...t,children:r})},dle=({toggle:e,...t})=>(0,un.jsx)(hn,{width:"44px",height:"44px",marginRight:"-14px",borderRadius:"4px",_hover:{background:EP.gray[800]},cursor:"pointer","data-testid":"collapse-menu-button",onClick:e,...t,children:(0,un.jsx)(yj,{})}),hle=e=>{const t=$2();return(0,un.jsx)(aR,{background:"white",borderRadius:"8px","data-testid":"maki-logo",fishColor:"mainnet"===t.name?"#F74F18":"black",...e})},fle=()=>{const e=$2(),t=H2(),r=V2(),{onOpen:i,onClose:o,isOpen:a}=BR();return(0,un.jsxs)(Zee,{isOpen:a,onClose:o,onOpen:i,placement:"bottom-end",children:[(0,un.jsx)(Yee,{children:(0,un.jsxs)(Dn,{marginTop:"4px",color:EP.green,"data-testid":"network-selector",variant:"unstyled",children:[(0,Va.capitalize)(e.name),a?(0,un.jsx)(_j,{marginTop:"-2px",stroke:"currentcolor"}):(0,un.jsx)(wj,{marginTop:"-2px",stroke:"currentcolor"})]})}),(0,un.jsx)(tte,{width:"100px",marginTop:"-10px",background:EP.gray[700],border:"1px solid",borderColor:EP.gray[500],children:(0,un.jsx)(rte,{padding:"4px 12px",children:(0,un.jsx)(dn,{flexDirection:"column",children:t.map(((i,a)=>(0,un.jsxs)(n.Fragment,{children:[(0,un.jsx)(Dn,{height:"34px",color:i.name===e.name?EP.green:EP.gray[300],fontSize:"14px",fontWeight:400,textAlign:"right",_hover:{color:EP.greenL},onClick:()=>{r(i.name),o()},variant:"unstyled",children:(0,Va.capitalize)(i.name)}),a{const[e,t]=(0,n.useState)(!1),r=window;(0,n.useEffect)((()=>{r&&r.electronAPI&&r.electronAPI.onAppUpdateDownloaded((e=>t(!0)))}),[r]);return e?(0,un.jsx)(pn,{marginTop:"24px",marginBottom:"6px",children:(0,un.jsxs)(Dn,{justifyContent:"flex-start",width:"100%",height:"32px",paddingTop:"7px",paddingRight:"8px",paddingBottom:"7px",paddingLeft:"8px",color:EP.black,background:EP.green,_hover:{color:EP.black,background:EP.greenL},onClick:()=>{r&&r.electronAPI&&r.electronAPI.installAppUpdateAndQuit()},children:[(0,un.jsx)($j,{}),(0,un.jsx)(sz,{marginLeft:"4px",size:"sm",children:"Update Umami"})]})}):null},mle=()=>{const{isCollapsed:e,toggle:t}=(()=>{const[e,t]=(0,n.useState)(!1),r=(0,n.useCallback)((()=>{t((e=>!e))}),[]);return{isCollapsed:e,toggle:r}})(),r=(0,un.jsx)(dle,{marginTop:e?0:"2px",marginRight:e?0:"-14px",toggle:t});return(0,un.jsxs)(dn,{alignItems:e?"center":"normal",flexDirection:"column",width:e?"80px":"236px",padding:e?"30px 20px":"30px",background:EP.gray[900],"data-testid":"side-navbar"+(e?"-collapsed":""),children:[(0,un.jsxs)(pn,{children:[(0,un.jsx)(dn,{alignItems:"center",justifyContent:"space-between",height:"30px",children:e?r:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(hle,{width:"38px",height:"38px"}),(0,un.jsxs)(dn,{children:[(0,un.jsx)(fle,{}),r]})]})}),(0,un.jsx)(Ree,{marginTop:"28px"})]}),(0,un.jsxs)(dn,{justifyContent:"space-between",flexDirection:"column",flex:1,children:[(0,un.jsxs)(pn,{alignItems:e?"center":"normal",justifyContent:e?"space-around":"normal",display:e?"flex":"block",height:"100%",children:[!e&&(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(ple,{}),(0,un.jsx)(vle,{})]}),(0,un.jsxs)(pn,{children:[(0,un.jsx)(gle,{icon:(0,un.jsx)(hj,{}),isCollapsed:e,label:"Accounts",to:"/home"}),(0,un.jsx)(gle,{icon:(0,un.jsx)(Pj,{}),isCollapsed:e,label:"NFTs",to:"/nfts"}),(0,un.jsx)(gle,{icon:(0,un.jsx)(dR,{width:"24px",height:"24px"}),isCollapsed:e,label:"Operations",to:"/operations"}),(0,un.jsx)(gle,{icon:(0,un.jsx)(Sj,{}),isCollapsed:e,label:"Tokens",to:"/tokens"}),(0,un.jsx)(gle,{icon:(0,un.jsx)(vj,{}),isCollapsed:e,label:"Batch",to:"/batch"})]})]}),(0,un.jsxs)(pn,{children:[(0,un.jsx)(Ree,{}),(0,un.jsx)(gle,{marginTop:"22px",icon:(0,un.jsx)(mj,{}),isCollapsed:e,label:"Address Book",to:"/address-book"}),(0,un.jsx)(gle,{icon:(0,un.jsx)(Hj,{}),isCollapsed:e,label:"Settings",to:"/settings"}),(0,un.jsx)(gle,{icon:(0,un.jsx)(Vj,{}),isCollapsed:e,label:"Help",to:"/help"}),(0,un.jsx)(ule,{marginTop:"24px",fontSize:"14px",textAlign:e?"center":"left",isCollapsed:e})]})]})]})},gle=({icon:e,label:t,to:r,isCollapsed:n,...i})=>{const o=$T().pathname.startsWith(r);return(0,un.jsx)(vO,{to:r,children:(0,un.jsxs)(dn,{alignItems:"center",justifyContent:"flex-start",width:n?"44px":"176px",marginBottom:"8px",padding:"10px",background:o?EP.gray[600]:"transparent",borderRadius:"4px",_hover:{background:o?EP.gray[600]:EP.gray[800]},cursor:"pointer",...i,children:[e,!n&&(0,un.jsx)(sz,{marginLeft:"10px",size:"sm",children:t})]})})},vle=()=>{const e=n3(),[t]=Ste("(max-height: 900px)");return(0,un.jsxs)(pn,{marginTop:"24px",marginBottom:t?"30px":"100px","data-testid":"total-balance",children:[(0,un.jsx)(sz,{marginBottom:"4px",size:"sm",children:"Balance"}),e&&(0,un.jsx)(Ese,{balance:e.mutez,dollarBalance:e.usd})]})},yle=e=>(0,un.jsxs)(dn,{height:"100vh",children:[(0,un.jsx)(mle,{}),(0,un.jsx)(pn,{flex:1,overflowX:"hidden",height:"100%",background:"linear-gradient(180deg, rgba(0, 231, 182, 0.35) -41.53%, rgba(0, 231, 182, 0.00) 34.71%)",paddingX:6,children:e})]}),ble=r.p+"static/media/accounts.5f47a2af4c8394165d1e.png",wle=r.p+"static/media/background_image.a833e862a22ad4910526.png",xle=r.p+"static/media/batch.5ba4eb38fa8c4e1ed39b.png",_le=r.p+"static/media/multisig.3ab2bbc3bda7df25ea83.png";var Sle=r(2602);const kle=({children:e})=>{const t={background:EP.gray[400],width:"10px",height:"10px",display:"inline-block",margin:"0 4px 60px 4px",borderRadius:"5px"};return(0,un.jsx)(pn,{backgroundImage:"linear-gradient(180deg, rgba(18, 18, 18, 0.00) 36.43%, rgba(18, 18, 18, 0.50) 53.65%, #121212 76.24%)",borderRightRadius:"30px",backgroundColor:"#323131",children:(0,un.jsx)(Sle.lr,{autoPlay:!0,dynamicHeight:!1,infiniteLoop:!0,interval:5e3,renderIndicator:(e,r,n)=>r?(0,un.jsx)("li",{style:{...t,background:"#00C39A",width:"24px"}}):(0,un.jsx)("li",{onClick:e,onKeyDown:e,role:"button",style:t,tabIndex:0,value:n},n),showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:1e3,children:e})})},Ele=({item:e})=>(0,un.jsx)(pn,{height:"730px",paddingTop:"500px",paddingBottom:"35px",backgroundImage:e.image,backgroundSize:"cover",backgroundRepeat:"no-repeat","data-testid":`slide-${e.id}`,children:(0,un.jsxs)(hn,{flexDirection:"column",paddingBottom:"50px",children:[(0,un.jsx)(fne,{icon:e.icon,size:"58px"}),(0,un.jsx)(sz,{width:"400px",margin:"16px 50px 0 50px",children:e.text})]})}),Ale=()=>{const[e,t]=(0,n.useState)(!0),{onOpen:r,modalElement:i}=Cie((()=>t(!0))),o=[{id:1,text:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(sz,{as:"span",fontWeight:600,size:"md",children:"Streamline asset management:\xa0"}),(0,un.jsx)(sz,{as:"span",size:"md",children:"one mnemonic, multiple accounts, full control."})]}),icon:(0,un.jsx)(pR,{}),image:ble},{id:2,text:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(sz,{as:"span",size:"md",children:"Enhance security with\xa0"}),(0,un.jsx)(sz,{as:"span",fontWeight:600,size:"md",children:"Multi-sig"}),(0,un.jsx)(sz,{as:"span",size:"md",children:", requiring multiple signatures for transaction executions."})]}),icon:(0,un.jsx)(Wj,{width:"32px",height:"32px",stroke:EP.gray[450],strokeWidth:"0.9"}),image:_le},{id:3,text:(0,un.jsxs)(un.Fragment,{children:[(0,un.jsx)(sz,{as:"span",size:"md",children:"Utilize the\xa0"}),(0,un.jsx)(sz,{as:"span",fontWeight:600,size:"md",children:"Batch\xa0"}),(0,un.jsx)(sz,{as:"span",size:"md",children:"feature to bundle transactions, improving efficiency and reducing costs."})]}),icon:(0,un.jsx)(vj,{width:"32px",height:"32px",strokeWidth:"0.9"}),image:xle}];return(0,un.jsxs)(hn,{height:"100vh",padding:"60px",backgroundImage:wle,backgroundSize:"cover",children:[e&&(0,un.jsxs)(Aie,{boxShadow:"0px 0px 30px rgba(0, 0, 0, 0.30)",columns:[1,1,2],children:[(0,un.jsx)(hn,{width:"100%",maxWidth:"660px",background:EP.gray[800],borderLeftRadius:"30px",children:(0,un.jsxs)(hne,{maxWidth:"400px",padding:"32px",spacing:"0",children:[(0,un.jsx)(hle,{width:"48px",height:"48px",marginBottom:"24px"}),(0,un.jsx)(kn,{marginBottom:"16px",size:"3xl",children:"Welcome to Umami"}),(0,un.jsx)(Ree,{maxWidth:"400px",marginBottom:"16px"}),(0,un.jsx)(sz,{marginBottom:"32px",color:EP.gray[450],children:"A powerful Tezos wallet"}),(0,un.jsx)(Dn,{width:"100%",marginBottom:"24px",onClick:()=>{t(!1),r()},size:"lg",children:"Get started"}),(0,un.jsx)(ule,{fontSize:"13px"})]})}),(0,un.jsx)(pn,{maxWidth:"660px",children:(0,un.jsx)(kle,{children:o.map((e=>(0,un.jsx)(Ele,{item:e},e.id)))})})]}),i]})},Ple=()=>{pee();return HH().length>0?(0,un.jsx)(Tle,{}):(0,un.jsx)(Ole,{})},Tle=()=>{fee();const e=gM();return(0,un.jsx)(pO,{children:(0,un.jsx)(mM.Provider,{value:e,children:(0,un.jsxs)(ree,{children:[(0,un.jsx)(RR,{}),(0,un.jsxs)(sO,{children:[(0,un.jsx)(oO,{element:yle((0,un.jsx)(Kse,{})),path:"/home"}),(0,un.jsx)(oO,{element:yle((0,un.jsx)(Kse,{})),path:"/home/:ownerPkh/:nftId"}),(0,un.jsx)(oO,{element:yle((0,un.jsx)(kce,{})),path:"/nfts"}),(0,un.jsx)(oO,{element:yle((0,un.jsx)(Ece,{})),path:"/operations"}),(0,un.jsx)(oO,{element:yle((0,un.jsx)(lle,{})),path:"/tokens"}),(0,un.jsx)(oO,{element:yle((0,un.jsx)(nre,{})),path:"/address-book"}),(0,un.jsx)(oO,{element:yle((0,un.jsx)(Yce,{})),path:"/settings"}),(0,un.jsx)(oO,{element:yle((0,un.jsx)(Xre,{})),path:"/help"}),(0,un.jsx)(oO,{element:yle((0,un.jsx)(Vre,{})),path:"/batch"}),(0,un.jsx)(oO,{element:(0,un.jsx)(iO,{to:"/home"}),path:"/*"})]}),e.content]})})})},Ole=()=>{const e=(()=>{const e=pi();return()=>e(Id.actions.reset())})();return(0,n.useEffect)((()=>{(async()=>{await X7.removeAllAccounts(),await X7.removeAllAppMetadata(),await X7.removeAllPeers(),await X7.removeAllPermissions()})().then(e)}),[e]),(0,un.jsx)(pO,{children:(0,un.jsxs)(sO,{children:[(0,un.jsx)(oO,{element:(0,un.jsx)(iO,{to:"/welcome"}),path:"/*"}),(0,un.jsx)(oO,{element:(0,un.jsx)(Ale,{}),path:"/welcome"})]})})};o.createRoot(document.getElementById("root")).render((0,un.jsx)(n.StrictMode,{children:(0,un.jsx)(YP,{children:(0,un.jsx)(Jd,{children:(0,un.jsx)(m,{loading:null,persistor:die,children:(0,un.jsx)(c,{fallback:(0,un.jsx)(Un,{}),onError:(e,t)=>{const r={...S7(e),stacktrace:String(t.componentStack)};Xd.dispatch(Bd.actions.add(r))},children:(0,un.jsx)(Hn,{children:(0,un.jsx)(Ple,{})})})})})})}))})()})(); +//# sourceMappingURL=main.6d8241ab.js.map \ No newline at end of file diff --git a/static/js/main.332c8484.js.LICENSE.txt b/static/js/main.6d8241ab.js.LICENSE.txt similarity index 100% rename from static/js/main.332c8484.js.LICENSE.txt rename to static/js/main.6d8241ab.js.LICENSE.txt diff --git a/static/js/main.332c8484.js.map b/static/js/main.6d8241ab.js.map similarity index 67% rename from static/js/main.332c8484.js.map rename to static/js/main.6d8241ab.js.map index 27202af73..1a668c83e 100644 --- a/static/js/main.332c8484.js.map +++ b/static/js/main.6d8241ab.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/main.332c8484.js","mappings":";8BAeIA,EAkDJ,SAASC,EAAYC,EAAMC,GACpBC,UAAUC,QACbH,EAAK,WAEPA,EAAK,QAASC,EAChB,CAEA,SAASG,EAAgBC,EAAOL,EAAMM,GACpCJ,UAAUK,cACPC,SAASH,EAAOC,GAChBG,MAAK,SAAUC,GACdV,EAAK,aAAcU,GACfA,EAAaC,QACfX,EAAK,UAAWU,GAGlBA,EAAaE,cAAgB,WAC3BZ,EAAK,cAAeU,GACpB,IAAIG,EAAmBH,EAAaI,WACpCD,EAAiBE,cAAgB,WACA,cAA3BF,EAAiBG,QACfd,UAAUK,cAAcU,WAK1BjB,EAAK,UAAWU,GAKhBV,EAAK,SAAUU,GAGrB,CACF,CACF,IACCQ,OAAM,SAAUjB,GAAS,OAAOF,EAAYC,EAAMC,EAAQ,GAC/D,CAtFsB,qBAAXkB,SAQPrB,EAHsB,qBAAbsB,UAAqD,gBAAxBA,SAASC,YAAwD,aAAxBD,SAASC,WAE5D,qBAAZC,QACC,IAAIA,SAAQ,SAAUC,GAAW,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A,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,GACA,EACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,EACA,GACA,EACA,GACA,GACA,IAIIqQ,EAAI,IAAIhM,YAAY,IACpB0U,EAAI,IAAI1U,YAAY,IAC1B,SAASynC,EAAiBhK,EAAKiJ,GAC7B,IAAIpoC,EAAI,EACR,IAAKA,EAAI,EAAGA,EAAI,EAAGA,IAEjB0N,EAAE1N,GAAKm/B,EAAI1+B,EAAET,GACb0N,EAAE1N,EAAI,GAAKkpC,EAAWlpC,GAUxB,IAPA0N,EAAE,KAAOyxB,EAAIv2B,EACb8E,EAAE,KAAOyxB,EAAIv2B,EAAI,WACbw/B,IAEF16B,EAAE,KAAOA,EAAE,KAGR1N,EAAI,EAAGA,EAAI,GAAIA,IAElBoW,EAAEpW,GAAK+oC,EAAU5J,EAAIjiC,EAAG,EAAI8C,GAO9B,IAAKA,EAAI,EAAGA,EAAI,GAAIA,IAElBgpC,EAAM,EAAG,EAAG,EAAG,GAAI5yB,EAAE7E,EAAU,GAAJvR,EAAS,IAAKoW,EAAE7E,EAAU,GAAJvR,EAAS,KAC1D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KAAM,EACNK,OAAQ,CACN,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,kEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,sEAINN,IAAK,CACH5kB,IAAK,EACLklB,OAAQ,CACN,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,iEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oGCrwBR,IAAIlC,EAAQ/pD,EACRm0B,EAAKpxB,EAAQ,KACb24D,EAAY34D,EAAQ,KACpB44D,EAAW54D,EAAQ,MAEvBgnD,EAAMlnD,OAAS64D,EACf3R,EAAMj0B,QAAU6lC,EAAS7lC,QACzBi0B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QACjC,CAAC,sBAAuB,QACxB,CAAC,oBAAqB,UACtB,CAAC,eAAgB,MACjB,CAAC,YAAa,MACd,CAAC,QAAS,QACVxtE,SAAQ,SAAUwtE,GAClB,OAAOS,EAAUQ,gBAAgBjB,EAAK,GAAIA,EAAK,GACjD,IAKA,CAEE,YACA,SACA,SACA,MACA,WACA,UACA,OACA,YACA,QACA,YACA,QACA,QACA,QACA,QACA,UACA,SACA,OACA,OACA,UACA,QACA,WACA,MACA,WACA,cACA,QACA,SACA,WACA,YACA,MACA,SACA,YACA,YACA,YACA,WACA,WACA,MACA,UACA,UACA,WACA,WACA,eACA,SACA,SACA,YACA,WACA,YACA,cACA,QACA,UACA,QACA,SACA,aACA,YACA,WACA,OACA,QACA,OACA,QACA,QACA,MACA,QACA,OACA,OACA,YACA,OACA,WACA,SACA,SACA,YACA,WACA,OACA,WACA,OACA,SACA,WACA,SACA,SACA,WACA,SACA,WACA,UACA,QACA,QACA,SACA,UACA,iBACA,QACA,OACA,SACA,UACA,UACA,aACA,WACA,MACA,kBAEA,gBACA,SACA,SACA,YACA,WACA,QACA,WACAxtE,QAAQiuE,EAAUS,oBAEbT,CACT,CAhfqBA,aCLrB,IAOIY,EACAC,EARAj7G,EAAUktB,EAAOtxB,QAAU,CAAC,EAUhC,SAASs/G,IACL,MAAM,IAAIv+G,MAAM,kCACpB,CACA,SAASw+G,IACL,MAAM,IAAIx+G,MAAM,oCACpB,CAqBA,SAASy+G,EAAWC,GAChB,GAAIL,IAAqBh3B,WAErB,OAAOA,WAAWq3B,EAAK,GAG3B,IAAKL,IAAqBE,IAAqBF,IAAqBh3B,WAEhE,OADAg3B,EAAmBh3B,WACZA,WAAWq3B,EAAK,GAE3B,IAEI,OAAOL,EAAiBK,EAAK,EACjC,CAAE,MAAM3/F,GACJ,IAEI,OAAOs/F,EAAiBprG,KAAK,KAAMyrG,EAAK,EAC5C,CAAE,MAAM3/F,GAEJ,OAAOs/F,EAAiBprG,KAAKxQ,KAAMi8G,EAA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ArBA,EAAUxjb,OAC1B,MAAM,IAAIS,MAA8B,wBAAA6ib,KAG1C,MAAMG,EAAkBV,GAA0BQ,GAClD,OAAOC,EAAUt0a,KAAKsQ,GAChBika,GAAmBA,EAAgBR,kBAC9B,GAAGzja,SAASika,EAAgBR,oBAE9B,GAAGzja,SACV,ECjESoka,GAAqC,CAChDC,aAAc,KAEdC,mBAAoB,CAClB,sCACA,sCACA,wCACA,qCACA,4CACA,oCACA,2CACA,uCACA,iCAEFC,aAAc,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,GACvCC,aAAc,CACZ,CACEzoa,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,kEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,sEClDIyoa,GAA0E,CACrF,CAACvB,GAAuBG,kBAAmB,CACzC,CACEtna,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,mEAEL,CACED,EAAG,mEACHC,EAAG,qEAGP,CAACkna,GAAuBE,kBAAmB,CACzC,CACErna,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,qEAGP,CAACkna,GAAuBC,iBAAkB,CACxC,CACEpna,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEACHC,EAAG,oEAEL,CACED,EAAG,mEAC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AS,IAAKn0G,QAXjCo+W,CAACj4e,EAAcs0M,KAC9B,MAAMm0M,EAAe,IAAKw6C,GAAgBjjc,GAAQkjc,WAAY1qZ,OAAO87J,EAAKx3D,iBAC1E6yF,GAAMz2F,SAAS6xH,GAAYn3K,QAAQ7rF,IAAI0gZ,GAAc,EASa/0R,UACxDy6G,EAAAA,GAAAA,KAACM,GAAkB,CAAA/6G,UACjBy6G,EAAAA,GAAAA,KAACy9F,IAAM","sources":["../node_modules/@chaitanyapotti/register-service-worker/index.js","../node_modules/@noble/hashes/src/_assert.ts","../node_modules/@noble/hashes/src/_sha2.ts","../node_modules/@noble/hashes/src/_u64.ts","../node_modules/@noble/hashes/src/crypto.ts","../node_modules/@noble/hashes/src/hmac.ts","../node_modules/@noble/hashes/src/pbkdf2.ts","../node_modules/@noble/hashes/src/sha256.ts","../node_modules/@noble/hashes/src/sha3.ts","../node_modules/@noble/hashes/src/sha512.ts","../node_modules/@noble/hashes/src/utils.ts","../node_modules/@stablelib/binary/binary.ts","../node_modules/@stablelib/blake2b/blake2b.ts","../node_modules/@stablelib/bytes/bytes.ts","../node_modules/@stablelib/constant-time/constant-time.ts","../node_modules/@stablelib/ed25519/ed25519.ts","../node_modules/@stablelib/hash/hash.ts","../node_modules/@stablelib/hmac/hmac.ts","../node_modules/@stablelib/int/int.ts","../node_modules/@stablelib/nacl/box.ts","../node_modules/@stablelib/nacl/nacl.ts","../node_modules/@stablelib/nacl/secretbox.ts","../node_modules/@stablelib/poly1305/poly1305.ts","../node_modules/@stablelib/random/random.ts","../node_modules/@stablelib/random/source/browser.ts","../node_modules/@stablelib/random/source/node.ts","../node_modules/@stablelib/random/source/system.ts","../node_modules/@stablelib/salsa20/salsa20.ts","../node_modules/@stablelib/sha512/sha512.ts","../node_modules/@stablelib/utf8/utf8.ts","../node_modules/@stablelib/wipe/wipe.ts","../node_modules/@stablelib/x25519-session/keyagreement.ts","../node_modules/@stablelib/x25519-session/x25519-session.ts","../node_modules/@stablelib/x25519/x25519.ts","../node_modules/@stablelib/xsalsa20/xsalsa20.ts","../node_modules/@taquito/utils/node_modules/base-x/src/index.js","../node_modules/@taquito/utils/node_modules/bs58/index.js","../node_modules/@taquito/utils/node_modules/bs58check/base.js","../node_modules/@taquito/utils/node_modules/bs58check/index.js","../node_modules/@toruslabs/torus.js/node_modules/bn.js/lib/bn.js","../node_modules/base-x/src/index.js","../node_modules/base64-js/index.js","../node_modules/bip39/src/_wordlists.js","../node_modules/bip39/src/index.js","../node_modules/blakejs/blake2b.js","../node_modules/blakejs/blake2s.js","../node_modules/blakejs/index.js","../node_modules/blakejs/util.js","../node_modules/bn.js/lib/bn.js","../node_modules/bowser/es5.js","../node_modules/brorand/index.js","../node_modules/bs58/index.js","../node_modules/bs58check/base.js","../node_modules/bs58check/index.js","../node_modules/buffer/index.js","../node_modules/charenc/charenc.js","../node_modules/cipher-base/index.js","../node_modules/classnames/index.js","../node_modules/create-hash/browser.js","../node_modules/create-hash/md5.js","../node_modules/crypt/crypt.js","../node_modules/deepmerge/dist/cjs.js","../node_modules/elliptic/lib/elliptic.js","../node_modules/elliptic/lib/elliptic/curve/base.js","../node_modules/elliptic/lib/elliptic/curve/edwards.js","../node_modules/elliptic/lib/elliptic/curve/index.js","../node_modules/elliptic/lib/elliptic/curve/mont.js","../node_modules/elliptic/lib/elliptic/curve/short.js","../node_modules/elliptic/lib/elliptic/curves.js","../node_modules/elliptic/lib/elliptic/ec/index.js","../node_modules/elliptic/lib/elliptic/ec/key.js","../node_modules/elliptic/lib/elliptic/ec/signature.js","../node_modules/elliptic/lib/elliptic/eddsa/index.js","../node_modules/elliptic/lib/elliptic/eddsa/key.js","../node_modules/elliptic/lib/elliptic/eddsa/signature.js","../node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js","../node_modules/elliptic/lib/elliptic/utils.js","../node_modules/err-code/index.js","../node_modules/ethereum-cryptography/keccak.js","../node_modules/ethereum-cryptography/utils.js","../node_modules/events/events.js","../node_modules/fast-json-stable-stringify/index.js","../node_modules/hash-base/index.js","../node_modules/hash.js/lib/hash.js","../node_modules/hash.js/lib/hash/common.js","../node_modules/hash.js/lib/hash/hmac.js","../node_modules/hash.js/lib/hash/ripemd.js","../node_modules/hash.js/lib/hash/sha.js","../node_modules/hash.js/lib/hash/sha/1.js","../node_modules/hash.js/lib/hash/sha/224.js","../node_modules/hash.js/lib/hash/sha/256.js","../node_modules/hash.js/lib/hash/sha/384.js","../node_modules/hash.js/lib/hash/sha/512.js","../node_modules/hash.js/lib/hash/sha/common.js","../node_modules/hash.js/lib/hash/utils.js","../node_modules/hmac-drbg/lib/hmac-drbg.js","../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../node_modules/ieee754/index.js","../node_modules/inherits/inherits_browser.js","../node_modules/is-buffer/index.js","../node_modules/json-stable-stringify/index.js","../node_modules/jsonify/index.js","../node_modules/jsonify/lib/parse.js","../node_modules/jsonify/lib/stringify.js","../node_modules/load-script/index.js","../node_modules/lodash.isequal/index.js","../node_modules/lodash.merge/index.js","../node_modules/lodash.mergewith/index.js","../node_modules/lodash/lodash.js","../node_modules/loglevel/lib/loglevel.js","../node_modules/lru-cache/index.js","../node_modules/md5.js/index.js","../node_modules/md5/md5.js","../node_modules/memoize-one/dist/memoize-one.esm.js","../node_modules/minimalistic-assert/index.js","../node_modules/minimalistic-crypto-utils/lib/utils.js","../node_modules/node-fetch/browser.js","../node_modules/papaparse/papaparse.min.js","../node_modules/pbkdf2/browser.js","../node_modules/pbkdf2/lib/async.js","../node_modules/pbkdf2/lib/default-encoding.js","../node_modules/pbkdf2/lib/precondition.js","../node_modules/pbkdf2/lib/sync-browser.js","../node_modules/pbkdf2/lib/to-buffer.js","../node_modules/pluralize/pluralize.js","../node_modules/process/browser.js","../node_modules/promise-retry/index.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/qrcode-generator/qrcode.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/react-dom/client.js","../node_modules/react-dom/index.js","../node_modules/react-easy-swipe/lib/index.js","../node_modules/react-easy-swipe/lib/react-swipe.js","../node_modules/react-fast-compare/index.js","../node_modules/react-identicons/build/index.js","../node_modules/react-is/cjs/react-is.production.min.js","../node_modules/react-is/index.js","../node_modules/react-player/lib/Player.js","../node_modules/react-player/lib/ReactPlayer.js","../node_modules/react-player/lib/index.js","../node_modules/react-player/lib/patterns.js","../node_modules/react-player/lib/players/index.js","../node_modules/react-player/lib/props.js","../node_modules/react-player/lib/utils.js","../node_modules/react-qrcode-logo/dist/index.js","../node_modules/react-query/es/core/focusManager.js","../node_modules/react-query/es/core/logger.js","../node_modules/react-query/es/core/notifyManager.js","../node_modules/react-query/es/core/onlineManager.js","../node_modules/react-query/es/core/query.js","../node_modules/react-query/es/core/queryCache.js","../node_modules/react-query/es/core/mutation.js","../node_modules/react-query/es/core/mutationCache.js","../node_modules/react-query/es/core/infiniteQueryBehavior.js","../node_modules/react-query/es/core/queryClient.js","../node_modules/react-query/es/core/retryer.js","../node_modules/react-query/es/core/subscribable.js","../node_modules/react-query/es/core/utils.js","../node_modules/react-query/es/react/reactBatchedUpdates.js","../node_modules/react-query/es/react/setBatchUpdatesFn.js","../node_modules/react-query/es/react/logger.js","../node_modules/react-query/es/react/setLogger.js","../node_modules/react-query/es/react/QueryClientProvider.js","../node_modules/react-query/es/core/queryObserver.js","../node_modules/react-query/es/react/QueryErrorResetBoundary.js","../node_modules/react-query/es/react/useQuery.js","../node_modules/react-query/es/react/useBaseQuery.js","../node_modules/react-query/es/react/utils.js","../node_modules/react-responsive-carousel/lib/js/CSSTranslate.js","../node_modules/react-responsive-carousel/lib/js/components/Carousel/animations.js","../node_modules/react-responsive-carousel/lib/js/components/Carousel/index.js","../node_modules/react-responsive-carousel/lib/js/components/Carousel/utils.js","../node_modules/react-responsive-carousel/lib/js/components/Thumbs.js","../node_modules/react-responsive-carousel/lib/js/cssClasses.js","../node_modules/react-responsive-carousel/lib/js/dimensions.js","../node_modules/react-responsive-carousel/lib/js/index.js","../node_modules/react-responsive-carousel/lib/js/shims/document.js","../node_modules/react-responsive-carousel/lib/js/shims/window.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react/index.js","../node_modules/react/jsx-runtime.js","../node_modules/readable-stream/errors-browser.js","../node_modules/readable-stream/lib/_stream_duplex.js","../node_modules/readable-stream/lib/_stream_passthrough.js","../node_modules/readable-stream/lib/_stream_readable.js","../node_modules/readable-stream/lib/_stream_transform.js","../node_modules/readable-stream/lib/_stream_writable.js","../node_modules/readable-stream/lib/internal/streams/async_iterator.js","../node_modules/readable-stream/lib/internal/streams/buffer_list.js","../node_modules/readable-stream/lib/internal/streams/destroy.js","../node_modules/readable-stream/lib/internal/streams/end-of-stream.js","../node_modules/readable-stream/lib/internal/streams/from-browser.js","../node_modules/readable-stream/lib/internal/streams/pipeline.js","../node_modules/readable-stream/lib/internal/streams/state.js","../node_modules/readable-stream/lib/internal/streams/stream-browser.js","../node_modules/readable-stream/readable-browser.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/index.js","../node_modules/retry/index.js","../node_modules/retry/lib/retry.js","../node_modules/retry/lib/retry_operation.js","../node_modules/ripemd160/index.js","../node_modules/safe-buffer/index.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/scheduler/index.js","../node_modules/semver/classes/comparator.js","../node_modules/semver/classes/range.js","../node_modules/semver/classes/semver.js","../node_modules/semver/functions/clean.js","../node_modules/semver/functions/cmp.js","../node_modules/semver/functions/coerce.js","../node_modules/semver/functions/compare-build.js","../node_modules/semver/functions/compare-loose.js","../node_modules/semver/functions/compare.js","../node_modules/semver/functions/diff.js","../node_modules/semver/functions/eq.js","../node_modules/semver/functions/gt.js","../node_modules/semver/functions/gte.js","../node_modules/semver/functions/inc.js","../node_modules/semver/functions/lt.js","../node_modules/semver/functions/lte.js","../node_modules/semver/functions/major.js","../node_modules/semver/functions/minor.js","../node_modules/semver/functions/neq.js","../node_modules/semver/functions/parse.js","../node_modules/semver/functions/patch.js","../node_modules/semver/functions/prerelease.js","../node_modules/semver/functions/rcompare.js","../node_modules/semver/functions/rsort.js","../node_modules/semver/functions/satisfies.js","../node_modules/semver/functions/sort.js","../node_modules/semver/functions/valid.js","../node_modules/semver/index.js","../node_modules/semver/internal/constants.js","../node_modules/semver/internal/debug.js","../node_modules/semver/internal/identifiers.js","../node_modules/semver/internal/parse-options.js","../node_modules/semver/internal/re.js","../node_modules/semver/ranges/gtr.js","../node_modules/semver/ranges/intersects.js","../node_modules/semver/ranges/ltr.js","../node_modules/semver/ranges/max-satisfying.js","../node_modules/semver/ranges/min-satisfying.js","../node_modules/semver/ranges/min-version.js","../node_modules/semver/ranges/outside.js","../node_modules/semver/ranges/simplify.js","../node_modules/semver/ranges/subset.js","../node_modules/semver/ranges/to-comparators.js","../node_modules/semver/ranges/valid.js","../node_modules/sha.js/hash.js","../node_modules/sha.js/index.js","../node_modules/sha.js/sha.js","../node_modules/sha.js/sha1.js","../node_modules/sha.js/sha224.js","../node_modules/sha.js/sha256.js","../node_modules/sha.js/sha384.js","../node_modules/sha.js/sha512.js","../node_modules/stream-browserify/index.js","../node_modules/string_decoder/lib/string_decoder.js","../node_modules/typedarray-to-buffer/index.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js","../node_modules/use-sync-external-store/shim/index.js","../node_modules/use-sync-external-store/shim/with-selector.js","../node_modules/util-deprecate/browser.js","../node_modules/yallist/iterator.js","../node_modules/yallist/yallist.js","../node_modules/@toruslabs/broadcast-channel/node_modules/@babel/runtime/helpers/regeneratorRuntime.js","../node_modules/@toruslabs/broadcast-channel/node_modules/@babel/runtime/helpers/typeof.js","../node_modules/@toruslabs/broadcast-channel/node_modules/@babel/runtime/regenerator/index.js","../node_modules/react-query/node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/react-query/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/react-query/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../webpack/bootstrap","../webpack/runtime/compat get default export","../webpack/runtime/create fake namespace object","../webpack/runtime/define property getters","../webpack/runtime/ensure chunk","../webpack/runtime/get javascript chunk filename","../webpack/runtime/get mini-css chunk filename","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/load script","../webpack/runtime/make namespace object","../webpack/runtime/node module decorator","../webpack/runtime/publicPath","../webpack/runtime/jsonp chunk loading","../webpack/runtime/nonce","../node_modules/react-error-boundary/dist/react-error-boundary.esm.js","../node_modules/redux-persist/es/integration/react.js","../node_modules/@chakra-ui/system/src/forward-ref.tsx","../node_modules/@chakra-ui/shared-utils/dist/index.mjs","../node_modules/@chakra-ui/styled-system/dist/index.mjs","../node_modules/@chakra-ui/system/src/should-forward-prop.ts","../node_modules/@chakra-ui/color-mode/src/color-mode-context.ts","../node_modules/@chakra-ui/utils/dist/chunk-YTQ3XZ3T.mjs","../node_modules/@chakra-ui/utils/dist/chunk-M3TFMUOL.mjs","../node_modules/@chakra-ui/utils/dist/chunk-Y5FGD7DM.mjs","../node_modules/@emotion/styled/node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js","../node_modules/stylis/src/Utility.js","../node_modules/stylis/src/Tokenizer.js","../node_modules/stylis/src/Enum.js","../node_modules/stylis/src/Serializer.js","../node_modules/stylis/src/Parser.js","../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js","../node_modules/stylis/src/Middleware.js","../node_modules/@emotion/react/node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js","../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","../node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js","../node_modules/@emotion/hash/dist/emotion-hash.esm.js","../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js","../node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js","../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js","../node_modules/@chakra-ui/system/src/system.ts","../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js","../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js","../node_modules/@chakra-ui/object-utils/dist/chunk-OLTBUDV5.mjs","../node_modules/@chakra-ui/system/src/factory.ts","../node_modules/@chakra-ui/layout/src/flex.tsx","../node_modules/@chakra-ui/layout/src/center.tsx","../node_modules/@chakra-ui/layout/src/box.tsx","../node_modules/@chakra-ui/system/src/use-theme.ts","../node_modules/@chakra-ui/system/src/hooks.ts","../node_modules/@chakra-ui/system/src/use-style-config.ts","../node_modules/@chakra-ui/layout/src/heading.tsx","../node_modules/@chakra-ui/react-context/src/index.ts","../node_modules/@chakra-ui/button/src/button-context.ts","../node_modules/@chakra-ui/button/src/button-icon.tsx","../node_modules/@emotion/react/dist/emotion-react.browser.esm.js","../node_modules/@chakra-ui/spinner/src/spinner.tsx","../node_modules/@chakra-ui/button/src/button-spinner.tsx","../node_modules/@chakra-ui/react-use-merge-refs/src/index.ts","../node_modules/@chakra-ui/button/src/button.tsx","../node_modules/@chakra-ui/button/src/use-button-type.tsx","../node_modules/@chakra-ui/layout/src/link.tsx","components/ErrorPage.tsx","providers/ReactQueryProvider.tsx","../node_modules/react-redux/es/utils/batch.js","../node_modules/react-redux/es/components/Context.js","../node_modules/react-redux/es/hooks/useReduxContext.js","../node_modules/react-redux/es/hooks/useSelector.js","../node_modules/react-redux/es/utils/useSyncExternalStore.js","../node_modules/react-redux/es/utils/Subscription.js","../node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js","../node_modules/react-redux/es/components/connect.js","../node_modules/react-redux/es/components/Provider.js","../node_modules/react-redux/es/hooks/useStore.js","../node_modules/react-redux/es/hooks/useDispatch.js","../node_modules/immer/src/utils/errors.ts","../node_modules/immer/src/utils/common.ts","../node_modules/immer/src/utils/plugins.ts","../node_modules/immer/src/core/scope.ts","../node_modules/immer/src/core/finalize.ts","../node_modules/immer/src/core/proxy.ts","../node_modules/immer/src/core/immerClass.ts","../node_modules/immer/src/core/current.ts","../node_modules/immer/src/plugins/es5.ts","../node_modules/react-redux/es/index.js","../node_modules/immer/src/immer.ts","../node_modules/immer/src/utils/env.ts","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/redux/es/redux.js","../node_modules/redux-thunk/es/index.js","../node_modules/@reduxjs/toolkit/src/devtoolsExtension.ts","../node_modules/@reduxjs/toolkit/src/isPlainObject.ts","../node_modules/@reduxjs/toolkit/src/createAction.ts","../node_modules/@reduxjs/toolkit/src/utils.ts","../node_modules/@reduxjs/toolkit/src/getDefaultMiddleware.ts","../node_modules/@reduxjs/toolkit/src/mapBuilders.ts","../node_modules/@reduxjs/toolkit/src/createSlice.ts","../node_modules/@reduxjs/toolkit/src/createReducer.ts","../node_modules/@reduxjs/toolkit/src/nanoid.ts","../node_modules/@reduxjs/toolkit/src/createAsyncThunk.ts","../node_modules/@reduxjs/toolkit/src/listenerMiddleware/index.ts","../node_modules/@reduxjs/toolkit/src/listenerMiddleware/task.ts","../node_modules/@reduxjs/toolkit/src/autoBatchEnhancer.ts","../node_modules/@reduxjs/toolkit/src/index.ts","../node_modules/redux-persist/es/constants.js","../node_modules/redux-persist/es/stateReconciler/autoMergeLevel1.js","../node_modules/redux-persist/es/createPersistoid.js","../node_modules/redux-persist/es/getStoredState.js","../node_modules/redux-persist/es/purgeStoredState.js","../node_modules/redux-persist/es/persistReducer.js","../node_modules/redux-persist/es/persistStore.js","utils/redux/slices/announcementSlice.ts","utils/redux/migrations.ts","../node_modules/bignumber.js/bignumber.mjs","utils/crypto/KDF.ts","utils/crypto/AES.ts","utils/redux/thunks/changeMnemonicPassword.ts","utils/redux/slices/accountsSlice.ts","../node_modules/zod/lib/index.mjs","types/Address.ts","types/Token.ts","types/TokenBalance.ts","utils/redux/slices/assetsSlice.ts","types/Network.ts","utils/redux/slices/batches.ts","utils/redux/slices/beaconSlice.ts","utils/hooks/contactsUtils.ts","utils/redux/slices/contactsSlice.ts","utils/redux/slices/errorsSlice.ts","utils/redux/slices/multisigsSlice.ts","utils/redux/slices/networks.ts","utils/redux/slices/tokensSlice.ts","utils/redux/reducer.ts","../node_modules/redux-persist/es/createMigrate.js","utils/redux/store.ts","../node_modules/@reduxjs/toolkit/src/configureStore.ts","providers/ReduxStore.tsx","../node_modules/@chakra-ui/css-reset/src/css-reset.tsx","../node_modules/@chakra-ui/portal/src/portal-manager.tsx","../node_modules/@chakra-ui/react-utils/dist/chunk-ITIKTQWJ.mjs","../node_modules/@chakra-ui/system/src/providers.tsx","../node_modules/@chakra-ui/color-mode/src/color-mode.utils.ts","../node_modules/@chakra-ui/color-mode/src/storage-manager.ts","../node_modules/@chakra-ui/react-use-safe-layout-effect/src/index.ts","../node_modules/@chakra-ui/color-mode/src/color-mode-provider.tsx","../node_modules/@chakra-ui/react-env/src/env.tsx","../node_modules/@chakra-ui/provider/src/chakra-provider.tsx","../node_modules/@chakra-ui/theme/src/foundations/transition.ts","../node_modules/@chakra-ui/theme/src/foundations/z-index.ts","../node_modules/@chakra-ui/theme/src/foundations/borders.ts","../node_modules/@chakra-ui/theme/src/foundations/breakpoints.ts","../node_modules/@chakra-ui/theme/src/foundations/colors.ts","../node_modules/@chakra-ui/theme/src/foundations/radius.ts","../node_modules/@chakra-ui/theme/src/foundations/shadows.ts","../node_modules/@chakra-ui/theme/src/foundations/blur.ts","../node_modules/@chakra-ui/theme/src/foundations/typography.ts","../node_modules/@chakra-ui/theme/src/foundations/spacing.ts","../node_modules/@chakra-ui/theme/src/foundations/sizes.ts","../node_modules/@chakra-ui/theme/src/foundations/index.ts","../node_modules/@chakra-ui/theme/src/components/stepper.ts","../node_modules/@chakra-ui/anatomy/src/anatomy.ts","../node_modules/@chakra-ui/anatomy/src/components.ts","../node_modules/@chakra-ui/theme-tools/src/css-var.ts","../node_modules/@chakra-ui/theme-tools/src/css-calc.ts","../node_modules/@chakra-ui/theme/src/components/switch.ts","../node_modules/@chakra-ui/theme-tools/src/component.ts","../node_modules/@chakra-ui/theme/src/components/table.ts","../node_modules/color2k/src/guard.ts","../node_modules/color2k/src/ColorError.ts","../node_modules/color2k/src/parseToRgba.ts","../node_modules/color2k/src/rgba.ts","../node_modules/color2k/src/transparentize.ts","../node_modules/@chakra-ui/theme-tools/src/color.ts","../node_modules/.pnpm/dlv@1.1.3/node_modules/dlv/index.js","../node_modules/color2k/src/toHex.ts","../node_modules/@chakra-ui/theme/src/components/tabs.ts","../node_modules/@chakra-ui/theme/src/components/badge.ts","../node_modules/@chakra-ui/theme/src/components/tag.ts","../node_modules/@chakra-ui/theme/src/components/input.ts","../node_modules/@chakra-ui/theme/src/components/textarea.ts","../node_modules/@chakra-ui/theme/src/components/tooltip.ts","../node_modules/@chakra-ui/theme/src/components/progress.ts","../node_modules/@chakra-ui/theme/src/utils/run-if-fn.ts","../node_modules/@chakra-ui/theme/src/components/checkbox.ts","../node_modules/@chakra-ui/theme/src/components/select.ts","../node_modules/@chakra-ui/theme/src/components/radio.ts","../node_modules/@chakra-ui/theme/src/components/skeleton.ts","../node_modules/@chakra-ui/theme/src/components/skip-link.ts","../node_modules/@chakra-ui/theme/src/components/slider.ts","../node_modules/@chakra-ui/theme/src/components/spinner.ts","../node_modules/@chakra-ui/theme/src/components/stat.ts","../node_modules/@chakra-ui/theme/src/components/kbd.ts","../node_modules/@chakra-ui/theme/src/components/link.ts","../node_modules/@chakra-ui/theme/src/components/list.ts","../node_modules/@chakra-ui/theme/src/components/menu.ts","../node_modules/@chakra-ui/theme/src/components/modal.ts","../node_modules/@chakra-ui/theme/src/components/number-input.ts","../node_modules/@chakra-ui/theme/src/components/pin-input.ts","../node_modules/@chakra-ui/theme/src/components/popover.ts","../node_modules/@chakra-ui/theme/src/components/drawer.ts","../node_modules/@chakra-ui/theme/src/components/editable.ts","../node_modules/@chakra-ui/theme/src/components/form-control.ts","../node_modules/@chakra-ui/theme/src/components/form-error.ts","../node_modules/@chakra-ui/theme/src/components/form-label.ts","../node_modules/@chakra-ui/theme/src/components/heading.ts","../node_modules/@chakra-ui/theme/src/components/breadcrumb.ts","../node_modules/@chakra-ui/theme/src/components/button.ts","../node_modules/@chakra-ui/theme/src/components/card.ts","../node_modules/@chakra-ui/theme/src/components/close-button.ts","../node_modules/@chakra-ui/theme/src/components/code.ts","../node_modules/@chakra-ui/theme/src/components/container.ts","../node_modules/@chakra-ui/theme/src/components/divider.ts","../node_modules/@chakra-ui/theme/src/components/accordion.ts","../node_modules/@chakra-ui/theme/src/components/alert.ts","../node_modules/@chakra-ui/theme/src/components/avatar.ts","../node_modules/@chakra-ui/theme/src/components/index.ts","../node_modules/@chakra-ui/theme/src/semantic-tokens.ts","../node_modules/@chakra-ui/theme/src/styles.ts","../node_modules/@chakra-ui/theme/src/index.ts","../node_modules/@chakra-ui/toast/src/toast.utils.ts","../node_modules/@chakra-ui/react-use-callback-ref/src/index.ts","../node_modules/@chakra-ui/react-use-update-effect/src/index.ts","../node_modules/framer-motion/dist/es/context/PresenceContext.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs","../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs","../node_modules/framer-motion/dist/es/context/MotionContext/index.mjs","../node_modules/framer-motion/dist/es/utils/is-browser.mjs","../node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs","../node_modules/framer-motion/dist/es/context/LazyContext.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs","../node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs","../node_modules/framer-motion/dist/es/utils/GlobalConfig.mjs","../node_modules/framer-motion/dist/es/frameloop/render-step.mjs","../node_modules/framer-motion/dist/es/frameloop/batcher.mjs","../node_modules/framer-motion/dist/es/frameloop/microtask.mjs","../node_modules/framer-motion/dist/es/utils/is-ref-object.mjs","../node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs","../node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs","../node_modules/framer-motion/dist/es/render/utils/variant-props.mjs","../node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs","../node_modules/framer-motion/dist/es/context/MotionContext/create.mjs","../node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs","../node_modules/framer-motion/dist/es/motion/features/definitions.mjs","../node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs","../node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs","../node_modules/framer-motion/dist/es/motion/utils/symbol.mjs","../node_modules/framer-motion/dist/es/motion/index.mjs","../node_modules/framer-motion/dist/es/motion/features/load-features.mjs","../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs","../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs","../node_modules/framer-motion/dist/es/render/dom/motion-proxy.mjs","../node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs","../node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs","../node_modules/framer-motion/dist/es/render/html/utils/transform.mjs","../node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs","../node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs","../node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs","../node_modules/framer-motion/dist/es/utils/clamp.mjs","../node_modules/framer-motion/dist/es/value/types/numbers/index.mjs","../node_modules/framer-motion/dist/es/value/types/utils.mjs","../node_modules/framer-motion/dist/es/value/types/numbers/units.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs","../node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs","../node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs","../node_modules/framer-motion/dist/es/render/html/use-props.mjs","../node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/path.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs","../node_modules/framer-motion/dist/es/render/svg/use-props.mjs","../node_modules/framer-motion/dist/es/render/dom/use-render.mjs","../node_modules/framer-motion/dist/es/render/html/utils/render.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/render.mjs","../node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs","../node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs","../node_modules/framer-motion/dist/es/utils/use-constant.mjs","../node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs","../node_modules/framer-motion/dist/es/utils/resolve-value.mjs","../node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs","../node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs","../node_modules/framer-motion/dist/es/utils/noop.mjs","../node_modules/framer-motion/dist/es/frameloop/frame.mjs","../node_modules/framer-motion/dist/es/render/svg/config-motion.mjs","../node_modules/framer-motion/dist/es/render/html/config-motion.mjs","../node_modules/framer-motion/dist/es/events/add-dom-event.mjs","../node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.mjs","../node_modules/framer-motion/dist/es/events/event-info.mjs","../node_modules/framer-motion/dist/es/events/add-pointer-event.mjs","../node_modules/framer-motion/dist/es/utils/pipe.mjs","../node_modules/framer-motion/dist/es/gestures/drag/utils/lock.mjs","../node_modules/framer-motion/dist/es/motion/features/Feature.mjs","../node_modules/framer-motion/dist/es/gestures/hover.mjs","../node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs","../node_modules/framer-motion/dist/es/gestures/press.mjs","../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs","../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs","../node_modules/framer-motion/dist/es/motion/features/gestures.mjs","../node_modules/framer-motion/dist/es/gestures/focus.mjs","../node_modules/framer-motion/dist/es/utils/shallow-compare.mjs","../node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs","../node_modules/framer-motion/dist/es/utils/errors.mjs","../node_modules/framer-motion/dist/es/utils/time-conversion.mjs","../node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs","../node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs","../node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs","../node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs","../node_modules/framer-motion/dist/es/easing/ease.mjs","../node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs","../node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs","../node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs","../node_modules/framer-motion/dist/es/easing/circ.mjs","../node_modules/framer-motion/dist/es/easing/back.mjs","../node_modules/framer-motion/dist/es/easing/utils/map.mjs","../node_modules/framer-motion/dist/es/easing/anticipate.mjs","../node_modules/framer-motion/dist/es/value/types/color/utils.mjs","../node_modules/framer-motion/dist/es/value/types/color/rgba.mjs","../node_modules/framer-motion/dist/es/value/types/color/hex.mjs","../node_modules/framer-motion/dist/es/value/types/color/hsla.mjs","../node_modules/framer-motion/dist/es/value/types/color/index.mjs","../node_modules/framer-motion/dist/es/utils/mix.mjs","../node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs","../node_modules/framer-motion/dist/es/utils/mix-color.mjs","../node_modules/framer-motion/dist/es/value/types/complex/index.mjs","../node_modules/framer-motion/dist/es/utils/mix-complex.mjs","../node_modules/framer-motion/dist/es/utils/progress.mjs","../node_modules/framer-motion/dist/es/utils/interpolate.mjs","../node_modules/framer-motion/dist/es/utils/offsets/default.mjs","../node_modules/framer-motion/dist/es/utils/offsets/fill.mjs","../node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs","../node_modules/framer-motion/dist/es/utils/offsets/time.mjs","../node_modules/framer-motion/dist/es/utils/velocity-per-second.mjs","../node_modules/framer-motion/dist/es/animation/generators/utils/velocity.mjs","../node_modules/framer-motion/dist/es/animation/generators/spring/find.mjs","../node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs","../node_modules/framer-motion/dist/es/animation/generators/inertia.mjs","../node_modules/framer-motion/dist/es/frameloop/sync-time.mjs","../node_modules/framer-motion/dist/es/animation/animators/js/driver-frameloop.mjs","../node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs","../node_modules/framer-motion/dist/es/animation/animators/js/index.mjs","../node_modules/framer-motion/dist/es/animation/animators/waapi/create-accelerated-animation.mjs","../node_modules/framer-motion/dist/es/utils/memo.mjs","../node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs","../node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs","../node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs","../node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs","../node_modules/framer-motion/dist/es/value/types/complex/filter.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs","../node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs","../node_modules/framer-motion/dist/es/animation/utils/is-none.mjs","../node_modules/framer-motion/dist/es/animation/utils/transitions.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs","../node_modules/framer-motion/dist/es/animation/utils/keyframes.mjs","../node_modules/framer-motion/dist/es/animation/animators/instant.mjs","../node_modules/framer-motion/dist/es/value/use-will-change/is.mjs","../node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs","../node_modules/framer-motion/dist/es/utils/array.mjs","../node_modules/framer-motion/dist/es/utils/subscription-manager.mjs","../node_modules/framer-motion/dist/es/value/index.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs","../node_modules/framer-motion/dist/es/render/utils/setters.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs","../node_modules/framer-motion/dist/es/render/utils/animation-state.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs","../node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs","../node_modules/framer-motion/dist/es/motion/features/animations.mjs","../node_modules/framer-motion/dist/es/motion/features/animation/index.mjs","../node_modules/framer-motion/dist/es/utils/distance.mjs","../node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs","../node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs","../node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs","../node_modules/framer-motion/dist/es/projection/geometry/models.mjs","../node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs","../node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs","../node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs","../node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs","../node_modules/framer-motion/dist/es/projection/utils/measure.mjs","../node_modules/framer-motion/dist/es/utils/get-context-window.mjs","../node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs","../node_modules/framer-motion/dist/es/gestures/pan/index.mjs","../node_modules/framer-motion/dist/es/projection/node/state.mjs","../node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs","../node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs","../node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs","../node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs","../node_modules/framer-motion/dist/es/projection/geometry/copy.mjs","../node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs","../node_modules/framer-motion/dist/es/projection/geometry/utils.mjs","../node_modules/framer-motion/dist/es/projection/shared/stack.mjs","../node_modules/framer-motion/dist/es/projection/styles/transform.mjs","../node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs","../node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs","../node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs","../node_modules/framer-motion/dist/es/debug/record.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs","../node_modules/framer-motion/dist/es/utils/delay.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/single-value.mjs","../node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs","../node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs","../node_modules/framer-motion/dist/es/motion/features/drag.mjs","../node_modules/framer-motion/dist/es/gestures/drag/index.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/parse-dom-variant.mjs","../node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs","../node_modules/framer-motion/dist/es/render/store.mjs","../node_modules/framer-motion/dist/es/render/VisualElement.mjs","../node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs","../node_modules/framer-motion/dist/es/render/utils/motion-values.mjs","../node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs","../node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs","../node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs","../node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs","../node_modules/framer-motion/dist/es/render/dom/motion.mjs","../node_modules/framer-motion/dist/es/motion/features/layout.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/create-config.mjs","../node_modules/@chakra-ui/toast/src/toast.component.tsx","../node_modules/@chakra-ui/react-use-timeout/src/index.ts","../node_modules/@chakra-ui/toast/src/toast.placement.ts","../node_modules/@chakra-ui/icon/src/icon.tsx","../node_modules/@chakra-ui/alert/src/icons.tsx","../node_modules/@chakra-ui/alert/src/alert-context.ts","../node_modules/@chakra-ui/alert/src/alert.tsx","../node_modules/@chakra-ui/alert/src/alert-icon.tsx","../node_modules/@chakra-ui/alert/src/alert-title.tsx","../node_modules/@chakra-ui/alert/src/alert-description.tsx","../node_modules/@chakra-ui/close-button/src/close-button.tsx","../node_modules/@chakra-ui/toast/src/toast.store.ts","../node_modules/@chakra-ui/toast/src/toast.tsx","../node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../node_modules/framer-motion/dist/es/utils/use-force-update.mjs","../node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs","../node_modules/@chakra-ui/portal/src/portal.tsx","../node_modules/@chakra-ui/toast/src/toast.provider.tsx","../node_modules/@chakra-ui/react/src/chakra-provider.tsx","../node_modules/@chakra-ui/color-mode/src/color-mode-script.tsx","../node_modules/@chakra-ui/theme/src/utils/is-chakra-theme.ts","../node_modules/@chakra-ui/theme-utils/dist/chunk-LIR5QAZY.mjs","style/colors.ts","style/theme/button.ts","style/theme/checkbox.ts","style/theme/drawer.ts","style/theme/list.ts","style/theme/modal.ts","style/theme/radio.ts","style/theme/tabs.ts","style/theme.ts","providers/UmamiTheme.tsx","../node_modules/@remix-run/router/history.ts","../node_modules/@remix-run/router/utils.ts","../node_modules/@remix-run/router/router.ts","../node_modules/react-router/lib/context.ts","../node_modules/react-router/lib/hooks.tsx","../node_modules/react-router/lib/components.tsx","../node_modules/react-router-dom/dom.ts","../node_modules/react-router-dom/index.tsx","../node_modules/axios/lib/helpers/bind.js","../node_modules/axios/lib/utils.js","../node_modules/axios/lib/core/AxiosError.js","../node_modules/axios/lib/helpers/toFormData.js","../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../node_modules/axios/lib/helpers/buildURL.js","../node_modules/axios/lib/core/InterceptorManager.js","../node_modules/axios/lib/defaults/transitional.js","../node_modules/axios/lib/platform/browser/index.js","../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../node_modules/axios/lib/platform/browser/classes/FormData.js","../node_modules/axios/lib/platform/browser/classes/Blob.js","../node_modules/axios/lib/platform/common/utils.js","../node_modules/axios/lib/platform/index.js","../node_modules/axios/lib/helpers/formDataToJSON.js","../node_modules/axios/lib/defaults/index.js","../node_modules/axios/lib/helpers/toURLEncodedForm.js","../node_modules/axios/lib/helpers/parseHeaders.js","../node_modules/axios/lib/core/AxiosHeaders.js","../node_modules/axios/lib/core/transformData.js","../node_modules/axios/lib/cancel/isCancel.js","../node_modules/axios/lib/cancel/CanceledError.js","../node_modules/axios/lib/helpers/cookies.js","../node_modules/axios/lib/core/buildFullPath.js","../node_modules/axios/lib/helpers/isAbsoluteURL.js","../node_modules/axios/lib/helpers/combineURLs.js","../node_modules/axios/lib/helpers/isURLSameOrigin.js","../node_modules/axios/lib/helpers/speedometer.js","../node_modules/axios/lib/adapters/xhr.js","../node_modules/axios/lib/core/settle.js","../node_modules/axios/lib/helpers/parseProtocol.js","../node_modules/axios/lib/adapters/adapters.js","../node_modules/axios/lib/helpers/null.js","../node_modules/axios/lib/core/dispatchRequest.js","../node_modules/axios/lib/core/mergeConfig.js","../node_modules/axios/lib/env/data.js","../node_modules/axios/lib/helpers/validator.js","../node_modules/axios/lib/core/Axios.js","../node_modules/axios/lib/cancel/CancelToken.js","../node_modules/axios/lib/helpers/HttpStatusCode.js","../node_modules/axios/lib/axios.js","../node_modules/axios/lib/helpers/spread.js","../node_modules/axios/lib/helpers/isAxiosError.js","assets/icons/Accounts.tsx","assets/icons/AddAccount.tsx","assets/icons/AddContact.tsx","assets/icons/AddressBook.tsx","assets/icons/Baker.tsx","assets/icons/Batch.tsx","assets/icons/BurgerMenu.tsx","assets/icons/Checkmark.tsx","assets/icons/ChevronDown.tsx","assets/icons/ChevronRight.tsx","assets/icons/ChevronUp.tsx","assets/icons/Coin.tsx","assets/icons/Contact.tsx","assets/icons/Contract.tsx","assets/icons/CrossedCircle.tsx","assets/icons/Diamond.tsx","assets/icons/Document.tsx","assets/icons/DoubleCheckmark.tsx","assets/icons/Download.tsx","assets/icons/EditAccount.tsx","assets/icons/Exclamation.tsx","assets/icons/ExitArrow.tsx","assets/icons/ExternalLink.tsx","assets/icons/Eye.tsx","assets/icons/EyeSlash.tsx","assets/icons/FA1.2.tsx","assets/icons/FA2.tsx","assets/icons/Fetching.tsx","assets/icons/FileArrowDown.tsx","assets/icons/FileCopy.tsx","assets/icons/FlipForwardEnergy.tsx","assets/icons/Gear.tsx","assets/icons/Help.tsx","assets/icons/Hourglass.tsx","assets/icons/IncomingArrow.tsx","assets/icons/Key.tsx","../node_modules/react-icons/lib/esm/iconsManifest.js","../node_modules/react-icons/lib/esm/iconContext.js","../node_modules/react-icons/lib/esm/iconBase.js","../node_modules/react-icons/md/index.esm.js","assets/icons/Ledger.tsx","assets/icons/Link.tsx","assets/icons/Lock.tsx","assets/icons/Maintenance.tsx","assets/icons/Maki.tsx","assets/icons/Notice.tsx","assets/icons/OutgoingArrow.tsx","assets/icons/Pen.tsx","assets/icons/Plus.tsx","assets/icons/RefreshClock.tsx","assets/icons/Rotate.tsx","assets/icons/Slash.tsx","assets/icons/Sliders.tsx","assets/icons/Social.tsx","assets/icons/Tez.tsx","../node_modules/@chakra-ui/image/src/native-image.tsx","../node_modules/utilities/object-utils/src/omit.ts","../node_modules/@chakra-ui/image/src/image.tsx","../node_modules/@chakra-ui/image/src/use-image.ts","assets/icons/Token.tsx","assets/icons/Trash.tsx","assets/icons/UnknownContact.tsx","assets/icons/USB.tsx","assets/icons/Verified.tsx","assets/icons/WalletPlus.tsx","assets/icons/Warning.tsx","assets/icons/XMark.tsx","utils/redux/hooks.ts","components/AnnouncementBanner.tsx","../node_modules/@chakra-ui/hooks/src/use-id.ts","../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs","../node_modules/@chakra-ui/hooks/src/use-safe-layout-effect.ts","../node_modules/@chakra-ui/hooks/src/use-callback-ref.ts","../node_modules/@chakra-ui/hooks/src/use-disclosure.ts","../node_modules/@chakra-ui/hooks/src/use-controllable.ts","../node_modules/@chakra-ui/modal/src/modal-manager.ts","../node_modules/aria-hidden/dist/es2015/index.js","../node_modules/@chakra-ui/modal/src/use-modal.ts","../node_modules/@chakra-ui/modal/src/modal.tsx","../node_modules/@chakra-ui/transition/src/transition-utils.ts","../node_modules/@chakra-ui/transition/src/fade.tsx","../node_modules/@chakra-ui/modal/src/modal-overlay.tsx","../node_modules/tslib/tslib.es6.mjs","../node_modules/react-remove-scroll-bar/dist/es2015/constants.js","../node_modules/use-callback-ref/dist/es2015/useMergeRef.js","../node_modules/use-callback-ref/dist/es2015/useRef.js","../node_modules/use-callback-ref/dist/es2015/assignRef.js","../node_modules/use-sidecar/dist/es2015/medium.js","../node_modules/react-remove-scroll/dist/es2015/medium.js","../node_modules/react-remove-scroll/dist/es2015/UI.js","../node_modules/use-sidecar/dist/es2015/exports.js","../node_modules/get-nonce/dist/es2015/index.js","../node_modules/react-style-singleton/dist/es2015/singleton.js","../node_modules/react-style-singleton/dist/es2015/component.js","../node_modules/react-style-singleton/dist/es2015/hook.js","../node_modules/react-remove-scroll-bar/dist/es2015/utils.js","../node_modules/react-remove-scroll-bar/dist/es2015/component.js","../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","../node_modules/react-remove-scroll/dist/es2015/handleScroll.js","../node_modules/react-remove-scroll/dist/es2015/SideEffect.js","../node_modules/react-remove-scroll/dist/es2015/sidecar.js","../node_modules/react-remove-scroll/dist/es2015/Combination.js","components/DynamicModal.tsx","../../../../src/utils/keys.ts","../../../../src/utils/exposed-promise.ts","../../../../src/utils/crypto.ts","../../../../src/utils/generate-uuid.ts","../../../../../src/types/beacon/BeaconMessageType.ts","../../../../../src/types/beacon/PermissionScope.ts","../../../../../src/types/beacon/NetworkType.ts","../../../../../src/types/tezos/OperationTypes.ts","../../../../src/types/Origin.ts","../../../../src/types/ExtensionMessageTarget.ts","../../../../src/types/BeaconErrorType.ts","../../../../../src/types/transport/TransportStatus.ts","../../../../../src/types/transport/TransportType.ts","../../../../../src/types/storage/StorageKey.ts","../../../../../src/types/storage/Storage.ts","../../../../../src/types/storage/StorageKeyReturnDefaults.ts","../../../../src/types/P2PPairingRequest.ts","../../../../../src/types/beacon/SigningType.ts","../../../../src/types/ColorMode.ts","../../../../src/types/Regions.ts","../../../../src/types/P2PPairingResponse.ts","../../../../src/types/PostMessagePairingRequest.ts","../../../../src/types/WalletConnectPairingRequest.ts","../../../src/constants.ts","../../../src/MockWindow.ts","../../../src/MockAnalytics.ts","../../../../../src/clients/beacon-client/BeaconClient.ts","../../../../src/managers/StorageManager.ts","../../../../src/utils/get-account-identifier.ts","../../../../src/managers/PermissionValidator.ts","../../../../src/managers/AccountManager.ts","../../../../src/utils/get-sender-id.ts","../../../src/debug.ts","../../../../src/utils/Logger.ts","../../../../../src/clients/client/Client.ts","../../../../src/transports/Transport.ts","../../../../src/storage/LocalStorage.ts","../../../../src/storage/getStorage.ts","../../../src/Serializer.ts","../../../../src/managers/AppMetadataManager.ts","../../../../src/managers/PermissionManager.ts","../../../../src/managers/PeerManager.ts","../../../../../src/transports/clients/CommunicationClient.ts","../../../../src/storage/IndexedDBStorage.ts","../../../../../src/matrix-client/models/MatrixMessage.ts","../../../../../src/matrix-client/utils/events.ts","../../../../../src/matrix-client/models/MatrixRoom.ts","../../../../src/matrix-client/MatrixClientStore.ts","../../../../src/matrix-client/MatrixHttpClient.ts","../../../../../src/matrix-client/services/MatrixRoomService.ts","../../../../../src/matrix-client/services/MatrixUserService.ts","../../../../../src/matrix-client/services/MatrixEventService.ts","../../../../src/matrix-client/EventEmitter.ts","../../../../../src/matrix-client/models/MatrixClientEvent.ts","../../../../src/matrix-client/MatrixClientEventEmitter.ts","../../../../src/matrix-client/MatrixClient.ts","../../../../src/communication-client/P2PCommunicationClient.ts","../../../src/P2PTransport.ts","../../../../src/transports/WalletP2PTransport.ts","../../../../src/interceptors/IncomingRequestInterceptor.ts","../../../../src/interceptors/OutgoingResponseInterceptor.ts","../../../src/index.ts","../../../../src/client/WalletClient.ts","../node_modules/@chakra-ui/toast/src/use-toast.tsx","../node_modules/@chakra-ui/transition/src/slide-fade.tsx","../node_modules/@chakra-ui/transition/src/scale-fade.tsx","../node_modules/@chakra-ui/modal/src/modal-transition.tsx","../node_modules/react-focus-lock/node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/focus-lock/dist/es2015/constants.js","../node_modules/react-focus-lock/dist/es2015/FocusGuard.js","../node_modules/react-focus-lock/dist/es2015/medium.js","../node_modules/react-focus-lock/dist/es2015/Lock.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/react-clientside-effect/lib/index.es.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/focus-lock/dist/es2015/utils/array.js","../node_modules/focus-lock/dist/es2015/utils/is.js","../node_modules/focus-lock/dist/es2015/utils/tabOrder.js","../node_modules/focus-lock/dist/es2015/utils/tabUtils.js","../node_modules/focus-lock/dist/es2015/utils/tabbables.js","../node_modules/focus-lock/dist/es2015/utils/DOMutils.js","../node_modules/focus-lock/dist/es2015/utils/getActiveElement.js","../node_modules/focus-lock/dist/es2015/utils/safe.js","../node_modules/focus-lock/dist/es2015/utils/all-affected.js","../node_modules/focus-lock/dist/es2015/focusInside.js","../node_modules/focus-lock/dist/es2015/utils/correctFocus.js","../node_modules/focus-lock/dist/es2015/utils/firstFocus.js","../node_modules/focus-lock/dist/es2015/solver.js","../node_modules/focus-lock/dist/es2015/utils/auto-focus.js","../node_modules/focus-lock/dist/es2015/utils/parenting.js","../node_modules/focus-lock/dist/es2015/focusSolver.js","../node_modules/focus-lock/dist/es2015/moveFocusInside.js","../node_modules/focus-lock/dist/es2015/commands.js","../node_modules/react-focus-lock/dist/es2015/util.js","../node_modules/react-focus-lock/dist/es2015/Trap.js","../node_modules/focus-lock/dist/es2015/focusIsHidden.js","../node_modules/focus-lock/dist/es2015/focusables.js","../node_modules/react-focus-lock/dist/es2015/Combination.js","../node_modules/react-focus-lock/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/react-focus-lock/dist/es2015/index.js","../node_modules/@chakra-ui/dom-utils/dist/chunk-3XANSPY5.mjs","../node_modules/@chakra-ui/dom-utils/dist/chunk-ROURZMX4.mjs","../node_modules/@chakra-ui/dom-utils/dist/index.mjs","../node_modules/@chakra-ui/focus-lock/src/focus-lock.tsx","../node_modules/@chakra-ui/modal/src/modal-focus.tsx","../node_modules/@chakra-ui/modal/src/modal-content.tsx","../node_modules/@chakra-ui/modal/src/modal-header.tsx","../node_modules/@chakra-ui/object-utils/dist/chunk-R3DH46PF.mjs","../node_modules/@chakra-ui/layout/src/text.tsx","../node_modules/@chakra-ui/modal/src/modal-close-button.tsx","../node_modules/@chakra-ui/modal/src/modal-body.tsx","../node_modules/@chakra-ui/breakpoint-utils/dist/chunk-G72KV6MB.mjs","../node_modules/@chakra-ui/layout/src/aspect-ratio.tsx","../node_modules/@chakra-ui/descendant/src/utils.ts","../node_modules/@chakra-ui/descendant/src/descendant.ts","../node_modules/@chakra-ui/descendant/src/use-descendant.ts","../node_modules/@chakra-ui/accordion/src/accordion-context.ts","../node_modules/@chakra-ui/react-use-controllable-state/src/index.ts","../node_modules/@chakra-ui/accordion/src/use-accordion.ts","../node_modules/@chakra-ui/accordion/src/accordion.tsx","../node_modules/@chakra-ui/accordion/src/accordion-item.tsx","../node_modules/@chakra-ui/accordion/src/accordion-button.tsx","../node_modules/@chakra-ui/accordion/src/accordion-icon.tsx","../node_modules/@chakra-ui/transition/src/collapse.tsx","../node_modules/@chakra-ui/accordion/src/accordion-panel.tsx","../node_modules/@chakra-ui/form-control/src/form-control.tsx","../node_modules/@chakra-ui/form-control/src/form-error.tsx","../node_modules/@chakra-ui/modal/src/modal-footer.tsx","../node_modules/react-hook-form/src/utils/isCheckBoxInput.ts","../node_modules/react-hook-form/src/utils/isDateObject.ts","../node_modules/react-hook-form/src/utils/isNullOrUndefined.ts","../node_modules/react-hook-form/src/utils/isObject.ts","../node_modules/react-hook-form/src/logic/getEventValue.ts","../node_modules/react-hook-form/src/logic/isNameInFieldArray.ts","../node_modules/react-hook-form/src/logic/getNodeParentName.ts","../node_modules/react-hook-form/src/utils/isPlainObject.ts","../node_modules/react-hook-form/src/utils/isWeb.ts","../node_modules/react-hook-form/src/utils/cloneObject.ts","../node_modules/react-hook-form/src/utils/compact.ts","../node_modules/react-hook-form/src/utils/isUndefined.ts","../node_modules/react-hook-form/src/utils/get.ts","../node_modules/react-hook-form/src/utils/isBoolean.ts","../node_modules/react-hook-form/src/constants.ts","../node_modules/react-hook-form/src/useFormContext.tsx","../node_modules/react-hook-form/src/logic/getProxyFormState.ts","../node_modules/react-hook-form/src/utils/isEmptyObject.ts","../node_modules/react-hook-form/src/logic/shouldRenderFormState.ts","../node_modules/react-hook-form/src/utils/convertToArrayPayload.ts","../node_modules/react-hook-form/src/useSubscribe.ts","../node_modules/react-hook-form/src/utils/isString.ts","../node_modules/react-hook-form/src/logic/generateWatchOutput.ts","../node_modules/react-hook-form/src/utils/isKey.ts","../node_modules/react-hook-form/src/utils/stringToPath.ts","../node_modules/react-hook-form/src/utils/set.ts","../node_modules/react-hook-form/src/logic/appendErrors.ts","../node_modules/react-hook-form/src/logic/focusFieldBy.ts","../node_modules/react-hook-form/src/logic/generateId.ts","../node_modules/react-hook-form/src/logic/getFocusFieldName.ts","../node_modules/react-hook-form/src/logic/getValidationModes.ts","../node_modules/react-hook-form/src/logic/isWatched.ts","../node_modules/react-hook-form/src/logic/updateFieldArrayRootError.ts","../node_modules/react-hook-form/src/utils/isFileInput.ts","../node_modules/react-hook-form/src/utils/isFunction.ts","../node_modules/react-hook-form/src/utils/isHTMLElement.ts","../node_modules/react-hook-form/src/utils/isMessage.ts","../node_modules/react-hook-form/src/utils/isRadioInput.ts","../node_modules/react-hook-form/src/utils/isRegex.ts","../node_modules/react-hook-form/src/logic/getCheckboxValue.ts","../node_modules/react-hook-form/src/logic/getRadioValue.ts","../node_modules/react-hook-form/src/logic/getValidateError.ts","../node_modules/react-hook-form/src/logic/getValueAndMessage.ts","../node_modules/react-hook-form/src/logic/validateField.ts","../node_modules/react-hook-form/src/utils/append.ts","../node_modules/react-hook-form/src/utils/fillEmptyArray.ts","../node_modules/react-hook-form/src/utils/insert.ts","../node_modules/react-hook-form/src/utils/move.ts","../node_modules/react-hook-form/src/utils/prepend.ts","../node_modules/react-hook-form/src/utils/remove.ts","../node_modules/react-hook-form/src/utils/swap.ts","../node_modules/react-hook-form/src/utils/unset.ts","../node_modules/react-hook-form/src/utils/update.ts","../node_modules/react-hook-form/src/utils/createSubject.ts","../node_modules/react-hook-form/src/utils/isPrimitive.ts","../node_modules/react-hook-form/src/utils/deepEqual.ts","../node_modules/react-hook-form/src/utils/isMultipleSelect.ts","../node_modules/react-hook-form/src/utils/isRadioOrCheckbox.ts","../node_modules/react-hook-form/src/utils/live.ts","../node_modules/react-hook-form/src/utils/objectHasFunction.ts","../node_modules/react-hook-form/src/logic/getDirtyFields.ts","../node_modules/react-hook-form/src/logic/getFieldValueAs.ts","../node_modules/react-hook-form/src/logic/getFieldValue.ts","../node_modules/react-hook-form/src/logic/getResolverOptions.ts","../node_modules/react-hook-form/src/logic/getRuleValue.ts","../node_modules/react-hook-form/src/logic/hasValidation.ts","../node_modules/react-hook-form/src/logic/schemaErrorLookup.ts","../node_modules/react-hook-form/src/logic/skipValidation.ts","../node_modules/react-hook-form/src/logic/unsetEmptyArray.ts","../node_modules/react-hook-form/src/logic/createFormControl.ts","../node_modules/react-hook-form/src/useForm.ts","../node_modules/@chakra-ui/card/src/card-context.tsx","../node_modules/@chakra-ui/card/src/card.tsx","../node_modules/@chakra-ui/card/src/card-body.tsx","components/AccountDrawer/JsValueWrap.tsx","../node_modules/@chakra-ui/form-control/src/form-label.tsx","../node_modules/@chakra-ui/react-children-utils/dist/index.mjs","../node_modules/@chakra-ui/input/src/input-group.tsx","../node_modules/@chakra-ui/form-control/src/use-form-control.ts","../node_modules/@chakra-ui/input/src/input.tsx","../node_modules/@chakra-ui/input/src/input-element.tsx","../node_modules/@chakra-ui/layout/src/list.tsx","../node_modules/@chakra-ui/tooltip/src/tooltip.transition.tsx","../node_modules/@chakra-ui/dom-utils/dist/chunk-4WEUWBTD.mjs","../node_modules/@chakra-ui/popper/src/utils.ts","../node_modules/@chakra-ui/popper/src/modifiers.ts","../node_modules/@chakra-ui/popper/src/popper.placement.ts","../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../node_modules/@popperjs/core/lib/utils/math.js","../node_modules/@popperjs/core/lib/utils/userAgent.js","../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../node_modules/@popperjs/core/lib/enums.js","../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../node_modules/@popperjs/core/lib/utils/debounce.js","../node_modules/@popperjs/core/lib/createPopper.js","../node_modules/@popperjs/core/lib/utils/mergeByName.js","../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../node_modules/@popperjs/core/lib/utils/getVariation.js","../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../node_modules/@popperjs/core/lib/modifiers/offset.js","../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../node_modules/@popperjs/core/lib/dom-utils/contains.js","../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../node_modules/@popperjs/core/lib/modifiers/flip.js","../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../node_modules/@popperjs/core/lib/utils/within.js","../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../node_modules/@popperjs/core/lib/modifiers/arrow.js","../node_modules/@popperjs/core/lib/modifiers/hide.js","../node_modules/@popperjs/core/lib/popper.js","../node_modules/@chakra-ui/popper/src/use-popper.ts","../node_modules/@chakra-ui/react-use-disclosure/src/index.ts","../node_modules/@chakra-ui/react-use-event-listener/src/index.ts","../node_modules/@chakra-ui/tooltip/src/use-tooltip.ts","../node_modules/@chakra-ui/tooltip/src/tooltip.tsx","../node_modules/utilities/object-utils/src/pick.ts","components/Identicon.tsx","components/AddressTile/AddressTileIcon.tsx","utils/account/derivationPathUtils.ts","utils/account/makeMnemonicAccount.ts","utils/hooks/contactsHooks.ts","utils/hooks/getAccountDataHooks.ts","utils/hooks/multisigHooks.ts","../node_modules/@ledgerhq/errors/src/helpers.ts","../node_modules/@ledgerhq/errors/src/index.ts","../node_modules/@ledgerhq/logs/src/index.ts","../node_modules/@ledgerhq/hw-transport/src/Transport.ts","../node_modules/@ledgerhq/devices/src/hid-framing.ts","../node_modules/@ledgerhq/devices/src/index.ts","../node_modules/@ledgerhq/hw-transport-webusb/src/webusb.ts","../node_modules/@ledgerhq/hw-transport-webusb/src/TransportWebUSB.ts","../node_modules/rxjs/src/internal/util/isFunction.ts","../node_modules/rxjs/src/internal/util/createErrorClass.ts","../node_modules/rxjs/src/internal/util/UnsubscriptionError.ts","../node_modules/rxjs/src/internal/util/arrRemove.ts","../node_modules/rxjs/src/internal/Subscription.ts","../node_modules/rxjs/src/internal/config.ts","../node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts","../node_modules/rxjs/src/internal/util/reportUnhandledError.ts","../node_modules/rxjs/src/internal/util/noop.ts","../node_modules/rxjs/src/internal/NotificationFactories.ts","../node_modules/rxjs/src/internal/util/errorContext.ts","../node_modules/rxjs/src/internal/Subscriber.ts","../node_modules/rxjs/src/internal/symbol/observable.ts","../node_modules/rxjs/src/internal/util/identity.ts","../node_modules/rxjs/src/internal/util/pipe.ts","../node_modules/rxjs/src/internal/Observable.ts","../node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts","../node_modules/rxjs/src/internal/Subject.ts","../node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts","../node_modules/rxjs/src/internal/ReplaySubject.ts","../node_modules/rxjs/src/internal/BehaviorSubject.ts","../node_modules/rxjs/src/internal/observable/throwError.ts","../node_modules/rxjs/src/internal/util/isArrayLike.ts","../node_modules/rxjs/src/internal/util/isPromise.ts","../node_modules/rxjs/src/internal/util/isInteropObservable.ts","../node_modules/rxjs/src/internal/util/isAsyncIterable.ts","../node_modules/rxjs/src/internal/util/throwUnobservableError.ts","../node_modules/rxjs/src/internal/symbol/iterator.ts","../node_modules/rxjs/src/internal/util/isIterable.ts","../node_modules/rxjs/src/internal/util/isReadableStreamLike.ts","../node_modules/rxjs/src/internal/observable/innerFrom.ts","../node_modules/rxjs/src/internal/observable/defer.ts","../node_modules/rxjs/src/internal/observable/empty.ts","../node_modules/rxjs/src/internal/observable/range.ts","../node_modules/rxjs/src/internal/util/isScheduler.ts","../node_modules/rxjs/src/internal/util/args.ts","../node_modules/rxjs/src/internal/util/executeSchedule.ts","../node_modules/rxjs/src/internal/util/lift.ts","../node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts","../node_modules/rxjs/src/internal/operators/observeOn.ts","../node_modules/rxjs/src/internal/operators/subscribeOn.ts","../node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts","../node_modules/rxjs/src/internal/scheduled/scheduled.ts","../node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts","../node_modules/rxjs/src/internal/scheduled/scheduleArray.ts","../node_modules/rxjs/src/internal/scheduled/schedulePromise.ts","../node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts","../node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts","../node_modules/rxjs/src/internal/observable/from.ts","../node_modules/rxjs/src/internal/observable/of.ts","../node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts","../node_modules/rxjs/src/internal/operators/map.ts","../node_modules/rxjs/src/internal/util/mapOneOrManyArgs.ts","../node_modules/rxjs/src/internal/observable/combineLatest.ts","../node_modules/rxjs/src/internal/util/createObject.ts","../node_modules/rxjs/src/internal/operators/mergeMap.ts","../node_modules/rxjs/src/internal/operators/mergeInternals.ts","../node_modules/rxjs/src/internal/operators/concatAll.ts","../node_modules/rxjs/src/internal/operators/mergeAll.ts","../node_modules/rxjs/src/internal/observable/concat.ts","../node_modules/rxjs/src/internal/observable/never.ts","../node_modules/rxjs/src/internal/scheduler/Action.ts","../node_modules/rxjs/src/internal/scheduler/intervalProvider.ts","../node_modules/rxjs/src/internal/scheduler/AsyncAction.ts","../node_modules/rxjs/src/internal/Scheduler.ts","../node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts","../node_modules/rxjs/src/internal/scheduler/async.ts","../node_modules/rxjs/src/internal/util/isDate.ts","../node_modules/rxjs/src/internal/observable/timer.ts","../node_modules/rxjs/src/internal/operators/switchMap.ts","../node_modules/rxjs/src/internal/operators/timeout.ts","../node_modules/rxjs/src/internal/operators/concatMap.ts","../node_modules/rxjs/src/internal/operators/endWith.ts","../node_modules/rxjs/src/internal/operators/tap.ts","../node_modules/rxjs/src/internal/operators/share.ts","../node_modules/rxjs/src/internal/operators/shareReplay.ts","../node_modules/rxjs/src/internal/operators/filter.ts","../node_modules/rxjs/src/internal/util/EmptyError.ts","../node_modules/rxjs/src/internal/operators/throwIfEmpty.ts","../node_modules/rxjs/src/internal/operators/first.ts","../node_modules/rxjs/src/internal/operators/take.ts","../node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts","../node_modules/rxjs/src/internal/operators/catchError.ts","../node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts","../node_modules/rxjs/src/internal/operators/retry.ts","../node_modules/rxjs/src/internal/operators/pluck.ts","../node_modules/rxjs/src/internal/operators/refCount.ts","../node_modules/rxjs/src/internal/observable/ConnectableObservable.ts","../node_modules/rxjs/src/internal/operators/connect.ts","../node_modules/rxjs/src/internal/observable/fromSubscribable.ts","../node_modules/rxjs/src/internal/operators/publish.ts","../node_modules/rxjs/src/internal/operators/multicast.ts","../node_modules/rxjs/src/internal/operators/takeWhile.ts","../node_modules/rxjs/src/internal/operators/startWith.ts","../node_modules/rxjs/src/internal/operators/takeUntil.ts","../node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts","utils/tezos/fakeSigner.ts","multisig/multisigUtils.ts","types/Operation.ts","utils/tezos/helpers.ts","utils/tezos/estimate.ts","../node_modules/@chriscdn/promise-semaphore/src/index.ts","../node_modules/@tzkt/oazapfts/src/runtime/util.ts","../node_modules/@tzkt/oazapfts/src/runtime/query.ts","../node_modules/@tzkt/oazapfts/src/index.ts","../node_modules/@tzkt/sdk-api/src/queryParamParsers.ts","../node_modules/@tzkt/sdk-api/src/index.ts","../node_modules/@tzkt/oazapfts/src/runtime/index.ts","utils/tezos/consts.ts","utils/tezos/fetch.ts","utils/tezos/execute.ts","utils/mnemonic.ts","utils/hooks/accountUtils.ts","utils/hooks/networkHooks.ts","utils/hooks/tokensHooks.ts","utils/format.ts","utils/hooks/assetsHooks.ts","components/AddressTile/useAddressKind.ts","components/PrettyNumber.tsx","components/AccountBalance.tsx","components/AddressTile/AddressTile.tsx","components/AddressAutocomplete/Suggestions.tsx","components/AddressAutocomplete/AddressAutocomplete.tsx","utils/beacon/BeaconNotification/panels/PermissionRequestPanel.tsx","utils/hooks/beaconHooks.ts","../node_modules/@chakra-ui/button/src/icon-button.tsx","../node_modules/react-icons/fc/index.esm.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@toruslabs/http-helpers/src/index.ts","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/util.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/native.js","../node_modules/oblivious-set/src/index.ts","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/options.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/indexed-db.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/localstorage.js","../node_modules/@toruslabs/broadcast-channel/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","../node_modules/engine.io-parser/build/esm/commons.js","../node_modules/engine.io-parser/build/esm/encodePacket.browser.js","../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js","../node_modules/engine.io-parser/build/esm/decodePacket.browser.js","../node_modules/engine.io-parser/build/esm/index.js","../node_modules/@socket.io/component-emitter/index.mjs","../node_modules/engine.io-client/build/esm/globalThis.browser.js","../node_modules/engine.io-client/build/esm/util.js","../node_modules/engine.io-client/build/esm/transport.js","../node_modules/engine.io-client/build/esm/contrib/parseqs.js","../node_modules/engine.io-client/build/esm/contrib/yeast.js","../node_modules/engine.io-client/build/esm/contrib/has-cors.js","../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js","../node_modules/engine.io-client/build/esm/transports/polling.js","../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js","../node_modules/engine.io-client/build/esm/transports/websocket.js","../node_modules/engine.io-client/build/esm/transports/webtransport.js","../node_modules/engine.io-client/build/esm/transports/index.js","../node_modules/engine.io-client/build/esm/contrib/parseuri.js","../node_modules/engine.io-client/build/esm/socket.js","../node_modules/engine.io-client/build/esm/index.js","../node_modules/socket.io-parser/build/esm/is-binary.js","../node_modules/socket.io-parser/build/esm/binary.js","../node_modules/socket.io-parser/build/esm/index.js","../node_modules/socket.io-client/build/esm/on.js","../node_modules/socket.io-client/build/esm/socket.js","../node_modules/socket.io-client/build/esm/contrib/backo2.js","../node_modules/socket.io-client/build/esm/manager.js","../node_modules/socket.io-client/build/esm/index.js","../node_modules/socket.io-client/build/esm/url.js","../node_modules/@toruslabs/eccrypto/src/index.ts","../node_modules/@toruslabs/broadcast-channel/node_modules/@toruslabs/http-helpers/src/index.ts","../node_modules/@toruslabs/broadcast-channel/node_modules/@toruslabs/metadata-helpers/src/utils.ts","../node_modules/@toruslabs/broadcast-channel/node_modules/@toruslabs/metadata-helpers/src/webAuthnShareResolver.ts","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/server.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/simulate.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/method-chooser.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/broadcast-channel.js","../node_modules/jwt-decode/lib/atob.js","../node_modules/jwt-decode/lib/index.js","../node_modules/jwt-decode/lib/base64_url_decode.js","../node_modules/@toruslabs/constants/src/constants.ts","../node_modules/@toruslabs/fnd-base/src/endpoints.ts","../node_modules/@toruslabs/fnd-base/src/legacyMainnetConfig.ts","../node_modules/@toruslabs/fnd-base/src/pubKeys.ts","../node_modules/@toruslabs/fnd-base/src/sapphireNetworkConfig.ts","../node_modules/@toruslabs/fetch-node-details/src/nodeDetailManager.ts","../node_modules/@toruslabs/fnd-base/src/utils.ts","../node_modules/@toruslabs/torus.js/src/constants.ts","../node_modules/@toruslabs/torus.js/src/helpers/common.ts","../node_modules/@toruslabs/torus.js/src/helpers/errorUtils.ts","../node_modules/@toruslabs/torus.js/src/loglevel.ts","../node_modules/@toruslabs/torus.js/src/helpers/keyUtils.ts","../node_modules/@toruslabs/torus.js/src/Point.ts","../node_modules/@toruslabs/torus.js/src/Share.ts","../node_modules/@toruslabs/torus.js/src/Polynomial.ts","../node_modules/@toruslabs/torus.js/src/helpers/langrangeInterpolatePoly.ts","../node_modules/@toruslabs/torus.js/src/helpers/metadataUtils.ts","../node_modules/@toruslabs/torus.js/src/config.ts","../node_modules/@toruslabs/torus.js/src/some.ts","../node_modules/@toruslabs/torus.js/src/helpers/nodeUtils.ts","../node_modules/@toruslabs/torus.js/src/torus.ts","../node_modules/@toruslabs/metadata-helpers/src/utils.ts","../node_modules/@toruslabs/metadata-helpers/src/webAuthnShareResolver.ts","../node_modules/@toruslabs/customauth/src/utils/enums.ts","../node_modules/@toruslabs/customauth/src/utils/loglevel.ts","../node_modules/@toruslabs/customauth/src/utils/helpers.ts","../node_modules/@toruslabs/customauth/src/utils/PopupHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/AbstractLoginHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/DiscordHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/FacebookHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/GoogleHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/JwtHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/MockLoginHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/PasswordlessHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/RedditHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/TwitchHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/WebAuthnHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/HandlerFactory.ts","../node_modules/@toruslabs/customauth/src/sentry.ts","../node_modules/@toruslabs/customauth/src/utils/StorageHelper.ts","../node_modules/@toruslabs/customauth/src/login.ts","../node_modules/@toruslabs/customauth/src/registerServiceWorker.ts","utils/withTimeout.ts","GoogleAuth/getGoogleCredentials.ts","utils/getErrorContext.ts","utils/hooks/useAsyncActionHandler.ts","GoogleAuth/GoogleAuth.tsx","components/FormErrorMessage.tsx","components/PasswordInput.tsx","components/SendFlow/SignButton.tsx","utils/beacon/BeaconNotification/panels/SignPayloadRequestPanel.tsx","assets/icons/WindowLink.tsx","components/SendFlow/SuccessStep.tsx","components/SendFlow/Beacon/useSignWithBeacon.tsx","components/AssetTiles/TezTile.tsx","components/SendFlow/SignPageFee.tsx","components/SendFlow/FormPageHeader.tsx","../node_modules/@chakra-ui/icon/src/create-icon.tsx","../node_modules/@chakra-ui/icons/src/ArrowBack.tsx","components/ModalBackButton.tsx","components/SendFlow/SignPageHeader.tsx","components/SendFlow/Beacon/ContractCallSignPage.tsx","components/SendFlow/Beacon/DelegationSignPage.tsx","components/SendFlow/Beacon/TezSignPage.tsx","components/SendFlow/Beacon/UndelegationSignPage.tsx","components/SendFlow/Beacon/BeaconSignPage.tsx","utils/beacon/BeaconNotification/BeaconRequestNotification.tsx","utils/beacon/types.ts","utils/beacon/beacon.tsx","utils/multisig/fetch.ts","utils/multisig/helpers.ts","utils/useAssetsPolling.ts","utils/useDeeplinkHandler.ts","GoogleAuth/parseTorusRedirectParams.ts","../node_modules/@chakra-ui/table/src/table-container.tsx","../node_modules/@chakra-ui/table/src/table.tsx","../node_modules/@chakra-ui/table/src/tbody.tsx","../node_modules/@chakra-ui/table/src/tr.tsx","../node_modules/@chakra-ui/table/src/td.tsx","../node_modules/react-icons/bs/index.esm.js","../node_modules/react-icons/rx/index.esm.js","components/CopyableText.tsx","components/ContactModal.tsx","../node_modules/@chakra-ui/layout/src/divider.tsx","../node_modules/@chakra-ui/react-use-animation-state/src/index.ts","../node_modules/@chakra-ui/react-use-focus-on-pointer-down/src/index.ts","../node_modules/@chakra-ui/react-use-focus-effect/src/index.ts","../node_modules/@chakra-ui/lazy-utils/dist/index.mjs","../node_modules/@chakra-ui/popover/src/use-popover.ts","../node_modules/@chakra-ui/popover/src/popover-context.ts","../node_modules/@chakra-ui/popover/src/popover.tsx","../node_modules/@chakra-ui/popover/src/popover-trigger.tsx","../node_modules/@chakra-ui/popover/src/popover-transition.tsx","../node_modules/@chakra-ui/popover/src/popover-content.tsx","../node_modules/@chakra-ui/popover/src/popover-body.tsx","components/PopoverMenu.tsx","components/RenameRemoveMenu.tsx","components/SendButton.tsx","components/SendFlow/OperationSignerSelector.tsx","types/AccountOperations.ts","utils/hooks/batchesHooks.ts","components/SendFlow/utils.tsx","components/SendFlow/Tez/SignPage.tsx","utils/redux/thunks/estimateAndUpdateBatch.ts","components/SendFlow/onSubmitFormActionHooks.tsx","components/SendFlow/Tez/FormPage.tsx","views/addressBook/ContactTable.tsx","../node_modules/@chakra-ui/media-query/src/use-media-query.ts","../node_modules/date-fns/_lib/getRoundingMethod.mjs","../node_modules/date-fns/constants.mjs","../node_modules/date-fns/toDate.mjs","../node_modules/date-fns/differenceInMilliseconds.mjs","../node_modules/date-fns/differenceInMinutes.mjs","../node_modules/date-fns/compareAsc.mjs","../node_modules/date-fns/differenceInCalendarMonths.mjs","../node_modules/date-fns/endOfDay.mjs","../node_modules/date-fns/endOfMonth.mjs","../node_modules/date-fns/isLastDayOfMonth.mjs","../node_modules/date-fns/differenceInMonths.mjs","../node_modules/date-fns/differenceInSeconds.mjs","../node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs","../node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs","../node_modules/date-fns/locale/en-US/_lib/formatLong.mjs","../node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs","../node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs","../node_modules/date-fns/locale/en-US/_lib/localize.mjs","../node_modules/date-fns/locale/_lib/buildMatchFn.mjs","../node_modules/date-fns/locale/en-US/_lib/match.mjs","../node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs","../node_modules/date-fns/locale/en-US.mjs","../node_modules/date-fns/_lib/defaultOptions.mjs","../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs","../node_modules/date-fns/formatDistance.mjs","components/BuyTez/BuyTezForm.tsx","assets/icons/CheckIcon.tsx","components/TopBar.tsx","views/addressBook/AddressBookView.tsx","views/batch/AccountSmallTile.tsx","../node_modules/@chakra-ui/hooks/src/use-outside-click.ts","../node_modules/@chakra-ui/popover/src/popover-arrow.tsx","components/AddressPill/AddressPillIcon.tsx","components/AddressPill/AddressPillText.tsx","components/AddressPill/useAddressKind.ts","components/AddressPill/AddressPill.tsx","views/batch/OperationRecipient.tsx","utils/token/utils.ts","views/batch/OperationView.tsx","components/AccountTile/AccountTileIcon.tsx","views/home/SelectedAccountContext.ts","components/AccountTile/AccountTile.tsx","components/ConfirmationModal.tsx","components/SendFlow/BatchModalBody.tsx","components/SendFlow/Batch/SignPage.tsx","views/batch/BatchView.tsx","../node_modules/nanoid/index.browser.js","utils/helpers.ts","components/CSVFileUploader/utils.ts","components/CSVFileUploader/CSVFileUploadForm.tsx","components/CSVFileUploader/index.tsx","components/ExternalLink.tsx","views/batch/BatchPage.tsx","../node_modules/@chakra-ui/layout/src/grid.tsx","../node_modules/@chakra-ui/layout/src/grid-item.tsx","components/ClickableCard.tsx","views/help/HelpView.tsx","../node_modules/@chakra-ui/modal/src/drawer.tsx","../node_modules/@chakra-ui/transition/src/slide.tsx","../node_modules/@chakra-ui/modal/src/drawer-content.tsx","views/home/AccountGroupPopover.tsx","../node_modules/@chakra-ui/layout/src/stack/stack-item.tsx","../node_modules/@chakra-ui/layout/src/stack/stack.tsx","../node_modules/@chakra-ui/layout/src/stack/stack.utils.tsx","../node_modules/@chakra-ui/layout/src/stack/v-stack.tsx","components/CircleIcon.tsx","components/Onboarding/ModalContentWrapper.tsx","components/Onboarding/masterPassword/password/EnterPassword.tsx","components/Onboarding/nameAccount/NameAccountDisplay.tsx","views/home/DeriveAccountDisplay.tsx.tsx","components/NestedScroll.tsx","components/Onboarding/connectOptions/ConnectOptions.tsx","utils/redux/thunks/secretKeyAccount.ts","utils/hooks/setAccountDataHooks.ts","components/Onboarding/connectOrCreate/ConnectOrCreate.tsx","components/Select.tsx","components/Onboarding/derivationPath/DerivationPath.tsx","../node_modules/@chakra-ui/checkbox/src/checkbox-context.ts","../node_modules/@chakra-ui/checkbox/src/checkbox-icon.tsx","../node_modules/@chakra-ui/visually-hidden/src/visually-hidden.style.ts","../node_modules/@zag-js/dom-query/src/platform.ts","../node_modules/@zag-js/dom-query/src/index.ts","../node_modules/@zag-js/focus-visible/src/index.ts","../node_modules/@chakra-ui/checkbox/src/use-checkbox.ts","../node_modules/@chakra-ui/checkbox/src/checkbox.tsx","../node_modules/@chakra-ui/checkbox/src/use-initial-animation-state.tsx","components/Onboarding/eula/Eula.tsx","components/Onboarding/FakeAccount.tsx","components/Onboarding/masterPassword/password/EnterAndConfirmPassword.tsx","components/Onboarding/masterPassword/MasterPassword.tsx","components/Onboarding/notice/Notice.tsx","utils/redux/persistor.ts","components/Onboarding/restoreBackupFile/RestoreBackupFile.tsx","components/Onboarding/restoreBackupFile/utils.ts","components/Onboarding/restoreLedger/RestoreLedger.tsx","utils/ledger/pk.ts","../node_modules/@chakra-ui/icons/src/ChevronDown.tsx","../node_modules/@chakra-ui/select/src/select-field.tsx","../node_modules/@chakra-ui/select/src/select.tsx","../node_modules/utilities/object-utils/src/split.ts","components/MnemonicAutocomplete.tsx","components/Onboarding/restoreMnemonic/RestoreMnemonic.tsx","../node_modules/@chakra-ui/textarea/src/textarea.tsx","components/Onboarding/restoreSecretKey/RestoreSecretKey.tsx","../node_modules/@chakra-ui/layout/src/simple-grid.tsx","components/Onboarding/showSeedphrase/ShowSeedphrase.tsx","components/Onboarding/verifySeedphrase/VerifySeedphrase.tsx","components/Onboarding/useOnboardingModal.tsx","components/useStepHistory.tsx","components/Onboarding/nameAccount/NameAccount.tsx","components/SendFlow/MultisigAccount/SignPage.tsx","multisig/multisigContract.ts","components/SendFlow/MultisigAccount/FormPage.tsx","../node_modules/react-hook-form/src/useFieldArray.ts","views/home/AccountsList.tsx","views/home/DrawerTopButtons.tsx","../node_modules/@chakra-ui/clickable/src/use-clickable.ts","../node_modules/@chakra-ui/clickable/src/use-event-listeners.ts","../node_modules/@chakra-ui/tabs/src/use-tabs.ts","../node_modules/@chakra-ui/tabs/src/tabs.tsx","../node_modules/@chakra-ui/tabs/src/tab-list.tsx","../node_modules/@chakra-ui/tabs/src/tab-panels.tsx","../node_modules/@chakra-ui/tabs/src/tab-panel.tsx","../node_modules/date-fns/startOfDay.mjs","../node_modules/date-fns/differenceInCalendarDays.mjs","../node_modules/date-fns/isDate.mjs","../node_modules/date-fns/isValid.mjs","../node_modules/date-fns/constructFrom.mjs","../node_modules/date-fns/startOfYear.mjs","../node_modules/date-fns/getDayOfYear.mjs","../node_modules/date-fns/startOfWeek.mjs","../node_modules/date-fns/startOfISOWeek.mjs","../node_modules/date-fns/getISOWeekYear.mjs","../node_modules/date-fns/startOfISOWeekYear.mjs","../node_modules/date-fns/getISOWeek.mjs","../node_modules/date-fns/getWeekYear.mjs","../node_modules/date-fns/startOfWeekYear.mjs","../node_modules/date-fns/getWeek.mjs","../node_modules/date-fns/_lib/addLeadingZeros.mjs","../node_modules/date-fns/_lib/format/lightFormatters.mjs","../node_modules/date-fns/_lib/format/formatters.mjs","../node_modules/date-fns/_lib/format/longFormatters.mjs","../node_modules/date-fns/_lib/protectedTokens.mjs","../node_modules/date-fns/format.mjs","../node_modules/date-fns/formatRelative.mjs","components/NoItems/index.tsx","components/SendFlow/Delegation/SignPage.tsx","components/SendFlow/Delegation/FormPage.tsx","components/SendFlow/Undelegation/SignPage.tsx","components/SendFlow/Undelegation/FormPage.tsx","components/AccountDrawer/AssetsPanel/DelegationDisplay.tsx","utils/hooks/delegationHooks.ts","../node_modules/react-icons/fi/index.esm.js","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigDecodedOperationItem.tsx","multisig/decode/schemas.ts","multisig/decode/UnrecognizedMichelsonError.ts","multisig/decode/decodeLambda.ts","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigDecodedOperations.tsx","../node_modules/react-icons/cg/index.esm.js","components/IconAndTextBtn.tsx","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigActionButton.tsx","components/SendFlow/Multisig/SignPage.tsx","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTile.tsx","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigPendingAccordionItem.tsx","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/index.tsx","components/AccountDrawer/AssetsPanel/ViewAllLink.tsx","components/AccountDrawer/AssetsPanel/NFTsGrid.tsx","components/OperationTile/OperationTileContext.ts","components/OperationTile/Fee.tsx","components/OperationTile/OperationStatus.tsx","components/OperationTile/OperationTypeWrapper.tsx","../node_modules/date-fns/differenceInDays.mjs","components/OperationTile/Timestamp.tsx","components/OperationTile/TzktLink.tsx","components/OperationTile/useShowAddress.tsx","components/OperationTile/ContractCallTile.tsx","components/OperationTile/DelegationTile.tsx","components/OperationTile/OriginationTile.tsx","components/OperationTile/TransactionDirectionIcon.tsx","components/OperationTile/TokenTransferTile.tsx","components/OperationTile/TransactionTile.tsx","components/OperationTile/OperationTile.tsx","components/AccountDrawer/AssetsPanel/OperationListDisplay.tsx","views/tokens/TokenNameWithIcon.tsx","components/AccountDrawer/AssetsPanel/TokenList.tsx","utils/tzkt/helpers.ts","views/operations/useGetOperations.tsx","../node_modules/@chakra-ui/tabs/src/tab.tsx","components/SmallTab.tsx","components/AccountDrawer/AssetsPanel/AssetsPanel.tsx","../node_modules/@chakra-ui/layout/src/wrap.tsx","components/AccountDrawer/MultisigApprovers.tsx","components/AccountDrawer/RenameAccountModal.tsx","utils/redux/thunks/renameAccount.ts","components/AccountDrawer/RenameRemoveMenuSwitch.tsx","components/TezRecapDisplay.tsx","components/AccountDrawer/AccountDrawerDisplay.tsx","types/Delegation.ts","components/ReceiveModal.tsx","components/AccountDrawer/index.tsx","views/nfts/drawer/AttributesAccordionItem.tsx","components/TruncatedTextWithTooltip.tsx","components/TzktLink.tsx","views/nfts/drawer/PropertiesAccordionItem.tsx","views/nfts/drawer/TagsSection.tsx","components/SendFlow/SendNFTRecapTile.tsx","components/SendFlow/NFT/SignPage.tsx","components/SendFlow/NFT/FormPage.tsx","views/nfts/NFTDrawerCard.tsx","views/nfts/NFTDrawerBody.tsx","views/home/AccountListWithDrawer.tsx","views/home/HomeView.tsx","views/nfts/SelectedNFTContext.ts","views/nfts/NFTCard.tsx","views/nfts/NFTGallery.tsx","../node_modules/@chakra-ui/menu/src/use-shortcut.ts","../node_modules/@chakra-ui/react-use-outside-click/src/index.ts","../node_modules/@chakra-ui/menu/src/use-menu.ts","../node_modules/@chakra-ui/menu/src/menu.tsx","../node_modules/@chakra-ui/menu/src/menu-button.tsx","../node_modules/@chakra-ui/menu/src/menu-list.tsx","../node_modules/@chakra-ui/menu/src/get-next-item-from-search.ts","../node_modules/@chakra-ui/menu/src/menu-command.tsx","../node_modules/@chakra-ui/menu/src/styled-menu-item.tsx","../node_modules/@chakra-ui/menu/src/menu-icon.tsx","../node_modules/@chakra-ui/menu/src/menu-item.tsx","components/AccountSelector/AccountListDisplay.tsx","components/useAccountsFilter.tsx","views/nfts/NftsView.tsx","views/operations/OperationsView.tsx","utils/beacon/BeaconPeers.tsx","views/settings/BeaconDrawerCard.tsx","../node_modules/react-icons/ai/index.esm.js","views/settings/ErrorLogsDrawerCard.tsx","../node_modules/@chakra-ui/radio/src/use-radio-group.ts","../node_modules/@chakra-ui/radio/src/radio-group.tsx","../node_modules/@chakra-ui/radio/src/use-radio.ts","../node_modules/@chakra-ui/radio/src/radio.tsx","views/settings/network/UpsertNetworkModal.tsx","views/settings/network/NetworkSettingsDrawerBody.tsx","views/settings/network/NetworkSettingsDrawerCard.tsx","components/ChangePassword/ChangePasswordForm.tsx","components/Offboarding/OffboardingForm.tsx","views/settings/SettingsView.tsx","components/Offboarding/useOffboardingModal.tsx","components/TokenTile.tsx","components/SendFlow/Token/SignPage.tsx","components/SendFlow/Token/FormPage.tsx","views/tokens/AccountTokens.tsx","views/tokens/TokensPage.tsx","components/AppVersion.tsx","components/CollapseMenuButton/CollapseMenuButton.tsx","components/MakiLogo.tsx","components/NetworkSelector.tsx","components/UpdateAppButton.tsx","components/SideNavbar.tsx","components/CollapseMenuButton/useCollapseMenu.ts","views/withSideMenu.tsx","components/Slider.tsx","components/SliderItem.tsx","WelcomeScreen.tsx","Router.tsx","index.tsx"],"sourcesContent":["// Register a service worker to serve assets from local cache.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\nvar isLocalhost = function () { return Boolean(\n window.location.hostname === \"localhost\" ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === \"[::1]\" ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)\n ); };\n\nvar waitWindowLoad;\n// https://github.com/yyx990803/register-service-worker/pull/33#discussion_r394181861\nif (typeof window !== \"undefined\") {\n // Typically, a browser that supports `serviceWorker` should also have supported\n // `Promise`. But as this package can be used in environments without service\n // worker support (in that case it would do nothing), there's a chance that\n // `Promise` does not exist. So we must check for its existence first.\n if (typeof document !== \"undefined\" && (document.readyState === \"interactive\" || document.readyState === \"complete\")) {\n waitWindowLoad = Promise.resolve();\n } else if (typeof Promise !== \"undefined\") {\n waitWindowLoad = new Promise(function (resolve) { return window.addEventListener(\"load\", resolve); });\n } else {\n waitWindowLoad = { then: function (cb) { return window.addEventListener(\"load\", cb); } };\n }\n}\n\nexports.register = function register(swUrl, hooks) {\n if ( hooks === void 0 ) hooks = {};\n\n var registrationOptions = hooks.registrationOptions; if ( registrationOptions === void 0 ) registrationOptions = {};\n delete hooks.registrationOptions;\n\n var emit = function (hook) {\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n\n if (hooks && hooks[hook]) {\n hooks[hook].apply(hooks, args);\n }\n };\n\n if (\"serviceWorker\" in navigator) {\n waitWindowLoad.then(function () {\n if (isLocalhost()) {\n // This is running on localhost. Lets check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, emit, registrationOptions);\n navigator.serviceWorker.ready.then(function (registration) {\n emit(\"ready\", registration);\n });\n } else {\n // Is not local host. Just register service worker\n registerValidSW(swUrl, emit, registrationOptions);\n navigator.serviceWorker.ready.then(function (registration) {\n emit(\"ready\", registration);\n });\n }\n });\n }\n}\n\nfunction handleError(emit, error) {\n if (!navigator.onLine) {\n emit(\"offline\");\n }\n emit(\"error\", error);\n}\n\nfunction registerValidSW(swUrl, emit, registrationOptions) {\n navigator.serviceWorker\n .register(swUrl, registrationOptions)\n .then(function (registration) {\n emit(\"registered\", registration);\n if (registration.waiting) {\n emit(\"updated\", registration);\n return;\n }\n registration.onupdatefound = function () {\n emit(\"updatefound\", registration);\n var installingWorker = registration.installing;\n installingWorker.onstatechange = function () {\n if (installingWorker.state === \"installed\") {\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n emit(\"updated\", registration);\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n emit(\"cached\", registration);\n }\n }\n };\n };\n })\n .catch(function (error) { return handleError(emit, error); });\n}\n\nfunction checkValidServiceWorker(swUrl, emit, registrationOptions) {\n // Check if the service worker can be found.\n fetch(swUrl)\n .then(function (response) {\n // Ensure service worker exists, and that we really are getting a JS file.\n if (response.status === 404) {\n // No service worker found.\n emit(\"error\", new Error((\"Service worker not found at \" + swUrl)));\n unregister();\n } else if (response.headers.get(\"content-type\").indexOf(\"javascript\") === -1) {\n emit(\"error\", new Error(\"Expected \" + swUrl + \" to have javascript content-type, \" + \"but received \" + (response.headers.get(\"content-type\"))));\n unregister();\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, emit, registrationOptions);\n }\n })\n .catch(function (error) { return handleError(emit, error); });\n}\n\nexports.unregister = function unregister() {\n if (\"serviceWorker\" in navigator) {\n navigator.serviceWorker.ready.then(function (registration) {\n registration.unregister();\n });\n }\n}\n","export function number(n: number) {\n if (!Number.isSafeInteger(n) || n < 0) throw new Error(`Wrong positive integer: ${n}`);\n}\n\nexport function bool(b: boolean) {\n if (typeof b !== 'boolean') throw new Error(`Expected boolean, not ${b}`);\n}\n\nexport function bytes(b: Uint8Array | undefined, ...lengths: number[]) {\n if (!(b instanceof Uint8Array)) throw new TypeError('Expected Uint8Array');\n if (lengths.length > 0 && !lengths.includes(b.length))\n throw new TypeError(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`);\n}\n\ntype Hash = {\n (data: Uint8Array): Uint8Array;\n blockLen: number;\n outputLen: number;\n create: any;\n};\nexport function hash(hash: Hash) {\n if (typeof hash !== 'function' || typeof hash.create !== 'function')\n throw new Error('Hash should be wrapped by utils.wrapConstructor');\n number(hash.outputLen);\n number(hash.blockLen);\n}\n\nexport function exists(instance: any, checkFinished = true) {\n if (instance.destroyed) throw new Error('Hash instance has been destroyed');\n if (checkFinished && instance.finished) throw new Error('Hash#digest() has already been called');\n}\nexport function output(out: any, instance: any) {\n bytes(out);\n const min = instance.outputLen;\n if (out.length < min) {\n throw new Error(`digestInto() expects output buffer of length at least ${min}`);\n }\n}\n\nconst assert = {\n number,\n bool,\n bytes,\n hash,\n exists,\n output,\n};\n\nexport default assert;\n","import assert from './_assert.js';\nimport { Hash, createView, Input, toBytes } from './utils.js';\n\n// Polyfill for Safari 14\nfunction setBigUint64(view: DataView, byteOffset: number, value: bigint, isLE: boolean): void {\n if (typeof view.setBigUint64 === 'function') return view.setBigUint64(byteOffset, value, isLE);\n const _32n = BigInt(32);\n const _u32_max = BigInt(0xffffffff);\n const wh = Number((value >> _32n) & _u32_max);\n const wl = Number(value & _u32_max);\n const h = isLE ? 4 : 0;\n const l = isLE ? 0 : 4;\n view.setUint32(byteOffset + h, wh, isLE);\n view.setUint32(byteOffset + l, wl, isLE);\n}\n\n// Base SHA2 class (RFC 6234)\nexport abstract class SHA2> extends Hash {\n protected abstract process(buf: DataView, offset: number): void;\n protected abstract get(): number[];\n protected abstract set(...args: number[]): void;\n abstract destroy(): void;\n protected abstract roundClean(): void;\n // For partial updates less than block size\n protected buffer: Uint8Array;\n protected view: DataView;\n protected finished = false;\n protected length = 0;\n protected pos = 0;\n protected destroyed = false;\n\n constructor(\n readonly blockLen: number,\n public outputLen: number,\n readonly padOffset: number,\n readonly isLE: boolean\n ) {\n super();\n this.buffer = new Uint8Array(blockLen);\n this.view = createView(this.buffer);\n }\n update(data: Input): this {\n assert.exists(this);\n const { view, buffer, blockLen } = this;\n data = toBytes(data);\n const len = data.length;\n for (let pos = 0; pos < len; ) {\n const take = Math.min(blockLen - this.pos, len - pos);\n // Fast path: we have at least one block in input, cast it to view and process\n if (take === blockLen) {\n const dataView = createView(data);\n for (; blockLen <= len - pos; pos += blockLen) this.process(dataView, pos);\n continue;\n }\n buffer.set(data.subarray(pos, pos + take), this.pos);\n this.pos += take;\n pos += take;\n if (this.pos === blockLen) {\n this.process(view, 0);\n this.pos = 0;\n }\n }\n this.length += data.length;\n this.roundClean();\n return this;\n }\n digestInto(out: Uint8Array) {\n assert.exists(this);\n assert.output(out, this);\n this.finished = true;\n // Padding\n // We can avoid allocation of buffer for padding completely if it\n // was previously not allocated here. But it won't change performance.\n const { buffer, view, blockLen, isLE } = this;\n let { pos } = this;\n // append the bit '1' to the message\n buffer[pos++] = 0b10000000;\n this.buffer.subarray(pos).fill(0);\n // we have less than padOffset left in buffer, so we cannot put length in current block, need process it and pad again\n if (this.padOffset > blockLen - pos) {\n this.process(view, 0);\n pos = 0;\n }\n // Pad until full block byte with zeros\n for (let i = pos; i < blockLen; i++) buffer[i] = 0;\n // Note: sha512 requires length to be 128bit integer, but length in JS will overflow before that\n // You need to write around 2 exabytes (u64_max / 8 / (1024**6)) for this to happen.\n // So we just write lowest 64 bits of that value.\n setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE);\n this.process(view, 0);\n const oview = createView(out);\n const len = this.outputLen;\n // NOTE: we do division by 4 later, which should be fused in single op with modulo by JIT\n if (len % 4) throw new Error('_sha2: outputLen should be aligned to 32bit');\n const outLen = len / 4;\n const state = this.get();\n if (outLen > state.length) throw new Error('_sha2: outputLen bigger than state');\n for (let i = 0; i < outLen; i++) oview.setUint32(4 * i, state[i], isLE);\n }\n digest() {\n const { buffer, outputLen } = this;\n this.digestInto(buffer);\n const res = buffer.slice(0, outputLen);\n this.destroy();\n return res;\n }\n _cloneInto(to?: T): T {\n to ||= new (this.constructor as any)() as T;\n to.set(...this.get());\n const { blockLen, buffer, length, finished, destroyed, pos } = this;\n to.length = length;\n to.pos = pos;\n to.finished = finished;\n to.destroyed = destroyed;\n if (length % blockLen) to.buffer.set(buffer);\n return to;\n }\n}\n","const U32_MASK64 = BigInt(2 ** 32 - 1);\nconst _32n = BigInt(32);\n\n// We are not using BigUint64Array, because they are extremely slow as per 2022\nexport function fromBig(n: bigint, le = false) {\n if (le) return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };\n return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };\n}\n\nexport function split(lst: bigint[], le = false) {\n let Ah = new Uint32Array(lst.length);\n let Al = new Uint32Array(lst.length);\n for (let i = 0; i < lst.length; i++) {\n const { h, l } = fromBig(lst[i], le);\n [Ah[i], Al[i]] = [h, l];\n }\n return [Ah, Al];\n}\n\nexport const toBig = (h: number, l: number) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0);\n// for Shift in [0, 32)\nconst shrSH = (h: number, l: number, s: number) => h >>> s;\nconst shrSL = (h: number, l: number, s: number) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in [1, 32)\nconst rotrSH = (h: number, l: number, s: number) => (h >>> s) | (l << (32 - s));\nconst rotrSL = (h: number, l: number, s: number) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotrBH = (h: number, l: number, s: number) => (h << (64 - s)) | (l >>> (s - 32));\nconst rotrBL = (h: number, l: number, s: number) => (h >>> (s - 32)) | (l << (64 - s));\n// Right rotate for shift===32 (just swaps l&h)\nconst rotr32H = (h: number, l: number) => l;\nconst rotr32L = (h: number, l: number) => h;\n// Left rotate for Shift in [1, 32)\nconst rotlSH = (h: number, l: number, s: number) => (h << s) | (l >>> (32 - s));\nconst rotlSL = (h: number, l: number, s: number) => (l << s) | (h >>> (32 - s));\n// Left rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotlBH = (h: number, l: number, s: number) => (l << (s - 32)) | (h >>> (64 - s));\nconst rotlBL = (h: number, l: number, s: number) => (h << (s - 32)) | (l >>> (64 - s));\n\n// JS uses 32-bit signed integers for bitwise operations which means we cannot\n// simple take carry out of low bit sum by shift, we need to use division.\n// Removing \"export\" has 5% perf penalty -_-\nexport function add(Ah: number, Al: number, Bh: number, Bl: number) {\n const l = (Al >>> 0) + (Bl >>> 0);\n return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 };\n}\n// Addition with more than 2 elements\nconst add3L = (Al: number, Bl: number, Cl: number) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);\nconst add3H = (low: number, Ah: number, Bh: number, Ch: number) =>\n (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0;\nconst add4L = (Al: number, Bl: number, Cl: number, Dl: number) =>\n (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);\nconst add4H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number) =>\n (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0;\nconst add5L = (Al: number, Bl: number, Cl: number, Dl: number, El: number) =>\n (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);\nconst add5H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number, Eh: number) =>\n (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0;\n\n// prettier-ignore\nconst u64 = {\n fromBig, split, toBig,\n shrSH, shrSL,\n rotrSH, rotrSL, rotrBH, rotrBL,\n rotr32H, rotr32L,\n rotlSH, rotlSL, rotlBH, rotlBL,\n add, add3L, add3H, add4L, add4H, add5H, add5L,\n};\nexport default u64;\n","declare const globalThis: Record | undefined;\nexport const crypto =\n typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined;\n","import assert from './_assert.js';\nimport { Hash, CHash, Input, toBytes } from './utils.js';\n// HMAC (RFC 2104)\nclass HMAC> extends Hash> {\n oHash: T;\n iHash: T;\n blockLen: number;\n outputLen: number;\n private finished = false;\n private destroyed = false;\n\n constructor(hash: CHash, _key: Input) {\n super();\n assert.hash(hash);\n const key = toBytes(_key);\n this.iHash = hash.create() as T;\n if (typeof this.iHash.update !== 'function')\n throw new TypeError('Expected instance of class which extends utils.Hash');\n this.blockLen = this.iHash.blockLen;\n this.outputLen = this.iHash.outputLen;\n const blockLen = this.blockLen;\n const pad = new Uint8Array(blockLen);\n // blockLen can be bigger than outputLen\n pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);\n for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36;\n this.iHash.update(pad);\n // By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone\n this.oHash = hash.create() as T;\n // Undo internal XOR && apply outer XOR\n for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36 ^ 0x5c;\n this.oHash.update(pad);\n pad.fill(0);\n }\n update(buf: Input) {\n assert.exists(this);\n this.iHash.update(buf);\n return this;\n }\n digestInto(out: Uint8Array) {\n assert.exists(this);\n assert.bytes(out, this.outputLen);\n this.finished = true;\n this.iHash.digestInto(out);\n this.oHash.update(out);\n this.oHash.digestInto(out);\n this.destroy();\n }\n digest() {\n const out = new Uint8Array(this.oHash.outputLen);\n this.digestInto(out);\n return out;\n }\n _cloneInto(to?: HMAC): HMAC {\n // Create new instance without calling constructor since key already in state and we don't know it.\n to ||= Object.create(Object.getPrototypeOf(this), {});\n const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;\n to = to as this;\n to.finished = finished;\n to.destroyed = destroyed;\n to.blockLen = blockLen;\n to.outputLen = outputLen;\n to.oHash = oHash._cloneInto(to.oHash);\n to.iHash = iHash._cloneInto(to.iHash);\n return to;\n }\n destroy() {\n this.destroyed = true;\n this.oHash.destroy();\n this.iHash.destroy();\n }\n}\n\n/**\n * HMAC: RFC2104 message authentication code.\n * @param hash - function that would be used e.g. sha256\n * @param key - message key\n * @param message - message data\n */\nexport const hmac = (hash: CHash, key: Input, message: Input): Uint8Array =>\n new HMAC(hash, key).update(message).digest();\nhmac.create = (hash: CHash, key: Input) => new HMAC(hash, key);\n","import assert from './_assert.js';\nimport { hmac } from './hmac.js';\nimport { Hash, CHash, Input, createView, toBytes, checkOpts, asyncLoop } from './utils.js';\n\n// PBKDF (RFC 2898)\nexport type Pbkdf2Opt = {\n c: number; // Iterations\n dkLen?: number; // Desired key length in bytes (Intended output length in octets of the derived key\n asyncTick?: number; // Maximum time in ms for which async function can block execution\n};\n// Common prologue and epilogue for sync/async functions\nfunction pbkdf2Init(hash: CHash, _password: Input, _salt: Input, _opts: Pbkdf2Opt) {\n assert.hash(hash);\n const opts = checkOpts({ dkLen: 32, asyncTick: 10 }, _opts);\n const { c, dkLen, asyncTick } = opts;\n assert.number(c);\n assert.number(dkLen);\n assert.number(asyncTick);\n if (c < 1) throw new Error('PBKDF2: iterations (c) should be >= 1');\n const password = toBytes(_password);\n const salt = toBytes(_salt);\n // DK = PBKDF2(PRF, Password, Salt, c, dkLen);\n const DK = new Uint8Array(dkLen);\n // U1 = PRF(Password, Salt + INT_32_BE(i))\n const PRF = hmac.create(hash, password);\n const PRFSalt = PRF._cloneInto().update(salt);\n return { c, dkLen, asyncTick, DK, PRF, PRFSalt };\n}\n\nfunction pbkdf2Output>(\n PRF: Hash,\n PRFSalt: Hash,\n DK: Uint8Array,\n prfW: Hash,\n u: Uint8Array\n) {\n PRF.destroy();\n PRFSalt.destroy();\n if (prfW) prfW.destroy();\n u.fill(0);\n return DK;\n}\n\n/**\n * PBKDF2-HMAC: RFC 2898 key derivation function\n * @param hash - hash function that would be used e.g. sha256\n * @param password - password from which a derived key is generated\n * @param salt - cryptographic salt\n * @param opts - {c, dkLen} where c is work factor and dkLen is output message size\n */\nexport function pbkdf2(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt) {\n const { c, dkLen, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts);\n let prfW: any; // Working copy\n const arr = new Uint8Array(4);\n const view = createView(arr);\n const u = new Uint8Array(PRF.outputLen);\n // DK = T1 + T2 + ⋯ + Tdklen/hlen\n for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) {\n // Ti = F(Password, Salt, c, i)\n const Ti = DK.subarray(pos, pos + PRF.outputLen);\n view.setInt32(0, ti, false);\n // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc\n // U1 = PRF(Password, Salt + INT_32_BE(i))\n (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u);\n Ti.set(u.subarray(0, Ti.length));\n for (let ui = 1; ui < c; ui++) {\n // Uc = PRF(Password, Uc−1)\n PRF._cloneInto(prfW).update(u).digestInto(u);\n for (let i = 0; i < Ti.length; i++) Ti[i] ^= u[i];\n }\n }\n return pbkdf2Output(PRF, PRFSalt, DK, prfW, u);\n}\n\nexport async function pbkdf2Async(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt) {\n const { c, dkLen, asyncTick, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts);\n let prfW: any; // Working copy\n const arr = new Uint8Array(4);\n const view = createView(arr);\n const u = new Uint8Array(PRF.outputLen);\n // DK = T1 + T2 + ⋯ + Tdklen/hlen\n for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) {\n // Ti = F(Password, Salt, c, i)\n const Ti = DK.subarray(pos, pos + PRF.outputLen);\n view.setInt32(0, ti, false);\n // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc\n // U1 = PRF(Password, Salt + INT_32_BE(i))\n (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u);\n Ti.set(u.subarray(0, Ti.length));\n await asyncLoop(c - 1, asyncTick, (i) => {\n // Uc = PRF(Password, Uc−1)\n PRF._cloneInto(prfW).update(u).digestInto(u);\n for (let i = 0; i < Ti.length; i++) Ti[i] ^= u[i];\n });\n }\n return pbkdf2Output(PRF, PRFSalt, DK, prfW, u);\n}\n","import { SHA2 } from './_sha2.js';\nimport { rotr, wrapConstructor } from './utils.js';\n\n// Choice: a ? b : c\nconst Chi = (a: number, b: number, c: number) => (a & b) ^ (~a & c);\n// Majority function, true if any two inpust is true\nconst Maj = (a: number, b: number, c: number) => (a & b) ^ (a & c) ^ (b & c);\n\n// Round constants:\n// first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311)\n// prettier-ignore\nconst SHA256_K = new Uint32Array([\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n]);\n\n// Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19):\n// prettier-ignore\nconst IV = new Uint32Array([\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19\n]);\n\n// Temporary buffer, not used to store anything between runs\n// Named this way because it matches specification.\nconst SHA256_W = new Uint32Array(64);\nclass SHA256 extends SHA2 {\n // We cannot use array here since array allows indexing by variable\n // which means optimizer/compiler cannot use registers.\n A = IV[0] | 0;\n B = IV[1] | 0;\n C = IV[2] | 0;\n D = IV[3] | 0;\n E = IV[4] | 0;\n F = IV[5] | 0;\n G = IV[6] | 0;\n H = IV[7] | 0;\n\n constructor() {\n super(64, 32, 8, false);\n }\n protected get(): [number, number, number, number, number, number, number, number] {\n const { A, B, C, D, E, F, G, H } = this;\n return [A, B, C, D, E, F, G, H];\n }\n // prettier-ignore\n protected set(\n A: number, B: number, C: number, D: number, E: number, F: number, G: number, H: number\n ) {\n this.A = A | 0;\n this.B = B | 0;\n this.C = C | 0;\n this.D = D | 0;\n this.E = E | 0;\n this.F = F | 0;\n this.G = G | 0;\n this.H = H | 0;\n }\n protected process(view: DataView, offset: number): void {\n // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array\n for (let i = 0; i < 16; i++, offset += 4) SHA256_W[i] = view.getUint32(offset, false);\n for (let i = 16; i < 64; i++) {\n const W15 = SHA256_W[i - 15];\n const W2 = SHA256_W[i - 2];\n const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ (W15 >>> 3);\n const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ (W2 >>> 10);\n SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0;\n }\n // Compression function main loop, 64 rounds\n let { A, B, C, D, E, F, G, H } = this;\n for (let i = 0; i < 64; i++) {\n const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);\n const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;\n const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);\n const T2 = (sigma0 + Maj(A, B, C)) | 0;\n H = G;\n G = F;\n F = E;\n E = (D + T1) | 0;\n D = C;\n C = B;\n B = A;\n A = (T1 + T2) | 0;\n }\n // Add the compressed chunk to the current hash value\n A = (A + this.A) | 0;\n B = (B + this.B) | 0;\n C = (C + this.C) | 0;\n D = (D + this.D) | 0;\n E = (E + this.E) | 0;\n F = (F + this.F) | 0;\n G = (G + this.G) | 0;\n H = (H + this.H) | 0;\n this.set(A, B, C, D, E, F, G, H);\n }\n protected roundClean() {\n SHA256_W.fill(0);\n }\n destroy() {\n this.set(0, 0, 0, 0, 0, 0, 0, 0);\n this.buffer.fill(0);\n }\n}\n// Constants from https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\nclass SHA224 extends SHA256 {\n A = 0xc1059ed8 | 0;\n B = 0x367cd507 | 0;\n C = 0x3070dd17 | 0;\n D = 0xf70e5939 | 0;\n E = 0xffc00b31 | 0;\n F = 0x68581511 | 0;\n G = 0x64f98fa7 | 0;\n H = 0xbefa4fa4 | 0;\n constructor() {\n super();\n this.outputLen = 28;\n }\n}\n\n/**\n * SHA2-256 hash function\n * @param message - data that would be hashed\n */\nexport const sha256 = wrapConstructor(() => new SHA256());\nexport const sha224 = wrapConstructor(() => new SHA224());\n","import assert from './_assert.js';\nimport u64 from './_u64.js';\nimport {\n Hash,\n u32,\n Input,\n toBytes,\n wrapConstructor,\n wrapConstructorWithOpts,\n HashXOF,\n} from './utils.js';\n\n// Various per round constants calculations\nconst [SHA3_PI, SHA3_ROTL, _SHA3_IOTA]: [number[], number[], bigint[]] = [[], [], []];\nconst _0n = BigInt(0);\nconst _1n = BigInt(1);\nconst _2n = BigInt(2);\nconst _7n = BigInt(7);\nconst _256n = BigInt(256);\nconst _0x71n = BigInt(0x71);\nfor (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {\n // Pi\n [x, y] = [y, (2 * x + 3 * y) % 5];\n SHA3_PI.push(2 * (5 * y + x));\n // Rotational\n SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64);\n // Iota\n let t = _0n;\n for (let j = 0; j < 7; j++) {\n R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n;\n if (R & _2n) t ^= _1n << ((_1n << BigInt(j)) - _1n);\n }\n _SHA3_IOTA.push(t);\n}\nconst [SHA3_IOTA_H, SHA3_IOTA_L] = u64.split(_SHA3_IOTA, true);\n\n// Left rotation (without 0, 32, 64)\nconst rotlH = (h: number, l: number, s: number) =>\n s > 32 ? u64.rotlBH(h, l, s) : u64.rotlSH(h, l, s);\nconst rotlL = (h: number, l: number, s: number) =>\n s > 32 ? u64.rotlBL(h, l, s) : u64.rotlSL(h, l, s);\n\n// Same as keccakf1600, but allows to skip some rounds\nexport function keccakP(s: Uint32Array, rounds: number = 24) {\n const B = new Uint32Array(5 * 2);\n // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js)\n for (let round = 24 - rounds; round < 24; round++) {\n // Theta θ\n for (let x = 0; x < 10; x++) B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];\n for (let x = 0; x < 10; x += 2) {\n const idx1 = (x + 8) % 10;\n const idx0 = (x + 2) % 10;\n const B0 = B[idx0];\n const B1 = B[idx0 + 1];\n const Th = rotlH(B0, B1, 1) ^ B[idx1];\n const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];\n for (let y = 0; y < 50; y += 10) {\n s[x + y] ^= Th;\n s[x + y + 1] ^= Tl;\n }\n }\n // Rho (ρ) and Pi (π)\n let curH = s[2];\n let curL = s[3];\n for (let t = 0; t < 24; t++) {\n const shift = SHA3_ROTL[t];\n const Th = rotlH(curH, curL, shift);\n const Tl = rotlL(curH, curL, shift);\n const PI = SHA3_PI[t];\n curH = s[PI];\n curL = s[PI + 1];\n s[PI] = Th;\n s[PI + 1] = Tl;\n }\n // Chi (χ)\n for (let y = 0; y < 50; y += 10) {\n for (let x = 0; x < 10; x++) B[x] = s[y + x];\n for (let x = 0; x < 10; x++) s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];\n }\n // Iota (ι)\n s[0] ^= SHA3_IOTA_H[round];\n s[1] ^= SHA3_IOTA_L[round];\n }\n B.fill(0);\n}\n\nexport class Keccak extends Hash implements HashXOF {\n protected state: Uint8Array;\n protected pos = 0;\n protected posOut = 0;\n protected finished = false;\n protected state32: Uint32Array;\n protected destroyed = false;\n // NOTE: we accept arguments in bytes instead of bits here.\n constructor(\n public blockLen: number,\n public suffix: number,\n public outputLen: number,\n protected enableXOF = false,\n protected rounds: number = 24\n ) {\n super();\n // Can be passed from user as dkLen\n assert.number(outputLen);\n // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes\n if (0 >= this.blockLen || this.blockLen >= 200)\n throw new Error('Sha3 supports only keccak-f1600 function');\n this.state = new Uint8Array(200);\n this.state32 = u32(this.state);\n }\n protected keccak() {\n keccakP(this.state32, this.rounds);\n this.posOut = 0;\n this.pos = 0;\n }\n update(data: Input) {\n assert.exists(this);\n const { blockLen, state } = this;\n data = toBytes(data);\n const len = data.length;\n for (let pos = 0; pos < len; ) {\n const take = Math.min(blockLen - this.pos, len - pos);\n for (let i = 0; i < take; i++) state[this.pos++] ^= data[pos++];\n if (this.pos === blockLen) this.keccak();\n }\n return this;\n }\n protected finish() {\n if (this.finished) return;\n this.finished = true;\n const { state, suffix, pos, blockLen } = this;\n // Do the padding\n state[pos] ^= suffix;\n if ((suffix & 0x80) !== 0 && pos === blockLen - 1) this.keccak();\n state[blockLen - 1] ^= 0x80;\n this.keccak();\n }\n protected writeInto(out: Uint8Array): Uint8Array {\n assert.exists(this, false);\n assert.bytes(out);\n this.finish();\n const bufferOut = this.state;\n const { blockLen } = this;\n for (let pos = 0, len = out.length; pos < len; ) {\n if (this.posOut >= blockLen) this.keccak();\n const take = Math.min(blockLen - this.posOut, len - pos);\n out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);\n this.posOut += take;\n pos += take;\n }\n return out;\n }\n xofInto(out: Uint8Array): Uint8Array {\n // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF\n if (!this.enableXOF) throw new Error('XOF is not possible for this instance');\n return this.writeInto(out);\n }\n xof(bytes: number): Uint8Array {\n assert.number(bytes);\n return this.xofInto(new Uint8Array(bytes));\n }\n digestInto(out: Uint8Array) {\n assert.output(out, this);\n if (this.finished) throw new Error('digest() was already called');\n this.writeInto(out);\n this.destroy();\n return out;\n }\n digest() {\n return this.digestInto(new Uint8Array(this.outputLen));\n }\n destroy() {\n this.destroyed = true;\n this.state.fill(0);\n }\n _cloneInto(to?: Keccak): Keccak {\n const { blockLen, suffix, outputLen, rounds, enableXOF } = this;\n to ||= new Keccak(blockLen, suffix, outputLen, enableXOF, rounds);\n to.state32.set(this.state32);\n to.pos = this.pos;\n to.posOut = this.posOut;\n to.finished = this.finished;\n to.rounds = rounds;\n // Suffix can change in cSHAKE\n to.suffix = suffix;\n to.outputLen = outputLen;\n to.enableXOF = enableXOF;\n to.destroyed = this.destroyed;\n return to;\n }\n}\n\nconst gen = (suffix: number, blockLen: number, outputLen: number) =>\n wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));\n\nexport const sha3_224 = gen(0x06, 144, 224 / 8);\n/**\n * SHA3-256 hash function\n * @param message - that would be hashed\n */\nexport const sha3_256 = gen(0x06, 136, 256 / 8);\nexport const sha3_384 = gen(0x06, 104, 384 / 8);\nexport const sha3_512 = gen(0x06, 72, 512 / 8);\nexport const keccak_224 = gen(0x01, 144, 224 / 8);\n/**\n * keccak-256 hash function. Different from SHA3-256.\n * @param message - that would be hashed\n */\nexport const keccak_256 = gen(0x01, 136, 256 / 8);\nexport const keccak_384 = gen(0x01, 104, 384 / 8);\nexport const keccak_512 = gen(0x01, 72, 512 / 8);\n\nexport type ShakeOpts = { dkLen?: number };\n\nconst genShake = (suffix: number, blockLen: number, outputLen: number) =>\n wrapConstructorWithOpts(\n (opts: ShakeOpts = {}) =>\n new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true)\n );\n\nexport const shake128 = genShake(0x1f, 168, 128 / 8);\nexport const shake256 = genShake(0x1f, 136, 256 / 8);\n","import { SHA2 } from './_sha2.js';\nimport u64 from './_u64.js';\nimport { wrapConstructor } from './utils.js';\n\n// Round contants (first 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409):\n// prettier-ignore\nconst [SHA512_Kh, SHA512_Kl] = u64.split([\n '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc',\n '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118',\n '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2',\n '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694',\n '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65',\n '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5',\n '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4',\n '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70',\n '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df',\n '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b',\n '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30',\n '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8',\n '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8',\n '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3',\n '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec',\n '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b',\n '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178',\n '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b',\n '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c',\n '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817'\n].map(n => BigInt(n)));\n\n// Temporary buffer, not used to store anything between runs\nconst SHA512_W_H = new Uint32Array(80);\nconst SHA512_W_L = new Uint32Array(80);\n\nexport class SHA512 extends SHA2 {\n // We cannot use array here since array allows indexing by variable which means optimizer/compiler cannot use registers.\n // Also looks cleaner and easier to verify with spec.\n // Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19):\n // h -- high 32 bits, l -- low 32 bits\n Ah = 0x6a09e667 | 0;\n Al = 0xf3bcc908 | 0;\n Bh = 0xbb67ae85 | 0;\n Bl = 0x84caa73b | 0;\n Ch = 0x3c6ef372 | 0;\n Cl = 0xfe94f82b | 0;\n Dh = 0xa54ff53a | 0;\n Dl = 0x5f1d36f1 | 0;\n Eh = 0x510e527f | 0;\n El = 0xade682d1 | 0;\n Fh = 0x9b05688c | 0;\n Fl = 0x2b3e6c1f | 0;\n Gh = 0x1f83d9ab | 0;\n Gl = 0xfb41bd6b | 0;\n Hh = 0x5be0cd19 | 0;\n Hl = 0x137e2179 | 0;\n\n constructor() {\n super(128, 64, 16, false);\n }\n // prettier-ignore\n protected get(): [\n number, number, number, number, number, number, number, number,\n number, number, number, number, number, number, number, number\n ] {\n const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;\n return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl];\n }\n // prettier-ignore\n protected set(\n Ah: number, Al: number, Bh: number, Bl: number, Ch: number, Cl: number, Dh: number, Dl: number,\n Eh: number, El: number, Fh: number, Fl: number, Gh: number, Gl: number, Hh: number, Hl: number\n ) {\n this.Ah = Ah | 0;\n this.Al = Al | 0;\n this.Bh = Bh | 0;\n this.Bl = Bl | 0;\n this.Ch = Ch | 0;\n this.Cl = Cl | 0;\n this.Dh = Dh | 0;\n this.Dl = Dl | 0;\n this.Eh = Eh | 0;\n this.El = El | 0;\n this.Fh = Fh | 0;\n this.Fl = Fl | 0;\n this.Gh = Gh | 0;\n this.Gl = Gl | 0;\n this.Hh = Hh | 0;\n this.Hl = Hl | 0;\n }\n protected process(view: DataView, offset: number) {\n // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array\n for (let i = 0; i < 16; i++, offset += 4) {\n SHA512_W_H[i] = view.getUint32(offset);\n SHA512_W_L[i] = view.getUint32((offset += 4));\n }\n for (let i = 16; i < 80; i++) {\n // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7)\n const W15h = SHA512_W_H[i - 15] | 0;\n const W15l = SHA512_W_L[i - 15] | 0;\n const s0h = u64.rotrSH(W15h, W15l, 1) ^ u64.rotrSH(W15h, W15l, 8) ^ u64.shrSH(W15h, W15l, 7);\n const s0l = u64.rotrSL(W15h, W15l, 1) ^ u64.rotrSL(W15h, W15l, 8) ^ u64.shrSL(W15h, W15l, 7);\n // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6)\n const W2h = SHA512_W_H[i - 2] | 0;\n const W2l = SHA512_W_L[i - 2] | 0;\n const s1h = u64.rotrSH(W2h, W2l, 19) ^ u64.rotrBH(W2h, W2l, 61) ^ u64.shrSH(W2h, W2l, 6);\n const s1l = u64.rotrSL(W2h, W2l, 19) ^ u64.rotrBL(W2h, W2l, 61) ^ u64.shrSL(W2h, W2l, 6);\n // SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16];\n const SUMl = u64.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);\n const SUMh = u64.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);\n SHA512_W_H[i] = SUMh | 0;\n SHA512_W_L[i] = SUMl | 0;\n }\n let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;\n // Compression function main loop, 80 rounds\n for (let i = 0; i < 80; i++) {\n // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41)\n const sigma1h = u64.rotrSH(Eh, El, 14) ^ u64.rotrSH(Eh, El, 18) ^ u64.rotrBH(Eh, El, 41);\n const sigma1l = u64.rotrSL(Eh, El, 14) ^ u64.rotrSL(Eh, El, 18) ^ u64.rotrBL(Eh, El, 41);\n //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;\n const CHIh = (Eh & Fh) ^ (~Eh & Gh);\n const CHIl = (El & Fl) ^ (~El & Gl);\n // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i]\n // prettier-ignore\n const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);\n const T1h = u64.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);\n const T1l = T1ll | 0;\n // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39)\n const sigma0h = u64.rotrSH(Ah, Al, 28) ^ u64.rotrBH(Ah, Al, 34) ^ u64.rotrBH(Ah, Al, 39);\n const sigma0l = u64.rotrSL(Ah, Al, 28) ^ u64.rotrBL(Ah, Al, 34) ^ u64.rotrBL(Ah, Al, 39);\n const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch);\n const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl);\n Hh = Gh | 0;\n Hl = Gl | 0;\n Gh = Fh | 0;\n Gl = Fl | 0;\n Fh = Eh | 0;\n Fl = El | 0;\n ({ h: Eh, l: El } = u64.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));\n Dh = Ch | 0;\n Dl = Cl | 0;\n Ch = Bh | 0;\n Cl = Bl | 0;\n Bh = Ah | 0;\n Bl = Al | 0;\n const All = u64.add3L(T1l, sigma0l, MAJl);\n Ah = u64.add3H(All, T1h, sigma0h, MAJh);\n Al = All | 0;\n }\n // Add the compressed chunk to the current hash value\n ({ h: Ah, l: Al } = u64.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));\n ({ h: Bh, l: Bl } = u64.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));\n ({ h: Ch, l: Cl } = u64.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));\n ({ h: Dh, l: Dl } = u64.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));\n ({ h: Eh, l: El } = u64.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));\n ({ h: Fh, l: Fl } = u64.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));\n ({ h: Gh, l: Gl } = u64.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));\n ({ h: Hh, l: Hl } = u64.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));\n this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl);\n }\n protected roundClean() {\n SHA512_W_H.fill(0);\n SHA512_W_L.fill(0);\n }\n destroy() {\n this.buffer.fill(0);\n this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);\n }\n}\n\nclass SHA512_224 extends SHA512 {\n // h -- high 32 bits, l -- low 32 bits\n Ah = 0x8c3d37c8 | 0;\n Al = 0x19544da2 | 0;\n Bh = 0x73e19966 | 0;\n Bl = 0x89dcd4d6 | 0;\n Ch = 0x1dfab7ae | 0;\n Cl = 0x32ff9c82 | 0;\n Dh = 0x679dd514 | 0;\n Dl = 0x582f9fcf | 0;\n Eh = 0x0f6d2b69 | 0;\n El = 0x7bd44da8 | 0;\n Fh = 0x77e36f73 | 0;\n Fl = 0x04c48942 | 0;\n Gh = 0x3f9d85a8 | 0;\n Gl = 0x6a1d36c8 | 0;\n Hh = 0x1112e6ad | 0;\n Hl = 0x91d692a1 | 0;\n\n constructor() {\n super();\n this.outputLen = 28;\n }\n}\n\nclass SHA512_256 extends SHA512 {\n // h -- high 32 bits, l -- low 32 bits\n Ah = 0x22312194 | 0;\n Al = 0xfc2bf72c | 0;\n Bh = 0x9f555fa3 | 0;\n Bl = 0xc84c64c2 | 0;\n Ch = 0x2393b86b | 0;\n Cl = 0x6f53b151 | 0;\n Dh = 0x96387719 | 0;\n Dl = 0x5940eabd | 0;\n Eh = 0x96283ee2 | 0;\n El = 0xa88effe3 | 0;\n Fh = 0xbe5e1e25 | 0;\n Fl = 0x53863992 | 0;\n Gh = 0x2b0199fc | 0;\n Gl = 0x2c85b8aa | 0;\n Hh = 0x0eb72ddc | 0;\n Hl = 0x81c52ca2 | 0;\n\n constructor() {\n super();\n this.outputLen = 32;\n }\n}\n\nclass SHA384 extends SHA512 {\n // h -- high 32 bits, l -- low 32 bits\n Ah = 0xcbbb9d5d | 0;\n Al = 0xc1059ed8 | 0;\n Bh = 0x629a292a | 0;\n Bl = 0x367cd507 | 0;\n Ch = 0x9159015a | 0;\n Cl = 0x3070dd17 | 0;\n Dh = 0x152fecd8 | 0;\n Dl = 0xf70e5939 | 0;\n Eh = 0x67332667 | 0;\n El = 0xffc00b31 | 0;\n Fh = 0x8eb44a87 | 0;\n Fl = 0x68581511 | 0;\n Gh = 0xdb0c2e0d | 0;\n Gl = 0x64f98fa7 | 0;\n Hh = 0x47b5481d | 0;\n Hl = 0xbefa4fa4 | 0;\n\n constructor() {\n super();\n this.outputLen = 48;\n }\n}\n\nexport const sha512 = wrapConstructor(() => new SHA512());\nexport const sha512_224 = wrapConstructor(() => new SHA512_224());\nexport const sha512_256 = wrapConstructor(() => new SHA512_256());\nexport const sha384 = wrapConstructor(() => new SHA384());\n","/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n\n// We use `globalThis.crypto`, but node.js versions earlier than v19 don't\n// declare it in global scope. For node.js, package.json#exports field mapping\n// rewrites import from `crypto` to `cryptoNode`, which imports native module.\n// Makes the utils un-importable in browsers without a bundler.\n// Once node.js 18 is deprecated, we can just drop the import.\nimport { crypto } from '@noble/hashes/crypto';\n\n// prettier-ignore\nexport type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array |\n Uint16Array | Int16Array | Uint32Array | Int32Array;\n\n// Cast array to different type\nexport const u8 = (arr: TypedArray) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);\nexport const u32 = (arr: TypedArray) =>\n new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));\n\n// Cast array to view\nexport const createView = (arr: TypedArray) =>\n new DataView(arr.buffer, arr.byteOffset, arr.byteLength);\n\n// The rotate right (circular right shift) operation for uint32\nexport const rotr = (word: number, shift: number) => (word << (32 - shift)) | (word >>> shift);\n\n// big-endian hardware is rare. Just in case someone still decides to run hashes:\n// early-throw an error because we don't support BE yet.\nexport const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44;\nif (!isLE) throw new Error('Non little-endian hardware is not supported');\n\nconst hexes = Array.from({ length: 256 }, (v, i) => i.toString(16).padStart(2, '0'));\n/**\n * @example bytesToHex(Uint8Array.from([0xde, 0xad, 0xbe, 0xef])) // 'deadbeef'\n */\nexport function bytesToHex(uint8a: Uint8Array): string {\n // pre-caching improves the speed 6x\n if (!(uint8a instanceof Uint8Array)) throw new Error('Uint8Array expected');\n let hex = '';\n for (let i = 0; i < uint8a.length; i++) {\n hex += hexes[uint8a[i]];\n }\n return hex;\n}\n\n/**\n * @example hexToBytes('deadbeef') // Uint8Array.from([0xde, 0xad, 0xbe, 0xef])\n */\nexport function hexToBytes(hex: string): Uint8Array {\n if (typeof hex !== 'string') {\n throw new TypeError('hexToBytes: expected string, got ' + typeof hex);\n }\n if (hex.length % 2) throw new Error('hexToBytes: received invalid unpadded hex');\n const array = new Uint8Array(hex.length / 2);\n for (let i = 0; i < array.length; i++) {\n const j = i * 2;\n const hexByte = hex.slice(j, j + 2);\n const byte = Number.parseInt(hexByte, 16);\n if (Number.isNaN(byte) || byte < 0) throw new Error('Invalid byte sequence');\n array[i] = byte;\n }\n return array;\n}\n\n// There is no setImmediate in browser and setTimeout is slow.\n// call of async fn will return Promise, which will be fullfiled only on\n// next scheduler queue processing step and this is exactly what we need.\nexport const nextTick = async () => {};\n\n// Returns control to thread each 'tick' ms to avoid blocking\nexport async function asyncLoop(iters: number, tick: number, cb: (i: number) => void) {\n let ts = Date.now();\n for (let i = 0; i < iters; i++) {\n cb(i);\n // Date.now() is not monotonic, so in case if clock goes backwards we return return control too\n const diff = Date.now() - ts;\n if (diff >= 0 && diff < tick) continue;\n await nextTick();\n ts += diff;\n }\n}\n\n// Global symbols in both browsers and Node.js since v11\n// See https://github.com/microsoft/TypeScript/issues/31535\ndeclare const TextEncoder: any;\ndeclare const TextDecoder: any;\n\nexport function utf8ToBytes(str: string): Uint8Array {\n if (typeof str !== 'string') {\n throw new TypeError(`utf8ToBytes expected string, got ${typeof str}`);\n }\n return new TextEncoder().encode(str);\n}\n\nexport type Input = Uint8Array | string;\nexport function toBytes(data: Input): Uint8Array {\n if (typeof data === 'string') data = utf8ToBytes(data);\n if (!(data instanceof Uint8Array))\n throw new TypeError(`Expected input type is Uint8Array (got ${typeof data})`);\n return data;\n}\n\n/**\n * Concats Uint8Array-s into one; like `Buffer.concat([buf1, buf2])`\n * @example concatBytes(buf1, buf2)\n */\nexport function concatBytes(...arrays: Uint8Array[]): Uint8Array {\n if (!arrays.every((a) => a instanceof Uint8Array)) throw new Error('Uint8Array list expected');\n if (arrays.length === 1) return arrays[0];\n const length = arrays.reduce((a, arr) => a + arr.length, 0);\n const result = new Uint8Array(length);\n for (let i = 0, pad = 0; i < arrays.length; i++) {\n const arr = arrays[i];\n result.set(arr, pad);\n pad += arr.length;\n }\n return result;\n}\n\n// For runtime check if class implements interface\nexport abstract class Hash> {\n abstract blockLen: number; // Bytes per block\n abstract outputLen: number; // Bytes in output\n abstract update(buf: Input): this;\n // Writes digest into buf\n abstract digestInto(buf: Uint8Array): void;\n abstract digest(): Uint8Array;\n /**\n * Resets internal state. Makes Hash instance unusable.\n * Reset is impossible for keyed hashes if key is consumed into state. If digest is not consumed\n * by user, they will need to manually call `destroy()` when zeroing is necessary.\n */\n abstract destroy(): void;\n /**\n * Clones hash instance. Unsafe: doesn't check whether `to` is valid. Can be used as `clone()`\n * when no options are passed.\n * Reasons to use `_cloneInto` instead of clone: 1) performance 2) reuse instance => all internal\n * buffers are overwritten => causes buffer overwrite which is used for digest in some cases.\n * There are no guarantees for clean-up because it's impossible in JS.\n */\n abstract _cloneInto(to?: T): T;\n // Safe version that clones internal state\n clone(): T {\n return this._cloneInto();\n }\n}\n\n/**\n * XOF: streaming API to read digest in chunks.\n * Same as 'squeeze' in keccak/k12 and 'seek' in blake3, but more generic name.\n * When hash used in XOF mode it is up to user to call '.destroy' afterwards, since we cannot\n * destroy state, next call can require more bytes.\n */\nexport type HashXOF> = Hash & {\n xof(bytes: number): Uint8Array; // Read 'bytes' bytes from digest stream\n xofInto(buf: Uint8Array): Uint8Array; // read buf.length bytes from digest stream into buf\n};\n\n// Check if object doens't have custom constructor (like Uint8Array/Array)\nconst isPlainObject = (obj: any) =>\n Object.prototype.toString.call(obj) === '[object Object]' && obj.constructor === Object;\n\ntype EmptyObj = {};\nexport function checkOpts(\n defaults: T1,\n opts?: T2\n): T1 & T2 {\n if (opts !== undefined && (typeof opts !== 'object' || !isPlainObject(opts)))\n throw new TypeError('Options should be object or undefined');\n const merged = Object.assign(defaults, opts);\n return merged as T1 & T2;\n}\n\nexport type CHash = ReturnType;\n\nexport function wrapConstructor>(hashConstructor: () => Hash) {\n const hashC = (message: Input): Uint8Array => hashConstructor().update(toBytes(message)).digest();\n const tmp = hashConstructor();\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = () => hashConstructor();\n return hashC;\n}\n\nexport function wrapConstructorWithOpts, T extends Object>(\n hashCons: (opts?: T) => Hash\n) {\n const hashC = (msg: Input, opts?: T): Uint8Array => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({} as T);\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts: T) => hashCons(opts);\n return hashC;\n}\n\n/**\n * Secure PRNG. Uses `globalThis.crypto` or node.js crypto module.\n */\nexport function randomBytes(bytesLength = 32): Uint8Array {\n if (crypto && typeof crypto.getRandomValues === 'function') {\n return crypto.getRandomValues(new Uint8Array(bytesLength));\n }\n throw new Error('crypto.getRandomValues must be defined');\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package binary provides functions for encoding and decoding numbers in byte arrays.\n */\n\nimport { isSafeInteger } from \"@stablelib/int\";\n\n// TODO(dchest): add asserts for correct value ranges and array offsets.\n\n/**\n * Reads 2 bytes from array starting at offset as big-endian\n * signed 16-bit integer and returns it.\n */\nexport function readInt16BE(array: Uint8Array, offset = 0): number {\n return (((array[offset + 0] << 8) | array[offset + 1]) << 16) >> 16;\n}\n\n/**\n * Reads 2 bytes from array starting at offset as big-endian\n * unsigned 16-bit integer and returns it.\n */\nexport function readUint16BE(array: Uint8Array, offset = 0): number {\n return ((array[offset + 0] << 8) | array[offset + 1]) >>> 0;\n}\n\n/**\n * Reads 2 bytes from array starting at offset as little-endian\n * signed 16-bit integer and returns it.\n */\nexport function readInt16LE(array: Uint8Array, offset = 0): number {\n return (((array[offset + 1] << 8) | array[offset]) << 16) >> 16;\n}\n\n/**\n * Reads 2 bytes from array starting at offset as little-endian\n * unsigned 16-bit integer and returns it.\n */\nexport function readUint16LE(array: Uint8Array, offset = 0): number {\n return ((array[offset + 1] << 8) | array[offset]) >>> 0;\n}\n\n/**\n * Writes 2-byte big-endian representation of 16-bit unsigned\n * value to byte array starting at offset.\n *\n * If byte array is not given, creates a new 2-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint16BE(value: number, out = new Uint8Array(2), offset = 0): Uint8Array {\n out[offset + 0] = value >>> 8;\n out[offset + 1] = value >>> 0;\n return out;\n}\n\nexport const writeInt16BE = writeUint16BE;\n\n/**\n * Writes 2-byte little-endian representation of 16-bit unsigned\n * value to array starting at offset.\n *\n * If byte array is not given, creates a new 2-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint16LE(value: number, out = new Uint8Array(2), offset = 0): Uint8Array {\n out[offset + 0] = value >>> 0;\n out[offset + 1] = value >>> 8;\n return out;\n}\n\nexport const writeInt16LE = writeUint16LE;\n\n/**\n * Reads 4 bytes from array starting at offset as big-endian\n * signed 32-bit integer and returns it.\n */\nexport function readInt32BE(array: Uint8Array, offset = 0): number {\n return (array[offset] << 24) |\n (array[offset + 1] << 16) |\n (array[offset + 2] << 8) |\n array[offset + 3];\n}\n\n/**\n * Reads 4 bytes from array starting at offset as big-endian\n * unsigned 32-bit integer and returns it.\n */\nexport function readUint32BE(array: Uint8Array, offset = 0): number {\n return ((array[offset] << 24) |\n (array[offset + 1] << 16) |\n (array[offset + 2] << 8) |\n array[offset + 3]) >>> 0;\n}\n\n/**\n * Reads 4 bytes from array starting at offset as little-endian\n * signed 32-bit integer and returns it.\n */\nexport function readInt32LE(array: Uint8Array, offset = 0): number {\n return (array[offset + 3] << 24) |\n (array[offset + 2] << 16) |\n (array[offset + 1] << 8) |\n array[offset];\n}\n\n/**\n * Reads 4 bytes from array starting at offset as little-endian\n * unsigned 32-bit integer and returns it.\n */\nexport function readUint32LE(array: Uint8Array, offset = 0): number {\n return ((array[offset + 3] << 24) |\n (array[offset + 2] << 16) |\n (array[offset + 1] << 8) |\n array[offset]) >>> 0;\n}\n\n/**\n * Writes 4-byte big-endian representation of 32-bit unsigned\n * value to byte array starting at offset.\n *\n * If byte array is not given, creates a new 4-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint32BE(value: number, out = new Uint8Array(4), offset = 0): Uint8Array {\n out[offset + 0] = value >>> 24;\n out[offset + 1] = value >>> 16;\n out[offset + 2] = value >>> 8;\n out[offset + 3] = value >>> 0;\n return out;\n}\n\nexport const writeInt32BE = writeUint32BE;\n\n/**\n * Writes 4-byte little-endian representation of 32-bit unsigned\n * value to array starting at offset.\n *\n * If byte array is not given, creates a new 4-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint32LE(value: number, out = new Uint8Array(4), offset = 0): Uint8Array {\n out[offset + 0] = value >>> 0;\n out[offset + 1] = value >>> 8;\n out[offset + 2] = value >>> 16;\n out[offset + 3] = value >>> 24;\n return out;\n}\n\n\nexport const writeInt32LE = writeUint32LE;\n\n/**\n * Reads 8 bytes from array starting at offset as big-endian\n * signed 64-bit integer and returns it.\n *\n * IMPORTANT: due to JavaScript limitation, supports exact\n * numbers in range -9007199254740991 to 9007199254740991.\n * If the number stored in the byte array is outside this range,\n * the result is not exact.\n */\nexport function readInt64BE(array: Uint8Array, offset = 0): number {\n const hi = readInt32BE(array, offset);\n const lo = readInt32BE(array, offset + 4);\n return hi * 0x100000000 + lo - ((lo>>31) * 0x100000000);\n}\n\n/**\n * Reads 8 bytes from array starting at offset as big-endian\n * unsigned 64-bit integer and returns it.\n *\n * IMPORTANT: due to JavaScript limitation, supports values up to 2^53-1.\n */\nexport function readUint64BE(array: Uint8Array, offset = 0): number {\n const hi = readUint32BE(array, offset);\n const lo = readUint32BE(array, offset + 4);\n return hi * 0x100000000 + lo;\n}\n\n/**\n * Reads 8 bytes from array starting at offset as little-endian\n * signed 64-bit integer and returns it.\n *\n * IMPORTANT: due to JavaScript limitation, supports exact\n * numbers in range -9007199254740991 to 9007199254740991.\n * If the number stored in the byte array is outside this range,\n * the result is not exact.\n */\nexport function readInt64LE(array: Uint8Array, offset = 0): number {\n const lo = readInt32LE(array, offset);\n const hi = readInt32LE(array, offset + 4);\n return hi * 0x100000000 + lo - ((lo>>31) * 0x100000000);\n}\n\n\n/**\n * Reads 8 bytes from array starting at offset as little-endian\n * unsigned 64-bit integer and returns it.\n *\n * IMPORTANT: due to JavaScript limitation, supports values up to 2^53-1.\n */\nexport function readUint64LE(array: Uint8Array, offset = 0): number {\n const lo = readUint32LE(array, offset);\n const hi = readUint32LE(array, offset + 4);\n return hi * 0x100000000 + lo;\n}\n\n/**\n * Writes 8-byte big-endian representation of 64-bit unsigned\n * value to byte array starting at offset.\n *\n * Due to JavaScript limitation, supports values up to 2^53-1.\n *\n * If byte array is not given, creates a new 8-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint64BE(value: number, out = new Uint8Array(8), offset = 0): Uint8Array {\n writeUint32BE(value / 0x100000000 >>> 0, out, offset);\n writeUint32BE(value >>> 0, out, offset + 4);\n return out;\n}\n\nexport const writeInt64BE = writeUint64BE;\n\n/**\n * Writes 8-byte little-endian representation of 64-bit unsigned\n * value to byte array starting at offset.\n *\n * Due to JavaScript limitation, supports values up to 2^53-1.\n *\n * If byte array is not given, creates a new 8-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint64LE(value: number, out = new Uint8Array(8), offset = 0): Uint8Array {\n writeUint32LE(value >>> 0, out, offset);\n writeUint32LE(value / 0x100000000 >>> 0, out, offset + 4);\n return out;\n}\n\nexport const writeInt64LE = writeUint64LE;\n\n/**\n * Reads bytes from array starting at offset as big-endian\n * unsigned bitLen-bit integer and returns it.\n *\n * Supports bit lengths divisible by 8, up to 48.\n */\nexport function readUintBE(bitLength: number, array: Uint8Array, offset = 0): number {\n // TODO(dchest): implement support for bitLengths non-divisible by 8\n if (bitLength % 8 !== 0) {\n throw new Error(\"readUintBE supports only bitLengths divisible by 8\");\n }\n if (bitLength / 8 > array.length - offset) {\n throw new Error(\"readUintBE: array is too short for the given bitLength\");\n }\n let result = 0;\n let mul = 1;\n for (let i = bitLength / 8 + offset - 1; i >= offset; i--) {\n result += array[i] * mul;\n mul *= 256;\n }\n return result;\n}\n\n/**\n * Reads bytes from array starting at offset as little-endian\n * unsigned bitLen-bit integer and returns it.\n *\n * Supports bit lengths divisible by 8, up to 48.\n */\nexport function readUintLE(bitLength: number, array: Uint8Array, offset = 0): number {\n // TODO(dchest): implement support for bitLengths non-divisible by 8\n if (bitLength % 8 !== 0) {\n throw new Error(\"readUintLE supports only bitLengths divisible by 8\");\n }\n if (bitLength / 8 > array.length - offset) {\n throw new Error(\"readUintLE: array is too short for the given bitLength\");\n }\n let result = 0;\n let mul = 1;\n for (let i = offset; i < offset + bitLength / 8; i++) {\n result += array[i] * mul;\n mul *= 256;\n }\n return result;\n}\n\n/**\n * Writes a big-endian representation of bitLen-bit unsigned\n * value to array starting at offset.\n *\n * Supports bit lengths divisible by 8, up to 48.\n *\n * If byte array is not given, creates a new one.\n *\n * Returns the output byte array.\n */\nexport function writeUintBE(bitLength: number, value: number,\n out = new Uint8Array(bitLength / 8), offset = 0): Uint8Array {\n // TODO(dchest): implement support for bitLengths non-divisible by 8\n if (bitLength % 8 !== 0) {\n throw new Error(\"writeUintBE supports only bitLengths divisible by 8\");\n }\n if (!isSafeInteger(value)) {\n throw new Error(\"writeUintBE value must be an integer\");\n }\n let div = 1;\n for (let i = bitLength / 8 + offset - 1; i >= offset; i--) {\n out[i] = (value / div) & 0xff;\n div *= 256;\n }\n return out;\n}\n\n/**\n * Writes a little-endian representation of bitLen-bit unsigned\n * value to array starting at offset.\n *\n * Supports bit lengths divisible by 8, up to 48.\n *\n * If byte array is not given, creates a new one.\n *\n * Returns the output byte array.\n */\nexport function writeUintLE(bitLength: number, value: number,\n out = new Uint8Array(bitLength / 8), offset = 0): Uint8Array {\n // TODO(dchest): implement support for bitLengths non-divisible by 8\n if (bitLength % 8 !== 0) {\n throw new Error(\"writeUintLE supports only bitLengths divisible by 8\");\n }\n if (!isSafeInteger(value)) {\n throw new Error(\"writeUintLE value must be an integer\");\n }\n let div = 1;\n for (let i = offset; i < offset + bitLength / 8; i++) {\n out[i] = (value / div) & 0xff;\n div *= 256;\n }\n return out;\n}\n\n/**\n * Reads 4 bytes from array starting at offset as big-endian\n * 32-bit floating-point number and returns it.\n */\nexport function readFloat32BE(array: Uint8Array, offset = 0): number {\n const view = new DataView(array.buffer, array.byteOffset, array.byteLength);\n return view.getFloat32(offset);\n}\n\n/**\n * Reads 4 bytes from array starting at offset as little-endian\n * 32-bit floating-point number and returns it.\n */\nexport function readFloat32LE(array: Uint8Array, offset = 0): number {\n const view = new DataView(array.buffer, array.byteOffset, array.byteLength);\n return view.getFloat32(offset, true);\n}\n\n/**\n * Reads 8 bytes from array starting at offset as big-endian\n * 64-bit floating-point number (\"double\") and returns it.\n */\nexport function readFloat64BE(array: Uint8Array, offset = 0): number {\n const view = new DataView(array.buffer, array.byteOffset, array.byteLength);\n return view.getFloat64(offset);\n}\n\n/**\n * Reads 8 bytes from array starting at offset as little-endian\n * 64-bit floating-point number (\"double\") and returns it.\n */\nexport function readFloat64LE(array: Uint8Array, offset = 0): number {\n const view = new DataView(array.buffer, array.byteOffset, array.byteLength);\n return view.getFloat64(offset, true);\n}\n\n/**\n * Writes 4-byte big-endian floating-point representation of value\n * to byte array starting at offset.\n *\n * If byte array is not given, creates a new 4-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeFloat32BE(value: number, out = new Uint8Array(4), offset = 0): Uint8Array {\n const view = new DataView(out.buffer, out.byteOffset, out.byteLength);\n view.setFloat32(offset, value);\n return out;\n}\n\n/**\n * Writes 4-byte little-endian floating-point representation of value\n * to byte array starting at offset.\n *\n * If byte array is not given, creates a new 4-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeFloat32LE(value: number, out = new Uint8Array(4), offset = 0): Uint8Array {\n const view = new DataView(out.buffer, out.byteOffset, out.byteLength);\n view.setFloat32(offset, value, true);\n return out;\n}\n\n/**\n * Writes 8-byte big-endian floating-point representation of value\n * to byte array starting at offset.\n *\n * If byte array is not given, creates a new 8-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeFloat64BE(value: number, out = new Uint8Array(8), offset = 0): Uint8Array {\n const view = new DataView(out.buffer, out.byteOffset, out.byteLength);\n view.setFloat64(offset, value);\n return out;\n}\n\n/**\n * Writes 8-byte little-endian floating-point representation of value\n * to byte array starting at offset.\n *\n * If byte array is not given, creates a new 8-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeFloat64LE(value: number, out = new Uint8Array(8), offset = 0): Uint8Array {\n const view = new DataView(out.buffer, out.byteOffset, out.byteLength);\n view.setFloat64(offset, value, true);\n return out;\n}\n","// Copyright (C) 2017 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package blake2b implements BLAKE2b cryptographic hash function.\n */\n\nimport { SerializableHash } from \"@stablelib/hash\";\nimport { readUint32LE, writeUint32LE } from \"@stablelib/binary\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const BLOCK_SIZE = 128;\nexport const DIGEST_LENGTH = 64;\nexport const KEY_LENGTH = 64;\nexport const PERSONALIZATION_LENGTH = 16;\nexport const SALT_LENGTH = 16;\n\nexport const MAX_LEAF_SIZE = Math.pow(2, 32) - 1;\nexport const MAX_FANOUT = 255;\nexport const MAX_MAX_DEPTH = 255; // not a typo\n\n/**\n * Configuration for hash function.\n */\nexport type Config = {\n key?: Uint8Array;\n salt?: Uint8Array;\n personalization?: Uint8Array;\n tree?: Tree;\n};\n\n/**\n * Tree hashing parameters.\n */\nexport type Tree = {\n fanout: number; // fanout\n maxDepth: number; // maximal depth\n leafSize: number; // leaf maximal byte length (0 for unlimited)\n nodeOffsetHighBits: number; // high bits of node offset\n nodeOffsetLowBits: number; // low bits of node offset (0 for first, leftmost or leaf)\n nodeDepth: number; // node depth (0 for leaves)\n innerDigestLength: number; // inner digest length\n lastNode: boolean; // indicates processing of the last node of layer\n};\n\nconst IV = new Uint32Array([\n // low bits // high bits\n 0xf3bcc908, 0x6a09e667,\n 0x84caa73b, 0xbb67ae85,\n 0xfe94f82b, 0x3c6ef372,\n 0x5f1d36f1, 0xa54ff53a,\n 0xade682d1, 0x510e527f,\n 0x2b3e6c1f, 0x9b05688c,\n 0xfb41bd6b, 0x1f83d9ab,\n 0x137e2179, 0x5be0cd19,\n]);\n\n// Note: sigma values are doubled since we store\n// 64-bit ints as two 32-bit ints in arrays.\nconst SIGMA = [\n [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30],\n [28, 20, 8, 16, 18, 30, 26, 12, 2, 24, 0, 4, 22, 14, 10, 6],\n [22, 16, 24, 0, 10, 4, 30, 26, 20, 28, 6, 12, 14, 2, 18, 8],\n [14, 18, 6, 2, 26, 24, 22, 28, 4, 12, 10, 20, 8, 0, 30, 16],\n [18, 0, 10, 14, 4, 8, 20, 30, 28, 2, 22, 24, 12, 16, 6, 26],\n [4, 24, 12, 20, 0, 22, 16, 6, 8, 26, 14, 10, 30, 28, 2, 18],\n [24, 10, 2, 30, 28, 26, 8, 20, 0, 14, 12, 6, 18, 4, 16, 22],\n [26, 22, 14, 28, 24, 2, 6, 18, 10, 0, 30, 8, 16, 12, 4, 20],\n [12, 30, 28, 18, 22, 6, 0, 16, 24, 4, 26, 14, 2, 8, 20, 10],\n [20, 4, 16, 8, 14, 12, 2, 10, 30, 22, 18, 28, 6, 24, 26, 0],\n [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30],\n [28, 20, 8, 16, 18, 30, 26, 12, 2, 24, 0, 4, 22, 14, 10, 6]\n];\n\n/**\n * BLAKE2b hash function.\n */\nexport class BLAKE2b implements SerializableHash {\n readonly blockSize = BLOCK_SIZE;\n\n // Note: Int32Arrays for state and message are used for performance reasons.\n private _state = new Int32Array(IV); // hash state, initialized with IV\n private _buffer = new Uint8Array(BLOCK_SIZE); // buffer for data\n private _bufferLength = 0; // number of bytes in buffer\n private _ctr = new Uint32Array(4);\n private _flag = new Uint32Array(4);\n private _lastNode = false;\n private _finished = false;\n\n private _vtmp = new Uint32Array(32);\n private _mtmp = new Uint32Array(32);\n\n private _paddedKey: Uint8Array | undefined; // copy of zero-padded key if present\n private _initialState: Uint32Array; // initial state after initialization\n\n constructor(public digestLength = 64, config?: Config) {\n // Validate digest length.\n if (digestLength < 1 || digestLength > DIGEST_LENGTH) {\n throw new Error(\"blake2b: wrong digest length\");\n }\n\n // Validate config, if present.\n if (config) {\n this.validateConfig(config);\n }\n\n // Get key length from config.\n let keyLength = 0;\n if (config && config.key) {\n keyLength = config.key.length;\n }\n\n // Get tree fanout and maxDepth from config.\n let fanout = 1;\n let maxDepth = 1;\n if (config && config.tree) {\n fanout = config.tree.fanout;\n maxDepth = config.tree.maxDepth;\n }\n\n // Xor common parameters into state.\n this._state[0] ^= digestLength | (keyLength << 8) | (fanout << 16) | (maxDepth << 24);\n\n // Xor tree parameters into state.\n if (config && config.tree) {\n this._state[1] ^= config.tree.leafSize;\n\n this._state[2] ^= config.tree.nodeOffsetLowBits;\n this._state[3] ^= config.tree.nodeOffsetHighBits;\n this._state[4] ^= config.tree.nodeDepth | (config.tree.innerDigestLength << 8);\n\n this._lastNode = config.tree.lastNode;\n }\n\n // Xor salt into state.\n if (config && config.salt) {\n this._state[8] ^= readUint32LE(config.salt, 0);\n this._state[9] ^= readUint32LE(config.salt, 4);\n this._state[10] ^= readUint32LE(config.salt, 8);\n this._state[11] ^= readUint32LE(config.salt, 12);\n }\n\n // Xor personalization into state.\n if (config && config.personalization) {\n this._state[12] ^= readUint32LE(config.personalization, 0);\n this._state[13] ^= readUint32LE(config.personalization, 4);\n this._state[14] ^= readUint32LE(config.personalization, 8);\n this._state[15] ^= readUint32LE(config.personalization, 12);\n }\n\n // Save a copy of initialized state for reset.\n this._initialState = new Uint32Array(this._state);\n\n // Process key.\n if (config && config.key && keyLength > 0) {\n this._paddedKey = new Uint8Array(BLOCK_SIZE);\n this._paddedKey.set(config.key);\n\n // Put padded key into buffer.\n this._buffer.set(this._paddedKey);\n this._bufferLength = BLOCK_SIZE;\n }\n }\n\n reset(): this {\n // Restore initial state.\n this._state.set(this._initialState);\n\n if (this._paddedKey) {\n // Put padded key into buffer.\n this._buffer.set(this._paddedKey);\n this._bufferLength = BLOCK_SIZE;\n } else {\n this._bufferLength = 0;\n }\n\n // Clear counters and flags.\n wipe(this._ctr);\n wipe(this._flag);\n this._finished = false;\n\n return this;\n }\n\n validateConfig(config: Config) {\n if (config.key && config.key.length > KEY_LENGTH) {\n throw new Error(\"blake2b: wrong key length\");\n }\n if (config.salt && config.salt.length !== SALT_LENGTH) {\n throw new Error(\"blake2b: wrong salt length\");\n }\n if (config.personalization &&\n config.personalization.length !== PERSONALIZATION_LENGTH) {\n throw new Error(\"blake2b: wrong personalization length\");\n }\n if (config.tree) {\n if (config.tree.fanout < 0 || config.tree.fanout > MAX_FANOUT) {\n throw new Error(\"blake2b: wrong tree fanout\");\n }\n if (config.tree.maxDepth < 0 || config.tree.maxDepth > MAX_MAX_DEPTH) {\n throw new Error(\"blake2b: wrong tree depth\");\n }\n if (config.tree.leafSize < 0 || config.tree.leafSize > MAX_LEAF_SIZE) {\n throw new Error(\"blake2b: wrong leaf size\");\n }\n if (config.tree.innerDigestLength < 0 ||\n config.tree.innerDigestLength > DIGEST_LENGTH) {\n throw new Error(\"blake2b: wrong tree inner digest length\");\n }\n }\n }\n\n update(data: Uint8Array, dataLength = data.length): this {\n if (this._finished) {\n throw new Error(\"blake2b: can't update because hash was finished.\");\n }\n\n const left = BLOCK_SIZE - this._bufferLength;\n let dataPos = 0;\n\n if (dataLength === 0) {\n return this;\n }\n\n // Finish buffer.\n if (dataLength > left) {\n for (let i = 0; i < left; i++) {\n this._buffer[this._bufferLength + i] = data[dataPos + i];\n }\n this._processBlock(BLOCK_SIZE);\n dataPos += left;\n dataLength -= left;\n this._bufferLength = 0;\n }\n\n // Process data blocks.\n while (dataLength > BLOCK_SIZE) {\n for (let i = 0; i < BLOCK_SIZE; i++) {\n this._buffer[i] = data[dataPos + i];\n }\n this._processBlock(BLOCK_SIZE);\n dataPos += BLOCK_SIZE;\n dataLength -= BLOCK_SIZE;\n this._bufferLength = 0;\n }\n\n // Copy leftovers to buffer.\n for (let i = 0; i < dataLength; i++) {\n this._buffer[this._bufferLength + i] = data[dataPos + i];\n }\n this._bufferLength += dataLength;\n\n return this;\n }\n\n finish(out: Uint8Array): this {\n if (!this._finished) {\n for (let i = this._bufferLength; i < BLOCK_SIZE; i++) {\n this._buffer[i] = 0;\n }\n\n // Set last block flag.\n this._flag[0] = 0xffffffff;\n this._flag[1] = 0xffffffff;\n\n // Set last node flag if last node in tree.\n if (this._lastNode) {\n this._flag[2] = 0xffffffff;\n this._flag[3] = 0xffffffff;\n }\n\n this._processBlock(this._bufferLength);\n this._finished = true;\n }\n // Reuse buffer as temporary space for digest.\n const tmp = this._buffer.subarray(0, 64);\n for (let i = 0; i < 16; i++) {\n writeUint32LE(this._state[i], tmp, i * 4);\n }\n out.set(tmp.subarray(0, out.length));\n return this;\n }\n\n digest(): Uint8Array {\n const out = new Uint8Array(this.digestLength);\n this.finish(out);\n return out;\n }\n\n clean() {\n wipe(this._vtmp);\n wipe(this._mtmp);\n wipe(this._state);\n wipe(this._buffer);\n wipe(this._initialState);\n if (this._paddedKey) {\n wipe(this._paddedKey);\n }\n this._bufferLength = 0;\n wipe(this._ctr);\n wipe(this._flag);\n this._lastNode = false;\n this._finished = false;\n }\n\n saveState(): SavedState {\n if (this._finished) {\n throw new Error(\"blake2b: cannot save finished state\");\n }\n return {\n state: new Uint32Array(this._state),\n buffer: new Uint8Array(this._buffer),\n bufferLength: this._bufferLength,\n ctr: new Uint32Array(this._ctr),\n flag: new Uint32Array(this._flag),\n lastNode: this._lastNode,\n paddedKey: this._paddedKey ? new Uint8Array(this._paddedKey) : undefined,\n initialState: new Uint32Array(this._initialState)\n };\n }\n\n restoreState(savedState: SavedState): this {\n this._state.set(savedState.state);\n this._buffer.set(savedState.buffer);\n this._bufferLength = savedState.bufferLength;\n this._ctr.set(savedState.ctr);\n this._flag.set(savedState.flag);\n this._lastNode = savedState.lastNode;\n if (this._paddedKey) {\n wipe(this._paddedKey);\n }\n this._paddedKey = savedState.paddedKey ? new Uint8Array(savedState.paddedKey) : undefined;\n this._initialState.set(savedState.initialState);\n return this;\n }\n\n cleanSavedState(savedState: SavedState): void {\n wipe(savedState.state);\n wipe(savedState.buffer);\n wipe(savedState.initialState);\n if (savedState.paddedKey) {\n wipe(savedState.paddedKey);\n }\n savedState.bufferLength = 0;\n wipe(savedState.ctr);\n wipe(savedState.flag);\n savedState.lastNode = false;\n }\n\n private _G(v: Uint32Array,\n al: number, bl: number, cl: number, dl: number,\n ah: number, bh: number, ch: number, dh: number,\n ml0: number, mh0: number,\n ml1: number, mh1: number) {\n let vla = v[al],\n vha = v[ah],\n vlb = v[bl],\n vhb = v[bh],\n vlc = v[cl],\n vhc = v[ch],\n vld = v[dl],\n vhd = v[dh];\n\n // 64-bit: va += vb\n let w = vla & 0xffff,\n x = vla >>> 16,\n y = vha & 0xffff,\n z = vha >>> 16;\n\n w += vlb & 0xffff; x += vlb >>> 16;\n y += vhb & 0xffff; z += vhb >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vha = (y & 0xffff) | (z << 16);\n vla = (w & 0xffff) | (x << 16);\n\n // 64-bit: va += m[sigma[r][2 * i + 0]]\n w = vla & 0xffff; x = vla >>> 16;\n y = vha & 0xffff; z = vha >>> 16;\n\n w += ml0 & 0xffff; x += ml0 >>> 16;\n y += mh0 & 0xffff; z += mh0 >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vha = (y & 0xffff) | (z << 16);\n vla = (w & 0xffff) | (x << 16);\n\n // 64-bit: vd ^= va\n vld ^= vla; vhd ^= vha;\n\n // 64-bit: rot(vd, 32)\n w = vhd; vhd = vld; vld = w;\n\n // 64-bit: vc += vd\n w = vlc & 0xffff; x = vlc >>> 16;\n y = vhc & 0xffff; z = vhc >>> 16;\n\n w += vld & 0xffff; x += vld >>> 16;\n y += vhd & 0xffff; z += vhd >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vhc = (y & 0xffff) | (z << 16);\n vlc = (w & 0xffff) | (x << 16);\n\n // 64-bit: vb ^= vc\n vlb ^= vlc; vhb ^= vhc;\n\n // 64-bit: rot(vb, 24)\n w = vlb << 8 | vhb >>> 24;\n vlb = vhb << 8 | vlb >>> 24;\n vhb = w;\n\n // 64-bit: va += vb\n w = vla & 0xffff; x = vla >>> 16;\n y = vha & 0xffff; z = vha >>> 16;\n\n w += vlb & 0xffff; x += vlb >>> 16;\n y += vhb & 0xffff; z += vhb >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vha = (y & 0xffff) | (z << 16);\n vla = (w & 0xffff) | (x << 16);\n\n // 64-bit: va += m[sigma[r][2 * i + 1]\n w = vla & 0xffff; x = vla >>> 16;\n y = vha & 0xffff; z = vha >>> 16;\n\n w += ml1 & 0xffff; x += ml1 >>> 16;\n y += mh1 & 0xffff; z += mh1 >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vha = (y & 0xffff) | (z << 16);\n vla = (w & 0xffff) | (x << 16);\n\n // 64-bit: vd ^= va\n vld ^= vla; vhd ^= vha;\n\n // 64-bit: rot(vd, 16)\n w = vld << 16 | vhd >>> 16;\n vld = vhd << 16 | vld >>> 16;\n vhd = w;\n\n // 64-bit: vc += vd\n w = vlc & 0xffff; x = vlc >>> 16;\n y = vhc & 0xffff; z = vhc >>> 16;\n\n w += vld & 0xffff; x += vld >>> 16;\n y += vhd & 0xffff; z += vhd >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vhc = (y & 0xffff) | (z << 16);\n vlc = (w & 0xffff) | (x << 16);\n\n // 64-bit: vb ^= vc\n vlb ^= vlc; vhb ^= vhc;\n\n // 64-bit: rot(vb, 63)\n w = vhb << 1 | vlb >>> 31;\n vlb = vlb << 1 | vhb >>> 31;\n vhb = w;\n\n v[al] = vla;\n v[ah] = vha;\n v[bl] = vlb;\n v[bh] = vhb;\n v[cl] = vlc;\n v[ch] = vhc;\n v[dl] = vld;\n v[dh] = vhd;\n }\n\n private _incrementCounter(n: number) {\n for (let i = 0; i < 3; i++) {\n let a = this._ctr[i] + n;\n this._ctr[i] = a >>> 0;\n if (this._ctr[i] === a) {\n return;\n }\n n = 1;\n }\n }\n\n private _processBlock(length: number) {\n this._incrementCounter(length);\n let v = this._vtmp;\n v.set(this._state);\n v.set(IV, 16);\n v[12 * 2 + 0] ^= this._ctr[0];\n v[12 * 2 + 1] ^= this._ctr[1];\n v[13 * 2 + 0] ^= this._ctr[2];\n v[13 * 2 + 1] ^= this._ctr[3];\n v[14 * 2 + 0] ^= this._flag[0];\n v[14 * 2 + 1] ^= this._flag[1];\n v[15 * 2 + 0] ^= this._flag[2];\n v[15 * 2 + 1] ^= this._flag[3];\n\n let m = this._mtmp;\n for (let i = 0; i < 32; i++) {\n m[i] = readUint32LE(this._buffer, i * 4);\n }\n\n for (let r = 0; r < 12; r++) {\n this._G(v,\n 0, 8, 16, 24,\n 1, 9, 17, 25,\n m[SIGMA[r][0]], m[SIGMA[r][0] + 1],\n m[SIGMA[r][1]], m[SIGMA[r][1] + 1]\n );\n\n this._G(v,\n 2, 10, 18, 26,\n 3, 11, 19, 27,\n m[SIGMA[r][2]], m[SIGMA[r][2] + 1],\n m[SIGMA[r][3]], m[SIGMA[r][3] + 1]\n );\n\n this._G(v,\n 4, 12, 20, 28,\n 5, 13, 21, 29,\n m[SIGMA[r][4]], m[SIGMA[r][4] + 1],\n m[SIGMA[r][5]], m[SIGMA[r][5] + 1]\n );\n\n this._G(v,\n 6, 14, 22, 30,\n 7, 15, 23, 31,\n m[SIGMA[r][6]], m[SIGMA[r][6] + 1],\n m[SIGMA[r][7]], m[SIGMA[r][7] + 1]\n );\n\n this._G(v,\n 0, 10, 20, 30,\n 1, 11, 21, 31,\n m[SIGMA[r][8]], m[SIGMA[r][8] + 1],\n m[SIGMA[r][9]], m[SIGMA[r][9] + 1]\n );\n\n this._G(v,\n 2, 12, 22, 24,\n 3, 13, 23, 25,\n m[SIGMA[r][10]], m[SIGMA[r][10] + 1],\n m[SIGMA[r][11]], m[SIGMA[r][11] + 1]\n );\n\n this._G(v,\n 4, 14, 16, 26,\n 5, 15, 17, 27,\n m[SIGMA[r][12]], m[SIGMA[r][12] + 1],\n m[SIGMA[r][13]], m[SIGMA[r][13] + 1]\n );\n\n this._G(v,\n 6, 8, 18, 28,\n 7, 9, 19, 29,\n m[SIGMA[r][14]], m[SIGMA[r][14] + 1],\n m[SIGMA[r][15]], m[SIGMA[r][15] + 1]\n );\n }\n\n for (let i = 0; i < 16; i++) {\n this._state[i] ^= v[i] ^ v[i + 16];\n }\n }\n}\n\nexport type SavedState = {\n state: Uint32Array;\n buffer: Uint8Array;\n bufferLength: number;\n ctr: Uint32Array;\n flag: Uint32Array;\n lastNode: boolean;\n paddedKey: Uint8Array | undefined;\n initialState: Uint32Array;\n};\n\nexport function hash(data: Uint8Array, digestLength = DIGEST_LENGTH, config?: Config): Uint8Array {\n const h = new BLAKE2b(digestLength, config);\n h.update(data);\n const digest = h.digest();\n h.clean();\n return digest;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package bytes provides functions for dealing with byte arrays.\n */\n\n/**\n * Concatenates byte arrays.\n */\nexport function concat(...arrays: Uint8Array[]): Uint8Array;\nexport function concat(): Uint8Array {\n // Calculate sum of lengths of all arrays.\n let totalLength = 0;\n for (let i = 0; i < arguments.length; i++) {\n totalLength += arguments[i].length;\n }\n\n // Allocate new array of calculated length.\n const result = new Uint8Array(totalLength);\n\n // Copy all arrays into result.\n let offset = 0;\n for (let i = 0; i < arguments.length; i++) {\n const arg = arguments[i];\n result.set(arg, offset);\n offset += arg.length;\n }\n\n return result;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package constant-time provides functions for performing algorithmically constant-time operations.\n */\n\n/**\n * NOTE! Due to the inability to guarantee real constant time evaluation of\n * anything in JavaScript VM, this is module is the best effort.\n */\n\n/**\n * Returns resultIfOne if subject is 1, or resultIfZero if subject is 0.\n *\n * Supports only 32-bit integers, so resultIfOne or resultIfZero are not\n * integers, they'll be converted to them with bitwise operations.\n */\nexport function select(subject: number, resultIfOne: number, resultIfZero: number): number {\n return (~(subject - 1) & resultIfOne) | ((subject - 1) & resultIfZero);\n}\n\n/**\n * Returns 1 if a <= b, or 0 if not.\n * Arguments must be positive 32-bit integers less than or equal to 2^31 - 1.\n */\nexport function lessOrEqual(a: number, b: number): number {\n return (((a | 0) - (b | 0) - 1) >>> 31) & 1;\n}\n\n/**\n * Returns 1 if a and b are of equal length and their contents\n * are equal, or 0 otherwise.\n *\n * Note that unlike in equal(), zero-length inputs are considered\n * the same, so this function will return 1.\n */\nexport function compare(a: Uint8Array, b: Uint8Array): number {\n if (a.length !== b.length) {\n return 0;\n }\n let result = 0;\n for (let i = 0; i < a.length; i++) {\n result |= a[i] ^ b[i];\n }\n return (1 & ((result - 1) >>> 8));\n}\n\n/**\n * Returns true if a and b are of equal non-zero length,\n * and their contents are equal, or false otherwise.\n *\n * Note that unlike in compare() zero-length inputs are considered\n * _not_ equal, so this function will return false.\n */\nexport function equal(a: Uint8Array, b: Uint8Array): boolean {\n if (a.length === 0 || b.length === 0) {\n return false;\n }\n return compare(a, b) !== 0;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package ed25519 implements Ed25519 public-key signature algorithm.\n */\n\nimport { randomBytes, RandomSource } from \"@stablelib/random\";\nimport { hash, SHA512 } from \"@stablelib/sha512\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const SIGNATURE_LENGTH = 64;\nexport const PUBLIC_KEY_LENGTH = 32;\nexport const SECRET_KEY_LENGTH = 64;\nexport const SEED_LENGTH = 32;\n\n// TODO(dchest): some functions are copies of ../kex/x25519.\n// Find a way to combine them without opening up to public.\n\n// Ported from TweetNaCl.js, which was ported from TweetNaCl\n// by Dmitry Chestnykh and Devi Mandiri.\n// Public domain.\n// https://tweetnacl.js.org\n\n// TweetNaCl contributors:\n// Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen,\n// Tanja Lange, Peter Schwabe, Sjaak Smetsers.\n// Public domain.\n// https://tweetnacl.cr.yp.to/\n\ntype GF = Float64Array;\n\n// Returns new zero-filled 16-element GF (Float64Array).\n// If passed an array of numbers, prefills the returned\n// array with them.\n//\n// We use Float64Array, because we need 48-bit numbers\n// for this implementation.\nfunction gf(init?: number[]): GF {\n const r = new Float64Array(16);\n if (init) {\n for (let i = 0; i < init.length; i++) {\n r[i] = init[i];\n }\n }\n return r;\n}\n\n// Base point.\nconst _9 = new Uint8Array(32); _9[0] = 9;\n\nconst gf0 = gf();\n\nconst gf1 = gf([1]);\n\nconst D = gf([\n 0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070,\n 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203\n]);\n\nconst D2 = gf([\n 0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0,\n 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406\n]);\n\nconst X = gf([\n 0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c,\n 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169\n]);\n\nconst Y = gf([\n 0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666,\n 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666\n]);\n\nconst I = gf([\n 0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43,\n 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83\n]);\n\nfunction set25519(r: GF, a: GF) {\n for (let i = 0; i < 16; i++) {\n r[i] = a[i] | 0;\n }\n}\n\nfunction car25519(o: GF) {\n let c = 1;\n for (let i = 0; i < 16; i++) {\n let v = o[i] + c + 65535;\n c = Math.floor(v / 65536);\n o[i] = v - c * 65536;\n }\n o[0] += c - 1 + 37 * (c - 1);\n}\n\nfunction sel25519(p: GF, q: GF, b: number) {\n const c = ~(b - 1);\n for (let i = 0; i < 16; i++) {\n const t = c & (p[i] ^ q[i]);\n p[i] ^= t;\n q[i] ^= t;\n }\n}\n\nfunction pack25519(o: Uint8Array, n: GF) {\n const m = gf();\n const t = gf();\n for (let i = 0; i < 16; i++) {\n t[i] = n[i];\n }\n car25519(t);\n car25519(t);\n car25519(t);\n for (let j = 0; j < 2; j++) {\n m[0] = t[0] - 0xffed;\n for (let i = 1; i < 15; i++) {\n m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1);\n m[i - 1] &= 0xffff;\n }\n m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1);\n const b = (m[15] >> 16) & 1;\n m[14] &= 0xffff;\n sel25519(t, m, 1 - b);\n }\n for (let i = 0; i < 16; i++) {\n o[2 * i] = t[i] & 0xff;\n o[2 * i + 1] = t[i] >> 8;\n }\n}\n\nfunction verify32(x: Uint8Array, y: Uint8Array) {\n let d = 0;\n for (let i = 0; i < 32; i++) {\n d |= x[i] ^ y[i];\n }\n return (1 & ((d - 1) >>> 8)) - 1;\n}\n\n\nfunction neq25519(a: GF, b: GF) {\n const c = new Uint8Array(32);\n const d = new Uint8Array(32);\n pack25519(c, a);\n pack25519(d, b);\n return verify32(c, d);\n}\n\nfunction par25519(a: GF) {\n const d = new Uint8Array(32);\n pack25519(d, a);\n return d[0] & 1;\n}\n\nfunction unpack25519(o: GF, n: Uint8Array) {\n for (let i = 0; i < 16; i++) {\n o[i] = n[2 * i] + (n[2 * i + 1] << 8);\n }\n o[15] &= 0x7fff;\n}\n\nfunction add(o: GF, a: GF, b: GF) {\n for (let i = 0; i < 16; i++) {\n o[i] = a[i] + b[i];\n }\n}\n\nfunction sub(o: GF, a: GF, b: GF) {\n for (let i = 0; i < 16; i++) {\n o[i] = a[i] - b[i];\n }\n}\n\nfunction mul(o: GF, a: GF, b: GF) {\n let v: number, c: number,\n t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0,\n t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0,\n t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0,\n t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0,\n b0 = b[0],\n b1 = b[1],\n b2 = b[2],\n b3 = b[3],\n b4 = b[4],\n b5 = b[5],\n b6 = b[6],\n b7 = b[7],\n b8 = b[8],\n b9 = b[9],\n b10 = b[10],\n b11 = b[11],\n b12 = b[12],\n b13 = b[13],\n b14 = b[14],\n b15 = b[15];\n\n v = a[0];\n t0 += v * b0;\n t1 += v * b1;\n t2 += v * b2;\n t3 += v * b3;\n t4 += v * b4;\n t5 += v * b5;\n t6 += v * b6;\n t7 += v * b7;\n t8 += v * b8;\n t9 += v * b9;\n t10 += v * b10;\n t11 += v * b11;\n t12 += v * b12;\n t13 += v * b13;\n t14 += v * b14;\n t15 += v * b15;\n v = a[1];\n t1 += v * b0;\n t2 += v * b1;\n t3 += v * b2;\n t4 += v * b3;\n t5 += v * b4;\n t6 += v * b5;\n t7 += v * b6;\n t8 += v * b7;\n t9 += v * b8;\n t10 += v * b9;\n t11 += v * b10;\n t12 += v * b11;\n t13 += v * b12;\n t14 += v * b13;\n t15 += v * b14;\n t16 += v * b15;\n v = a[2];\n t2 += v * b0;\n t3 += v * b1;\n t4 += v * b2;\n t5 += v * b3;\n t6 += v * b4;\n t7 += v * b5;\n t8 += v * b6;\n t9 += v * b7;\n t10 += v * b8;\n t11 += v * b9;\n t12 += v * b10;\n t13 += v * b11;\n t14 += v * b12;\n t15 += v * b13;\n t16 += v * b14;\n t17 += v * b15;\n v = a[3];\n t3 += v * b0;\n t4 += v * b1;\n t5 += v * b2;\n t6 += v * b3;\n t7 += v * b4;\n t8 += v * b5;\n t9 += v * b6;\n t10 += v * b7;\n t11 += v * b8;\n t12 += v * b9;\n t13 += v * b10;\n t14 += v * b11;\n t15 += v * b12;\n t16 += v * b13;\n t17 += v * b14;\n t18 += v * b15;\n v = a[4];\n t4 += v * b0;\n t5 += v * b1;\n t6 += v * b2;\n t7 += v * b3;\n t8 += v * b4;\n t9 += v * b5;\n t10 += v * b6;\n t11 += v * b7;\n t12 += v * b8;\n t13 += v * b9;\n t14 += v * b10;\n t15 += v * b11;\n t16 += v * b12;\n t17 += v * b13;\n t18 += v * b14;\n t19 += v * b15;\n v = a[5];\n t5 += v * b0;\n t6 += v * b1;\n t7 += v * b2;\n t8 += v * b3;\n t9 += v * b4;\n t10 += v * b5;\n t11 += v * b6;\n t12 += v * b7;\n t13 += v * b8;\n t14 += v * b9;\n t15 += v * b10;\n t16 += v * b11;\n t17 += v * b12;\n t18 += v * b13;\n t19 += v * b14;\n t20 += v * b15;\n v = a[6];\n t6 += v * b0;\n t7 += v * b1;\n t8 += v * b2;\n t9 += v * b3;\n t10 += v * b4;\n t11 += v * b5;\n t12 += v * b6;\n t13 += v * b7;\n t14 += v * b8;\n t15 += v * b9;\n t16 += v * b10;\n t17 += v * b11;\n t18 += v * b12;\n t19 += v * b13;\n t20 += v * b14;\n t21 += v * b15;\n v = a[7];\n t7 += v * b0;\n t8 += v * b1;\n t9 += v * b2;\n t10 += v * b3;\n t11 += v * b4;\n t12 += v * b5;\n t13 += v * b6;\n t14 += v * b7;\n t15 += v * b8;\n t16 += v * b9;\n t17 += v * b10;\n t18 += v * b11;\n t19 += v * b12;\n t20 += v * b13;\n t21 += v * b14;\n t22 += v * b15;\n v = a[8];\n t8 += v * b0;\n t9 += v * b1;\n t10 += v * b2;\n t11 += v * b3;\n t12 += v * b4;\n t13 += v * b5;\n t14 += v * b6;\n t15 += v * b7;\n t16 += v * b8;\n t17 += v * b9;\n t18 += v * b10;\n t19 += v * b11;\n t20 += v * b12;\n t21 += v * b13;\n t22 += v * b14;\n t23 += v * b15;\n v = a[9];\n t9 += v * b0;\n t10 += v * b1;\n t11 += v * b2;\n t12 += v * b3;\n t13 += v * b4;\n t14 += v * b5;\n t15 += v * b6;\n t16 += v * b7;\n t17 += v * b8;\n t18 += v * b9;\n t19 += v * b10;\n t20 += v * b11;\n t21 += v * b12;\n t22 += v * b13;\n t23 += v * b14;\n t24 += v * b15;\n v = a[10];\n t10 += v * b0;\n t11 += v * b1;\n t12 += v * b2;\n t13 += v * b3;\n t14 += v * b4;\n t15 += v * b5;\n t16 += v * b6;\n t17 += v * b7;\n t18 += v * b8;\n t19 += v * b9;\n t20 += v * b10;\n t21 += v * b11;\n t22 += v * b12;\n t23 += v * b13;\n t24 += v * b14;\n t25 += v * b15;\n v = a[11];\n t11 += v * b0;\n t12 += v * b1;\n t13 += v * b2;\n t14 += v * b3;\n t15 += v * b4;\n t16 += v * b5;\n t17 += v * b6;\n t18 += v * b7;\n t19 += v * b8;\n t20 += v * b9;\n t21 += v * b10;\n t22 += v * b11;\n t23 += v * b12;\n t24 += v * b13;\n t25 += v * b14;\n t26 += v * b15;\n v = a[12];\n t12 += v * b0;\n t13 += v * b1;\n t14 += v * b2;\n t15 += v * b3;\n t16 += v * b4;\n t17 += v * b5;\n t18 += v * b6;\n t19 += v * b7;\n t20 += v * b8;\n t21 += v * b9;\n t22 += v * b10;\n t23 += v * b11;\n t24 += v * b12;\n t25 += v * b13;\n t26 += v * b14;\n t27 += v * b15;\n v = a[13];\n t13 += v * b0;\n t14 += v * b1;\n t15 += v * b2;\n t16 += v * b3;\n t17 += v * b4;\n t18 += v * b5;\n t19 += v * b6;\n t20 += v * b7;\n t21 += v * b8;\n t22 += v * b9;\n t23 += v * b10;\n t24 += v * b11;\n t25 += v * b12;\n t26 += v * b13;\n t27 += v * b14;\n t28 += v * b15;\n v = a[14];\n t14 += v * b0;\n t15 += v * b1;\n t16 += v * b2;\n t17 += v * b3;\n t18 += v * b4;\n t19 += v * b5;\n t20 += v * b6;\n t21 += v * b7;\n t22 += v * b8;\n t23 += v * b9;\n t24 += v * b10;\n t25 += v * b11;\n t26 += v * b12;\n t27 += v * b13;\n t28 += v * b14;\n t29 += v * b15;\n v = a[15];\n t15 += v * b0;\n t16 += v * b1;\n t17 += v * b2;\n t18 += v * b3;\n t19 += v * b4;\n t20 += v * b5;\n t21 += v * b6;\n t22 += v * b7;\n t23 += v * b8;\n t24 += v * b9;\n t25 += v * b10;\n t26 += v * b11;\n t27 += v * b12;\n t28 += v * b13;\n t29 += v * b14;\n t30 += v * b15;\n\n t0 += 38 * t16;\n t1 += 38 * t17;\n t2 += 38 * t18;\n t3 += 38 * t19;\n t4 += 38 * t20;\n t5 += 38 * t21;\n t6 += 38 * t22;\n t7 += 38 * t23;\n t8 += 38 * t24;\n t9 += 38 * t25;\n t10 += 38 * t26;\n t11 += 38 * t27;\n t12 += 38 * t28;\n t13 += 38 * t29;\n t14 += 38 * t30;\n // t15 left as is\n\n // first car\n c = 1;\n v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;\n v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;\n v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;\n v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;\n v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;\n v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;\n v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;\n v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;\n v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;\n v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;\n v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;\n v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;\n v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;\n v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;\n v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;\n v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;\n t0 += c - 1 + 37 * (c - 1);\n\n // second car\n c = 1;\n v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;\n v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;\n v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;\n v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;\n v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;\n v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;\n v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;\n v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;\n v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;\n v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;\n v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;\n v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;\n v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;\n v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;\n v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;\n v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;\n t0 += c - 1 + 37 * (c - 1);\n\n o[0] = t0;\n o[1] = t1;\n o[2] = t2;\n o[3] = t3;\n o[4] = t4;\n o[5] = t5;\n o[6] = t6;\n o[7] = t7;\n o[8] = t8;\n o[9] = t9;\n o[10] = t10;\n o[11] = t11;\n o[12] = t12;\n o[13] = t13;\n o[14] = t14;\n o[15] = t15;\n}\n\nfunction square(o: GF, a: GF) {\n mul(o, a, a);\n}\n\nfunction inv25519(o: GF, i: GF) {\n const c = gf();\n let a: number;\n for (a = 0; a < 16; a++) {\n c[a] = i[a];\n }\n for (a = 253; a >= 0; a--) {\n square(c, c);\n if (a !== 2 && a !== 4) {\n mul(c, c, i);\n }\n }\n for (a = 0; a < 16; a++) {\n o[a] = c[a];\n }\n}\n\nfunction pow2523(o: GF, i: GF) {\n const c = gf();\n let a: number;\n for (a = 0; a < 16; a++) {\n c[a] = i[a];\n }\n for (a = 250; a >= 0; a--) {\n square(c, c);\n if (a !== 1) {\n mul(c, c, i);\n }\n }\n for (a = 0; a < 16; a++) {\n o[a] = c[a];\n }\n}\n\n\nfunction edadd(p: GF[], q: GF[]) {\n const a = gf(), b = gf(), c = gf(),\n d = gf(), e = gf(), f = gf(),\n g = gf(), h = gf(), t = gf();\n\n sub(a, p[1], p[0]);\n sub(t, q[1], q[0]);\n mul(a, a, t);\n add(b, p[0], p[1]);\n add(t, q[0], q[1]);\n mul(b, b, t);\n mul(c, p[3], q[3]);\n mul(c, c, D2);\n mul(d, p[2], q[2]);\n add(d, d, d);\n sub(e, b, a);\n sub(f, d, c);\n add(g, d, c);\n add(h, b, a);\n\n mul(p[0], e, f);\n mul(p[1], h, g);\n mul(p[2], g, f);\n mul(p[3], e, h);\n}\n\nfunction cswap(p: GF[], q: GF[], b: number) {\n for (let i = 0; i < 4; i++) {\n sel25519(p[i], q[i], b);\n }\n}\n\nfunction pack(r: Uint8Array, p: GF[]) {\n const tx = gf(), ty = gf(), zi = gf();\n inv25519(zi, p[2]);\n mul(tx, p[0], zi);\n mul(ty, p[1], zi);\n pack25519(r, ty);\n r[31] ^= par25519(tx) << 7;\n}\n\nfunction scalarmult(p: GF[], q: GF[], s: Uint8Array) {\n set25519(p[0], gf0);\n set25519(p[1], gf1);\n set25519(p[2], gf1);\n set25519(p[3], gf0);\n for (let i = 255; i >= 0; --i) {\n const b = (s[(i / 8) | 0] >> (i & 7)) & 1;\n cswap(p, q, b);\n edadd(q, p);\n edadd(p, p);\n cswap(p, q, b);\n }\n}\n\nfunction scalarbase(p: GF[], s: Uint8Array) {\n const q = [gf(), gf(), gf(), gf()];\n set25519(q[0], X);\n set25519(q[1], Y);\n set25519(q[2], gf1);\n mul(q[3], X, Y);\n scalarmult(p, q, s);\n}\n\nexport interface KeyPair {\n publicKey: Uint8Array;\n secretKey: Uint8Array;\n}\n\n// Generates key pair from secret 32-byte seed.\nexport function generateKeyPairFromSeed(seed: Uint8Array): KeyPair {\n if (seed.length !== SEED_LENGTH) {\n throw new Error(`ed25519: seed must be ${SEED_LENGTH} bytes`);\n }\n\n const d = hash(seed);\n d[0] &= 248;\n d[31] &= 127;\n d[31] |= 64;\n\n const publicKey = new Uint8Array(32);\n const p = [gf(), gf(), gf(), gf()];\n scalarbase(p, d);\n pack(publicKey, p);\n\n const secretKey = new Uint8Array(64);\n secretKey.set(seed);\n secretKey.set(publicKey, 32);\n\n return {\n publicKey,\n secretKey\n };\n}\n\nexport function generateKeyPair(prng?: RandomSource): KeyPair {\n const seed = randomBytes(32, prng);\n const result = generateKeyPairFromSeed(seed);\n wipe(seed);\n return result;\n}\n\nexport function extractPublicKeyFromSecretKey(secretKey: Uint8Array): Uint8Array {\n if (secretKey.length !== SECRET_KEY_LENGTH) {\n throw new Error(`ed25519: secret key must be ${SECRET_KEY_LENGTH} bytes`);\n }\n return new Uint8Array(secretKey.subarray(32));\n}\n\nconst L = new Float64Array([\n 0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, 0xd6, 0x9c, 0xf7, 0xa2,\n 0xde, 0xf9, 0xde, 0x14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10\n]);\n\nfunction modL(r: Uint8Array, x: Float64Array) {\n let carry: number;\n let i: number;\n let j: number;\n let k: number;\n for (i = 63; i >= 32; --i) {\n carry = 0;\n for (j = i - 32, k = i - 12; j < k; ++j) {\n x[j] += carry - 16 * x[i] * L[j - (i - 32)];\n carry = Math.floor((x[j] + 128) / 256);\n x[j] -= carry * 256;\n }\n x[j] += carry;\n x[i] = 0;\n }\n carry = 0;\n for (j = 0; j < 32; j++) {\n x[j] += carry - (x[31] >> 4) * L[j];\n carry = x[j] >> 8;\n x[j] &= 255;\n }\n for (j = 0; j < 32; j++) {\n x[j] -= carry * L[j];\n }\n for (i = 0; i < 32; i++) {\n x[i + 1] += x[i] >> 8;\n r[i] = x[i] & 255;\n }\n}\n\nfunction reduce(r: Uint8Array) {\n const x = new Float64Array(64);\n for (let i = 0; i < 64; i++) {\n x[i] = r[i];\n }\n for (let i = 0; i < 64; i++) {\n r[i] = 0;\n }\n modL(r, x);\n}\n\n// Returns 64-byte signature of the message under the 64-byte secret key.\nexport function sign(secretKey: Uint8Array, message: Uint8Array): Uint8Array {\n const x = new Float64Array(64);\n const p = [gf(), gf(), gf(), gf()];\n\n const d = hash(secretKey.subarray(0, 32));\n d[0] &= 248;\n d[31] &= 127;\n d[31] |= 64;\n\n const signature = new Uint8Array(64);\n signature.set(d.subarray(32), 32);\n\n const hs = new SHA512();\n hs.update(signature.subarray(32));\n hs.update(message);\n const r = hs.digest();\n hs.clean();\n reduce(r);\n scalarbase(p, r);\n pack(signature, p);\n\n hs.reset();\n hs.update(signature.subarray(0, 32));\n hs.update(secretKey.subarray(32));\n hs.update(message);\n const h = hs.digest();\n reduce(h);\n\n for (let i = 0; i < 32; i++) {\n x[i] = r[i];\n }\n for (let i = 0; i < 32; i++) {\n for (let j = 0; j < 32; j++) {\n x[i + j] += h[i] * d[j];\n }\n }\n modL(signature.subarray(32), x);\n\n return signature;\n}\n\nfunction unpackneg(r: GF[], p: Uint8Array) {\n const t = gf(), chk = gf(), num = gf(),\n den = gf(), den2 = gf(), den4 = gf(),\n den6 = gf();\n\n set25519(r[2], gf1);\n unpack25519(r[1], p);\n square(num, r[1]);\n mul(den, num, D);\n sub(num, num, r[2]);\n add(den, r[2], den);\n\n square(den2, den);\n square(den4, den2);\n mul(den6, den4, den2);\n mul(t, den6, num);\n mul(t, t, den);\n\n pow2523(t, t);\n mul(t, t, num);\n mul(t, t, den);\n mul(t, t, den);\n mul(r[0], t, den);\n\n square(chk, r[0]);\n mul(chk, chk, den);\n if (neq25519(chk, num)) {\n mul(r[0], r[0], I);\n }\n\n square(chk, r[0]);\n mul(chk, chk, den);\n if (neq25519(chk, num)) {\n return -1;\n }\n\n if (par25519(r[0]) === (p[31] >> 7)) {\n sub(r[0], gf0, r[0]);\n }\n\n mul(r[3], r[0], r[1]);\n return 0;\n}\n\nexport function verify(publicKey: Uint8Array, message: Uint8Array, signature: Uint8Array): boolean {\n const t = new Uint8Array(32);\n const p = [gf(), gf(), gf(), gf()];\n const q = [gf(), gf(), gf(), gf()];\n\n if (signature.length !== SIGNATURE_LENGTH) {\n throw new Error(`ed25519: signature must be ${SIGNATURE_LENGTH} bytes`);\n }\n\n if (unpackneg(q, publicKey)) {\n return false;\n }\n\n const hs = new SHA512();\n hs.update(signature.subarray(0, 32));\n hs.update(publicKey);\n hs.update(message);\n const h = hs.digest();\n reduce(h);\n scalarmult(p, q, h);\n\n scalarbase(q, signature.subarray(32));\n edadd(p, q);\n pack(t, p);\n\n if (verify32(signature, t)) {\n return false;\n }\n return true;\n}\n\n/**\n * Convert Ed25519 public key to X25519 public key.\n *\n * Throws if given an invalid public key.\n */\nexport function convertPublicKeyToX25519(publicKey: Uint8Array): Uint8Array {\n let q = [gf(), gf(), gf(), gf()];\n\n if (unpackneg(q, publicKey)) {\n throw new Error(\"Ed25519: invalid public key\");\n }\n\n // Formula: montgomeryX = (edwardsY + 1)*inverse(1 - edwardsY) mod p\n let a = gf();\n let b = gf();\n let y = q[1];\n add(a, gf1, y);\n sub(b, gf1, y);\n inv25519(b, b);\n mul(a, a, b);\n\n let z = new Uint8Array(32);\n pack25519(z, a);\n return z;\n}\n\n/**\n * Convert Ed25519 secret (private) key to X25519 secret key.\n */\nexport function convertSecretKeyToX25519(secretKey: Uint8Array): Uint8Array {\n const d = hash(secretKey.subarray(0, 32));\n d[0] &= 248;\n d[31] &= 127;\n d[31] |= 64;\n const o = new Uint8Array(d.subarray(0, 32));\n wipe(d);\n return o;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package hash provides interface for hash functions.\n */\n\n/**\n * Hash interface describes properties of\n * cryptographic hash functions.\n */\nexport interface Hash {\n readonly digestLength: number;\n readonly blockSize: number;\n update(data: Uint8Array): this;\n reset(): this;\n finish(out: Uint8Array): this;\n digest(): Uint8Array;\n clean(): void;\n}\n\nexport interface SerializableHash extends Hash {\n saveState(): any;\n restoreState(savedState: any): this;\n cleanSavedState(savedState: any): void;\n}\n\nexport function isSerializableHash(h: Hash): h is SerializableHash {\n return (\n typeof (h as SerializableHash).saveState !== \"undefined\" &&\n typeof (h as SerializableHash).restoreState !== \"undefined\" &&\n typeof (h as SerializableHash).cleanSavedState !== \"undefined\"\n );\n}\n\n// TODO(dchest): figure out the standardized interface for XOF such as\n// SHAKE and BLAKE2X.\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package hmac implements HMAC algorithm.\n */\n\nimport { Hash, SerializableHash, isSerializableHash } from \"@stablelib/hash\";\nimport { equal as constantTimeEqual } from \"@stablelib/constant-time\";\nimport { wipe } from \"@stablelib/wipe\";\n\n/**\n * HMAC implements hash-based message authentication algorithm.\n */\nexport class HMAC implements SerializableHash {\n readonly blockSize: number;\n readonly digestLength: number;\n\n private _inner: Hash; // inner hash\n private _outer: Hash; // outer hash\n\n private _finished = false; // true if HMAC was finalized\n\n // Copies of hash states after keying.\n // Need for quick reset without hashing the key again.\n private _innerKeyedState: any | undefined;\n private _outerKeyedState: any | undefined;\n\n /**\n * Constructs a new HMAC with the given Hash and secret key.\n */\n constructor(hash: new () => Hash | SerializableHash, key: Uint8Array) {\n // Initialize inner and outer hashes.\n this._inner = new hash();\n this._outer = new hash();\n\n // Set block and digest sizes for this HMAC\n // instance to values from the hash.\n this.blockSize = this._outer.blockSize;\n this.digestLength = this._outer.digestLength;\n\n // Pad temporary stores a key (or its hash) padded with zeroes.\n const pad = new Uint8Array(this.blockSize);\n\n if (key.length > this.blockSize) {\n // If key is bigger than hash block size, it must be\n // hashed and this hash is used as a key instead.\n this._inner.update(key).finish(pad).clean();\n } else {\n // Otherwise, copy the key into pad.\n pad.set(key);\n }\n\n // Now two different keys are derived from padded key\n // by xoring a different byte value to each.\n\n // To make inner hash key, xor byte 0x36 into pad.\n for (let i = 0; i < pad.length; i++) {\n pad[i] ^= 0x36;\n }\n // Update inner hash with the result.\n this._inner.update(pad);\n\n // To make outer hash key, xor byte 0x5c into pad.\n // But since we already xored 0x36 there, we must\n // first undo this by xoring it again.\n for (let i = 0; i < pad.length; i++) {\n pad[i] ^= 0x36 ^ 0x5c;\n }\n // Update outer hash with the result.\n this._outer.update(pad);\n\n // Save states of both hashes, so that we can quickly restore\n // them later in reset() without the need to remember the actual\n // key and perform this initialization again.\n if (isSerializableHash(this._inner) && isSerializableHash(this._outer)) {\n this._innerKeyedState = this._inner.saveState();\n this._outerKeyedState = this._outer.saveState();\n }\n\n // Clean pad.\n wipe(pad);\n }\n\n /**\n * Returns HMAC state to the state initialized with key\n * to make it possible to run HMAC over the other data with the same\n * key without creating a new instance.\n */\n reset(): this {\n if (!isSerializableHash(this._inner) || !isSerializableHash(this._outer)) {\n throw new Error(\"hmac: can't reset() because hash doesn't implement restoreState()\");\n }\n // Restore keyed states of inner and outer hashes.\n this._inner.restoreState(this._innerKeyedState);\n this._outer.restoreState(this._outerKeyedState);\n this._finished = false;\n return this;\n }\n\n /**\n * Cleans HMAC state.\n */\n clean() {\n if (isSerializableHash(this._inner)) {\n this._inner.cleanSavedState(this._innerKeyedState);\n }\n if (isSerializableHash(this._outer)) {\n this._outer.cleanSavedState(this._outerKeyedState);\n }\n this._inner.clean();\n this._outer.clean();\n }\n\n /**\n * Updates state with provided data.\n */\n update(data: Uint8Array): this {\n this._inner.update(data);\n return this;\n }\n\n /**\n * Finalizes HMAC and puts the result in out.\n */\n finish(out: Uint8Array): this {\n if (this._finished) {\n // If HMAC was finalized, outer hash is also finalized,\n // so it produces the same digest it produced when it\n // was finalized.\n this._outer.finish(out);\n return this;\n }\n\n // Finalize inner hash and store the result temporarily.\n this._inner.finish(out);\n\n // Update outer hash with digest of inner hash and and finalize it.\n this._outer.update(out.subarray(0, this.digestLength)).finish(out);\n this._finished = true;\n\n return this;\n }\n\n /**\n * Returns the computed message authentication code.\n */\n digest(): Uint8Array {\n const out = new Uint8Array(this.digestLength);\n this.finish(out);\n return out;\n }\n\n /**\n * Saves HMAC state.\n * This function is needed for PBKDF2 optimization.\n */\n saveState(): any {\n if (!isSerializableHash(this._inner)) {\n throw new Error(\"hmac: can't saveState() because hash doesn't implement it\");\n }\n return this._inner.saveState();\n }\n\n restoreState(savedState: any): this {\n if (!isSerializableHash(this._inner) || !isSerializableHash(this._outer)) {\n throw new Error(\"hmac: can't restoreState() because hash doesn't implement it\");\n }\n this._inner.restoreState(savedState);\n this._outer.restoreState(this._outerKeyedState);\n this._finished = false;\n return this;\n }\n\n cleanSavedState(savedState: any) {\n if (!isSerializableHash(this._inner)) {\n throw new Error(\"hmac: can't cleanSavedState() because hash doesn't implement it\");\n }\n this._inner.cleanSavedState(savedState);\n }\n}\n\n/**\n * Returns HMAC using the given hash constructor for the key over data.\n */\nexport function hmac(hash: new () => Hash, key: Uint8Array, data: Uint8Array): Uint8Array {\n const h = new HMAC(hash, key);\n h.update(data);\n const digest = h.digest();\n h.clean();\n return digest;\n}\n\n/**\n * Returns true if two HMAC digests are equal.\n * Uses constant-time comparison to avoid leaking timing information.\n *\n * Example:\n *\n * const receivedDigest = ...\n * const realDigest = hmac(SHA256, key, data);\n * if (!equal(receivedDigest, realDigest)) {\n * throw new Error(\"Authentication error\");\n * }\n */\nexport const equal = constantTimeEqual;\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package int provides helper functions for integerss.\n */\n\n// Shim using 16-bit pieces.\nfunction imulShim(a: number, b: number): number {\n const ah = (a >>> 16) & 0xffff, al = a & 0xffff;\n const bh = (b >>> 16) & 0xffff, bl = b & 0xffff;\n return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0) | 0);\n}\n\n/** 32-bit integer multiplication. */\n// Use system Math.imul if available, otherwise use our shim.\nexport const mul = (Math as { imul?(a: number, b: number): number }).imul || imulShim;\n\n/** 32-bit integer addition. */\nexport function add(a: number, b: number): number {\n return (a + b) | 0;\n}\n\n/** 32-bit integer subtraction. */\nexport function sub(a: number, b: number): number {\n return (a - b) | 0;\n}\n\n/** 32-bit integer left rotation */\nexport function rotl(x: number, n: number): number {\n return x << n | x >>> (32 - n);\n}\n\n/** 32-bit integer left rotation */\nexport function rotr(x: number, n: number): number {\n return x << (32 - n) | x >>> n;\n}\n\nfunction isIntegerShim(n: number): boolean {\n return typeof n === \"number\" && isFinite(n) && Math.floor(n) === n;\n}\n\n/**\n * Returns true if the argument is an integer number.\n *\n * In ES2015, Number.isInteger.\n */\nexport const isInteger = (Number as { isInteger?(n: number): boolean }).isInteger || isIntegerShim;\n\n/**\n * Math.pow(2, 53) - 1\n *\n * In ES2015 Number.MAX_SAFE_INTEGER.\n */\nexport const MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Returns true if the argument is a safe integer number\n * (-MIN_SAFE_INTEGER < number <= MAX_SAFE_INTEGER)\n *\n * In ES2015, Number.isSafeInteger.\n */\nexport const isSafeInteger = (n: number): boolean =>\n isInteger(n) && (n >= -MAX_SAFE_INTEGER && n <= MAX_SAFE_INTEGER);\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { scalarMult } from \"@stablelib/x25519\";\nimport { hsalsa } from \"@stablelib/xsalsa20\";\nimport { secretBox, openSecretBox } from \"./secretbox\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport { generateKeyPair } from \"@stablelib/x25519\";\n\nconst zeros16 = new Uint8Array(16);\n\nexport function precomputeSharedKey(theirPublicKey: Uint8Array, mySecretKey: Uint8Array): Uint8Array {\n // Compute scalar multiplication result.\n const key = scalarMult(mySecretKey, theirPublicKey);\n\n // Hash key with HSalsa function.\n hsalsa(key, zeros16, key);\n\n return key;\n}\n\nexport function box(theirPublicKey: Uint8Array, mySecretKey: Uint8Array,\n nonce: Uint8Array, data: Uint8Array): Uint8Array {\n const sharedKey = precomputeSharedKey(theirPublicKey, mySecretKey);\n const result = secretBox(sharedKey, nonce, data);\n wipe(sharedKey);\n return result;\n}\n\nexport function openBox(theirPublicKey: Uint8Array, mySecretKey: Uint8Array,\n nonce: Uint8Array, data: Uint8Array): Uint8Array | null {\n const sharedKey = precomputeSharedKey(theirPublicKey, mySecretKey);\n const result = openSecretBox(sharedKey, nonce, data);\n wipe(sharedKey);\n return result;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package nacl implements NaCl (Networking and Cryptography library) cryptography.\n */\n\nexport * from \"./box\";\nexport * from \"./secretbox\";\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { streamXOR, stream } from \"@stablelib/xsalsa20\";\nimport { oneTimeAuth, equal as authEqual } from \"@stablelib/poly1305\";\nimport { wipe } from \"@stablelib/wipe\";\nimport { randomBytes, RandomSource } from \"@stablelib/random\";\n\nexport function secretBox(key: Uint8Array, nonce: Uint8Array, data: Uint8Array): Uint8Array {\n if (nonce.length !== 24) {\n throw new Error(\"secretBox nonce must be 24 bytes\");\n }\n const firstBlock = new Uint8Array(64);\n\n // Allocate place for nonce and counter.\n const nonceCounter = new Uint8Array(24 + 8);\n\n // Set first bytes to nonce. Last 8 bytes will be counter.\n nonceCounter.set(nonce);\n\n // Generate first block of XSalsa20 stream, of which\n // first 32 bytes will be authentication key, and the rest\n // will be used for encryption.\n stream(key, nonceCounter, firstBlock, 8);\n\n // Allocate result, which will contain 16-byte authenticator\n // concatenated with ciphertext.\n const result = new Uint8Array(16 + data.length);\n\n // Encrypt first 32 bytes of data with last 32 bytes of generated stream.\n for (let i = 0; i < 32 && i < data.length; i++) {\n result[16 + i] = data[i] ^ firstBlock[32 + i];\n }\n\n // Encrypt the rest of data.\n if (data.length > 32) {\n streamXOR(key, nonceCounter, data.subarray(32), result.subarray(16 + 32), 8);\n }\n\n // Calculate Poly1305 authenticator of encrypted data using\n // authentication key in the first block of XSalsa20 stream.\n const auth = oneTimeAuth(firstBlock.subarray(0, 32), result.subarray(16));\n\n // Copy authenticator to the beginning of result.\n for (let i = 0; i < auth.length; i++) {\n result[i] = auth[i];\n }\n\n // Clean auth.\n wipe(auth);\n\n // Clean first block.\n wipe(firstBlock);\n\n // Clean nonceCounter.\n wipe(nonceCounter);\n\n return result;\n}\n\nexport function openSecretBox(key: Uint8Array, nonce: Uint8Array, box: Uint8Array): Uint8Array | null {\n if (nonce.length !== 24) {\n throw new Error(\"secretBox nonce must be 24 bytes\");\n }\n if (box.length < 16) {\n throw new Error(\"secretBox data must be at least 16 bytes\");\n }\n const firstBlock = new Uint8Array(64);\n\n // Allocate place for nonce and counter.\n const nonceCounter = new Uint8Array(24 + 8);\n\n // Set first bytes to nonce. Last 8 bytes will be counter.\n nonceCounter.set(nonce);\n\n // Generate first block of XSalsa20 stream, of which\n // first 32 bytes will be authentication key, and the rest\n // will be used for encryption.\n stream(key, nonceCounter, firstBlock, 8);\n\n // Calculate Poly1305 authenticator of encrypted data using\n // authentication key in the first block of XSalsa20 stream.\n const auth = oneTimeAuth(firstBlock.subarray(0, 32), box.subarray(16));\n\n // Check authenticator.\n if (!authEqual(auth, box.subarray(0, 16))) {\n // Authenticator is incorrect: ciphertext or authenticator\n // was corrupted, maybe maliciously.\n return null;\n }\n\n // Authenticator verifies, so we can decrypt ciphertext.\n const ciphertext = box.subarray(16);\n\n // Allocate result array.\n const result = new Uint8Array(ciphertext.length);\n\n // Decrypt first 32 bytes of box with last 32 bytes of generated stream.\n for (let i = 0; i < 32 && i < ciphertext.length; i++) {\n result[i] = ciphertext[i] ^ firstBlock[32 + i];\n }\n\n // Decrypt the rest of data.\n if (ciphertext.length > 32) {\n streamXOR(key, nonceCounter, ciphertext.subarray(32), result.subarray(32), 8);\n }\n\n // Clean auth.\n wipe(auth);\n\n // Clean first block.\n wipe(firstBlock);\n\n // Clean nonceCounter.\n wipe(nonceCounter);\n\n return result;\n}\n\n/** Generates a 32-byte random secret key. */\nexport function generateKey(prng?: RandomSource): Uint8Array {\n return randomBytes(32, prng);\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package poly1305 implements Poly1305 one-time message authentication algorithm.\n */\n\nimport { equal as constantTimeEqual } from \"@stablelib/constant-time\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const DIGEST_LENGTH = 16;\n\n// Port of Andrew Moon's Poly1305-donna-16. Public domain.\n// https://github.com/floodyberry/poly1305-donna\n\n/**\n * Poly1305 computes 16-byte authenticator of message using\n * a one-time 32-byte key.\n *\n * Important: key should be used for only one message,\n * it should never repeat.\n */\nexport class Poly1305 {\n readonly digestLength = DIGEST_LENGTH;\n\n private _buffer = new Uint8Array(16);\n private _r = new Uint16Array(10);\n private _h = new Uint16Array(10);\n private _pad = new Uint16Array(8);\n private _leftover = 0;\n private _fin = 0;\n private _finished = false;\n\n constructor(key: Uint8Array) {\n let t0 = key[0] | key[1] << 8; this._r[0] = (t0) & 0x1fff;\n let t1 = key[2] | key[3] << 8; this._r[1] = ((t0 >>> 13) | (t1 << 3)) & 0x1fff;\n let t2 = key[4] | key[5] << 8; this._r[2] = ((t1 >>> 10) | (t2 << 6)) & 0x1f03;\n let t3 = key[6] | key[7] << 8; this._r[3] = ((t2 >>> 7) | (t3 << 9)) & 0x1fff;\n let t4 = key[8] | key[9] << 8; this._r[4] = ((t3 >>> 4) | (t4 << 12)) & 0x00ff;\n this._r[5] = ((t4 >>> 1)) & 0x1ffe;\n let t5 = key[10] | key[11] << 8; this._r[6] = ((t4 >>> 14) | (t5 << 2)) & 0x1fff;\n let t6 = key[12] | key[13] << 8; this._r[7] = ((t5 >>> 11) | (t6 << 5)) & 0x1f81;\n let t7 = key[14] | key[15] << 8; this._r[8] = ((t6 >>> 8) | (t7 << 8)) & 0x1fff;\n this._r[9] = ((t7 >>> 5)) & 0x007f;\n\n this._pad[0] = key[16] | key[17] << 8;\n this._pad[1] = key[18] | key[19] << 8;\n this._pad[2] = key[20] | key[21] << 8;\n this._pad[3] = key[22] | key[23] << 8;\n this._pad[4] = key[24] | key[25] << 8;\n this._pad[5] = key[26] | key[27] << 8;\n this._pad[6] = key[28] | key[29] << 8;\n this._pad[7] = key[30] | key[31] << 8;\n }\n\n private _blocks(m: Uint8Array, mpos: number, bytes: number) {\n let hibit = this._fin ? 0 : 1 << 11;\n\n let h0 = this._h[0],\n h1 = this._h[1],\n h2 = this._h[2],\n h3 = this._h[3],\n h4 = this._h[4],\n h5 = this._h[5],\n h6 = this._h[6],\n h7 = this._h[7],\n h8 = this._h[8],\n h9 = this._h[9];\n\n let r0 = this._r[0],\n r1 = this._r[1],\n r2 = this._r[2],\n r3 = this._r[3],\n r4 = this._r[4],\n r5 = this._r[5],\n r6 = this._r[6],\n r7 = this._r[7],\n r8 = this._r[8],\n r9 = this._r[9];\n\n while (bytes >= 16) {\n let t0 = m[mpos + 0] | m[mpos + 1] << 8; h0 += (t0) & 0x1fff;\n let t1 = m[mpos + 2] | m[mpos + 3] << 8; h1 += ((t0 >>> 13) | (t1 << 3)) & 0x1fff;\n let t2 = m[mpos + 4] | m[mpos + 5] << 8; h2 += ((t1 >>> 10) | (t2 << 6)) & 0x1fff;\n let t3 = m[mpos + 6] | m[mpos + 7] << 8; h3 += ((t2 >>> 7) | (t3 << 9)) & 0x1fff;\n let t4 = m[mpos + 8] | m[mpos + 9] << 8; h4 += ((t3 >>> 4) | (t4 << 12)) & 0x1fff;\n h5 += ((t4 >>> 1)) & 0x1fff;\n let t5 = m[mpos + 10] | m[mpos + 11] << 8; h6 += ((t4 >>> 14) | (t5 << 2)) & 0x1fff;\n let t6 = m[mpos + 12] | m[mpos + 13] << 8; h7 += ((t5 >>> 11) | (t6 << 5)) & 0x1fff;\n let t7 = m[mpos + 14] | m[mpos + 15] << 8; h8 += ((t6 >>> 8) | (t7 << 8)) & 0x1fff;\n h9 += ((t7 >>> 5)) | hibit;\n\n let c = 0;\n\n let d0 = c;\n d0 += h0 * r0;\n d0 += h1 * (5 * r9);\n d0 += h2 * (5 * r8);\n d0 += h3 * (5 * r7);\n d0 += h4 * (5 * r6);\n c = (d0 >>> 13); d0 &= 0x1fff;\n d0 += h5 * (5 * r5);\n d0 += h6 * (5 * r4);\n d0 += h7 * (5 * r3);\n d0 += h8 * (5 * r2);\n d0 += h9 * (5 * r1);\n c += (d0 >>> 13); d0 &= 0x1fff;\n\n let d1 = c;\n d1 += h0 * r1;\n d1 += h1 * r0;\n d1 += h2 * (5 * r9);\n d1 += h3 * (5 * r8);\n d1 += h4 * (5 * r7);\n c = (d1 >>> 13); d1 &= 0x1fff;\n d1 += h5 * (5 * r6);\n d1 += h6 * (5 * r5);\n d1 += h7 * (5 * r4);\n d1 += h8 * (5 * r3);\n d1 += h9 * (5 * r2);\n c += (d1 >>> 13); d1 &= 0x1fff;\n\n let d2 = c;\n d2 += h0 * r2;\n d2 += h1 * r1;\n d2 += h2 * r0;\n d2 += h3 * (5 * r9);\n d2 += h4 * (5 * r8);\n c = (d2 >>> 13); d2 &= 0x1fff;\n d2 += h5 * (5 * r7);\n d2 += h6 * (5 * r6);\n d2 += h7 * (5 * r5);\n d2 += h8 * (5 * r4);\n d2 += h9 * (5 * r3);\n c += (d2 >>> 13); d2 &= 0x1fff;\n\n let d3 = c;\n d3 += h0 * r3;\n d3 += h1 * r2;\n d3 += h2 * r1;\n d3 += h3 * r0;\n d3 += h4 * (5 * r9);\n c = (d3 >>> 13); d3 &= 0x1fff;\n d3 += h5 * (5 * r8);\n d3 += h6 * (5 * r7);\n d3 += h7 * (5 * r6);\n d3 += h8 * (5 * r5);\n d3 += h9 * (5 * r4);\n c += (d3 >>> 13); d3 &= 0x1fff;\n\n let d4 = c;\n d4 += h0 * r4;\n d4 += h1 * r3;\n d4 += h2 * r2;\n d4 += h3 * r1;\n d4 += h4 * r0;\n c = (d4 >>> 13); d4 &= 0x1fff;\n d4 += h5 * (5 * r9);\n d4 += h6 * (5 * r8);\n d4 += h7 * (5 * r7);\n d4 += h8 * (5 * r6);\n d4 += h9 * (5 * r5);\n c += (d4 >>> 13); d4 &= 0x1fff;\n\n let d5 = c;\n d5 += h0 * r5;\n d5 += h1 * r4;\n d5 += h2 * r3;\n d5 += h3 * r2;\n d5 += h4 * r1;\n c = (d5 >>> 13); d5 &= 0x1fff;\n d5 += h5 * r0;\n d5 += h6 * (5 * r9);\n d5 += h7 * (5 * r8);\n d5 += h8 * (5 * r7);\n d5 += h9 * (5 * r6);\n c += (d5 >>> 13); d5 &= 0x1fff;\n\n let d6 = c;\n d6 += h0 * r6;\n d6 += h1 * r5;\n d6 += h2 * r4;\n d6 += h3 * r3;\n d6 += h4 * r2;\n c = (d6 >>> 13); d6 &= 0x1fff;\n d6 += h5 * r1;\n d6 += h6 * r0;\n d6 += h7 * (5 * r9);\n d6 += h8 * (5 * r8);\n d6 += h9 * (5 * r7);\n c += (d6 >>> 13); d6 &= 0x1fff;\n\n let d7 = c;\n d7 += h0 * r7;\n d7 += h1 * r6;\n d7 += h2 * r5;\n d7 += h3 * r4;\n d7 += h4 * r3;\n c = (d7 >>> 13); d7 &= 0x1fff;\n d7 += h5 * r2;\n d7 += h6 * r1;\n d7 += h7 * r0;\n d7 += h8 * (5 * r9);\n d7 += h9 * (5 * r8);\n c += (d7 >>> 13); d7 &= 0x1fff;\n\n let d8 = c;\n d8 += h0 * r8;\n d8 += h1 * r7;\n d8 += h2 * r6;\n d8 += h3 * r5;\n d8 += h4 * r4;\n c = (d8 >>> 13); d8 &= 0x1fff;\n d8 += h5 * r3;\n d8 += h6 * r2;\n d8 += h7 * r1;\n d8 += h8 * r0;\n d8 += h9 * (5 * r9);\n c += (d8 >>> 13); d8 &= 0x1fff;\n\n let d9 = c;\n d9 += h0 * r9;\n d9 += h1 * r8;\n d9 += h2 * r7;\n d9 += h3 * r6;\n d9 += h4 * r5;\n c = (d9 >>> 13); d9 &= 0x1fff;\n d9 += h5 * r4;\n d9 += h6 * r3;\n d9 += h7 * r2;\n d9 += h8 * r1;\n d9 += h9 * r0;\n c += (d9 >>> 13); d9 &= 0x1fff;\n\n c = (((c << 2) + c)) | 0;\n c = (c + d0) | 0;\n d0 = c & 0x1fff;\n c = (c >>> 13);\n d1 += c;\n\n h0 = d0;\n h1 = d1;\n h2 = d2;\n h3 = d3;\n h4 = d4;\n h5 = d5;\n h6 = d6;\n h7 = d7;\n h8 = d8;\n h9 = d9;\n\n mpos += 16;\n bytes -= 16;\n }\n this._h[0] = h0;\n this._h[1] = h1;\n this._h[2] = h2;\n this._h[3] = h3;\n this._h[4] = h4;\n this._h[5] = h5;\n this._h[6] = h6;\n this._h[7] = h7;\n this._h[8] = h8;\n this._h[9] = h9;\n }\n\n finish(mac: Uint8Array, macpos = 0): this {\n const g = new Uint16Array(10);\n let c: number;\n let mask: number;\n let f: number;\n let i: number;\n\n if (this._leftover) {\n i = this._leftover;\n this._buffer[i++] = 1;\n for (; i < 16; i++) {\n this._buffer[i] = 0;\n }\n this._fin = 1;\n this._blocks(this._buffer, 0, 16);\n }\n\n c = this._h[1] >>> 13;\n this._h[1] &= 0x1fff;\n for (i = 2; i < 10; i++) {\n this._h[i] += c;\n c = this._h[i] >>> 13;\n this._h[i] &= 0x1fff;\n }\n this._h[0] += (c * 5);\n c = this._h[0] >>> 13;\n this._h[0] &= 0x1fff;\n this._h[1] += c;\n c = this._h[1] >>> 13;\n this._h[1] &= 0x1fff;\n this._h[2] += c;\n\n g[0] = this._h[0] + 5;\n c = g[0] >>> 13;\n g[0] &= 0x1fff;\n for (i = 1; i < 10; i++) {\n g[i] = this._h[i] + c;\n c = g[i] >>> 13;\n g[i] &= 0x1fff;\n }\n g[9] -= (1 << 13);\n\n mask = (c ^ 1) - 1;\n for (i = 0; i < 10; i++) {\n g[i] &= mask;\n }\n mask = ~mask;\n for (i = 0; i < 10; i++) {\n this._h[i] = (this._h[i] & mask) | g[i];\n }\n\n this._h[0] = ((this._h[0]) | (this._h[1] << 13)) & 0xffff;\n this._h[1] = ((this._h[1] >>> 3) | (this._h[2] << 10)) & 0xffff;\n this._h[2] = ((this._h[2] >>> 6) | (this._h[3] << 7)) & 0xffff;\n this._h[3] = ((this._h[3] >>> 9) | (this._h[4] << 4)) & 0xffff;\n this._h[4] = ((this._h[4] >>> 12) | (this._h[5] << 1) | (this._h[6] << 14)) & 0xffff;\n this._h[5] = ((this._h[6] >>> 2) | (this._h[7] << 11)) & 0xffff;\n this._h[6] = ((this._h[7] >>> 5) | (this._h[8] << 8)) & 0xffff;\n this._h[7] = ((this._h[8] >>> 8) | (this._h[9] << 5)) & 0xffff;\n\n f = this._h[0] + this._pad[0];\n this._h[0] = f & 0xffff;\n for (i = 1; i < 8; i++) {\n f = (((this._h[i] + this._pad[i]) | 0) + (f >>> 16)) | 0;\n this._h[i] = f & 0xffff;\n }\n\n mac[macpos + 0] = this._h[0] >>> 0;\n mac[macpos + 1] = this._h[0] >>> 8;\n mac[macpos + 2] = this._h[1] >>> 0;\n mac[macpos + 3] = this._h[1] >>> 8;\n mac[macpos + 4] = this._h[2] >>> 0;\n mac[macpos + 5] = this._h[2] >>> 8;\n mac[macpos + 6] = this._h[3] >>> 0;\n mac[macpos + 7] = this._h[3] >>> 8;\n mac[macpos + 8] = this._h[4] >>> 0;\n mac[macpos + 9] = this._h[4] >>> 8;\n mac[macpos + 10] = this._h[5] >>> 0;\n mac[macpos + 11] = this._h[5] >>> 8;\n mac[macpos + 12] = this._h[6] >>> 0;\n mac[macpos + 13] = this._h[6] >>> 8;\n mac[macpos + 14] = this._h[7] >>> 0;\n mac[macpos + 15] = this._h[7] >>> 8;\n\n this._finished = true;\n return this;\n }\n\n update(m: Uint8Array): this {\n let mpos = 0;\n let bytes = m.length;\n let want: number;\n\n if (this._leftover) {\n want = (16 - this._leftover);\n if (want > bytes) {\n want = bytes;\n }\n for (let i = 0; i < want; i++) {\n this._buffer[this._leftover + i] = m[mpos + i];\n }\n bytes -= want;\n mpos += want;\n this._leftover += want;\n if (this._leftover < 16) {\n return this;\n }\n this._blocks(this._buffer, 0, 16);\n this._leftover = 0;\n }\n\n if (bytes >= 16) {\n want = bytes - (bytes % 16);\n this._blocks(m, mpos, want);\n mpos += want;\n bytes -= want;\n }\n\n if (bytes) {\n for (let i = 0; i < bytes; i++) {\n this._buffer[this._leftover + i] = m[mpos + i];\n }\n this._leftover += bytes;\n }\n\n return this;\n }\n\n digest(): Uint8Array {\n // TODO(dchest): it behaves differently than other hashes/HMAC,\n // because it throws when finished — others just return saved result.\n if (this._finished) {\n throw new Error(\"Poly1305 was finished\");\n }\n let mac = new Uint8Array(16);\n this.finish(mac);\n return mac;\n }\n\n clean(): this {\n wipe(this._buffer);\n wipe(this._r);\n wipe(this._h);\n wipe(this._pad);\n this._leftover = 0;\n this._fin = 0;\n this._finished = true; // mark as finished even if not\n return this;\n }\n}\n\n/**\n * Returns 16-byte authenticator of data using a one-time 32-byte key.\n *\n * Important: key should be used for only one message, it should never repeat.\n */\nexport function oneTimeAuth(key: Uint8Array, data: Uint8Array): Uint8Array {\n const h = new Poly1305(key);\n h.update(data);\n const digest = h.digest();\n h.clean();\n return digest;\n}\n\n/**\n * Returns true if two authenticators are 16-byte long and equal.\n * Uses contant-time comparison to avoid leaking timing information.\n */\nexport function equal(a: Uint8Array, b: Uint8Array): boolean {\n if (a.length !== DIGEST_LENGTH || b.length !== DIGEST_LENGTH) {\n return false;\n }\n return constantTimeEqual(a, b);\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package random provides functions to access system's\n * cryptographically secure random byte generator.\n */\n\nimport { RandomSource } from \"./source\";\nimport { SystemRandomSource } from \"./source/system\";\nimport { readUint32LE } from \"@stablelib/binary\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport { RandomSource } from \"./source\";\n\nexport const defaultRandomSource = new SystemRandomSource();\n\nexport function randomBytes(length: number, prng: RandomSource = defaultRandomSource): Uint8Array {\n return prng.randomBytes(length);\n}\n\n/**\n * Returns a uniformly random unsigned 32-bit integer.\n */\nexport function randomUint32(prng: RandomSource = defaultRandomSource): number {\n // Generate 4-byte random buffer.\n const buf = randomBytes(4, prng);\n\n // Convert bytes from buffer into a 32-bit integer.\n // It's not important which byte order to use, since\n // the result is random.\n const result = readUint32LE(buf);\n\n // Clean the buffer.\n wipe(buf);\n\n return result;\n}\n\n/** 62 alphanumeric characters for default charset of randomString() */\nconst ALPHANUMERIC = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n\n/**\n * Returns a uniform random string of the given length\n * with characters from the given charset.\n *\n * Charset must not have more than 256 characters.\n *\n * Default charset generates case-sensitive alphanumeric\n * strings (0-9, A-Z, a-z).\n */\nexport function randomString(\n length: number,\n charset = ALPHANUMERIC,\n prng: RandomSource = defaultRandomSource\n): string {\n if (charset.length < 2) {\n throw new Error(\"randomString charset is too short\");\n }\n if (charset.length > 256) {\n throw new Error(\"randomString charset is too long\");\n }\n let out = '';\n const charsLen = charset.length;\n const maxByte = 256 - (256 % charsLen);\n while (length > 0) {\n const buf = randomBytes(Math.ceil(length * 256 / maxByte), prng);\n for (let i = 0; i < buf.length && length > 0; i++) {\n const randomByte = buf[i];\n if (randomByte < maxByte) {\n out += charset.charAt(randomByte % charsLen);\n length--;\n }\n }\n wipe(buf);\n }\n return out;\n}\n\n/**\n * Returns uniform random string containing at least the given\n * number of bits of entropy.\n *\n * For example, randomStringForEntropy(128) will return a 22-character\n * alphanumeric string, while randomStringForEntropy(128, \"0123456789\")\n * will return a 39-character numeric string, both will contain at\n * least 128 bits of entropy.\n *\n * Default charset generates case-sensitive alphanumeric\n * strings (0-9, A-Z, a-z).\n */\nexport function randomStringForEntropy(\n bits: number,\n charset = ALPHANUMERIC,\n prng: RandomSource = defaultRandomSource\n): string {\n const length = Math.ceil(bits / (Math.log(charset.length) / Math.LN2));\n return randomString(length, charset, prng);\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { RandomSource } from \"./\";\n\nconst QUOTA = 65536;\n\nexport class BrowserRandomSource implements RandomSource {\n isAvailable = false;\n isInstantiated = false;\n\n private _crypto?: { getRandomValues: typeof window.crypto.getRandomValues };\n\n constructor() {\n const browserCrypto = typeof self !== 'undefined'\n ? (self.crypto || (self as { msCrypto?: any }).msCrypto) // IE11 has msCrypto\n : null;\n\n if (browserCrypto && browserCrypto.getRandomValues !== undefined) {\n this._crypto = browserCrypto;\n this.isAvailable = true;\n this.isInstantiated = true;\n }\n }\n\n randomBytes(length: number): Uint8Array {\n if (!this.isAvailable || !this._crypto) {\n throw new Error(\"Browser random byte generator is not available.\");\n }\n const out = new Uint8Array(length);\n for (let i = 0; i < out.length; i += QUOTA) {\n this._crypto.getRandomValues(out.subarray(i, i + Math.min(out.length - i, QUOTA)));\n }\n return out;\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { RandomSource } from \"./\";\nimport { wipe } from \"@stablelib/wipe\";\n\ndeclare function require(name: string): any;\n\nexport class NodeRandomSource implements RandomSource {\n isAvailable = false;\n isInstantiated = false;\n\n private _crypto: { randomBytes(n: number): Uint8Array } | undefined;\n\n constructor() {\n if (typeof require !== \"undefined\") {\n const nodeCrypto = require(\"crypto\");\n if (nodeCrypto && nodeCrypto.randomBytes) {\n this._crypto = nodeCrypto;\n this.isAvailable = true;\n this.isInstantiated = true;\n }\n }\n }\n\n randomBytes(length: number): Uint8Array {\n if (!this.isAvailable || !this._crypto) {\n throw new Error(\"Node.js random byte generator is not available.\");\n }\n\n // Get random bytes (result is Buffer).\n let buffer = this._crypto.randomBytes(length);\n\n // Make sure we got the length that we requested.\n if (buffer.length !== length) {\n throw new Error(\"NodeRandomSource: got fewer bytes than requested\");\n }\n\n // Allocate output array.\n const out = new Uint8Array(length);\n\n // Copy bytes from buffer to output.\n for (let i = 0; i < out.length; i++) {\n out[i] = buffer[i];\n }\n\n // Cleanup.\n wipe(buffer);\n\n return out;\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { RandomSource } from \"./\";\nimport { BrowserRandomSource } from \"./browser\";\nimport { NodeRandomSource } from \"./node\";\n\nexport class SystemRandomSource implements RandomSource {\n isAvailable = false;\n name = \"\";\n private _source: RandomSource;\n\n constructor() {\n // Try browser.\n this._source = new BrowserRandomSource();\n if (this._source.isAvailable) {\n this.isAvailable = true;\n this.name = \"Browser\";\n return;\n }\n\n // If no browser source, try Node.\n this._source = new NodeRandomSource();\n if (this._source.isAvailable) {\n this.isAvailable = true;\n this.name = \"Node\";\n return;\n }\n\n // No sources, we're out of options.\n }\n\n randomBytes(length: number): Uint8Array {\n if (!this.isAvailable) {\n throw new Error(\"System random byte generator is not available.\");\n }\n return this._source.randomBytes(length);\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package salsa20 implements Salsa20 stream cipher.\n */\n\nimport { writeUint32LE } from \"@stablelib/binary\";\nimport { wipe } from \"@stablelib/wipe\";\n\n// Number of Salsa20 rounds (Salsa20/20).\nconst ROUNDS = 20;\n\n/**\n * Applies the Salsa20 core function to 16-byte input,\n * 32-byte key key, and puts the result into 64-byte array out.\n */\nfunction core(out: Uint8Array, input: Uint8Array, key: Uint8Array): void {\n let j0 = 0x61707865; // \"expa\"\n let j1 = (key[3] << 24) | (key[2] << 16) | (key[1] << 8) | key[0];\n let j2 = (key[7] << 24) | (key[6] << 16) | (key[5] << 8) | key[4];\n let j3 = (key[11] << 24) | (key[10] << 16) | (key[9] << 8) | key[8];\n let j4 = (key[15] << 24) | (key[14] << 16) | (key[13] << 8) | key[12];\n let j5 = 0x3320646E; // \"nd 3\"\n let j6 = (input[3] << 24) | (input[2] << 16) | (input[1] << 8) | input[0];\n let j7 = (input[7] << 24) | (input[6] << 16) | (input[5] << 8) | input[4];\n let j8 = (input[11] << 24) | (input[10] << 16) | (input[9] << 8) | input[8];\n let j9 = (input[15] << 24) | (input[14] << 16) | (input[13] << 8) | input[12];\n let j10 = 0x79622D32; // \"2-by\"\n let j11 = (key[19] << 24) | (key[18] << 16) | (key[17] << 8) | key[16];\n let j12 = (key[23] << 24) | (key[22] << 16) | (key[21] << 8) | key[20];\n let j13 = (key[27] << 24) | (key[26] << 16) | (key[25] << 8) | key[24];\n let j14 = (key[31] << 24) | (key[30] << 16) | (key[29] << 8) | key[28];\n let j15 = 0x6B206574; // \"te k\"\n\n let x0 = j0;\n let x1 = j1;\n let x2 = j2;\n let x3 = j3;\n let x4 = j4;\n let x5 = j5;\n let x6 = j6;\n let x7 = j7;\n let x8 = j8;\n let x9 = j9;\n let x10 = j10;\n let x11 = j11;\n let x12 = j12;\n let x13 = j13;\n let x14 = j14;\n let x15 = j15;\n let u: number;\n\n for (let i = 0; i < ROUNDS; i += 2) {\n u = x0 + x12 | 0;\n x4 ^= u << 7 | u >>> (32 - 7);\n u = x4 + x0 | 0;\n x8 ^= u << 9 | u >>> (32 - 9);\n u = x8 + x4 | 0;\n x12 ^= u << 13 | u >>> (32 - 13);\n u = x12 + x8 | 0;\n x0 ^= u << 18 | u >>> (32 - 18);\n\n u = x5 + x1 | 0;\n x9 ^= u << 7 | u >>> (32 - 7);\n u = x9 + x5 | 0;\n x13 ^= u << 9 | u >>> (32 - 9);\n u = x13 + x9 | 0;\n x1 ^= u << 13 | u >>> (32 - 13);\n u = x1 + x13 | 0;\n x5 ^= u << 18 | u >>> (32 - 18);\n\n u = x10 + x6 | 0;\n x14 ^= u << 7 | u >>> (32 - 7);\n u = x14 + x10 | 0;\n x2 ^= u << 9 | u >>> (32 - 9);\n u = x2 + x14 | 0;\n x6 ^= u << 13 | u >>> (32 - 13);\n u = x6 + x2 | 0;\n x10 ^= u << 18 | u >>> (32 - 18);\n\n u = x15 + x11 | 0;\n x3 ^= u << 7 | u >>> (32 - 7);\n u = x3 + x15 | 0;\n x7 ^= u << 9 | u >>> (32 - 9);\n u = x7 + x3 | 0;\n x11 ^= u << 13 | u >>> (32 - 13);\n u = x11 + x7 | 0;\n x15 ^= u << 18 | u >>> (32 - 18);\n\n u = x0 + x3 | 0;\n x1 ^= u << 7 | u >>> (32 - 7);\n u = x1 + x0 | 0;\n x2 ^= u << 9 | u >>> (32 - 9);\n u = x2 + x1 | 0;\n x3 ^= u << 13 | u >>> (32 - 13);\n u = x3 + x2 | 0;\n x0 ^= u << 18 | u >>> (32 - 18);\n\n u = x5 + x4 | 0;\n x6 ^= u << 7 | u >>> (32 - 7);\n u = x6 + x5 | 0;\n x7 ^= u << 9 | u >>> (32 - 9);\n u = x7 + x6 | 0;\n x4 ^= u << 13 | u >>> (32 - 13);\n u = x4 + x7 | 0;\n x5 ^= u << 18 | u >>> (32 - 18);\n\n u = x10 + x9 | 0;\n x11 ^= u << 7 | u >>> (32 - 7);\n u = x11 + x10 | 0;\n x8 ^= u << 9 | u >>> (32 - 9);\n u = x8 + x11 | 0;\n x9 ^= u << 13 | u >>> (32 - 13);\n u = x9 + x8 | 0;\n x10 ^= u << 18 | u >>> (32 - 18);\n\n u = x15 + x14 | 0;\n x12 ^= u << 7 | u >>> (32 - 7);\n u = x12 + x15 | 0;\n x13 ^= u << 9 | u >>> (32 - 9);\n u = x13 + x12 | 0;\n x14 ^= u << 13 | u >>> (32 - 13);\n u = x14 + x13 | 0;\n x15 ^= u << 18 | u >>> (32 - 18);\n }\n writeUint32LE(x0 + j0 | 0, out, 0);\n writeUint32LE(x1 + j1 | 0, out, 4);\n writeUint32LE(x2 + j2 | 0, out, 8);\n writeUint32LE(x3 + j3 | 0, out, 12);\n writeUint32LE(x4 + j4 | 0, out, 16);\n writeUint32LE(x5 + j5 | 0, out, 20);\n writeUint32LE(x6 + j6 | 0, out, 24);\n writeUint32LE(x7 + j7 | 0, out, 28);\n writeUint32LE(x8 + j8 | 0, out, 32);\n writeUint32LE(x9 + j9 | 0, out, 36);\n writeUint32LE(x10 + j10 | 0, out, 40);\n writeUint32LE(x11 + j11 | 0, out, 44);\n writeUint32LE(x12 + j12 | 0, out, 48);\n writeUint32LE(x13 + j13 | 0, out, 52);\n writeUint32LE(x14 + j14 | 0, out, 56);\n writeUint32LE(x15 + j15 | 0, out, 60);\n}\n\n/**\n * Encrypt src with Salsa20/20 stream generated for the given 32-byte key\n * and 8-byte and write the result into dst and return it.\n *\n * dst and src may be the same, but otherwise must not overlap.\n *\n * Never use the same key and nonce to encrypt more than one message.\n *\n * If nonceInplaceCounterLength is not 0, the nonce is assumed to be a 16-byte\n * array with stream counter in first nonceInplaceCounterLength bytes and nonce\n * in the last remaining bytes. The counter will be incremented inplace for\n * each Salsa20 block. This is useful if you need to encrypt one stream of data\n * in chunks.\n */\nexport function streamXOR(key: Uint8Array, nonce: Uint8Array,\n src: Uint8Array, dst: Uint8Array, nonceInplaceCounterLength = 0): Uint8Array {\n // We only support 256-bit keys.\n if (key.length !== 32) {\n throw new Error(\"Salsa20: key size must be 32 bytes\");\n }\n\n if (dst.length < src.length) {\n throw new Error(\"Salsa20: destination is shorter than source\");\n }\n\n let nc: Uint8Array;\n let counterStart: number;\n\n if (nonceInplaceCounterLength === 0) {\n if (nonce.length !== 8) {\n throw new Error(\"Salsa20 nonce must be 8 bytes\");\n }\n nc = new Uint8Array(16);\n // First bytes of nc are nonce, set it.\n nc.set(nonce);\n // Last bytes are counter.\n counterStart = nonce.length;\n } else {\n if (nonce.length !== 16) {\n throw new Error(\"Salsa20 nonce with counter must be 16 bytes\");\n }\n // This will update passed nonce with counter inplace.\n nc = nonce;\n counterStart = 16 - nonceInplaceCounterLength;\n }\n\n // Allocate temporary space for Salsa20 block.\n const block = new Uint8Array(64);\n\n for (let i = 0; i < src.length; i += 64) {\n // Generate a block.\n core(block, nc, key);\n\n // XOR block bytes with src into dst.\n for (let j = i; j < i + 64 && j < src.length; j++) {\n dst[j] = src[j] ^ block[j - i];\n }\n\n // Increment counter.\n incrementCounter(nc, counterStart, nc.length - counterStart);\n }\n\n // Cleanup temporary space.\n wipe(block);\n\n if (nonceInplaceCounterLength === 0) {\n // Cleanup counter.\n wipe(nc);\n }\n\n return dst;\n}\n\n/**\n * Generate Salsa20/20 stream for the given 32-byte key and 8-byte nonce\n * and write it into dst and return it.\n *\n * Never use the same key and nonce to generate more than one stream.\n *\n * If nonceInplaceCounterLength is not 0, it behaves the same\n * with respect to the nonce as described in streamXOR documentation.\n *\n * stream is like streamXOR with all-zero src.\n */\nexport function stream(key: Uint8Array, nonce: Uint8Array,\n dst: Uint8Array, nonceInplaceCounterLength = 0): Uint8Array {\n wipe(dst);\n return streamXOR(key, nonce, dst, dst, nonceInplaceCounterLength);\n}\n\nfunction incrementCounter(counter: Uint8Array, pos: number, len: number) {\n let carry = 1;\n while (len--) {\n carry = carry + (counter[pos] & 0xff) | 0;\n counter[pos] = carry & 0xff;\n carry >>>= 8;\n pos++;\n }\n if (carry > 0) {\n throw new Error(\"Salsa20: counter overflow\");\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package sha512 implements SHA-2-512 cryptographic hash function.\n */\n\nimport { SerializableHash } from \"@stablelib/hash\";\nimport { readUint32BE, writeUint32BE } from \"@stablelib/binary\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const DIGEST_LENGTH = 64;\nexport const BLOCK_SIZE = 128;\n\n/**\n * SHA-2-512 cryptographic hash algorithm.\n */\nexport class SHA512 implements SerializableHash {\n /** Length of hash output */\n readonly digestLength: number = DIGEST_LENGTH;\n\n /** Block size */\n readonly blockSize: number = BLOCK_SIZE;\n\n // Note: Int32Array is used instead of Uint32Array for performance reasons.\n protected _stateHi = new Int32Array(8); // hash state, high bytes\n protected _stateLo = new Int32Array(8); // hash state, low bytes\n private _tempHi = new Int32Array(16); // temporary state, high bytes\n private _tempLo = new Int32Array(16); // temporary state, low bytes\n private _buffer = new Uint8Array(256); // buffer for data to hash\n private _bufferLength = 0; // number of bytes in buffer\n private _bytesHashed = 0; // number of total bytes hashed\n private _finished = false; // indicates whether the hash was finalized\n\n constructor() {\n this.reset();\n }\n\n protected _initState() {\n this._stateHi[0] = 0x6a09e667;\n this._stateHi[1] = 0xbb67ae85;\n this._stateHi[2] = 0x3c6ef372;\n this._stateHi[3] = 0xa54ff53a;\n this._stateHi[4] = 0x510e527f;\n this._stateHi[5] = 0x9b05688c;\n this._stateHi[6] = 0x1f83d9ab;\n this._stateHi[7] = 0x5be0cd19;\n\n this._stateLo[0] = 0xf3bcc908;\n this._stateLo[1] = 0x84caa73b;\n this._stateLo[2] = 0xfe94f82b;\n this._stateLo[3] = 0x5f1d36f1;\n this._stateLo[4] = 0xade682d1;\n this._stateLo[5] = 0x2b3e6c1f;\n this._stateLo[6] = 0xfb41bd6b;\n this._stateLo[7] = 0x137e2179;\n }\n\n /**\n * Resets hash state making it possible\n * to re-use this instance to hash other data.\n */\n reset(): this {\n this._initState();\n this._bufferLength = 0;\n this._bytesHashed = 0;\n this._finished = false;\n return this;\n }\n\n /**\n * Cleans internal buffers and resets hash state.\n */\n clean() {\n wipe(this._buffer);\n wipe(this._tempHi);\n wipe(this._tempLo);\n this.reset();\n }\n\n /**\n * Updates hash state with the given data.\n *\n * Throws error when trying to update already finalized hash:\n * instance must be reset to update it again.\n */\n update(data: Uint8Array, dataLength: number = data.length): this {\n if (this._finished) {\n throw new Error(\"SHA512: can't update because hash was finished.\");\n }\n let dataPos = 0;\n this._bytesHashed += dataLength;\n if (this._bufferLength > 0) {\n while (this._bufferLength < BLOCK_SIZE && dataLength > 0) {\n this._buffer[this._bufferLength++] = data[dataPos++];\n dataLength--;\n }\n if (this._bufferLength === this.blockSize) {\n hashBlocks(this._tempHi, this._tempLo, this._stateHi, this._stateLo,\n this._buffer, 0, this.blockSize);\n this._bufferLength = 0;\n }\n }\n if (dataLength >= this.blockSize) {\n dataPos = hashBlocks(this._tempHi, this._tempLo, this._stateHi, this._stateLo,\n data, dataPos, dataLength);\n dataLength %= this.blockSize;\n }\n while (dataLength > 0) {\n this._buffer[this._bufferLength++] = data[dataPos++];\n dataLength--;\n }\n return this;\n }\n\n /**\n * Finalizes hash state and puts hash into out.\n * If hash was already finalized, puts the same value.\n */\n finish(out: Uint8Array): this {\n if (!this._finished) {\n const bytesHashed = this._bytesHashed;\n const left = this._bufferLength;\n const bitLenHi = (bytesHashed / 0x20000000) | 0;\n const bitLenLo = bytesHashed << 3;\n const padLength = (bytesHashed % 128 < 112) ? 128 : 256;\n\n this._buffer[left] = 0x80;\n for (let i = left + 1; i < padLength - 8; i++) {\n this._buffer[i] = 0;\n }\n writeUint32BE(bitLenHi, this._buffer, padLength - 8);\n writeUint32BE(bitLenLo, this._buffer, padLength - 4);\n\n hashBlocks(this._tempHi, this._tempLo, this._stateHi, this._stateLo, this._buffer, 0, padLength);\n\n this._finished = true;\n }\n\n for (let i = 0; i < this.digestLength / 8; i++) {\n writeUint32BE(this._stateHi[i], out, i * 8);\n writeUint32BE(this._stateLo[i], out, i * 8 + 4);\n }\n\n return this;\n }\n\n /**\n * Returns the final hash digest.\n */\n digest(): Uint8Array {\n const out = new Uint8Array(this.digestLength);\n this.finish(out);\n return out;\n }\n\n /**\n * Function useful for HMAC/PBKDF2 optimization. Returns hash state to be\n * used with restoreState(). Only chain value is saved, not buffers or\n * other state variables.\n */\n saveState(): SavedState {\n if (this._finished) {\n throw new Error(\"SHA256: cannot save finished state\");\n }\n return {\n stateHi: new Int32Array(this._stateHi),\n stateLo: new Int32Array(this._stateLo),\n buffer: this._bufferLength > 0 ? new Uint8Array(this._buffer) : undefined,\n bufferLength: this._bufferLength,\n bytesHashed: this._bytesHashed\n };\n }\n\n /**\n * Function useful for HMAC/PBKDF2 optimization. Restores state saved by\n * saveState() and sets bytesHashed to the given value.\n */\n restoreState(savedState: SavedState): this {\n this._stateHi.set(savedState.stateHi);\n this._stateLo.set(savedState.stateLo);\n this._bufferLength = savedState.bufferLength;\n if (savedState.buffer) {\n this._buffer.set(savedState.buffer);\n }\n this._bytesHashed = savedState.bytesHashed;\n this._finished = false;\n return this;\n }\n\n /**\n * Cleans state returned by saveState().\n */\n cleanSavedState(savedState: SavedState) {\n wipe(savedState.stateHi);\n wipe(savedState.stateLo);\n if (savedState.buffer) {\n wipe(savedState.buffer);\n }\n savedState.bufferLength = 0;\n savedState.bytesHashed = 0;\n }\n}\n\nexport type SavedState = {\n stateHi: Int32Array;\n stateLo: Int32Array;\n buffer: Uint8Array | undefined;\n bufferLength: number;\n bytesHashed: number;\n};\n\n// Constants\nconst K = new Int32Array([\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n]);\n\n\nfunction hashBlocks(wh: Int32Array, wl: Int32Array, hh: Int32Array, hl: Int32Array,\n m: Uint8Array, pos: number, len: number): number {\n\n let ah0 = hh[0],\n ah1 = hh[1],\n ah2 = hh[2],\n ah3 = hh[3],\n ah4 = hh[4],\n ah5 = hh[5],\n ah6 = hh[6],\n ah7 = hh[7],\n\n al0 = hl[0],\n al1 = hl[1],\n al2 = hl[2],\n al3 = hl[3],\n al4 = hl[4],\n al5 = hl[5],\n al6 = hl[6],\n al7 = hl[7];\n\n let h: number, l: number;\n let th: number, tl: number;\n let a: number, b: number, c: number, d: number;\n\n while (len >= 128) {\n for (let i = 0; i < 16; i++) {\n const j = 8 * i + pos;\n wh[i] = readUint32BE(m, j);\n wl[i] = readUint32BE(m, j + 4);\n }\n for (let i = 0; i < 80; i++) {\n let bh0 = ah0;\n let bh1 = ah1;\n let bh2 = ah2;\n let bh3 = ah3;\n let bh4 = ah4;\n let bh5 = ah5;\n let bh6 = ah6;\n let bh7 = ah7;\n\n let bl0 = al0;\n let bl1 = al1;\n let bl2 = al2;\n let bl3 = al3;\n let bl4 = al4;\n let bl5 = al5;\n let bl6 = al6;\n let bl7 = al7;\n\n // add\n h = ah7;\n l = al7;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n // Sigma1\n h = ((ah4 >>> 14) | (al4 << (32 - 14))) ^ ((ah4 >>> 18) |\n (al4 << (32 - 18))) ^ ((al4 >>> (41 - 32)) | (ah4 << (32 - (41 - 32))));\n l = ((al4 >>> 14) | (ah4 << (32 - 14))) ^ ((al4 >>> 18) |\n (ah4 << (32 - 18))) ^ ((ah4 >>> (41 - 32)) | (al4 << (32 - (41 - 32))));\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // Ch\n h = (ah4 & ah5) ^ (~ah4 & ah6);\n l = (al4 & al5) ^ (~al4 & al6);\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // K\n h = K[i * 2];\n l = K[i * 2 + 1];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // w\n h = wh[i % 16];\n l = wl[i % 16];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n th = c & 0xffff | d << 16;\n tl = a & 0xffff | b << 16;\n\n // add\n h = th;\n l = tl;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n // Sigma0\n h = ((ah0 >>> 28) | (al0 << (32 - 28))) ^ ((al0 >>> (34 - 32)) |\n (ah0 << (32 - (34 - 32)))) ^ ((al0 >>> (39 - 32)) | (ah0 << (32 - (39 - 32))));\n l = ((al0 >>> 28) | (ah0 << (32 - 28))) ^ ((ah0 >>> (34 - 32)) |\n (al0 << (32 - (34 - 32)))) ^ ((ah0 >>> (39 - 32)) | (al0 << (32 - (39 - 32))));\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // Maj\n h = (ah0 & ah1) ^ (ah0 & ah2) ^ (ah1 & ah2);\n l = (al0 & al1) ^ (al0 & al2) ^ (al1 & al2);\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n bh7 = (c & 0xffff) | (d << 16);\n bl7 = (a & 0xffff) | (b << 16);\n\n // add\n h = bh3;\n l = bl3;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = th;\n l = tl;\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n bh3 = (c & 0xffff) | (d << 16);\n bl3 = (a & 0xffff) | (b << 16);\n\n ah1 = bh0;\n ah2 = bh1;\n ah3 = bh2;\n ah4 = bh3;\n ah5 = bh4;\n ah6 = bh5;\n ah7 = bh6;\n ah0 = bh7;\n\n al1 = bl0;\n al2 = bl1;\n al3 = bl2;\n al4 = bl3;\n al5 = bl4;\n al6 = bl5;\n al7 = bl6;\n al0 = bl7;\n\n if (i % 16 === 15) {\n for (let j = 0; j < 16; j++) {\n // add\n h = wh[j];\n l = wl[j];\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = wh[(j + 9) % 16];\n l = wl[(j + 9) % 16];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // sigma0\n th = wh[(j + 1) % 16];\n tl = wl[(j + 1) % 16];\n h = ((th >>> 1) | (tl << (32 - 1))) ^ ((th >>> 8) |\n (tl << (32 - 8))) ^ (th >>> 7);\n l = ((tl >>> 1) | (th << (32 - 1))) ^ ((tl >>> 8) |\n (th << (32 - 8))) ^ ((tl >>> 7) | (th << (32 - 7)));\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // sigma1\n th = wh[(j + 14) % 16];\n tl = wl[(j + 14) % 16];\n h = ((th >>> 19) | (tl << (32 - 19))) ^ ((tl >>> (61 - 32)) |\n (th << (32 - (61 - 32)))) ^ (th >>> 6);\n l = ((tl >>> 19) | (th << (32 - 19))) ^ ((th >>> (61 - 32)) |\n (tl << (32 - (61 - 32)))) ^ ((tl >>> 6) | (th << (32 - 6)));\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n wh[j] = (c & 0xffff) | (d << 16);\n wl[j] = (a & 0xffff) | (b << 16);\n }\n }\n }\n\n // add\n h = ah0;\n l = al0;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[0];\n l = hl[0];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[0] = ah0 = (c & 0xffff) | (d << 16);\n hl[0] = al0 = (a & 0xffff) | (b << 16);\n\n h = ah1;\n l = al1;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[1];\n l = hl[1];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[1] = ah1 = (c & 0xffff) | (d << 16);\n hl[1] = al1 = (a & 0xffff) | (b << 16);\n\n h = ah2;\n l = al2;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[2];\n l = hl[2];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[2] = ah2 = (c & 0xffff) | (d << 16);\n hl[2] = al2 = (a & 0xffff) | (b << 16);\n\n h = ah3;\n l = al3;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[3];\n l = hl[3];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[3] = ah3 = (c & 0xffff) | (d << 16);\n hl[3] = al3 = (a & 0xffff) | (b << 16);\n\n h = ah4;\n l = al4;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[4];\n l = hl[4];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[4] = ah4 = (c & 0xffff) | (d << 16);\n hl[4] = al4 = (a & 0xffff) | (b << 16);\n\n h = ah5;\n l = al5;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[5];\n l = hl[5];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[5] = ah5 = (c & 0xffff) | (d << 16);\n hl[5] = al5 = (a & 0xffff) | (b << 16);\n\n h = ah6;\n l = al6;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[6];\n l = hl[6];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[6] = ah6 = (c & 0xffff) | (d << 16);\n hl[6] = al6 = (a & 0xffff) | (b << 16);\n\n h = ah7;\n l = al7;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[7];\n l = hl[7];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[7] = ah7 = (c & 0xffff) | (d << 16);\n hl[7] = al7 = (a & 0xffff) | (b << 16);\n\n pos += 128;\n len -= 128;\n }\n\n return pos;\n}\n\nexport function hash(data: Uint8Array): Uint8Array {\n const h = new SHA512();\n h.update(data);\n const digest = h.digest();\n h.clean();\n return digest;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package utf8 implements UTF-8 encoding and decoding.\n */\n\nconst INVALID_UTF16 = \"utf8: invalid string\";\nconst INVALID_UTF8 = \"utf8: invalid source encoding\";\n\n/**\n * Encodes the given string into UTF-8 byte array.\n * Throws if the source string has invalid UTF-16 encoding.\n */\nexport function encode(s: string): Uint8Array {\n // Calculate result length and allocate output array.\n // encodedLength() also validates string and throws errors,\n // so we don't need repeat validation here.\n const arr = new Uint8Array(encodedLength(s));\n\n let pos = 0;\n for (let i = 0; i < s.length; i++) {\n let c = s.charCodeAt(i);\n if (c < 0x80) {\n arr[pos++] = c;\n } else if (c < 0x800) {\n arr[pos++] = 0xc0 | c >> 6;\n arr[pos++] = 0x80 | c & 0x3f;\n } else if (c < 0xd800) {\n arr[pos++] = 0xe0 | c >> 12;\n arr[pos++] = 0x80 | (c >> 6) & 0x3f;\n arr[pos++] = 0x80 | c & 0x3f;\n } else {\n i++; // get one more character\n c = (c & 0x3ff) << 10;\n c |= s.charCodeAt(i) & 0x3ff;\n c += 0x10000;\n\n arr[pos++] = 0xf0 | c >> 18;\n arr[pos++] = 0x80 | (c >> 12) & 0x3f;\n arr[pos++] = 0x80 | (c >> 6) & 0x3f;\n arr[pos++] = 0x80 | c & 0x3f;\n }\n }\n return arr;\n}\n\n/**\n * Returns the number of bytes required to encode the given string into UTF-8.\n * Throws if the source string has invalid UTF-16 encoding.\n */\nexport function encodedLength(s: string): number {\n let result = 0;\n for (let i = 0; i < s.length; i++) {\n const c = s.charCodeAt(i);\n if (c < 0x80) {\n result += 1;\n } else if (c < 0x800) {\n result += 2;\n } else if (c < 0xd800) {\n result += 3;\n } else if (c <= 0xdfff) {\n if (i >= s.length - 1) {\n throw new Error(INVALID_UTF16);\n }\n i++; // \"eat\" next character\n result += 4;\n } else {\n throw new Error(INVALID_UTF16);\n }\n }\n return result;\n}\n\n/**\n * Decodes the given byte array from UTF-8 into a string.\n * Throws if encoding is invalid.\n */\nexport function decode(arr: Uint8Array): string {\n const chars: string[] = [];\n for (let i = 0; i < arr.length; i++) {\n let b = arr[i];\n\n if (b & 0x80) {\n let min;\n if (b < 0xe0) {\n // Need 1 more byte.\n if (i >= arr.length) {\n throw new Error(INVALID_UTF8);\n }\n const n1 = arr[++i];\n if ((n1 & 0xc0) !== 0x80) {\n throw new Error(INVALID_UTF8);\n }\n b = (b & 0x1f) << 6 | (n1 & 0x3f);\n min = 0x80;\n } else if (b < 0xf0) {\n // Need 2 more bytes.\n if (i >= arr.length - 1) {\n throw new Error(INVALID_UTF8);\n }\n const n1 = arr[++i];\n const n2 = arr[++i];\n if ((n1 & 0xc0) !== 0x80 || (n2 & 0xc0) !== 0x80) {\n throw new Error(INVALID_UTF8);\n }\n b = (b & 0x0f) << 12 | (n1 & 0x3f) << 6 | (n2 & 0x3f);\n min = 0x800;\n } else if (b < 0xf8) {\n // Need 3 more bytes.\n if (i >= arr.length - 2) {\n throw new Error(INVALID_UTF8);\n }\n const n1 = arr[++i];\n const n2 = arr[++i];\n const n3 = arr[++i];\n if ((n1 & 0xc0) !== 0x80 || (n2 & 0xc0) !== 0x80 || (n3 & 0xc0) !== 0x80) {\n throw new Error(INVALID_UTF8);\n }\n b = (b & 0x0f) << 18 | (n1 & 0x3f) << 12 | (n2 & 0x3f) << 6 | (n3 & 0x3f);\n min = 0x10000;\n } else {\n throw new Error(INVALID_UTF8);\n }\n\n if (b < min || (b >= 0xd800 && b <= 0xdfff)) {\n throw new Error(INVALID_UTF8);\n }\n\n if (b >= 0x10000) {\n // Surrogate pair.\n if (b > 0x10ffff) {\n throw new Error(INVALID_UTF8);\n }\n b -= 0x10000;\n chars.push(String.fromCharCode(0xd800 | (b >> 10)));\n b = 0xdc00 | (b & 0x3ff);\n }\n }\n\n chars.push(String.fromCharCode(b));\n }\n return chars.join(\"\");\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package wipe implements functions for zeroing arrays.\n */\n\nexport type NumericArray = number[] | Uint8Array | Int8Array | Uint16Array\n | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array;\n\n/**\n * Sets all values in the given array to zero and returns it.\n *\n * The fact that it sets bytes to zero can be relied on.\n *\n * There is no guarantee that this function makes data disappear from memory,\n * as runtime implementation can, for example, have copying garbage collector\n * that will make copies of sensitive data before we wipe it. Or that an\n * operating system will write our data to swap or sleep image. Another thing\n * is that an optimizing compiler can remove calls to this function or make it\n * no-op. There's nothing we can do with it, so we just do our best and hope\n * that everything will be okay and good will triumph over evil.\n */\nexport function wipe(array: NumericArray): NumericArray {\n // Right now it's similar to array.fill(0). If it turns\n // out that runtimes optimize this call away, maybe\n // we can try something else.\n for (let i = 0; i < array.length; i++) {\n array[i] = 0;\n }\n return array;\n}\n","// Copyright (C) 2020 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { KeyAgreement } from \"@stablelib/keyagreement\";\nimport { randomBytes, RandomSource } from \"@stablelib/random\";\nimport { wipe } from \"@stablelib/wipe\";\nimport { PUBLIC_KEY_LENGTH,\n SECRET_KEY_LENGTH,\n SHARED_KEY_LENGTH,\n generateKeyPairFromSeed,\n sharedKey,\n KeyPair } from \"@stablelib/x25519\";\nimport { SessionKeys, clientSessionKeysFromSharedKey, serverSessionKeysFromSharedKey } from \"./x25519-session\";\n\n/** Constants for key agreement */\nexport const OFFER_MESSAGE_LENGTH = PUBLIC_KEY_LENGTH;\nexport const ACCEPT_MESSAGE_LENGTH = PUBLIC_KEY_LENGTH;\nexport const SAVED_STATE_LENGTH = SECRET_KEY_LENGTH;\nexport const SECRET_SEED_LENGTH = SECRET_KEY_LENGTH;\n\n/**\n * X25519 key agreement using ephemeral key pairs.\n *\n * Note that unless this key agreement is combined with an authentication\n * method, such as public key signatures, it's vulnerable to man-in-the-middle\n * attacks.\n */\nexport class X25519Session implements KeyAgreement {\n readonly offerMessageLength = OFFER_MESSAGE_LENGTH;\n readonly acceptMessageLength = ACCEPT_MESSAGE_LENGTH;\n readonly sharedKeyLength = SHARED_KEY_LENGTH;\n readonly savedStateLength = SAVED_STATE_LENGTH;\n\n private _seed: Uint8Array;\n private _keyPair: KeyPair | undefined;\n private _sharedKey: Uint8Array | undefined;\n private _sessionKeys: SessionKeys | undefined;\n\n constructor(secretSeed?: Uint8Array, prng?: RandomSource) {\n this._seed = secretSeed || randomBytes(SECRET_KEY_LENGTH, prng);\n }\n\n saveState(): Uint8Array {\n return new Uint8Array(this._seed);\n }\n\n restoreState(savedState: Uint8Array): this {\n this._seed = new Uint8Array(savedState);\n return this;\n }\n\n clean(): void {\n if (this._seed) {\n wipe(this._seed);\n }\n if (this._keyPair) {\n wipe(this._keyPair.secretKey);\n wipe(this._keyPair.publicKey);\n }\n if (this._sharedKey) {\n wipe(this._sharedKey);\n }\n if (this._sessionKeys) {\n wipe(this._sessionKeys.receive);\n wipe(this._sessionKeys.send);\n }\n }\n\n offer(): Uint8Array {\n this._keyPair = generateKeyPairFromSeed(this._seed);\n return new Uint8Array(this._keyPair.publicKey);\n }\n\n accept(offerMsg: Uint8Array): Uint8Array {\n if (this._keyPair) {\n throw new Error(\"X25519Session: accept shouldn't be called by offering party\");\n }\n if (offerMsg.length !== this.offerMessageLength) {\n throw new Error(\"X25519Session: incorrect offer message length\");\n }\n if (this._sharedKey) {\n throw new Error(\"X25519Session: accept was already called\");\n }\n const keyPair = generateKeyPairFromSeed(this._seed);\n this._sharedKey = sharedKey(keyPair.secretKey, offerMsg);\n this._sessionKeys = clientSessionKeysFromSharedKey(this._sharedKey, keyPair.publicKey, offerMsg);\n wipe(keyPair.secretKey);\n return keyPair.publicKey;\n }\n\n finish(acceptMsg: Uint8Array): this {\n if (acceptMsg.length !== this.acceptMessageLength) {\n throw new Error(\"X25519Session: incorrect accept message length\");\n }\n if (!this._keyPair) {\n throw new Error(\"X25519Session: no offer state\");\n }\n if (this._sharedKey) {\n throw new Error(\"X25519Session: finish was already called\");\n }\n this._sharedKey = sharedKey(this._keyPair.secretKey, acceptMsg);\n this._sessionKeys = serverSessionKeysFromSharedKey(this._sharedKey, this._keyPair.publicKey, acceptMsg);\n return this;\n }\n\n getSharedKey(): Uint8Array {\n if (!this._sharedKey) {\n throw new Error(\"X25519Session: no shared key established\");\n }\n return new Uint8Array(this._sharedKey);\n }\n\n getSessionKeys(): SessionKeys {\n if (!this._sessionKeys) {\n throw new Error(\"X25519Session: no shared key established\");\n }\n return {\n receive: new Uint8Array(this._sessionKeys.receive),\n send: new Uint8Array(this._sessionKeys.send),\n };\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package x25519-session implements libsodium compatible session keys generation based on X25519 key agreement.\n */\n\nimport { BLAKE2b } from \"@stablelib/blake2b\";\nimport { Hash } from \"@stablelib/hash\";\nimport { sharedKey, KeyPair } from \"@stablelib/x25519\";\nexport { X25519Session } from \"./keyagreement\";\n\nconst SESSION_KEY_LENGTH = 32;\n\nexport interface SessionKeys {\n receive: Uint8Array;\n send: Uint8Array;\n}\n\n/**\n * Generates server-side session encryption keys from the shared key obtained during agreement phase.\n */\nexport function serverSessionKeysFromSharedKey(sharedKey: Uint8Array,\n myPublicKey: Uint8Array,\n theirPublicKey: Uint8Array,\n hash: new() => Hash = BLAKE2b): SessionKeys {\n const state = new hash();\n if (state.digestLength !== SESSION_KEY_LENGTH * 2) {\n throw new Error(\"X25519: incorrect digest length\");\n }\n const h = state.update(sharedKey).update(theirPublicKey).update(myPublicKey).digest();\n\n return {\n send: h.subarray(0, SESSION_KEY_LENGTH),\n receive: h.subarray(SESSION_KEY_LENGTH),\n };\n}\n\n/**\n * Generates client-side session encryption keys from the shared key obtained during agreement phase.\n */\nexport function clientSessionKeysFromSharedKey(sharedKey: Uint8Array,\n myPublicKey: Uint8Array,\n theirPublicKey: Uint8Array,\n hash: new() => Hash = BLAKE2b): SessionKeys {\n const state = new hash();\n if (state.digestLength !== SESSION_KEY_LENGTH * 2) {\n throw new Error(\"X25519: incorrect digest length\");\n }\n const h = state.update(sharedKey).update(myPublicKey).update(theirPublicKey).digest();\n\n return {\n receive: h.subarray(0, SESSION_KEY_LENGTH),\n send: h.subarray(SESSION_KEY_LENGTH),\n };\n}\n\n/**\n * Generates server-side session encryption keys. Uses a key pair and a peer's public key to generate the shared key.\n */\nexport function serverSessionKeys(myKeyPair: KeyPair, theirPublicKey: Uint8Array, hash: new() => Hash = BLAKE2b): SessionKeys {\n const sk = sharedKey(myKeyPair.secretKey, theirPublicKey);\n return serverSessionKeysFromSharedKey(sk, myKeyPair.publicKey, theirPublicKey, hash);\n}\n\n/**\n * Generates client-side session encryption keys. Uses a key pair and a peer's public key to generate the shared key.\n */\nexport function clientSessionKeys(myKeyPair: KeyPair, theirPublicKey: Uint8Array, hash: new() => Hash = BLAKE2b): SessionKeys {\n const sk = sharedKey(myKeyPair.secretKey, theirPublicKey);\n return clientSessionKeysFromSharedKey(sk, myKeyPair.publicKey, theirPublicKey, hash);\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package x25519 implements X25519 key agreement.\n */\n\nimport { randomBytes, RandomSource } from \"@stablelib/random\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const PUBLIC_KEY_LENGTH = 32;\nexport const SECRET_KEY_LENGTH = 32;\nexport const SHARED_KEY_LENGTH = 32;\n\n// TODO(dchest): some functions are copies of ../sign/ed25519.\n// Find a way to combine them without opening up to public.\n\n// Ported from TweetNaCl.js, which is ported from TweetNaCl\n// by Dmitry Chestnykh and Devi Mandiri.\n// Public domain.\n// https://tweetnacl.js.org\n\n// TweetNaCl contributors:\n// Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen,\n// Tanja Lange, Peter Schwabe, Sjaak Smetsers.\n// Public domain.\n// https://tweetnacl.cr.yp.to/\n\ntype GF = Float64Array;\n\n// Returns new zero-filled 16-element GF (Float64Array).\n// If passed an array of numbers, prefills the returned\n// array with them.\n//\n// We use Float64Array, because we need 48-bit numbers\n// for this implementation.\nfunction gf(init?: number[]): GF {\n const r = new Float64Array(16);\n if (init) {\n for (let i = 0; i < init.length; i++) {\n r[i] = init[i];\n }\n }\n return r;\n}\n\n// Base point.\nconst _9 = new Uint8Array(32); _9[0] = 9;\n\nconst _121665 = gf([0xdb41, 1]);\n\nfunction car25519(o: GF) {\n let c = 1;\n for (let i = 0; i < 16; i++) {\n let v = o[i] + c + 65535;\n c = Math.floor(v / 65536);\n o[i] = v - c * 65536;\n }\n o[0] += c - 1 + 37 * (c - 1);\n}\n\nfunction sel25519(p: GF, q: GF, b: number) {\n const c = ~(b - 1);\n for (let i = 0; i < 16; i++) {\n const t = c & (p[i] ^ q[i]);\n p[i] ^= t;\n q[i] ^= t;\n }\n}\n\nfunction pack25519(o: Uint8Array, n: GF) {\n const m = gf();\n const t = gf();\n for (let i = 0; i < 16; i++) {\n t[i] = n[i];\n }\n car25519(t);\n car25519(t);\n car25519(t);\n for (let j = 0; j < 2; j++) {\n m[0] = t[0] - 0xffed;\n for (let i = 1; i < 15; i++) {\n m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1);\n m[i - 1] &= 0xffff;\n }\n m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1);\n const b = (m[15] >> 16) & 1;\n m[14] &= 0xffff;\n sel25519(t, m, 1 - b);\n }\n for (let i = 0; i < 16; i++) {\n o[2 * i] = t[i] & 0xff;\n o[2 * i + 1] = t[i] >> 8;\n }\n}\n\nfunction unpack25519(o: GF, n: Uint8Array) {\n for (let i = 0; i < 16; i++) {\n o[i] = n[2 * i] + (n[2 * i + 1] << 8);\n }\n o[15] &= 0x7fff;\n}\n\nfunction add(o: GF, a: GF, b: GF) {\n for (let i = 0; i < 16; i++) {\n o[i] = a[i] + b[i];\n }\n}\n\nfunction sub(o: GF, a: GF, b: GF) {\n for (let i = 0; i < 16; i++) {\n o[i] = a[i] - b[i];\n }\n}\n\nfunction mul(o: GF, a: GF, b: GF) {\n let v: number, c: number,\n t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0,\n t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0,\n t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0,\n t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0,\n b0 = b[0],\n b1 = b[1],\n b2 = b[2],\n b3 = b[3],\n b4 = b[4],\n b5 = b[5],\n b6 = b[6],\n b7 = b[7],\n b8 = b[8],\n b9 = b[9],\n b10 = b[10],\n b11 = b[11],\n b12 = b[12],\n b13 = b[13],\n b14 = b[14],\n b15 = b[15];\n\n v = a[0];\n t0 += v * b0;\n t1 += v * b1;\n t2 += v * b2;\n t3 += v * b3;\n t4 += v * b4;\n t5 += v * b5;\n t6 += v * b6;\n t7 += v * b7;\n t8 += v * b8;\n t9 += v * b9;\n t10 += v * b10;\n t11 += v * b11;\n t12 += v * b12;\n t13 += v * b13;\n t14 += v * b14;\n t15 += v * b15;\n v = a[1];\n t1 += v * b0;\n t2 += v * b1;\n t3 += v * b2;\n t4 += v * b3;\n t5 += v * b4;\n t6 += v * b5;\n t7 += v * b6;\n t8 += v * b7;\n t9 += v * b8;\n t10 += v * b9;\n t11 += v * b10;\n t12 += v * b11;\n t13 += v * b12;\n t14 += v * b13;\n t15 += v * b14;\n t16 += v * b15;\n v = a[2];\n t2 += v * b0;\n t3 += v * b1;\n t4 += v * b2;\n t5 += v * b3;\n t6 += v * b4;\n t7 += v * b5;\n t8 += v * b6;\n t9 += v * b7;\n t10 += v * b8;\n t11 += v * b9;\n t12 += v * b10;\n t13 += v * b11;\n t14 += v * b12;\n t15 += v * b13;\n t16 += v * b14;\n t17 += v * b15;\n v = a[3];\n t3 += v * b0;\n t4 += v * b1;\n t5 += v * b2;\n t6 += v * b3;\n t7 += v * b4;\n t8 += v * b5;\n t9 += v * b6;\n t10 += v * b7;\n t11 += v * b8;\n t12 += v * b9;\n t13 += v * b10;\n t14 += v * b11;\n t15 += v * b12;\n t16 += v * b13;\n t17 += v * b14;\n t18 += v * b15;\n v = a[4];\n t4 += v * b0;\n t5 += v * b1;\n t6 += v * b2;\n t7 += v * b3;\n t8 += v * b4;\n t9 += v * b5;\n t10 += v * b6;\n t11 += v * b7;\n t12 += v * b8;\n t13 += v * b9;\n t14 += v * b10;\n t15 += v * b11;\n t16 += v * b12;\n t17 += v * b13;\n t18 += v * b14;\n t19 += v * b15;\n v = a[5];\n t5 += v * b0;\n t6 += v * b1;\n t7 += v * b2;\n t8 += v * b3;\n t9 += v * b4;\n t10 += v * b5;\n t11 += v * b6;\n t12 += v * b7;\n t13 += v * b8;\n t14 += v * b9;\n t15 += v * b10;\n t16 += v * b11;\n t17 += v * b12;\n t18 += v * b13;\n t19 += v * b14;\n t20 += v * b15;\n v = a[6];\n t6 += v * b0;\n t7 += v * b1;\n t8 += v * b2;\n t9 += v * b3;\n t10 += v * b4;\n t11 += v * b5;\n t12 += v * b6;\n t13 += v * b7;\n t14 += v * b8;\n t15 += v * b9;\n t16 += v * b10;\n t17 += v * b11;\n t18 += v * b12;\n t19 += v * b13;\n t20 += v * b14;\n t21 += v * b15;\n v = a[7];\n t7 += v * b0;\n t8 += v * b1;\n t9 += v * b2;\n t10 += v * b3;\n t11 += v * b4;\n t12 += v * b5;\n t13 += v * b6;\n t14 += v * b7;\n t15 += v * b8;\n t16 += v * b9;\n t17 += v * b10;\n t18 += v * b11;\n t19 += v * b12;\n t20 += v * b13;\n t21 += v * b14;\n t22 += v * b15;\n v = a[8];\n t8 += v * b0;\n t9 += v * b1;\n t10 += v * b2;\n t11 += v * b3;\n t12 += v * b4;\n t13 += v * b5;\n t14 += v * b6;\n t15 += v * b7;\n t16 += v * b8;\n t17 += v * b9;\n t18 += v * b10;\n t19 += v * b11;\n t20 += v * b12;\n t21 += v * b13;\n t22 += v * b14;\n t23 += v * b15;\n v = a[9];\n t9 += v * b0;\n t10 += v * b1;\n t11 += v * b2;\n t12 += v * b3;\n t13 += v * b4;\n t14 += v * b5;\n t15 += v * b6;\n t16 += v * b7;\n t17 += v * b8;\n t18 += v * b9;\n t19 += v * b10;\n t20 += v * b11;\n t21 += v * b12;\n t22 += v * b13;\n t23 += v * b14;\n t24 += v * b15;\n v = a[10];\n t10 += v * b0;\n t11 += v * b1;\n t12 += v * b2;\n t13 += v * b3;\n t14 += v * b4;\n t15 += v * b5;\n t16 += v * b6;\n t17 += v * b7;\n t18 += v * b8;\n t19 += v * b9;\n t20 += v * b10;\n t21 += v * b11;\n t22 += v * b12;\n t23 += v * b13;\n t24 += v * b14;\n t25 += v * b15;\n v = a[11];\n t11 += v * b0;\n t12 += v * b1;\n t13 += v * b2;\n t14 += v * b3;\n t15 += v * b4;\n t16 += v * b5;\n t17 += v * b6;\n t18 += v * b7;\n t19 += v * b8;\n t20 += v * b9;\n t21 += v * b10;\n t22 += v * b11;\n t23 += v * b12;\n t24 += v * b13;\n t25 += v * b14;\n t26 += v * b15;\n v = a[12];\n t12 += v * b0;\n t13 += v * b1;\n t14 += v * b2;\n t15 += v * b3;\n t16 += v * b4;\n t17 += v * b5;\n t18 += v * b6;\n t19 += v * b7;\n t20 += v * b8;\n t21 += v * b9;\n t22 += v * b10;\n t23 += v * b11;\n t24 += v * b12;\n t25 += v * b13;\n t26 += v * b14;\n t27 += v * b15;\n v = a[13];\n t13 += v * b0;\n t14 += v * b1;\n t15 += v * b2;\n t16 += v * b3;\n t17 += v * b4;\n t18 += v * b5;\n t19 += v * b6;\n t20 += v * b7;\n t21 += v * b8;\n t22 += v * b9;\n t23 += v * b10;\n t24 += v * b11;\n t25 += v * b12;\n t26 += v * b13;\n t27 += v * b14;\n t28 += v * b15;\n v = a[14];\n t14 += v * b0;\n t15 += v * b1;\n t16 += v * b2;\n t17 += v * b3;\n t18 += v * b4;\n t19 += v * b5;\n t20 += v * b6;\n t21 += v * b7;\n t22 += v * b8;\n t23 += v * b9;\n t24 += v * b10;\n t25 += v * b11;\n t26 += v * b12;\n t27 += v * b13;\n t28 += v * b14;\n t29 += v * b15;\n v = a[15];\n t15 += v * b0;\n t16 += v * b1;\n t17 += v * b2;\n t18 += v * b3;\n t19 += v * b4;\n t20 += v * b5;\n t21 += v * b6;\n t22 += v * b7;\n t23 += v * b8;\n t24 += v * b9;\n t25 += v * b10;\n t26 += v * b11;\n t27 += v * b12;\n t28 += v * b13;\n t29 += v * b14;\n t30 += v * b15;\n\n t0 += 38 * t16;\n t1 += 38 * t17;\n t2 += 38 * t18;\n t3 += 38 * t19;\n t4 += 38 * t20;\n t5 += 38 * t21;\n t6 += 38 * t22;\n t7 += 38 * t23;\n t8 += 38 * t24;\n t9 += 38 * t25;\n t10 += 38 * t26;\n t11 += 38 * t27;\n t12 += 38 * t28;\n t13 += 38 * t29;\n t14 += 38 * t30;\n // t15 left as is\n\n // first car\n c = 1;\n v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;\n v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;\n v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;\n v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;\n v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;\n v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;\n v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;\n v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;\n v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;\n v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;\n v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;\n v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;\n v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;\n v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;\n v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;\n v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;\n t0 += c - 1 + 37 * (c - 1);\n\n // second car\n c = 1;\n v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;\n v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;\n v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;\n v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;\n v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;\n v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;\n v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;\n v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;\n v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;\n v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;\n v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;\n v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;\n v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;\n v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;\n v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;\n v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;\n t0 += c - 1 + 37 * (c - 1);\n\n o[0] = t0;\n o[1] = t1;\n o[2] = t2;\n o[3] = t3;\n o[4] = t4;\n o[5] = t5;\n o[6] = t6;\n o[7] = t7;\n o[8] = t8;\n o[9] = t9;\n o[10] = t10;\n o[11] = t11;\n o[12] = t12;\n o[13] = t13;\n o[14] = t14;\n o[15] = t15;\n}\n\nfunction square(o: GF, a: GF) {\n mul(o, a, a);\n}\n\nfunction inv25519(o: GF, inp: GF) {\n const c = gf();\n for (let i = 0; i < 16; i++) {\n c[i] = inp[i];\n }\n for (let i = 253; i >= 0; i--) {\n square(c, c);\n if (i !== 2 && i !== 4) {\n mul(c, c, inp);\n }\n }\n for (let i = 0; i < 16; i++) {\n o[i] = c[i];\n }\n}\n\nexport function scalarMult(n: Uint8Array, p: Uint8Array): Uint8Array {\n const z = new Uint8Array(32);\n const x = new Float64Array(80);\n const a = gf(), b = gf(), c = gf(),\n d = gf(), e = gf(), f = gf();\n\n for (let i = 0; i < 31; i++) {\n z[i] = n[i];\n }\n z[31] = (n[31] & 127) | 64;\n z[0] &= 248;\n\n unpack25519(x, p);\n\n for (let i = 0; i < 16; i++) {\n b[i] = x[i];\n }\n\n a[0] = d[0] = 1;\n\n for (let i = 254; i >= 0; --i) {\n const r = (z[i >>> 3] >>> (i & 7)) & 1;\n sel25519(a, b, r);\n sel25519(c, d, r);\n add(e, a, c);\n sub(a, a, c);\n add(c, b, d);\n sub(b, b, d);\n square(d, e);\n square(f, a);\n mul(a, c, a);\n mul(c, b, e);\n add(e, a, c);\n sub(a, a, c);\n square(b, a);\n sub(c, d, f);\n mul(a, c, _121665);\n add(a, a, d);\n mul(c, c, a);\n mul(a, d, f);\n mul(d, b, x);\n square(b, e);\n sel25519(a, b, r);\n sel25519(c, d, r);\n }\n for (let i = 0; i < 16; i++) {\n x[i + 16] = a[i];\n x[i + 32] = c[i];\n x[i + 48] = b[i];\n x[i + 64] = d[i];\n }\n const x32 = x.subarray(32);\n const x16 = x.subarray(16);\n inv25519(x32, x32);\n mul(x16, x16, x32);\n const q = new Uint8Array(32);\n pack25519(q, x16);\n return q;\n}\n\nexport function scalarMultBase(n: Uint8Array): Uint8Array {\n return scalarMult(n, _9);\n}\n\nexport interface KeyPair {\n publicKey: Uint8Array;\n secretKey: Uint8Array;\n}\n\nexport function generateKeyPairFromSeed(seed: Uint8Array): KeyPair {\n if (seed.length !== SECRET_KEY_LENGTH) {\n throw new Error(`x25519: seed must be ${SECRET_KEY_LENGTH} bytes`);\n }\n const secretKey = new Uint8Array(seed);\n const publicKey = scalarMultBase(secretKey);\n return {\n publicKey,\n secretKey\n };\n}\n\nexport function generateKeyPair(prng?: RandomSource): KeyPair {\n const seed = randomBytes(32, prng);\n const result = generateKeyPairFromSeed(seed);\n wipe(seed);\n return result;\n}\n\n/**\n * Returns a shared key between our secret key and a peer's public key.\n *\n * Throws an error if the given keys are of wrong length.\n *\n * If rejectZero is true throws if the calculated shared key is all-zero.\n * From RFC 7748:\n *\n * > Protocol designers using Diffie-Hellman over the curves defined in\n * > this document must not assume \"contributory behavior\". Specially,\n * > contributory behavior means that both parties' private keys\n * > contribute to the resulting shared key. Since curve25519 and\n * > curve448 have cofactors of 8 and 4 (respectively), an input point of\n * > small order will eliminate any contribution from the other party's\n * > private key. This situation can be detected by checking for the all-\n * > zero output, which implementations MAY do, as specified in Section 6.\n * > However, a large number of existing implementations do not do this.\n *\n * IMPORTANT: the returned key is a raw result of scalar multiplication.\n * To use it as a key material, hash it with a cryptographic hash function.\n */\nexport function sharedKey(mySecretKey: Uint8Array, theirPublicKey: Uint8Array, rejectZero = false): Uint8Array {\n if (mySecretKey.length !== PUBLIC_KEY_LENGTH) {\n throw new Error(\"X25519: incorrect secret key length\");\n }\n if (theirPublicKey.length !== PUBLIC_KEY_LENGTH) {\n throw new Error(\"X25519: incorrect public key length\");\n }\n\n const result = scalarMult(mySecretKey, theirPublicKey);\n\n if (rejectZero) {\n let zeros = 0;\n for (let i = 0; i < result.length; i++) {\n zeros |= result[i];\n }\n if (zeros === 0) {\n throw new Error(\"X25519: invalid shared key\");\n }\n }\n\n return result;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package xsalsa20 implements XSalsa20 stream cipher.\n */\n\nimport { writeUint32LE } from \"@stablelib/binary\";\nimport { streamXOR as salsaStreamXOR } from \"@stablelib/salsa20\";\nimport { wipe } from \"@stablelib/wipe\";\n\n/**\n * Encrypt src with Salsa20/20 stream generated for the given 32-byte key\n * and 24-byte and write the result into dst and return it.\n *\n * dst and src may be the same, but otherwise must not overlap.\n *\n * Never use the same key and nonce to encrypt more than one message.\n */\nexport function streamXOR(key: Uint8Array, nonce: Uint8Array, src: Uint8Array,\n dst: Uint8Array, nonceInplaceCounterLength = 0): Uint8Array {\n\n if (nonceInplaceCounterLength === 0) {\n if (nonce.length !== 24) {\n throw new Error(\"XSalsa20 nonce must be 24 bytes\");\n }\n } else {\n if (nonce.length !== 32) {\n throw new Error(\"XSalsa20 nonce with counter must be 32 bytes\");\n }\n }\n\n // Use HSalsa one-way function to transform first 16 bytes of\n // 24-byte extended nonce and key into a new key for Salsa\n // stream -- \"subkey\".\n const subkey = hsalsa(key, nonce.subarray(0, 16), new Uint8Array(32));\n\n // Use last 8 bytes of 24-byte extended nonce as an actual nonce,\n // and a subkey derived in the previous step as key to encrypt.\n //\n // If nonceInplaceCounterLength > 0, we'll still pass the correct\n // nonce || counter, as we don't limit the end of nonce subarray.\n const result = salsaStreamXOR(subkey, nonce.subarray(16), src, dst,\n nonceInplaceCounterLength);\n\n // Clean subkey.\n wipe(subkey);\n\n return result;\n}\n\n/**\n * Generate Salsa20/20 stream for the given 32-byte key and\n * 24-byte nonce and write it into dst and return it.\n *\n * Never use the same key and nonce to generate more than one stream.\n *\n * stream is like streamXOR with all-zero src.\n */\nexport function stream(key: Uint8Array, nonce: Uint8Array, dst: Uint8Array,\n nonceInplaceCounterLength = 0): Uint8Array {\n\n wipe(dst);\n return streamXOR(key, nonce, dst, dst, nonceInplaceCounterLength);\n}\n\n// Number of Salsa20 rounds (Salsa20/20).\nconst ROUNDS = 20;\n\n/**\n * HSalsa20 is a one-way function used in XSalsa20 to extend nonce,\n * and in NaCl to hash X25519 shared keys. It takes 32-byte key and\n * 16-byte src and writes 32-byte result into dst and returns it.\n */\nexport function hsalsa(key: Uint8Array, src: Uint8Array, dst: Uint8Array): Uint8Array {\n let x0 = 0x61707865; // \"expa\"\n let x1 = (key[3] << 24) | (key[2] << 16) | (key[1] << 8) | key[0];\n let x2 = (key[7] << 24) | (key[6] << 16) | (key[5] << 8) | key[4];\n let x3 = (key[11] << 24) | (key[10] << 16) | (key[9] << 8) | key[8];\n let x4 = (key[15] << 24) | (key[14] << 16) | (key[13] << 8) | key[12];\n let x5 = 0x3320646E; // \"nd 3\"\n let x6 = (src[3] << 24) | (src[2] << 16) | (src[1] << 8) | src[0];\n let x7 = (src[7] << 24) | (src[6] << 16) | (src[5] << 8) | src[4];\n let x8 = (src[11] << 24) | (src[10] << 16) | (src[9] << 8) | src[8];\n let x9 = (src[15] << 24) | (src[14] << 16) | (src[13] << 8) | src[12];\n let x10 = 0x79622D32; // \"2-by\"\n let x11 = (key[19] << 24) | (key[18] << 16) | (key[17] << 8) | key[16];\n let x12 = (key[23] << 24) | (key[22] << 16) | (key[21] << 8) | key[20];\n let x13 = (key[27] << 24) | (key[26] << 16) | (key[25] << 8) | key[24];\n let x14 = (key[31] << 24) | (key[30] << 16) | (key[29] << 8) | key[28];\n let x15 = 0x6B206574; // \"te k\"\n\n let u: number;\n\n for (let i = 0; i < ROUNDS; i += 2) {\n u = x0 + x12 | 0;\n x4 ^= u << 7 | u >>> (32 - 7);\n u = x4 + x0 | 0;\n x8 ^= u << 9 | u >>> (32 - 9);\n u = x8 + x4 | 0;\n x12 ^= u << 13 | u >>> (32 - 13);\n u = x12 + x8 | 0;\n x0 ^= u << 18 | u >>> (32 - 18);\n\n u = x5 + x1 | 0;\n x9 ^= u << 7 | u >>> (32 - 7);\n u = x9 + x5 | 0;\n x13 ^= u << 9 | u >>> (32 - 9);\n u = x13 + x9 | 0;\n x1 ^= u << 13 | u >>> (32 - 13);\n u = x1 + x13 | 0;\n x5 ^= u << 18 | u >>> (32 - 18);\n\n u = x10 + x6 | 0;\n x14 ^= u << 7 | u >>> (32 - 7);\n u = x14 + x10 | 0;\n x2 ^= u << 9 | u >>> (32 - 9);\n u = x2 + x14 | 0;\n x6 ^= u << 13 | u >>> (32 - 13);\n u = x6 + x2 | 0;\n x10 ^= u << 18 | u >>> (32 - 18);\n\n u = x15 + x11 | 0;\n x3 ^= u << 7 | u >>> (32 - 7);\n u = x3 + x15 | 0;\n x7 ^= u << 9 | u >>> (32 - 9);\n u = x7 + x3 | 0;\n x11 ^= u << 13 | u >>> (32 - 13);\n u = x11 + x7 | 0;\n x15 ^= u << 18 | u >>> (32 - 18);\n\n u = x0 + x3 | 0;\n x1 ^= u << 7 | u >>> (32 - 7);\n u = x1 + x0 | 0;\n x2 ^= u << 9 | u >>> (32 - 9);\n u = x2 + x1 | 0;\n x3 ^= u << 13 | u >>> (32 - 13);\n u = x3 + x2 | 0;\n x0 ^= u << 18 | u >>> (32 - 18);\n\n u = x5 + x4 | 0;\n x6 ^= u << 7 | u >>> (32 - 7);\n u = x6 + x5 | 0;\n x7 ^= u << 9 | u >>> (32 - 9);\n u = x7 + x6 | 0;\n x4 ^= u << 13 | u >>> (32 - 13);\n u = x4 + x7 | 0;\n x5 ^= u << 18 | u >>> (32 - 18);\n\n u = x10 + x9 | 0;\n x11 ^= u << 7 | u >>> (32 - 7);\n u = x11 + x10 | 0;\n x8 ^= u << 9 | u >>> (32 - 9);\n u = x8 + x11 | 0;\n x9 ^= u << 13 | u >>> (32 - 13);\n u = x9 + x8 | 0;\n x10 ^= u << 18 | u >>> (32 - 18);\n\n u = x15 + x14 | 0;\n x12 ^= u << 7 | u >>> (32 - 7);\n u = x12 + x15 | 0;\n x13 ^= u << 9 | u >>> (32 - 9);\n u = x13 + x12 | 0;\n x14 ^= u << 13 | u >>> (32 - 13);\n u = x14 + x13 | 0;\n x15 ^= u << 18 | u >>> (32 - 18);\n }\n writeUint32LE(x0, dst, 0);\n writeUint32LE(x5, dst, 4);\n writeUint32LE(x10, dst, 8);\n writeUint32LE(x15, dst, 12);\n writeUint32LE(x6, dst, 16);\n writeUint32LE(x7, dst, 20);\n writeUint32LE(x8, dst, 24);\n writeUint32LE(x9, dst, 28);\n return dst;\n}\n","'use strict'\n// base-x encoding / decoding\n// Copyright (c) 2018 base-x contributors\n// Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)\n// Distributed under the MIT software license, see the accompanying\n// file LICENSE or http://www.opensource.org/licenses/mit-license.php.\nfunction base (ALPHABET) {\n if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }\n var BASE_MAP = new Uint8Array(256)\n for (var j = 0; j < BASE_MAP.length; j++) {\n BASE_MAP[j] = 255\n }\n for (var i = 0; i < ALPHABET.length; i++) {\n var x = ALPHABET.charAt(i)\n var xc = x.charCodeAt(0)\n if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }\n BASE_MAP[xc] = i\n }\n var BASE = ALPHABET.length\n var LEADER = ALPHABET.charAt(0)\n var FACTOR = Math.log(BASE) / Math.log(256) // log(BASE) / log(256), rounded up\n var iFACTOR = Math.log(256) / Math.log(BASE) // log(256) / log(BASE), rounded up\n function encode (source) {\n if (source instanceof Uint8Array) {\n } else if (ArrayBuffer.isView(source)) {\n source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength)\n } else if (Array.isArray(source)) {\n source = Uint8Array.from(source)\n }\n if (!(source instanceof Uint8Array)) { throw new TypeError('Expected Uint8Array') }\n if (source.length === 0) { return '' }\n // Skip & count leading zeroes.\n var zeroes = 0\n var length = 0\n var pbegin = 0\n var pend = source.length\n while (pbegin !== pend && source[pbegin] === 0) {\n pbegin++\n zeroes++\n }\n // Allocate enough space in big-endian base58 representation.\n var size = ((pend - pbegin) * iFACTOR + 1) >>> 0\n var b58 = new Uint8Array(size)\n // Process the bytes.\n while (pbegin !== pend) {\n var carry = source[pbegin]\n // Apply \"b58 = b58 * 256 + ch\".\n var i = 0\n for (var it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {\n carry += (256 * b58[it1]) >>> 0\n b58[it1] = (carry % BASE) >>> 0\n carry = (carry / BASE) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n pbegin++\n }\n // Skip leading zeroes in base58 result.\n var it2 = size - length\n while (it2 !== size && b58[it2] === 0) {\n it2++\n }\n // Translate the result into a string.\n var str = LEADER.repeat(zeroes)\n for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]) }\n return str\n }\n function decodeUnsafe (source) {\n if (typeof source !== 'string') { throw new TypeError('Expected String') }\n if (source.length === 0) { return new Uint8Array() }\n var psz = 0\n // Skip and count leading '1's.\n var zeroes = 0\n var length = 0\n while (source[psz] === LEADER) {\n zeroes++\n psz++\n }\n // Allocate enough space in big-endian base256 representation.\n var size = (((source.length - psz) * FACTOR) + 1) >>> 0 // log(58) / log(256), rounded up.\n var b256 = new Uint8Array(size)\n // Process the characters.\n while (source[psz]) {\n // Decode character\n var carry = BASE_MAP[source.charCodeAt(psz)]\n // Invalid character\n if (carry === 255) { return }\n var i = 0\n for (var it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {\n carry += (BASE * b256[it3]) >>> 0\n b256[it3] = (carry % 256) >>> 0\n carry = (carry / 256) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n psz++\n }\n // Skip leading zeroes in b256.\n var it4 = size - length\n while (it4 !== size && b256[it4] === 0) {\n it4++\n }\n var vch = new Uint8Array(zeroes + (size - it4))\n var j = zeroes\n while (it4 !== size) {\n vch[j++] = b256[it4++]\n }\n return vch\n }\n function decode (string) {\n var buffer = decodeUnsafe(string)\n if (buffer) { return buffer }\n throw new Error('Non-base' + BASE + ' character')\n }\n return {\n encode: encode,\n decodeUnsafe: decodeUnsafe,\n decode: decode\n }\n}\nmodule.exports = base\n","const basex = require('base-x')\nconst ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'\n\nmodule.exports = basex(ALPHABET)\n","'use strict'\n\nvar base58 = require('bs58')\n\nmodule.exports = function (checksumFn) {\n // Encode a buffer as a base58-check encoded string\n function encode (payload) {\n var payloadU8 = Uint8Array.from(payload)\n var checksum = checksumFn(payloadU8)\n var length = payloadU8.length + 4\n var both = new Uint8Array(length)\n both.set(payloadU8, 0)\n both.set(checksum.subarray(0, 4), payloadU8.length)\n return base58.encode(both, length)\n }\n\n function decodeRaw (buffer) {\n var payload = buffer.slice(0, -4)\n var checksum = buffer.slice(-4)\n var newChecksum = checksumFn(payload)\n\n if (checksum[0] ^ newChecksum[0] |\n checksum[1] ^ newChecksum[1] |\n checksum[2] ^ newChecksum[2] |\n checksum[3] ^ newChecksum[3]) return\n\n return payload\n }\n\n // Decode a base58-check encoded string to a buffer, no result if checksum is wrong\n function decodeUnsafe (string) {\n var buffer = base58.decodeUnsafe(string)\n if (!buffer) return\n\n return decodeRaw(buffer)\n }\n\n function decode (string) {\n var buffer = base58.decode(string)\n var payload = decodeRaw(buffer, checksumFn)\n if (!payload) throw new Error('Invalid checksum')\n return payload\n }\n\n return {\n encode: encode,\n decode: decode,\n decodeUnsafe: decodeUnsafe\n }\n}\n","'use strict'\n\nvar { sha256 } = require('@noble/hashes/sha256')\nvar bs58checkBase = require('./base')\n\n// SHA256(SHA256(buffer))\nfunction sha256x2 (buffer) {\n return sha256(sha256(buffer))\n}\n\nmodule.exports = bs58checkBase(sha256x2)\n","(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = require('buffer').Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [number & 0x3ffffff];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [0];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this._strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // '0' - '9'\n if (c >= 48 && c <= 57) {\n return c - 48;\n // 'A' - 'F'\n } else if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n } else {\n assert(false, 'Invalid character in ' + string);\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this._strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var b = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n b = c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n b = c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n b = c;\n }\n assert(c >= 0 && b < mul, 'Invalid character');\n r += b;\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [0];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this._strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n function move (dest, src) {\n dest.words = src.words;\n dest.length = src.length;\n dest.negative = src.negative;\n dest.red = src.red;\n }\n\n BN.prototype._move = function _move (dest) {\n move(dest, this);\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype._strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n // Check Symbol.for because not everywhere where Symbol defined\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#Browser_compatibility\n if (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function') {\n try {\n BN.prototype[Symbol.for('nodejs.util.inspect.custom')] = inspect;\n } catch (e) {\n BN.prototype.inspect = inspect;\n }\n } else {\n BN.prototype.inspect = inspect;\n }\n\n function inspect () {\n return (this.red ? '';\n }\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modrn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16, 2);\n };\n\n if (Buffer) {\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n return this.toArrayLike(Buffer, endian, length);\n };\n }\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n var allocate = function allocate (ArrayType, size) {\n if (ArrayType.allocUnsafe) {\n return ArrayType.allocUnsafe(size);\n }\n return new ArrayType(size);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n this._strip();\n\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n var res = allocate(ArrayType, reqLength);\n var postfix = endian === 'le' ? 'LE' : 'BE';\n this['_toArrayLike' + postfix](res, byteLength);\n return res;\n };\n\n BN.prototype._toArrayLikeLE = function _toArrayLikeLE (res, byteLength) {\n var position = 0;\n var carry = 0;\n\n for (var i = 0, shift = 0; i < this.length; i++) {\n var word = (this.words[i] << shift) | carry;\n\n res[position++] = word & 0xff;\n if (position < res.length) {\n res[position++] = (word >> 8) & 0xff;\n }\n if (position < res.length) {\n res[position++] = (word >> 16) & 0xff;\n }\n\n if (shift === 6) {\n if (position < res.length) {\n res[position++] = (word >> 24) & 0xff;\n }\n carry = 0;\n shift = 0;\n } else {\n carry = word >>> 24;\n shift += 2;\n }\n }\n\n if (position < res.length) {\n res[position++] = carry;\n\n while (position < res.length) {\n res[position++] = 0;\n }\n }\n };\n\n BN.prototype._toArrayLikeBE = function _toArrayLikeBE (res, byteLength) {\n var position = res.length - 1;\n var carry = 0;\n\n for (var i = 0, shift = 0; i < this.length; i++) {\n var word = (this.words[i] << shift) | carry;\n\n res[position--] = word & 0xff;\n if (position >= 0) {\n res[position--] = (word >> 8) & 0xff;\n }\n if (position >= 0) {\n res[position--] = (word >> 16) & 0xff;\n }\n\n if (shift === 6) {\n if (position >= 0) {\n res[position--] = (word >> 24) & 0xff;\n }\n carry = 0;\n shift = 0;\n } else {\n carry = word >>> 24;\n shift += 2;\n }\n }\n\n if (position >= 0) {\n res[position--] = carry;\n\n while (position >= 0) {\n res[position--] = 0;\n }\n }\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] >>> wbit) & 0x01;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this._strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this._strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this._strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this._strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this._strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this._strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out._strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out._strip();\n }\n\n function jumboMulTo (self, num, out) {\n // Temporary disable, see https://github.com/indutny/bn.js/issues/211\n // var fftm = new FFTM();\n // return fftm.mulp(self, num, out);\n return bigMulTo(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out._strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return isNegNum ? this.ineg() : this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this._strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this._strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this._strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) <= num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this._strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this._strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this._strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q._strip();\n }\n a._strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modrn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modrn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || (r2 === 1 && cmp === 0)) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modrn = function modrn (num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return isNegNum ? -acc : acc;\n };\n\n // WARNING: DEPRECATED\n BN.prototype.modn = function modn (num) {\n return this.modrn(num);\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n this._strip();\n return isNegNum ? this.ineg() : this;\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this._strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is a BN v4 instance\n r.strip();\n } else {\n // r is a BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n\n move(a, a.umod(this.m)._forceRed(this));\n return a;\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n","'use strict'\n// base-x encoding / decoding\n// Copyright (c) 2018 base-x contributors\n// Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)\n// Distributed under the MIT software license, see the accompanying\n// file LICENSE or http://www.opensource.org/licenses/mit-license.php.\n// @ts-ignore\nvar _Buffer = require('safe-buffer').Buffer\nfunction base (ALPHABET) {\n if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }\n var BASE_MAP = new Uint8Array(256)\n for (var j = 0; j < BASE_MAP.length; j++) {\n BASE_MAP[j] = 255\n }\n for (var i = 0; i < ALPHABET.length; i++) {\n var x = ALPHABET.charAt(i)\n var xc = x.charCodeAt(0)\n if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }\n BASE_MAP[xc] = i\n }\n var BASE = ALPHABET.length\n var LEADER = ALPHABET.charAt(0)\n var FACTOR = Math.log(BASE) / Math.log(256) // log(BASE) / log(256), rounded up\n var iFACTOR = Math.log(256) / Math.log(BASE) // log(256) / log(BASE), rounded up\n function encode (source) {\n if (Array.isArray(source) || source instanceof Uint8Array) { source = _Buffer.from(source) }\n if (!_Buffer.isBuffer(source)) { throw new TypeError('Expected Buffer') }\n if (source.length === 0) { return '' }\n // Skip & count leading zeroes.\n var zeroes = 0\n var length = 0\n var pbegin = 0\n var pend = source.length\n while (pbegin !== pend && source[pbegin] === 0) {\n pbegin++\n zeroes++\n }\n // Allocate enough space in big-endian base58 representation.\n var size = ((pend - pbegin) * iFACTOR + 1) >>> 0\n var b58 = new Uint8Array(size)\n // Process the bytes.\n while (pbegin !== pend) {\n var carry = source[pbegin]\n // Apply \"b58 = b58 * 256 + ch\".\n var i = 0\n for (var it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {\n carry += (256 * b58[it1]) >>> 0\n b58[it1] = (carry % BASE) >>> 0\n carry = (carry / BASE) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n pbegin++\n }\n // Skip leading zeroes in base58 result.\n var it2 = size - length\n while (it2 !== size && b58[it2] === 0) {\n it2++\n }\n // Translate the result into a string.\n var str = LEADER.repeat(zeroes)\n for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]) }\n return str\n }\n function decodeUnsafe (source) {\n if (typeof source !== 'string') { throw new TypeError('Expected String') }\n if (source.length === 0) { return _Buffer.alloc(0) }\n var psz = 0\n // Skip and count leading '1's.\n var zeroes = 0\n var length = 0\n while (source[psz] === LEADER) {\n zeroes++\n psz++\n }\n // Allocate enough space in big-endian base256 representation.\n var size = (((source.length - psz) * FACTOR) + 1) >>> 0 // log(58) / log(256), rounded up.\n var b256 = new Uint8Array(size)\n // Process the characters.\n while (source[psz]) {\n // Decode character\n var carry = BASE_MAP[source.charCodeAt(psz)]\n // Invalid character\n if (carry === 255) { return }\n var i = 0\n for (var it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {\n carry += (BASE * b256[it3]) >>> 0\n b256[it3] = (carry % 256) >>> 0\n carry = (carry / 256) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n psz++\n }\n // Skip leading zeroes in b256.\n var it4 = size - length\n while (it4 !== size && b256[it4] === 0) {\n it4++\n }\n var vch = _Buffer.allocUnsafe(zeroes + (size - it4))\n vch.fill(0x00, 0, zeroes)\n var j = zeroes\n while (it4 !== size) {\n vch[j++] = b256[it4++]\n }\n return vch\n }\n function decode (string) {\n var buffer = decodeUnsafe(string)\n if (buffer) { return buffer }\n throw new Error('Non-base' + BASE + ' character')\n }\n return {\n encode: encode,\n decodeUnsafe: decodeUnsafe,\n decode: decode\n }\n}\nmodule.exports = base\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// browserify by default only pulls in files that are hard coded in requires\n// In order of last to first in this file, the default wordlist will be chosen\n// based on what is present. (Bundles may remove wordlists they don't need)\nconst wordlists = {};\nexports.wordlists = wordlists;\nlet _default;\nexports._default = _default;\ntry {\n exports._default = _default = require('./wordlists/czech.json');\n wordlists.czech = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/chinese_simplified.json');\n wordlists.chinese_simplified = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/chinese_traditional.json');\n wordlists.chinese_traditional = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/korean.json');\n wordlists.korean = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/french.json');\n wordlists.french = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/italian.json');\n wordlists.italian = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/spanish.json');\n wordlists.spanish = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/japanese.json');\n wordlists.japanese = _default;\n wordlists.JA = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/portuguese.json');\n wordlists.portuguese = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/english.json');\n wordlists.english = _default;\n wordlists.EN = _default;\n}\ncatch (err) { }\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst sha256_1 = require(\"@noble/hashes/sha256\");\nconst sha512_1 = require(\"@noble/hashes/sha512\");\nconst pbkdf2_1 = require(\"@noble/hashes/pbkdf2\");\nconst utils_1 = require(\"@noble/hashes/utils\");\nconst _wordlists_1 = require(\"./_wordlists\");\nlet DEFAULT_WORDLIST = _wordlists_1._default;\nconst INVALID_MNEMONIC = 'Invalid mnemonic';\nconst INVALID_ENTROPY = 'Invalid entropy';\nconst INVALID_CHECKSUM = 'Invalid mnemonic checksum';\nconst WORDLIST_REQUIRED = 'A wordlist is required but a default could not be found.\\n' +\n 'Please pass a 2048 word array explicitly.';\nfunction normalize(str) {\n return (str || '').normalize('NFKD');\n}\nfunction lpad(str, padString, length) {\n while (str.length < length) {\n str = padString + str;\n }\n return str;\n}\nfunction binaryToByte(bin) {\n return parseInt(bin, 2);\n}\nfunction bytesToBinary(bytes) {\n return bytes.map((x) => lpad(x.toString(2), '0', 8)).join('');\n}\nfunction deriveChecksumBits(entropyBuffer) {\n const ENT = entropyBuffer.length * 8;\n const CS = ENT / 32;\n const hash = sha256_1.sha256(Uint8Array.from(entropyBuffer));\n return bytesToBinary(Array.from(hash)).slice(0, CS);\n}\nfunction salt(password) {\n return 'mnemonic' + (password || '');\n}\nfunction mnemonicToSeedSync(mnemonic, password) {\n const mnemonicBuffer = Uint8Array.from(Buffer.from(normalize(mnemonic), 'utf8'));\n const saltBuffer = Uint8Array.from(Buffer.from(salt(normalize(password)), 'utf8'));\n const res = pbkdf2_1.pbkdf2(sha512_1.sha512, mnemonicBuffer, saltBuffer, {\n c: 2048,\n dkLen: 64,\n });\n return Buffer.from(res);\n}\nexports.mnemonicToSeedSync = mnemonicToSeedSync;\nfunction mnemonicToSeed(mnemonic, password) {\n const mnemonicBuffer = Uint8Array.from(Buffer.from(normalize(mnemonic), 'utf8'));\n const saltBuffer = Uint8Array.from(Buffer.from(salt(normalize(password)), 'utf8'));\n return pbkdf2_1.pbkdf2Async(sha512_1.sha512, mnemonicBuffer, saltBuffer, {\n c: 2048,\n dkLen: 64,\n }).then((res) => Buffer.from(res));\n}\nexports.mnemonicToSeed = mnemonicToSeed;\nfunction mnemonicToEntropy(mnemonic, wordlist) {\n wordlist = wordlist || DEFAULT_WORDLIST;\n if (!wordlist) {\n throw new Error(WORDLIST_REQUIRED);\n }\n const words = normalize(mnemonic).split(' ');\n if (words.length % 3 !== 0) {\n throw new Error(INVALID_MNEMONIC);\n }\n // convert word indices to 11 bit binary strings\n const bits = words\n .map((word) => {\n const index = wordlist.indexOf(word);\n if (index === -1) {\n throw new Error(INVALID_MNEMONIC);\n }\n return lpad(index.toString(2), '0', 11);\n })\n .join('');\n // split the binary string into ENT/CS\n const dividerIndex = Math.floor(bits.length / 33) * 32;\n const entropyBits = bits.slice(0, dividerIndex);\n const checksumBits = bits.slice(dividerIndex);\n // calculate the checksum and compare\n const entropyBytes = entropyBits.match(/(.{1,8})/g).map(binaryToByte);\n if (entropyBytes.length < 16) {\n throw new Error(INVALID_ENTROPY);\n }\n if (entropyBytes.length > 32) {\n throw new Error(INVALID_ENTROPY);\n }\n if (entropyBytes.length % 4 !== 0) {\n throw new Error(INVALID_ENTROPY);\n }\n const entropy = Buffer.from(entropyBytes);\n const newChecksum = deriveChecksumBits(entropy);\n if (newChecksum !== checksumBits) {\n throw new Error(INVALID_CHECKSUM);\n }\n return entropy.toString('hex');\n}\nexports.mnemonicToEntropy = mnemonicToEntropy;\nfunction entropyToMnemonic(entropy, wordlist) {\n if (!Buffer.isBuffer(entropy)) {\n entropy = Buffer.from(entropy, 'hex');\n }\n wordlist = wordlist || DEFAULT_WORDLIST;\n if (!wordlist) {\n throw new Error(WORDLIST_REQUIRED);\n }\n // 128 <= ENT <= 256\n if (entropy.length < 16) {\n throw new TypeError(INVALID_ENTROPY);\n }\n if (entropy.length > 32) {\n throw new TypeError(INVALID_ENTROPY);\n }\n if (entropy.length % 4 !== 0) {\n throw new TypeError(INVALID_ENTROPY);\n }\n const entropyBits = bytesToBinary(Array.from(entropy));\n const checksumBits = deriveChecksumBits(entropy);\n const bits = entropyBits + checksumBits;\n const chunks = bits.match(/(.{1,11})/g);\n const words = chunks.map((binary) => {\n const index = binaryToByte(binary);\n return wordlist[index];\n });\n return wordlist[0] === '\\u3042\\u3044\\u3053\\u304f\\u3057\\u3093' // Japanese wordlist\n ? words.join('\\u3000')\n : words.join(' ');\n}\nexports.entropyToMnemonic = entropyToMnemonic;\nfunction generateMnemonic(strength, rng, wordlist) {\n strength = strength || 128;\n if (strength % 32 !== 0) {\n throw new TypeError(INVALID_ENTROPY);\n }\n rng = rng || ((size) => Buffer.from(utils_1.randomBytes(size)));\n return entropyToMnemonic(rng(strength / 8), wordlist);\n}\nexports.generateMnemonic = generateMnemonic;\nfunction validateMnemonic(mnemonic, wordlist) {\n try {\n mnemonicToEntropy(mnemonic, wordlist);\n }\n catch (e) {\n return false;\n }\n return true;\n}\nexports.validateMnemonic = validateMnemonic;\nfunction setDefaultWordlist(language) {\n const result = _wordlists_1.wordlists[language];\n if (result) {\n DEFAULT_WORDLIST = result;\n }\n else {\n throw new Error('Could not find wordlist for language \"' + language + '\"');\n }\n}\nexports.setDefaultWordlist = setDefaultWordlist;\nfunction getDefaultWordlist() {\n if (!DEFAULT_WORDLIST) {\n throw new Error('No Default Wordlist set');\n }\n return Object.keys(_wordlists_1.wordlists).filter((lang) => {\n if (lang === 'JA' || lang === 'EN') {\n return false;\n }\n return _wordlists_1.wordlists[lang].every((word, index) => word === DEFAULT_WORDLIST[index]);\n })[0];\n}\nexports.getDefaultWordlist = getDefaultWordlist;\nvar _wordlists_2 = require(\"./_wordlists\");\nexports.wordlists = _wordlists_2.wordlists;\n","// Blake2B in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = require('./util')\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += v[b,b+1]\n// v should be a Uint32Array\nfunction ADD64AA (v, a, b) {\n const o0 = v[a] + v[b]\n let o1 = v[a + 1] + v[b + 1]\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += b\n// b0 is the low 32 bits of b, b1 represents the high 32 bits\nfunction ADD64AC (v, a, b0, b1) {\n let o0 = v[a] + b0\n if (b0 < 0) {\n o0 += 0x100000000\n }\n let o1 = v[a + 1] + b1\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// Little-endian byte access\nfunction B2B_GET32 (arr, i) {\n return arr[i] ^ (arr[i + 1] << 8) ^ (arr[i + 2] << 16) ^ (arr[i + 3] << 24)\n}\n\n// G Mixing function\n// The ROTRs are inlined for speed\nfunction B2B_G (a, b, c, d, ix, iy) {\n const x0 = m[ix]\n const x1 = m[ix + 1]\n const y0 = m[iy]\n const y1 = m[iy + 1]\n\n ADD64AA(v, a, b) // v[a,a+1] += v[b,b+1] ... in JS we must store a uint64 as two uint32s\n ADD64AC(v, a, x0, x1) // v[a, a+1] += x ... x0 is the low 32 bits of x, x1 is the high 32 bits\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated to the right by 32 bits\n let xor0 = v[d] ^ v[a]\n let xor1 = v[d + 1] ^ v[a + 1]\n v[d] = xor1\n v[d + 1] = xor0\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 24 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor0 >>> 24) ^ (xor1 << 8)\n v[b + 1] = (xor1 >>> 24) ^ (xor0 << 8)\n\n ADD64AA(v, a, b)\n ADD64AC(v, a, y0, y1)\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated right by 16 bits\n xor0 = v[d] ^ v[a]\n xor1 = v[d + 1] ^ v[a + 1]\n v[d] = (xor0 >>> 16) ^ (xor1 << 16)\n v[d + 1] = (xor1 >>> 16) ^ (xor0 << 16)\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 63 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor1 >>> 31) ^ (xor0 << 1)\n v[b + 1] = (xor0 >>> 31) ^ (xor1 << 1)\n}\n\n// Initialization Vector\nconst BLAKE2B_IV32 = new Uint32Array([\n 0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372,\n 0x5f1d36f1, 0xa54ff53a, 0xade682d1, 0x510e527f, 0x2b3e6c1f, 0x9b05688c,\n 0xfb41bd6b, 0x1f83d9ab, 0x137e2179, 0x5be0cd19\n])\n\nconst SIGMA8 = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 10, 4, 8, 9, 15, 13,\n 6, 1, 12, 0, 2, 11, 7, 5, 3, 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1,\n 9, 4, 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8, 9, 0, 5, 7, 2, 4,\n 10, 15, 14, 1, 11, 12, 6, 8, 3, 13, 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5,\n 15, 14, 1, 9, 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11, 13, 11, 7,\n 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10, 6, 15, 14, 9, 11, 3, 0, 8, 12, 2,\n 13, 7, 1, 4, 10, 5, 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0, 0,\n 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 10, 4, 8, 9, 15, 13, 6,\n 1, 12, 0, 2, 11, 7, 5, 3\n]\n\n// These are offsets into a uint64 buffer.\n// Multiply them all by 2 to make them offsets into a uint32 buffer,\n// because this is Javascript and we don't have uint64s\nconst SIGMA82 = new Uint8Array(\n SIGMA8.map(function (x) {\n return x * 2\n })\n)\n\n// Compression function. 'last' flag indicates last block.\n// Note we're representing 16 uint64s as 32 uint32s\nconst v = new Uint32Array(32)\nconst m = new Uint32Array(32)\nfunction blake2bCompress (ctx, last) {\n let i = 0\n\n // init work variables\n for (i = 0; i < 16; i++) {\n v[i] = ctx.h[i]\n v[i + 16] = BLAKE2B_IV32[i]\n }\n\n // low 64 bits of offset\n v[24] = v[24] ^ ctx.t\n v[25] = v[25] ^ (ctx.t / 0x100000000)\n // high 64 bits not supported, offset may not be higher than 2**53-1\n\n // last block flag set ?\n if (last) {\n v[28] = ~v[28]\n v[29] = ~v[29]\n }\n\n // get little-endian words\n for (i = 0; i < 32; i++) {\n m[i] = B2B_GET32(ctx.b, 4 * i)\n }\n\n // twelve rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 64)\n for (i = 0; i < 12; i++) {\n // util.debugPrint(' (i=' + (i < 10 ? ' ' : '') + i + ') v[16]', v, 64)\n B2B_G(0, 8, 16, 24, SIGMA82[i * 16 + 0], SIGMA82[i * 16 + 1])\n B2B_G(2, 10, 18, 26, SIGMA82[i * 16 + 2], SIGMA82[i * 16 + 3])\n B2B_G(4, 12, 20, 28, SIGMA82[i * 16 + 4], SIGMA82[i * 16 + 5])\n B2B_G(6, 14, 22, 30, SIGMA82[i * 16 + 6], SIGMA82[i * 16 + 7])\n B2B_G(0, 10, 20, 30, SIGMA82[i * 16 + 8], SIGMA82[i * 16 + 9])\n B2B_G(2, 12, 22, 24, SIGMA82[i * 16 + 10], SIGMA82[i * 16 + 11])\n B2B_G(4, 14, 16, 26, SIGMA82[i * 16 + 12], SIGMA82[i * 16 + 13])\n B2B_G(6, 8, 18, 28, SIGMA82[i * 16 + 14], SIGMA82[i * 16 + 15])\n }\n // util.debugPrint(' (i=12) v[16]', v, 64)\n\n for (i = 0; i < 16; i++) {\n ctx.h[i] = ctx.h[i] ^ v[i] ^ v[i + 16]\n }\n // util.debugPrint('h[8]', ctx.h, 64)\n}\n\n// reusable parameterBlock\nconst parameterBlock = new Uint8Array([\n 0,\n 0,\n 0,\n 0, // 0: outlen, keylen, fanout, depth\n 0,\n 0,\n 0,\n 0, // 4: leaf length, sequential mode\n 0,\n 0,\n 0,\n 0, // 8: node offset\n 0,\n 0,\n 0,\n 0, // 12: node offset\n 0,\n 0,\n 0,\n 0, // 16: node depth, inner length, rfu\n 0,\n 0,\n 0,\n 0, // 20: rfu\n 0,\n 0,\n 0,\n 0, // 24: rfu\n 0,\n 0,\n 0,\n 0, // 28: rfu\n 0,\n 0,\n 0,\n 0, // 32: salt\n 0,\n 0,\n 0,\n 0, // 36: salt\n 0,\n 0,\n 0,\n 0, // 40: salt\n 0,\n 0,\n 0,\n 0, // 44: salt\n 0,\n 0,\n 0,\n 0, // 48: personal\n 0,\n 0,\n 0,\n 0, // 52: personal\n 0,\n 0,\n 0,\n 0, // 56: personal\n 0,\n 0,\n 0,\n 0 // 60: personal\n])\n\n// Creates a BLAKE2b hashing context\n// Requires an output length between 1 and 64 bytes\n// Takes an optional Uint8Array key\n// Takes an optinal Uint8Array salt\n// Takes an optinal Uint8Array personal\nfunction blake2bInit (outlen, key, salt, personal) {\n if (outlen === 0 || outlen > 64) {\n throw new Error('Illegal output length, expected 0 < length <= 64')\n }\n if (key && key.length > 64) {\n throw new Error('Illegal key, expected Uint8Array with 0 < length <= 64')\n }\n if (salt && salt.length !== 16) {\n throw new Error('Illegal salt, expected Uint8Array with length is 16')\n }\n if (personal && personal.length !== 16) {\n throw new Error('Illegal personal, expected Uint8Array with length is 16')\n }\n\n // state, 'param block'\n const ctx = {\n b: new Uint8Array(128),\n h: new Uint32Array(16),\n t: 0, // input count\n c: 0, // pointer within buffer\n outlen: outlen // output length in bytes\n }\n\n // initialize parameterBlock before usage\n parameterBlock.fill(0)\n parameterBlock[0] = outlen\n if (key) parameterBlock[1] = key.length\n parameterBlock[2] = 1 // fanout\n parameterBlock[3] = 1 // depth\n if (salt) parameterBlock.set(salt, 32)\n if (personal) parameterBlock.set(personal, 48)\n\n // initialize hash state\n for (let i = 0; i < 16; i++) {\n ctx.h[i] = BLAKE2B_IV32[i] ^ B2B_GET32(parameterBlock, i * 4)\n }\n\n // key the hash, if applicable\n if (key) {\n blake2bUpdate(ctx, key)\n // at the end\n ctx.c = 128\n }\n\n return ctx\n}\n\n// Updates a BLAKE2b streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2bUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 128) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2bCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2b streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2bFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n\n while (ctx.c < 128) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2bCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = ctx.h[i >> 2] >> (8 * (i & 3))\n }\n return out\n}\n\n// Computes the BLAKE2B hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\n// - salt - optional salt bytes, string, Buffer or Uint8Array\n// - personal - optional personal bytes, string, Buffer or Uint8Array\nfunction blake2b (input, key, outlen, salt, personal) {\n // preprocess inputs\n outlen = outlen || 64\n input = util.normalizeInput(input)\n if (salt) {\n salt = util.normalizeInput(salt)\n }\n if (personal) {\n personal = util.normalizeInput(personal)\n }\n\n // do the math\n const ctx = blake2bInit(outlen, key, salt, personal)\n blake2bUpdate(ctx, input)\n return blake2bFinal(ctx)\n}\n\n// Computes the BLAKE2B hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\n// - salt - optional salt bytes, string, Buffer or Uint8Array\n// - personal - optional personal bytes, string, Buffer or Uint8Array\nfunction blake2bHex (input, key, outlen, salt, personal) {\n const output = blake2b(input, key, outlen, salt, personal)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2b: blake2b,\n blake2bHex: blake2bHex,\n blake2bInit: blake2bInit,\n blake2bUpdate: blake2bUpdate,\n blake2bFinal: blake2bFinal\n}\n","// BLAKE2s hash function in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = require('./util')\n\n// Little-endian byte access.\n// Expects a Uint8Array and an index\n// Returns the little-endian uint32 at v[i..i+3]\nfunction B2S_GET32 (v, i) {\n return v[i] ^ (v[i + 1] << 8) ^ (v[i + 2] << 16) ^ (v[i + 3] << 24)\n}\n\n// Mixing function G.\nfunction B2S_G (a, b, c, d, x, y) {\n v[a] = v[a] + v[b] + x\n v[d] = ROTR32(v[d] ^ v[a], 16)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 12)\n v[a] = v[a] + v[b] + y\n v[d] = ROTR32(v[d] ^ v[a], 8)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 7)\n}\n\n// 32-bit right rotation\n// x should be a uint32\n// y must be between 1 and 31, inclusive\nfunction ROTR32 (x, y) {\n return (x >>> y) ^ (x << (32 - y))\n}\n\n// Initialization Vector.\nconst BLAKE2S_IV = new Uint32Array([\n 0x6a09e667,\n 0xbb67ae85,\n 0x3c6ef372,\n 0xa54ff53a,\n 0x510e527f,\n 0x9b05688c,\n 0x1f83d9ab,\n 0x5be0cd19\n])\n\nconst SIGMA = new Uint8Array([\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 14,\n 10,\n 4,\n 8,\n 9,\n 15,\n 13,\n 6,\n 1,\n 12,\n 0,\n 2,\n 11,\n 7,\n 5,\n 3,\n 11,\n 8,\n 12,\n 0,\n 5,\n 2,\n 15,\n 13,\n 10,\n 14,\n 3,\n 6,\n 7,\n 1,\n 9,\n 4,\n 7,\n 9,\n 3,\n 1,\n 13,\n 12,\n 11,\n 14,\n 2,\n 6,\n 5,\n 10,\n 4,\n 0,\n 15,\n 8,\n 9,\n 0,\n 5,\n 7,\n 2,\n 4,\n 10,\n 15,\n 14,\n 1,\n 11,\n 12,\n 6,\n 8,\n 3,\n 13,\n 2,\n 12,\n 6,\n 10,\n 0,\n 11,\n 8,\n 3,\n 4,\n 13,\n 7,\n 5,\n 15,\n 14,\n 1,\n 9,\n 12,\n 5,\n 1,\n 15,\n 14,\n 13,\n 4,\n 10,\n 0,\n 7,\n 6,\n 3,\n 9,\n 2,\n 8,\n 11,\n 13,\n 11,\n 7,\n 14,\n 12,\n 1,\n 3,\n 9,\n 5,\n 0,\n 15,\n 4,\n 8,\n 6,\n 2,\n 10,\n 6,\n 15,\n 14,\n 9,\n 11,\n 3,\n 0,\n 8,\n 12,\n 2,\n 13,\n 7,\n 1,\n 4,\n 10,\n 5,\n 10,\n 2,\n 8,\n 4,\n 7,\n 6,\n 1,\n 5,\n 15,\n 11,\n 9,\n 14,\n 3,\n 12,\n 13,\n 0\n])\n\n// Compression function. \"last\" flag indicates last block\nconst v = new Uint32Array(16)\nconst m = new Uint32Array(16)\nfunction blake2sCompress (ctx, last) {\n let i = 0\n for (i = 0; i < 8; i++) {\n // init work variables\n v[i] = ctx.h[i]\n v[i + 8] = BLAKE2S_IV[i]\n }\n\n v[12] ^= ctx.t // low 32 bits of offset\n v[13] ^= ctx.t / 0x100000000 // high 32 bits\n if (last) {\n // last block flag set ?\n v[14] = ~v[14]\n }\n\n for (i = 0; i < 16; i++) {\n // get little-endian words\n m[i] = B2S_GET32(ctx.b, 4 * i)\n }\n\n // ten rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 32)\n for (i = 0; i < 10; i++) {\n // util.debugPrint(' (i=' + i + ') v[16]', v, 32)\n B2S_G(0, 4, 8, 12, m[SIGMA[i * 16 + 0]], m[SIGMA[i * 16 + 1]])\n B2S_G(1, 5, 9, 13, m[SIGMA[i * 16 + 2]], m[SIGMA[i * 16 + 3]])\n B2S_G(2, 6, 10, 14, m[SIGMA[i * 16 + 4]], m[SIGMA[i * 16 + 5]])\n B2S_G(3, 7, 11, 15, m[SIGMA[i * 16 + 6]], m[SIGMA[i * 16 + 7]])\n B2S_G(0, 5, 10, 15, m[SIGMA[i * 16 + 8]], m[SIGMA[i * 16 + 9]])\n B2S_G(1, 6, 11, 12, m[SIGMA[i * 16 + 10]], m[SIGMA[i * 16 + 11]])\n B2S_G(2, 7, 8, 13, m[SIGMA[i * 16 + 12]], m[SIGMA[i * 16 + 13]])\n B2S_G(3, 4, 9, 14, m[SIGMA[i * 16 + 14]], m[SIGMA[i * 16 + 15]])\n }\n // util.debugPrint(' (i=10) v[16]', v, 32)\n\n for (i = 0; i < 8; i++) {\n ctx.h[i] ^= v[i] ^ v[i + 8]\n }\n // util.debugPrint('h[8]', ctx.h, 32)\n}\n\n// Creates a BLAKE2s hashing context\n// Requires an output length between 1 and 32 bytes\n// Takes an optional Uint8Array key\nfunction blake2sInit (outlen, key) {\n if (!(outlen > 0 && outlen <= 32)) {\n throw new Error('Incorrect output length, should be in [1, 32]')\n }\n const keylen = key ? key.length : 0\n if (key && !(keylen > 0 && keylen <= 32)) {\n throw new Error('Incorrect key length, should be in [1, 32]')\n }\n\n const ctx = {\n h: new Uint32Array(BLAKE2S_IV), // hash state\n b: new Uint8Array(64), // input block\n c: 0, // pointer within block\n t: 0, // input count\n outlen: outlen // output length in bytes\n }\n ctx.h[0] ^= 0x01010000 ^ (keylen << 8) ^ outlen\n\n if (keylen > 0) {\n blake2sUpdate(ctx, key)\n ctx.c = 64 // at the end\n }\n\n return ctx\n}\n\n// Updates a BLAKE2s streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2sUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 64) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2sCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2s streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2sFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n while (ctx.c < 64) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2sCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = (ctx.h[i >> 2] >> (8 * (i & 3))) & 0xff\n }\n return out\n}\n\n// Computes the BLAKE2S hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2s (input, key, outlen) {\n // preprocess inputs\n outlen = outlen || 32\n input = util.normalizeInput(input)\n\n // do the math\n const ctx = blake2sInit(outlen, key)\n blake2sUpdate(ctx, input)\n return blake2sFinal(ctx)\n}\n\n// Computes the BLAKE2S hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2sHex (input, key, outlen) {\n const output = blake2s(input, key, outlen)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2s: blake2s,\n blake2sHex: blake2sHex,\n blake2sInit: blake2sInit,\n blake2sUpdate: blake2sUpdate,\n blake2sFinal: blake2sFinal\n}\n","const b2b = require('./blake2b')\nconst b2s = require('./blake2s')\n\nmodule.exports = {\n blake2b: b2b.blake2b,\n blake2bHex: b2b.blake2bHex,\n blake2bInit: b2b.blake2bInit,\n blake2bUpdate: b2b.blake2bUpdate,\n blake2bFinal: b2b.blake2bFinal,\n blake2s: b2s.blake2s,\n blake2sHex: b2s.blake2sHex,\n blake2sInit: b2s.blake2sInit,\n blake2sUpdate: b2s.blake2sUpdate,\n blake2sFinal: b2s.blake2sFinal\n}\n","const ERROR_MSG_INPUT = 'Input must be an string, Buffer or Uint8Array'\n\n// For convenience, let people hash a string, not just a Uint8Array\nfunction normalizeInput (input) {\n let ret\n if (input instanceof Uint8Array) {\n ret = input\n } else if (typeof input === 'string') {\n const encoder = new TextEncoder()\n ret = encoder.encode(input)\n } else {\n throw new Error(ERROR_MSG_INPUT)\n }\n return ret\n}\n\n// Converts a Uint8Array to a hexadecimal string\n// For example, toHex([255, 0, 255]) returns \"ff00ff\"\nfunction toHex (bytes) {\n return Array.prototype.map\n .call(bytes, function (n) {\n return (n < 16 ? '0' : '') + n.toString(16)\n })\n .join('')\n}\n\n// Converts any value in [0...2^32-1] to an 8-character hex string\nfunction uint32ToHex (val) {\n return (0x100000000 + val).toString(16).substring(1)\n}\n\n// For debugging: prints out hash state in the same format as the RFC\n// sample computation exactly, so that you can diff\nfunction debugPrint (label, arr, size) {\n let msg = '\\n' + label + ' = '\n for (let i = 0; i < arr.length; i += 2) {\n if (size === 32) {\n msg += uint32ToHex(arr[i]).toUpperCase()\n msg += ' '\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n } else if (size === 64) {\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n msg += uint32ToHex(arr[i]).toUpperCase()\n } else throw new Error('Invalid size ' + size)\n if (i % 6 === 4) {\n msg += '\\n' + new Array(label.length + 4).join(' ')\n } else if (i < arr.length - 2) {\n msg += ' '\n }\n }\n console.log(msg)\n}\n\n// For performance testing: generates N bytes of input, hashes M times\n// Measures and prints MB/second hash performance each time\nfunction testSpeed (hashFn, N, M) {\n let startMs = new Date().getTime()\n\n const input = new Uint8Array(N)\n for (let i = 0; i < N; i++) {\n input[i] = i % 256\n }\n const genMs = new Date().getTime()\n console.log('Generated random input in ' + (genMs - startMs) + 'ms')\n startMs = genMs\n\n for (let i = 0; i < M; i++) {\n const hashHex = hashFn(input)\n const hashMs = new Date().getTime()\n const ms = hashMs - startMs\n startMs = hashMs\n console.log('Hashed in ' + ms + 'ms: ' + hashHex.substring(0, 20) + '...')\n console.log(\n Math.round((N / (1 << 20) / (ms / 1000)) * 100) / 100 + ' MB PER SECOND'\n )\n }\n}\n\nmodule.exports = {\n normalizeInput: normalizeInput,\n toHex: toHex,\n debugPrint: debugPrint,\n testSpeed: testSpeed\n}\n","(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = require('buffer').Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // 'A' - 'F'\n if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n // '0' - '9'\n } else {\n return (c - 48) & 0xf;\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this.strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is BN v4 instance\n r.strip();\n } else {\n // r is BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.bowser=t():e.bowser=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=90)}({17:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||\"\"},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||\"\"},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case\"NT\":return\"NT\";case\"XP\":return\"XP\";case\"NT 5.0\":return\"2000\";case\"NT 5.1\":return\"XP\";case\"NT 5.2\":return\"2003\";case\"NT 6.0\":return\"Vista\";case\"NT 6.1\":return\"7\";case\"NT 6.2\":return\"8\";case\"NT 6.3\":return\"8.1\";case\"NT 10.0\":return\"10\";default:return}},e.getMacOSVersionName=function(e){var t=e.split(\".\").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return\"Leopard\";case 6:return\"Snow Leopard\";case 7:return\"Lion\";case 8:return\"Mountain Lion\";case 9:return\"Mavericks\";case 10:return\"Yosemite\";case 11:return\"El Capitan\";case 12:return\"Sierra\";case 13:return\"High Sierra\";case 14:return\"Mojave\";case 15:return\"Catalina\";default:return}},e.getAndroidVersionName=function(e){var t=e.split(\".\").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?\"Cupcake\":1===t[0]&&t[1]>=6?\"Donut\":2===t[0]&&t[1]<2?\"Eclair\":2===t[0]&&2===t[1]?\"Froyo\":2===t[0]&&t[1]>2?\"Gingerbread\":3===t[0]?\"Honeycomb\":4===t[0]&&t[1]<1?\"Ice Cream Sandwich\":4===t[0]&&t[1]<4?\"Jelly Bean\":4===t[0]&&t[1]>=4?\"KitKat\":5===t[0]?\"Lollipop\":6===t[0]?\"Marshmallow\":7===t[0]?\"Nougat\":8===t[0]?\"Oreo\":9===t[0]?\"Pie\":void 0},e.getVersionPrecision=function(e){return e.split(\".\").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),s=e.getVersionPrecision(r),a=Math.max(i,s),o=0,u=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(\".0\");return e.map(n.split(\".\"),(function(e){return new Array(20-e.length).join(\"0\")+e})).reverse()}));for(n&&(o=a-Math.min(i,s)),a-=1;a>=o;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===o)return 0;a-=1}else if(u[0][a]1?i-1:0),a=1;a0){var a=Object.keys(r),u=o.default.find(a,(function(e){return t.isOS(e)}));if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}var c=o.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var f=this.satisfies(r[c]);if(void 0!==f)return f}}if(s>0){var l=Object.keys(i),h=o.default.find(l,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=o.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if(\"string\"==typeof i)return\">\"===e[0]||\"<\"===e[0]?(r=e.substr(1),\"=\"===e[1]?(n=!0,r=e.substr(2)):t=[],\">\"===e[0]?t.push(1):t.push(-1)):\"=\"===e[0]?r=e.substr(1):\"~\"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(o.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=d,e.exports=t.default},92:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n};var s=/version\\/(\\d+(\\.?_?\\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:\"Googlebot\"},r=i.default.getFirstMatch(/googlebot\\/(\\d+(\\.\\d+))/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:\"Opera\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:opera)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\\/|opios/i],describe:function(e){var t={name:\"Opera\"},r=i.default.getFirstMatch(/(?:opr|opios)[\\s/](\\S+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:\"Samsung Internet for Android\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:\"NAVER Whale Browser\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:whale)[\\s/](\\d+(?:\\.\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:\"MZ Browser\"},r=i.default.getFirstMatch(/(?:MZBrowser)[\\s/](\\d+(?:\\.\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:\"Focus\"},r=i.default.getFirstMatch(/(?:focus)[\\s/](\\d+(?:\\.\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:\"Swing\"},r=i.default.getFirstMatch(/(?:swing)[\\s/](\\d+(?:\\.\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:\"Opera Coast\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:coast)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\\/\\d+(?:.?_?\\d+)+/i],describe:function(e){var t={name:\"Opera Touch\"},r=i.default.getFirstMatch(/(?:opt)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:\"Yandex Browser\"},r=i.default.getFirstMatch(/(?:yabrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:\"UC Browser\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:ucbrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:\"Maxthon\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:\"Epiphany\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:epiphany)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:\"Puffin\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:puffin)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:\"Sleipnir\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:sleipnir)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:\"K-Meleon\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:k-meleon)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:\"WeChat\"},r=i.default.getFirstMatch(/(?:micromessenger)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?\"QQ Browser Lite\":\"QQ Browser\"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:\"Internet Explorer\"},r=i.default.getFirstMatch(/(?:msie |rv:)(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\\sedg\\//i],describe:function(e){var t={name:\"Microsoft Edge\"},r=i.default.getFirstMatch(/\\sedg\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:\"Microsoft Edge\"},r=i.default.getSecondMatch(/edg([ea]|ios)\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:\"Vivaldi\"},r=i.default.getFirstMatch(/vivaldi\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:\"SeaMonkey\"},r=i.default.getFirstMatch(/seamonkey\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:\"Sailfish\"},r=i.default.getFirstMatch(/sailfish\\s?browser\\/(\\d+(\\.\\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:\"Amazon Silk\"},r=i.default.getFirstMatch(/silk\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:\"PhantomJS\"},r=i.default.getFirstMatch(/phantomjs\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:\"SlimerJS\"},r=i.default.getFirstMatch(/slimerjs\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\\bbb\\d+/i,/rim\\stablet/i],describe:function(e){var t={name:\"BlackBerry\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/blackberry[\\d]+\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:\"WebOS Browser\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:\"Bada\"},r=i.default.getFirstMatch(/dolfin\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:\"Tizen\"},r=i.default.getFirstMatch(/(?:tizen\\s?)?browser\\/(\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:\"QupZilla\"},r=i.default.getFirstMatch(/(?:qupzilla)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:\"Firefox\"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:\"Electron\"},r=i.default.getFirstMatch(/(?:electron)\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:\"Miui\"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:\"Chromium\"},r=i.default.getFirstMatch(/(?:chromium)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:\"Chrome\"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:\"Google Search\"},r=i.default.getFirstMatch(/(?:GSA)\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:\"Android Browser\"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:\"PlayStation 4\"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:\"Safari\"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search(\"\\\\(\")?/^(.*)\\/(.*)[ \\t]\\((.*)/:/^(.*)\\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:[/Roku\\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\\/DVP-(\\d+\\.\\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\\s?(\\d+(\\.\\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \\d\\d?.\\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\//],describe:function(e){var t={name:s.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\\/)(\\d[\\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\\d+(\\.?_?\\d+)+)/i,e).replace(/[_\\s]/g,\".\"),r=i.default.getMacOSVersionName(t),n={name:s.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\\d+([_\\s]\\d+)*) like mac os x/i,e).replace(/[_\\s]/g,\".\");return{name:s.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\\s/-](\\d+(\\.\\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:s.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\\/(\\d+(\\.\\d+)*)/i,e),r={name:s.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\\bbb\\d+/i,/rim\\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\\stablet\\sos\\s(\\d+(\\.\\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\\d+\\/(\\d+([_\\s]\\d+)*)/i,e)||i.default.getFirstMatch(/\\bbb(\\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\\/(\\d+(\\.\\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\\s](\\d+(\\.\\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\\s](\\d+(\\.\\d+)*)/i,e);return{name:s.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:[/googlebot/i],describe:function(){return{type:\"bot\",vendor:\"Google\"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&\"Nova\",r={type:s.PLATFORMS_MAP.mobile,vendor:\"Huawei\"};return t&&(r.model=t),r}},{test:[/nexus\\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Nexus\"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Amazon\",model:\"Kindle Fire HD 7\"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Amazon\"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:\"Apple\",model:t}}},{test:[/nexus\\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:\"Nexus\"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return\"blackberry\"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:\"BlackBerry\"}}},{test:function(e){return\"bada\"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return\"windows phone\"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:\"Microsoft\"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(\".\")[0]);return\"android\"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return\"android\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return\"macos\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:\"Apple\"}}},{test:function(e){return\"windows\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return\"linux\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return\"playstation 4\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return\"roku\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:function(e){return\"microsoft edge\"===e.getBrowserName(!0)},describe:function(e){if(/\\sedg\\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\\/(\\d+(\\.?_?\\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\\/537\\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})}));","var r;\n\nmodule.exports = function rand(len) {\n if (!r)\n r = new Rand(null);\n\n return r.generate(len);\n};\n\nfunction Rand(rand) {\n this.rand = rand;\n}\nmodule.exports.Rand = Rand;\n\nRand.prototype.generate = function generate(len) {\n return this._rand(len);\n};\n\n// Emulate crypto API using randy\nRand.prototype._rand = function _rand(n) {\n if (this.rand.getBytes)\n return this.rand.getBytes(n);\n\n var res = new Uint8Array(n);\n for (var i = 0; i < res.length; i++)\n res[i] = this.rand.getByte();\n return res;\n};\n\nif (typeof self === 'object') {\n if (self.crypto && self.crypto.getRandomValues) {\n // Modern browsers\n Rand.prototype._rand = function _rand(n) {\n var arr = new Uint8Array(n);\n self.crypto.getRandomValues(arr);\n return arr;\n };\n } else if (self.msCrypto && self.msCrypto.getRandomValues) {\n // IE\n Rand.prototype._rand = function _rand(n) {\n var arr = new Uint8Array(n);\n self.msCrypto.getRandomValues(arr);\n return arr;\n };\n\n // Safari's WebWorkers do not have `crypto`\n } else if (typeof window === 'object') {\n // Old junk\n Rand.prototype._rand = function() {\n throw new Error('Not implemented yet');\n };\n }\n} else {\n // Node.js or Web worker with no crypto support\n try {\n var crypto = require('crypto');\n if (typeof crypto.randomBytes !== 'function')\n throw new Error('Not supported');\n\n Rand.prototype._rand = function _rand(n) {\n return crypto.randomBytes(n);\n };\n } catch (e) {\n }\n}\n","var basex = require('base-x')\nvar ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'\n\nmodule.exports = basex(ALPHABET)\n","'use strict'\n\nvar base58 = require('bs58')\nvar Buffer = require('safe-buffer').Buffer\n\nmodule.exports = function (checksumFn) {\n // Encode a buffer as a base58-check encoded string\n function encode (payload) {\n var checksum = checksumFn(payload)\n\n return base58.encode(Buffer.concat([\n payload,\n checksum\n ], payload.length + 4))\n }\n\n function decodeRaw (buffer) {\n var payload = buffer.slice(0, -4)\n var checksum = buffer.slice(-4)\n var newChecksum = checksumFn(payload)\n\n if (checksum[0] ^ newChecksum[0] |\n checksum[1] ^ newChecksum[1] |\n checksum[2] ^ newChecksum[2] |\n checksum[3] ^ newChecksum[3]) return\n\n return payload\n }\n\n // Decode a base58-check encoded string to a buffer, no result if checksum is wrong\n function decodeUnsafe (string) {\n var buffer = base58.decodeUnsafe(string)\n if (!buffer) return\n\n return decodeRaw(buffer)\n }\n\n function decode (string) {\n var buffer = base58.decode(string)\n var payload = decodeRaw(buffer, checksumFn)\n if (!payload) throw new Error('Invalid checksum')\n return payload\n }\n\n return {\n encode: encode,\n decode: decode,\n decodeUnsafe: decodeUnsafe\n }\n}\n","'use strict'\n\nvar createHash = require('create-hash')\nvar bs58checkBase = require('./base')\n\n// SHA256(SHA256(buffer))\nfunction sha256x2 (buffer) {\n var tmp = createHash('sha256').update(buffer).digest()\n return createHash('sha256').update(tmp).digest()\n}\n\nmodule.exports = bs58checkBase(sha256x2)\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","var charenc = {\n // UTF-8 encoding\n utf8: {\n // Convert a string to a byte array\n stringToBytes: function(str) {\n return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));\n },\n\n // Convert a byte array to a string\n bytesToString: function(bytes) {\n return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));\n }\n },\n\n // Binary encoding\n bin: {\n // Convert a string to a byte array\n stringToBytes: function(str) {\n for (var bytes = [], i = 0; i < str.length; i++)\n bytes.push(str.charCodeAt(i) & 0xFF);\n return bytes;\n },\n\n // Convert a byte array to a string\n bytesToString: function(bytes) {\n for (var str = [], i = 0; i < bytes.length; i++)\n str.push(String.fromCharCode(bytes[i]));\n return str.join('');\n }\n }\n};\n\nmodule.exports = charenc;\n","var Buffer = require('safe-buffer').Buffer\nvar Transform = require('stream').Transform\nvar StringDecoder = require('string_decoder').StringDecoder\nvar inherits = require('inherits')\n\nfunction CipherBase (hashMode) {\n Transform.call(this)\n this.hashMode = typeof hashMode === 'string'\n if (this.hashMode) {\n this[hashMode] = this._finalOrDigest\n } else {\n this.final = this._finalOrDigest\n }\n if (this._final) {\n this.__final = this._final\n this._final = null\n }\n this._decoder = null\n this._encoding = null\n}\ninherits(CipherBase, Transform)\n\nCipherBase.prototype.update = function (data, inputEnc, outputEnc) {\n if (typeof data === 'string') {\n data = Buffer.from(data, inputEnc)\n }\n\n var outData = this._update(data)\n if (this.hashMode) return this\n\n if (outputEnc) {\n outData = this._toString(outData, outputEnc)\n }\n\n return outData\n}\n\nCipherBase.prototype.setAutoPadding = function () {}\nCipherBase.prototype.getAuthTag = function () {\n throw new Error('trying to get auth tag in unsupported state')\n}\n\nCipherBase.prototype.setAuthTag = function () {\n throw new Error('trying to set auth tag in unsupported state')\n}\n\nCipherBase.prototype.setAAD = function () {\n throw new Error('trying to set aad in unsupported state')\n}\n\nCipherBase.prototype._transform = function (data, _, next) {\n var err\n try {\n if (this.hashMode) {\n this._update(data)\n } else {\n this.push(this._update(data))\n }\n } catch (e) {\n err = e\n } finally {\n next(err)\n }\n}\nCipherBase.prototype._flush = function (done) {\n var err\n try {\n this.push(this.__final())\n } catch (e) {\n err = e\n }\n\n done(err)\n}\nCipherBase.prototype._finalOrDigest = function (outputEnc) {\n var outData = this.__final() || Buffer.alloc(0)\n if (outputEnc) {\n outData = this._toString(outData, outputEnc, true)\n }\n return outData\n}\n\nCipherBase.prototype._toString = function (value, enc, fin) {\n if (!this._decoder) {\n this._decoder = new StringDecoder(enc)\n this._encoding = enc\n }\n\n if (this._encoding !== enc) throw new Error('can\\'t switch encodings')\n\n var out = this._decoder.write(value)\n if (fin) {\n out += this._decoder.end()\n }\n\n return out\n}\n\nmodule.exports = CipherBase\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","'use strict'\nvar inherits = require('inherits')\nvar MD5 = require('md5.js')\nvar RIPEMD160 = require('ripemd160')\nvar sha = require('sha.js')\nvar Base = require('cipher-base')\n\nfunction Hash (hash) {\n Base.call(this, 'digest')\n\n this._hash = hash\n}\n\ninherits(Hash, Base)\n\nHash.prototype._update = function (data) {\n this._hash.update(data)\n}\n\nHash.prototype._final = function () {\n return this._hash.digest()\n}\n\nmodule.exports = function createHash (alg) {\n alg = alg.toLowerCase()\n if (alg === 'md5') return new MD5()\n if (alg === 'rmd160' || alg === 'ripemd160') return new RIPEMD160()\n\n return new Hash(sha(alg))\n}\n","var MD5 = require('md5.js')\n\nmodule.exports = function (buffer) {\n return new MD5().update(buffer).digest()\n}\n","(function() {\n var base64map\n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',\n\n crypt = {\n // Bit-wise rotation left\n rotl: function(n, b) {\n return (n << b) | (n >>> (32 - b));\n },\n\n // Bit-wise rotation right\n rotr: function(n, b) {\n return (n << (32 - b)) | (n >>> b);\n },\n\n // Swap big-endian to little-endian and vice versa\n endian: function(n) {\n // If number given, swap endian\n if (n.constructor == Number) {\n return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;\n }\n\n // Else, assume array and swap all items\n for (var i = 0; i < n.length; i++)\n n[i] = crypt.endian(n[i]);\n return n;\n },\n\n // Generate an array of any length of random bytes\n randomBytes: function(n) {\n for (var bytes = []; n > 0; n--)\n bytes.push(Math.floor(Math.random() * 256));\n return bytes;\n },\n\n // Convert a byte array to big-endian 32-bit words\n bytesToWords: function(bytes) {\n for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)\n words[b >>> 5] |= bytes[i] << (24 - b % 32);\n return words;\n },\n\n // Convert big-endian 32-bit words to a byte array\n wordsToBytes: function(words) {\n for (var bytes = [], b = 0; b < words.length * 32; b += 8)\n bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);\n return bytes;\n },\n\n // Convert a byte array to a hex string\n bytesToHex: function(bytes) {\n for (var hex = [], i = 0; i < bytes.length; i++) {\n hex.push((bytes[i] >>> 4).toString(16));\n hex.push((bytes[i] & 0xF).toString(16));\n }\n return hex.join('');\n },\n\n // Convert a hex string to a byte array\n hexToBytes: function(hex) {\n for (var bytes = [], c = 0; c < hex.length; c += 2)\n bytes.push(parseInt(hex.substr(c, 2), 16));\n return bytes;\n },\n\n // Convert a byte array to a base-64 string\n bytesToBase64: function(bytes) {\n for (var base64 = [], i = 0; i < bytes.length; i += 3) {\n var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];\n for (var j = 0; j < 4; j++)\n if (i * 8 + j * 6 <= bytes.length * 8)\n base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));\n else\n base64.push('=');\n }\n return base64.join('');\n },\n\n // Convert a base-64 string to a byte array\n base64ToBytes: function(base64) {\n // Remove non-base-64 characters\n base64 = base64.replace(/[^A-Z0-9+\\/]/ig, '');\n\n for (var bytes = [], i = 0, imod4 = 0; i < base64.length;\n imod4 = ++i % 4) {\n if (imod4 == 0) continue;\n bytes.push(((base64map.indexOf(base64.charAt(i - 1))\n & (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))\n | (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));\n }\n return bytes;\n }\n };\n\n module.exports = crypt;\n})();\n","'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n","'use strict';\n\nvar elliptic = exports;\n\nelliptic.version = require('../package.json').version;\nelliptic.utils = require('./elliptic/utils');\nelliptic.rand = require('brorand');\nelliptic.curve = require('./elliptic/curve');\nelliptic.curves = require('./elliptic/curves');\n\n// Protocols\nelliptic.ec = require('./elliptic/ec');\nelliptic.eddsa = require('./elliptic/eddsa');\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar getNAF = utils.getNAF;\nvar getJSF = utils.getJSF;\nvar assert = utils.assert;\n\nfunction BaseCurve(type, conf) {\n this.type = type;\n this.p = new BN(conf.p, 16);\n\n // Use Montgomery, when there is no fast reduction for the prime\n this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p);\n\n // Useful for many curves\n this.zero = new BN(0).toRed(this.red);\n this.one = new BN(1).toRed(this.red);\n this.two = new BN(2).toRed(this.red);\n\n // Curve configuration, optional\n this.n = conf.n && new BN(conf.n, 16);\n this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);\n\n // Temporary arrays\n this._wnafT1 = new Array(4);\n this._wnafT2 = new Array(4);\n this._wnafT3 = new Array(4);\n this._wnafT4 = new Array(4);\n\n this._bitLength = this.n ? this.n.bitLength() : 0;\n\n // Generalized Greg Maxwell's trick\n var adjustCount = this.n && this.p.div(this.n);\n if (!adjustCount || adjustCount.cmpn(100) > 0) {\n this.redN = null;\n } else {\n this._maxwellTrick = true;\n this.redN = this.n.toRed(this.red);\n }\n}\nmodule.exports = BaseCurve;\n\nBaseCurve.prototype.point = function point() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype.validate = function validate() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {\n assert(p.precomputed);\n var doubles = p._getDoubles();\n\n var naf = getNAF(k, 1, this._bitLength);\n var I = (1 << (doubles.step + 1)) - (doubles.step % 2 === 0 ? 2 : 1);\n I /= 3;\n\n // Translate into more windowed form\n var repr = [];\n var j;\n var nafW;\n for (j = 0; j < naf.length; j += doubles.step) {\n nafW = 0;\n for (var l = j + doubles.step - 1; l >= j; l--)\n nafW = (nafW << 1) + naf[l];\n repr.push(nafW);\n }\n\n var a = this.jpoint(null, null, null);\n var b = this.jpoint(null, null, null);\n for (var i = I; i > 0; i--) {\n for (j = 0; j < repr.length; j++) {\n nafW = repr[j];\n if (nafW === i)\n b = b.mixedAdd(doubles.points[j]);\n else if (nafW === -i)\n b = b.mixedAdd(doubles.points[j].neg());\n }\n a = a.add(b);\n }\n return a.toP();\n};\n\nBaseCurve.prototype._wnafMul = function _wnafMul(p, k) {\n var w = 4;\n\n // Precompute window\n var nafPoints = p._getNAFPoints(w);\n w = nafPoints.wnd;\n var wnd = nafPoints.points;\n\n // Get NAF form\n var naf = getNAF(k, w, this._bitLength);\n\n // Add `this`*(N+1) for every w-NAF index\n var acc = this.jpoint(null, null, null);\n for (var i = naf.length - 1; i >= 0; i--) {\n // Count zeroes\n for (var l = 0; i >= 0 && naf[i] === 0; i--)\n l++;\n if (i >= 0)\n l++;\n acc = acc.dblp(l);\n\n if (i < 0)\n break;\n var z = naf[i];\n assert(z !== 0);\n if (p.type === 'affine') {\n // J +- P\n if (z > 0)\n acc = acc.mixedAdd(wnd[(z - 1) >> 1]);\n else\n acc = acc.mixedAdd(wnd[(-z - 1) >> 1].neg());\n } else {\n // J +- J\n if (z > 0)\n acc = acc.add(wnd[(z - 1) >> 1]);\n else\n acc = acc.add(wnd[(-z - 1) >> 1].neg());\n }\n }\n return p.type === 'affine' ? acc.toP() : acc;\n};\n\nBaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,\n points,\n coeffs,\n len,\n jacobianResult) {\n var wndWidth = this._wnafT1;\n var wnd = this._wnafT2;\n var naf = this._wnafT3;\n\n // Fill all arrays\n var max = 0;\n var i;\n var j;\n var p;\n for (i = 0; i < len; i++) {\n p = points[i];\n var nafPoints = p._getNAFPoints(defW);\n wndWidth[i] = nafPoints.wnd;\n wnd[i] = nafPoints.points;\n }\n\n // Comb small window NAFs\n for (i = len - 1; i >= 1; i -= 2) {\n var a = i - 1;\n var b = i;\n if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {\n naf[a] = getNAF(coeffs[a], wndWidth[a], this._bitLength);\n naf[b] = getNAF(coeffs[b], wndWidth[b], this._bitLength);\n max = Math.max(naf[a].length, max);\n max = Math.max(naf[b].length, max);\n continue;\n }\n\n var comb = [\n points[a], /* 1 */\n null, /* 3 */\n null, /* 5 */\n points[b], /* 7 */\n ];\n\n // Try to avoid Projective points, if possible\n if (points[a].y.cmp(points[b].y) === 0) {\n comb[1] = points[a].add(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].add(points[b].neg());\n } else {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n }\n\n var index = [\n -3, /* -1 -1 */\n -1, /* -1 0 */\n -5, /* -1 1 */\n -7, /* 0 -1 */\n 0, /* 0 0 */\n 7, /* 0 1 */\n 5, /* 1 -1 */\n 1, /* 1 0 */\n 3, /* 1 1 */\n ];\n\n var jsf = getJSF(coeffs[a], coeffs[b]);\n max = Math.max(jsf[0].length, max);\n naf[a] = new Array(max);\n naf[b] = new Array(max);\n for (j = 0; j < max; j++) {\n var ja = jsf[0][j] | 0;\n var jb = jsf[1][j] | 0;\n\n naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];\n naf[b][j] = 0;\n wnd[a] = comb;\n }\n }\n\n var acc = this.jpoint(null, null, null);\n var tmp = this._wnafT4;\n for (i = max; i >= 0; i--) {\n var k = 0;\n\n while (i >= 0) {\n var zero = true;\n for (j = 0; j < len; j++) {\n tmp[j] = naf[j][i] | 0;\n if (tmp[j] !== 0)\n zero = false;\n }\n if (!zero)\n break;\n k++;\n i--;\n }\n if (i >= 0)\n k++;\n acc = acc.dblp(k);\n if (i < 0)\n break;\n\n for (j = 0; j < len; j++) {\n var z = tmp[j];\n p;\n if (z === 0)\n continue;\n else if (z > 0)\n p = wnd[j][(z - 1) >> 1];\n else if (z < 0)\n p = wnd[j][(-z - 1) >> 1].neg();\n\n if (p.type === 'affine')\n acc = acc.mixedAdd(p);\n else\n acc = acc.add(p);\n }\n }\n // Zeroify references\n for (i = 0; i < len; i++)\n wnd[i] = null;\n\n if (jacobianResult)\n return acc;\n else\n return acc.toP();\n};\n\nfunction BasePoint(curve, type) {\n this.curve = curve;\n this.type = type;\n this.precomputed = null;\n}\nBaseCurve.BasePoint = BasePoint;\n\nBasePoint.prototype.eq = function eq(/*other*/) {\n throw new Error('Not implemented');\n};\n\nBasePoint.prototype.validate = function validate() {\n return this.curve.validate(this);\n};\n\nBaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n bytes = utils.toArray(bytes, enc);\n\n var len = this.p.byteLength();\n\n // uncompressed, hybrid-odd, hybrid-even\n if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) &&\n bytes.length - 1 === 2 * len) {\n if (bytes[0] === 0x06)\n assert(bytes[bytes.length - 1] % 2 === 0);\n else if (bytes[0] === 0x07)\n assert(bytes[bytes.length - 1] % 2 === 1);\n\n var res = this.point(bytes.slice(1, 1 + len),\n bytes.slice(1 + len, 1 + 2 * len));\n\n return res;\n } else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&\n bytes.length - 1 === len) {\n return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);\n }\n throw new Error('Unknown point format');\n};\n\nBasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {\n return this.encode(enc, true);\n};\n\nBasePoint.prototype._encode = function _encode(compact) {\n var len = this.curve.p.byteLength();\n var x = this.getX().toArray('be', len);\n\n if (compact)\n return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);\n\n return [ 0x04 ].concat(x, this.getY().toArray('be', len));\n};\n\nBasePoint.prototype.encode = function encode(enc, compact) {\n return utils.encode(this._encode(compact), enc);\n};\n\nBasePoint.prototype.precompute = function precompute(power) {\n if (this.precomputed)\n return this;\n\n var precomputed = {\n doubles: null,\n naf: null,\n beta: null,\n };\n precomputed.naf = this._getNAFPoints(8);\n precomputed.doubles = this._getDoubles(4, power);\n precomputed.beta = this._getBeta();\n this.precomputed = precomputed;\n\n return this;\n};\n\nBasePoint.prototype._hasDoubles = function _hasDoubles(k) {\n if (!this.precomputed)\n return false;\n\n var doubles = this.precomputed.doubles;\n if (!doubles)\n return false;\n\n return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);\n};\n\nBasePoint.prototype._getDoubles = function _getDoubles(step, power) {\n if (this.precomputed && this.precomputed.doubles)\n return this.precomputed.doubles;\n\n var doubles = [ this ];\n var acc = this;\n for (var i = 0; i < power; i += step) {\n for (var j = 0; j < step; j++)\n acc = acc.dbl();\n doubles.push(acc);\n }\n return {\n step: step,\n points: doubles,\n };\n};\n\nBasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {\n if (this.precomputed && this.precomputed.naf)\n return this.precomputed.naf;\n\n var res = [ this ];\n var max = (1 << wnd) - 1;\n var dbl = max === 1 ? null : this.dbl();\n for (var i = 1; i < max; i++)\n res[i] = res[i - 1].add(dbl);\n return {\n wnd: wnd,\n points: res,\n };\n};\n\nBasePoint.prototype._getBeta = function _getBeta() {\n return null;\n};\n\nBasePoint.prototype.dblp = function dblp(k) {\n var r = this;\n for (var i = 0; i < k; i++)\n r = r.dbl();\n return r;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar BN = require('bn.js');\nvar inherits = require('inherits');\nvar Base = require('./base');\n\nvar assert = utils.assert;\n\nfunction EdwardsCurve(conf) {\n // NOTE: Important as we are creating point in Base.call()\n this.twisted = (conf.a | 0) !== 1;\n this.mOneA = this.twisted && (conf.a | 0) === -1;\n this.extended = this.mOneA;\n\n Base.call(this, 'edwards', conf);\n\n this.a = new BN(conf.a, 16).umod(this.red.m);\n this.a = this.a.toRed(this.red);\n this.c = new BN(conf.c, 16).toRed(this.red);\n this.c2 = this.c.redSqr();\n this.d = new BN(conf.d, 16).toRed(this.red);\n this.dd = this.d.redAdd(this.d);\n\n assert(!this.twisted || this.c.fromRed().cmpn(1) === 0);\n this.oneC = (conf.c | 0) === 1;\n}\ninherits(EdwardsCurve, Base);\nmodule.exports = EdwardsCurve;\n\nEdwardsCurve.prototype._mulA = function _mulA(num) {\n if (this.mOneA)\n return num.redNeg();\n else\n return this.a.redMul(num);\n};\n\nEdwardsCurve.prototype._mulC = function _mulC(num) {\n if (this.oneC)\n return num;\n else\n return this.c.redMul(num);\n};\n\n// Just for compatibility with Short curve\nEdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) {\n return this.point(x, y, z, t);\n};\n\nEdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) {\n x = new BN(x, 16);\n if (!x.red)\n x = x.toRed(this.red);\n\n var x2 = x.redSqr();\n var rhs = this.c2.redSub(this.a.redMul(x2));\n var lhs = this.one.redSub(this.c2.redMul(this.d).redMul(x2));\n\n var y2 = rhs.redMul(lhs.redInvm());\n var y = y2.redSqrt();\n if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n var isOdd = y.fromRed().isOdd();\n if (odd && !isOdd || !odd && isOdd)\n y = y.redNeg();\n\n return this.point(x, y);\n};\n\nEdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) {\n y = new BN(y, 16);\n if (!y.red)\n y = y.toRed(this.red);\n\n // x^2 = (y^2 - c^2) / (c^2 d y^2 - a)\n var y2 = y.redSqr();\n var lhs = y2.redSub(this.c2);\n var rhs = y2.redMul(this.d).redMul(this.c2).redSub(this.a);\n var x2 = lhs.redMul(rhs.redInvm());\n\n if (x2.cmp(this.zero) === 0) {\n if (odd)\n throw new Error('invalid point');\n else\n return this.point(this.zero, y);\n }\n\n var x = x2.redSqrt();\n if (x.redSqr().redSub(x2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n if (x.fromRed().isOdd() !== odd)\n x = x.redNeg();\n\n return this.point(x, y);\n};\n\nEdwardsCurve.prototype.validate = function validate(point) {\n if (point.isInfinity())\n return true;\n\n // Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2)\n point.normalize();\n\n var x2 = point.x.redSqr();\n var y2 = point.y.redSqr();\n var lhs = x2.redMul(this.a).redAdd(y2);\n var rhs = this.c2.redMul(this.one.redAdd(this.d.redMul(x2).redMul(y2)));\n\n return lhs.cmp(rhs) === 0;\n};\n\nfunction Point(curve, x, y, z, t) {\n Base.BasePoint.call(this, curve, 'projective');\n if (x === null && y === null && z === null) {\n this.x = this.curve.zero;\n this.y = this.curve.one;\n this.z = this.curve.one;\n this.t = this.curve.zero;\n this.zOne = true;\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n this.z = z ? new BN(z, 16) : this.curve.one;\n this.t = t && new BN(t, 16);\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n if (this.t && !this.t.red)\n this.t = this.t.toRed(this.curve.red);\n this.zOne = this.z === this.curve.one;\n\n // Use extended coordinates\n if (this.curve.extended && !this.t) {\n this.t = this.x.redMul(this.y);\n if (!this.zOne)\n this.t = this.t.redMul(this.z.redInvm());\n }\n }\n}\ninherits(Point, Base.BasePoint);\n\nEdwardsCurve.prototype.pointFromJSON = function pointFromJSON(obj) {\n return Point.fromJSON(this, obj);\n};\n\nEdwardsCurve.prototype.point = function point(x, y, z, t) {\n return new Point(this, x, y, z, t);\n};\n\nPoint.fromJSON = function fromJSON(curve, obj) {\n return new Point(curve, obj[0], obj[1], obj[2]);\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.x.cmpn(0) === 0 &&\n (this.y.cmp(this.z) === 0 ||\n (this.zOne && this.y.cmp(this.curve.c) === 0));\n};\n\nPoint.prototype._extDbl = function _extDbl() {\n // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html\n // #doubling-dbl-2008-hwcd\n // 4M + 4S\n\n // A = X1^2\n var a = this.x.redSqr();\n // B = Y1^2\n var b = this.y.redSqr();\n // C = 2 * Z1^2\n var c = this.z.redSqr();\n c = c.redIAdd(c);\n // D = a * A\n var d = this.curve._mulA(a);\n // E = (X1 + Y1)^2 - A - B\n var e = this.x.redAdd(this.y).redSqr().redISub(a).redISub(b);\n // G = D + B\n var g = d.redAdd(b);\n // F = G - C\n var f = g.redSub(c);\n // H = D - B\n var h = d.redSub(b);\n // X3 = E * F\n var nx = e.redMul(f);\n // Y3 = G * H\n var ny = g.redMul(h);\n // T3 = E * H\n var nt = e.redMul(h);\n // Z3 = F * G\n var nz = f.redMul(g);\n return this.curve.point(nx, ny, nz, nt);\n};\n\nPoint.prototype._projDbl = function _projDbl() {\n // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html\n // #doubling-dbl-2008-bbjlp\n // #doubling-dbl-2007-bl\n // and others\n // Generally 3M + 4S or 2M + 4S\n\n // B = (X1 + Y1)^2\n var b = this.x.redAdd(this.y).redSqr();\n // C = X1^2\n var c = this.x.redSqr();\n // D = Y1^2\n var d = this.y.redSqr();\n\n var nx;\n var ny;\n var nz;\n var e;\n var h;\n var j;\n if (this.curve.twisted) {\n // E = a * C\n e = this.curve._mulA(c);\n // F = E + D\n var f = e.redAdd(d);\n if (this.zOne) {\n // X3 = (B - C - D) * (F - 2)\n nx = b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two));\n // Y3 = F * (E - D)\n ny = f.redMul(e.redSub(d));\n // Z3 = F^2 - 2 * F\n nz = f.redSqr().redSub(f).redSub(f);\n } else {\n // H = Z1^2\n h = this.z.redSqr();\n // J = F - 2 * H\n j = f.redSub(h).redISub(h);\n // X3 = (B-C-D)*J\n nx = b.redSub(c).redISub(d).redMul(j);\n // Y3 = F * (E - D)\n ny = f.redMul(e.redSub(d));\n // Z3 = F * J\n nz = f.redMul(j);\n }\n } else {\n // E = C + D\n e = c.redAdd(d);\n // H = (c * Z1)^2\n h = this.curve._mulC(this.z).redSqr();\n // J = E - 2 * H\n j = e.redSub(h).redSub(h);\n // X3 = c * (B - E) * J\n nx = this.curve._mulC(b.redISub(e)).redMul(j);\n // Y3 = c * E * (C - D)\n ny = this.curve._mulC(e).redMul(c.redISub(d));\n // Z3 = E * J\n nz = e.redMul(j);\n }\n return this.curve.point(nx, ny, nz);\n};\n\nPoint.prototype.dbl = function dbl() {\n if (this.isInfinity())\n return this;\n\n // Double in extended coordinates\n if (this.curve.extended)\n return this._extDbl();\n else\n return this._projDbl();\n};\n\nPoint.prototype._extAdd = function _extAdd(p) {\n // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html\n // #addition-add-2008-hwcd-3\n // 8M\n\n // A = (Y1 - X1) * (Y2 - X2)\n var a = this.y.redSub(this.x).redMul(p.y.redSub(p.x));\n // B = (Y1 + X1) * (Y2 + X2)\n var b = this.y.redAdd(this.x).redMul(p.y.redAdd(p.x));\n // C = T1 * k * T2\n var c = this.t.redMul(this.curve.dd).redMul(p.t);\n // D = Z1 * 2 * Z2\n var d = this.z.redMul(p.z.redAdd(p.z));\n // E = B - A\n var e = b.redSub(a);\n // F = D - C\n var f = d.redSub(c);\n // G = D + C\n var g = d.redAdd(c);\n // H = B + A\n var h = b.redAdd(a);\n // X3 = E * F\n var nx = e.redMul(f);\n // Y3 = G * H\n var ny = g.redMul(h);\n // T3 = E * H\n var nt = e.redMul(h);\n // Z3 = F * G\n var nz = f.redMul(g);\n return this.curve.point(nx, ny, nz, nt);\n};\n\nPoint.prototype._projAdd = function _projAdd(p) {\n // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html\n // #addition-add-2008-bbjlp\n // #addition-add-2007-bl\n // 10M + 1S\n\n // A = Z1 * Z2\n var a = this.z.redMul(p.z);\n // B = A^2\n var b = a.redSqr();\n // C = X1 * X2\n var c = this.x.redMul(p.x);\n // D = Y1 * Y2\n var d = this.y.redMul(p.y);\n // E = d * C * D\n var e = this.curve.d.redMul(c).redMul(d);\n // F = B - E\n var f = b.redSub(e);\n // G = B + E\n var g = b.redAdd(e);\n // X3 = A * F * ((X1 + Y1) * (X2 + Y2) - C - D)\n var tmp = this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d);\n var nx = a.redMul(f).redMul(tmp);\n var ny;\n var nz;\n if (this.curve.twisted) {\n // Y3 = A * G * (D - a * C)\n ny = a.redMul(g).redMul(d.redSub(this.curve._mulA(c)));\n // Z3 = F * G\n nz = f.redMul(g);\n } else {\n // Y3 = A * G * (D - C)\n ny = a.redMul(g).redMul(d.redSub(c));\n // Z3 = c * F * G\n nz = this.curve._mulC(f).redMul(g);\n }\n return this.curve.point(nx, ny, nz);\n};\n\nPoint.prototype.add = function add(p) {\n if (this.isInfinity())\n return p;\n if (p.isInfinity())\n return this;\n\n if (this.curve.extended)\n return this._extAdd(p);\n else\n return this._projAdd(p);\n};\n\nPoint.prototype.mul = function mul(k) {\n if (this._hasDoubles(k))\n return this.curve._fixedNafMul(this, k);\n else\n return this.curve._wnafMul(this, k);\n};\n\nPoint.prototype.mulAdd = function mulAdd(k1, p, k2) {\n return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, false);\n};\n\nPoint.prototype.jmulAdd = function jmulAdd(k1, p, k2) {\n return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, true);\n};\n\nPoint.prototype.normalize = function normalize() {\n if (this.zOne)\n return this;\n\n // Normalize coordinates\n var zi = this.z.redInvm();\n this.x = this.x.redMul(zi);\n this.y = this.y.redMul(zi);\n if (this.t)\n this.t = this.t.redMul(zi);\n this.z = this.curve.one;\n this.zOne = true;\n return this;\n};\n\nPoint.prototype.neg = function neg() {\n return this.curve.point(this.x.redNeg(),\n this.y,\n this.z,\n this.t && this.t.redNeg());\n};\n\nPoint.prototype.getX = function getX() {\n this.normalize();\n return this.x.fromRed();\n};\n\nPoint.prototype.getY = function getY() {\n this.normalize();\n return this.y.fromRed();\n};\n\nPoint.prototype.eq = function eq(other) {\n return this === other ||\n this.getX().cmp(other.getX()) === 0 &&\n this.getY().cmp(other.getY()) === 0;\n};\n\nPoint.prototype.eqXToP = function eqXToP(x) {\n var rx = x.toRed(this.curve.red).redMul(this.z);\n if (this.x.cmp(rx) === 0)\n return true;\n\n var xc = x.clone();\n var t = this.curve.redN.redMul(this.z);\n for (;;) {\n xc.iadd(this.curve.n);\n if (xc.cmp(this.curve.p) >= 0)\n return false;\n\n rx.redIAdd(t);\n if (this.x.cmp(rx) === 0)\n return true;\n }\n};\n\n// Compatibility with BaseCurve\nPoint.prototype.toP = Point.prototype.normalize;\nPoint.prototype.mixedAdd = Point.prototype.add;\n","'use strict';\n\nvar curve = exports;\n\ncurve.base = require('./base');\ncurve.short = require('./short');\ncurve.mont = require('./mont');\ncurve.edwards = require('./edwards');\n","'use strict';\n\nvar BN = require('bn.js');\nvar inherits = require('inherits');\nvar Base = require('./base');\n\nvar utils = require('../utils');\n\nfunction MontCurve(conf) {\n Base.call(this, 'mont', conf);\n\n this.a = new BN(conf.a, 16).toRed(this.red);\n this.b = new BN(conf.b, 16).toRed(this.red);\n this.i4 = new BN(4).toRed(this.red).redInvm();\n this.two = new BN(2).toRed(this.red);\n this.a24 = this.i4.redMul(this.a.redAdd(this.two));\n}\ninherits(MontCurve, Base);\nmodule.exports = MontCurve;\n\nMontCurve.prototype.validate = function validate(point) {\n var x = point.normalize().x;\n var x2 = x.redSqr();\n var rhs = x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);\n var y = rhs.redSqrt();\n\n return y.redSqr().cmp(rhs) === 0;\n};\n\nfunction Point(curve, x, z) {\n Base.BasePoint.call(this, curve, 'projective');\n if (x === null && z === null) {\n this.x = this.curve.one;\n this.z = this.curve.zero;\n } else {\n this.x = new BN(x, 16);\n this.z = new BN(z, 16);\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n }\n}\ninherits(Point, Base.BasePoint);\n\nMontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n return this.point(utils.toArray(bytes, enc), 1);\n};\n\nMontCurve.prototype.point = function point(x, z) {\n return new Point(this, x, z);\n};\n\nMontCurve.prototype.pointFromJSON = function pointFromJSON(obj) {\n return Point.fromJSON(this, obj);\n};\n\nPoint.prototype.precompute = function precompute() {\n // No-op\n};\n\nPoint.prototype._encode = function _encode() {\n return this.getX().toArray('be', this.curve.p.byteLength());\n};\n\nPoint.fromJSON = function fromJSON(curve, obj) {\n return new Point(curve, obj[0], obj[1] || curve.one);\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.z.cmpn(0) === 0;\n};\n\nPoint.prototype.dbl = function dbl() {\n // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#doubling-dbl-1987-m-3\n // 2M + 2S + 4A\n\n // A = X1 + Z1\n var a = this.x.redAdd(this.z);\n // AA = A^2\n var aa = a.redSqr();\n // B = X1 - Z1\n var b = this.x.redSub(this.z);\n // BB = B^2\n var bb = b.redSqr();\n // C = AA - BB\n var c = aa.redSub(bb);\n // X3 = AA * BB\n var nx = aa.redMul(bb);\n // Z3 = C * (BB + A24 * C)\n var nz = c.redMul(bb.redAdd(this.curve.a24.redMul(c)));\n return this.curve.point(nx, nz);\n};\n\nPoint.prototype.add = function add() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.diffAdd = function diffAdd(p, diff) {\n // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#diffadd-dadd-1987-m-3\n // 4M + 2S + 6A\n\n // A = X2 + Z2\n var a = this.x.redAdd(this.z);\n // B = X2 - Z2\n var b = this.x.redSub(this.z);\n // C = X3 + Z3\n var c = p.x.redAdd(p.z);\n // D = X3 - Z3\n var d = p.x.redSub(p.z);\n // DA = D * A\n var da = d.redMul(a);\n // CB = C * B\n var cb = c.redMul(b);\n // X5 = Z1 * (DA + CB)^2\n var nx = diff.z.redMul(da.redAdd(cb).redSqr());\n // Z5 = X1 * (DA - CB)^2\n var nz = diff.x.redMul(da.redISub(cb).redSqr());\n return this.curve.point(nx, nz);\n};\n\nPoint.prototype.mul = function mul(k) {\n var t = k.clone();\n var a = this; // (N / 2) * Q + Q\n var b = this.curve.point(null, null); // (N / 2) * Q\n var c = this; // Q\n\n for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1))\n bits.push(t.andln(1));\n\n for (var i = bits.length - 1; i >= 0; i--) {\n if (bits[i] === 0) {\n // N * Q + Q = ((N / 2) * Q + Q)) + (N / 2) * Q\n a = a.diffAdd(b, c);\n // N * Q = 2 * ((N / 2) * Q + Q))\n b = b.dbl();\n } else {\n // N * Q = ((N / 2) * Q + Q) + ((N / 2) * Q)\n b = a.diffAdd(b, c);\n // N * Q + Q = 2 * ((N / 2) * Q + Q)\n a = a.dbl();\n }\n }\n return b;\n};\n\nPoint.prototype.mulAdd = function mulAdd() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.jumlAdd = function jumlAdd() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.eq = function eq(other) {\n return this.getX().cmp(other.getX()) === 0;\n};\n\nPoint.prototype.normalize = function normalize() {\n this.x = this.x.redMul(this.z.redInvm());\n this.z = this.curve.one;\n return this;\n};\n\nPoint.prototype.getX = function getX() {\n // Normalize coordinates\n this.normalize();\n\n return this.x.fromRed();\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar BN = require('bn.js');\nvar inherits = require('inherits');\nvar Base = require('./base');\n\nvar assert = utils.assert;\n\nfunction ShortCurve(conf) {\n Base.call(this, 'short', conf);\n\n this.a = new BN(conf.a, 16).toRed(this.red);\n this.b = new BN(conf.b, 16).toRed(this.red);\n this.tinv = this.two.redInvm();\n\n this.zeroA = this.a.fromRed().cmpn(0) === 0;\n this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0;\n\n // If the curve is endomorphic, precalculate beta and lambda\n this.endo = this._getEndomorphism(conf);\n this._endoWnafT1 = new Array(4);\n this._endoWnafT2 = new Array(4);\n}\ninherits(ShortCurve, Base);\nmodule.exports = ShortCurve;\n\nShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {\n // No efficient endomorphism\n if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)\n return;\n\n // Compute beta and lambda, that lambda * P = (beta * Px; Py)\n var beta;\n var lambda;\n if (conf.beta) {\n beta = new BN(conf.beta, 16).toRed(this.red);\n } else {\n var betas = this._getEndoRoots(this.p);\n // Choose the smallest beta\n beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];\n beta = beta.toRed(this.red);\n }\n if (conf.lambda) {\n lambda = new BN(conf.lambda, 16);\n } else {\n // Choose the lambda that is matching selected beta\n var lambdas = this._getEndoRoots(this.n);\n if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {\n lambda = lambdas[0];\n } else {\n lambda = lambdas[1];\n assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);\n }\n }\n\n // Get basis vectors, used for balanced length-two representation\n var basis;\n if (conf.basis) {\n basis = conf.basis.map(function(vec) {\n return {\n a: new BN(vec.a, 16),\n b: new BN(vec.b, 16),\n };\n });\n } else {\n basis = this._getEndoBasis(lambda);\n }\n\n return {\n beta: beta,\n lambda: lambda,\n basis: basis,\n };\n};\n\nShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {\n // Find roots of for x^2 + x + 1 in F\n // Root = (-1 +- Sqrt(-3)) / 2\n //\n var red = num === this.p ? this.red : BN.mont(num);\n var tinv = new BN(2).toRed(red).redInvm();\n var ntinv = tinv.redNeg();\n\n var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);\n\n var l1 = ntinv.redAdd(s).fromRed();\n var l2 = ntinv.redSub(s).fromRed();\n return [ l1, l2 ];\n};\n\nShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {\n // aprxSqrt >= sqrt(this.n)\n var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2));\n\n // 3.74\n // Run EGCD, until r(L + 1) < aprxSqrt\n var u = lambda;\n var v = this.n.clone();\n var x1 = new BN(1);\n var y1 = new BN(0);\n var x2 = new BN(0);\n var y2 = new BN(1);\n\n // NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)\n var a0;\n var b0;\n // First vector\n var a1;\n var b1;\n // Second vector\n var a2;\n var b2;\n\n var prevR;\n var i = 0;\n var r;\n var x;\n while (u.cmpn(0) !== 0) {\n var q = v.div(u);\n r = v.sub(q.mul(u));\n x = x2.sub(q.mul(x1));\n var y = y2.sub(q.mul(y1));\n\n if (!a1 && r.cmp(aprxSqrt) < 0) {\n a0 = prevR.neg();\n b0 = x1;\n a1 = r.neg();\n b1 = x;\n } else if (a1 && ++i === 2) {\n break;\n }\n prevR = r;\n\n v = u;\n u = r;\n x2 = x1;\n x1 = x;\n y2 = y1;\n y1 = y;\n }\n a2 = r.neg();\n b2 = x;\n\n var len1 = a1.sqr().add(b1.sqr());\n var len2 = a2.sqr().add(b2.sqr());\n if (len2.cmp(len1) >= 0) {\n a2 = a0;\n b2 = b0;\n }\n\n // Normalize signs\n if (a1.negative) {\n a1 = a1.neg();\n b1 = b1.neg();\n }\n if (a2.negative) {\n a2 = a2.neg();\n b2 = b2.neg();\n }\n\n return [\n { a: a1, b: b1 },\n { a: a2, b: b2 },\n ];\n};\n\nShortCurve.prototype._endoSplit = function _endoSplit(k) {\n var basis = this.endo.basis;\n var v1 = basis[0];\n var v2 = basis[1];\n\n var c1 = v2.b.mul(k).divRound(this.n);\n var c2 = v1.b.neg().mul(k).divRound(this.n);\n\n var p1 = c1.mul(v1.a);\n var p2 = c2.mul(v2.a);\n var q1 = c1.mul(v1.b);\n var q2 = c2.mul(v2.b);\n\n // Calculate answer\n var k1 = k.sub(p1).sub(p2);\n var k2 = q1.add(q2).neg();\n return { k1: k1, k2: k2 };\n};\n\nShortCurve.prototype.pointFromX = function pointFromX(x, odd) {\n x = new BN(x, 16);\n if (!x.red)\n x = x.toRed(this.red);\n\n var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);\n var y = y2.redSqrt();\n if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n // XXX Is there any way to tell if the number is odd without converting it\n // to non-red form?\n var isOdd = y.fromRed().isOdd();\n if (odd && !isOdd || !odd && isOdd)\n y = y.redNeg();\n\n return this.point(x, y);\n};\n\nShortCurve.prototype.validate = function validate(point) {\n if (point.inf)\n return true;\n\n var x = point.x;\n var y = point.y;\n\n var ax = this.a.redMul(x);\n var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);\n return y.redSqr().redISub(rhs).cmpn(0) === 0;\n};\n\nShortCurve.prototype._endoWnafMulAdd =\n function _endoWnafMulAdd(points, coeffs, jacobianResult) {\n var npoints = this._endoWnafT1;\n var ncoeffs = this._endoWnafT2;\n for (var i = 0; i < points.length; i++) {\n var split = this._endoSplit(coeffs[i]);\n var p = points[i];\n var beta = p._getBeta();\n\n if (split.k1.negative) {\n split.k1.ineg();\n p = p.neg(true);\n }\n if (split.k2.negative) {\n split.k2.ineg();\n beta = beta.neg(true);\n }\n\n npoints[i * 2] = p;\n npoints[i * 2 + 1] = beta;\n ncoeffs[i * 2] = split.k1;\n ncoeffs[i * 2 + 1] = split.k2;\n }\n var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);\n\n // Clean-up references to points and coefficients\n for (var j = 0; j < i * 2; j++) {\n npoints[j] = null;\n ncoeffs[j] = null;\n }\n return res;\n };\n\nfunction Point(curve, x, y, isRed) {\n Base.BasePoint.call(this, curve, 'affine');\n if (x === null && y === null) {\n this.x = null;\n this.y = null;\n this.inf = true;\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n // Force redgomery representation when loading from JSON\n if (isRed) {\n this.x.forceRed(this.curve.red);\n this.y.forceRed(this.curve.red);\n }\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n this.inf = false;\n }\n}\ninherits(Point, Base.BasePoint);\n\nShortCurve.prototype.point = function point(x, y, isRed) {\n return new Point(this, x, y, isRed);\n};\n\nShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) {\n return Point.fromJSON(this, obj, red);\n};\n\nPoint.prototype._getBeta = function _getBeta() {\n if (!this.curve.endo)\n return;\n\n var pre = this.precomputed;\n if (pre && pre.beta)\n return pre.beta;\n\n var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);\n if (pre) {\n var curve = this.curve;\n var endoMul = function(p) {\n return curve.point(p.x.redMul(curve.endo.beta), p.y);\n };\n pre.beta = beta;\n beta.precomputed = {\n beta: null,\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(endoMul),\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(endoMul),\n },\n };\n }\n return beta;\n};\n\nPoint.prototype.toJSON = function toJSON() {\n if (!this.precomputed)\n return [ this.x, this.y ];\n\n return [ this.x, this.y, this.precomputed && {\n doubles: this.precomputed.doubles && {\n step: this.precomputed.doubles.step,\n points: this.precomputed.doubles.points.slice(1),\n },\n naf: this.precomputed.naf && {\n wnd: this.precomputed.naf.wnd,\n points: this.precomputed.naf.points.slice(1),\n },\n } ];\n};\n\nPoint.fromJSON = function fromJSON(curve, obj, red) {\n if (typeof obj === 'string')\n obj = JSON.parse(obj);\n var res = curve.point(obj[0], obj[1], red);\n if (!obj[2])\n return res;\n\n function obj2point(obj) {\n return curve.point(obj[0], obj[1], red);\n }\n\n var pre = obj[2];\n res.precomputed = {\n beta: null,\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: [ res ].concat(pre.doubles.points.map(obj2point)),\n },\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: [ res ].concat(pre.naf.points.map(obj2point)),\n },\n };\n return res;\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n return this.inf;\n};\n\nPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.inf)\n return p;\n\n // P + O = P\n if (p.inf)\n return this;\n\n // P + P = 2P\n if (this.eq(p))\n return this.dbl();\n\n // P + (-P) = O\n if (this.neg().eq(p))\n return this.curve.point(null, null);\n\n // P + Q = O\n if (this.x.cmp(p.x) === 0)\n return this.curve.point(null, null);\n\n var c = this.y.redSub(p.y);\n if (c.cmpn(0) !== 0)\n c = c.redMul(this.x.redSub(p.x).redInvm());\n var nx = c.redSqr().redISub(this.x).redISub(p.x);\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.dbl = function dbl() {\n if (this.inf)\n return this;\n\n // 2P = O\n var ys1 = this.y.redAdd(this.y);\n if (ys1.cmpn(0) === 0)\n return this.curve.point(null, null);\n\n var a = this.curve.a;\n\n var x2 = this.x.redSqr();\n var dyinv = ys1.redInvm();\n var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);\n\n var nx = c.redSqr().redISub(this.x.redAdd(this.x));\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.getX = function getX() {\n return this.x.fromRed();\n};\n\nPoint.prototype.getY = function getY() {\n return this.y.fromRed();\n};\n\nPoint.prototype.mul = function mul(k) {\n k = new BN(k, 16);\n if (this.isInfinity())\n return this;\n else if (this._hasDoubles(k))\n return this.curve._fixedNafMul(this, k);\n else if (this.curve.endo)\n return this.curve._endoWnafMulAdd([ this ], [ k ]);\n else\n return this.curve._wnafMul(this, k);\n};\n\nPoint.prototype.mulAdd = function mulAdd(k1, p2, k2) {\n var points = [ this, p2 ];\n var coeffs = [ k1, k2 ];\n if (this.curve.endo)\n return this.curve._endoWnafMulAdd(points, coeffs);\n else\n return this.curve._wnafMulAdd(1, points, coeffs, 2);\n};\n\nPoint.prototype.jmulAdd = function jmulAdd(k1, p2, k2) {\n var points = [ this, p2 ];\n var coeffs = [ k1, k2 ];\n if (this.curve.endo)\n return this.curve._endoWnafMulAdd(points, coeffs, true);\n else\n return this.curve._wnafMulAdd(1, points, coeffs, 2, true);\n};\n\nPoint.prototype.eq = function eq(p) {\n return this === p ||\n this.inf === p.inf &&\n (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0);\n};\n\nPoint.prototype.neg = function neg(_precompute) {\n if (this.inf)\n return this;\n\n var res = this.curve.point(this.x, this.y.redNeg());\n if (_precompute && this.precomputed) {\n var pre = this.precomputed;\n var negate = function(p) {\n return p.neg();\n };\n res.precomputed = {\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(negate),\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(negate),\n },\n };\n }\n return res;\n};\n\nPoint.prototype.toJ = function toJ() {\n if (this.inf)\n return this.curve.jpoint(null, null, null);\n\n var res = this.curve.jpoint(this.x, this.y, this.curve.one);\n return res;\n};\n\nfunction JPoint(curve, x, y, z) {\n Base.BasePoint.call(this, curve, 'jacobian');\n if (x === null && y === null && z === null) {\n this.x = this.curve.one;\n this.y = this.curve.one;\n this.z = new BN(0);\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n this.z = new BN(z, 16);\n }\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n\n this.zOne = this.z === this.curve.one;\n}\ninherits(JPoint, Base.BasePoint);\n\nShortCurve.prototype.jpoint = function jpoint(x, y, z) {\n return new JPoint(this, x, y, z);\n};\n\nJPoint.prototype.toP = function toP() {\n if (this.isInfinity())\n return this.curve.point(null, null);\n\n var zinv = this.z.redInvm();\n var zinv2 = zinv.redSqr();\n var ax = this.x.redMul(zinv2);\n var ay = this.y.redMul(zinv2).redMul(zinv);\n\n return this.curve.point(ax, ay);\n};\n\nJPoint.prototype.neg = function neg() {\n return this.curve.jpoint(this.x, this.y.redNeg(), this.z);\n};\n\nJPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.isInfinity())\n return p;\n\n // P + O = P\n if (p.isInfinity())\n return this;\n\n // 12M + 4S + 7A\n var pz2 = p.z.redSqr();\n var z2 = this.z.redSqr();\n var u1 = this.x.redMul(pz2);\n var u2 = p.x.redMul(z2);\n var s1 = this.y.redMul(pz2.redMul(p.z));\n var s2 = p.y.redMul(z2.redMul(this.z));\n\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0)\n return this.curve.jpoint(null, null, null);\n else\n return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(p.z).redMul(h);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mixedAdd = function mixedAdd(p) {\n // O + P = P\n if (this.isInfinity())\n return p.toJ();\n\n // P + O = P\n if (p.isInfinity())\n return this;\n\n // 8M + 3S + 7A\n var z2 = this.z.redSqr();\n var u1 = this.x;\n var u2 = p.x.redMul(z2);\n var s1 = this.y;\n var s2 = p.y.redMul(z2).redMul(this.z);\n\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0)\n return this.curve.jpoint(null, null, null);\n else\n return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(h);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.dblp = function dblp(pow) {\n if (pow === 0)\n return this;\n if (this.isInfinity())\n return this;\n if (!pow)\n return this.dbl();\n\n var i;\n if (this.curve.zeroA || this.curve.threeA) {\n var r = this;\n for (i = 0; i < pow; i++)\n r = r.dbl();\n return r;\n }\n\n // 1M + 2S + 1A + N * (4S + 5M + 8A)\n // N = 1 => 6M + 6S + 9A\n var a = this.curve.a;\n var tinv = this.curve.tinv;\n\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr();\n\n // Reuse results\n var jyd = jy.redAdd(jy);\n for (i = 0; i < pow; i++) {\n var jx2 = jx.redSqr();\n var jyd2 = jyd.redSqr();\n var jyd4 = jyd2.redSqr();\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n\n var t1 = jx.redMul(jyd2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n var dny = c.redMul(t2);\n dny = dny.redIAdd(dny).redISub(jyd4);\n var nz = jyd.redMul(jz);\n if (i + 1 < pow)\n jz4 = jz4.redMul(jyd4);\n\n jx = nx;\n jz = nz;\n jyd = dny;\n }\n\n return this.curve.jpoint(jx, jyd.redMul(tinv), jz);\n};\n\nJPoint.prototype.dbl = function dbl() {\n if (this.isInfinity())\n return this;\n\n if (this.curve.zeroA)\n return this._zeroDbl();\n else if (this.curve.threeA)\n return this._threeDbl();\n else\n return this._dbl();\n};\n\nJPoint.prototype._zeroDbl = function _zeroDbl() {\n var nx;\n var ny;\n var nz;\n // Z = 1\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 14A\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s);\n // M = 3 * XX + a; a = 0\n var m = xx.redAdd(xx).redIAdd(xx);\n // T = M ^ 2 - 2*S\n var t = m.redSqr().redISub(s).redISub(s);\n\n // 8 * YYYY\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n\n // X3 = T\n nx = t;\n // Y3 = M * (S - T) - 8 * YYYY\n ny = m.redMul(s.redISub(t)).redISub(yyyy8);\n // Z3 = 2*Y1\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-dbl-2009-l\n // 2M + 5S + 13A\n\n // A = X1^2\n var a = this.x.redSqr();\n // B = Y1^2\n var b = this.y.redSqr();\n // C = B^2\n var c = b.redSqr();\n // D = 2 * ((X1 + B)^2 - A - C)\n var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c);\n d = d.redIAdd(d);\n // E = 3 * A\n var e = a.redAdd(a).redIAdd(a);\n // F = E^2\n var f = e.redSqr();\n\n // 8 * C\n var c8 = c.redIAdd(c);\n c8 = c8.redIAdd(c8);\n c8 = c8.redIAdd(c8);\n\n // X3 = F - 2 * D\n nx = f.redISub(d).redISub(d);\n // Y3 = E * (D - X3) - 8 * C\n ny = e.redMul(d.redISub(nx)).redISub(c8);\n // Z3 = 2 * Y1 * Z1\n nz = this.y.redMul(this.z);\n nz = nz.redIAdd(nz);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._threeDbl = function _threeDbl() {\n var nx;\n var ny;\n var nz;\n // Z = 1\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 15A\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s);\n // M = 3 * XX + a\n var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a);\n // T = M^2 - 2 * S\n var t = m.redSqr().redISub(s).redISub(s);\n // X3 = T\n nx = t;\n // Y3 = M * (S - T) - 8 * YYYY\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n ny = m.redMul(s.redISub(t)).redISub(yyyy8);\n // Z3 = 2 * Y1\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b\n // 3M + 5S\n\n // delta = Z1^2\n var delta = this.z.redSqr();\n // gamma = Y1^2\n var gamma = this.y.redSqr();\n // beta = X1 * gamma\n var beta = this.x.redMul(gamma);\n // alpha = 3 * (X1 - delta) * (X1 + delta)\n var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta));\n alpha = alpha.redAdd(alpha).redIAdd(alpha);\n // X3 = alpha^2 - 8 * beta\n var beta4 = beta.redIAdd(beta);\n beta4 = beta4.redIAdd(beta4);\n var beta8 = beta4.redAdd(beta4);\n nx = alpha.redSqr().redISub(beta8);\n // Z3 = (Y1 + Z1)^2 - gamma - delta\n nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta);\n // Y3 = alpha * (4 * beta - X3) - 8 * gamma^2\n var ggamma8 = gamma.redSqr();\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._dbl = function _dbl() {\n var a = this.curve.a;\n\n // 4M + 6S + 10A\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr();\n\n var jx2 = jx.redSqr();\n var jy2 = jy.redSqr();\n\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n\n var jxd4 = jx.redAdd(jx);\n jxd4 = jxd4.redIAdd(jxd4);\n var t1 = jxd4.redMul(jy2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n\n var jyd8 = jy2.redSqr();\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n var ny = c.redMul(t2).redISub(jyd8);\n var nz = jy.redAdd(jy).redMul(jz);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.trpl = function trpl() {\n if (!this.curve.zeroA)\n return this.dbl().add(this);\n\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl\n // 5M + 10S + ...\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // ZZ = Z1^2\n var zz = this.z.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // M = 3 * XX + a * ZZ2; a = 0\n var m = xx.redAdd(xx).redIAdd(xx);\n // MM = M^2\n var mm = m.redSqr();\n // E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM\n var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n e = e.redIAdd(e);\n e = e.redAdd(e).redIAdd(e);\n e = e.redISub(mm);\n // EE = E^2\n var ee = e.redSqr();\n // T = 16*YYYY\n var t = yyyy.redIAdd(yyyy);\n t = t.redIAdd(t);\n t = t.redIAdd(t);\n t = t.redIAdd(t);\n // U = (M + E)^2 - MM - EE - T\n var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t);\n // X3 = 4 * (X1 * EE - 4 * YY * U)\n var yyu4 = yy.redMul(u);\n yyu4 = yyu4.redIAdd(yyu4);\n yyu4 = yyu4.redIAdd(yyu4);\n var nx = this.x.redMul(ee).redISub(yyu4);\n nx = nx.redIAdd(nx);\n nx = nx.redIAdd(nx);\n // Y3 = 8 * Y1 * (U * (T - U) - E * EE)\n var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee)));\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny);\n // Z3 = (Z1 + E)^2 - ZZ - EE\n var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mul = function mul(k, kbase) {\n k = new BN(k, kbase);\n\n return this.curve._wnafMul(this, k);\n};\n\nJPoint.prototype.eq = function eq(p) {\n if (p.type === 'affine')\n return this.eq(p.toJ());\n\n if (this === p)\n return true;\n\n // x1 * z2^2 == x2 * z1^2\n var z2 = this.z.redSqr();\n var pz2 = p.z.redSqr();\n if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0)\n return false;\n\n // y1 * z2^3 == y2 * z1^3\n var z3 = z2.redMul(this.z);\n var pz3 = pz2.redMul(p.z);\n return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0;\n};\n\nJPoint.prototype.eqXToP = function eqXToP(x) {\n var zs = this.z.redSqr();\n var rx = x.toRed(this.curve.red).redMul(zs);\n if (this.x.cmp(rx) === 0)\n return true;\n\n var xc = x.clone();\n var t = this.curve.redN.redMul(zs);\n for (;;) {\n xc.iadd(this.curve.n);\n if (xc.cmp(this.curve.p) >= 0)\n return false;\n\n rx.redIAdd(t);\n if (this.x.cmp(rx) === 0)\n return true;\n }\n};\n\nJPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nJPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.z.cmpn(0) === 0;\n};\n","'use strict';\n\nvar curves = exports;\n\nvar hash = require('hash.js');\nvar curve = require('./curve');\nvar utils = require('./utils');\n\nvar assert = utils.assert;\n\nfunction PresetCurve(options) {\n if (options.type === 'short')\n this.curve = new curve.short(options);\n else if (options.type === 'edwards')\n this.curve = new curve.edwards(options);\n else\n this.curve = new curve.mont(options);\n this.g = this.curve.g;\n this.n = this.curve.n;\n this.hash = options.hash;\n\n assert(this.g.validate(), 'Invalid curve');\n assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O');\n}\ncurves.PresetCurve = PresetCurve;\n\nfunction defineCurve(name, options) {\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n get: function() {\n var curve = new PresetCurve(options);\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n value: curve,\n });\n return curve;\n },\n });\n}\n\ndefineCurve('p192', {\n type: 'short',\n prime: 'p192',\n p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',\n b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',\n n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',\n hash: hash.sha256,\n gRed: false,\n g: [\n '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',\n '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811',\n ],\n});\n\ndefineCurve('p224', {\n type: 'short',\n prime: 'p224',\n p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',\n b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',\n n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',\n hash: hash.sha256,\n gRed: false,\n g: [\n 'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',\n 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34',\n ],\n});\n\ndefineCurve('p256', {\n type: 'short',\n prime: null,\n p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',\n a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',\n b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',\n n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',\n hash: hash.sha256,\n gRed: false,\n g: [\n '6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',\n '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5',\n ],\n});\n\ndefineCurve('p384', {\n type: 'short',\n prime: null,\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'fffffffe ffffffff 00000000 00000000 ffffffff',\n a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'fffffffe ffffffff 00000000 00000000 fffffffc',\n b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' +\n '5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef',\n n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' +\n 'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973',\n hash: hash.sha384,\n gRed: false,\n g: [\n 'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +\n '5502f25d bf55296c 3a545e38 72760ab7',\n '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +\n '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f',\n ],\n});\n\ndefineCurve('p521', {\n type: 'short',\n prime: null,\n p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff',\n a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff fffffffc',\n b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' +\n '99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' +\n '3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00',\n n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' +\n 'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409',\n hash: hash.sha512,\n gRed: false,\n g: [\n '000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' +\n '053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' +\n 'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',\n '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +\n '579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +\n '3fad0761 353c7086 a272c240 88be9476 9fd16650',\n ],\n});\n\ndefineCurve('curve25519', {\n type: 'mont',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '76d06',\n b: '1',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: [\n '9',\n ],\n});\n\ndefineCurve('ed25519', {\n type: 'edwards',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '-1',\n c: '1',\n // -121665 * (121666^(-1)) (mod P)\n d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: [\n '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',\n\n // 4/5\n '6666666666666666666666666666666666666666666666666666666666666658',\n ],\n});\n\nvar pre;\ntry {\n pre = require('./precomputed/secp256k1');\n} catch (e) {\n pre = undefined;\n}\n\ndefineCurve('secp256k1', {\n type: 'short',\n prime: 'k256',\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',\n a: '0',\n b: '7',\n n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',\n h: '1',\n hash: hash.sha256,\n\n // Precomputed endomorphism\n beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',\n lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',\n basis: [\n {\n a: '3086d221a7d46bcde86c90e49284eb15',\n b: '-e4437ed6010e88286f547fa90abfe4c3',\n },\n {\n a: '114ca50f7a8e2f3f657c1108d9d44cfd8',\n b: '3086d221a7d46bcde86c90e49284eb15',\n },\n ],\n\n gRed: false,\n g: [\n '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',\n '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',\n pre,\n ],\n});\n","'use strict';\n\nvar BN = require('bn.js');\nvar HmacDRBG = require('hmac-drbg');\nvar utils = require('../utils');\nvar curves = require('../curves');\nvar rand = require('brorand');\nvar assert = utils.assert;\n\nvar KeyPair = require('./key');\nvar Signature = require('./signature');\n\nfunction EC(options) {\n if (!(this instanceof EC))\n return new EC(options);\n\n // Shortcut `elliptic.ec(curve-name)`\n if (typeof options === 'string') {\n assert(Object.prototype.hasOwnProperty.call(curves, options),\n 'Unknown curve ' + options);\n\n options = curves[options];\n }\n\n // Shortcut for `elliptic.ec(elliptic.curves.curveName)`\n if (options instanceof curves.PresetCurve)\n options = { curve: options };\n\n this.curve = options.curve.curve;\n this.n = this.curve.n;\n this.nh = this.n.ushrn(1);\n this.g = this.curve.g;\n\n // Point on curve\n this.g = options.curve.g;\n this.g.precompute(options.curve.n.bitLength() + 1);\n\n // Hash for function for DRBG\n this.hash = options.hash || options.curve.hash;\n}\nmodule.exports = EC;\n\nEC.prototype.keyPair = function keyPair(options) {\n return new KeyPair(this, options);\n};\n\nEC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) {\n return KeyPair.fromPrivate(this, priv, enc);\n};\n\nEC.prototype.keyFromPublic = function keyFromPublic(pub, enc) {\n return KeyPair.fromPublic(this, pub, enc);\n};\n\nEC.prototype.genKeyPair = function genKeyPair(options) {\n if (!options)\n options = {};\n\n // Instantiate Hmac_DRBG\n var drbg = new HmacDRBG({\n hash: this.hash,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8',\n entropy: options.entropy || rand(this.hash.hmacStrength),\n entropyEnc: options.entropy && options.entropyEnc || 'utf8',\n nonce: this.n.toArray(),\n });\n\n var bytes = this.n.byteLength();\n var ns2 = this.n.sub(new BN(2));\n for (;;) {\n var priv = new BN(drbg.generate(bytes));\n if (priv.cmp(ns2) > 0)\n continue;\n\n priv.iaddn(1);\n return this.keyFromPrivate(priv);\n }\n};\n\nEC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {\n var delta = msg.byteLength() * 8 - this.n.bitLength();\n if (delta > 0)\n msg = msg.ushrn(delta);\n if (!truncOnly && msg.cmp(this.n) >= 0)\n return msg.sub(this.n);\n else\n return msg;\n};\n\nEC.prototype.sign = function sign(msg, key, enc, options) {\n if (typeof enc === 'object') {\n options = enc;\n enc = null;\n }\n if (!options)\n options = {};\n\n key = this.keyFromPrivate(key, enc);\n msg = this._truncateToN(new BN(msg, 16));\n\n // Zero-extend key to provide enough entropy\n var bytes = this.n.byteLength();\n var bkey = key.getPrivate().toArray('be', bytes);\n\n // Zero-extend nonce to have the same byte size as N\n var nonce = msg.toArray('be', bytes);\n\n // Instantiate Hmac_DRBG\n var drbg = new HmacDRBG({\n hash: this.hash,\n entropy: bkey,\n nonce: nonce,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8',\n });\n\n // Number of bytes to generate\n var ns1 = this.n.sub(new BN(1));\n\n for (var iter = 0; ; iter++) {\n var k = options.k ?\n options.k(iter) :\n new BN(drbg.generate(this.n.byteLength()));\n k = this._truncateToN(k, true);\n if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)\n continue;\n\n var kp = this.g.mul(k);\n if (kp.isInfinity())\n continue;\n\n var kpX = kp.getX();\n var r = kpX.umod(this.n);\n if (r.cmpn(0) === 0)\n continue;\n\n var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));\n s = s.umod(this.n);\n if (s.cmpn(0) === 0)\n continue;\n\n var recoveryParam = (kp.getY().isOdd() ? 1 : 0) |\n (kpX.cmp(r) !== 0 ? 2 : 0);\n\n // Use complement of `s`, if it is > `n / 2`\n if (options.canonical && s.cmp(this.nh) > 0) {\n s = this.n.sub(s);\n recoveryParam ^= 1;\n }\n\n return new Signature({ r: r, s: s, recoveryParam: recoveryParam });\n }\n};\n\nEC.prototype.verify = function verify(msg, signature, key, enc) {\n msg = this._truncateToN(new BN(msg, 16));\n key = this.keyFromPublic(key, enc);\n signature = new Signature(signature, 'hex');\n\n // Perform primitive values validation\n var r = signature.r;\n var s = signature.s;\n if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0)\n return false;\n if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0)\n return false;\n\n // Validate signature\n var sinv = s.invm(this.n);\n var u1 = sinv.mul(msg).umod(this.n);\n var u2 = sinv.mul(r).umod(this.n);\n var p;\n\n if (!this.curve._maxwellTrick) {\n p = this.g.mulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity())\n return false;\n\n return p.getX().umod(this.n).cmp(r) === 0;\n }\n\n // NOTE: Greg Maxwell's trick, inspired by:\n // https://git.io/vad3K\n\n p = this.g.jmulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity())\n return false;\n\n // Compare `p.x` of Jacobian point with `r`,\n // this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the\n // inverse of `p.z^2`\n return p.eqXToP(r);\n};\n\nEC.prototype.recoverPubKey = function(msg, signature, j, enc) {\n assert((3 & j) === j, 'The recovery param is more than two bits');\n signature = new Signature(signature, enc);\n\n var n = this.n;\n var e = new BN(msg);\n var r = signature.r;\n var s = signature.s;\n\n // A set LSB signifies that the y-coordinate is odd\n var isYOdd = j & 1;\n var isSecondKey = j >> 1;\n if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey)\n throw new Error('Unable to find sencond key candinate');\n\n // 1.1. Let x = r + jn.\n if (isSecondKey)\n r = this.curve.pointFromX(r.add(this.curve.n), isYOdd);\n else\n r = this.curve.pointFromX(r, isYOdd);\n\n var rInv = signature.r.invm(n);\n var s1 = n.sub(e).mul(rInv).umod(n);\n var s2 = s.mul(rInv).umod(n);\n\n // 1.6.1 Compute Q = r^-1 (sR - eG)\n // Q = r^-1 (sR + -eG)\n return this.g.mulAdd(s1, r, s2);\n};\n\nEC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {\n signature = new Signature(signature, enc);\n if (signature.recoveryParam !== null)\n return signature.recoveryParam;\n\n for (var i = 0; i < 4; i++) {\n var Qprime;\n try {\n Qprime = this.recoverPubKey(e, signature, i);\n } catch (e) {\n continue;\n }\n\n if (Qprime.eq(Q))\n return i;\n }\n throw new Error('Unable to find valid recovery factor');\n};\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar assert = utils.assert;\n\nfunction KeyPair(ec, options) {\n this.ec = ec;\n this.priv = null;\n this.pub = null;\n\n // KeyPair(ec, { priv: ..., pub: ... })\n if (options.priv)\n this._importPrivate(options.priv, options.privEnc);\n if (options.pub)\n this._importPublic(options.pub, options.pubEnc);\n}\nmodule.exports = KeyPair;\n\nKeyPair.fromPublic = function fromPublic(ec, pub, enc) {\n if (pub instanceof KeyPair)\n return pub;\n\n return new KeyPair(ec, {\n pub: pub,\n pubEnc: enc,\n });\n};\n\nKeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {\n if (priv instanceof KeyPair)\n return priv;\n\n return new KeyPair(ec, {\n priv: priv,\n privEnc: enc,\n });\n};\n\nKeyPair.prototype.validate = function validate() {\n var pub = this.getPublic();\n\n if (pub.isInfinity())\n return { result: false, reason: 'Invalid public key' };\n if (!pub.validate())\n return { result: false, reason: 'Public key is not a point' };\n if (!pub.mul(this.ec.curve.n).isInfinity())\n return { result: false, reason: 'Public key * N != O' };\n\n return { result: true, reason: null };\n};\n\nKeyPair.prototype.getPublic = function getPublic(compact, enc) {\n // compact is optional argument\n if (typeof compact === 'string') {\n enc = compact;\n compact = null;\n }\n\n if (!this.pub)\n this.pub = this.ec.g.mul(this.priv);\n\n if (!enc)\n return this.pub;\n\n return this.pub.encode(enc, compact);\n};\n\nKeyPair.prototype.getPrivate = function getPrivate(enc) {\n if (enc === 'hex')\n return this.priv.toString(16, 2);\n else\n return this.priv;\n};\n\nKeyPair.prototype._importPrivate = function _importPrivate(key, enc) {\n this.priv = new BN(key, enc || 16);\n\n // Ensure that the priv won't be bigger than n, otherwise we may fail\n // in fixed multiplication method\n this.priv = this.priv.umod(this.ec.curve.n);\n};\n\nKeyPair.prototype._importPublic = function _importPublic(key, enc) {\n if (key.x || key.y) {\n // Montgomery points only have an `x` coordinate.\n // Weierstrass/Edwards points on the other hand have both `x` and\n // `y` coordinates.\n if (this.ec.curve.type === 'mont') {\n assert(key.x, 'Need x coordinate');\n } else if (this.ec.curve.type === 'short' ||\n this.ec.curve.type === 'edwards') {\n assert(key.x && key.y, 'Need both x and y coordinate');\n }\n this.pub = this.ec.curve.point(key.x, key.y);\n return;\n }\n this.pub = this.ec.curve.decodePoint(key, enc);\n};\n\n// ECDH\nKeyPair.prototype.derive = function derive(pub) {\n if(!pub.validate()) {\n assert(pub.validate(), 'public point not validated');\n }\n return pub.mul(this.priv).getX();\n};\n\n// ECDSA\nKeyPair.prototype.sign = function sign(msg, enc, options) {\n return this.ec.sign(msg, this, enc, options);\n};\n\nKeyPair.prototype.verify = function verify(msg, signature) {\n return this.ec.verify(msg, signature, this);\n};\n\nKeyPair.prototype.inspect = function inspect() {\n return '';\n};\n","'use strict';\n\nvar BN = require('bn.js');\n\nvar utils = require('../utils');\nvar assert = utils.assert;\n\nfunction Signature(options, enc) {\n if (options instanceof Signature)\n return options;\n\n if (this._importDER(options, enc))\n return;\n\n assert(options.r && options.s, 'Signature without r or s');\n this.r = new BN(options.r, 16);\n this.s = new BN(options.s, 16);\n if (options.recoveryParam === undefined)\n this.recoveryParam = null;\n else\n this.recoveryParam = options.recoveryParam;\n}\nmodule.exports = Signature;\n\nfunction Position() {\n this.place = 0;\n}\n\nfunction getLength(buf, p) {\n var initial = buf[p.place++];\n if (!(initial & 0x80)) {\n return initial;\n }\n var octetLen = initial & 0xf;\n\n // Indefinite length or overflow\n if (octetLen === 0 || octetLen > 4) {\n return false;\n }\n\n var val = 0;\n for (var i = 0, off = p.place; i < octetLen; i++, off++) {\n val <<= 8;\n val |= buf[off];\n val >>>= 0;\n }\n\n // Leading zeroes\n if (val <= 0x7f) {\n return false;\n }\n\n p.place = off;\n return val;\n}\n\nfunction rmPadding(buf) {\n var i = 0;\n var len = buf.length - 1;\n while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {\n i++;\n }\n if (i === 0) {\n return buf;\n }\n return buf.slice(i);\n}\n\nSignature.prototype._importDER = function _importDER(data, enc) {\n data = utils.toArray(data, enc);\n var p = new Position();\n if (data[p.place++] !== 0x30) {\n return false;\n }\n var len = getLength(data, p);\n if (len === false) {\n return false;\n }\n if ((len + p.place) !== data.length) {\n return false;\n }\n if (data[p.place++] !== 0x02) {\n return false;\n }\n var rlen = getLength(data, p);\n if (rlen === false) {\n return false;\n }\n var r = data.slice(p.place, rlen + p.place);\n p.place += rlen;\n if (data[p.place++] !== 0x02) {\n return false;\n }\n var slen = getLength(data, p);\n if (slen === false) {\n return false;\n }\n if (data.length !== slen + p.place) {\n return false;\n }\n var s = data.slice(p.place, slen + p.place);\n if (r[0] === 0) {\n if (r[1] & 0x80) {\n r = r.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n if (s[0] === 0) {\n if (s[1] & 0x80) {\n s = s.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n\n this.r = new BN(r);\n this.s = new BN(s);\n this.recoveryParam = null;\n\n return true;\n};\n\nfunction constructLength(arr, len) {\n if (len < 0x80) {\n arr.push(len);\n return;\n }\n var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);\n arr.push(octets | 0x80);\n while (--octets) {\n arr.push((len >>> (octets << 3)) & 0xff);\n }\n arr.push(len);\n}\n\nSignature.prototype.toDER = function toDER(enc) {\n var r = this.r.toArray();\n var s = this.s.toArray();\n\n // Pad values\n if (r[0] & 0x80)\n r = [ 0 ].concat(r);\n // Pad values\n if (s[0] & 0x80)\n s = [ 0 ].concat(s);\n\n r = rmPadding(r);\n s = rmPadding(s);\n\n while (!s[0] && !(s[1] & 0x80)) {\n s = s.slice(1);\n }\n var arr = [ 0x02 ];\n constructLength(arr, r.length);\n arr = arr.concat(r);\n arr.push(0x02);\n constructLength(arr, s.length);\n var backHalf = arr.concat(s);\n var res = [ 0x30 ];\n constructLength(res, backHalf.length);\n res = res.concat(backHalf);\n return utils.encode(res, enc);\n};\n","'use strict';\n\nvar hash = require('hash.js');\nvar curves = require('../curves');\nvar utils = require('../utils');\nvar assert = utils.assert;\nvar parseBytes = utils.parseBytes;\nvar KeyPair = require('./key');\nvar Signature = require('./signature');\n\nfunction EDDSA(curve) {\n assert(curve === 'ed25519', 'only tested with ed25519 so far');\n\n if (!(this instanceof EDDSA))\n return new EDDSA(curve);\n\n curve = curves[curve].curve;\n this.curve = curve;\n this.g = curve.g;\n this.g.precompute(curve.n.bitLength() + 1);\n\n this.pointClass = curve.point().constructor;\n this.encodingLength = Math.ceil(curve.n.bitLength() / 8);\n this.hash = hash.sha512;\n}\n\nmodule.exports = EDDSA;\n\n/**\n* @param {Array|String} message - message bytes\n* @param {Array|String|KeyPair} secret - secret bytes or a keypair\n* @returns {Signature} - signature\n*/\nEDDSA.prototype.sign = function sign(message, secret) {\n message = parseBytes(message);\n var key = this.keyFromSecret(secret);\n var r = this.hashInt(key.messagePrefix(), message);\n var R = this.g.mul(r);\n var Rencoded = this.encodePoint(R);\n var s_ = this.hashInt(Rencoded, key.pubBytes(), message)\n .mul(key.priv());\n var S = r.add(s_).umod(this.curve.n);\n return this.makeSignature({ R: R, S: S, Rencoded: Rencoded });\n};\n\n/**\n* @param {Array} message - message bytes\n* @param {Array|String|Signature} sig - sig bytes\n* @param {Array|String|Point|KeyPair} pub - public key\n* @returns {Boolean} - true if public key matches sig of message\n*/\nEDDSA.prototype.verify = function verify(message, sig, pub) {\n message = parseBytes(message);\n sig = this.makeSignature(sig);\n var key = this.keyFromPublic(pub);\n var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message);\n var SG = this.g.mul(sig.S());\n var RplusAh = sig.R().add(key.pub().mul(h));\n return RplusAh.eq(SG);\n};\n\nEDDSA.prototype.hashInt = function hashInt() {\n var hash = this.hash();\n for (var i = 0; i < arguments.length; i++)\n hash.update(arguments[i]);\n return utils.intFromLE(hash.digest()).umod(this.curve.n);\n};\n\nEDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {\n return KeyPair.fromPublic(this, pub);\n};\n\nEDDSA.prototype.keyFromSecret = function keyFromSecret(secret) {\n return KeyPair.fromSecret(this, secret);\n};\n\nEDDSA.prototype.makeSignature = function makeSignature(sig) {\n if (sig instanceof Signature)\n return sig;\n return new Signature(this, sig);\n};\n\n/**\n* * https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-03#section-5.2\n*\n* EDDSA defines methods for encoding and decoding points and integers. These are\n* helper convenience methods, that pass along to utility functions implied\n* parameters.\n*\n*/\nEDDSA.prototype.encodePoint = function encodePoint(point) {\n var enc = point.getY().toArray('le', this.encodingLength);\n enc[this.encodingLength - 1] |= point.getX().isOdd() ? 0x80 : 0;\n return enc;\n};\n\nEDDSA.prototype.decodePoint = function decodePoint(bytes) {\n bytes = utils.parseBytes(bytes);\n\n var lastIx = bytes.length - 1;\n var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~0x80);\n var xIsOdd = (bytes[lastIx] & 0x80) !== 0;\n\n var y = utils.intFromLE(normed);\n return this.curve.pointFromY(y, xIsOdd);\n};\n\nEDDSA.prototype.encodeInt = function encodeInt(num) {\n return num.toArray('le', this.encodingLength);\n};\n\nEDDSA.prototype.decodeInt = function decodeInt(bytes) {\n return utils.intFromLE(bytes);\n};\n\nEDDSA.prototype.isPoint = function isPoint(val) {\n return val instanceof this.pointClass;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar assert = utils.assert;\nvar parseBytes = utils.parseBytes;\nvar cachedProperty = utils.cachedProperty;\n\n/**\n* @param {EDDSA} eddsa - instance\n* @param {Object} params - public/private key parameters\n*\n* @param {Array} [params.secret] - secret seed bytes\n* @param {Point} [params.pub] - public key point (aka `A` in eddsa terms)\n* @param {Array} [params.pub] - public key point encoded as bytes\n*\n*/\nfunction KeyPair(eddsa, params) {\n this.eddsa = eddsa;\n this._secret = parseBytes(params.secret);\n if (eddsa.isPoint(params.pub))\n this._pub = params.pub;\n else\n this._pubBytes = parseBytes(params.pub);\n}\n\nKeyPair.fromPublic = function fromPublic(eddsa, pub) {\n if (pub instanceof KeyPair)\n return pub;\n return new KeyPair(eddsa, { pub: pub });\n};\n\nKeyPair.fromSecret = function fromSecret(eddsa, secret) {\n if (secret instanceof KeyPair)\n return secret;\n return new KeyPair(eddsa, { secret: secret });\n};\n\nKeyPair.prototype.secret = function secret() {\n return this._secret;\n};\n\ncachedProperty(KeyPair, 'pubBytes', function pubBytes() {\n return this.eddsa.encodePoint(this.pub());\n});\n\ncachedProperty(KeyPair, 'pub', function pub() {\n if (this._pubBytes)\n return this.eddsa.decodePoint(this._pubBytes);\n return this.eddsa.g.mul(this.priv());\n});\n\ncachedProperty(KeyPair, 'privBytes', function privBytes() {\n var eddsa = this.eddsa;\n var hash = this.hash();\n var lastIx = eddsa.encodingLength - 1;\n\n var a = hash.slice(0, eddsa.encodingLength);\n a[0] &= 248;\n a[lastIx] &= 127;\n a[lastIx] |= 64;\n\n return a;\n});\n\ncachedProperty(KeyPair, 'priv', function priv() {\n return this.eddsa.decodeInt(this.privBytes());\n});\n\ncachedProperty(KeyPair, 'hash', function hash() {\n return this.eddsa.hash().update(this.secret()).digest();\n});\n\ncachedProperty(KeyPair, 'messagePrefix', function messagePrefix() {\n return this.hash().slice(this.eddsa.encodingLength);\n});\n\nKeyPair.prototype.sign = function sign(message) {\n assert(this._secret, 'KeyPair can only verify');\n return this.eddsa.sign(message, this);\n};\n\nKeyPair.prototype.verify = function verify(message, sig) {\n return this.eddsa.verify(message, sig, this);\n};\n\nKeyPair.prototype.getSecret = function getSecret(enc) {\n assert(this._secret, 'KeyPair is public only');\n return utils.encode(this.secret(), enc);\n};\n\nKeyPair.prototype.getPublic = function getPublic(enc) {\n return utils.encode(this.pubBytes(), enc);\n};\n\nmodule.exports = KeyPair;\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar assert = utils.assert;\nvar cachedProperty = utils.cachedProperty;\nvar parseBytes = utils.parseBytes;\n\n/**\n* @param {EDDSA} eddsa - eddsa instance\n* @param {Array|Object} sig -\n* @param {Array|Point} [sig.R] - R point as Point or bytes\n* @param {Array|bn} [sig.S] - S scalar as bn or bytes\n* @param {Array} [sig.Rencoded] - R point encoded\n* @param {Array} [sig.Sencoded] - S scalar encoded\n*/\nfunction Signature(eddsa, sig) {\n this.eddsa = eddsa;\n\n if (typeof sig !== 'object')\n sig = parseBytes(sig);\n\n if (Array.isArray(sig)) {\n sig = {\n R: sig.slice(0, eddsa.encodingLength),\n S: sig.slice(eddsa.encodingLength),\n };\n }\n\n assert(sig.R && sig.S, 'Signature without R or S');\n\n if (eddsa.isPoint(sig.R))\n this._R = sig.R;\n if (sig.S instanceof BN)\n this._S = sig.S;\n\n this._Rencoded = Array.isArray(sig.R) ? sig.R : sig.Rencoded;\n this._Sencoded = Array.isArray(sig.S) ? sig.S : sig.Sencoded;\n}\n\ncachedProperty(Signature, 'S', function S() {\n return this.eddsa.decodeInt(this.Sencoded());\n});\n\ncachedProperty(Signature, 'R', function R() {\n return this.eddsa.decodePoint(this.Rencoded());\n});\n\ncachedProperty(Signature, 'Rencoded', function Rencoded() {\n return this.eddsa.encodePoint(this.R());\n});\n\ncachedProperty(Signature, 'Sencoded', function Sencoded() {\n return this.eddsa.encodeInt(this.S());\n});\n\nSignature.prototype.toBytes = function toBytes() {\n return this.Rencoded().concat(this.Sencoded());\n};\n\nSignature.prototype.toHex = function toHex() {\n return utils.encode(this.toBytes(), 'hex').toUpperCase();\n};\n\nmodule.exports = Signature;\n","module.exports = {\n doubles: {\n step: 4,\n points: [\n [\n 'e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a',\n 'f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821',\n ],\n [\n '8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508',\n '11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf',\n ],\n [\n '175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739',\n 'd3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695',\n ],\n [\n '363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640',\n '4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9',\n ],\n [\n '8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c',\n '4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36',\n ],\n [\n '723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda',\n '96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f',\n ],\n [\n 'eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa',\n '5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999',\n ],\n [\n '100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0',\n 'cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09',\n ],\n [\n 'e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d',\n '9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d',\n ],\n [\n 'feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d',\n 'e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088',\n ],\n [\n 'da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1',\n '9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d',\n ],\n [\n '53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0',\n '5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8',\n ],\n [\n '8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047',\n '10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a',\n ],\n [\n '385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862',\n '283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453',\n ],\n [\n '6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7',\n '7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160',\n ],\n [\n '3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd',\n '56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0',\n ],\n [\n '85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83',\n '7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6',\n ],\n [\n '948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a',\n '53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589',\n ],\n [\n '6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8',\n 'bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17',\n ],\n [\n 'e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d',\n '4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda',\n ],\n [\n 'e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725',\n '7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd',\n ],\n [\n '213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754',\n '4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2',\n ],\n [\n '4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c',\n '17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6',\n ],\n [\n 'fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6',\n '6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f',\n ],\n [\n '76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39',\n 'c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01',\n ],\n [\n 'c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891',\n '893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3',\n ],\n [\n 'd895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b',\n 'febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f',\n ],\n [\n 'b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03',\n '2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7',\n ],\n [\n 'e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d',\n 'eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78',\n ],\n [\n 'a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070',\n '7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1',\n ],\n [\n '90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4',\n 'e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150',\n ],\n [\n '8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da',\n '662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82',\n ],\n [\n 'e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11',\n '1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc',\n ],\n [\n '8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e',\n 'efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b',\n ],\n [\n 'e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41',\n '2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51',\n ],\n [\n 'b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef',\n '67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45',\n ],\n [\n 'd68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8',\n 'db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120',\n ],\n [\n '324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d',\n '648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84',\n ],\n [\n '4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96',\n '35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d',\n ],\n [\n '9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd',\n 'ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d',\n ],\n [\n '6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5',\n '9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8',\n ],\n [\n 'a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266',\n '40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8',\n ],\n [\n '7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71',\n '34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac',\n ],\n [\n '928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac',\n 'c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f',\n ],\n [\n '85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751',\n '1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962',\n ],\n [\n 'ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e',\n '493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907',\n ],\n [\n '827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241',\n 'c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec',\n ],\n [\n 'eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3',\n 'be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d',\n ],\n [\n 'e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f',\n '4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414',\n ],\n [\n '1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19',\n 'aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd',\n ],\n [\n '146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be',\n 'b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0',\n ],\n [\n 'fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9',\n '6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811',\n ],\n [\n 'da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2',\n '8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1',\n ],\n [\n 'a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13',\n '7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c',\n ],\n [\n '174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c',\n 'ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73',\n ],\n [\n '959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba',\n '2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd',\n ],\n [\n 'd2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151',\n 'e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405',\n ],\n [\n '64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073',\n 'd99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589',\n ],\n [\n '8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458',\n '38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e',\n ],\n [\n '13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b',\n '69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27',\n ],\n [\n 'bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366',\n 'd3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1',\n ],\n [\n '8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa',\n '40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482',\n ],\n [\n '8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0',\n '620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945',\n ],\n [\n 'dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787',\n '7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573',\n ],\n [\n 'f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e',\n 'ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82',\n ],\n ],\n },\n naf: {\n wnd: 7,\n points: [\n [\n 'f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9',\n '388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672',\n ],\n [\n '2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4',\n 'd8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6',\n ],\n [\n '5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc',\n '6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da',\n ],\n [\n 'acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe',\n 'cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37',\n ],\n [\n '774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb',\n 'd984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b',\n ],\n [\n 'f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8',\n 'ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81',\n ],\n [\n 'd7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e',\n '581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58',\n ],\n [\n 'defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34',\n '4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77',\n ],\n [\n '2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c',\n '85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a',\n ],\n [\n '352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5',\n '321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c',\n ],\n [\n '2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f',\n '2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67',\n ],\n [\n '9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714',\n '73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402',\n ],\n [\n 'daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729',\n 'a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55',\n ],\n [\n 'c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db',\n '2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482',\n ],\n [\n '6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4',\n 'e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82',\n ],\n [\n '1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5',\n 'b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396',\n ],\n [\n '605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479',\n '2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49',\n ],\n [\n '62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d',\n '80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf',\n ],\n [\n '80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f',\n '1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a',\n ],\n [\n '7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb',\n 'd0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7',\n ],\n [\n 'd528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9',\n 'eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933',\n ],\n [\n '49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963',\n '758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a',\n ],\n [\n '77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74',\n '958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6',\n ],\n [\n 'f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530',\n 'e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37',\n ],\n [\n '463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b',\n '5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e',\n ],\n [\n 'f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247',\n 'cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6',\n ],\n [\n 'caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1',\n 'cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476',\n ],\n [\n '2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120',\n '4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40',\n ],\n [\n '7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435',\n '91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61',\n ],\n [\n '754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18',\n '673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683',\n ],\n [\n 'e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8',\n '59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5',\n ],\n [\n '186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb',\n '3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b',\n ],\n [\n 'df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f',\n '55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417',\n ],\n [\n '5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143',\n 'efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868',\n ],\n [\n '290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba',\n 'e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a',\n ],\n [\n 'af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45',\n 'f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6',\n ],\n [\n '766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a',\n '744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996',\n ],\n [\n '59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e',\n 'c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e',\n ],\n [\n 'f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8',\n 'e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d',\n ],\n [\n '7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c',\n '30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2',\n ],\n [\n '948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519',\n 'e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e',\n ],\n [\n '7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab',\n '100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437',\n ],\n [\n '3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca',\n 'ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311',\n ],\n [\n 'd3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf',\n '8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4',\n ],\n [\n '1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610',\n '68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575',\n ],\n [\n '733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4',\n 'f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d',\n ],\n [\n '15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c',\n 'd56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d',\n ],\n [\n 'a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940',\n 'edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629',\n ],\n [\n 'e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980',\n 'a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06',\n ],\n [\n '311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3',\n '66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374',\n ],\n [\n '34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf',\n '9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee',\n ],\n [\n 'f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63',\n '4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1',\n ],\n [\n 'd7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448',\n 'fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b',\n ],\n [\n '32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf',\n '5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661',\n ],\n [\n '7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5',\n '8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6',\n ],\n [\n 'ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6',\n '8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e',\n ],\n [\n '16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5',\n '5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d',\n ],\n [\n 'eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99',\n 'f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc',\n ],\n [\n '78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51',\n 'f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4',\n ],\n [\n '494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5',\n '42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c',\n ],\n [\n 'a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5',\n '204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b',\n ],\n [\n 'c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997',\n '4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913',\n ],\n [\n '841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881',\n '73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154',\n ],\n [\n '5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5',\n '39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865',\n ],\n [\n '36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66',\n 'd2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc',\n ],\n [\n '336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726',\n 'ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224',\n ],\n [\n '8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede',\n '6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e',\n ],\n [\n '1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94',\n '60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6',\n ],\n [\n '85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31',\n '3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511',\n ],\n [\n '29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51',\n 'b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b',\n ],\n [\n 'a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252',\n 'ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2',\n ],\n [\n '4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5',\n 'cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c',\n ],\n [\n 'd24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b',\n '6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3',\n ],\n [\n 'ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4',\n '322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d',\n ],\n [\n 'af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f',\n '6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700',\n ],\n [\n 'e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889',\n '2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4',\n ],\n [\n '591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246',\n 'b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196',\n ],\n [\n '11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984',\n '998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4',\n ],\n [\n '3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a',\n 'b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257',\n ],\n [\n 'cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030',\n 'bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13',\n ],\n [\n 'c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197',\n '6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096',\n ],\n [\n 'c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593',\n 'c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38',\n ],\n [\n 'a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef',\n '21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f',\n ],\n [\n '347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38',\n '60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448',\n ],\n [\n 'da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a',\n '49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a',\n ],\n [\n 'c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111',\n '5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4',\n ],\n [\n '4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502',\n '7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437',\n ],\n [\n '3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea',\n 'be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7',\n ],\n [\n 'cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26',\n '8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d',\n ],\n [\n 'b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986',\n '39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a',\n ],\n [\n 'd4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e',\n '62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54',\n ],\n [\n '48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4',\n '25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77',\n ],\n [\n 'dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda',\n 'ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517',\n ],\n [\n '6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859',\n 'cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10',\n ],\n [\n 'e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f',\n 'f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125',\n ],\n [\n 'eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c',\n '6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e',\n ],\n [\n '13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942',\n 'fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1',\n ],\n [\n 'ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a',\n '1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2',\n ],\n [\n 'b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80',\n '5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423',\n ],\n [\n 'ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d',\n '438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8',\n ],\n [\n '8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1',\n 'cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758',\n ],\n [\n '52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63',\n 'c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375',\n ],\n [\n 'e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352',\n '6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d',\n ],\n [\n '7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193',\n 'ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec',\n ],\n [\n '5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00',\n '9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0',\n ],\n [\n '32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58',\n 'ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c',\n ],\n [\n 'e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7',\n 'd3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4',\n ],\n [\n '8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8',\n 'c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f',\n ],\n [\n '4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e',\n '67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649',\n ],\n [\n '3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d',\n 'cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826',\n ],\n [\n '674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b',\n '299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5',\n ],\n [\n 'd32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f',\n 'f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87',\n ],\n [\n '30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6',\n '462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b',\n ],\n [\n 'be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297',\n '62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc',\n ],\n [\n '93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a',\n '7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c',\n ],\n [\n 'b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c',\n 'ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f',\n ],\n [\n 'd5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52',\n '4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a',\n ],\n [\n 'd3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb',\n 'bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46',\n ],\n [\n '463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065',\n 'bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f',\n ],\n [\n '7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917',\n '603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03',\n ],\n [\n '74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9',\n 'cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08',\n ],\n [\n '30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3',\n '553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8',\n ],\n [\n '9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57',\n '712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373',\n ],\n [\n '176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66',\n 'ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3',\n ],\n [\n '75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8',\n '9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8',\n ],\n [\n '809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721',\n '9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1',\n ],\n [\n '1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180',\n '4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9',\n ],\n ],\n },\n};\n","'use strict';\n\nvar utils = exports;\nvar BN = require('bn.js');\nvar minAssert = require('minimalistic-assert');\nvar minUtils = require('minimalistic-crypto-utils');\n\nutils.assert = minAssert;\nutils.toArray = minUtils.toArray;\nutils.zero2 = minUtils.zero2;\nutils.toHex = minUtils.toHex;\nutils.encode = minUtils.encode;\n\n// Represent num in a w-NAF form\nfunction getNAF(num, w, bits) {\n var naf = new Array(Math.max(num.bitLength(), bits) + 1);\n naf.fill(0);\n\n var ws = 1 << (w + 1);\n var k = num.clone();\n\n for (var i = 0; i < naf.length; i++) {\n var z;\n var mod = k.andln(ws - 1);\n if (k.isOdd()) {\n if (mod > (ws >> 1) - 1)\n z = (ws >> 1) - mod;\n else\n z = mod;\n k.isubn(z);\n } else {\n z = 0;\n }\n\n naf[i] = z;\n k.iushrn(1);\n }\n\n return naf;\n}\nutils.getNAF = getNAF;\n\n// Represent k1, k2 in a Joint Sparse Form\nfunction getJSF(k1, k2) {\n var jsf = [\n [],\n [],\n ];\n\n k1 = k1.clone();\n k2 = k2.clone();\n var d1 = 0;\n var d2 = 0;\n var m8;\n while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {\n // First phase\n var m14 = (k1.andln(3) + d1) & 3;\n var m24 = (k2.andln(3) + d2) & 3;\n if (m14 === 3)\n m14 = -1;\n if (m24 === 3)\n m24 = -1;\n var u1;\n if ((m14 & 1) === 0) {\n u1 = 0;\n } else {\n m8 = (k1.andln(7) + d1) & 7;\n if ((m8 === 3 || m8 === 5) && m24 === 2)\n u1 = -m14;\n else\n u1 = m14;\n }\n jsf[0].push(u1);\n\n var u2;\n if ((m24 & 1) === 0) {\n u2 = 0;\n } else {\n m8 = (k2.andln(7) + d2) & 7;\n if ((m8 === 3 || m8 === 5) && m14 === 2)\n u2 = -m24;\n else\n u2 = m24;\n }\n jsf[1].push(u2);\n\n // Second phase\n if (2 * d1 === u1 + 1)\n d1 = 1 - d1;\n if (2 * d2 === u2 + 1)\n d2 = 1 - d2;\n k1.iushrn(1);\n k2.iushrn(1);\n }\n\n return jsf;\n}\nutils.getJSF = getJSF;\n\nfunction cachedProperty(obj, name, computer) {\n var key = '_' + name;\n obj.prototype[name] = function cachedProperty() {\n return this[key] !== undefined ? this[key] :\n this[key] = computer.call(this);\n };\n}\nutils.cachedProperty = cachedProperty;\n\nfunction parseBytes(bytes) {\n return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :\n bytes;\n}\nutils.parseBytes = parseBytes;\n\nfunction intFromLE(bytes) {\n return new BN(bytes, 'hex', 'le');\n}\nutils.intFromLE = intFromLE;\n\n","'use strict';\n\nfunction assign(obj, props) {\n for (const key in props) {\n Object.defineProperty(obj, key, {\n value: props[key],\n enumerable: true,\n configurable: true,\n });\n }\n\n return obj;\n}\n\nfunction createError(err, code, props) {\n if (!err || typeof err === 'string') {\n throw new TypeError('Please pass an Error to err-code');\n }\n\n if (!props) {\n props = {};\n }\n\n if (typeof code === 'object') {\n props = code;\n code = undefined;\n }\n\n if (code != null) {\n props.code = code;\n }\n\n try {\n return assign(err, props);\n } catch (_) {\n props.message = err.message;\n props.stack = err.stack;\n\n const ErrClass = function () {};\n\n ErrClass.prototype = Object.create(Object.getPrototypeOf(err));\n\n return assign(new ErrClass(), props);\n }\n}\n\nmodule.exports = createError;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.keccak512 = exports.keccak384 = exports.keccak256 = exports.keccak224 = void 0;\nconst sha3_1 = require(\"@noble/hashes/sha3\");\nconst utils_1 = require(\"./utils\");\nexports.keccak224 = (0, utils_1.wrapHash)(sha3_1.keccak_224);\nexports.keccak256 = (() => {\n const k = (0, utils_1.wrapHash)(sha3_1.keccak_256);\n k.create = sha3_1.keccak_256.create;\n return k;\n})();\nexports.keccak384 = (0, utils_1.wrapHash)(sha3_1.keccak_384);\nexports.keccak512 = (0, utils_1.wrapHash)(sha3_1.keccak_512);\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.crypto = exports.wrapHash = exports.equalsBytes = exports.hexToBytes = exports.bytesToUtf8 = exports.utf8ToBytes = exports.createView = exports.concatBytes = exports.toHex = exports.bytesToHex = exports.assertBytes = exports.assertBool = void 0;\n// buf.toString('hex') -> toHex(buf)\nconst _assert_1 = __importDefault(require(\"@noble/hashes/_assert\"));\nconst utils_1 = require(\"@noble/hashes/utils\");\nconst assertBool = _assert_1.default.bool;\nexports.assertBool = assertBool;\nconst assertBytes = _assert_1.default.bytes;\nexports.assertBytes = assertBytes;\nvar utils_2 = require(\"@noble/hashes/utils\");\nObject.defineProperty(exports, \"bytesToHex\", { enumerable: true, get: function () { return utils_2.bytesToHex; } });\nObject.defineProperty(exports, \"toHex\", { enumerable: true, get: function () { return utils_2.bytesToHex; } });\nObject.defineProperty(exports, \"concatBytes\", { enumerable: true, get: function () { return utils_2.concatBytes; } });\nObject.defineProperty(exports, \"createView\", { enumerable: true, get: function () { return utils_2.createView; } });\nObject.defineProperty(exports, \"utf8ToBytes\", { enumerable: true, get: function () { return utils_2.utf8ToBytes; } });\n// buf.toString('utf8') -> bytesToUtf8(buf)\nfunction bytesToUtf8(data) {\n if (!(data instanceof Uint8Array)) {\n throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof data}`);\n }\n return new TextDecoder().decode(data);\n}\nexports.bytesToUtf8 = bytesToUtf8;\nfunction hexToBytes(data) {\n const sliced = data.startsWith(\"0x\") ? data.substring(2) : data;\n return (0, utils_1.hexToBytes)(sliced);\n}\nexports.hexToBytes = hexToBytes;\n// buf.equals(buf2) -> equalsBytes(buf, buf2)\nfunction equalsBytes(a, b) {\n if (a.length !== b.length) {\n return false;\n }\n for (let i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n return true;\n}\nexports.equalsBytes = equalsBytes;\n// Internal utils\nfunction wrapHash(hash) {\n return (msg) => {\n _assert_1.default.bytes(msg);\n return hash(msg);\n };\n}\nexports.wrapHash = wrapHash;\nexports.crypto = (() => {\n const webCrypto = typeof self === \"object\" && \"crypto\" in self ? self.crypto : undefined;\n const nodeRequire = typeof module !== \"undefined\" &&\n typeof module.require === \"function\" &&\n module.require.bind(module);\n return {\n node: nodeRequire && !webCrypto ? nodeRequire(\"crypto\") : undefined,\n web: webCrypto\n };\n})();\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","'use strict';\n\nmodule.exports = function (data, opts) {\n if (!opts) opts = {};\n if (typeof opts === 'function') opts = { cmp: opts };\n var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n\n var cmp = opts.cmp && (function (f) {\n return function (node) {\n return function (a, b) {\n var aobj = { key: a, value: node[a] };\n var bobj = { key: b, value: node[b] };\n return f(aobj, bobj);\n };\n };\n })(opts.cmp);\n\n var seen = [];\n return (function stringify (node) {\n if (node && node.toJSON && typeof node.toJSON === 'function') {\n node = node.toJSON();\n }\n\n if (node === undefined) return;\n if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';\n if (typeof node !== 'object') return JSON.stringify(node);\n\n var i, out;\n if (Array.isArray(node)) {\n out = '[';\n for (i = 0; i < node.length; i++) {\n if (i) out += ',';\n out += stringify(node[i]) || 'null';\n }\n return out + ']';\n }\n\n if (node === null) return 'null';\n\n if (seen.indexOf(node) !== -1) {\n if (cycles) return JSON.stringify('__cycle__');\n throw new TypeError('Converting circular structure to JSON');\n }\n\n var seenIndex = seen.push(node) - 1;\n var keys = Object.keys(node).sort(cmp && cmp(node));\n out = '';\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = stringify(node[key]);\n\n if (!value) continue;\n if (out) out += ',';\n out += JSON.stringify(key) + ':' + value;\n }\n seen.splice(seenIndex, 1);\n return '{' + out + '}';\n })(data);\n};\n","'use strict'\nvar Buffer = require('safe-buffer').Buffer\nvar Transform = require('readable-stream').Transform\nvar inherits = require('inherits')\n\nfunction throwIfNotStringOrBuffer (val, prefix) {\n if (!Buffer.isBuffer(val) && typeof val !== 'string') {\n throw new TypeError(prefix + ' must be a string or a buffer')\n }\n}\n\nfunction HashBase (blockSize) {\n Transform.call(this)\n\n this._block = Buffer.allocUnsafe(blockSize)\n this._blockSize = blockSize\n this._blockOffset = 0\n this._length = [0, 0, 0, 0]\n\n this._finalized = false\n}\n\ninherits(HashBase, Transform)\n\nHashBase.prototype._transform = function (chunk, encoding, callback) {\n var error = null\n try {\n this.update(chunk, encoding)\n } catch (err) {\n error = err\n }\n\n callback(error)\n}\n\nHashBase.prototype._flush = function (callback) {\n var error = null\n try {\n this.push(this.digest())\n } catch (err) {\n error = err\n }\n\n callback(error)\n}\n\nHashBase.prototype.update = function (data, encoding) {\n throwIfNotStringOrBuffer(data, 'Data')\n if (this._finalized) throw new Error('Digest already called')\n if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding)\n\n // consume data\n var block = this._block\n var offset = 0\n while (this._blockOffset + data.length - offset >= this._blockSize) {\n for (var i = this._blockOffset; i < this._blockSize;) block[i++] = data[offset++]\n this._update()\n this._blockOffset = 0\n }\n while (offset < data.length) block[this._blockOffset++] = data[offset++]\n\n // update length\n for (var j = 0, carry = data.length * 8; carry > 0; ++j) {\n this._length[j] += carry\n carry = (this._length[j] / 0x0100000000) | 0\n if (carry > 0) this._length[j] -= 0x0100000000 * carry\n }\n\n return this\n}\n\nHashBase.prototype._update = function () {\n throw new Error('_update is not implemented')\n}\n\nHashBase.prototype.digest = function (encoding) {\n if (this._finalized) throw new Error('Digest already called')\n this._finalized = true\n\n var digest = this._digest()\n if (encoding !== undefined) digest = digest.toString(encoding)\n\n // reset state\n this._block.fill(0)\n this._blockOffset = 0\n for (var i = 0; i < 4; ++i) this._length[i] = 0\n\n return digest\n}\n\nHashBase.prototype._digest = function () {\n throw new Error('_digest is not implemented')\n}\n\nmodule.exports = HashBase\n","var hash = exports;\n\nhash.utils = require('./hash/utils');\nhash.common = require('./hash/common');\nhash.sha = require('./hash/sha');\nhash.ripemd = require('./hash/ripemd');\nhash.hmac = require('./hash/hmac');\n\n// Proxy hash functions to the main object\nhash.sha1 = hash.sha.sha1;\nhash.sha256 = hash.sha.sha256;\nhash.sha224 = hash.sha.sha224;\nhash.sha384 = hash.sha.sha384;\nhash.sha512 = hash.sha.sha512;\nhash.ripemd160 = hash.ripemd.ripemd160;\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction BlockHash() {\n this.pending = null;\n this.pendingTotal = 0;\n this.blockSize = this.constructor.blockSize;\n this.outSize = this.constructor.outSize;\n this.hmacStrength = this.constructor.hmacStrength;\n this.padLength = this.constructor.padLength / 8;\n this.endian = 'big';\n\n this._delta8 = this.blockSize / 8;\n this._delta32 = this.blockSize / 32;\n}\nexports.BlockHash = BlockHash;\n\nBlockHash.prototype.update = function update(msg, enc) {\n // Convert message to array, pad it, and join into 32bit blocks\n msg = utils.toArray(msg, enc);\n if (!this.pending)\n this.pending = msg;\n else\n this.pending = this.pending.concat(msg);\n this.pendingTotal += msg.length;\n\n // Enough data, try updating\n if (this.pending.length >= this._delta8) {\n msg = this.pending;\n\n // Process pending data in blocks\n var r = msg.length % this._delta8;\n this.pending = msg.slice(msg.length - r, msg.length);\n if (this.pending.length === 0)\n this.pending = null;\n\n msg = utils.join32(msg, 0, msg.length - r, this.endian);\n for (var i = 0; i < msg.length; i += this._delta32)\n this._update(msg, i, i + this._delta32);\n }\n\n return this;\n};\n\nBlockHash.prototype.digest = function digest(enc) {\n this.update(this._pad());\n assert(this.pending === null);\n\n return this._digest(enc);\n};\n\nBlockHash.prototype._pad = function pad() {\n var len = this.pendingTotal;\n var bytes = this._delta8;\n var k = bytes - ((len + this.padLength) % bytes);\n var res = new Array(k + this.padLength);\n res[0] = 0x80;\n for (var i = 1; i < k; i++)\n res[i] = 0;\n\n // Append length\n len <<= 3;\n if (this.endian === 'big') {\n for (var t = 8; t < this.padLength; t++)\n res[i++] = 0;\n\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = len & 0xff;\n } else {\n res[i++] = len & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n\n for (t = 8; t < this.padLength; t++)\n res[i++] = 0;\n }\n\n return res;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction Hmac(hash, key, enc) {\n if (!(this instanceof Hmac))\n return new Hmac(hash, key, enc);\n this.Hash = hash;\n this.blockSize = hash.blockSize / 8;\n this.outSize = hash.outSize / 8;\n this.inner = null;\n this.outer = null;\n\n this._init(utils.toArray(key, enc));\n}\nmodule.exports = Hmac;\n\nHmac.prototype._init = function init(key) {\n // Shorten key, if needed\n if (key.length > this.blockSize)\n key = new this.Hash().update(key).digest();\n assert(key.length <= this.blockSize);\n\n // Add padding to key\n for (var i = key.length; i < this.blockSize; i++)\n key.push(0);\n\n for (i = 0; i < key.length; i++)\n key[i] ^= 0x36;\n this.inner = new this.Hash().update(key);\n\n // 0x36 ^ 0x5c = 0x6a\n for (i = 0; i < key.length; i++)\n key[i] ^= 0x6a;\n this.outer = new this.Hash().update(key);\n};\n\nHmac.prototype.update = function update(msg, enc) {\n this.inner.update(msg, enc);\n return this;\n};\n\nHmac.prototype.digest = function digest(enc) {\n this.outer.update(this.inner.digest());\n return this.outer.digest(enc);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar common = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_3 = utils.sum32_3;\nvar sum32_4 = utils.sum32_4;\nvar BlockHash = common.BlockHash;\n\nfunction RIPEMD160() {\n if (!(this instanceof RIPEMD160))\n return new RIPEMD160();\n\n BlockHash.call(this);\n\n this.h = [ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 ];\n this.endian = 'little';\n}\nutils.inherits(RIPEMD160, BlockHash);\nexports.ripemd160 = RIPEMD160;\n\nRIPEMD160.blockSize = 512;\nRIPEMD160.outSize = 160;\nRIPEMD160.hmacStrength = 192;\nRIPEMD160.padLength = 64;\n\nRIPEMD160.prototype._update = function update(msg, start) {\n var A = this.h[0];\n var B = this.h[1];\n var C = this.h[2];\n var D = this.h[3];\n var E = this.h[4];\n var Ah = A;\n var Bh = B;\n var Ch = C;\n var Dh = D;\n var Eh = E;\n for (var j = 0; j < 80; j++) {\n var T = sum32(\n rotl32(\n sum32_4(A, f(j, B, C, D), msg[r[j] + start], K(j)),\n s[j]),\n E);\n A = E;\n E = D;\n D = rotl32(C, 10);\n C = B;\n B = T;\n T = sum32(\n rotl32(\n sum32_4(Ah, f(79 - j, Bh, Ch, Dh), msg[rh[j] + start], Kh(j)),\n sh[j]),\n Eh);\n Ah = Eh;\n Eh = Dh;\n Dh = rotl32(Ch, 10);\n Ch = Bh;\n Bh = T;\n }\n T = sum32_3(this.h[1], C, Dh);\n this.h[1] = sum32_3(this.h[2], D, Eh);\n this.h[2] = sum32_3(this.h[3], E, Ah);\n this.h[3] = sum32_3(this.h[4], A, Bh);\n this.h[4] = sum32_3(this.h[0], B, Ch);\n this.h[0] = T;\n};\n\nRIPEMD160.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'little');\n else\n return utils.split32(this.h, 'little');\n};\n\nfunction f(j, x, y, z) {\n if (j <= 15)\n return x ^ y ^ z;\n else if (j <= 31)\n return (x & y) | ((~x) & z);\n else if (j <= 47)\n return (x | (~y)) ^ z;\n else if (j <= 63)\n return (x & z) | (y & (~z));\n else\n return x ^ (y | (~z));\n}\n\nfunction K(j) {\n if (j <= 15)\n return 0x00000000;\n else if (j <= 31)\n return 0x5a827999;\n else if (j <= 47)\n return 0x6ed9eba1;\n else if (j <= 63)\n return 0x8f1bbcdc;\n else\n return 0xa953fd4e;\n}\n\nfunction Kh(j) {\n if (j <= 15)\n return 0x50a28be6;\n else if (j <= 31)\n return 0x5c4dd124;\n else if (j <= 47)\n return 0x6d703ef3;\n else if (j <= 63)\n return 0x7a6d76e9;\n else\n return 0x00000000;\n}\n\nvar r = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\n 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,\n 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,\n 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,\n 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13\n];\n\nvar rh = [\n 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,\n 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,\n 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,\n 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,\n 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11\n];\n\nvar s = [\n 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,\n 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,\n 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,\n 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,\n 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6\n];\n\nvar sh = [\n 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,\n 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,\n 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,\n 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,\n 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11\n];\n","'use strict';\n\nexports.sha1 = require('./sha/1');\nexports.sha224 = require('./sha/224');\nexports.sha256 = require('./sha/256');\nexports.sha384 = require('./sha/384');\nexports.sha512 = require('./sha/512');\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_5 = utils.sum32_5;\nvar ft_1 = shaCommon.ft_1;\nvar BlockHash = common.BlockHash;\n\nvar sha1_K = [\n 0x5A827999, 0x6ED9EBA1,\n 0x8F1BBCDC, 0xCA62C1D6\n];\n\nfunction SHA1() {\n if (!(this instanceof SHA1))\n return new SHA1();\n\n BlockHash.call(this);\n this.h = [\n 0x67452301, 0xefcdab89, 0x98badcfe,\n 0x10325476, 0xc3d2e1f0 ];\n this.W = new Array(80);\n}\n\nutils.inherits(SHA1, BlockHash);\nmodule.exports = SHA1;\n\nSHA1.blockSize = 512;\nSHA1.outSize = 160;\nSHA1.hmacStrength = 80;\nSHA1.padLength = 64;\n\nSHA1.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n\n for(; i < W.length; i++)\n W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n\n for (i = 0; i < W.length; i++) {\n var s = ~~(i / 20);\n var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);\n e = d;\n d = c;\n c = rotl32(b, 30);\n b = a;\n a = t;\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n};\n\nSHA1.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar SHA256 = require('./256');\n\nfunction SHA224() {\n if (!(this instanceof SHA224))\n return new SHA224();\n\n SHA256.call(this);\n this.h = [\n 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,\n 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 ];\n}\nutils.inherits(SHA224, SHA256);\nmodule.exports = SHA224;\n\nSHA224.blockSize = 512;\nSHA224.outSize = 224;\nSHA224.hmacStrength = 192;\nSHA224.padLength = 64;\n\nSHA224.prototype._digest = function digest(enc) {\n // Just truncate output\n if (enc === 'hex')\n return utils.toHex32(this.h.slice(0, 7), 'big');\n else\n return utils.split32(this.h.slice(0, 7), 'big');\n};\n\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\nvar assert = require('minimalistic-assert');\n\nvar sum32 = utils.sum32;\nvar sum32_4 = utils.sum32_4;\nvar sum32_5 = utils.sum32_5;\nvar ch32 = shaCommon.ch32;\nvar maj32 = shaCommon.maj32;\nvar s0_256 = shaCommon.s0_256;\nvar s1_256 = shaCommon.s1_256;\nvar g0_256 = shaCommon.g0_256;\nvar g1_256 = shaCommon.g1_256;\n\nvar BlockHash = common.BlockHash;\n\nvar sha256_K = [\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,\n 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,\n 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,\n 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,\n 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,\n 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,\n 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,\n 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,\n 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n];\n\nfunction SHA256() {\n if (!(this instanceof SHA256))\n return new SHA256();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,\n 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19\n ];\n this.k = sha256_K;\n this.W = new Array(64);\n}\nutils.inherits(SHA256, BlockHash);\nmodule.exports = SHA256;\n\nSHA256.blockSize = 512;\nSHA256.outSize = 256;\nSHA256.hmacStrength = 192;\nSHA256.padLength = 64;\n\nSHA256.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i++)\n W[i] = sum32_4(g1_256(W[i - 2]), W[i - 7], g0_256(W[i - 15]), W[i - 16]);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n var f = this.h[5];\n var g = this.h[6];\n var h = this.h[7];\n\n assert(this.k.length === W.length);\n for (i = 0; i < W.length; i++) {\n var T1 = sum32_5(h, s1_256(e), ch32(e, f, g), this.k[i], W[i]);\n var T2 = sum32(s0_256(a), maj32(a, b, c));\n h = g;\n g = f;\n f = e;\n e = sum32(d, T1);\n d = c;\n c = b;\n b = a;\n a = sum32(T1, T2);\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n this.h[5] = sum32(this.h[5], f);\n this.h[6] = sum32(this.h[6], g);\n this.h[7] = sum32(this.h[7], h);\n};\n\nSHA256.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nvar SHA512 = require('./512');\n\nfunction SHA384() {\n if (!(this instanceof SHA384))\n return new SHA384();\n\n SHA512.call(this);\n this.h = [\n 0xcbbb9d5d, 0xc1059ed8,\n 0x629a292a, 0x367cd507,\n 0x9159015a, 0x3070dd17,\n 0x152fecd8, 0xf70e5939,\n 0x67332667, 0xffc00b31,\n 0x8eb44a87, 0x68581511,\n 0xdb0c2e0d, 0x64f98fa7,\n 0x47b5481d, 0xbefa4fa4 ];\n}\nutils.inherits(SHA384, SHA512);\nmodule.exports = SHA384;\n\nSHA384.blockSize = 1024;\nSHA384.outSize = 384;\nSHA384.hmacStrength = 192;\nSHA384.padLength = 128;\n\nSHA384.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h.slice(0, 12), 'big');\n else\n return utils.split32(this.h.slice(0, 12), 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar assert = require('minimalistic-assert');\n\nvar rotr64_hi = utils.rotr64_hi;\nvar rotr64_lo = utils.rotr64_lo;\nvar shr64_hi = utils.shr64_hi;\nvar shr64_lo = utils.shr64_lo;\nvar sum64 = utils.sum64;\nvar sum64_hi = utils.sum64_hi;\nvar sum64_lo = utils.sum64_lo;\nvar sum64_4_hi = utils.sum64_4_hi;\nvar sum64_4_lo = utils.sum64_4_lo;\nvar sum64_5_hi = utils.sum64_5_hi;\nvar sum64_5_lo = utils.sum64_5_lo;\n\nvar BlockHash = common.BlockHash;\n\nvar sha512_K = [\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n];\n\nfunction SHA512() {\n if (!(this instanceof SHA512))\n return new SHA512();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xf3bcc908,\n 0xbb67ae85, 0x84caa73b,\n 0x3c6ef372, 0xfe94f82b,\n 0xa54ff53a, 0x5f1d36f1,\n 0x510e527f, 0xade682d1,\n 0x9b05688c, 0x2b3e6c1f,\n 0x1f83d9ab, 0xfb41bd6b,\n 0x5be0cd19, 0x137e2179 ];\n this.k = sha512_K;\n this.W = new Array(160);\n}\nutils.inherits(SHA512, BlockHash);\nmodule.exports = SHA512;\n\nSHA512.blockSize = 1024;\nSHA512.outSize = 512;\nSHA512.hmacStrength = 192;\nSHA512.padLength = 128;\n\nSHA512.prototype._prepareBlock = function _prepareBlock(msg, start) {\n var W = this.W;\n\n // 32 x 32bit words\n for (var i = 0; i < 32; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i += 2) {\n var c0_hi = g1_512_hi(W[i - 4], W[i - 3]); // i - 2\n var c0_lo = g1_512_lo(W[i - 4], W[i - 3]);\n var c1_hi = W[i - 14]; // i - 7\n var c1_lo = W[i - 13];\n var c2_hi = g0_512_hi(W[i - 30], W[i - 29]); // i - 15\n var c2_lo = g0_512_lo(W[i - 30], W[i - 29]);\n var c3_hi = W[i - 32]; // i - 16\n var c3_lo = W[i - 31];\n\n W[i] = sum64_4_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n W[i + 1] = sum64_4_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n }\n};\n\nSHA512.prototype._update = function _update(msg, start) {\n this._prepareBlock(msg, start);\n\n var W = this.W;\n\n var ah = this.h[0];\n var al = this.h[1];\n var bh = this.h[2];\n var bl = this.h[3];\n var ch = this.h[4];\n var cl = this.h[5];\n var dh = this.h[6];\n var dl = this.h[7];\n var eh = this.h[8];\n var el = this.h[9];\n var fh = this.h[10];\n var fl = this.h[11];\n var gh = this.h[12];\n var gl = this.h[13];\n var hh = this.h[14];\n var hl = this.h[15];\n\n assert(this.k.length === W.length);\n for (var i = 0; i < W.length; i += 2) {\n var c0_hi = hh;\n var c0_lo = hl;\n var c1_hi = s1_512_hi(eh, el);\n var c1_lo = s1_512_lo(eh, el);\n var c2_hi = ch64_hi(eh, el, fh, fl, gh, gl);\n var c2_lo = ch64_lo(eh, el, fh, fl, gh, gl);\n var c3_hi = this.k[i];\n var c3_lo = this.k[i + 1];\n var c4_hi = W[i];\n var c4_lo = W[i + 1];\n\n var T1_hi = sum64_5_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n var T1_lo = sum64_5_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n\n c0_hi = s0_512_hi(ah, al);\n c0_lo = s0_512_lo(ah, al);\n c1_hi = maj64_hi(ah, al, bh, bl, ch, cl);\n c1_lo = maj64_lo(ah, al, bh, bl, ch, cl);\n\n var T2_hi = sum64_hi(c0_hi, c0_lo, c1_hi, c1_lo);\n var T2_lo = sum64_lo(c0_hi, c0_lo, c1_hi, c1_lo);\n\n hh = gh;\n hl = gl;\n\n gh = fh;\n gl = fl;\n\n fh = eh;\n fl = el;\n\n eh = sum64_hi(dh, dl, T1_hi, T1_lo);\n el = sum64_lo(dl, dl, T1_hi, T1_lo);\n\n dh = ch;\n dl = cl;\n\n ch = bh;\n cl = bl;\n\n bh = ah;\n bl = al;\n\n ah = sum64_hi(T1_hi, T1_lo, T2_hi, T2_lo);\n al = sum64_lo(T1_hi, T1_lo, T2_hi, T2_lo);\n }\n\n sum64(this.h, 0, ah, al);\n sum64(this.h, 2, bh, bl);\n sum64(this.h, 4, ch, cl);\n sum64(this.h, 6, dh, dl);\n sum64(this.h, 8, eh, el);\n sum64(this.h, 10, fh, fl);\n sum64(this.h, 12, gh, gl);\n sum64(this.h, 14, hh, hl);\n};\n\nSHA512.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n\nfunction ch64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ ((~xh) & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction ch64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ ((~xl) & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ (xh & zh) ^ (yh & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ (xl & zl) ^ (yl & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 28);\n var c1_hi = rotr64_hi(xl, xh, 2); // 34\n var c2_hi = rotr64_hi(xl, xh, 7); // 39\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 28);\n var c1_lo = rotr64_lo(xl, xh, 2); // 34\n var c2_lo = rotr64_lo(xl, xh, 7); // 39\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 14);\n var c1_hi = rotr64_hi(xh, xl, 18);\n var c2_hi = rotr64_hi(xl, xh, 9); // 41\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 14);\n var c1_lo = rotr64_lo(xh, xl, 18);\n var c2_lo = rotr64_lo(xl, xh, 9); // 41\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 1);\n var c1_hi = rotr64_hi(xh, xl, 8);\n var c2_hi = shr64_hi(xh, xl, 7);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 1);\n var c1_lo = rotr64_lo(xh, xl, 8);\n var c2_lo = shr64_lo(xh, xl, 7);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 19);\n var c1_hi = rotr64_hi(xl, xh, 29); // 61\n var c2_hi = shr64_hi(xh, xl, 6);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 19);\n var c1_lo = rotr64_lo(xl, xh, 29); // 61\n var c2_lo = shr64_lo(xh, xl, 6);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n","'use strict';\n\nvar utils = require('../utils');\nvar rotr32 = utils.rotr32;\n\nfunction ft_1(s, x, y, z) {\n if (s === 0)\n return ch32(x, y, z);\n if (s === 1 || s === 3)\n return p32(x, y, z);\n if (s === 2)\n return maj32(x, y, z);\n}\nexports.ft_1 = ft_1;\n\nfunction ch32(x, y, z) {\n return (x & y) ^ ((~x) & z);\n}\nexports.ch32 = ch32;\n\nfunction maj32(x, y, z) {\n return (x & y) ^ (x & z) ^ (y & z);\n}\nexports.maj32 = maj32;\n\nfunction p32(x, y, z) {\n return x ^ y ^ z;\n}\nexports.p32 = p32;\n\nfunction s0_256(x) {\n return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);\n}\nexports.s0_256 = s0_256;\n\nfunction s1_256(x) {\n return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);\n}\nexports.s1_256 = s1_256;\n\nfunction g0_256(x) {\n return rotr32(x, 7) ^ rotr32(x, 18) ^ (x >>> 3);\n}\nexports.g0_256 = g0_256;\n\nfunction g1_256(x) {\n return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10);\n}\nexports.g1_256 = g1_256;\n","'use strict';\n\nvar assert = require('minimalistic-assert');\nvar inherits = require('inherits');\n\nexports.inherits = inherits;\n\nfunction isSurrogatePair(msg, i) {\n if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {\n return false;\n }\n if (i < 0 || i + 1 >= msg.length) {\n return false;\n }\n return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;\n}\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg === 'string') {\n if (!enc) {\n // Inspired by stringToUtf8ByteArray() in closure-library by Google\n // https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143\n // Apache License 2.0\n // https://github.com/google/closure-library/blob/master/LICENSE\n var p = 0;\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n if (c < 128) {\n res[p++] = c;\n } else if (c < 2048) {\n res[p++] = (c >> 6) | 192;\n res[p++] = (c & 63) | 128;\n } else if (isSurrogatePair(msg, i)) {\n c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);\n res[p++] = (c >> 18) | 240;\n res[p++] = ((c >> 12) & 63) | 128;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n } else {\n res[p++] = (c >> 12) | 224;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n }\n }\n } else if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n }\n } else {\n for (i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n }\n return res;\n}\nexports.toArray = toArray;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nexports.toHex = toHex;\n\nfunction htonl(w) {\n var res = (w >>> 24) |\n ((w >>> 8) & 0xff00) |\n ((w << 8) & 0xff0000) |\n ((w & 0xff) << 24);\n return res >>> 0;\n}\nexports.htonl = htonl;\n\nfunction toHex32(msg, endian) {\n var res = '';\n for (var i = 0; i < msg.length; i++) {\n var w = msg[i];\n if (endian === 'little')\n w = htonl(w);\n res += zero8(w.toString(16));\n }\n return res;\n}\nexports.toHex32 = toHex32;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nexports.zero2 = zero2;\n\nfunction zero8(word) {\n if (word.length === 7)\n return '0' + word;\n else if (word.length === 6)\n return '00' + word;\n else if (word.length === 5)\n return '000' + word;\n else if (word.length === 4)\n return '0000' + word;\n else if (word.length === 3)\n return '00000' + word;\n else if (word.length === 2)\n return '000000' + word;\n else if (word.length === 1)\n return '0000000' + word;\n else\n return word;\n}\nexports.zero8 = zero8;\n\nfunction join32(msg, start, end, endian) {\n var len = end - start;\n assert(len % 4 === 0);\n var res = new Array(len / 4);\n for (var i = 0, k = start; i < res.length; i++, k += 4) {\n var w;\n if (endian === 'big')\n w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];\n else\n w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];\n res[i] = w >>> 0;\n }\n return res;\n}\nexports.join32 = join32;\n\nfunction split32(msg, endian) {\n var res = new Array(msg.length * 4);\n for (var i = 0, k = 0; i < msg.length; i++, k += 4) {\n var m = msg[i];\n if (endian === 'big') {\n res[k] = m >>> 24;\n res[k + 1] = (m >>> 16) & 0xff;\n res[k + 2] = (m >>> 8) & 0xff;\n res[k + 3] = m & 0xff;\n } else {\n res[k + 3] = m >>> 24;\n res[k + 2] = (m >>> 16) & 0xff;\n res[k + 1] = (m >>> 8) & 0xff;\n res[k] = m & 0xff;\n }\n }\n return res;\n}\nexports.split32 = split32;\n\nfunction rotr32(w, b) {\n return (w >>> b) | (w << (32 - b));\n}\nexports.rotr32 = rotr32;\n\nfunction rotl32(w, b) {\n return (w << b) | (w >>> (32 - b));\n}\nexports.rotl32 = rotl32;\n\nfunction sum32(a, b) {\n return (a + b) >>> 0;\n}\nexports.sum32 = sum32;\n\nfunction sum32_3(a, b, c) {\n return (a + b + c) >>> 0;\n}\nexports.sum32_3 = sum32_3;\n\nfunction sum32_4(a, b, c, d) {\n return (a + b + c + d) >>> 0;\n}\nexports.sum32_4 = sum32_4;\n\nfunction sum32_5(a, b, c, d, e) {\n return (a + b + c + d + e) >>> 0;\n}\nexports.sum32_5 = sum32_5;\n\nfunction sum64(buf, pos, ah, al) {\n var bh = buf[pos];\n var bl = buf[pos + 1];\n\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n buf[pos] = hi >>> 0;\n buf[pos + 1] = lo;\n}\nexports.sum64 = sum64;\n\nfunction sum64_hi(ah, al, bh, bl) {\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n return hi >>> 0;\n}\nexports.sum64_hi = sum64_hi;\n\nfunction sum64_lo(ah, al, bh, bl) {\n var lo = al + bl;\n return lo >>> 0;\n}\nexports.sum64_lo = sum64_lo;\n\nfunction sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n\n var hi = ah + bh + ch + dh + carry;\n return hi >>> 0;\n}\nexports.sum64_4_hi = sum64_4_hi;\n\nfunction sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {\n var lo = al + bl + cl + dl;\n return lo >>> 0;\n}\nexports.sum64_4_lo = sum64_4_lo;\n\nfunction sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n lo = (lo + el) >>> 0;\n carry += lo < el ? 1 : 0;\n\n var hi = ah + bh + ch + dh + eh + carry;\n return hi >>> 0;\n}\nexports.sum64_5_hi = sum64_5_hi;\n\nfunction sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var lo = al + bl + cl + dl + el;\n\n return lo >>> 0;\n}\nexports.sum64_5_lo = sum64_5_lo;\n\nfunction rotr64_hi(ah, al, num) {\n var r = (al << (32 - num)) | (ah >>> num);\n return r >>> 0;\n}\nexports.rotr64_hi = rotr64_hi;\n\nfunction rotr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.rotr64_lo = rotr64_lo;\n\nfunction shr64_hi(ah, al, num) {\n return ah >>> num;\n}\nexports.shr64_hi = shr64_hi;\n\nfunction shr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.shr64_lo = shr64_lo;\n","'use strict';\n\nvar hash = require('hash.js');\nvar utils = require('minimalistic-crypto-utils');\nvar assert = require('minimalistic-assert');\n\nfunction HmacDRBG(options) {\n if (!(this instanceof HmacDRBG))\n return new HmacDRBG(options);\n this.hash = options.hash;\n this.predResist = !!options.predResist;\n\n this.outLen = this.hash.outSize;\n this.minEntropy = options.minEntropy || this.hash.hmacStrength;\n\n this._reseed = null;\n this.reseedInterval = null;\n this.K = null;\n this.V = null;\n\n var entropy = utils.toArray(options.entropy, options.entropyEnc || 'hex');\n var nonce = utils.toArray(options.nonce, options.nonceEnc || 'hex');\n var pers = utils.toArray(options.pers, options.persEnc || 'hex');\n assert(entropy.length >= (this.minEntropy / 8),\n 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n this._init(entropy, nonce, pers);\n}\nmodule.exports = HmacDRBG;\n\nHmacDRBG.prototype._init = function init(entropy, nonce, pers) {\n var seed = entropy.concat(nonce).concat(pers);\n\n this.K = new Array(this.outLen / 8);\n this.V = new Array(this.outLen / 8);\n for (var i = 0; i < this.V.length; i++) {\n this.K[i] = 0x00;\n this.V[i] = 0x01;\n }\n\n this._update(seed);\n this._reseed = 1;\n this.reseedInterval = 0x1000000000000; // 2^48\n};\n\nHmacDRBG.prototype._hmac = function hmac() {\n return new hash.hmac(this.hash, this.K);\n};\n\nHmacDRBG.prototype._update = function update(seed) {\n var kmac = this._hmac()\n .update(this.V)\n .update([ 0x00 ]);\n if (seed)\n kmac = kmac.update(seed);\n this.K = kmac.digest();\n this.V = this._hmac().update(this.V).digest();\n if (!seed)\n return;\n\n this.K = this._hmac()\n .update(this.V)\n .update([ 0x01 ])\n .update(seed)\n .digest();\n this.V = this._hmac().update(this.V).digest();\n};\n\nHmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {\n // Optional entropy enc\n if (typeof entropyEnc !== 'string') {\n addEnc = add;\n add = entropyEnc;\n entropyEnc = null;\n }\n\n entropy = utils.toArray(entropy, entropyEnc);\n add = utils.toArray(add, addEnc);\n\n assert(entropy.length >= (this.minEntropy / 8),\n 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n\n this._update(entropy.concat(add || []));\n this._reseed = 1;\n};\n\nHmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {\n if (this._reseed > this.reseedInterval)\n throw new Error('Reseed is required');\n\n // Optional encoding\n if (typeof enc !== 'string') {\n addEnc = add;\n add = enc;\n enc = null;\n }\n\n // Optional additional data\n if (add) {\n add = utils.toArray(add, addEnc || 'hex');\n this._update(add);\n }\n\n var temp = [];\n while (temp.length < len) {\n this.V = this._hmac().update(this.V).digest();\n temp = temp.concat(this.V);\n }\n\n var res = temp.slice(0, len);\n this._update(add);\n this._reseed++;\n return utils.encode(res, enc);\n};\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n","'use strict';\n\nvar json = typeof JSON !== 'undefined' ? JSON : require('jsonify');\n\nvar isArray = Array.isArray || function (x) {\n\treturn {}.toString.call(x) === '[object Array]';\n};\n\nvar objectKeys = Object.keys || function (obj) {\n\tvar has = Object.prototype.hasOwnProperty || function () { return true; };\n\tvar keys = [];\n\tfor (var key in obj) {\n\t\tif (has.call(obj, key)) { keys.push(key); }\n\t}\n\treturn keys;\n};\n\nmodule.exports = function (obj, opts) {\n\tif (!opts) { opts = {}; }\n\tif (typeof opts === 'function') { opts = { cmp: opts }; }\n\tvar space = opts.space || '';\n\tif (typeof space === 'number') { space = Array(space + 1).join(' '); }\n\tvar cycles = typeof opts.cycles === 'boolean' ? opts.cycles : false;\n\tvar replacer = opts.replacer || function (key, value) { return value; };\n\n\tvar cmp = opts.cmp && (function (f) {\n\t\treturn function (node) {\n\t\t\treturn function (a, b) {\n\t\t\t\tvar aobj = { key: a, value: node[a] };\n\t\t\t\tvar bobj = { key: b, value: node[b] };\n\t\t\t\treturn f(aobj, bobj);\n\t\t\t};\n\t\t};\n\t}(opts.cmp));\n\n\tvar seen = [];\n\treturn (function stringify(parent, key, node, level) {\n\t\tvar indent = space ? '\\n' + new Array(level + 1).join(space) : '';\n\t\tvar colonSeparator = space ? ': ' : ':';\n\n\t\tif (node && node.toJSON && typeof node.toJSON === 'function') {\n\t\t\tnode = node.toJSON();\n\t\t}\n\n\t\tnode = replacer.call(parent, key, node);\n\n\t\tif (node === undefined) {\n\t\t\treturn;\n\t\t}\n\t\tif (typeof node !== 'object' || node === null) {\n\t\t\treturn json.stringify(node);\n\t\t}\n\t\tif (isArray(node)) {\n\t\t\tvar out = [];\n\t\t\tfor (var i = 0; i < node.length; i++) {\n\t\t\t\tvar item = stringify(node, i, node[i], level + 1) || json.stringify(null);\n\t\t\t\tout.push(indent + space + item);\n\t\t\t}\n\t\t\treturn '[' + out.join(',') + indent + ']';\n\t\t}\n\n\t\tif (seen.indexOf(node) !== -1) {\n\t\t\tif (cycles) { return json.stringify('__cycle__'); }\n\t\t\tthrow new TypeError('Converting circular structure to JSON');\n\t\t} else { seen.push(node); }\n\n\t\tvar keys = objectKeys(node).sort(cmp && cmp(node));\n\t\tvar out = [];\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tvar key = keys[i];\n\t\t\tvar value = stringify(node, key, node[key], level + 1);\n\n\t\t\tif (!value) { continue; }\n\n\t\t\tvar keyValue = json.stringify(key)\n\t\t\t\t\t+ colonSeparator\n\t\t\t\t\t+ value;\n\n\t\t\tout.push(indent + space + keyValue);\n\t\t}\n\t\tseen.splice(seen.indexOf(node), 1);\n\t\treturn '{' + out.join(',') + indent + '}';\n\n\t}({ '': obj }, '', obj, 0));\n};\n","'use strict';\n\nexports.parse = require('./lib/parse');\nexports.stringify = require('./lib/stringify');\n","'use strict';\n\nvar at; // The index of the current character\nvar ch; // The current character\nvar escapee = {\n\t'\"': '\"',\n\t'\\\\': '\\\\',\n\t'/': '/',\n\tb: '\\b',\n\tf: '\\f',\n\tn: '\\n',\n\tr: '\\r',\n\tt: '\\t'\n};\nvar text;\n\n// Call error when something is wrong.\nfunction error(m) {\n\tthrow {\n\t\tname: 'SyntaxError',\n\t\tmessage: m,\n\t\tat: at,\n\t\ttext: text\n\t};\n}\n\nfunction next(c) {\n\t// If a c parameter is provided, verify that it matches the current character.\n\tif (c && c !== ch) {\n\t\terror(\"Expected '\" + c + \"' instead of '\" + ch + \"'\");\n\t}\n\n\t// Get the next character. When there are no more characters, return the empty string.\n\n\tch = text.charAt(at);\n\tat += 1;\n\treturn ch;\n}\n\nfunction number() {\n\t// Parse a number value.\n\tvar num;\n\tvar str = '';\n\n\tif (ch === '-') {\n\t\tstr = '-';\n\t\tnext('-');\n\t}\n\twhile (ch >= '0' && ch <= '9') {\n\t\tstr += ch;\n\t\tnext();\n\t}\n\tif (ch === '.') {\n\t\tstr += '.';\n\t\twhile (next() && ch >= '0' && ch <= '9') {\n\t\t\tstr += ch;\n\t\t}\n\t}\n\tif (ch === 'e' || ch === 'E') {\n\t\tstr += ch;\n\t\tnext();\n\t\tif (ch === '-' || ch === '+') {\n\t\t\tstr += ch;\n\t\t\tnext();\n\t\t}\n\t\twhile (ch >= '0' && ch <= '9') {\n\t\t\tstr += ch;\n\t\t\tnext();\n\t\t}\n\t}\n\tnum = Number(str);\n\tif (!isFinite(num)) {\n\t\terror('Bad number');\n\t}\n\treturn num;\n}\n\nfunction string() {\n\t// Parse a string value.\n\tvar hex;\n\tvar i;\n\tvar str = '';\n\tvar uffff;\n\n\t// When parsing for string values, we must look for \" and \\ characters.\n\tif (ch === '\"') {\n\t\twhile (next()) {\n\t\t\tif (ch === '\"') {\n\t\t\t\tnext();\n\t\t\t\treturn str;\n\t\t\t} else if (ch === '\\\\') {\n\t\t\t\tnext();\n\t\t\t\tif (ch === 'u') {\n\t\t\t\t\tuffff = 0;\n\t\t\t\t\tfor (i = 0; i < 4; i += 1) {\n\t\t\t\t\t\thex = parseInt(next(), 16);\n\t\t\t\t\t\tif (!isFinite(hex)) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuffff = (uffff * 16) + hex;\n\t\t\t\t\t}\n\t\t\t\t\tstr += String.fromCharCode(uffff);\n\t\t\t\t} else if (typeof escapee[ch] === 'string') {\n\t\t\t\t\tstr += escapee[ch];\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstr += ch;\n\t\t\t}\n\t\t}\n\t}\n\terror('Bad string');\n}\n\n// Skip whitespace.\nfunction white() {\n\twhile (ch && ch <= ' ') {\n\t\tnext();\n\t}\n}\n\n// true, false, or null.\nfunction word() {\n\tswitch (ch) {\n\t\tcase 't':\n\t\t\tnext('t');\n\t\t\tnext('r');\n\t\t\tnext('u');\n\t\t\tnext('e');\n\t\t\treturn true;\n\t\tcase 'f':\n\t\t\tnext('f');\n\t\t\tnext('a');\n\t\t\tnext('l');\n\t\t\tnext('s');\n\t\t\tnext('e');\n\t\t\treturn false;\n\t\tcase 'n':\n\t\t\tnext('n');\n\t\t\tnext('u');\n\t\t\tnext('l');\n\t\t\tnext('l');\n\t\t\treturn null;\n\t\tdefault:\n\t\t\terror(\"Unexpected '\" + ch + \"'\");\n\t}\n}\n\n// Parse an array value.\nfunction array() {\n\tvar arr = [];\n\n\tif (ch === '[') {\n\t\tnext('[');\n\t\twhite();\n\t\tif (ch === ']') {\n\t\t\tnext(']');\n\t\t\treturn arr; // empty array\n\t\t}\n\t\twhile (ch) {\n\t\t\tarr.push(value()); // eslint-disable-line no-use-before-define\n\t\t\twhite();\n\t\t\tif (ch === ']') {\n\t\t\t\tnext(']');\n\t\t\t\treturn arr;\n\t\t\t}\n\t\t\tnext(',');\n\t\t\twhite();\n\t\t}\n\t}\n\terror('Bad array');\n}\n\n// Parse an object value.\nfunction object() {\n\tvar key;\n\tvar obj = {};\n\n\tif (ch === '{') {\n\t\tnext('{');\n\t\twhite();\n\t\tif (ch === '}') {\n\t\t\tnext('}');\n\t\t\treturn obj; // empty object\n\t\t}\n\t\twhile (ch) {\n\t\t\tkey = string();\n\t\t\twhite();\n\t\t\tnext(':');\n\t\t\tif (Object.prototype.hasOwnProperty.call(obj, key)) {\n\t\t\t\terror('Duplicate key \"' + key + '\"');\n\t\t\t}\n\t\t\tobj[key] = value(); // eslint-disable-line no-use-before-define\n\t\t\twhite();\n\t\t\tif (ch === '}') {\n\t\t\t\tnext('}');\n\t\t\t\treturn obj;\n\t\t\t}\n\t\t\tnext(',');\n\t\t\twhite();\n\t\t}\n\t}\n\terror('Bad object');\n}\n\n// Parse a JSON value. It could be an object, an array, a string, a number, or a word.\nfunction value() {\n\twhite();\n\tswitch (ch) {\n\t\tcase '{':\n\t\t\treturn object();\n\t\tcase '[':\n\t\t\treturn array();\n\t\tcase '\"':\n\t\t\treturn string();\n\t\tcase '-':\n\t\t\treturn number();\n\t\tdefault:\n\t\t\treturn ch >= '0' && ch <= '9' ? number() : word();\n\t}\n}\n\n// Return the json_parse function. It will have access to all of the above functions and variables.\nmodule.exports = function (source, reviver) {\n\tvar result;\n\n\ttext = source;\n\tat = 0;\n\tch = ' ';\n\tresult = value();\n\twhite();\n\tif (ch) {\n\t\terror('Syntax error');\n\t}\n\n\t// If there is a reviver function, we recursively walk the new structure,\n\t// passing each name/value pair to the reviver function for possible\n\t// transformation, starting with a temporary root object that holds the result\n\t// in an empty key. If there is not a reviver function, we simply return the\n\t// result.\n\n\treturn typeof reviver === 'function' ? (function walk(holder, key) {\n\t\tvar k;\n\t\tvar v;\n\t\tvar val = holder[key];\n\t\tif (val && typeof val === 'object') {\n\t\t\tfor (k in value) {\n\t\t\t\tif (Object.prototype.hasOwnProperty.call(val, k)) {\n\t\t\t\t\tv = walk(val, k);\n\t\t\t\t\tif (typeof v === 'undefined') {\n\t\t\t\t\t\tdelete val[k];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tval[k] = v;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn reviver.call(holder, key, val);\n\t}({ '': result }, '')) : result;\n};\n","'use strict';\n\nvar escapable = /[\\\\\"\\x00-\\x1f\\x7f-\\x9f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g;\nvar gap;\nvar indent;\nvar meta = { // table of character substitutions\n\t'\\b': '\\\\b',\n\t'\\t': '\\\\t',\n\t'\\n': '\\\\n',\n\t'\\f': '\\\\f',\n\t'\\r': '\\\\r',\n\t'\"': '\\\\\"',\n\t'\\\\': '\\\\\\\\'\n};\nvar rep;\n\nfunction quote(string) {\n\t// If the string contains no control characters, no quote characters, and no\n\t// backslash characters, then we can safely slap some quotes around it.\n\t// Otherwise we must also replace the offending characters with safe escape sequences.\n\n\tescapable.lastIndex = 0;\n\treturn escapable.test(string) ? '\"' + string.replace(escapable, function (a) {\n\t\tvar c = meta[a];\n\t\treturn typeof c === 'string' ? c\n\t\t\t: '\\\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);\n\t}) + '\"' : '\"' + string + '\"';\n}\n\nfunction str(key, holder) {\n\t// Produce a string from holder[key].\n\tvar i; // The loop counter.\n\tvar k; // The member key.\n\tvar v; // The member value.\n\tvar length;\n\tvar mind = gap;\n\tvar partial;\n\tvar value = holder[key];\n\n\t// If the value has a toJSON method, call it to obtain a replacement value.\n\tif (value && typeof value === 'object' && typeof value.toJSON === 'function') {\n\t\tvalue = value.toJSON(key);\n\t}\n\n\t// If we were called with a replacer function, then call the replacer to obtain a replacement value.\n\tif (typeof rep === 'function') {\n\t\tvalue = rep.call(holder, key, value);\n\t}\n\n\t// What happens next depends on the value's type.\n\tswitch (typeof value) {\n\t\tcase 'string':\n\t\t\treturn quote(value);\n\n\t\tcase 'number':\n\t\t\t// JSON numbers must be finite. Encode non-finite numbers as null.\n\t\t\treturn isFinite(value) ? String(value) : 'null';\n\n\t\tcase 'boolean':\n\t\tcase 'null':\n\t\t\t// If the value is a boolean or null, convert it to a string. Note:\n\t\t\t// typeof null does not produce 'null'. The case is included here in\n\t\t\t// the remote chance that this gets fixed someday.\n\t\t\treturn String(value);\n\n\t\tcase 'object':\n\t\t\tif (!value) {\n\t\t\t\treturn 'null';\n\t\t\t}\n\t\t\tgap += indent;\n\t\t\tpartial = [];\n\n\t\t\t// Array.isArray\n\t\t\tif (Object.prototype.toString.apply(value) === '[object Array]') {\n\t\t\t\tlength = value.length;\n\t\t\t\tfor (i = 0; i < length; i += 1) {\n\t\t\t\t\tpartial[i] = str(i, value) || 'null';\n\t\t\t\t}\n\n\t\t\t\t// Join all of the elements together, separated with commas, and wrap them in brackets.\n\t\t\t\tv = partial.length === 0 ? '[]' : gap\n\t\t\t\t\t? '[\\n' + gap + partial.join(',\\n' + gap) + '\\n' + mind + ']'\n\t\t\t\t\t: '[' + partial.join(',') + ']';\n\t\t\t\tgap = mind;\n\t\t\t\treturn v;\n\t\t\t}\n\n\t\t\t// If the replacer is an array, use it to select the members to be stringified.\n\t\t\tif (rep && typeof rep === 'object') {\n\t\t\t\tlength = rep.length;\n\t\t\t\tfor (i = 0; i < length; i += 1) {\n\t\t\t\t\tk = rep[i];\n\t\t\t\t\tif (typeof k === 'string') {\n\t\t\t\t\t\tv = str(k, value);\n\t\t\t\t\t\tif (v) {\n\t\t\t\t\t\t\tpartial.push(quote(k) + (gap ? ': ' : ':') + v);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Otherwise, iterate through all of the keys in the object.\n\t\t\t\tfor (k in value) {\n\t\t\t\t\tif (Object.prototype.hasOwnProperty.call(value, k)) {\n\t\t\t\t\t\tv = str(k, value);\n\t\t\t\t\t\tif (v) {\n\t\t\t\t\t\t\tpartial.push(quote(k) + (gap ? ': ' : ':') + v);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Join all of the member texts together, separated with commas, and wrap them in braces.\n\n\t\t\tv = partial.length === 0 ? '{}' : gap\n\t\t\t\t? '{\\n' + gap + partial.join(',\\n' + gap) + '\\n' + mind + '}'\n\t\t\t\t: '{' + partial.join(',') + '}';\n\t\t\tgap = mind;\n\t\t\treturn v;\n\t\tdefault:\n\t}\n}\n\nmodule.exports = function (value, replacer, space) {\n\tvar i;\n\tgap = '';\n\tindent = '';\n\n\t// If the space parameter is a number, make an indent string containing that many spaces.\n\tif (typeof space === 'number') {\n\t\tfor (i = 0; i < space; i += 1) {\n\t\t\tindent += ' ';\n\t\t}\n\t} else if (typeof space === 'string') {\n\t\t// If the space parameter is a string, it will be used as the indent string.\n\t\tindent = space;\n\t}\n\n\t// If there is a replacer, it must be a function or an array. Otherwise, throw an error.\n\trep = replacer;\n\tif (\n\t\treplacer\n\t\t&& typeof replacer !== 'function'\n\t\t&& (typeof replacer !== 'object' || typeof replacer.length !== 'number')\n\t) {\n\t\tthrow new Error('JSON.stringify');\n\t}\n\n\t// Make a fake root object containing our value under the key of ''.\n\t// Return the result of stringifying the value.\n\treturn str('', { '': value });\n};\n","\nmodule.exports = function load (src, opts, cb) {\n var head = document.head || document.getElementsByTagName('head')[0]\n var script = document.createElement('script')\n\n if (typeof opts === 'function') {\n cb = opts\n opts = {}\n }\n\n opts = opts || {}\n cb = cb || function() {}\n\n script.type = opts.type || 'text/javascript'\n script.charset = opts.charset || 'utf8';\n script.async = 'async' in opts ? !!opts.async : true\n script.src = src\n\n if (opts.attrs) {\n setAttributes(script, opts.attrs)\n }\n\n if (opts.text) {\n script.text = '' + opts.text\n }\n\n var onend = 'onload' in script ? stdOnEnd : ieOnEnd\n onend(script, cb)\n\n // some good legacy browsers (firefox) fail the 'in' detection above\n // so as a fallback we always set onload\n // old IE will ignore this and new IE will set onload\n if (!script.onload) {\n stdOnEnd(script, cb);\n }\n\n head.appendChild(script)\n}\n\nfunction setAttributes(script, attrs) {\n for (var attr in attrs) {\n script.setAttribute(attr, attrs[attr]);\n }\n}\n\nfunction stdOnEnd (script, cb) {\n script.onload = function () {\n this.onerror = this.onload = null\n cb(null, script)\n }\n script.onerror = function () {\n // this.onload = null here is necessary\n // because even IE9 works not like others\n this.onerror = this.onload = null\n cb(new Error('Failed to load ' + this.src), script)\n }\n}\n\nfunction ieOnEnd (script, cb) {\n script.onreadystatechange = function () {\n if (this.readyState != 'complete' && this.readyState != 'loaded') return\n this.onreadystatechange = null\n cb(null, script) // there is no way to catch loading errors in IE8\n }\n}\n","/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\n/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeKeys = overArg(Object.keys, Object);\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView'),\n Map = getNative(root, 'Map'),\n Promise = getNative(root, 'Promise'),\n Set = getNative(root, 'Set'),\n WeakMap = getNative(root, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = isEqual;\n","/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeMax = Math.max,\n nativeNow = Date.now;\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map'),\n nativeCreate = getNative(Object, 'create');\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\n/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\n/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\n/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = merge;\n","/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeMax = Math.max,\n nativeNow = Date.now;\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map'),\n nativeCreate = getNative(Object, 'create');\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\n/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\n/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\n/**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\nvar mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n});\n\n/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = mergeWith;\n","/**\n * @license\n * Lodash \n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

' + func(text) + '

';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

fred, barney, & pebbles

'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '