diff --git a/angular-bare-bones-demo/index.html b/angular-bare-bones-demo/index.html index f136c4eb6..7f5a5776c 100644 --- a/angular-bare-bones-demo/index.html +++ b/angular-bare-bones-demo/index.html @@ -1,4 +1,4 @@ - + AngularBareBonesDemo diff --git a/art-gallery-medium-article-website/index.html b/art-gallery-medium-article-website/index.html index 7751f58a8..2d3ecf2c2 100644 --- a/art-gallery-medium-article-website/index.html +++ b/art-gallery-medium-article-website/index.html @@ -1 +1 @@ -Art Gallery Dapp
\ No newline at end of file +Art Gallery Dapp
\ No newline at end of file diff --git a/ecommerce-store-website/404.html b/ecommerce-store-website/404.html index 8ef87153c..768dcb8e7 100644 --- a/ecommerce-store-website/404.html +++ b/ecommerce-store-website/404.html @@ -1,4 +1,4 @@ -404: This page could not be found
This page collect data for analytics purposes.
This page collect data for analytics purposes.

404

This page could not be found.

We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file + }

404

This page could not be found.

We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file diff --git a/ecommerce-store-website/404/index.html b/ecommerce-store-website/404/index.html index ec0c9f3aa..806af473a 100644 --- a/ecommerce-store-website/404/index.html +++ b/ecommerce-store-website/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found
This page collect data for analytics purposes.
This page collect data for analytics purposes.

404

This page could not be found.

We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file + }

404

This page could not be found.

We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file diff --git a/ecommerce-store-website/_next/static/yFApNhQNFpF9-uLo7yzR0/_buildManifest.js b/ecommerce-store-website/_next/static/jwl4SEWhSb3l9GHst3Lwk/_buildManifest.js similarity index 100% rename from ecommerce-store-website/_next/static/yFApNhQNFpF9-uLo7yzR0/_buildManifest.js rename to ecommerce-store-website/_next/static/jwl4SEWhSb3l9GHst3Lwk/_buildManifest.js diff --git a/ecommerce-store-website/_next/static/yFApNhQNFpF9-uLo7yzR0/_ssgManifest.js b/ecommerce-store-website/_next/static/jwl4SEWhSb3l9GHst3Lwk/_ssgManifest.js similarity index 100% rename from ecommerce-store-website/_next/static/yFApNhQNFpF9-uLo7yzR0/_ssgManifest.js rename to ecommerce-store-website/_next/static/jwl4SEWhSb3l9GHst3Lwk/_ssgManifest.js diff --git a/ecommerce-store-website/demo/automotive/index.html b/ecommerce-store-website/demo/automotive/index.html index 6f6b87e88..9c85b2a8c 100644 --- a/ecommerce-store-website/demo/automotive/index.html +++ b/ecommerce-store-website/demo/automotive/index.html @@ -1,4 +1,4 @@ -Automotive | Brand Connector Demo
This page collect data for analytics purposes.

Automotive

Top Gear and Riot

Exclusive track day experience with Top Gear.

Available exclusively to Riot Racer NFT holders.

Select Vehicle

Pickup Location

Input example of selected pickup location

Drop-off Location

Input example of selected drop-off location

Select Dates

Calender example of selected rental dates

Age of primary driver

32

Note, all prices include standard insurance cover & roadside assistance for all driver over 25 years of age.

Lamborghini

Rare Aventador LP780-4 ‘22

$550.00/day

Porche

911 GT3 RS Limited Edition ‘20

$290.00/day

Lamborghini Urus Esteso 19

Limited Edition Urus Esteso ‘19

$450.00/day

Mercedes

AMG GT Night Edition ‘21

$320.00/day

Ferrari

Vulcan ‘21

$310.00/day

Aston Martin

Vulcan ‘21

$550.00/day

Manufacturers

  • Porsh
  • Mercedes
  • Lamborghini
  • Aston Martin
  • Ferrari
  • Range Rover

More demo Shops

Music & Events

Uses: BAYC Token

Try Demo

Fashion

Uses: WoW Token

Try Demo
We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file +
This page collect data for analytics purposes.

Automotive

Top Gear and Riot

Exclusive track day experience with Top Gear.

Available exclusively to Riot Racer NFT holders.

Select Vehicle

Pickup Location

Input example of selected pickup location

Drop-off Location

Input example of selected drop-off location

Select Dates

Calender example of selected rental dates

Age of primary driver

32

Note, all prices include standard insurance cover & roadside assistance for all driver over 25 years of age.

Lamborghini

Rare Aventador LP780-4 ‘22

$550.00/day

Porche

911 GT3 RS Limited Edition ‘20

$290.00/day

Lamborghini Urus Esteso 19

Limited Edition Urus Esteso ‘19

$450.00/day

Mercedes

AMG GT Night Edition ‘21

$320.00/day

Ferrari

Vulcan ‘21

$310.00/day

Aston Martin

Vulcan ‘21

$550.00/day

Manufacturers

  • Porsh
  • Mercedes
  • Lamborghini
  • Aston Martin
  • Ferrari
  • Range Rover

More demo Shops

Music & Events

Uses: BAYC Token

Try Demo

Fashion

Uses: WoW Token

Try Demo
We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file diff --git a/ecommerce-store-website/demo/fashion/index.html b/ecommerce-store-website/demo/fashion/index.html index 6d9e2e699..0127eb4d1 100644 --- a/ecommerce-store-website/demo/fashion/index.html +++ b/ecommerce-store-website/demo/fashion/index.html @@ -1,4 +1,4 @@ -Fashion Store | Brand Connector Demo
This page collect data for analytics purposes.

Fashion Store

Exclusive Jimmy Choo early access for WOW NFT Holders

Available exclusively to World of Women NFT Holders.

2 days left
Jimmy Choo shoes

Popular this week

New Arrival

Statement - Lili Midi Dress

Dress like you do in your wildest dreams in the Lilly Midi Dress.

$119.99

New Arrival

Real Vibes - Wrap Garden Dress

A gorgeous spring event dress, this Red Gardens Dress from Real Vibes is an event essential

$190.00

New Arrival

Ask Judy - Coat

Beat the chill without sacrificing style is this Black wool blend detailed coat.

$139.99

New Arrival

Lux Looks - Teal Dress

This teal modern design; delivers a simplified, well-made look for an audience who craves a relaxed coastal lifestyle.

$239.99

New Arrival

Statement - Two-piece Outfit

This piece black outfit for a casual occasion or pair with heels for a more sophisticated look.

$179.00

New Arrival

Surfer Girl - Straw Hat

Complete your summer style with the Sonny Hand Knotted Straw Hat by Surfer Girl.

$49.99

Brands

  • Jimmy Choo
  • Chanel
  • Bvlgari
  • Dolce & Gabbana
  • Prada
  • Louis Vuitton

More demo Shops

Music & Events

Uses: BAYC Token

Try Demo

Automotive

Uses: Riot Racers Token

Try Demo
We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file +
This page collect data for analytics purposes.

Fashion Store

Exclusive Jimmy Choo early access for WOW NFT Holders

Available exclusively to World of Women NFT Holders.

2 days left
Jimmy Choo shoes

Popular this week

New Arrival

Statement - Lili Midi Dress

Dress like you do in your wildest dreams in the Lilly Midi Dress.

$119.99

New Arrival

Real Vibes - Wrap Garden Dress

A gorgeous spring event dress, this Red Gardens Dress from Real Vibes is an event essential

$190.00

New Arrival

Ask Judy - Coat

Beat the chill without sacrificing style is this Black wool blend detailed coat.

$139.99

New Arrival

Lux Looks - Teal Dress

This teal modern design; delivers a simplified, well-made look for an audience who craves a relaxed coastal lifestyle.

$239.99

New Arrival

Statement - Two-piece Outfit

This piece black outfit for a casual occasion or pair with heels for a more sophisticated look.

$179.00

New Arrival

Surfer Girl - Straw Hat

Complete your summer style with the Sonny Hand Knotted Straw Hat by Surfer Girl.

$49.99

Brands

  • Jimmy Choo
  • Chanel
  • Bvlgari
  • Dolce & Gabbana
  • Prada
  • Louis Vuitton

More demo Shops

Music & Events

Uses: BAYC Token

Try Demo

Automotive

Uses: Riot Racers Token

Try Demo
We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file diff --git a/ecommerce-store-website/demo/music-and-events/index.html b/ecommerce-store-website/demo/music-and-events/index.html index 408900fdc..c25fc7888 100644 --- a/ecommerce-store-website/demo/music-and-events/index.html +++ b/ecommerce-store-website/demo/music-and-events/index.html @@ -1,4 +1,4 @@ -Music and Events Store | Brand Connector Demo
This page collect data for analytics purposes.

Music & Events Store

Exclusive for BAYC Holders, Coachella VIP Upgrades & 20% off Storewide

Available exclusively to BAYC Holders.

Upcoming

JOJI

Nectar the finale 2022

$68.99

Dua Lipa

Future Nostalgia Feat. Elton John 2022

$84.99

Coachella 2023

General Access

$449.00

Popular Brands

  • Yeezus
  • Slipknot
  • Red Hot Chili Peppers
  • Marshmallow
  • ABBA
  • BTS

More demo Shops

Fashion

Uses: WoW Token

Try Demo

Automotive

Uses: Riot Racers Token

Try Demo
We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file +
This page collect data for analytics purposes.

Music & Events Store

Exclusive for BAYC Holders, Coachella VIP Upgrades & 20% off Storewide

Available exclusively to BAYC Holders.

Upcoming

JOJI

Nectar the finale 2022

$68.99

Dua Lipa

Future Nostalgia Feat. Elton John 2022

$84.99

Coachella 2023

General Access

$449.00

Popular Brands

  • Yeezus
  • Slipknot
  • Red Hot Chili Peppers
  • Marshmallow
  • ABBA
  • BTS

More demo Shops

Fashion

Uses: WoW Token

Try Demo

Automotive

Uses: Riot Racers Token

Try Demo
We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file diff --git a/ecommerce-store-website/index.html b/ecommerce-store-website/index.html index 51244e15a..ff8c420af 100644 --- a/ecommerce-store-website/index.html +++ b/ecommerce-store-website/index.html @@ -1,4 +1,4 @@ -Brand Connector Demo
This page collect data for analytics purposes.

Try The Product Demo

1

Get Metamask

Download and setup the Metamask extension

2

Request Test Tokens

Connect your wallet, switch to Goerli or Mumbai testnet and request tokens from us.

3

Try A Demo Shop

Select and visit one of our example shops. Each Token will let you try a different benefit.

4

Connect & Activate

Click the BrandConnector module in the bottom-right corner, connect & toggle any test tokens.


Step 2

Request Test NFTs

Mint the test NFTs with Goerli or Mumbai to try it out. Each works with a different shop. With Brand Connector, you can setup any benefit you’d like.

STL Bored Ape Yacht Club (Goerli or Mumbai Network)

Use a BAYC Token to get VIP room upgrades at the Music & Events demo shop.

STL WoW (Goerli or Mumbai Network)

Use a WoW Token to get access to exclusive early drops at the Fashion demo shop.

STL Riot Racer (Goerli or Mumbai Network)

Use a Riot Racer Token to book a day at the race tracks at the Automotive demo shop.


Step 3

Select A Demo Shop

Music & Events

Uses: BAYC Token

Visit Shop

Fashion

Uses: WoW Token

Visit Shop

Automotive

Uses: Riot Racers Token

Visit Shop
We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file +
This page collect data for analytics purposes.

Try The Product Demo

1

Get Metamask

Download and setup the Metamask extension

2

Request Test Tokens

Connect your wallet, switch to Goerli or Mumbai testnet and request tokens from us.

3

Try A Demo Shop

Select and visit one of our example shops. Each Token will let you try a different benefit.

4

Connect & Activate

Click the BrandConnector module in the bottom-right corner, connect & toggle any test tokens.


Step 2

Request Test NFTs

Mint the test NFTs with Goerli or Mumbai to try it out. Each works with a different shop. With Brand Connector, you can setup any benefit you’d like.

STL Bored Ape Yacht Club (Goerli or Mumbai Network)

Use a BAYC Token to get VIP room upgrades at the Music & Events demo shop.

STL WoW (Goerli or Mumbai Network)

Use a WoW Token to get access to exclusive early drops at the Fashion demo shop.

STL Riot Racer (Goerli or Mumbai Network)

Use a Riot Racer Token to book a day at the race tracks at the Automotive demo shop.


Step 3

Select A Demo Shop

Music & Events

Uses: BAYC Token

Visit Shop

Fashion

Uses: WoW Token

Visit Shop

Automotive

Uses: Riot Racers Token

Visit Shop
We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.

\ No newline at end of file diff --git a/hotel-bogota-active-negotiation-website/index.html b/hotel-bogota-active-negotiation-website/index.html index b194a122a..aec0d6a9b 100644 --- a/hotel-bogota-active-negotiation-website/index.html +++ b/hotel-bogota-active-negotiation-website/index.html @@ -1 +1 @@ -Hotel Bogota Example Dapp
\ No newline at end of file +Hotel Bogota Example Dapp
\ No newline at end of file diff --git a/hotel-bogota-passive-negotiation-website/index.html b/hotel-bogota-passive-negotiation-website/index.html index 24a355fbf..c0c92f6d3 100644 --- a/hotel-bogota-passive-negotiation-website/index.html +++ b/hotel-bogota-passive-negotiation-website/index.html @@ -1 +1 @@ -Hotel Bogota Example Dapp
\ No newline at end of file +Hotel Bogota Example Dapp
\ No newline at end of file diff --git a/index.html b/index.html index 7b8492153..081058696 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + diff --git a/multi-off-chain-issuer-poc/index.html b/multi-off-chain-issuer-poc/index.html index 40449d5b9..da1916678 100644 --- a/multi-off-chain-issuer-poc/index.html +++ b/multi-off-chain-issuer-poc/index.html @@ -1,4 +1,4 @@ -Multi Cross Origin Attestation POC `,label:"MetaMask"},gY='',vY='Torus logo',mY=` Safe connect button @@ -325,7 +325,7 @@ if (cid) {
`,r}(),NY=["evm","polygon","optimism","bsc","avalanche","fantom","goerli","mumbai","arbitrum"],UY=function(r){if(!r)return!0;var e=d5();nt(2,"unSupportedUserAgents: ",r),nt(2,"browserData: ",e);var t=Object.keys(r);return!t.some(function(n){return r[n]&&e[n]})},b5=function(r){if(r===""){var e="You did not specify 'blockchain', the default value is evm. Check our github to see supported values.";return Wn(e,"warning",null,null),"evm"}if(r==="solana")return"solana";if(r==="socios")return"socios";if(r==="evm")return"evm";if(r==="flow")return"flow";if(r==="ultra")return"ultra";if(NY.includes(r.toLowerCase()))return Wn("We recommend you to set `blockchain` as 'evm'.","warning",null,null),"evm";var t="You set unsupported `blockchain` in the constructor. Check our github to see supported values.";return Wn(t,"error",null,null),r},qI={},za={},bf={},ll={},yf={},ul={};const LY=4,vw=0,mw=1,FY=2;function dl(r){let e=r.length;for(;--e>=0;)r[e]=0}const zY=0,GI=1,jY=2,$Y=3,VY=258,hv=29,dd=256,R1=dd+1+hv,lc=30,pv=19,WI=2*R1+1,ko=15,dy=16,HY=7,bv=256,QI=16,YI=17,ZI=18,X8=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Uh=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),KY=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),JI=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qY=512,Of=new Array((R1+2)*2);dl(Of);const r1=new Array(lc*2);dl(r1);const O1=new Array(qY);dl(O1);const B1=new Array(VY-$Y+1);dl(B1);const yv=new Array(hv);dl(yv);const R6=new Array(lc);dl(R6);function hy(r,e,t,n,f){this.static_tree=r,this.extra_bits=e,this.extra_base=t,this.elems=n,this.max_length=f,this.has_stree=r&&r.length}let XI,eC,tC;function py(r,e){this.dyn_tree=r,this.max_code=0,this.stat_desc=e}const rC=r=>r<256?O1[r]:O1[256+(r>>>7)],D1=(r,e)=>{r.pending_buf[r.pending++]=e&255,r.pending_buf[r.pending++]=e>>>8&255},ui=(r,e,t)=>{r.bi_valid>dy-t?(r.bi_buf|=e<>dy-r.bi_valid,r.bi_valid+=t-dy):(r.bi_buf|=e<{ui(r,t[e*2],t[e*2+1])},nC=(r,e)=>{let t=0;do t|=r&1,r>>>=1,t<<=1;while(--e>0);return t>>>1},GY=r=>{r.bi_valid===16?(D1(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)},WY=(r,e)=>{const t=e.dyn_tree,n=e.max_code,f=e.stat_desc.static_tree,i=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let s,u,y,x,_,S,C=0;for(x=0;x<=ko;x++)r.bl_count[x]=0;for(t[r.heap[r.heap_max]*2+1]=0,s=r.heap_max+1;sl&&(x=l,C++),t[u*2+1]=x,!(u>n)&&(r.bl_count[x]++,_=0,u>=o&&(_=a[u-o]),S=t[u*2],r.opt_len+=S*(x+_),i&&(r.static_len+=S*(f[u*2+1]+_)));if(C!==0){do{for(x=l-1;r.bl_count[x]===0;)x--;r.bl_count[x]--,r.bl_count[x+1]+=2,r.bl_count[l]--,C-=2}while(C>0);for(x=l;x!==0;x--)for(u=r.bl_count[x];u!==0;)y=r.heap[--s],!(y>n)&&(t[y*2+1]!==x&&(r.opt_len+=(x-t[y*2+1])*t[y*2],t[y*2+1]=x),u--)}},iC=(r,e,t)=>{const n=new Array(ko+1);let f=0,i,a;for(i=1;i<=ko;i++)n[i]=f=f+t[i-1]<<1;for(a=0;a<=e;a++){let o=r[a*2+1];o!==0&&(r[a*2]=nC(n[o]++,o))}},QY=()=>{let r,e,t,n,f;const i=new Array(ko+1);for(t=0,n=0;n>=7;n{let e;for(e=0;e{r.bi_valid>8?D1(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},YY=(r,e,t,n)=>{aC(r),n&&(D1(r,t),D1(r,~t)),r.pending_buf.set(r.window.subarray(e,e+t),r.pending),r.pending+=t},xw=(r,e,t,n)=>{const f=e*2,i=t*2;return r[f]{const n=r.heap[t];let f=t<<1;for(;f<=r.heap_len&&(f{let n,f,i=0,a,o;if(r.last_lit!==0)do n=r.pending_buf[r.d_buf+i*2]<<8|r.pending_buf[r.d_buf+i*2+1],f=r.pending_buf[r.l_buf+i],i++,n===0?q0(r,f,e):(a=B1[f],q0(r,a+dd+1,e),o=X8[a],o!==0&&(f-=yv[a],ui(r,f,o)),n--,a=rC(n),q0(r,a,t),o=Uh[a],o!==0&&(n-=R6[a],ui(r,n,o)));while(i{const t=e.dyn_tree,n=e.stat_desc.static_tree,f=e.stat_desc.has_stree,i=e.stat_desc.elems;let a,o,l=-1,s;for(r.heap_len=0,r.heap_max=WI,a=0;a>1;a>=1;a--)by(r,t,a);s=i;do a=r.heap[1],r.heap[1]=r.heap[r.heap_len--],by(r,t,1),o=r.heap[1],r.heap[--r.heap_max]=a,r.heap[--r.heap_max]=o,t[s*2]=t[a*2]+t[o*2],r.depth[s]=(r.depth[a]>=r.depth[o]?r.depth[a]:r.depth[o])+1,t[a*2+1]=t[o*2+1]=s,r.heap[1]=s++,by(r,t,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],WY(r,e),iC(t,l,r.bl_count)},_w=(r,e,t)=>{let n,f=-1,i,a=e[0*2+1],o=0,l=7,s=4;for(a===0&&(l=138,s=3),e[(t+1)*2+1]=65535,n=0;n<=t;n++)i=a,a=e[(n+1)*2+1],!(++o{let n,f=-1,i,a=e[0*2+1],o=0,l=7,s=4;for(a===0&&(l=138,s=3),n=0;n<=t;n++)if(i=a,a=e[(n+1)*2+1],!(++o{let e;for(_w(r,r.dyn_ltree,r.l_desc.max_code),_w(r,r.dyn_dtree,r.d_desc.max_code),eg(r,r.bl_desc),e=pv-1;e>=3&&r.bl_tree[JI[e]*2+1]===0;e--);return r.opt_len+=3*(e+1)+5+5+4,e},JY=(r,e,t,n)=>{let f;for(ui(r,e-257,5),ui(r,t-1,5),ui(r,n-4,4),f=0;f{let e=4093624447,t;for(t=0;t<=31;t++,e>>>=1)if(e&1&&r.dyn_ltree[t*2]!==0)return vw;if(r.dyn_ltree[9*2]!==0||r.dyn_ltree[10*2]!==0||r.dyn_ltree[13*2]!==0)return mw;for(t=32;t{Ew||(QY(),Ew=!0),r.l_desc=new py(r.dyn_ltree,XI),r.d_desc=new py(r.dyn_dtree,eC),r.bl_desc=new py(r.bl_tree,tC),r.bi_buf=0,r.bi_valid=0,fC(r)},oC=(r,e,t,n)=>{ui(r,(zY<<1)+(n?1:0),3),YY(r,e,t,!0)},tZ=r=>{ui(r,GI<<1,3),q0(r,bv,Of),GY(r)},rZ=(r,e,t,n)=>{let f,i,a=0;r.level>0?(r.strm.data_type===FY&&(r.strm.data_type=XY(r)),eg(r,r.l_desc),eg(r,r.d_desc),a=ZY(r),f=r.opt_len+3+7>>>3,i=r.static_len+3+7>>>3,i<=f&&(f=i)):f=i=t+5,t+4<=f&&e!==-1?oC(r,e,t,n):r.strategy===LY||i===f?(ui(r,(GI<<1)+(n?1:0),3),ww(r,Of,r1)):(ui(r,(jY<<1)+(n?1:0),3),JY(r,r.l_desc.max_code+1,r.d_desc.max_code+1,a+1),ww(r,r.dyn_ltree,r.dyn_dtree)),fC(r),n&&aC(r)},nZ=(r,e,t)=>(r.pending_buf[r.d_buf+r.last_lit*2]=e>>>8&255,r.pending_buf[r.d_buf+r.last_lit*2+1]=e&255,r.pending_buf[r.l_buf+r.last_lit]=t&255,r.last_lit++,e===0?r.dyn_ltree[t*2]++:(r.matches++,e--,r.dyn_ltree[(B1[t]+dd+1)*2]++,r.dyn_dtree[rC(e)*2]++),r.last_lit===r.lit_bufsize-1);ul._tr_init=eZ;ul._tr_stored_block=oC;ul._tr_flush_block=rZ;ul._tr_tally=nZ;ul._tr_align=tZ;const iZ=(r,e,t,n)=>{let f=r&65535|0,i=r>>>16&65535|0,a=0;for(;t!==0;){a=t>2e3?2e3:t,t-=a;do f=f+e[n++]|0,i=i+f|0;while(--a);f%=65521,i%=65521}return f|i<<16|0};var sC=iZ;const fZ=()=>{let r,e=[];for(var t=0;t<256;t++){r=t;for(var n=0;n<8;n++)r=r&1?3988292384^r>>>1:r>>>1;e[t]=r}return e},aZ=new Uint32Array(fZ()),oZ=(r,e,t,n)=>{const f=aZ,i=n+t;r^=-1;for(let a=n;a>>8^f[(r^e[a])&255];return r^-1};var cC=oZ,gv={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},vs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:sZ,_tr_stored_block:cZ,_tr_flush_block:lZ,_tr_tally:ja,_tr_align:uZ}=ul,lC=sC,ga=cC,dZ=gv,{Z_NO_FLUSH:ms,Z_PARTIAL_FLUSH:hZ,Z_FULL_FLUSH:pZ,Z_FINISH:$a,Z_BLOCK:Tw,Z_OK:G0,Z_STREAM_END:Sw,Z_STREAM_ERROR:zi,Z_DATA_ERROR:bZ,Z_BUF_ERROR:yy,Z_DEFAULT_COMPRESSION:yZ,Z_FILTERED:gZ,Z_HUFFMAN_ONLY:nh,Z_RLE:vZ,Z_FIXED:mZ,Z_DEFAULT_STRATEGY:xZ,Z_UNKNOWN:wZ,Z_DEFLATED:y5}=vs,_Z=9,AZ=15,EZ=8,TZ=29,SZ=256,tg=SZ+1+TZ,kZ=30,MZ=19,PZ=2*tg+1,IZ=15,Qt=3,Ia=258,y0=Ia+Qt+1,CZ=32,g5=42,rg=69,Lh=73,Fh=91,zh=103,Mo=113,Du=666,an=1,hd=2,Jo=3,hl=4,RZ=3,Ca=(r,e)=>(r.msg=dZ[e],e),kw=r=>(r<<1)-(r>4?9:0),Ta=r=>{let e=r.length;for(;--e>=0;)r[e]=0};let OZ=(r,e,t)=>(e<{const e=r.state;let t=e.pending;t>r.avail_out&&(t=r.avail_out),t!==0&&(r.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+t),r.next_out),r.next_out+=t,e.pending_out+=t,r.total_out+=t,r.avail_out-=t,e.pending-=t,e.pending===0&&(e.pending_out=0))},mn=(r,e)=>{lZ(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,e),r.block_start=r.strstart,va(r.strm)},ar=(r,e)=>{r.pending_buf[r.pending++]=e},lu=(r,e)=>{r.pending_buf[r.pending++]=e>>>8&255,r.pending_buf[r.pending++]=e&255},BZ=(r,e,t,n)=>{let f=r.avail_in;return f>n&&(f=n),f===0?0:(r.avail_in-=f,e.set(r.input.subarray(r.next_in,r.next_in+f),t),r.state.wrap===1?r.adler=lC(r.adler,e,f,t):r.state.wrap===2&&(r.adler=ga(r.adler,e,f,t)),r.next_in+=f,r.total_in+=f,f)},uC=(r,e)=>{let t=r.max_chain_length,n=r.strstart,f,i,a=r.prev_length,o=r.nice_match;const l=r.strstart>r.w_size-y0?r.strstart-(r.w_size-y0):0,s=r.window,u=r.w_mask,y=r.prev,x=r.strstart+Ia;let _=s[n+a-1],S=s[n+a];r.prev_length>=r.good_match&&(t>>=2),o>r.lookahead&&(o=r.lookahead);do if(f=e,!(s[f+a]!==S||s[f+a-1]!==_||s[f]!==s[n]||s[++f]!==s[n+1])){n+=2,f++;do;while(s[++n]===s[++f]&&s[++n]===s[++f]&&s[++n]===s[++f]&&s[++n]===s[++f]&&s[++n]===s[++f]&&s[++n]===s[++f]&&s[++n]===s[++f]&&s[++n]===s[++f]&&na){if(r.match_start=e,a=i,i>=o)break;_=s[n+a-1],S=s[n+a]}}while((e=y[e&u])>l&&--t!==0);return a<=r.lookahead?a:r.lookahead},Xo=r=>{const e=r.w_size;let t,n,f,i,a;do{if(i=r.window_size-r.lookahead-r.strstart,r.strstart>=e+(e-y0)){r.window.set(r.window.subarray(e,e+e),0),r.match_start-=e,r.strstart-=e,r.block_start-=e,n=r.hash_size,t=n;do f=r.head[--t],r.head[t]=f>=e?f-e:0;while(--n);n=e,t=n;do f=r.prev[--t],r.prev[t]=f>=e?f-e:0;while(--n);i+=e}if(r.strm.avail_in===0)break;if(n=BZ(r.strm,r.window,r.strstart+r.lookahead,i),r.lookahead+=n,r.lookahead+r.insert>=Qt)for(a=r.strstart-r.insert,r.ins_h=r.window[a],r.ins_h=Va(r,r.ins_h,r.window[a+1]);r.insert&&(r.ins_h=Va(r,r.ins_h,r.window[a+Qt-1]),r.prev[a&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=a,a++,r.insert--,!(r.lookahead+r.insert{let t=65535;for(t>r.pending_buf_size-5&&(t=r.pending_buf_size-5);;){if(r.lookahead<=1){if(Xo(r),r.lookahead===0&&e===ms)return an;if(r.lookahead===0)break}r.strstart+=r.lookahead,r.lookahead=0;const n=r.block_start+t;if((r.strstart===0||r.strstart>=n)&&(r.lookahead=r.strstart-n,r.strstart=n,mn(r,!1),r.strm.avail_out===0)||r.strstart-r.block_start>=r.w_size-y0&&(mn(r,!1),r.strm.avail_out===0))return an}return r.insert=0,e===$a?(mn(r,!0),r.strm.avail_out===0?Jo:hl):(r.strstart>r.block_start&&(mn(r,!1),r.strm.avail_out===0),an)},gy=(r,e)=>{let t,n;for(;;){if(r.lookahead=Qt&&(r.ins_h=Va(r,r.ins_h,r.window[r.strstart+Qt-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),t!==0&&r.strstart-t<=r.w_size-y0&&(r.match_length=uC(r,t)),r.match_length>=Qt)if(n=ja(r,r.strstart-r.match_start,r.match_length-Qt),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=Qt){r.match_length--;do r.strstart++,r.ins_h=Va(r,r.ins_h,r.window[r.strstart+Qt-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!==0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=Va(r,r.ins_h,r.window[r.strstart+1]);else n=ja(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(n&&(mn(r,!1),r.strm.avail_out===0))return an}return r.insert=r.strstart{let t,n,f;for(;;){if(r.lookahead=Qt&&(r.ins_h=Va(r,r.ins_h,r.window[r.strstart+Qt-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=Qt-1,t!==0&&r.prev_length4096)&&(r.match_length=Qt-1)),r.prev_length>=Qt&&r.match_length<=r.prev_length){f=r.strstart+r.lookahead-Qt,n=ja(r,r.strstart-1-r.prev_match,r.prev_length-Qt),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=f&&(r.ins_h=Va(r,r.ins_h,r.window[r.strstart+Qt-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!==0);if(r.match_available=0,r.match_length=Qt-1,r.strstart++,n&&(mn(r,!1),r.strm.avail_out===0))return an}else if(r.match_available){if(n=ja(r,0,r.window[r.strstart-1]),n&&mn(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return an}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(n=ja(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart{let t,n,f,i;const a=r.window;for(;;){if(r.lookahead<=Ia){if(Xo(r),r.lookahead<=Ia&&e===ms)return an;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=Qt&&r.strstart>0&&(f=r.strstart-1,n=a[f],n===a[++f]&&n===a[++f]&&n===a[++f])){i=r.strstart+Ia;do;while(n===a[++f]&&n===a[++f]&&n===a[++f]&&n===a[++f]&&n===a[++f]&&n===a[++f]&&n===a[++f]&&n===a[++f]&&fr.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=Qt?(t=ja(r,1,r.match_length-Qt),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(t=ja(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),t&&(mn(r,!1),r.strm.avail_out===0))return an}return r.insert=0,e===$a?(mn(r,!0),r.strm.avail_out===0?Jo:hl):r.last_lit&&(mn(r,!1),r.strm.avail_out===0)?an:hd},UZ=(r,e)=>{let t;for(;;){if(r.lookahead===0&&(Xo(r),r.lookahead===0)){if(e===ms)return an;break}if(r.match_length=0,t=ja(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,t&&(mn(r,!1),r.strm.avail_out===0))return an}return r.insert=0,e===$a?(mn(r,!0),r.strm.avail_out===0?Jo:hl):r.last_lit&&(mn(r,!1),r.strm.avail_out===0)?an:hd};function O0(r,e,t,n,f){this.good_length=r,this.max_lazy=e,this.nice_length=t,this.max_chain=n,this.func=f}const Nu=[new O0(0,0,0,0,DZ),new O0(4,4,8,4,gy),new O0(4,5,16,8,gy),new O0(4,6,32,32,gy),new O0(4,4,16,16,Cs),new O0(8,16,32,32,Cs),new O0(8,16,128,128,Cs),new O0(8,32,128,256,Cs),new O0(32,128,258,1024,Cs),new O0(32,258,258,4096,Cs)],LZ=r=>{r.window_size=2*r.w_size,Ta(r.head),r.max_lazy_match=Nu[r.level].max_lazy,r.good_match=Nu[r.level].good_length,r.nice_match=Nu[r.level].nice_length,r.max_chain_length=Nu[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=Qt-1,r.match_available=0,r.ins_h=0};function FZ(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y5,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(PZ*2),this.dyn_dtree=new Uint16Array((2*kZ+1)*2),this.bl_tree=new Uint16Array((2*MZ+1)*2),Ta(this.dyn_ltree),Ta(this.dyn_dtree),Ta(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(IZ+1),this.heap=new Uint16Array(2*tg+1),Ta(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*tg+1),Ta(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const dC=r=>{if(!r||!r.state)return Ca(r,zi);r.total_in=r.total_out=0,r.data_type=wZ;const e=r.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?g5:Mo,r.adler=e.wrap===2?0:1,e.last_flush=ms,sZ(e),G0},hC=r=>{const e=dC(r);return e===G0&&LZ(r.state),e},zZ=(r,e)=>!r||!r.state||r.state.wrap!==2?zi:(r.state.gzhead=e,G0),pC=(r,e,t,n,f,i)=>{if(!r)return zi;let a=1;if(e===yZ&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),f<1||f>_Z||t!==y5||n<8||n>15||e<0||e>9||i<0||i>mZ)return Ca(r,zi);n===8&&(n=9);const o=new FZ;return r.state=o,o.strm=r,o.wrap=a,o.gzhead=null,o.w_bits=n,o.w_size=1<pC(r,e,y5,AZ,EZ,xZ),$Z=(r,e)=>{let t,n;if(!r||!r.state||e>Tw||e<0)return r?Ca(r,zi):zi;const f=r.state;if(!r.output||!r.input&&r.avail_in!==0||f.status===Du&&e!==$a)return Ca(r,r.avail_out===0?yy:zi);f.strm=r;const i=f.last_flush;if(f.last_flush=e,f.status===g5)if(f.wrap===2)r.adler=0,ar(f,31),ar(f,139),ar(f,8),f.gzhead?(ar(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),ar(f,f.gzhead.time&255),ar(f,f.gzhead.time>>8&255),ar(f,f.gzhead.time>>16&255),ar(f,f.gzhead.time>>24&255),ar(f,f.level===9?2:f.strategy>=nh||f.level<2?4:0),ar(f,f.gzhead.os&255),f.gzhead.extra&&f.gzhead.extra.length&&(ar(f,f.gzhead.extra.length&255),ar(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(r.adler=ga(r.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=rg):(ar(f,0),ar(f,0),ar(f,0),ar(f,0),ar(f,0),ar(f,f.level===9?2:f.strategy>=nh||f.level<2?4:0),ar(f,RZ),f.status=Mo);else{let a=y5+(f.w_bits-8<<4)<<8,o=-1;f.strategy>=nh||f.level<2?o=0:f.level<6?o=1:f.level===6?o=2:o=3,a|=o<<6,f.strstart!==0&&(a|=CZ),a+=31-a%31,f.status=Mo,lu(f,a),f.strstart!==0&&(lu(f,r.adler>>>16),lu(f,r.adler&65535)),r.adler=1}if(f.status===rg)if(f.gzhead.extra){for(t=f.pending;f.gzindex<(f.gzhead.extra.length&65535)&&!(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>t&&(r.adler=ga(r.adler,f.pending_buf,f.pending-t,t)),va(r),t=f.pending,f.pending===f.pending_buf_size));)ar(f,f.gzhead.extra[f.gzindex]&255),f.gzindex++;f.gzhead.hcrc&&f.pending>t&&(r.adler=ga(r.adler,f.pending_buf,f.pending-t,t)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=Lh)}else f.status=Lh;if(f.status===Lh)if(f.gzhead.name){t=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>t&&(r.adler=ga(r.adler,f.pending_buf,f.pending-t,t)),va(r),t=f.pending,f.pending===f.pending_buf_size)){n=1;break}f.gzindext&&(r.adler=ga(r.adler,f.pending_buf,f.pending-t,t)),n===0&&(f.gzindex=0,f.status=Fh)}else f.status=Fh;if(f.status===Fh)if(f.gzhead.comment){t=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>t&&(r.adler=ga(r.adler,f.pending_buf,f.pending-t,t)),va(r),t=f.pending,f.pending===f.pending_buf_size)){n=1;break}f.gzindext&&(r.adler=ga(r.adler,f.pending_buf,f.pending-t,t)),n===0&&(f.status=zh)}else f.status=zh;if(f.status===zh&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&va(r),f.pending+2<=f.pending_buf_size&&(ar(f,r.adler&255),ar(f,r.adler>>8&255),r.adler=0,f.status=Mo)):f.status=Mo),f.pending!==0){if(va(r),r.avail_out===0)return f.last_flush=-1,G0}else if(r.avail_in===0&&kw(e)<=kw(i)&&e!==$a)return Ca(r,yy);if(f.status===Du&&r.avail_in!==0)return Ca(r,yy);if(r.avail_in!==0||f.lookahead!==0||e!==ms&&f.status!==Du){let a=f.strategy===nh?UZ(f,e):f.strategy===vZ?NZ(f,e):Nu[f.level].func(f,e);if((a===Jo||a===hl)&&(f.status=Du),a===an||a===Jo)return r.avail_out===0&&(f.last_flush=-1),G0;if(a===hd&&(e===hZ?uZ(f):e!==Tw&&(cZ(f,0,0,!1),e===pZ&&(Ta(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),va(r),r.avail_out===0))return f.last_flush=-1,G0}return e!==$a?G0:f.wrap<=0?Sw:(f.wrap===2?(ar(f,r.adler&255),ar(f,r.adler>>8&255),ar(f,r.adler>>16&255),ar(f,r.adler>>24&255),ar(f,r.total_in&255),ar(f,r.total_in>>8&255),ar(f,r.total_in>>16&255),ar(f,r.total_in>>24&255)):(lu(f,r.adler>>>16),lu(f,r.adler&65535)),va(r),f.wrap>0&&(f.wrap=-f.wrap),f.pending!==0?G0:Sw)},VZ=r=>{if(!r||!r.state)return zi;const e=r.state.status;return e!==g5&&e!==rg&&e!==Lh&&e!==Fh&&e!==zh&&e!==Mo&&e!==Du?Ca(r,zi):(r.state=null,e===Mo?Ca(r,bZ):G0)},HZ=(r,e)=>{let t=e.length;if(!r||!r.state)return zi;const n=r.state,f=n.wrap;if(f===2||f===1&&n.status!==g5||n.lookahead)return zi;if(f===1&&(r.adler=lC(r.adler,e,t,0)),n.wrap=0,t>=n.w_size){f===0&&(Ta(n.head),n.strstart=0,n.block_start=0,n.insert=0);let l=new Uint8Array(n.w_size);l.set(e.subarray(t-n.w_size,t),0),e=l,t=n.w_size}const i=r.avail_in,a=r.next_in,o=r.input;for(r.avail_in=t,r.next_in=0,r.input=e,Xo(n);n.lookahead>=Qt;){let l=n.strstart,s=n.lookahead-(Qt-1);do n.ins_h=Va(n,n.ins_h,n.window[l+Qt-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++;while(--s);n.strstart=l,n.lookahead=Qt-1,Xo(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=Qt-1,n.match_available=0,r.next_in=a,r.input=o,r.avail_in=i,n.wrap=f,G0};yf.deflateInit=jZ;yf.deflateInit2=pC;yf.deflateReset=hC;yf.deflateResetKeep=dC;yf.deflateSetHeader=zZ;yf.deflate=$Z;yf.deflateEnd=VZ;yf.deflateSetDictionary=HZ;yf.deflateInfo="pako deflate (from Nodeca project)";var v5={};const KZ=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);v5.assign=function(r){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const t=e.shift();if(!!t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const n in t)KZ(t,n)&&(r[n]=t[n])}}return r};v5.flattenChunks=r=>{let e=0;for(let n=0,f=r.length;n=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;N1[254]=N1[254]=1;pd.string2buf=r=>{let e,t,n,f,i,a=r.length,o=0;for(f=0;f>>6,e[i++]=128|t&63):t<65536?(e[i++]=224|t>>>12,e[i++]=128|t>>>6&63,e[i++]=128|t&63):(e[i++]=240|t>>>18,e[i++]=128|t>>>12&63,e[i++]=128|t>>>6&63,e[i++]=128|t&63);return e};const qZ=(r,e)=>{if(e<65534&&r.subarray&&bC)return String.fromCharCode.apply(null,r.length===e?r:r.subarray(0,e));let t="";for(let n=0;n{let t,n;const f=e||r.length,i=new Array(f*2);for(n=0,t=0;t4){i[n++]=65533,t+=o-1;continue}for(a&=o===2?31:o===3?15:7;o>1&&t1){i[n++]=65533;continue}a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|a&1023)}return qZ(i,n)};pd.utf8border=(r,e)=>{e=e||r.length,e>r.length&&(e=r.length);let t=e-1;for(;t>=0&&(r[t]&192)===128;)t--;return t<0||t===0?e:t+N1[r[t]]>e?t:e};function GZ(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var yC=GZ;const n1=yf,gC=v5,vC=pd,ng=gv,WZ=yC,mC=Object.prototype.toString,{Z_NO_FLUSH:QZ,Z_SYNC_FLUSH:YZ,Z_FULL_FLUSH:ZZ,Z_FINISH:JZ,Z_OK:O6,Z_STREAM_END:XZ,Z_DEFAULT_COMPRESSION:eJ,Z_DEFAULT_STRATEGY:tJ,Z_DEFLATED:rJ}=vs;function bd(r){this.options=gC.assign({level:eJ,method:rJ,chunkSize:16384,windowBits:15,memLevel:8,strategy:tJ},r||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new WZ,this.strm.avail_out=0;let t=n1.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==O6)throw new Error(ng[t]);if(e.header&&n1.deflateSetHeader(this.strm,e.header),e.dictionary){let n;if(typeof e.dictionary=="string"?n=vC.string2buf(e.dictionary):mC.call(e.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(e.dictionary):n=e.dictionary,t=n1.deflateSetDictionary(this.strm,n),t!==O6)throw new Error(ng[t]);this._dict_set=!0}}bd.prototype.push=function(r,e){const t=this.strm,n=this.options.chunkSize;let f,i;if(this.ended)return!1;for(e===~~e?i=e:i=e===!0?JZ:QZ,typeof r=="string"?t.input=vC.string2buf(r):mC.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(n),t.next_out=0,t.avail_out=n),(i===YZ||i===ZZ)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(f=n1.deflate(t,i),f===XZ)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),f=n1.deflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===O6;if(t.avail_out===0){this.onData(t.output);continue}if(i>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};bd.prototype.onData=function(r){this.chunks.push(r)};bd.prototype.onEnd=function(r){r===O6&&(this.result=gC.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function vv(r,e){const t=new bd(e);if(t.push(r,!0),t.err)throw t.msg||ng[t.err];return t.result}function nJ(r,e){return e=e||{},e.raw=!0,vv(r,e)}function iJ(r,e){return e=e||{},e.gzip=!0,vv(r,e)}ll.Deflate=bd;ll.deflate=vv;ll.deflateRaw=nJ;ll.gzip=iJ;ll.constants=vs;var pl={},k0={};const ih=30,fJ=12;var aJ=function(e,t){let n,f,i,a,o,l,s,u,y,x,_,S,C,M,k,R,O,D,j,K,Z,te,se,he;const F=e.state;n=e.next_in,se=e.input,f=n+(e.avail_in-5),i=e.next_out,he=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),l=F.dmax,s=F.wsize,u=F.whave,y=F.wnext,x=F.window,_=F.hold,S=F.bits,C=F.lencode,M=F.distcode,k=(1<>>24,_>>>=D,S-=D,D=O>>>16&255,D===0)he[i++]=O&65535;else if(D&16){j=O&65535,D&=15,D&&(S>>=D,S-=D),S<15&&(_+=se[n++]<>>24,_>>>=D,S-=D,D=O>>>16&255,D&16){if(K=O&65535,D&=15,Sl){e.msg="invalid distance too far back",F.mode=ih;break e}if(_>>>=D,S-=D,D=i-a,K>D){if(D=K-D,D>u&&F.sane){e.msg="invalid distance too far back",F.mode=ih;break e}if(Z=0,te=x,y===0){if(Z+=s-D,D2;)he[i++]=te[Z++],he[i++]=te[Z++],he[i++]=te[Z++],j-=3;j&&(he[i++]=te[Z++],j>1&&(he[i++]=te[Z++]))}else{Z=i-K;do he[i++]=he[Z++],he[i++]=he[Z++],he[i++]=he[Z++],j-=3;while(j>2);j&&(he[i++]=he[Z++],j>1&&(he[i++]=he[Z++]))}}else if((D&64)===0){O=M[(O&65535)+(_&(1<>3,n-=j,S-=j<<3,_&=(1<{const l=o.bits;let s=0,u=0,y=0,x=0,_=0,S=0,C=0,M=0,k=0,R=0,O,D,j,K,Z,te=null,se=0,he;const F=new Uint16Array(Rs+1),P=new Uint16Array(Rs+1);let v=null,c=0,h,g,w;for(s=0;s<=Rs;s++)F[s]=0;for(u=0;u=1&&F[x]===0;x--);if(_>x&&(_=x),x===0)return f[i++]=1<<24|64<<16|0,f[i++]=1<<24|64<<16|0,o.bits=1,0;for(y=1;y0&&(r===Iw||x!==1))return-1;for(P[1]=0,s=1;sMw||r===Cw&&k>Pw)return 1;for(;;){h=s-C,a[u]he?(g=v[c+a[u]],w=te[se+a[u]]):(g=32+64,w=0),O=1<>C)+D]=h<<24|g<<16|w|0;while(D!==0);for(O=1<>=1;if(O!==0?(R&=O-1,R+=O):R=0,u++,--F[s]===0){if(s===x)break;s=e[t+a[u]]}if(s>_&&(R&K)!==j){for(C===0&&(C=_),Z+=y,S=s-C,M=1<Mw||r===Cw&&k>Pw)return 1;j=R&K,f[j]=_<<24|S<<16|Z-i|0}}return R!==0&&(f[Z+R]=s-C<<24|64<<16|0),o.bits=_,0};var dJ=uJ;const ig=sC,B0=cC,hJ=aJ,i1=dJ,pJ=0,xC=1,wC=2,{Z_FINISH:Rw,Z_BLOCK:bJ,Z_TREES:fh,Z_OK:es,Z_STREAM_END:yJ,Z_NEED_DICT:gJ,Z_STREAM_ERROR:Hi,Z_DATA_ERROR:_C,Z_MEM_ERROR:AC,Z_BUF_ERROR:vJ,Z_DEFLATED:Ow}=vs,EC=1,Bw=2,Dw=3,Nw=4,Uw=5,Lw=6,Fw=7,zw=8,jw=9,$w=10,B6=11,wf=12,my=13,Vw=14,xy=15,Hw=16,Kw=17,qw=18,Gw=19,ah=20,oh=21,Ww=22,Qw=23,Yw=24,Zw=25,Jw=26,wy=27,Xw=28,e_=29,Br=30,TC=31,mJ=32,xJ=852,wJ=592,_J=15,AJ=_J,t_=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function EJ(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const SC=r=>{if(!r||!r.state)return Hi;const e=r.state;return r.total_in=r.total_out=e.total=0,r.msg="",e.wrap&&(r.adler=e.wrap&1),e.mode=EC,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(xJ),e.distcode=e.distdyn=new Int32Array(wJ),e.sane=1,e.back=-1,es},kC=r=>{if(!r||!r.state)return Hi;const e=r.state;return e.wsize=0,e.whave=0,e.wnext=0,SC(r)},MC=(r,e)=>{let t;if(!r||!r.state)return Hi;const n=r.state;return e<0?(t=0,e=-e):(t=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15)?Hi:(n.window!==null&&n.wbits!==e&&(n.window=null),n.wrap=t,n.wbits=e,kC(r))},PC=(r,e)=>{if(!r)return Hi;const t=new EJ;r.state=t,t.window=null;const n=MC(r,e);return n!==es&&(r.state=null),n},TJ=r=>PC(r,AJ);let r_=!0,_y,Ay;const SJ=r=>{if(r_){_y=new Int32Array(512),Ay=new Int32Array(32);let e=0;for(;e<144;)r.lens[e++]=8;for(;e<256;)r.lens[e++]=9;for(;e<280;)r.lens[e++]=7;for(;e<288;)r.lens[e++]=8;for(i1(xC,r.lens,0,288,_y,0,r.work,{bits:9}),e=0;e<32;)r.lens[e++]=5;i1(wC,r.lens,0,32,Ay,0,r.work,{bits:5}),r_=!1}r.lencode=_y,r.lenbits=9,r.distcode=Ay,r.distbits=5},IC=(r,e,t,n)=>{let f;const i=r.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(e.subarray(t-i.wsize,t),0),i.wnext=0,i.whave=i.wsize):(f=i.wsize-i.wnext,f>n&&(f=n),i.window.set(e.subarray(t-n,t-n+f),i.wnext),n-=f,n?(i.window.set(e.subarray(t-n,t),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=f,i.wnext===i.wsize&&(i.wnext=0),i.whave{let t,n,f,i,a,o,l,s,u,y,x,_,S,C,M=0,k,R,O,D,j,K,Z,te;const se=new Uint8Array(4);let he,F;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!r||!r.state||!r.output||!r.input&&r.avail_in!==0)return Hi;t=r.state,t.mode===wf&&(t.mode=my),a=r.next_out,f=r.output,l=r.avail_out,i=r.next_in,n=r.input,o=r.avail_in,s=t.hold,u=t.bits,y=o,x=l,te=es;e:for(;;)switch(t.mode){case EC:if(t.wrap===0){t.mode=my;break}for(;u<16;){if(o===0)break e;o--,s+=n[i++]<>>8&255,t.check=B0(t.check,se,2,0),s=0,u=0,t.mode=Bw;break}if(t.flags=0,t.head&&(t.head.done=!1),!(t.wrap&1)||(((s&255)<<8)+(s>>8))%31){r.msg="incorrect header check",t.mode=Br;break}if((s&15)!==Ow){r.msg="unknown compression method",t.mode=Br;break}if(s>>>=4,u-=4,Z=(s&15)+8,t.wbits===0)t.wbits=Z;else if(Z>t.wbits){r.msg="invalid window size",t.mode=Br;break}t.dmax=1<>8&1),t.flags&512&&(se[0]=s&255,se[1]=s>>>8&255,t.check=B0(t.check,se,2,0)),s=0,u=0,t.mode=Dw;case Dw:for(;u<32;){if(o===0)break e;o--,s+=n[i++]<>>8&255,se[2]=s>>>16&255,se[3]=s>>>24&255,t.check=B0(t.check,se,4,0)),s=0,u=0,t.mode=Nw;case Nw:for(;u<16;){if(o===0)break e;o--,s+=n[i++]<>8),t.flags&512&&(se[0]=s&255,se[1]=s>>>8&255,t.check=B0(t.check,se,2,0)),s=0,u=0,t.mode=Uw;case Uw:if(t.flags&1024){for(;u<16;){if(o===0)break e;o--,s+=n[i++]<>>8&255,t.check=B0(t.check,se,2,0)),s=0,u=0}else t.head&&(t.head.extra=null);t.mode=Lw;case Lw:if(t.flags&1024&&(_=t.length,_>o&&(_=o),_&&(t.head&&(Z=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(n.subarray(i,i+_),Z)),t.flags&512&&(t.check=B0(t.check,n,_,i)),o-=_,i+=_,t.length-=_),t.length))break e;t.length=0,t.mode=Fw;case Fw:if(t.flags&2048){if(o===0)break e;_=0;do Z=n[i+_++],t.head&&Z&&t.length<65536&&(t.head.name+=String.fromCharCode(Z));while(Z&&_>9&1,t.head.done=!0),r.adler=t.check=0,t.mode=wf;break;case $w:for(;u<32;){if(o===0)break e;o--,s+=n[i++]<>>=u&7,u-=u&7,t.mode=wy;break}for(;u<3;){if(o===0)break e;o--,s+=n[i++]<>>=1,u-=1,s&3){case 0:t.mode=Vw;break;case 1:if(SJ(t),t.mode=ah,e===fh){s>>>=2,u-=2;break e}break;case 2:t.mode=Kw;break;case 3:r.msg="invalid block type",t.mode=Br}s>>>=2,u-=2;break;case Vw:for(s>>>=u&7,u-=u&7;u<32;){if(o===0)break e;o--,s+=n[i++]<>>16^65535)){r.msg="invalid stored block lengths",t.mode=Br;break}if(t.length=s&65535,s=0,u=0,t.mode=xy,e===fh)break e;case xy:t.mode=Hw;case Hw:if(_=t.length,_){if(_>o&&(_=o),_>l&&(_=l),_===0)break e;f.set(n.subarray(i,i+_),a),o-=_,i+=_,l-=_,a+=_,t.length-=_;break}t.mode=wf;break;case Kw:for(;u<14;){if(o===0)break e;o--,s+=n[i++]<>>=5,u-=5,t.ndist=(s&31)+1,s>>>=5,u-=5,t.ncode=(s&15)+4,s>>>=4,u-=4,t.nlen>286||t.ndist>30){r.msg="too many length or distance symbols",t.mode=Br;break}t.have=0,t.mode=qw;case qw:for(;t.have>>=3,u-=3}for(;t.have<19;)t.lens[P[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,he={bits:t.lenbits},te=i1(pJ,t.lens,0,19,t.lencode,0,t.work,he),t.lenbits=he.bits,te){r.msg="invalid code lengths set",t.mode=Br;break}t.have=0,t.mode=Gw;case Gw:for(;t.have>>24,R=M>>>16&255,O=M&65535,!(k<=u);){if(o===0)break e;o--,s+=n[i++]<>>=k,u-=k,t.lens[t.have++]=O;else{if(O===16){for(F=k+2;u>>=k,u-=k,t.have===0){r.msg="invalid bit length repeat",t.mode=Br;break}Z=t.lens[t.have-1],_=3+(s&3),s>>>=2,u-=2}else if(O===17){for(F=k+3;u>>=k,u-=k,Z=0,_=3+(s&7),s>>>=3,u-=3}else{for(F=k+7;u>>=k,u-=k,Z=0,_=11+(s&127),s>>>=7,u-=7}if(t.have+_>t.nlen+t.ndist){r.msg="invalid bit length repeat",t.mode=Br;break}for(;_--;)t.lens[t.have++]=Z}}if(t.mode===Br)break;if(t.lens[256]===0){r.msg="invalid code -- missing end-of-block",t.mode=Br;break}if(t.lenbits=9,he={bits:t.lenbits},te=i1(xC,t.lens,0,t.nlen,t.lencode,0,t.work,he),t.lenbits=he.bits,te){r.msg="invalid literal/lengths set",t.mode=Br;break}if(t.distbits=6,t.distcode=t.distdyn,he={bits:t.distbits},te=i1(wC,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,he),t.distbits=he.bits,te){r.msg="invalid distances set",t.mode=Br;break}if(t.mode=ah,e===fh)break e;case ah:t.mode=oh;case oh:if(o>=6&&l>=258){r.next_out=a,r.avail_out=l,r.next_in=i,r.avail_in=o,t.hold=s,t.bits=u,hJ(r,x),a=r.next_out,f=r.output,l=r.avail_out,i=r.next_in,n=r.input,o=r.avail_in,s=t.hold,u=t.bits,t.mode===wf&&(t.back=-1);break}for(t.back=0;M=t.lencode[s&(1<>>24,R=M>>>16&255,O=M&65535,!(k<=u);){if(o===0)break e;o--,s+=n[i++]<>D)],k=M>>>24,R=M>>>16&255,O=M&65535,!(D+k<=u);){if(o===0)break e;o--,s+=n[i++]<>>=D,u-=D,t.back+=D}if(s>>>=k,u-=k,t.back+=k,t.length=O,R===0){t.mode=Jw;break}if(R&32){t.back=-1,t.mode=wf;break}if(R&64){r.msg="invalid literal/length code",t.mode=Br;break}t.extra=R&15,t.mode=Ww;case Ww:if(t.extra){for(F=t.extra;u>>=t.extra,u-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=Qw;case Qw:for(;M=t.distcode[s&(1<>>24,R=M>>>16&255,O=M&65535,!(k<=u);){if(o===0)break e;o--,s+=n[i++]<>D)],k=M>>>24,R=M>>>16&255,O=M&65535,!(D+k<=u);){if(o===0)break e;o--,s+=n[i++]<>>=D,u-=D,t.back+=D}if(s>>>=k,u-=k,t.back+=k,R&64){r.msg="invalid distance code",t.mode=Br;break}t.offset=O,t.extra=R&15,t.mode=Yw;case Yw:if(t.extra){for(F=t.extra;u>>=t.extra,u-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){r.msg="invalid distance too far back",t.mode=Br;break}t.mode=Zw;case Zw:if(l===0)break e;if(_=x-l,t.offset>_){if(_=t.offset-_,_>t.whave&&t.sane){r.msg="invalid distance too far back",t.mode=Br;break}_>t.wnext?(_-=t.wnext,S=t.wsize-_):S=t.wnext-_,_>t.length&&(_=t.length),C=t.window}else C=f,S=a-t.offset,_=t.length;_>l&&(_=l),l-=_,t.length-=_;do f[a++]=C[S++];while(--_);t.length===0&&(t.mode=oh);break;case Jw:if(l===0)break e;f[a++]=t.length,l--,t.mode=oh;break;case wy:if(t.wrap){for(;u<32;){if(o===0)break e;o--,s|=n[i++]<{if(!r||!r.state)return Hi;let e=r.state;return e.window&&(e.window=null),r.state=null,es},PJ=(r,e)=>{if(!r||!r.state)return Hi;const t=r.state;return(t.wrap&2)===0?Hi:(t.head=e,e.done=!1,es)},IJ=(r,e)=>{const t=e.length;let n,f,i;return!r||!r.state||(n=r.state,n.wrap!==0&&n.mode!==B6)?Hi:n.mode===B6&&(f=1,f=ig(f,e,t,0),f!==n.check)?_C:(i=IC(r,e,t,t),i?(n.mode=TC,AC):(n.havedict=1,es))};k0.inflateReset=kC;k0.inflateReset2=MC;k0.inflateResetKeep=SC;k0.inflateInit=TJ;k0.inflateInit2=PC;k0.inflate=kJ;k0.inflateEnd=MJ;k0.inflateGetHeader=PJ;k0.inflateSetDictionary=IJ;k0.inflateInfo="pako inflate (from Nodeca project)";function CJ(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var RJ=CJ;const Bf=k0,CC=v5,fg=pd,ag=gv,OJ=yC,BJ=RJ,RC=Object.prototype.toString,{Z_NO_FLUSH:DJ,Z_FINISH:NJ,Z_OK:U1,Z_STREAM_END:Ey,Z_NEED_DICT:Ty,Z_STREAM_ERROR:UJ,Z_DATA_ERROR:n_,Z_MEM_ERROR:LJ}=vs;function yd(r){this.options=CC.assign({chunkSize:1024*64,windowBits:15,to:""},r||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(r&&r.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new OJ,this.strm.avail_out=0;let t=Bf.inflateInit2(this.strm,e.windowBits);if(t!==U1)throw new Error(ag[t]);if(this.header=new BJ,Bf.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=fg.string2buf(e.dictionary):RC.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=Bf.inflateSetDictionary(this.strm,e.dictionary),t!==U1)))throw new Error(ag[t])}yd.prototype.push=function(r,e){const t=this.strm,n=this.options.chunkSize,f=this.options.dictionary;let i,a,o;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?NJ:DJ,RC.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(n),t.next_out=0,t.avail_out=n),i=Bf.inflate(t,a),i===Ty&&f&&(i=Bf.inflateSetDictionary(t,f),i===U1?i=Bf.inflate(t,a):i===n_&&(i=Ty));t.avail_in>0&&i===Ey&&t.state.wrap>0&&r[t.next_in]!==0;)Bf.inflateReset(t),i=Bf.inflate(t,a);switch(i){case UJ:case n_:case Ty:case LJ:return this.onEnd(i),this.ended=!0,!1}if(o=t.avail_out,t.next_out&&(t.avail_out===0||i===Ey))if(this.options.to==="string"){let l=fg.utf8border(t.output,t.next_out),s=t.next_out-l,u=fg.buf2string(t.output,l);t.next_out=s,t.avail_out=n-s,s&&t.output.set(t.output.subarray(l,l+s),0),this.onData(u)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(i===U1&&o===0)){if(i===Ey)return i=Bf.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};yd.prototype.onData=function(r){this.chunks.push(r)};yd.prototype.onEnd=function(r){r===U1&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=CC.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function mv(r,e){const t=new yd(e);if(t.push(r),t.err)throw t.msg||ag[t.err];return t.result}function FJ(r,e){return e=e||{},e.raw=!0,mv(r,e)}pl.Inflate=yd;pl.inflate=mv;pl.inflateRaw=FJ;pl.ungzip=mv;pl.constants=vs;const{Deflate:zJ,deflate:jJ,deflateRaw:$J,gzip:VJ}=ll,{Inflate:HJ,inflate:KJ,inflateRaw:qJ,ungzip:GJ}=pl,WJ=vs;bf.Deflate=zJ;bf.deflate=jJ;bf.deflateRaw=$J;bf.gzip=VJ;bf.Inflate=HJ;bf.inflate=KJ;bf.inflateRaw=qJ;bf.ungzip=GJ;bf.constants=WJ;var xv={},gf={},QJ=function(){function r(e,t){var n=[],f=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(f=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));f=!0);}catch(s){i=!0,a=s}finally{try{!f&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),YJ=function(){function r(e,t){for(var n=0;n>>32-n}},{key:"hash",value:function(t){for(var n=r.pad(t),f=[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],i=[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],a=[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],o=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=4,s=64,u=n.byteLength/s,y=new Array(u).fill(void 0).map(function(v,c){return function(h){return new DataView(n,c*s,s).getUint32(h*l,!0)}}),x=[1732584193,4023233417,2562383102,271733878,3285377520],_=0;_0)&&!(U=m.next()).done;)T.push(U.value)}catch(G){L={error:G}}finally{try{U&&!U.done&&(d=m.return)&&d.call(m)}finally{if(L)throw L.error}}return T},t=ge&&ge.__spreadArray||function(b,p){for(var d=0,m=p.length,U=b.length;d=b.length&&(b=void 0),{value:b&&b[m++],done:!b}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.signatureToString=r.stringToSignature=r.privateKeyToString=r.privateKeyToLegacyString=r.stringToPrivateKey=r.convertLegacyPublicKeys=r.convertLegacyPublicKey=r.publicKeyToString=r.publicKeyToLegacyString=r.stringToPublicKey=r.signatureDataSize=r.privateKeyDataSize=r.publicKeyDataSize=r.KeyType=r.base64ToBinary=r.binaryToBase58=r.base58ToBinary=r.signedBinaryToDecimal=r.binaryToDecimal=r.signedDecimalToBinary=r.decimalToBinary=r.negate=r.isNegative=void 0;var f=tn,i=XJ.RIPEMD160.hash,a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(){for(var b=Array(256).fill(-1),p=0;p"9".charCodeAt(0))throw new Error("invalid number");for(var T=U-"0".charCodeAt(0),L=0;L>8}if(T)throw new Error("number is out of range")}return d};r.decimalToBinary=S;var C=function(b,p){var d=p[0]==="-";d&&(p=p.substr(1));var m=r.decimalToBinary(b,p);if(d){if(r.negate(m),!r.isNegative(m))throw new Error("number is out of range")}else if(r.isNegative(m))throw new Error("number is out of range");return m};r.signedDecimalToBinary=C;var M=function(b,p){p===void 0&&(p=1);for(var d=Array(p).fill("0".charCodeAt(0)),m=b.length-1;m>=0;--m){for(var U=b[m],T=0;T>8}T&&m.push(T)}try{for(var J=n(b),X=J.next();!X.done;X=J.next()){var ve=X.value;if(ve==="1")m.push(0);else break}}catch(de){p={error:de}}finally{try{X&&!X.done&&(d=J.return)&&d.call(J)}finally{if(p)throw p.error}}return m.reverse(),new Uint8Array(m)},O=function(b,p){if(!b)return R(p);for(var d=new Uint8Array(b),m=0;m>8}if(U)throw new Error("base-58 value is out of range")}return d.reverse(),d};r.base58ToBinary=O;var D=function(b,p){var d,m,U,T,L=[];try{for(var G=n(b),J=G.next();!J.done;J=G.next()){for(var X=J.value,ve=X,de=0;de>2,m=d*3;p>0&&b[p-1]==="="&&(b[p-2]==="="?m-=2:m-=1);for(var U=new Uint8Array(m),T=0;T>4,T*3+1>2),T*3+20)&&!(ie=re.next()).done;)Pe.push(ie.value)}catch(Y){Me={error:Y}}finally{try{ie&&!ie.done&&(q=re.return)&&q.call(re)}finally{if(Me)throw Me.error}}return Pe},n=ge&&ge.__spreadArray||function(H,B){for(var q=0,re=B.length,ie=H.length;q=H.length&&(H=void 0),{value:H&&H[re++],done:!H}}};throw new TypeError(B?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.serializeQuery=r.deserializeAnyArray=r.serializeAnyArray=r.deserializeAnyObject=r.serializeAnyObject=r.deserializeAnyvarShort=r.deserializeAnyvar=r.serializeAnyvar=r.deserializeAction=r.deserializeActionData=r.serializeAction=r.serializeActionData=r.transactionHeader=r.getTypesFromAbi=r.getType=r.createTransactionTypes=r.createTransactionExtensionTypes=r.createAbiTypes=r.createInitialTypes=r.hexToUint8Array=r.arrayToHex=r.symbolToString=r.stringToSymbol=r.blockTimestampToDate=r.dateToBlockTimestamp=r.timePointSecToDate=r.dateToTimePointSec=r.timePointToDate=r.dateToTimePoint=r.supportedAbiVersion=r.SerialBuffer=r.SerializerState=void 0;var i=gf,a=function(){function H(B){B===void 0&&(B={}),this.skippedBinaryExtension=!1,this.options=B}return H}();r.SerializerState=a;var o=function(){function H(B){var q=B===void 0?{}:B,re=q.textEncoder,ie=q.textDecoder,Pe=q.array;this.readPos=0,this.array=Pe||new Uint8Array(1024),this.length=Pe?Pe.length:0,this.textEncoder=re||new TextEncoder,this.textDecoder=ie||new TextDecoder("utf-8",{fatal:!0})}return H.prototype.reserve=function(B){if(!(this.length+B<=this.array.length)){for(var q=this.array.length;this.length+B>q;)q=Math.ceil(q*1.5);var re=new Uint8Array(q);re.set(this.array),this.array=re}},H.prototype.haveReadData=function(){return this.readPosthis.length)throw new Error("Read past end of buffer");var q=new Uint8Array(this.array.buffer,this.array.byteOffset+this.readPos,B);return this.readPos+=B,q},H.prototype.skip=function(B){if(this.readPos+B>this.length)throw new Error("Read past end of buffer");this.readPos+=B},H.prototype.pushUint16=function(B){this.push(B>>0&255,B>>8&255)},H.prototype.getUint16=function(){var B=0;return B|=this.get()<<0,B|=this.get()<<8,B},H.prototype.pushUint32=function(B){this.push(B>>0&255,B>>8&255,B>>16&255,B>>24&255)},H.prototype.getUint32=function(){var B=0;return B|=this.get()<<0,B|=this.get()<<8,B|=this.get()<<16,B|=this.get()<<24,B>>>0},H.prototype.pushNumberAsUint64=function(B){this.pushUint32(B>>>0),this.pushUint32(Math.floor(B/4294967296)>>>0)},H.prototype.getUint64AsNumber=function(){var B=this.getUint32(),q=this.getUint32();return(q>>>0)*4294967296+(B>>>0)},H.prototype.pushVaruint32=function(B){for(;;)if(B>>>7)this.push(128|B&127),B=B>>>7;else{this.push(B);break}},H.prototype.getVaruint32=function(){for(var B=0,q=0;;){var re=this.get();if(B|=(re&127)<>>0},H.prototype.pushVarint32=function(B){this.pushVaruint32(B<<1^B>>31)},H.prototype.getVarint32=function(){var B=this.getVaruint32();return B&1?~B>>1|2147483648:B>>>1},H.prototype.pushFloat32=function(B){this.pushArray(new Uint8Array(new Float32Array([B]).buffer))},H.prototype.getFloat32=function(){return new Float32Array(this.getUint8Array(4).slice().buffer)[0]},H.prototype.pushFloat64=function(B){this.pushArray(new Uint8Array(new Float64Array([B]).buffer))},H.prototype.getFloat64=function(){return new Float64Array(this.getUint8Array(8).slice().buffer)[0]},H.prototype.pushName=function(B){if(typeof B!="string")throw new Error("Expected string containing name");var q=new RegExp(/^[.1-5a-z]{0,12}[.1-5a-j]?$/);if(!q.test(B))throw new Error("Name should be less than 13 characters, or less than 14 if last character is between 1-5 or a-j, and only contain the following symbols .12345abcdefghijklmnopqrstuvwxyz");for(var re=function(Ie){return Ie>="a".charCodeAt(0)&&Ie<="z".charCodeAt(0)?Ie-"a".charCodeAt(0)+6:Ie>="1".charCodeAt(0)&&Ie<="5".charCodeAt(0)?Ie-"1".charCodeAt(0)+1:0},ie=new Uint8Array(8),Pe=63,Me=0;Me=0;--ae)Pe>=0&&(ie[Math.floor(Pe/8)]|=(Y>>ae&1)<=0;){for(var ie=0,Pe=0;Pe<5;++Pe)re>=0&&(ie=ie<<1|B[Math.floor(re/8)]>>re%8&1,--re);ie>=6?q+=String.fromCharCode(ie+"a".charCodeAt(0)-6):ie>=1?q+=String.fromCharCode(ie+"1".charCodeAt(0)-1):q+="."}for(;q.endsWith(".");)q=q.substr(0,q.length-1);return q},H.prototype.pushBytes=function(B){this.pushVaruint32(B.length),this.pushArray(B)},H.prototype.getBytes=function(){return this.getUint8Array(this.getVaruint32())},H.prototype.pushString=function(B){this.pushBytes(this.textEncoder.encode(B))},H.prototype.getString=function(){return this.textDecoder.decode(this.getBytes())},H.prototype.pushSymbolCode=function(B){if(typeof B!="string")throw new Error("Expected string containing symbol_code");var q=[];for(q.push.apply(q,n([],t(this.textEncoder.encode(B))));q.length<8;)q.push(0);this.pushArray(q.slice(0,8))},H.prototype.getSymbolCode=function(){var B=this.getUint8Array(8),q;for(q=0;q="0".charCodeAt(0)&&B.charCodeAt(q)<="9".charCodeAt(0);)Pe=!0,re+=B[q],++q;if(!Pe)throw new Error("Asset must begin with a number");if(B[q]===".")for(++q;q="0".charCodeAt(0)&&B.charCodeAt(q)<="9".charCodeAt(0);)re+=B[q],++ie,++q;var Me=B.substr(q).trim();this.pushArray(i.signedDecimalToBinary(8,re)),this.pushSymbol({name:Me,precision:ie})},H.prototype.getAsset=function(){var B=this.getUint8Array(8),q=this.getSymbol(),re=q.name,ie=q.precision,Pe=i.signedBinaryToDecimal(B,ie+1);return ie&&(Pe=Pe.substr(0,Pe.length-ie)+"."+Pe.substr(Pe.length-ie)),Pe+" "+re},H.prototype.pushPublicKey=function(B){var q=i.stringToPublicKey(B);this.push(q.type),this.pushArray(q.data)},H.prototype.getPublicKey=function(){var B=this.get(),q;if(B===i.KeyType.wa){var re=this.readPos;this.skip(34),this.skip(this.getVaruint32()),q=new Uint8Array(this.array.buffer,this.array.byteOffset+re,this.readPos-re)}else q=this.getUint8Array(i.publicKeyDataSize);return i.publicKeyToString({type:B,data:q})},H.prototype.pushPrivateKey=function(B){var q=i.stringToPrivateKey(B);this.push(q.type),this.pushArray(q.data)},H.prototype.getPrivateKey=function(){var B=this.get(),q=this.getUint8Array(i.privateKeyDataSize);return i.privateKeyToString({type:B,data:q})},H.prototype.pushSignature=function(B){var q=i.stringToSignature(B);this.push(q.type),this.pushArray(q.data)},H.prototype.getSignature=function(){var B=this.get(),q;if(B===i.KeyType.wa){var re=this.readPos;this.skip(65),this.skip(this.getVaruint32()),this.skip(this.getVaruint32()),q=new Uint8Array(this.array.buffer,this.array.byteOffset+re,this.readPos-re)}else q=this.getUint8Array(i.signatureDataSize);return i.signatureToString({type:B,data:q})},H}();r.SerialBuffer=o;var l=function(H){return H.startsWith("eosio::abi/1.")};r.supportedAbiVersion=l;var s=function(H){var B=Date.parse(H);if(Number.isNaN(B))throw new Error("Invalid time format");return B},u=function(H){return Math.round(s(H+"Z")*1e3)};r.dateToTimePoint=u;var y=function(H){var B=new Date(H/1e3).toISOString();return B.substr(0,B.length-1)};r.timePointToDate=y;var x=function(H){return Math.round(s(H+"Z")/1e3)};r.dateToTimePointSec=x;var _=function(H){var B=new Date(H*1e3).toISOString();return B.substr(0,B.length-1)};r.timePointSecToDate=_;var S=function(H){return Math.round((s(H+"Z")-9466848e5)/500)};r.dateToBlockTimestamp=S;var C=function(H){var B=new Date(H*500+9466848e5).toISOString();return B.substr(0,B.length-1)};r.blockTimestampToDate=C;var M=function(H){if(typeof H!="string")throw new Error("Expected string containing symbol");var B=H.match(/^([0-9]+),([A-Z]+)$/);if(!B)throw new Error("Invalid symbol");return{name:B[2],precision:+B[1]}};r.stringToSymbol=M;var k=function(H){var B=H.name,q=H.precision;return q+","+B};r.symbolToString=k;var R=function(H){var B,q,re="";try{for(var ie=f(H),Pe=ie.next();!Pe.done;Pe=ie.next()){var Me=Pe.value;re+=("00"+Me.toString(16)).slice(-2)}}catch(Y){B={error:Y}}finally{try{Pe&&!Pe.done&&(q=ie.return)&&q.call(ie)}finally{if(B)throw B.error}}return re.toUpperCase()};r.arrayToHex=R;var O=function(H){if(typeof H!="string")throw new Error("Expected string containing hex digits");if(H.length%2)throw new Error("Odd number of hex digits");for(var B=H.length/2,q=new Uint8Array(B),re=0;re=this.fields.length)throw new Error("type index "+re+" is not valid for variant");var ie=this.fields[re];return[ie.name,ie.type.deserialize(H,B,q)]}function he(H,B,q,re){var ie,Pe;H.pushVaruint32(B.length);try{for(var Me=f(B),Y=Me.next();!Y.done;Y=Me.next()){var ae=Y.value;this.arrayOf.serialize(H,ae,q,!1)}}catch(Ie){ie={error:Ie}}finally{try{Y&&!Y.done&&(Pe=Me.return)&&Pe.call(Me)}finally{if(ie)throw ie.error}}}function F(H,B,q){for(var re=H.getVaruint32(),ie=[],Pe=0;Pe",aliasOfName:"",arrayOf:null,optionalOf:null,extensionOf:null,baseName:"",base:null,fields:[],serialize:D,deserialize:j},H)},p=function(H,B){if(Number.isNaN(+H)||Number.isNaN(+B)||typeof H!="number"&&typeof H!="string")throw new Error("Expected number");if(+H!=+B)throw new Error("Number is out of range");return+H},d=function(){var H=new Map(Object.entries({bool:b({name:"bool",serialize:function(B,q){if(!(typeof q=="boolean"||typeof q=="number"&&(q===1||q===0)))throw new Error("Expected boolean or number equal to 1 or 0");B.push(q?1:0)},deserialize:function(B){return!!B.get()}}),uint8:b({name:"uint8",serialize:function(B,q){B.push(p(q,q&255))},deserialize:function(B){return B.get()}}),int8:b({name:"int8",serialize:function(B,q){B.push(p(q,q<<24>>24))},deserialize:function(B){return B.get()<<24>>24}}),uint16:b({name:"uint16",serialize:function(B,q){B.pushUint16(p(q,q&65535))},deserialize:function(B){return B.getUint16()}}),int16:b({name:"int16",serialize:function(B,q){B.pushUint16(p(q,q<<16>>16))},deserialize:function(B){return B.getUint16()<<16>>16}}),uint32:b({name:"uint32",serialize:function(B,q){B.pushUint32(p(q,q>>>0))},deserialize:function(B){return B.getUint32()}}),uint64:b({name:"uint64",serialize:function(B,q){B.pushArray(i.decimalToBinary(8,""+q))},deserialize:function(B){return i.binaryToDecimal(B.getUint8Array(8))}}),int64:b({name:"int64",serialize:function(B,q){B.pushArray(i.signedDecimalToBinary(8,""+q))},deserialize:function(B){return i.signedBinaryToDecimal(B.getUint8Array(8))}}),int32:b({name:"int32",serialize:function(B,q){B.pushUint32(p(q,q|0))},deserialize:function(B){return B.getUint32()|0}}),varuint32:b({name:"varuint32",serialize:function(B,q){B.pushVaruint32(p(q,q>>>0))},deserialize:function(B){return B.getVaruint32()}}),varint32:b({name:"varint32",serialize:function(B,q){B.pushVarint32(p(q,q|0))},deserialize:function(B){return B.getVarint32()}}),uint128:b({name:"uint128",serialize:function(B,q){B.pushArray(i.decimalToBinary(16,""+q))},deserialize:function(B){return i.binaryToDecimal(B.getUint8Array(16))}}),int128:b({name:"int128",serialize:function(B,q){B.pushArray(i.signedDecimalToBinary(16,""+q))},deserialize:function(B){return i.signedBinaryToDecimal(B.getUint8Array(16))}}),float32:b({name:"float32",serialize:function(B,q){B.pushFloat32(q)},deserialize:function(B){return B.getFloat32()}}),float64:b({name:"float64",serialize:function(B,q){B.pushFloat64(q)},deserialize:function(B){return B.getFloat64()}}),float128:b({name:"float128",serialize:function(B,q){B.pushUint8ArrayChecked(r.hexToUint8Array(q),16)},deserialize:function(B){return r.arrayToHex(B.getUint8Array(16))}}),bytes:b({name:"bytes",serialize:function(B,q){q instanceof Uint8Array||Array.isArray(q)?B.pushBytes(q):B.pushBytes(r.hexToUint8Array(q))},deserialize:function(B,q){return q&&q.options.bytesAsUint8Array?B.getBytes():r.arrayToHex(B.getBytes())}}),string:b({name:"string",serialize:function(B,q){B.pushString(q)},deserialize:function(B){return B.getString()}}),name:b({name:"name",serialize:function(B,q){B.pushName(q)},deserialize:function(B){return B.getName()}}),time_point:b({name:"time_point",serialize:function(B,q){B.pushNumberAsUint64(r.dateToTimePoint(q))},deserialize:function(B){return r.timePointToDate(B.getUint64AsNumber())}}),time_point_sec:b({name:"time_point_sec",serialize:function(B,q){B.pushUint32(r.dateToTimePointSec(q))},deserialize:function(B){return r.timePointSecToDate(B.getUint32())}}),block_timestamp_type:b({name:"block_timestamp_type",serialize:function(B,q){B.pushUint32(r.dateToBlockTimestamp(q))},deserialize:function(B){return r.blockTimestampToDate(B.getUint32())}}),symbol_code:b({name:"symbol_code",serialize:function(B,q){B.pushSymbolCode(q)},deserialize:function(B){return B.getSymbolCode()}}),symbol:b({name:"symbol",serialize:function(B,q){B.pushSymbol(r.stringToSymbol(q))},deserialize:function(B){return r.symbolToString(B.getSymbol())}}),asset:b({name:"asset",serialize:function(B,q){B.pushAsset(q)},deserialize:function(B){return B.getAsset()}}),checksum160:b({name:"checksum160",serialize:function(B,q){B.pushUint8ArrayChecked(r.hexToUint8Array(q),20)},deserialize:function(B){return r.arrayToHex(B.getUint8Array(20))}}),checksum256:b({name:"checksum256",serialize:function(B,q){B.pushUint8ArrayChecked(r.hexToUint8Array(q),32)},deserialize:function(B){return r.arrayToHex(B.getUint8Array(32))}}),checksum512:b({name:"checksum512",serialize:function(B,q){B.pushUint8ArrayChecked(r.hexToUint8Array(q),64)},deserialize:function(B){return r.arrayToHex(B.getUint8Array(64))}}),public_key:b({name:"public_key",serialize:function(B,q){B.pushPublicKey(q)},deserialize:function(B){return B.getPublicKey()}}),private_key:b({name:"private_key",serialize:function(B,q){B.pushPrivateKey(q)},deserialize:function(B){return B.getPrivateKey()}}),signature:b({name:"signature",serialize:function(B,q){B.pushSignature(q)},deserialize:function(B){return B.getSignature()}})}));return H.set("extended_asset",b({name:"extended_asset",baseName:"",fields:[{name:"quantity",typeName:"asset",type:H.get("asset")},{name:"contract",typeName:"name",type:H.get("name")}],serialize:K,deserialize:Z})),H};r.createInitialTypes=d;var m=function(){var H=r.createInitialTypes();return H.set("extensions_entry",b({name:"extensions_entry",baseName:"",fields:[{name:"tag",typeName:"uint16",type:null},{name:"value",typeName:"bytes",type:null}],serialize:K,deserialize:Z})),H.set("type_def",b({name:"type_def",baseName:"",fields:[{name:"new_type_name",typeName:"string",type:null},{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),H.set("field_def",b({name:"field_def",baseName:"",fields:[{name:"name",typeName:"string",type:null},{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),H.set("struct_def",b({name:"struct_def",baseName:"",fields:[{name:"name",typeName:"string",type:null},{name:"base",typeName:"string",type:null},{name:"fields",typeName:"field_def[]",type:null}],serialize:K,deserialize:Z})),H.set("action_def",b({name:"action_def",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"type",typeName:"string",type:null},{name:"ricardian_contract",typeName:"string",type:null}],serialize:K,deserialize:Z})),H.set("table_def",b({name:"table_def",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"index_type",typeName:"string",type:null},{name:"key_names",typeName:"string[]",type:null},{name:"key_types",typeName:"string[]",type:null},{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),H.set("clause_pair",b({name:"clause_pair",baseName:"",fields:[{name:"id",typeName:"string",type:null},{name:"body",typeName:"string",type:null}],serialize:K,deserialize:Z})),H.set("error_message",b({name:"error_message",baseName:"",fields:[{name:"error_code",typeName:"uint64",type:null},{name:"error_msg",typeName:"string",type:null}],serialize:K,deserialize:Z})),H.set("variant_def",b({name:"variant_def",baseName:"",fields:[{name:"name",typeName:"string",type:null},{name:"types",typeName:"string[]",type:null}],serialize:K,deserialize:Z})),H.set("action_result",b({name:"action_result",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"result_type",typeName:"string",type:null}],serialize:K,deserialize:Z})),H.set("primary_key_index_def",b({name:"primary_key_index_def",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),H.set("secondary_index_def",b({name:"secondary_index_def",baseName:"",fields:[{name:"type",typeName:"string",type:null}],serialize:K,deserialize:Z})),H.set("secondary_indices",b({name:"secondary_indices",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"secondary_index_def",typeName:"secondary_index_def",type:null}],serialize:g,deserialize:w})),H.set("kv_table_entry_def",b({name:"kv_table_entry_def",baseName:"",fields:[{name:"type",typeName:"string",type:null},{name:"primary_index",typeName:"primary_key_index_def",type:null},{name:"secondary_indices",typeName:"secondary_indices",type:null}],serialize:K,deserialize:Z})),H.set("kv_table",b({name:"kv_table",baseName:"",fields:[{name:"name",typeName:"name",type:null},{name:"kv_table_entry_def",typeName:"kv_table_entry_def",type:null}],serialize:g,deserialize:w})),H.set("abi_def",b({name:"abi_def",baseName:"",fields:[{name:"version",typeName:"string",type:null},{name:"types",typeName:"type_def[]",type:null},{name:"structs",typeName:"struct_def[]",type:null},{name:"actions",typeName:"action_def[]",type:null},{name:"tables",typeName:"table_def[]",type:null},{name:"ricardian_clauses",typeName:"clause_pair[]",type:null},{name:"error_messages",typeName:"error_message[]",type:null},{name:"abi_extensions",typeName:"extensions_entry[]",type:null},{name:"variants",typeName:"variant_def[]$",type:null},{name:"action_results",typeName:"action_result[]$",type:null},{name:"kv_tables",typeName:"kv_table$",type:null}],serialize:K,deserialize:Z})),H};r.createAbiTypes=m;var U=function(){var H=r.createInitialTypes();return H.set("resource_payer",b({name:"resource_payer",baseName:"",fields:[{name:"payer",typeName:"name",type:null},{name:"max_net_bytes",typeName:"uint64",type:null},{name:"max_cpu_us",typeName:"uint64",type:null},{name:"max_memory_bytes",typeName:"uint64",type:null}],serialize:K,deserialize:Z})),H};r.createTransactionExtensionTypes=U;var T=function(){var H=r.createInitialTypes();return H.set("permission_level",b({name:"permission_level",baseName:"",fields:[{name:"actor",typeName:"name",type:null},{name:"permission",typeName:"name",type:null}],serialize:K,deserialize:Z})),H.set("action",b({name:"action",baseName:"",fields:[{name:"account",typeName:"name",type:null},{name:"name",typeName:"name",type:null},{name:"authorization",typeName:"permission_level[]",type:null},{name:"data",typeName:"bytes",type:null}],serialize:K,deserialize:Z})),H.set("extension",b({name:"extension",baseName:"",fields:[{name:"type",typeName:"uint16",type:null},{name:"data",typeName:"bytes",type:null}],serialize:E,deserialize:A})),H.set("transaction_header",b({name:"transaction_header",baseName:"",fields:[{name:"expiration",typeName:"time_point_sec",type:null},{name:"ref_block_num",typeName:"uint16",type:null},{name:"ref_block_prefix",typeName:"uint32",type:null},{name:"max_net_usage_words",typeName:"varuint32",type:null},{name:"max_cpu_usage_ms",typeName:"uint8",type:null},{name:"delay_sec",typeName:"varuint32",type:null}],serialize:K,deserialize:Z})),H.set("transaction",b({name:"transaction",baseName:"transaction_header",fields:[{name:"context_free_actions",typeName:"action[]",type:null},{name:"actions",typeName:"action[]",type:null},{name:"transaction_extensions",typeName:"extension",type:null}],serialize:K,deserialize:Z})),H};r.createTransactionTypes=T;var L=function(H,B){var q=H.get(B);if(q&&q.aliasOfName)return r.getType(H,q.aliasOfName);if(q)return q;if(B.endsWith("[]"))return b({name:B,arrayOf:r.getType(H,B.substr(0,B.length-2)),serialize:he,deserialize:F});if(B.endsWith("?"))return b({name:B,optionalOf:r.getType(H,B.substr(0,B.length-1)),serialize:P,deserialize:v});if(B.endsWith("$"))return b({name:B,extensionOf:r.getType(H,B.substr(0,B.length-1)),serialize:c,deserialize:h});throw new Error("Unknown type: "+B)};r.getType=L;var G=function(H,B){var q,re,ie,Pe,Me,Y,ae,Ie,we,et,Be=new Map(H);if(B&&B.types)try{for(var ze=f(B.types),mt=ze.next();!mt.done;mt=ze.next()){var Ze=mt.value,$e=Ze.new_type_name,At=Ze.type;Be.set($e,b({name:$e,aliasOfName:At}))}}catch(Se){q={error:Se}}finally{try{mt&&!mt.done&&(re=ze.return)&&re.call(ze)}finally{if(q)throw q.error}}if(B&&B.structs)try{for(var We=f(B.structs),Ue=We.next();!Ue.done;Ue=We.next()){var _t=Ue.value,it=_t.name,He=_t.base,Tt=_t.fields;Be.set(it,b({name:it,baseName:He,fields:Tt.map(function(Se){var ke=Se.name,vt=Se.type;return{name:ke,typeName:vt,type:null}}),serialize:K,deserialize:Z}))}}catch(Se){ie={error:Se}}finally{try{Ue&&!Ue.done&&(Pe=We.return)&&Pe.call(We)}finally{if(ie)throw ie.error}}if(B&&B.variants)try{for(var tt=f(B.variants),Fe=tt.next();!Fe.done;Fe=tt.next()){var St=Fe.value,N=St.name,z=St.types;Be.set(N,b({name:N,fields:z.map(function(Se){return{name:Se,typeName:Se,type:null}}),serialize:te,deserialize:se}))}}catch(Se){Me={error:Se}}finally{try{Fe&&!Fe.done&&(Y=tt.return)&&Y.call(tt)}finally{if(Me)throw Me.error}}try{for(var V=f(Be),I=V.next();!I.done;I=V.next()){var $=t(I.value,2),le=$[0],At=$[1];At.baseName&&(At.base=r.getType(Be,At.baseName));try{for(var ne=(we=void 0,f(At.fields)),ue=ne.next();!ue.done;ue=ne.next()){var Oe=ue.value;Oe.type=r.getType(Be,Oe.typeName)}}catch(ke){we={error:ke}}finally{try{ue&&!ue.done&&(et=ne.return)&&et.call(ne)}finally{if(we)throw we.error}}}}catch(Se){ae={error:Se}}finally{try{I&&!I.done&&(Ie=V.return)&&Ie.call(V)}finally{if(ae)throw ae.error}}return Be};r.getTypesFromAbi=G;var J=function(H){return H.substr(6,2)+H.substr(4,2)+H.substr(2,2)+H.substr(0,2)},X=function(H,B){var q=H.header?H.header.timestamp:H.timestamp,re=parseInt(J(H.id.substr(16,8)),16);return{expiration:r.timePointSecToDate(r.dateToTimePointSec(q)+B),ref_block_num:H.block_num&65535,ref_block_prefix:re}};r.transactionHeader=X;var ve=function(H,B,q,re,ie,Pe){var Me=H.actions.get(q);if(!Me)throw new Error("Unknown action "+q+" in contract "+B);var Y=new o({textEncoder:ie,textDecoder:Pe});return Me.serialize(Y,re),r.arrayToHex(Y.asUint8Array())};r.serializeActionData=ve;var de=function(H,B,q,re,ie,Pe,Me){return{account:B,name:q,authorization:re,data:r.serializeActionData(H,B,q,ie,Pe,Me)}};r.serializeAction=de;var ce=function(H,B,q,re,ie,Pe){var Me=H.actions.get(q);if(typeof re=="string"&&(re=r.hexToUint8Array(re)),!Me)throw new Error("Unknown action "+q+" in contract "+B);var Y=new o({textDecoder:Pe,textEncoder:ie});return Y.pushArray(re),Me.deserialize(Y)};r.deserializeActionData=ce;var Q=function(H,B,q,re,ie,Pe,Me){return{account:B,name:q,authorization:re,data:r.deserializeActionData(H,B,q,ie,Pe,Me)}};r.deserializeAction=Q;var W=function(H,B){var q,re,ie,Pe,Me,Y,ae,Ie,we;B===null?(q=t([_e.null_t,B],2),Ie=q[0],we=q[1]):typeof B=="string"?(re=t([_e.string,B],2),Ie=re[0],we=re[1]):typeof B=="number"?(ie=t([_e.int32,B],2),Ie=ie[0],we=ie[1]):B instanceof Uint8Array?(Pe=t([_e.bytes,B],2),Ie=Pe[0],we=Pe[1]):Array.isArray(B)?(Me=t([_e.any_array,B],2),Ie=Me[0],we=Me[1]):Object.keys(B).length===2&&B.hasOwnProperty("type")&&B.hasOwnProperty("value")?(Y=t([_e[B.type],B.value],2),Ie=Y[0],we=Y[1]):(ae=t([_e.any_object,B],2),Ie=ae[0],we=ae[1]),H.pushVaruint32(Ie.index),Ie.type.serialize(H,we)};r.serializeAnyvar=W;var ee=function(H,B){var q=H.getVaruint32();if(q>=xe.length)throw new Error("Tried to deserialize unknown anyvar type");var re=xe[q],ie=re.type.deserialize(H,B);return B&&B.options.useShortForm||re.useShortForm?ie:{type:re.type.name,value:ie}};r.deserializeAnyvar=ee;var Ce=function(H){return r.deserializeAnyvar(H,new a({useShortForm:!0}))};r.deserializeAnyvarShort=Ce;var pe=function(H,B){var q,re,ie=Object.entries(B);H.pushVaruint32(ie.length);try{for(var Pe=f(ie),Me=Pe.next();!Me.done;Me=Pe.next()){var Y=t(Me.value,2),ae=Y[0],Ie=Y[1];H.pushString(ae),r.serializeAnyvar(H,Ie)}}catch(we){q={error:we}}finally{try{Me&&!Me.done&&(re=Pe.return)&&re.call(Pe)}finally{if(q)throw q.error}}};r.serializeAnyObject=pe;var be=function(H,B){for(var q=H.getVaruint32(),re={},ie=0;ie0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]0)&&!(f=n.next()).done;)i.push(f.value)}catch(o){a={error:o}}finally{try{f&&!f.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Sy=ge&&ge.__spreadArray||function(r,e){for(var t=0,n=e.length,f=r.length;t=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(za,"__esModule",{value:!0});za.ActionBuilder=za.TransactionBuilder=za.Api=void 0;var f_=bf,Ut=xv,eX=function(){function r(e){this.contracts=new Map,this.cachedAbis=new Map,this.transactionExtensions=[{id:1,type:"resource_payer",keys:["payer","max_net_bytes","max_cpu_us","max_memory_bytes"]}],this.rpc=e.rpc,this.authorityProvider=e.authorityProvider||e.rpc,this.abiProvider=e.abiProvider||e.rpc,this.signatureProvider=e.signatureProvider,this.chainId=e.chainId,this.textEncoder=e.textEncoder,this.textDecoder=e.textDecoder,this.abiTypes=Ut.getTypesFromAbi(Ut.createAbiTypes()),this.transactionTypes=Ut.getTypesFromAbi(Ut.createTransactionTypes())}return r.prototype.rawAbiToJson=function(e){var t=new Ut.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder,array:e});if(!Ut.supportedAbiVersion(t.getString()))throw new Error("Unsupported abi version");return t.restartRead(),this.abiTypes.get("abi_def").deserialize(t)},r.prototype.jsonToRawAbi=function(e){var t=new Ut.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});if(this.abiTypes.get("abi_def").serialize(t,e),!Ut.supportedAbiVersion(t.getString()))throw new Error("Unsupported abi version");return t.asUint8Array()},r.prototype.getCachedAbi=function(e,t){return t===void 0&&(t=!1),Jr(this,void 0,void 0,function(){var n,f,i,a;return Xr(this,function(o){switch(o.label){case 0:if(!t&&this.cachedAbis.get(e))return[2,this.cachedAbis.get(e)];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.abiProvider.getRawAbi(e)];case 2:return f=o.sent().abi,i=this.rawAbiToJson(f),n={rawAbi:f,abi:i},[3,4];case 3:throw a=o.sent(),a.message="fetching abi for "+e+": "+a.message,a;case 4:if(!n)throw new Error("Missing abi for "+e);return this.cachedAbis.set(e,n),[2,n]}})})},r.prototype.getAbi=function(e,t){return t===void 0&&(t=!1),Jr(this,void 0,void 0,function(){return Xr(this,function(n){switch(n.label){case 0:return[4,this.getCachedAbi(e,t)];case 1:return[2,n.sent().abi]}})})},r.prototype.getTransactionAbis=function(e,t){return t===void 0&&(t=!1),Jr(this,void 0,void 0,function(){var n,f,i,a,o=this;return Xr(this,function(l){return n=(e.context_free_actions||[]).concat(e.actions),f=n.map(function(s){return s.account}),i=new Set(f),a=Sy([],i_(i)).map(function(s){return Jr(o,void 0,void 0,function(){var u;return Xr(this,function(y){switch(y.label){case 0:return u={accountName:s},[4,this.getCachedAbi(s,t)];case 1:return[2,(u.abi=y.sent().rawAbi,u)]}})})}),[2,Promise.all(a)]})})},r.prototype.getContract=function(e,t){return t===void 0&&(t=!1),Jr(this,void 0,void 0,function(){var n,f,i,a,o,l,s,u,y,x,_;return Xr(this,function(S){switch(S.label){case 0:return!t&&this.contracts.get(e)?[2,this.contracts.get(e)]:[4,this.getAbi(e,t)];case 1:n=S.sent(),f=Ut.getTypesFromAbi(Ut.createInitialTypes(),n),i=new Map;try{for(a=og(n.actions),o=a.next();!o.done;o=a.next())l=o.value,s=l.name,u=l.type,i.set(s,Ut.getType(f,u))}catch(C){x={error:C}}finally{try{o&&!o.done&&(_=a.return)&&_.call(a)}finally{if(x)throw x.error}}return y={types:f,actions:i},this.contracts.set(e,y),[2,y]}})})},r.prototype.serialize=function(e,t,n){this.transactionTypes.get(t).serialize(e,n)},r.prototype.deserialize=function(e,t){return this.transactionTypes.get(t).deserialize(e)},r.prototype.serializeTransaction=function(e){var t=new Ut.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});return this.serialize(t,"transaction",vi({max_net_usage_words:0,max_cpu_usage_ms:0,delay_sec:0,context_free_actions:[],actions:[],transaction_extensions:[]},e)),t.asUint8Array()},r.prototype.serializeContextFreeData=function(e){var t,n;if(!e||!e.length)return null;var f=new Ut.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});f.pushVaruint32(e.length);try{for(var i=og(e),a=i.next();!a.done;a=i.next()){var o=a.value;f.pushBytes(o)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return f.asUint8Array()},r.prototype.deserializeTransaction=function(e){var t=new Ut.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder});return t.pushArray(e),this.deserialize(t,"transaction")},r.prototype.serializeTransactionExtensions=function(e){var t=[];if(e.resource_payer){var n=new Ut.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder}),f=Ut.getTypesFromAbi(Ut.createTransactionExtensionTypes());f.get("resource_payer").serialize(n,e.resource_payer),t=Sy(Sy([],i_(t)),[[1,Ut.arrayToHex(n.asUint8Array())]])}return t},r.prototype.deserializeTransactionExtensions=function(e){var t=this,n={};return e.forEach(function(f){var i=t.transactionExtensions.find(function(s){return s.id===f[0]});if(i===void 0)throw new Error("Transaction Extension could not be determined: "+f);var a=Ut.getTypesFromAbi(Ut.createTransactionExtensionTypes()),o=new Ut.SerialBuffer({textEncoder:t.textEncoder,textDecoder:t.textDecoder});o.pushArray(Ut.hexToUint8Array(f[1]));var l=a.get(i.type).deserialize(o);f[0]===1&&(l.max_net_bytes=Number(l.max_net_bytes),l.max_cpu_us=Number(l.max_cpu_us),l.max_memory_bytes=Number(l.max_memory_bytes),n.resource_payer=l)}),n},r.prototype.deleteTransactionExtensionObjects=function(e){return delete e.resource_payer,e},r.prototype.serializeActions=function(e){return Jr(this,void 0,void 0,function(){var t=this;return Xr(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(f){return Jr(t,void 0,void 0,function(){var i,a,o,l,s;return Xr(this,function(u){switch(u.label){case 0:return i=f.account,a=f.name,o=f.authorization,l=f.data,[4,this.getContract(i)];case 1:return s=u.sent(),typeof l!="object"?[2,f]:[2,Ut.serializeAction(s,i,a,o,l,this.textEncoder,this.textDecoder)]}})})}))];case 1:return[2,n.sent()]}})})},r.prototype.deserializeActions=function(e){return Jr(this,void 0,void 0,function(){var t=this;return Xr(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(f){var i=f.account,a=f.name,o=f.authorization,l=f.data;return Jr(t,void 0,void 0,function(){var s;return Xr(this,function(u){switch(u.label){case 0:return[4,this.getContract(i)];case 1:return s=u.sent(),[2,Ut.deserializeAction(s,i,a,o,l,this.textEncoder,this.textDecoder)]}})})}))];case 1:return[2,n.sent()]}})})},r.prototype.deserializeTransactionWithActions=function(e){return Jr(this,void 0,void 0,function(){var t,n,f;return Xr(this,function(i){switch(i.label){case 0:return typeof e=="string"&&(e=Ut.hexToUint8Array(e)),t=this.deserializeTransaction(e),[4,this.deserializeActions(t.context_free_actions)];case 1:return n=i.sent(),[4,this.deserializeActions(t.actions)];case 2:return f=i.sent(),[2,vi(vi({},t),{context_free_actions:n,actions:f})]}})})},r.prototype.deflateSerializedArray=function(e){return f_.deflate(e,{level:9})},r.prototype.inflateSerializedArray=function(e){return f_.inflate(e)},r.prototype.transact=function(e,t){var n=t===void 0?{}:t,f=n.broadcast,i=f===void 0?!0:f,a=n.sign,o=a===void 0?!0:a,l=n.readOnlyTrx,s=n.returnFailureTraces,u=n.requiredKeys,y=n.compression,x=n.blocksBehind,_=n.useLastIrreversible,S=n.expireSeconds;return Jr(this,void 0,void 0,function(){var C,M,k,R,O,D,j,K;return Xr(this,function(Z){switch(Z.label){case 0:if(typeof x=="number"&&_)throw new Error("Use either blocksBehind or useLastIrreversible");return this.chainId?[3,2]:[4,this.rpc.get_info()];case 1:C=Z.sent(),this.chainId=C.chain_id,Z.label=2;case 2:return(typeof x=="number"||_)&&S?[4,this.generateTapos(C,e,x,_,S)]:[3,4];case 3:e=Z.sent(),Z.label=4;case 4:if(!this.hasRequiredTaposFields(e))throw new Error("Required configuration or TAPOS fields are not present");return[4,this.getTransactionAbis(e)];case 5:return M=Z.sent(),k=[vi({},e)],K={},[4,this.serializeTransactionExtensions(e)];case 6:return K.transaction_extensions=Z.sent(),[4,this.serializeActions(e.context_free_actions||[])];case 7:return K.context_free_actions=Z.sent(),[4,this.serializeActions(e.actions)];case 8:return e=vi.apply(void 0,k.concat([(K.actions=Z.sent(),K)])),e=this.deleteTransactionExtensionObjects(e),R=this.serializeTransaction(e),O=this.serializeContextFreeData(e.context_free_data),D={serializedTransaction:R,serializedContextFreeData:O,signatures:[]},o?u?[3,11]:[4,this.signatureProvider.getAvailableKeys()]:[3,13];case 9:return j=Z.sent(),[4,this.authorityProvider.getRequiredKeys({transaction:e,availableKeys:j})];case 10:u=Z.sent(),Z.label=11;case 11:return[4,this.signatureProvider.sign({chainId:this.chainId,requiredKeys:u,serializedTransaction:R,serializedContextFreeData:O,abis:M})];case 12:D=Z.sent(),Z.label=13;case 13:return i?y?[2,this.pushCompressedSignedTransaction(D,l,s)]:[2,this.pushSignedTransaction(D,l,s)]:[2,D]}})})},r.prototype.query=function(e,t,n,f){var i=f.sign,a=f.requiredKeys,o=f.authorization,l=o===void 0?[]:o;return Jr(this,void 0,void 0,function(){var s,u,y,x,_,S,C,M,k,R,O;return Xr(this,function(D){switch(D.label){case 0:return[4,this.rpc.get_info()];case 1:return s=D.sent(),[4,this.tryRefBlockFromGetInfo(s)];case 2:return u=D.sent(),y=new Ut.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder}),Ut.serializeQuery(y,n),x=vi(vi({},Ut.transactionHeader(u,60*30)),{context_free_actions:[],actions:[{account:e,name:"queryit",authorization:l,data:Ut.arrayToHex(y.asUint8Array())}]}),_=this.serializeTransaction(x),S=[],i?[4,this.getTransactionAbis(x)]:[3,8];case 3:return C=D.sent(),a?[3,6]:[4,this.signatureProvider.getAvailableKeys()];case 4:return M=D.sent(),[4,this.authorityProvider.getRequiredKeys({transaction:x,availableKeys:M})];case 5:a=D.sent(),D.label=6;case 6:return[4,this.signatureProvider.sign({chainId:this.chainId,requiredKeys:a,serializedTransaction:_,serializedContextFreeData:null,abis:C})];case 7:k=D.sent(),S=k.signatures,D.label=8;case 8:return[4,this.rpc.send_transaction({signatures:S,compression:0,serializedTransaction:_})];case 9:return R=D.sent(),O=new Ut.SerialBuffer({textEncoder:this.textEncoder,textDecoder:this.textDecoder,array:Ut.hexToUint8Array(R.processed.action_traces[0][1].return_value)}),t?[2,Ut.deserializeAnyvarShort(O)]:[2,Ut.deserializeAnyvar(O)]}})})},r.prototype.pushSignedTransaction=function(e,t,n){var f=e.signatures,i=e.serializedTransaction,a=e.serializedContextFreeData;return t===void 0&&(t=!1),n===void 0&&(n=!1),Jr(this,void 0,void 0,function(){return Xr(this,function(o){return t?[2,this.rpc.push_ro_transaction({signatures:f,serializedTransaction:i,serializedContextFreeData:a},n)]:[2,this.rpc.push_transaction({signatures:f,serializedTransaction:i,serializedContextFreeData:a})]})})},r.prototype.pushCompressedSignedTransaction=function(e,t,n){var f=e.signatures,i=e.serializedTransaction,a=e.serializedContextFreeData;return t===void 0&&(t=!1),n===void 0&&(n=!1),Jr(this,void 0,void 0,function(){var o,l;return Xr(this,function(s){return o=this.deflateSerializedArray(i),l=this.deflateSerializedArray(a||new Uint8Array(0)),t?[2,this.rpc.push_ro_transaction({signatures:f,compression:1,serializedTransaction:o,serializedContextFreeData:l},n)]:[2,this.rpc.push_transaction({signatures:f,compression:1,serializedTransaction:o,serializedContextFreeData:l})]})})},r.prototype.generateTapos=function(e,t,n,f,i){return Jr(this,void 0,void 0,function(){var a,o,l,s;return Xr(this,function(u){switch(u.label){case 0:return e?[3,2]:[4,this.rpc.get_info()];case 1:e=u.sent(),u.label=2;case 2:return f?[4,this.tryRefBlockFromGetInfo(e)]:[3,4];case 3:return a=u.sent(),[2,vi(vi({},Ut.transactionHeader(a,i)),t)];case 4:return o=e.head_block_num-n,o<=e.last_irreversible_block_num?[4,this.tryGetBlockInfo(o)]:[3,6];case 5:return s=u.sent(),[3,8];case 6:return[4,this.tryGetBlockHeaderState(o)];case 7:s=u.sent(),u.label=8;case 8:return l=s,[2,vi(vi({},Ut.transactionHeader(l,i)),t)]}})})},r.prototype.hasRequiredTaposFields=function(e){var t=e.expiration,n=e.ref_block_num,f=e.ref_block_prefix;return!!(t&&typeof n=="number"&&typeof f=="number")},r.prototype.tryGetBlockHeaderState=function(e){return Jr(this,void 0,void 0,function(){return Xr(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,4]),[4,this.rpc.get_block_header_state(e)];case 1:return[2,t.sent()];case 2:return t.sent(),[4,this.tryGetBlockInfo(e)];case 3:return[2,t.sent()];case 4:return[2]}})})},r.prototype.tryGetBlockInfo=function(e){return Jr(this,void 0,void 0,function(){return Xr(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,4]),[4,this.rpc.get_block_info(e)];case 1:return[2,t.sent()];case 2:return t.sent(),[4,this.rpc.get_block(e)];case 3:return[2,t.sent()];case 4:return[2]}})})},r.prototype.tryRefBlockFromGetInfo=function(e){return Jr(this,void 0,void 0,function(){var t;return Xr(this,function(n){switch(n.label){case 0:return e.hasOwnProperty("last_irreversible_block_id")&&e.hasOwnProperty("last_irreversible_block_num")&&e.hasOwnProperty("last_irreversible_block_time")?[2,{block_num:e.last_irreversible_block_num,id:e.last_irreversible_block_id,timestamp:e.last_irreversible_block_time}]:[3,1];case 1:return[4,this.tryGetBlockInfo(e.last_irreversible_block_num)];case 2:return t=n.sent(),[2,{block_num:t.block_num,id:t.id,timestamp:t.timestamp}]}})})},r.prototype.with=function(e){return new wv(this,e)},r.prototype.buildTransaction=function(e){var t=new OC(this);return e?e(t):t},r}();za.Api=eX;var OC=function(){function r(e){this.actions=[],this.contextFreeGroups=[],this.api=e}return r.prototype.with=function(e){var t=new wv(this.api,e);return this.actions.push(t),t},r.prototype.associateContextFree=function(e){return this.contextFreeGroups.push(e),this},r.prototype.send=function(e){return Jr(this,void 0,void 0,function(){var t,n,f,i=this;return Xr(this,function(a){switch(a.label){case 0:return t=[],n=[],f=this.actions.map(function(o){return o.serializedData}),[4,Promise.all(this.contextFreeGroups.map(function(o){return Jr(i,void 0,void 0,function(){var l,s,u,y;return Xr(this,function(x){return l=o({cfd:t.length,cfa:n.length}),s=l.action,u=l.contextFreeAction,y=l.contextFreeData,s&&f.push(s),u&&n.push(u),y&&t.push(y),[2]})})}))];case 1:return a.sent(),this.contextFreeGroups=[],this.actions=[],[4,this.api.transact({context_free_data:t,context_free_actions:n,actions:f},e)];case 2:return[2,a.sent()]}})})},r}();za.TransactionBuilder=OC;var wv=function(){function r(e,t){this.api=e,this.accountName=t}return r.prototype.as=function(e){e===void 0&&(e=[]);var t=[];return e&&typeof e=="string"?t=[{actor:e,permission:"active"}]:t=e,new tX(this,this.api,this.accountName,t)},r}();za.ActionBuilder=wv;var tX=function(){function r(e,t,n,f){var i,a,o=this,l=t.cachedAbis.get(n);if(!l)throw new Error("ABI must be cached before using ActionBuilder, run api.getAbi()");var s=Ut.getTypesFromAbi(Ut.createInitialTypes(),l.abi),u=new Map;try{for(var y=og(l.abi.actions),x=y.next();!x.done;x=y.next()){var _=x.value,S=_.name,C=_.type;u.set(S,Ut.getType(s,C))}}catch(M){i={error:M}}finally{try{x&&!x.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}u.forEach(function(M,k){var R;Object.assign(o,(R={},R[k]=function(){for(var O=[],D=0;D0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(m5,"__esModule",{value:!0});m5.JsonRpc=void 0;var a_=gf,ky=gd,pa=function(r){var e,t,n="";try{for(var f=iX(r),i=f.next();!i.done;i=f.next()){var a=i.value;n+=("00"+a.toString(16)).slice(-2)}}catch(o){e={error:o}}finally{try{i&&!i.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return n},fX=function(){function r(e,t){t===void 0&&(t={}),this.endpoint=e.replace(/\/$/,""),t.fetch?this.fetchBuiltin=t.fetch:this.fetchBuiltin=ge.fetch}return r.prototype.fetch=function(e,t){return qt(this,void 0,void 0,function(){var n,f,i,a;return Gt(this,function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),i=this.fetchBuiltin,[4,i(this.endpoint+e,{body:JSON.stringify(t),method:"POST"})];case 1:return n=o.sent(),[4,n.json()];case 2:if(f=o.sent(),f.processed&&f.processed.except)throw new ky.RpcError(f);if(f.result&&f.result.except)throw new ky.RpcError(f);return[3,4];case 3:throw a=o.sent(),a.isFetchError=!0,a;case 4:if(!n.ok)throw new ky.RpcError(f);return[2,f]}})})},r.prototype.abi_bin_to_json=function(e,t,n){return qt(this,void 0,void 0,function(){return Gt(this,function(f){switch(f.label){case 0:return[4,this.fetch("/v1/chain/abi_bin_to_json",{code:e,action:t,binargs:n})];case 1:return[2,f.sent()]}})})},r.prototype.abi_json_to_bin=function(e,t,n){return qt(this,void 0,void 0,function(){return Gt(this,function(f){switch(f.label){case 0:return[4,this.fetch("/v1/chain/abi_json_to_bin",{code:e,action:t,args:n})];case 1:return[2,f.sent()]}})})},r.prototype.get_abi=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_abi",{account_name:e})];case 1:return[2,t.sent()]}})})},r.prototype.get_account=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_account",{account_name:e})];case 1:return[2,t.sent()]}})})},r.prototype.get_accounts_by_authorizers=function(e,t){return qt(this,void 0,void 0,function(){return Gt(this,function(n){switch(n.label){case 0:return[4,this.fetch("/v1/chain/get_accounts_by_authorizers",{accounts:e,keys:t})];case 1:return[2,n.sent()]}})})},r.prototype.get_activated_protocol_features=function(e){var t=e.limit,n=t===void 0?10:t,f=e.search_by_block_num,i=f===void 0?!1:f,a=e.reverse,o=a===void 0?!1:a,l=e.lower_bound,s=l===void 0?null:l,u=e.upper_bound,y=u===void 0?null:u;return qt(this,void 0,void 0,function(){return Gt(this,function(x){switch(x.label){case 0:return[4,this.fetch("/v1/chain/get_activated_protocol_features",{lower_bound:s,upper_bound:y,limit:n,search_by_block_num:i,reverse:o})];case 1:return[2,x.sent()]}})})},r.prototype.get_block_header_state=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_block_header_state",{block_num_or_id:e})];case 1:return[2,t.sent()]}})})},r.prototype.get_block_info=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_block_info",{block_num:e})];case 1:return[2,t.sent()]}})})},r.prototype.get_block=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_block",{block_num_or_id:e})];case 1:return[2,t.sent()]}})})},r.prototype.get_code=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_code",{account_name:e,code_as_wasm:!0})];case 1:return[2,t.sent()]}})})},r.prototype.get_code_hash=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_code_hash",{account_name:e})];case 1:return[2,t.sent()]}})})},r.prototype.get_currency_balance=function(e,t,n){return n===void 0&&(n=null),qt(this,void 0,void 0,function(){return Gt(this,function(f){switch(f.label){case 0:return[4,this.fetch("/v1/chain/get_currency_balance",{code:e,account:t,symbol:n})];case 1:return[2,f.sent()]}})})},r.prototype.get_currency_stats=function(e,t){return qt(this,void 0,void 0,function(){return Gt(this,function(n){switch(n.label){case 0:return[4,this.fetch("/v1/chain/get_currency_stats",{code:e,symbol:t})];case 1:return[2,n.sent()]}})})},r.prototype.get_info=function(){return qt(this,void 0,void 0,function(){return Gt(this,function(e){switch(e.label){case 0:return[4,this.fetch("/v1/chain/get_info",{})];case 1:return[2,e.sent()]}})})},r.prototype.get_producer_schedule=function(){return qt(this,void 0,void 0,function(){return Gt(this,function(e){switch(e.label){case 0:return[4,this.fetch("/v1/chain/get_producer_schedule",{})];case 1:return[2,e.sent()]}})})},r.prototype.get_producers=function(e,t,n){return e===void 0&&(e=!0),t===void 0&&(t=""),n===void 0&&(n=50),qt(this,void 0,void 0,function(){return Gt(this,function(f){switch(f.label){case 0:return[4,this.fetch("/v1/chain/get_producers",{json:e,lower_bound:t,limit:n})];case 1:return[2,f.sent()]}})})},r.prototype.get_raw_code_and_abi=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_raw_code_and_abi",{account_name:e})];case 1:return[2,t.sent()]}})})},r.prototype.getRawAbi=function(e){return qt(this,void 0,void 0,function(){var t,n;return Gt(this,function(f){switch(f.label){case 0:return[4,this.get_raw_abi(e)];case 1:return t=f.sent(),n=a_.base64ToBinary(t.abi),[2,{accountName:t.account_name,abi:n}]}})})},r.prototype.get_raw_abi=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/chain/get_raw_abi",{account_name:e})];case 1:return[2,t.sent()]}})})},r.prototype.get_scheduled_transactions=function(e,t,n){return e===void 0&&(e=!0),t===void 0&&(t=""),n===void 0&&(n=50),qt(this,void 0,void 0,function(){return Gt(this,function(f){switch(f.label){case 0:return[4,this.fetch("/v1/chain/get_scheduled_transactions",{json:e,lower_bound:t,limit:n})];case 1:return[2,f.sent()]}})})},r.prototype.get_table_rows=function(e){var t=e.json,n=t===void 0?!0:t,f=e.code,i=e.scope,a=e.table,o=e.lower_bound,l=o===void 0?"":o,s=e.upper_bound,u=s===void 0?"":s,y=e.index_position,x=y===void 0?1:y,_=e.key_type,S=_===void 0?"":_,C=e.limit,M=C===void 0?10:C,k=e.reverse,R=k===void 0?!1:k,O=e.show_payer,D=O===void 0?!1:O;return qt(this,void 0,void 0,function(){return Gt(this,function(j){switch(j.label){case 0:return[4,this.fetch("/v1/chain/get_table_rows",{json:n,code:f,scope:i,table:a,lower_bound:l,upper_bound:u,index_position:x,key_type:S,limit:M,reverse:R,show_payer:D})];case 1:return[2,j.sent()]}})})},r.prototype.get_kv_table_rows=function(e){var t=e.json,n=t===void 0?!0:t,f=e.code,i=e.table,a=e.index_name,o=e.encode_type,l=o===void 0?"bytes":o,s=e.index_value,u=e.lower_bound,y=e.upper_bound,x=e.limit,_=x===void 0?10:x,S=e.reverse,C=S===void 0?!1:S,M=e.show_payer,k=M===void 0?!1:M;return qt(this,void 0,void 0,function(){return Gt(this,function(R){switch(R.label){case 0:return[4,this.fetch("/v1/chain/get_kv_table_rows",{json:n,code:f,table:i,index_name:a,encode_type:l,index_value:s,lower_bound:u,upper_bound:y,limit:_,reverse:C,show_payer:k})];case 1:return[2,R.sent()]}})})},r.prototype.get_table_by_scope=function(e){var t=e.code,n=e.table,f=e.lower_bound,i=f===void 0?"":f,a=e.upper_bound,o=a===void 0?"":a,l=e.limit,s=l===void 0?10:l;return qt(this,void 0,void 0,function(){return Gt(this,function(u){switch(u.label){case 0:return[4,this.fetch("/v1/chain/get_table_by_scope",{code:t,table:n,lower_bound:i,upper_bound:o,limit:s})];case 1:return[2,u.sent()]}})})},r.prototype.getRequiredKeys=function(e){return qt(this,void 0,void 0,function(){var t;return Gt(this,function(n){switch(n.label){case 0:return t=a_.convertLegacyPublicKeys,[4,this.fetch("/v1/chain/get_required_keys",{transaction:e.transaction,available_keys:e.availableKeys})];case 1:return[2,t.apply(void 0,[n.sent().required_keys])]}})})},r.prototype.push_transaction=function(e){var t=e.signatures,n=e.compression,f=n===void 0?0:n,i=e.serializedTransaction,a=e.serializedContextFreeData;return qt(this,void 0,void 0,function(){return Gt(this,function(o){switch(o.label){case 0:return[4,this.fetch("/v1/chain/push_transaction",{signatures:t,compression:f,packed_context_free_data:pa(a||new Uint8Array(0)),packed_trx:pa(i)})];case 1:return[2,o.sent()]}})})},r.prototype.push_ro_transaction=function(e,t){var n=e.signatures,f=e.compression,i=f===void 0?0:f,a=e.serializedTransaction;return t===void 0&&(t=!1),qt(this,void 0,void 0,function(){return Gt(this,function(o){switch(o.label){case 0:return[4,this.fetch("/v1/chain/push_ro_transaction",{transaction:{signatures:n,compression:i,packed_context_free_data:pa(new Uint8Array(0)),packed_trx:pa(a)},return_failure_traces:t})];case 1:return[2,o.sent()]}})})},r.prototype.push_transactions=function(e){return qt(this,void 0,void 0,function(){var t;return Gt(this,function(n){switch(n.label){case 0:return t=e.map(function(f){var i=f.signatures,a=f.compression,o=a===void 0?0:a,l=f.serializedTransaction,s=f.serializedContextFreeData;return{signatures:i,compression:o,packed_context_free_data:pa(s||new Uint8Array(0)),packed_trx:pa(l)}}),[4,this.fetch("/v1/chain/push_transactions",t)];case 1:return[2,n.sent()]}})})},r.prototype.send_transaction=function(e){var t=e.signatures,n=e.compression,f=n===void 0?0:n,i=e.serializedTransaction,a=e.serializedContextFreeData;return qt(this,void 0,void 0,function(){return Gt(this,function(o){switch(o.label){case 0:return[4,this.fetch("/v1/chain/send_transaction",{signatures:t,compression:f,packed_context_free_data:pa(a||new Uint8Array(0)),packed_trx:pa(i)})];case 1:return[2,o.sent()]}})})},r.prototype.db_size_get=function(){return qt(this,void 0,void 0,function(){return Gt(this,function(e){switch(e.label){case 0:return[4,this.fetch("/v1/db_size/get",{})];case 1:return[2,e.sent()]}})})},r.prototype.trace_get_block=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/trace_api/get_block",{block_num:e})];case 1:return[2,t.sent()]}})})},r.prototype.history_get_actions=function(e,t,n){return t===void 0&&(t=null),n===void 0&&(n=null),qt(this,void 0,void 0,function(){return Gt(this,function(f){switch(f.label){case 0:return[4,this.fetch("/v1/history/get_actions",{account_name:e,pos:t,offset:n})];case 1:return[2,f.sent()]}})})},r.prototype.history_get_transaction=function(e,t){return t===void 0&&(t=null),qt(this,void 0,void 0,function(){return Gt(this,function(n){switch(n.label){case 0:return[4,this.fetch("/v1/history/get_transaction",{id:e,block_num_hint:t})];case 1:return[2,n.sent()]}})})},r.prototype.history_get_key_accounts=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/history/get_key_accounts",{public_key:e})];case 1:return[2,t.sent()]}})})},r.prototype.history_get_controlled_accounts=function(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){switch(t.label){case 0:return[4,this.fetch("/v1/history/get_controlled_accounts",{controlling_account:e})];case 1:return[2,t.sent()]}})})},r}();m5.JsonRpc=fX;var DC={};Object.defineProperty(DC,"__esModule",{value:!0});(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.Serialize=r.RpcError=r.RpcInterfaces=r.Numeric=r.JsonRpc=r.ApiInterfaces=r.Api=void 0;var e=za;Object.defineProperty(r,"Api",{enumerable:!0,get:function(){return e.Api}});var t=BC;r.ApiInterfaces=t;var n=m5;Object.defineProperty(r,"JsonRpc",{enumerable:!0,get:function(){return n.JsonRpc}});var f=gf;r.Numeric=f;var i=DC;r.RpcInterfaces=i;var a=gd;Object.defineProperty(r,"RpcError",{enumerable:!0,get:function(){return a.RpcError}});var o=xv;r.Serialize=o})(qI);var NC=globalThis&&globalThis.__awaiter||function(r,e,t,n){function f(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(u){try{s(n.next(u))}catch(y){a(y)}}function l(u){try{s(n.throw(u))}catch(y){a(y)}}function s(u){u.done?i(u.value):f(u.value).then(o,l)}s((n=n.apply(r,e||[])).next())})},UC=globalThis&&globalThis.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,f,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(s){return function(u){return l([s,u])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(t=0)),t;)try{if(n=1,f&&(i=s[0]&2?f.return:s[0]?f.throw||((i=f.return)&&i.call(f),0):f.next)&&!(i=i.call(f,s[1])).done)return i;switch(f=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,f=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]{try{this.getDb().then(f=>{let o=f.transaction(f0.TABLE_NAME,"readwrite").objectStore(f0.TABLE_NAME).get(e);o.onsuccess=()=>{t(o.result),f.close()},o.onerror=l=>{n(l)}})}catch(f){let i="IndexedDB interaction error.";f instanceof Error&&(i=f.message),console.log(f),n(i)}})}async saveKey(e,t,n,f){try{let i=await this.getDb(),o=i.transaction(f0.TABLE_NAME,"readwrite").objectStore(f0.TABLE_NAME),l={id:e,privateKey:t,publicKey:n,spki:f},s=o.put(l);s.onsuccess=()=>{i.close()}}catch(i){let a="IndexedDB interaction error.";i instanceof Error&&(a=i.message),console.log("Failed to store key: "+a)}}async getDb(){return new Promise(function(e,t){let n=indexedDB.open(f0.DB_NAME,1);n.onupgradeneeded=function(f){let i=f.target.result;i.objectStoreNames.contains(f0.TABLE_NAME)||i.createObjectStore(f0.TABLE_NAME,{keyPath:"id"})},n.onsuccess=function(f){let i=f.target.result;e(i)},n.onerror=function(f){t("Error opening database "+f.target.errorCode)}})}}Av=_v.KeyStore=f0;f0.DB_NAME="AttestationKeyStore";f0.TABLE_NAME="Keys";var bX=or(),Ev={},of={},ts={},oa={},LC=ge&&ge.__decorate||function(r,e,t,n){var f=arguments.length,i=f<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(i=(f<3?a(i):f>3?a(e,t,i):a(e,t))||i);return f>3&&i&&Object.defineProperty(e,t,i),i};Object.defineProperty(oa,"__esModule",{value:!0});oa.EpochTimeValidity=void 0;const D6=mr;class Tv{}LC([(0,D6.AsnProp)({type:D6.AsnPropTypes.Integer})],Tv.prototype,"notBefore",void 0);LC([(0,D6.AsnProp)({type:D6.AsnPropTypes.Integer})],Tv.prototype,"notAfter",void 0);oa.EpochTimeValidity=Tv;var xs=ge&&ge.__decorate||function(r,e,t,n){var f=arguments.length,i=f<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(i=(f<3?a(i):f>3?a(e,t,i):a(e,t))||i);return f>3&&i&&Object.defineProperty(e,t,i),i};Object.defineProperty(ts,"__esModule",{value:!0});ts.NFTOwnershipAttestation=ts.ERC721=void 0;const Ki=mr,yX=oa;class md{}xs([(0,Ki.AsnProp)({type:Ki.AsnPropTypes.OctetString})],md.prototype,"address",void 0);xs([(0,Ki.AsnProp)({type:Ki.AsnPropTypes.Integer})],md.prototype,"chainId",void 0);xs([(0,Ki.AsnProp)({type:Ki.AsnPropTypes.OctetString,optional:!0,repeated:"sequence"})],md.prototype,"tokenIds",void 0);ts.ERC721=md;class xd{constructor(){this.tokens=[]}}xs([(0,Ki.AsnProp)({type:Ki.AsnPropTypes.Any})],xd.prototype,"subjectPublicKey",void 0);xs([(0,Ki.AsnProp)({type:md,repeated:"sequence"})],xd.prototype,"tokens",void 0);xs([(0,Ki.AsnProp)({type:yX.EpochTimeValidity})],xd.prototype,"validity",void 0);xs([(0,Ki.AsnProp)({type:Ki.AsnPropTypes.OctetString,optional:!0})],xd.prototype,"context",void 0);ts.NFTOwnershipAttestation=xd;var wd={},w5=ge&&ge.__decorate||function(r,e,t,n){var f=arguments.length,i=f<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(i=(f<3?a(i):f>3?a(e,t,i):a(e,t))||i);return f>3&&i&&Object.defineProperty(e,t,i),i};Object.defineProperty(wd,"__esModule",{value:!0});wd.EthereumAddressAttestation=void 0;const rs=mr,gX=oa;class _d{}w5([(0,rs.AsnProp)({type:rs.AsnPropTypes.Any})],_d.prototype,"subjectPublicKey",void 0);w5([(0,rs.AsnProp)({type:rs.AsnPropTypes.OctetString})],_d.prototype,"ethereumAddress",void 0);w5([(0,rs.AsnProp)({type:gX.EpochTimeValidity})],_d.prototype,"validity",void 0);w5([(0,rs.AsnProp)({type:rs.AsnPropTypes.OctetString,optional:!0})],_d.prototype,"context",void 0);wd.EthereumAddressAttestation=_d;var bl=ge&&ge.__decorate||function(r,e,t,n){var f=arguments.length,i=f<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(i=(f<3?a(i):f>3?a(e,t,i):a(e,t))||i);return f>3&&i&&Object.defineProperty(e,t,i),i};Object.defineProperty(of,"__esModule",{value:!0});of.SignedLinkedAttestation=of.LinkedAttestation=void 0;const Qa=mr,vX=Un,mX=ts,xX=wd;let Oc=class{};bl([(0,Qa.AsnProp)({type:mX.NFTOwnershipAttestation,context:0})],Oc.prototype,"nftOwnership",void 0);bl([(0,Qa.AsnProp)({type:xX.EthereumAddressAttestation,context:1})],Oc.prototype,"ethereumAddress",void 0);Oc=bl([(0,Qa.AsnType)({type:Qa.AsnTypeTypes.Choice})],Oc);of.LinkedAttestation=Oc;class _5{}bl([(0,Qa.AsnProp)({type:Oc})],_5.prototype,"attestation",void 0);bl([(0,Qa.AsnProp)({type:vX.AlgorithmIdentifierASN})],_5.prototype,"signingAlgorithm",void 0);bl([(0,Qa.AsnProp)({type:Qa.AsnPropTypes.BitString})],_5.prototype,"signatureValue",void 0);of.SignedLinkedAttestation=_5;var ns={},ws=ge&&ge.__decorate||function(r,e,t,n){var f=arguments.length,i=f<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(a=r[o])&&(i=(f<3?a(i):f>3?a(e,t,i):a(e,t))||i);return f>3&&i&&Object.defineProperty(e,t,i),i};Object.defineProperty(ns,"__esModule",{value:!0});ns.SignedEthereumKeyLinkingAttestation=ns.EthereumKeyLinkingAttestation=void 0;const sf=mr,wX=oa,_X=Un,AX=of;class yl{}ws([(0,sf.AsnProp)({type:sf.AsnPropTypes.OctetString})],yl.prototype,"subjectEthereumAddress",void 0);ws([(0,sf.AsnProp)({type:AX.SignedLinkedAttestation})],yl.prototype,"linkedAttestation",void 0);ws([(0,sf.AsnProp)({type:wX.EpochTimeValidity})],yl.prototype,"validity",void 0);ws([(0,sf.AsnProp)({type:sf.AsnPropTypes.OctetString,optional:!0})],yl.prototype,"context",void 0);ns.EthereumKeyLinkingAttestation=yl;class A5{}ws([(0,sf.AsnProp)({type:yl})],A5.prototype,"ethereumKeyLinkingAttestation",void 0);ws([(0,sf.AsnProp)({type:_X.AlgorithmIdentifierASN})],A5.prototype,"signingAlgorithm",void 0);ws([(0,sf.AsnProp)({type:sf.AsnPropTypes.BitString})],A5.prototype,"signatureValue",void 0);ns.SignedEthereumKeyLinkingAttestation=A5;var E5={},Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});Ya.getValidFromAndExpiry=Ya.AbstractLinkedAttestation=void 0;const sh=mr,EX=of,ch=or(),My=nr,TX=Un;class SX{fromObject(e){this.linkedAttestation=e}fromBytes(e){this.linkedAttestation=sh.AsnParser.parse(e,EX.SignedLinkedAttestation)}fromBase64(e){this.fromBytes((0,ch.base64ToUint8array)(e))}getAttestationData(){return this.linkedAttestation.attestation[this.TYPE]}getSubjectPublicKey(){return this.getAttestationData()?.subjectPublicKey}getEncoded(){return new Uint8Array(sh.AsnSerializer.serialize(this.linkedAttestation))}getBase64(){return(0,ch.uint8arrayToBase64)(this.getEncoded())}sign(e){const t=sh.AsnSerializer.serialize(this.linkedAttestation.attestation[this.TYPE]);this.linkedAttestation.signingAlgorithm=new TX.AlgorithmIdentifierASN,this.linkedAttestation.signingAlgorithm.algorithm="1.2.840.10045.4.2",this.linkedAttestation.signatureValue=(0,ch.hexStringToUint8)(e.signRawBytesWithEthereum(Array.from(new Uint8Array(t))))}verify(e){const t=sh.AsnSerializer.serialize(this.getAttestationData());let n=(0,ch.hexStringToUint8)(My.ethers.utils.keccak256(new Uint8Array(t))),f=My.ethers.utils.recoverPublicKey(n,My.ethers.utils.splitSignature(new Uint8Array(this.linkedAttestation.signatureValue)));if(f.substring(2)!==e.getPublicKeyAsHexStr())throw new Error("Attestor public key does not match, expected "+e.getPublicKeyAsHexStr()+" got "+f.substring(2));let i=Math.round(Date.now()/1e3),a=this.getAttestationData();if(!a)throw new Error("Linked attestation getAttestationData error");if(a.validity.notBefore>i)throw new Error("Linked attestation is not yet valid");if(a.validity.notAftero)throw new Error("Linked attestation is not yet valid");if(l.validity.notAfter0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]299||i.status<200))return[3,6];a=void 0,o.label=2;case 2:return o.trys.push([2,4,,5]),[4,i.json()];case 3:return a=o.sent().error,[3,5];case 4:return o.sent(),a="HTTP Request error: "+i.statusText,[3,5];case 5:throw new Error(a);case 6:return[4,i.json()];case 7:return[2,o.sent()]}})})},r.createAndSignLinkAttestation=function(e,t,n){return Os(this,void 0,void 0,function(){var f;return Bs(this,function(i){switch(i.label){case 0:return f=new FC,f.create(e,t,3600+600,void 0,Math.round(Date.now()/1e3)-600),[4,f.sign(n)];case 1:return i.sent(),[2,f.getBase64()]}})})},r.HOLDING_KEY_ALGORITHM="RSASSA-PKCS1-v1_5",r.keyStore=new Av,r}(),VX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,f){n.__proto__=f}||function(n,f){for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&(n[i]=f[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cg=globalThis&&globalThis.__assign||function(){return cg=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]>24&255,N[z+1]=V>>16&255,N[z+2]=V>>8&255,N[z+3]=V&255,N[z+4]=I>>24&255,N[z+5]=I>>16&255,N[z+6]=I>>8&255,N[z+7]=I&255}function C(N,z,V,I,$){var le,ne=0;for(le=0;le<$;le++)ne|=N[z+le]^V[I+le];return(1&ne-1>>>8)-1}function M(N,z,V,I){return C(N,z,V,I,16)}function k(N,z,V,I){return C(N,z,V,I,32)}function R(N,z,V,I){for(var $=I[0]&255|(I[1]&255)<<8|(I[2]&255)<<16|(I[3]&255)<<24,le=V[0]&255|(V[1]&255)<<8|(V[2]&255)<<16|(V[3]&255)<<24,ne=V[4]&255|(V[5]&255)<<8|(V[6]&255)<<16|(V[7]&255)<<24,ue=V[8]&255|(V[9]&255)<<8|(V[10]&255)<<16|(V[11]&255)<<24,Oe=V[12]&255|(V[13]&255)<<8|(V[14]&255)<<16|(V[15]&255)<<24,Se=I[4]&255|(I[5]&255)<<8|(I[6]&255)<<16|(I[7]&255)<<24,ke=z[0]&255|(z[1]&255)<<8|(z[2]&255)<<16|(z[3]&255)<<24,vt=z[4]&255|(z[5]&255)<<8|(z[6]&255)<<16|(z[7]&255)<<24,Qe=z[8]&255|(z[9]&255)<<8|(z[10]&255)<<16|(z[11]&255)<<24,st=z[12]&255|(z[13]&255)<<8|(z[14]&255)<<16|(z[15]&255)<<24,lt=I[8]&255|(I[9]&255)<<8|(I[10]&255)<<16|(I[11]&255)<<24,dt=V[16]&255|(V[17]&255)<<8|(V[18]&255)<<16|(V[19]&255)<<24,gt=V[20]&255|(V[21]&255)<<8|(V[22]&255)<<16|(V[23]&255)<<24,pt=V[24]&255|(V[25]&255)<<8|(V[26]&255)<<16|(V[27]&255)<<24,yt=V[28]&255|(V[29]&255)<<8|(V[30]&255)<<16|(V[31]&255)<<24,bt=I[12]&255|(I[13]&255)<<8|(I[14]&255)<<16|(I[15]&255)<<24,rt=$,ot=le,Xe=ne,ft=ue,at=Oe,Je=Se,Ae=ke,Te=vt,Le=Qe,De=st,je=lt,Ge=dt,xt=gt,Pt=pt,Rt=yt,It=bt,fe,Nt=0;Nt<20;Nt+=2)fe=rt+xt|0,at^=fe<<7|fe>>>32-7,fe=at+rt|0,Le^=fe<<9|fe>>>32-9,fe=Le+at|0,xt^=fe<<13|fe>>>32-13,fe=xt+Le|0,rt^=fe<<18|fe>>>32-18,fe=Je+ot|0,De^=fe<<7|fe>>>32-7,fe=De+Je|0,Pt^=fe<<9|fe>>>32-9,fe=Pt+De|0,ot^=fe<<13|fe>>>32-13,fe=ot+Pt|0,Je^=fe<<18|fe>>>32-18,fe=je+Ae|0,Rt^=fe<<7|fe>>>32-7,fe=Rt+je|0,Xe^=fe<<9|fe>>>32-9,fe=Xe+Rt|0,Ae^=fe<<13|fe>>>32-13,fe=Ae+Xe|0,je^=fe<<18|fe>>>32-18,fe=It+Ge|0,ft^=fe<<7|fe>>>32-7,fe=ft+It|0,Te^=fe<<9|fe>>>32-9,fe=Te+ft|0,Ge^=fe<<13|fe>>>32-13,fe=Ge+Te|0,It^=fe<<18|fe>>>32-18,fe=rt+ft|0,ot^=fe<<7|fe>>>32-7,fe=ot+rt|0,Xe^=fe<<9|fe>>>32-9,fe=Xe+ot|0,ft^=fe<<13|fe>>>32-13,fe=ft+Xe|0,rt^=fe<<18|fe>>>32-18,fe=Je+at|0,Ae^=fe<<7|fe>>>32-7,fe=Ae+Je|0,Te^=fe<<9|fe>>>32-9,fe=Te+Ae|0,at^=fe<<13|fe>>>32-13,fe=at+Te|0,Je^=fe<<18|fe>>>32-18,fe=je+De|0,Ge^=fe<<7|fe>>>32-7,fe=Ge+je|0,Le^=fe<<9|fe>>>32-9,fe=Le+Ge|0,De^=fe<<13|fe>>>32-13,fe=De+Le|0,je^=fe<<18|fe>>>32-18,fe=It+Rt|0,xt^=fe<<7|fe>>>32-7,fe=xt+It|0,Pt^=fe<<9|fe>>>32-9,fe=Pt+xt|0,Rt^=fe<<13|fe>>>32-13,fe=Rt+Pt|0,It^=fe<<18|fe>>>32-18;rt=rt+$|0,ot=ot+le|0,Xe=Xe+ne|0,ft=ft+ue|0,at=at+Oe|0,Je=Je+Se|0,Ae=Ae+ke|0,Te=Te+vt|0,Le=Le+Qe|0,De=De+st|0,je=je+lt|0,Ge=Ge+dt|0,xt=xt+gt|0,Pt=Pt+pt|0,Rt=Rt+yt|0,It=It+bt|0,N[0]=rt>>>0&255,N[1]=rt>>>8&255,N[2]=rt>>>16&255,N[3]=rt>>>24&255,N[4]=ot>>>0&255,N[5]=ot>>>8&255,N[6]=ot>>>16&255,N[7]=ot>>>24&255,N[8]=Xe>>>0&255,N[9]=Xe>>>8&255,N[10]=Xe>>>16&255,N[11]=Xe>>>24&255,N[12]=ft>>>0&255,N[13]=ft>>>8&255,N[14]=ft>>>16&255,N[15]=ft>>>24&255,N[16]=at>>>0&255,N[17]=at>>>8&255,N[18]=at>>>16&255,N[19]=at>>>24&255,N[20]=Je>>>0&255,N[21]=Je>>>8&255,N[22]=Je>>>16&255,N[23]=Je>>>24&255,N[24]=Ae>>>0&255,N[25]=Ae>>>8&255,N[26]=Ae>>>16&255,N[27]=Ae>>>24&255,N[28]=Te>>>0&255,N[29]=Te>>>8&255,N[30]=Te>>>16&255,N[31]=Te>>>24&255,N[32]=Le>>>0&255,N[33]=Le>>>8&255,N[34]=Le>>>16&255,N[35]=Le>>>24&255,N[36]=De>>>0&255,N[37]=De>>>8&255,N[38]=De>>>16&255,N[39]=De>>>24&255,N[40]=je>>>0&255,N[41]=je>>>8&255,N[42]=je>>>16&255,N[43]=je>>>24&255,N[44]=Ge>>>0&255,N[45]=Ge>>>8&255,N[46]=Ge>>>16&255,N[47]=Ge>>>24&255,N[48]=xt>>>0&255,N[49]=xt>>>8&255,N[50]=xt>>>16&255,N[51]=xt>>>24&255,N[52]=Pt>>>0&255,N[53]=Pt>>>8&255,N[54]=Pt>>>16&255,N[55]=Pt>>>24&255,N[56]=Rt>>>0&255,N[57]=Rt>>>8&255,N[58]=Rt>>>16&255,N[59]=Rt>>>24&255,N[60]=It>>>0&255,N[61]=It>>>8&255,N[62]=It>>>16&255,N[63]=It>>>24&255}function O(N,z,V,I){for(var $=I[0]&255|(I[1]&255)<<8|(I[2]&255)<<16|(I[3]&255)<<24,le=V[0]&255|(V[1]&255)<<8|(V[2]&255)<<16|(V[3]&255)<<24,ne=V[4]&255|(V[5]&255)<<8|(V[6]&255)<<16|(V[7]&255)<<24,ue=V[8]&255|(V[9]&255)<<8|(V[10]&255)<<16|(V[11]&255)<<24,Oe=V[12]&255|(V[13]&255)<<8|(V[14]&255)<<16|(V[15]&255)<<24,Se=I[4]&255|(I[5]&255)<<8|(I[6]&255)<<16|(I[7]&255)<<24,ke=z[0]&255|(z[1]&255)<<8|(z[2]&255)<<16|(z[3]&255)<<24,vt=z[4]&255|(z[5]&255)<<8|(z[6]&255)<<16|(z[7]&255)<<24,Qe=z[8]&255|(z[9]&255)<<8|(z[10]&255)<<16|(z[11]&255)<<24,st=z[12]&255|(z[13]&255)<<8|(z[14]&255)<<16|(z[15]&255)<<24,lt=I[8]&255|(I[9]&255)<<8|(I[10]&255)<<16|(I[11]&255)<<24,dt=V[16]&255|(V[17]&255)<<8|(V[18]&255)<<16|(V[19]&255)<<24,gt=V[20]&255|(V[21]&255)<<8|(V[22]&255)<<16|(V[23]&255)<<24,pt=V[24]&255|(V[25]&255)<<8|(V[26]&255)<<16|(V[27]&255)<<24,yt=V[28]&255|(V[29]&255)<<8|(V[30]&255)<<16|(V[31]&255)<<24,bt=I[12]&255|(I[13]&255)<<8|(I[14]&255)<<16|(I[15]&255)<<24,rt=$,ot=le,Xe=ne,ft=ue,at=Oe,Je=Se,Ae=ke,Te=vt,Le=Qe,De=st,je=lt,Ge=dt,xt=gt,Pt=pt,Rt=yt,It=bt,fe,Nt=0;Nt<20;Nt+=2)fe=rt+xt|0,at^=fe<<7|fe>>>32-7,fe=at+rt|0,Le^=fe<<9|fe>>>32-9,fe=Le+at|0,xt^=fe<<13|fe>>>32-13,fe=xt+Le|0,rt^=fe<<18|fe>>>32-18,fe=Je+ot|0,De^=fe<<7|fe>>>32-7,fe=De+Je|0,Pt^=fe<<9|fe>>>32-9,fe=Pt+De|0,ot^=fe<<13|fe>>>32-13,fe=ot+Pt|0,Je^=fe<<18|fe>>>32-18,fe=je+Ae|0,Rt^=fe<<7|fe>>>32-7,fe=Rt+je|0,Xe^=fe<<9|fe>>>32-9,fe=Xe+Rt|0,Ae^=fe<<13|fe>>>32-13,fe=Ae+Xe|0,je^=fe<<18|fe>>>32-18,fe=It+Ge|0,ft^=fe<<7|fe>>>32-7,fe=ft+It|0,Te^=fe<<9|fe>>>32-9,fe=Te+ft|0,Ge^=fe<<13|fe>>>32-13,fe=Ge+Te|0,It^=fe<<18|fe>>>32-18,fe=rt+ft|0,ot^=fe<<7|fe>>>32-7,fe=ot+rt|0,Xe^=fe<<9|fe>>>32-9,fe=Xe+ot|0,ft^=fe<<13|fe>>>32-13,fe=ft+Xe|0,rt^=fe<<18|fe>>>32-18,fe=Je+at|0,Ae^=fe<<7|fe>>>32-7,fe=Ae+Je|0,Te^=fe<<9|fe>>>32-9,fe=Te+Ae|0,at^=fe<<13|fe>>>32-13,fe=at+Te|0,Je^=fe<<18|fe>>>32-18,fe=je+De|0,Ge^=fe<<7|fe>>>32-7,fe=Ge+je|0,Le^=fe<<9|fe>>>32-9,fe=Le+Ge|0,De^=fe<<13|fe>>>32-13,fe=De+Le|0,je^=fe<<18|fe>>>32-18,fe=It+Rt|0,xt^=fe<<7|fe>>>32-7,fe=xt+It|0,Pt^=fe<<9|fe>>>32-9,fe=Pt+xt|0,Rt^=fe<<13|fe>>>32-13,fe=Rt+Pt|0,It^=fe<<18|fe>>>32-18;N[0]=rt>>>0&255,N[1]=rt>>>8&255,N[2]=rt>>>16&255,N[3]=rt>>>24&255,N[4]=Je>>>0&255,N[5]=Je>>>8&255,N[6]=Je>>>16&255,N[7]=Je>>>24&255,N[8]=je>>>0&255,N[9]=je>>>8&255,N[10]=je>>>16&255,N[11]=je>>>24&255,N[12]=It>>>0&255,N[13]=It>>>8&255,N[14]=It>>>16&255,N[15]=It>>>24&255,N[16]=Ae>>>0&255,N[17]=Ae>>>8&255,N[18]=Ae>>>16&255,N[19]=Ae>>>24&255,N[20]=Te>>>0&255,N[21]=Te>>>8&255,N[22]=Te>>>16&255,N[23]=Te>>>24&255,N[24]=Le>>>0&255,N[25]=Le>>>8&255,N[26]=Le>>>16&255,N[27]=Le>>>24&255,N[28]=De>>>0&255,N[29]=De>>>8&255,N[30]=De>>>16&255,N[31]=De>>>24&255}function D(N,z,V,I){R(N,z,V,I)}function j(N,z,V,I){O(N,z,V,I)}var K=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Z(N,z,V,I,$,le,ne){var ue=new Uint8Array(16),Oe=new Uint8Array(64),Se,ke;for(ke=0;ke<16;ke++)ue[ke]=0;for(ke=0;ke<8;ke++)ue[ke]=le[ke];for(;$>=64;){for(D(Oe,ue,ne,K),ke=0;ke<64;ke++)N[z+ke]=V[I+ke]^Oe[ke];for(Se=1,ke=8;ke<16;ke++)Se=Se+(ue[ke]&255)|0,ue[ke]=Se&255,Se>>>=8;$-=64,z+=64,I+=64}if($>0)for(D(Oe,ue,ne,K),ke=0;ke<$;ke++)N[z+ke]=V[I+ke]^Oe[ke];return 0}function te(N,z,V,I,$){var le=new Uint8Array(16),ne=new Uint8Array(64),ue,Oe;for(Oe=0;Oe<16;Oe++)le[Oe]=0;for(Oe=0;Oe<8;Oe++)le[Oe]=I[Oe];for(;V>=64;){for(D(ne,le,$,K),Oe=0;Oe<64;Oe++)N[z+Oe]=ne[Oe];for(ue=1,Oe=8;Oe<16;Oe++)ue=ue+(le[Oe]&255)|0,le[Oe]=ue&255,ue>>>=8;V-=64,z+=64}if(V>0)for(D(ne,le,$,K),Oe=0;Oe>>13|V<<3)&8191,I=N[4]&255|(N[5]&255)<<8,this.r[2]=(V>>>10|I<<6)&7939,$=N[6]&255|(N[7]&255)<<8,this.r[3]=(I>>>7|$<<9)&8191,le=N[8]&255|(N[9]&255)<<8,this.r[4]=($>>>4|le<<12)&255,this.r[5]=le>>>1&8190,ne=N[10]&255|(N[11]&255)<<8,this.r[6]=(le>>>14|ne<<2)&8191,ue=N[12]&255|(N[13]&255)<<8,this.r[7]=(ne>>>11|ue<<5)&8065,Oe=N[14]&255|(N[15]&255)<<8,this.r[8]=(ue>>>8|Oe<<8)&8191,this.r[9]=Oe>>>5&127,this.pad[0]=N[16]&255|(N[17]&255)<<8,this.pad[1]=N[18]&255|(N[19]&255)<<8,this.pad[2]=N[20]&255|(N[21]&255)<<8,this.pad[3]=N[22]&255|(N[23]&255)<<8,this.pad[4]=N[24]&255|(N[25]&255)<<8,this.pad[5]=N[26]&255|(N[27]&255)<<8,this.pad[6]=N[28]&255|(N[29]&255)<<8,this.pad[7]=N[30]&255|(N[31]&255)<<8};F.prototype.blocks=function(N,z,V){for(var I=this.fin?0:2048,$,le,ne,ue,Oe,Se,ke,vt,Qe,st,lt,dt,gt,pt,yt,bt,rt,ot,Xe,ft=this.h[0],at=this.h[1],Je=this.h[2],Ae=this.h[3],Te=this.h[4],Le=this.h[5],De=this.h[6],je=this.h[7],Ge=this.h[8],xt=this.h[9],Pt=this.r[0],Rt=this.r[1],It=this.r[2],fe=this.r[3],Nt=this.r[4],ir=this.r[5],fr=this.r[6],Bt=this.r[7],Zt=this.r[8],Jt=this.r[9];V>=16;)$=N[z+0]&255|(N[z+1]&255)<<8,ft+=$&8191,le=N[z+2]&255|(N[z+3]&255)<<8,at+=($>>>13|le<<3)&8191,ne=N[z+4]&255|(N[z+5]&255)<<8,Je+=(le>>>10|ne<<6)&8191,ue=N[z+6]&255|(N[z+7]&255)<<8,Ae+=(ne>>>7|ue<<9)&8191,Oe=N[z+8]&255|(N[z+9]&255)<<8,Te+=(ue>>>4|Oe<<12)&8191,Le+=Oe>>>1&8191,Se=N[z+10]&255|(N[z+11]&255)<<8,De+=(Oe>>>14|Se<<2)&8191,ke=N[z+12]&255|(N[z+13]&255)<<8,je+=(Se>>>11|ke<<5)&8191,vt=N[z+14]&255|(N[z+15]&255)<<8,Ge+=(ke>>>8|vt<<8)&8191,xt+=vt>>>5|I,Qe=0,st=Qe,st+=ft*Pt,st+=at*(5*Jt),st+=Je*(5*Zt),st+=Ae*(5*Bt),st+=Te*(5*fr),Qe=st>>>13,st&=8191,st+=Le*(5*ir),st+=De*(5*Nt),st+=je*(5*fe),st+=Ge*(5*It),st+=xt*(5*Rt),Qe+=st>>>13,st&=8191,lt=Qe,lt+=ft*Rt,lt+=at*Pt,lt+=Je*(5*Jt),lt+=Ae*(5*Zt),lt+=Te*(5*Bt),Qe=lt>>>13,lt&=8191,lt+=Le*(5*fr),lt+=De*(5*ir),lt+=je*(5*Nt),lt+=Ge*(5*fe),lt+=xt*(5*It),Qe+=lt>>>13,lt&=8191,dt=Qe,dt+=ft*It,dt+=at*Rt,dt+=Je*Pt,dt+=Ae*(5*Jt),dt+=Te*(5*Zt),Qe=dt>>>13,dt&=8191,dt+=Le*(5*Bt),dt+=De*(5*fr),dt+=je*(5*ir),dt+=Ge*(5*Nt),dt+=xt*(5*fe),Qe+=dt>>>13,dt&=8191,gt=Qe,gt+=ft*fe,gt+=at*It,gt+=Je*Rt,gt+=Ae*Pt,gt+=Te*(5*Jt),Qe=gt>>>13,gt&=8191,gt+=Le*(5*Zt),gt+=De*(5*Bt),gt+=je*(5*fr),gt+=Ge*(5*ir),gt+=xt*(5*Nt),Qe+=gt>>>13,gt&=8191,pt=Qe,pt+=ft*Nt,pt+=at*fe,pt+=Je*It,pt+=Ae*Rt,pt+=Te*Pt,Qe=pt>>>13,pt&=8191,pt+=Le*(5*Jt),pt+=De*(5*Zt),pt+=je*(5*Bt),pt+=Ge*(5*fr),pt+=xt*(5*ir),Qe+=pt>>>13,pt&=8191,yt=Qe,yt+=ft*ir,yt+=at*Nt,yt+=Je*fe,yt+=Ae*It,yt+=Te*Rt,Qe=yt>>>13,yt&=8191,yt+=Le*Pt,yt+=De*(5*Jt),yt+=je*(5*Zt),yt+=Ge*(5*Bt),yt+=xt*(5*fr),Qe+=yt>>>13,yt&=8191,bt=Qe,bt+=ft*fr,bt+=at*ir,bt+=Je*Nt,bt+=Ae*fe,bt+=Te*It,Qe=bt>>>13,bt&=8191,bt+=Le*Rt,bt+=De*Pt,bt+=je*(5*Jt),bt+=Ge*(5*Zt),bt+=xt*(5*Bt),Qe+=bt>>>13,bt&=8191,rt=Qe,rt+=ft*Bt,rt+=at*fr,rt+=Je*ir,rt+=Ae*Nt,rt+=Te*fe,Qe=rt>>>13,rt&=8191,rt+=Le*It,rt+=De*Rt,rt+=je*Pt,rt+=Ge*(5*Jt),rt+=xt*(5*Zt),Qe+=rt>>>13,rt&=8191,ot=Qe,ot+=ft*Zt,ot+=at*Bt,ot+=Je*fr,ot+=Ae*ir,ot+=Te*Nt,Qe=ot>>>13,ot&=8191,ot+=Le*fe,ot+=De*It,ot+=je*Rt,ot+=Ge*Pt,ot+=xt*(5*Jt),Qe+=ot>>>13,ot&=8191,Xe=Qe,Xe+=ft*Jt,Xe+=at*Zt,Xe+=Je*Bt,Xe+=Ae*fr,Xe+=Te*ir,Qe=Xe>>>13,Xe&=8191,Xe+=Le*Nt,Xe+=De*fe,Xe+=je*It,Xe+=Ge*Rt,Xe+=xt*Pt,Qe+=Xe>>>13,Xe&=8191,Qe=(Qe<<2)+Qe|0,Qe=Qe+st|0,st=Qe&8191,Qe=Qe>>>13,lt+=Qe,ft=st,at=lt,Je=dt,Ae=gt,Te=pt,Le=yt,De=bt,je=rt,Ge=ot,xt=Xe,z+=16,V-=16;this.h[0]=ft,this.h[1]=at,this.h[2]=Je,this.h[3]=Ae,this.h[4]=Te,this.h[5]=Le,this.h[6]=De,this.h[7]=je,this.h[8]=Ge,this.h[9]=xt},F.prototype.finish=function(N,z){var V=new Uint16Array(10),I,$,le,ne;if(this.leftover){for(ne=this.leftover,this.buffer[ne++]=1;ne<16;ne++)this.buffer[ne]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(I=this.h[1]>>>13,this.h[1]&=8191,ne=2;ne<10;ne++)this.h[ne]+=I,I=this.h[ne]>>>13,this.h[ne]&=8191;for(this.h[0]+=I*5,I=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=I,I=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=I,V[0]=this.h[0]+5,I=V[0]>>>13,V[0]&=8191,ne=1;ne<10;ne++)V[ne]=this.h[ne]+I,I=V[ne]>>>13,V[ne]&=8191;for(V[9]-=1<<13,$=(I^1)-1,ne=0;ne<10;ne++)V[ne]&=$;for($=~$,ne=0;ne<10;ne++)this.h[ne]=this.h[ne]&$|V[ne];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,le=this.h[0]+this.pad[0],this.h[0]=le&65535,ne=1;ne<8;ne++)le=(this.h[ne]+this.pad[ne]|0)+(le>>>16)|0,this.h[ne]=le&65535;N[z+0]=this.h[0]>>>0&255,N[z+1]=this.h[0]>>>8&255,N[z+2]=this.h[1]>>>0&255,N[z+3]=this.h[1]>>>8&255,N[z+4]=this.h[2]>>>0&255,N[z+5]=this.h[2]>>>8&255,N[z+6]=this.h[3]>>>0&255,N[z+7]=this.h[3]>>>8&255,N[z+8]=this.h[4]>>>0&255,N[z+9]=this.h[4]>>>8&255,N[z+10]=this.h[5]>>>0&255,N[z+11]=this.h[5]>>>8&255,N[z+12]=this.h[6]>>>0&255,N[z+13]=this.h[6]>>>8&255,N[z+14]=this.h[7]>>>0&255,N[z+15]=this.h[7]>>>8&255},F.prototype.update=function(N,z,V){var I,$;if(this.leftover){for($=16-this.leftover,$>V&&($=V),I=0;I<$;I++)this.buffer[this.leftover+I]=N[z+I];if(V-=$,z+=$,this.leftover+=$,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(V>=16&&($=V-V%16,this.blocks(N,z,$),z+=$,V-=$),V){for(I=0;I>16&1),le[V-1]&=65535;le[15]=ne[15]-32767-(le[14]>>16&1),$=le[15]>>16&1,le[14]&=65535,E(ne,le,1-$)}for(V=0;V<16;V++)N[2*V]=ne[V]&255,N[2*V+1]=ne[V]>>8}function b(N,z){var V=new Uint8Array(32),I=new Uint8Array(32);return A(V,N),A(I,z),k(V,0,I,0)}function p(N){var z=new Uint8Array(32);return A(z,N),z[0]&1}function d(N,z){var V;for(V=0;V<16;V++)N[V]=z[2*V]+(z[2*V+1]<<8);N[15]&=32767}function m(N,z,V){for(var I=0;I<16;I++)N[I]=z[I]+V[I]}function U(N,z,V){for(var I=0;I<16;I++)N[I]=z[I]-V[I]}function T(N,z,V){var I,$,le=0,ne=0,ue=0,Oe=0,Se=0,ke=0,vt=0,Qe=0,st=0,lt=0,dt=0,gt=0,pt=0,yt=0,bt=0,rt=0,ot=0,Xe=0,ft=0,at=0,Je=0,Ae=0,Te=0,Le=0,De=0,je=0,Ge=0,xt=0,Pt=0,Rt=0,It=0,fe=V[0],Nt=V[1],ir=V[2],fr=V[3],Bt=V[4],Zt=V[5],Jt=V[6],Qr=V[7],br=V[8],jr=V[9],$r=V[10],Vr=V[11],nn=V[12],Tn=V[13],Sn=V[14],kn=V[15];I=z[0],le+=I*fe,ne+=I*Nt,ue+=I*ir,Oe+=I*fr,Se+=I*Bt,ke+=I*Zt,vt+=I*Jt,Qe+=I*Qr,st+=I*br,lt+=I*jr,dt+=I*$r,gt+=I*Vr,pt+=I*nn,yt+=I*Tn,bt+=I*Sn,rt+=I*kn,I=z[1],ne+=I*fe,ue+=I*Nt,Oe+=I*ir,Se+=I*fr,ke+=I*Bt,vt+=I*Zt,Qe+=I*Jt,st+=I*Qr,lt+=I*br,dt+=I*jr,gt+=I*$r,pt+=I*Vr,yt+=I*nn,bt+=I*Tn,rt+=I*Sn,ot+=I*kn,I=z[2],ue+=I*fe,Oe+=I*Nt,Se+=I*ir,ke+=I*fr,vt+=I*Bt,Qe+=I*Zt,st+=I*Jt,lt+=I*Qr,dt+=I*br,gt+=I*jr,pt+=I*$r,yt+=I*Vr,bt+=I*nn,rt+=I*Tn,ot+=I*Sn,Xe+=I*kn,I=z[3],Oe+=I*fe,Se+=I*Nt,ke+=I*ir,vt+=I*fr,Qe+=I*Bt,st+=I*Zt,lt+=I*Jt,dt+=I*Qr,gt+=I*br,pt+=I*jr,yt+=I*$r,bt+=I*Vr,rt+=I*nn,ot+=I*Tn,Xe+=I*Sn,ft+=I*kn,I=z[4],Se+=I*fe,ke+=I*Nt,vt+=I*ir,Qe+=I*fr,st+=I*Bt,lt+=I*Zt,dt+=I*Jt,gt+=I*Qr,pt+=I*br,yt+=I*jr,bt+=I*$r,rt+=I*Vr,ot+=I*nn,Xe+=I*Tn,ft+=I*Sn,at+=I*kn,I=z[5],ke+=I*fe,vt+=I*Nt,Qe+=I*ir,st+=I*fr,lt+=I*Bt,dt+=I*Zt,gt+=I*Jt,pt+=I*Qr,yt+=I*br,bt+=I*jr,rt+=I*$r,ot+=I*Vr,Xe+=I*nn,ft+=I*Tn,at+=I*Sn,Je+=I*kn,I=z[6],vt+=I*fe,Qe+=I*Nt,st+=I*ir,lt+=I*fr,dt+=I*Bt,gt+=I*Zt,pt+=I*Jt,yt+=I*Qr,bt+=I*br,rt+=I*jr,ot+=I*$r,Xe+=I*Vr,ft+=I*nn,at+=I*Tn,Je+=I*Sn,Ae+=I*kn,I=z[7],Qe+=I*fe,st+=I*Nt,lt+=I*ir,dt+=I*fr,gt+=I*Bt,pt+=I*Zt,yt+=I*Jt,bt+=I*Qr,rt+=I*br,ot+=I*jr,Xe+=I*$r,ft+=I*Vr,at+=I*nn,Je+=I*Tn,Ae+=I*Sn,Te+=I*kn,I=z[8],st+=I*fe,lt+=I*Nt,dt+=I*ir,gt+=I*fr,pt+=I*Bt,yt+=I*Zt,bt+=I*Jt,rt+=I*Qr,ot+=I*br,Xe+=I*jr,ft+=I*$r,at+=I*Vr,Je+=I*nn,Ae+=I*Tn,Te+=I*Sn,Le+=I*kn,I=z[9],lt+=I*fe,dt+=I*Nt,gt+=I*ir,pt+=I*fr,yt+=I*Bt,bt+=I*Zt,rt+=I*Jt,ot+=I*Qr,Xe+=I*br,ft+=I*jr,at+=I*$r,Je+=I*Vr,Ae+=I*nn,Te+=I*Tn,Le+=I*Sn,De+=I*kn,I=z[10],dt+=I*fe,gt+=I*Nt,pt+=I*ir,yt+=I*fr,bt+=I*Bt,rt+=I*Zt,ot+=I*Jt,Xe+=I*Qr,ft+=I*br,at+=I*jr,Je+=I*$r,Ae+=I*Vr,Te+=I*nn,Le+=I*Tn,De+=I*Sn,je+=I*kn,I=z[11],gt+=I*fe,pt+=I*Nt,yt+=I*ir,bt+=I*fr,rt+=I*Bt,ot+=I*Zt,Xe+=I*Jt,ft+=I*Qr,at+=I*br,Je+=I*jr,Ae+=I*$r,Te+=I*Vr,Le+=I*nn,De+=I*Tn,je+=I*Sn,Ge+=I*kn,I=z[12],pt+=I*fe,yt+=I*Nt,bt+=I*ir,rt+=I*fr,ot+=I*Bt,Xe+=I*Zt,ft+=I*Jt,at+=I*Qr,Je+=I*br,Ae+=I*jr,Te+=I*$r,Le+=I*Vr,De+=I*nn,je+=I*Tn,Ge+=I*Sn,xt+=I*kn,I=z[13],yt+=I*fe,bt+=I*Nt,rt+=I*ir,ot+=I*fr,Xe+=I*Bt,ft+=I*Zt,at+=I*Jt,Je+=I*Qr,Ae+=I*br,Te+=I*jr,Le+=I*$r,De+=I*Vr,je+=I*nn,Ge+=I*Tn,xt+=I*Sn,Pt+=I*kn,I=z[14],bt+=I*fe,rt+=I*Nt,ot+=I*ir,Xe+=I*fr,ft+=I*Bt,at+=I*Zt,Je+=I*Jt,Ae+=I*Qr,Te+=I*br,Le+=I*jr,De+=I*$r,je+=I*Vr,Ge+=I*nn,xt+=I*Tn,Pt+=I*Sn,Rt+=I*kn,I=z[15],rt+=I*fe,ot+=I*Nt,Xe+=I*ir,ft+=I*fr,at+=I*Bt,Je+=I*Zt,Ae+=I*Jt,Te+=I*Qr,Le+=I*br,De+=I*jr,je+=I*$r,Ge+=I*Vr,xt+=I*nn,Pt+=I*Tn,Rt+=I*Sn,It+=I*kn,le+=38*ot,ne+=38*Xe,ue+=38*ft,Oe+=38*at,Se+=38*Je,ke+=38*Ae,vt+=38*Te,Qe+=38*Le,st+=38*De,lt+=38*je,dt+=38*Ge,gt+=38*xt,pt+=38*Pt,yt+=38*Rt,bt+=38*It,$=1,I=le+$+65535,$=Math.floor(I/65536),le=I-$*65536,I=ne+$+65535,$=Math.floor(I/65536),ne=I-$*65536,I=ue+$+65535,$=Math.floor(I/65536),ue=I-$*65536,I=Oe+$+65535,$=Math.floor(I/65536),Oe=I-$*65536,I=Se+$+65535,$=Math.floor(I/65536),Se=I-$*65536,I=ke+$+65535,$=Math.floor(I/65536),ke=I-$*65536,I=vt+$+65535,$=Math.floor(I/65536),vt=I-$*65536,I=Qe+$+65535,$=Math.floor(I/65536),Qe=I-$*65536,I=st+$+65535,$=Math.floor(I/65536),st=I-$*65536,I=lt+$+65535,$=Math.floor(I/65536),lt=I-$*65536,I=dt+$+65535,$=Math.floor(I/65536),dt=I-$*65536,I=gt+$+65535,$=Math.floor(I/65536),gt=I-$*65536,I=pt+$+65535,$=Math.floor(I/65536),pt=I-$*65536,I=yt+$+65535,$=Math.floor(I/65536),yt=I-$*65536,I=bt+$+65535,$=Math.floor(I/65536),bt=I-$*65536,I=rt+$+65535,$=Math.floor(I/65536),rt=I-$*65536,le+=$-1+37*($-1),$=1,I=le+$+65535,$=Math.floor(I/65536),le=I-$*65536,I=ne+$+65535,$=Math.floor(I/65536),ne=I-$*65536,I=ue+$+65535,$=Math.floor(I/65536),ue=I-$*65536,I=Oe+$+65535,$=Math.floor(I/65536),Oe=I-$*65536,I=Se+$+65535,$=Math.floor(I/65536),Se=I-$*65536,I=ke+$+65535,$=Math.floor(I/65536),ke=I-$*65536,I=vt+$+65535,$=Math.floor(I/65536),vt=I-$*65536,I=Qe+$+65535,$=Math.floor(I/65536),Qe=I-$*65536,I=st+$+65535,$=Math.floor(I/65536),st=I-$*65536,I=lt+$+65535,$=Math.floor(I/65536),lt=I-$*65536,I=dt+$+65535,$=Math.floor(I/65536),dt=I-$*65536,I=gt+$+65535,$=Math.floor(I/65536),gt=I-$*65536,I=pt+$+65535,$=Math.floor(I/65536),pt=I-$*65536,I=yt+$+65535,$=Math.floor(I/65536),yt=I-$*65536,I=bt+$+65535,$=Math.floor(I/65536),bt=I-$*65536,I=rt+$+65535,$=Math.floor(I/65536),rt=I-$*65536,le+=$-1+37*($-1),N[0]=le,N[1]=ne,N[2]=ue,N[3]=Oe,N[4]=Se,N[5]=ke,N[6]=vt,N[7]=Qe,N[8]=st,N[9]=lt,N[10]=dt,N[11]=gt,N[12]=pt,N[13]=yt,N[14]=bt,N[15]=rt}function L(N,z){T(N,z,z)}function G(N,z){var V=t(),I;for(I=0;I<16;I++)V[I]=z[I];for(I=253;I>=0;I--)L(V,V),I!==2&&I!==4&&T(V,V,z);for(I=0;I<16;I++)N[I]=V[I]}function J(N,z){var V=t(),I;for(I=0;I<16;I++)V[I]=z[I];for(I=250;I>=0;I--)L(V,V),I!==1&&T(V,V,z);for(I=0;I<16;I++)N[I]=V[I]}function X(N,z,V){var I=new Uint8Array(32),$=new Float64Array(80),le,ne,ue=t(),Oe=t(),Se=t(),ke=t(),vt=t(),Qe=t();for(ne=0;ne<31;ne++)I[ne]=z[ne];for(I[31]=z[31]&127|64,I[0]&=248,d($,V),ne=0;ne<16;ne++)Oe[ne]=$[ne],ke[ne]=ue[ne]=Se[ne]=0;for(ue[0]=ke[0]=1,ne=254;ne>=0;--ne)le=I[ne>>>3]>>>(ne&7)&1,E(ue,Oe,le),E(Se,ke,le),m(vt,ue,Se),U(ue,ue,Se),m(Se,Oe,ke),U(Oe,Oe,ke),L(ke,vt),L(Qe,ue),T(ue,Se,ue),T(Se,Oe,vt),m(vt,ue,Se),U(ue,ue,Se),L(Oe,ue),U(Se,ke,Qe),T(ue,Se,l),m(ue,ue,ke),T(Se,Se,ue),T(ue,ke,Qe),T(ke,Oe,$),L(Oe,vt),E(ue,Oe,le),E(Se,ke,le);for(ne=0;ne<16;ne++)$[ne+16]=ue[ne],$[ne+32]=Se[ne],$[ne+48]=Oe[ne],$[ne+64]=ke[ne];var st=$.subarray(32),lt=$.subarray(16);return G(st,st),T(lt,lt,st),A(N,lt),0}function ve(N,z){return X(N,z,i)}function de(N,z){return n(z,32),ve(N,z)}function ce(N,z,V){var I=new Uint8Array(32);return X(I,V,z),j(N,f,I,K)}var Q=c,W=h;function ee(N,z,V,I,$,le){var ne=new Uint8Array(32);return ce(ne,$,le),Q(N,z,V,I,ne)}function Ce(N,z,V,I,$,le){var ne=new Uint8Array(32);return ce(ne,$,le),W(N,z,V,I,ne)}var pe=[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 be(N,z,V,I){for(var $=new Int32Array(16),le=new Int32Array(16),ne,ue,Oe,Se,ke,vt,Qe,st,lt,dt,gt,pt,yt,bt,rt,ot,Xe,ft,at,Je,Ae,Te,Le,De,je,Ge,xt=N[0],Pt=N[1],Rt=N[2],It=N[3],fe=N[4],Nt=N[5],ir=N[6],fr=N[7],Bt=z[0],Zt=z[1],Jt=z[2],Qr=z[3],br=z[4],jr=z[5],$r=z[6],Vr=z[7],nn=0;I>=128;){for(at=0;at<16;at++)Je=8*at+nn,$[at]=V[Je+0]<<24|V[Je+1]<<16|V[Je+2]<<8|V[Je+3],le[at]=V[Je+4]<<24|V[Je+5]<<16|V[Je+6]<<8|V[Je+7];for(at=0;at<80;at++)if(ne=xt,ue=Pt,Oe=Rt,Se=It,ke=fe,vt=Nt,Qe=ir,st=fr,lt=Bt,dt=Zt,gt=Jt,pt=Qr,yt=br,bt=jr,rt=$r,ot=Vr,Ae=fr,Te=Vr,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=(fe>>>14|br<<32-14)^(fe>>>18|br<<32-18)^(br>>>41-32|fe<<32-(41-32)),Te=(br>>>14|fe<<32-14)^(br>>>18|fe<<32-18)^(fe>>>41-32|br<<32-(41-32)),Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,Ae=fe&Nt^~fe&ir,Te=br&jr^~br&$r,Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,Ae=pe[at*2],Te=pe[at*2+1],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,Ae=$[at%16],Te=le[at%16],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,Xe=je&65535|Ge<<16,ft=Le&65535|De<<16,Ae=Xe,Te=ft,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=(xt>>>28|Bt<<32-28)^(Bt>>>34-32|xt<<32-(34-32))^(Bt>>>39-32|xt<<32-(39-32)),Te=(Bt>>>28|xt<<32-28)^(xt>>>34-32|Bt<<32-(34-32))^(xt>>>39-32|Bt<<32-(39-32)),Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,Ae=xt&Pt^xt&Rt^Pt&Rt,Te=Bt&Zt^Bt&Jt^Zt&Jt,Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,st=je&65535|Ge<<16,ot=Le&65535|De<<16,Ae=Se,Te=pt,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=Xe,Te=ft,Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,Se=je&65535|Ge<<16,pt=Le&65535|De<<16,Pt=ne,Rt=ue,It=Oe,fe=Se,Nt=ke,ir=vt,fr=Qe,xt=st,Zt=lt,Jt=dt,Qr=gt,br=pt,jr=yt,$r=bt,Vr=rt,Bt=ot,at%16===15)for(Je=0;Je<16;Je++)Ae=$[Je],Te=le[Je],Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=$[(Je+9)%16],Te=le[(Je+9)%16],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,Xe=$[(Je+1)%16],ft=le[(Je+1)%16],Ae=(Xe>>>1|ft<<32-1)^(Xe>>>8|ft<<32-8)^Xe>>>7,Te=(ft>>>1|Xe<<32-1)^(ft>>>8|Xe<<32-8)^(ft>>>7|Xe<<32-7),Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,Xe=$[(Je+14)%16],ft=le[(Je+14)%16],Ae=(Xe>>>19|ft<<32-19)^(ft>>>61-32|Xe<<32-(61-32))^Xe>>>6,Te=(ft>>>19|Xe<<32-19)^(Xe>>>61-32|ft<<32-(61-32))^(ft>>>6|Xe<<32-6),Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,$[Je]=je&65535|Ge<<16,le[Je]=Le&65535|De<<16;Ae=xt,Te=Bt,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=N[0],Te=z[0],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,N[0]=xt=je&65535|Ge<<16,z[0]=Bt=Le&65535|De<<16,Ae=Pt,Te=Zt,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=N[1],Te=z[1],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,N[1]=Pt=je&65535|Ge<<16,z[1]=Zt=Le&65535|De<<16,Ae=Rt,Te=Jt,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=N[2],Te=z[2],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,N[2]=Rt=je&65535|Ge<<16,z[2]=Jt=Le&65535|De<<16,Ae=It,Te=Qr,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=N[3],Te=z[3],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,N[3]=It=je&65535|Ge<<16,z[3]=Qr=Le&65535|De<<16,Ae=fe,Te=br,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=N[4],Te=z[4],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,N[4]=fe=je&65535|Ge<<16,z[4]=br=Le&65535|De<<16,Ae=Nt,Te=jr,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=N[5],Te=z[5],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,N[5]=Nt=je&65535|Ge<<16,z[5]=jr=Le&65535|De<<16,Ae=ir,Te=$r,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=N[6],Te=z[6],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,N[6]=ir=je&65535|Ge<<16,z[6]=$r=Le&65535|De<<16,Ae=fr,Te=Vr,Le=Te&65535,De=Te>>>16,je=Ae&65535,Ge=Ae>>>16,Ae=N[7],Te=z[7],Le+=Te&65535,De+=Te>>>16,je+=Ae&65535,Ge+=Ae>>>16,De+=Le>>>16,je+=De>>>16,Ge+=je>>>16,N[7]=fr=je&65535|Ge<<16,z[7]=Vr=Le&65535|De<<16,nn+=128,I-=128}return I}function Ne(N,z,V){var I=new Int32Array(8),$=new Int32Array(8),le=new Uint8Array(256),ne,ue=V;for(I[0]=1779033703,I[1]=3144134277,I[2]=1013904242,I[3]=2773480762,I[4]=1359893119,I[5]=2600822924,I[6]=528734635,I[7]=1541459225,$[0]=4089235720,$[1]=2227873595,$[2]=4271175723,$[3]=1595750129,$[4]=2917565137,$[5]=725511199,$[6]=4215389547,$[7]=327033209,be(I,$,z,V),V%=128,ne=0;ne=0;--$)I=V[$/8|0]>>($&7)&1,ye(N,z,I),me(z,N),me(N,N),ye(N,z,I)}function xe(N,z){var V=[t(),t(),t(),t()];g(V[0],y),g(V[1],x),g(V[2],o),T(V[3],y,x),_e(N,V,z)}function qe(N,z,V){var I=new Uint8Array(64),$=[t(),t(),t(),t()],le;for(V||n(z,32),Ne(I,z,32),I[0]&=248,I[31]&=127,I[31]|=64,xe($,I),Ee(N,$),le=0;le<32;le++)z[le+32]=N[le];return 0}var H=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 B(N,z){var V,I,$,le;for(I=63;I>=32;--I){for(V=0,$=I-32,le=I-12;$>4)*H[$],V=z[$]>>8,z[$]&=255;for($=0;$<32;$++)z[$]-=V*H[$];for(I=0;I<32;I++)z[I+1]+=z[I]>>8,N[I]=z[I]&255}function q(N){var z=new Float64Array(64),V;for(V=0;V<64;V++)z[V]=N[V];for(V=0;V<64;V++)N[V]=0;B(N,z)}function re(N,z,V,I){var $=new Uint8Array(64),le=new Uint8Array(64),ne=new Uint8Array(64),ue,Oe,Se=new Float64Array(64),ke=[t(),t(),t(),t()];Ne($,I,32),$[0]&=248,$[31]&=127,$[31]|=64;var vt=V+64;for(ue=0;ue>7&&U(N[0],a,N[0]),T(N[3],N[0],N[1]),0)}function Pe(N,z,V,I){var $,le=new Uint8Array(32),ne=new Uint8Array(64),ue=[t(),t(),t(),t()],Oe=[t(),t(),t(),t()];if(V<64||ie(Oe,I))return-1;for($=0;$=0},e.sign.keyPair=function(){var N=new Uint8Array(Ue),z=new Uint8Array(_t);return qe(N,z),{publicKey:N,secretKey:z}},e.sign.keyPair.fromSecretKey=function(N){if(Fe(N),N.length!==_t)throw new Error("bad secret key size");for(var z=new Uint8Array(Ue),V=0;Vr.length)&&(e=r.length);for(var t=0,n=new Array(e);t=0;--A){var b=this.tryEntries[A],p=b.completion;if(b.tryLoc==="root")return E("end");if(b.tryLoc<=this.prev){var d=i.call(b,"catchLoc"),m=i.call(b,"finallyLoc");if(d&&m){if(this.prev=0;--E){var A=this.tryEntries[E];if(A.tryLoc<=this.prev&&i.call(A,"finallyLoc")&&this.prev=0;--w){var E=this.tryEntries[w];if(E.finallyLoc===g)return this.complete(E.completion,E.afterLoc),F(E),S}},catch:function(g){for(var w=this.tryEntries.length-1;w>=0;--w){var E=this.tryEntries[w];if(E.tryLoc===g){var A=E.completion;if(A.type==="throw"){var b=A.arg;F(E)}return b}}throw new Error("illegal catch attempt")},delegateYield:function(g,w,E){return this.delegate={iterator:v(g),resultName:w,nextLoc:E},this.method==="next"&&(this.arg=void 0),S}},n}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports})(jC);var jh=jC.exports(),Bc=jh;try{regeneratorRuntime=jh}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=jh:Function("r","regeneratorRuntime = r")(jh)}function eee(r,e){if(Kf(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(Kf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function tee(r){var e=eee(r,"string");return Kf(e)==="symbol"?e:String(e)}function i0(r,e,t){return e=tee(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function v_(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(f){return Object.getOwnPropertyDescriptor(r,f).enumerable})),t.push.apply(t,n)}return t}function wa(r){for(var e=1;e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(s){throw s},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,o;return{s:function(){t=t.call(r)},n:function(){var s=t.next();return i=s.done,s},e:function(s){a=!0,o=s},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(a)throw o}}}}var x_,ree=typeof queueMicrotask=="function"?queueMicrotask:function(r){return(x_||(x_=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},nee=function(){var e=[],t;return{deliver:function(f){return Sv(Bc.mark(function i(){return Bc.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:e.push(f),t&&(t(e.shift()),t=void 0);case 2:case"end":return o.stop()}},i)}))()},receive:function(){return new Promise(function(i){var a=e.shift();if(a)return i(a);t=i})}}},w_="INIT",iee="SUBSCRIBE",fee="UNSUBSCRIBE",aee="UPDATED",oee="EXIT",__="TERMINATE",wr=(typeof self>"u"?"undefined":Kf(self))==="object"&&self.self===self&&self||(typeof global>"u"?"undefined":Kf(global))==="object"&&global.global===global&&global||(typeof window>"u"?"undefined":Kf(window))==="object"&&window.window===window&&window;wr.FCL_REGISTRY=wr.FCL_REGISTRY==null?{}:wr.FCL_REGISTRY;var see=0,cee=5e3,uh=function(e,t,n){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return new Promise(function(i,a){var o=f.expectReply||!1,l=f.timeout!=null?f.timeout:cee;o&&l&&setTimeout(function(){return a(new Error("Timeout: ".concat(l,"ms passed without a response.")))},l);var s={to:e,from:f.from,tag:t,data:n,timeout:l,reply:i,reject:a};try{wr.FCL_REGISTRY[e]&&wr.FCL_REGISTRY[e].mailbox.deliver(s),o||i(!0)}catch(u){console.error("FCL.Actor -- Could Not Deliver Message",s,wr.FCL_REGISTRY[e],u)}})},lee=function(e){delete wr.FCL_REGISTRY[e]},uee=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(){var t=Sv(Bc.mark(function n(f){var i;return Bc.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(typeof e[w_]!="function"){o.next=3;break}return o.next=3,e[w_](f);case 3:return o.next=6,f.receive();case 6:if(i=o.sent,o.prev=7,i.tag!==oee){o.next=13;break}if(typeof e[__]!="function"){o.next=12;break}return o.next=12,e[__](f,i,i.data||{});case 12:return o.abrupt("break",25);case 13:return o.next=15,e[i.tag](f,i,i.data||{});case 15:o.next=20;break;case 17:o.prev=17,o.t0=o.catch(7),console.error("".concat(f.self()," Error"),i,o.t0);case 20:return o.prev=20,o.abrupt("continue",3);case 23:o.next=3;break;case 25:case"end":return o.stop()}},n,null,[[7,17,20,23]])}));return function(n){return t.apply(this,arguments)}}()},dee=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(t==null&&(t=++see),wr.FCL_REGISTRY[t]!=null)return t;wr.FCL_REGISTRY[t]={addr:t,mailbox:nee(),subs:new Set,kvs:{},error:null};var n={self:function(){return t},receive:function(){return wr.FCL_REGISTRY[t].mailbox.receive()},send:function(i,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return l.from=t,uh(i,a,o,l)},sendSelf:function(i,a,o){wr.FCL_REGISTRY[t]&&uh(t,i,a,o)},broadcast:function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};o.from=t;var l=m_(wr.FCL_REGISTRY[t].subs),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;uh(u,i,a,o)}}catch(y){l.e(y)}finally{l.f()}},subscribe:function(i){return i!=null&&wr.FCL_REGISTRY[t].subs.add(i)},unsubscribe:function(i){return i!=null&&wr.FCL_REGISTRY[t].subs.delete(i)},subscriberCount:function(){return wr.FCL_REGISTRY[t].subs.size},hasSubs:function(){return!!wr.FCL_REGISTRY[t].subs.size},put:function(i,a){i!=null&&(wr.FCL_REGISTRY[t].kvs[i]=a)},get:function(i,a){var o=wr.FCL_REGISTRY[t].kvs[i];return o??a},delete:function(i){delete wr.FCL_REGISTRY[t].kvs[i]},update:function(i,a){i!=null&&(wr.FCL_REGISTRY[t].kvs[i]=a(wr.FCL_REGISTRY[t].kvs[i]))},keys:function(){return Object.keys(wr.FCL_REGISTRY[t].kvs)},all:function(){return wr.FCL_REGISTRY[t].kvs},where:function(i){return Object.keys(wr.FCL_REGISTRY[t].kvs).reduce(function(a,o){return i.test(o)?wa(wa({},a),{},i0({},o,wr.FCL_REGISTRY[t].kvs[o])):a},{})},merge:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(i).forEach(function(a){return wr.FCL_REGISTRY[t].kvs[a]=i[a]})},fatalError:function(i){wr.FCL_REGISTRY[t].error=i;var a=m_(wr.FCL_REGISTRY[t].subs),o;try{for(a.s();!(o=a.n()).done;){var l=o.value;uh(l,aee)}}catch(s){a.e(s)}finally{a.f()}}};return Kf(e)==="object"&&(e=uee(e)),ree(Sv(Bc.mark(function f(){return Bc.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e(n);case 2:lee(t);case 3:case"end":return a.stop()}},f)}))),t},t0,hee="config",pee="PUT_CONFIG",bee="GET_CONFIG",yee="GET_ALL_CONFIG",gee="UPDATE_CONFIG",vee="DELETE_CONFIG",mee="CLEAR_CONFIG",xee="WHERE_CONFIG",du="CONFIG/UPDATED",wee=function(e){return e},_ee=(t0={},i0(t0,pee,function(r,e,t){var n=t.key,f=t.value;if(n==null)throw new Error("Missing 'key' for config/put.");r.put(n,f),r.broadcast(du,wa({},r.all()))}),i0(t0,bee,function(r,e,t){var n=t.key,f=t.fallback;if(n==null)throw new Error("Missing 'key' for config/get");e.reply(r.get(n,f))}),i0(t0,yee,function(r,e){e.reply(wa({},r.all()))}),i0(t0,gee,function(r,e,t){var n=t.key,f=t.fn;if(n==null)throw new Error("Missing 'key' for config/update");r.update(n,f||wee),r.broadcast(du,wa({},r.all()))}),i0(t0,vee,function(r,e,t){var n=t.key;if(n==null)throw new Error("Missing 'key' for config/delete");r.delete(n),r.broadcast(du,wa({},r.all()))}),i0(t0,mee,function(r,e){for(var t=Object.keys(r.all()),n=0,f=t;n0?c:h},i.min=function(c,h){return c.cmp(h)<0?c:h},i.prototype._init=function(c,h,g){if(typeof c=="number")return this._initNumber(c,h,g);if(typeof c=="object")return this._initArray(c,h,g);h==="hex"&&(h=16),n(h===(h|0)&&h>=2&&h<=36),c=c.toString().replace(/\s+/g,"");var w=0;c[0]==="-"&&(w++,this.negative=1),w=0;w-=3)A=c[w]|c[w-1]<<8|c[w-2]<<16,this.words[E]|=A<>>26-b&67108863,b+=24,b>=26&&(b-=26,E++);else if(g==="le")for(w=0,E=0;w>>26-b&67108863,b+=24,b>=26&&(b-=26,E++);return this._strip()};function o(v,c){var h=v.charCodeAt(c);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;n(!1,"Invalid character in "+v)}function l(v,c,h){var g=o(v,h);return h-1>=c&&(g|=o(v,h-1)<<4),g}i.prototype._parseHex=function(c,h,g){this.length=Math.ceil((c.length-h)/6),this.words=new Array(this.length);for(var w=0;w=h;w-=2)b=l(c,h,w)<=18?(E-=18,A+=1,this.words[A]|=b>>>26):E+=8;else{var p=c.length-h;for(w=p%2===0?h+1:h;w=18?(E-=18,A+=1,this.words[A]|=b>>>26):E+=8}this._strip()};function s(v,c,h,g){for(var w=0,E=0,A=Math.min(v.length,h),b=c;b=49?E=p-49+10:p>=17?E=p-17+10:E=p,n(p>=0&&E1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{i.prototype.inspect=y}else i.prototype.inspect=y;function y(){return(this.red?""}var x=["","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"],_=[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],S=[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];i.prototype.toString=function(c,h){c=c||10,h=h|0||1;var g;if(c===16||c==="hex"){g="";for(var w=0,E=0,A=0;A>>24-w&16777215,E!==0||A!==this.length-1?g=x[6-p.length]+p+g:g=p+g,w+=2,w>=26&&(w-=26,A--)}for(E!==0&&(g=E.toString(16)+g);g.length%h!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(c===(c|0)&&c>=2&&c<=36){var d=_[c],m=S[c];g="";var U=this.clone();for(U.negative=0;!U.isZero();){var T=U.modrn(m).toString(c);U=U.idivn(m),U.isZero()?g=T+g:g=x[d-T.length]+T+g}for(this.isZero()&&(g="0"+g);g.length%h!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var c=this.words[0];return this.length===2?c+=this.words[1]*67108864:this.length===3&&this.words[2]===1?c+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-c:c},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(c,h){return this.toArrayLike(a,c,h)}),i.prototype.toArray=function(c,h){return this.toArrayLike(Array,c,h)};var C=function(c,h){return c.allocUnsafe?c.allocUnsafe(h):new c(h)};i.prototype.toArrayLike=function(c,h,g){this._strip();var w=this.byteLength(),E=g||Math.max(1,w);n(w<=E,"byte array longer than desired length"),n(E>0,"Requested array length <= 0");var A=C(c,E),b=h==="le"?"LE":"BE";return this["_toArrayLike"+b](A,w),A},i.prototype._toArrayLikeLE=function(c,h){for(var g=0,w=0,E=0,A=0;E>8&255),g>16&255),A===6?(g>24&255),w=0,A=0):(w=b>>>24,A+=2)}if(g=0&&(c[g--]=b>>8&255),g>=0&&(c[g--]=b>>16&255),A===6?(g>=0&&(c[g--]=b>>24&255),w=0,A=0):(w=b>>>24,A+=2)}if(g>=0)for(c[g--]=w;g>=0;)c[g--]=0},Math.clz32?i.prototype._countBits=function(c){return 32-Math.clz32(c)}:i.prototype._countBits=function(c){var h=c,g=0;return h>=4096&&(g+=13,h>>>=13),h>=64&&(g+=7,h>>>=7),h>=8&&(g+=4,h>>>=4),h>=2&&(g+=2,h>>>=2),g+h},i.prototype._zeroBits=function(c){if(c===0)return 26;var h=c,g=0;return(h&8191)===0&&(g+=13,h>>>=13),(h&127)===0&&(g+=7,h>>>=7),(h&15)===0&&(g+=4,h>>>=4),(h&3)===0&&(g+=2,h>>>=2),(h&1)===0&&g++,g},i.prototype.bitLength=function(){var c=this.words[this.length-1],h=this._countBits(c);return(this.length-1)*26+h};function M(v){for(var c=new Array(v.bitLength()),h=0;h>>w&1}return c}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,h=0;hc.length?this.clone().ior(c):c.clone().ior(this)},i.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)},i.prototype.iuand=function(c){var h;this.length>c.length?h=c:h=this;for(var g=0;gc.length?this.clone().iand(c):c.clone().iand(this)},i.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)},i.prototype.iuxor=function(c){var h,g;this.length>c.length?(h=this,g=c):(h=c,g=this);for(var w=0;wc.length?this.clone().ixor(c):c.clone().ixor(this)},i.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)},i.prototype.inotn=function(c){n(typeof c=="number"&&c>=0);var h=Math.ceil(c/26)|0,g=c%26;this._expand(h),g>0&&h--;for(var w=0;w0&&(this.words[w]=~this.words[w]&67108863>>26-g),this._strip()},i.prototype.notn=function(c){return this.clone().inotn(c)},i.prototype.setn=function(c,h){n(typeof c=="number"&&c>=0);var g=c/26|0,w=c%26;return this._expand(g+1),h?this.words[g]=this.words[g]|1<c.length?(g=this,w=c):(g=c,w=this);for(var E=0,A=0;A>>26;for(;E!==0&&A>>26;if(this.length=g.length,E!==0)this.words[this.length]=E,this.length++;else if(g!==this)for(;Ac.length?this.clone().iadd(c):c.clone().iadd(this)},i.prototype.isub=function(c){if(c.negative!==0){c.negative=0;var h=this.iadd(c);return c.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var g=this.cmp(c);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,E;g>0?(w=this,E=c):(w=c,E=this);for(var A=0,b=0;b>26,this.words[b]=h&67108863;for(;A!==0&&b>26,this.words[b]=h&67108863;if(A===0&&b>>26,U=p&67108863,T=Math.min(d,c.length-1),L=Math.max(0,d-v.length+1);L<=T;L++){var G=d-L|0;w=v.words[G]|0,E=c.words[L]|0,A=w*E+U,m+=A/67108864|0,U=A&67108863}h.words[d]=U|0,p=m|0}return p!==0?h.words[d]=p|0:h.length--,h._strip()}var R=function(c,h,g){var w=c.words,E=h.words,A=g.words,b=0,p,d,m,U=w[0]|0,T=U&8191,L=U>>>13,G=w[1]|0,J=G&8191,X=G>>>13,ve=w[2]|0,de=ve&8191,ce=ve>>>13,Q=w[3]|0,W=Q&8191,ee=Q>>>13,Ce=w[4]|0,pe=Ce&8191,be=Ce>>>13,Ne=w[5]|0,me=Ne&8191,ye=Ne>>>13,Ee=w[6]|0,_e=Ee&8191,xe=Ee>>>13,qe=w[7]|0,H=qe&8191,B=qe>>>13,q=w[8]|0,re=q&8191,ie=q>>>13,Pe=w[9]|0,Me=Pe&8191,Y=Pe>>>13,ae=E[0]|0,Ie=ae&8191,we=ae>>>13,et=E[1]|0,Be=et&8191,ze=et>>>13,mt=E[2]|0,Ze=mt&8191,$e=mt>>>13,At=E[3]|0,We=At&8191,Ue=At>>>13,_t=E[4]|0,it=_t&8191,He=_t>>>13,Tt=E[5]|0,tt=Tt&8191,Fe=Tt>>>13,St=E[6]|0,N=St&8191,z=St>>>13,V=E[7]|0,I=V&8191,$=V>>>13,le=E[8]|0,ne=le&8191,ue=le>>>13,Oe=E[9]|0,Se=Oe&8191,ke=Oe>>>13;g.negative=c.negative^h.negative,g.length=19,p=Math.imul(T,Ie),d=Math.imul(T,we),d=d+Math.imul(L,Ie)|0,m=Math.imul(L,we);var vt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(vt>>>26)|0,vt&=67108863,p=Math.imul(J,Ie),d=Math.imul(J,we),d=d+Math.imul(X,Ie)|0,m=Math.imul(X,we),p=p+Math.imul(T,Be)|0,d=d+Math.imul(T,ze)|0,d=d+Math.imul(L,Be)|0,m=m+Math.imul(L,ze)|0;var Qe=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,p=Math.imul(de,Ie),d=Math.imul(de,we),d=d+Math.imul(ce,Ie)|0,m=Math.imul(ce,we),p=p+Math.imul(J,Be)|0,d=d+Math.imul(J,ze)|0,d=d+Math.imul(X,Be)|0,m=m+Math.imul(X,ze)|0,p=p+Math.imul(T,Ze)|0,d=d+Math.imul(T,$e)|0,d=d+Math.imul(L,Ze)|0,m=m+Math.imul(L,$e)|0;var st=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(st>>>26)|0,st&=67108863,p=Math.imul(W,Ie),d=Math.imul(W,we),d=d+Math.imul(ee,Ie)|0,m=Math.imul(ee,we),p=p+Math.imul(de,Be)|0,d=d+Math.imul(de,ze)|0,d=d+Math.imul(ce,Be)|0,m=m+Math.imul(ce,ze)|0,p=p+Math.imul(J,Ze)|0,d=d+Math.imul(J,$e)|0,d=d+Math.imul(X,Ze)|0,m=m+Math.imul(X,$e)|0,p=p+Math.imul(T,We)|0,d=d+Math.imul(T,Ue)|0,d=d+Math.imul(L,We)|0,m=m+Math.imul(L,Ue)|0;var lt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(lt>>>26)|0,lt&=67108863,p=Math.imul(pe,Ie),d=Math.imul(pe,we),d=d+Math.imul(be,Ie)|0,m=Math.imul(be,we),p=p+Math.imul(W,Be)|0,d=d+Math.imul(W,ze)|0,d=d+Math.imul(ee,Be)|0,m=m+Math.imul(ee,ze)|0,p=p+Math.imul(de,Ze)|0,d=d+Math.imul(de,$e)|0,d=d+Math.imul(ce,Ze)|0,m=m+Math.imul(ce,$e)|0,p=p+Math.imul(J,We)|0,d=d+Math.imul(J,Ue)|0,d=d+Math.imul(X,We)|0,m=m+Math.imul(X,Ue)|0,p=p+Math.imul(T,it)|0,d=d+Math.imul(T,He)|0,d=d+Math.imul(L,it)|0,m=m+Math.imul(L,He)|0;var dt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(dt>>>26)|0,dt&=67108863,p=Math.imul(me,Ie),d=Math.imul(me,we),d=d+Math.imul(ye,Ie)|0,m=Math.imul(ye,we),p=p+Math.imul(pe,Be)|0,d=d+Math.imul(pe,ze)|0,d=d+Math.imul(be,Be)|0,m=m+Math.imul(be,ze)|0,p=p+Math.imul(W,Ze)|0,d=d+Math.imul(W,$e)|0,d=d+Math.imul(ee,Ze)|0,m=m+Math.imul(ee,$e)|0,p=p+Math.imul(de,We)|0,d=d+Math.imul(de,Ue)|0,d=d+Math.imul(ce,We)|0,m=m+Math.imul(ce,Ue)|0,p=p+Math.imul(J,it)|0,d=d+Math.imul(J,He)|0,d=d+Math.imul(X,it)|0,m=m+Math.imul(X,He)|0,p=p+Math.imul(T,tt)|0,d=d+Math.imul(T,Fe)|0,d=d+Math.imul(L,tt)|0,m=m+Math.imul(L,Fe)|0;var gt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(gt>>>26)|0,gt&=67108863,p=Math.imul(_e,Ie),d=Math.imul(_e,we),d=d+Math.imul(xe,Ie)|0,m=Math.imul(xe,we),p=p+Math.imul(me,Be)|0,d=d+Math.imul(me,ze)|0,d=d+Math.imul(ye,Be)|0,m=m+Math.imul(ye,ze)|0,p=p+Math.imul(pe,Ze)|0,d=d+Math.imul(pe,$e)|0,d=d+Math.imul(be,Ze)|0,m=m+Math.imul(be,$e)|0,p=p+Math.imul(W,We)|0,d=d+Math.imul(W,Ue)|0,d=d+Math.imul(ee,We)|0,m=m+Math.imul(ee,Ue)|0,p=p+Math.imul(de,it)|0,d=d+Math.imul(de,He)|0,d=d+Math.imul(ce,it)|0,m=m+Math.imul(ce,He)|0,p=p+Math.imul(J,tt)|0,d=d+Math.imul(J,Fe)|0,d=d+Math.imul(X,tt)|0,m=m+Math.imul(X,Fe)|0,p=p+Math.imul(T,N)|0,d=d+Math.imul(T,z)|0,d=d+Math.imul(L,N)|0,m=m+Math.imul(L,z)|0;var pt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(pt>>>26)|0,pt&=67108863,p=Math.imul(H,Ie),d=Math.imul(H,we),d=d+Math.imul(B,Ie)|0,m=Math.imul(B,we),p=p+Math.imul(_e,Be)|0,d=d+Math.imul(_e,ze)|0,d=d+Math.imul(xe,Be)|0,m=m+Math.imul(xe,ze)|0,p=p+Math.imul(me,Ze)|0,d=d+Math.imul(me,$e)|0,d=d+Math.imul(ye,Ze)|0,m=m+Math.imul(ye,$e)|0,p=p+Math.imul(pe,We)|0,d=d+Math.imul(pe,Ue)|0,d=d+Math.imul(be,We)|0,m=m+Math.imul(be,Ue)|0,p=p+Math.imul(W,it)|0,d=d+Math.imul(W,He)|0,d=d+Math.imul(ee,it)|0,m=m+Math.imul(ee,He)|0,p=p+Math.imul(de,tt)|0,d=d+Math.imul(de,Fe)|0,d=d+Math.imul(ce,tt)|0,m=m+Math.imul(ce,Fe)|0,p=p+Math.imul(J,N)|0,d=d+Math.imul(J,z)|0,d=d+Math.imul(X,N)|0,m=m+Math.imul(X,z)|0,p=p+Math.imul(T,I)|0,d=d+Math.imul(T,$)|0,d=d+Math.imul(L,I)|0,m=m+Math.imul(L,$)|0;var yt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(yt>>>26)|0,yt&=67108863,p=Math.imul(re,Ie),d=Math.imul(re,we),d=d+Math.imul(ie,Ie)|0,m=Math.imul(ie,we),p=p+Math.imul(H,Be)|0,d=d+Math.imul(H,ze)|0,d=d+Math.imul(B,Be)|0,m=m+Math.imul(B,ze)|0,p=p+Math.imul(_e,Ze)|0,d=d+Math.imul(_e,$e)|0,d=d+Math.imul(xe,Ze)|0,m=m+Math.imul(xe,$e)|0,p=p+Math.imul(me,We)|0,d=d+Math.imul(me,Ue)|0,d=d+Math.imul(ye,We)|0,m=m+Math.imul(ye,Ue)|0,p=p+Math.imul(pe,it)|0,d=d+Math.imul(pe,He)|0,d=d+Math.imul(be,it)|0,m=m+Math.imul(be,He)|0,p=p+Math.imul(W,tt)|0,d=d+Math.imul(W,Fe)|0,d=d+Math.imul(ee,tt)|0,m=m+Math.imul(ee,Fe)|0,p=p+Math.imul(de,N)|0,d=d+Math.imul(de,z)|0,d=d+Math.imul(ce,N)|0,m=m+Math.imul(ce,z)|0,p=p+Math.imul(J,I)|0,d=d+Math.imul(J,$)|0,d=d+Math.imul(X,I)|0,m=m+Math.imul(X,$)|0,p=p+Math.imul(T,ne)|0,d=d+Math.imul(T,ue)|0,d=d+Math.imul(L,ne)|0,m=m+Math.imul(L,ue)|0;var bt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(bt>>>26)|0,bt&=67108863,p=Math.imul(Me,Ie),d=Math.imul(Me,we),d=d+Math.imul(Y,Ie)|0,m=Math.imul(Y,we),p=p+Math.imul(re,Be)|0,d=d+Math.imul(re,ze)|0,d=d+Math.imul(ie,Be)|0,m=m+Math.imul(ie,ze)|0,p=p+Math.imul(H,Ze)|0,d=d+Math.imul(H,$e)|0,d=d+Math.imul(B,Ze)|0,m=m+Math.imul(B,$e)|0,p=p+Math.imul(_e,We)|0,d=d+Math.imul(_e,Ue)|0,d=d+Math.imul(xe,We)|0,m=m+Math.imul(xe,Ue)|0,p=p+Math.imul(me,it)|0,d=d+Math.imul(me,He)|0,d=d+Math.imul(ye,it)|0,m=m+Math.imul(ye,He)|0,p=p+Math.imul(pe,tt)|0,d=d+Math.imul(pe,Fe)|0,d=d+Math.imul(be,tt)|0,m=m+Math.imul(be,Fe)|0,p=p+Math.imul(W,N)|0,d=d+Math.imul(W,z)|0,d=d+Math.imul(ee,N)|0,m=m+Math.imul(ee,z)|0,p=p+Math.imul(de,I)|0,d=d+Math.imul(de,$)|0,d=d+Math.imul(ce,I)|0,m=m+Math.imul(ce,$)|0,p=p+Math.imul(J,ne)|0,d=d+Math.imul(J,ue)|0,d=d+Math.imul(X,ne)|0,m=m+Math.imul(X,ue)|0,p=p+Math.imul(T,Se)|0,d=d+Math.imul(T,ke)|0,d=d+Math.imul(L,Se)|0,m=m+Math.imul(L,ke)|0;var rt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(rt>>>26)|0,rt&=67108863,p=Math.imul(Me,Be),d=Math.imul(Me,ze),d=d+Math.imul(Y,Be)|0,m=Math.imul(Y,ze),p=p+Math.imul(re,Ze)|0,d=d+Math.imul(re,$e)|0,d=d+Math.imul(ie,Ze)|0,m=m+Math.imul(ie,$e)|0,p=p+Math.imul(H,We)|0,d=d+Math.imul(H,Ue)|0,d=d+Math.imul(B,We)|0,m=m+Math.imul(B,Ue)|0,p=p+Math.imul(_e,it)|0,d=d+Math.imul(_e,He)|0,d=d+Math.imul(xe,it)|0,m=m+Math.imul(xe,He)|0,p=p+Math.imul(me,tt)|0,d=d+Math.imul(me,Fe)|0,d=d+Math.imul(ye,tt)|0,m=m+Math.imul(ye,Fe)|0,p=p+Math.imul(pe,N)|0,d=d+Math.imul(pe,z)|0,d=d+Math.imul(be,N)|0,m=m+Math.imul(be,z)|0,p=p+Math.imul(W,I)|0,d=d+Math.imul(W,$)|0,d=d+Math.imul(ee,I)|0,m=m+Math.imul(ee,$)|0,p=p+Math.imul(de,ne)|0,d=d+Math.imul(de,ue)|0,d=d+Math.imul(ce,ne)|0,m=m+Math.imul(ce,ue)|0,p=p+Math.imul(J,Se)|0,d=d+Math.imul(J,ke)|0,d=d+Math.imul(X,Se)|0,m=m+Math.imul(X,ke)|0;var ot=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(ot>>>26)|0,ot&=67108863,p=Math.imul(Me,Ze),d=Math.imul(Me,$e),d=d+Math.imul(Y,Ze)|0,m=Math.imul(Y,$e),p=p+Math.imul(re,We)|0,d=d+Math.imul(re,Ue)|0,d=d+Math.imul(ie,We)|0,m=m+Math.imul(ie,Ue)|0,p=p+Math.imul(H,it)|0,d=d+Math.imul(H,He)|0,d=d+Math.imul(B,it)|0,m=m+Math.imul(B,He)|0,p=p+Math.imul(_e,tt)|0,d=d+Math.imul(_e,Fe)|0,d=d+Math.imul(xe,tt)|0,m=m+Math.imul(xe,Fe)|0,p=p+Math.imul(me,N)|0,d=d+Math.imul(me,z)|0,d=d+Math.imul(ye,N)|0,m=m+Math.imul(ye,z)|0,p=p+Math.imul(pe,I)|0,d=d+Math.imul(pe,$)|0,d=d+Math.imul(be,I)|0,m=m+Math.imul(be,$)|0,p=p+Math.imul(W,ne)|0,d=d+Math.imul(W,ue)|0,d=d+Math.imul(ee,ne)|0,m=m+Math.imul(ee,ue)|0,p=p+Math.imul(de,Se)|0,d=d+Math.imul(de,ke)|0,d=d+Math.imul(ce,Se)|0,m=m+Math.imul(ce,ke)|0;var Xe=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,p=Math.imul(Me,We),d=Math.imul(Me,Ue),d=d+Math.imul(Y,We)|0,m=Math.imul(Y,Ue),p=p+Math.imul(re,it)|0,d=d+Math.imul(re,He)|0,d=d+Math.imul(ie,it)|0,m=m+Math.imul(ie,He)|0,p=p+Math.imul(H,tt)|0,d=d+Math.imul(H,Fe)|0,d=d+Math.imul(B,tt)|0,m=m+Math.imul(B,Fe)|0,p=p+Math.imul(_e,N)|0,d=d+Math.imul(_e,z)|0,d=d+Math.imul(xe,N)|0,m=m+Math.imul(xe,z)|0,p=p+Math.imul(me,I)|0,d=d+Math.imul(me,$)|0,d=d+Math.imul(ye,I)|0,m=m+Math.imul(ye,$)|0,p=p+Math.imul(pe,ne)|0,d=d+Math.imul(pe,ue)|0,d=d+Math.imul(be,ne)|0,m=m+Math.imul(be,ue)|0,p=p+Math.imul(W,Se)|0,d=d+Math.imul(W,ke)|0,d=d+Math.imul(ee,Se)|0,m=m+Math.imul(ee,ke)|0;var ft=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(ft>>>26)|0,ft&=67108863,p=Math.imul(Me,it),d=Math.imul(Me,He),d=d+Math.imul(Y,it)|0,m=Math.imul(Y,He),p=p+Math.imul(re,tt)|0,d=d+Math.imul(re,Fe)|0,d=d+Math.imul(ie,tt)|0,m=m+Math.imul(ie,Fe)|0,p=p+Math.imul(H,N)|0,d=d+Math.imul(H,z)|0,d=d+Math.imul(B,N)|0,m=m+Math.imul(B,z)|0,p=p+Math.imul(_e,I)|0,d=d+Math.imul(_e,$)|0,d=d+Math.imul(xe,I)|0,m=m+Math.imul(xe,$)|0,p=p+Math.imul(me,ne)|0,d=d+Math.imul(me,ue)|0,d=d+Math.imul(ye,ne)|0,m=m+Math.imul(ye,ue)|0,p=p+Math.imul(pe,Se)|0,d=d+Math.imul(pe,ke)|0,d=d+Math.imul(be,Se)|0,m=m+Math.imul(be,ke)|0;var at=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(at>>>26)|0,at&=67108863,p=Math.imul(Me,tt),d=Math.imul(Me,Fe),d=d+Math.imul(Y,tt)|0,m=Math.imul(Y,Fe),p=p+Math.imul(re,N)|0,d=d+Math.imul(re,z)|0,d=d+Math.imul(ie,N)|0,m=m+Math.imul(ie,z)|0,p=p+Math.imul(H,I)|0,d=d+Math.imul(H,$)|0,d=d+Math.imul(B,I)|0,m=m+Math.imul(B,$)|0,p=p+Math.imul(_e,ne)|0,d=d+Math.imul(_e,ue)|0,d=d+Math.imul(xe,ne)|0,m=m+Math.imul(xe,ue)|0,p=p+Math.imul(me,Se)|0,d=d+Math.imul(me,ke)|0,d=d+Math.imul(ye,Se)|0,m=m+Math.imul(ye,ke)|0;var Je=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Je>>>26)|0,Je&=67108863,p=Math.imul(Me,N),d=Math.imul(Me,z),d=d+Math.imul(Y,N)|0,m=Math.imul(Y,z),p=p+Math.imul(re,I)|0,d=d+Math.imul(re,$)|0,d=d+Math.imul(ie,I)|0,m=m+Math.imul(ie,$)|0,p=p+Math.imul(H,ne)|0,d=d+Math.imul(H,ue)|0,d=d+Math.imul(B,ne)|0,m=m+Math.imul(B,ue)|0,p=p+Math.imul(_e,Se)|0,d=d+Math.imul(_e,ke)|0,d=d+Math.imul(xe,Se)|0,m=m+Math.imul(xe,ke)|0;var Ae=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,p=Math.imul(Me,I),d=Math.imul(Me,$),d=d+Math.imul(Y,I)|0,m=Math.imul(Y,$),p=p+Math.imul(re,ne)|0,d=d+Math.imul(re,ue)|0,d=d+Math.imul(ie,ne)|0,m=m+Math.imul(ie,ue)|0,p=p+Math.imul(H,Se)|0,d=d+Math.imul(H,ke)|0,d=d+Math.imul(B,Se)|0,m=m+Math.imul(B,ke)|0;var Te=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Te>>>26)|0,Te&=67108863,p=Math.imul(Me,ne),d=Math.imul(Me,ue),d=d+Math.imul(Y,ne)|0,m=Math.imul(Y,ue),p=p+Math.imul(re,Se)|0,d=d+Math.imul(re,ke)|0,d=d+Math.imul(ie,Se)|0,m=m+Math.imul(ie,ke)|0;var Le=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Le>>>26)|0,Le&=67108863,p=Math.imul(Me,Se),d=Math.imul(Me,ke),d=d+Math.imul(Y,Se)|0,m=Math.imul(Y,ke);var De=(b+p|0)+((d&8191)<<13)|0;return b=(m+(d>>>13)|0)+(De>>>26)|0,De&=67108863,A[0]=vt,A[1]=Qe,A[2]=st,A[3]=lt,A[4]=dt,A[5]=gt,A[6]=pt,A[7]=yt,A[8]=bt,A[9]=rt,A[10]=ot,A[11]=Xe,A[12]=ft,A[13]=at,A[14]=Je,A[15]=Ae,A[16]=Te,A[17]=Le,A[18]=De,b!==0&&(A[19]=b,g.length++),g};Math.imul||(R=k);function O(v,c,h){h.negative=c.negative^v.negative,h.length=v.length+c.length;for(var g=0,w=0,E=0;E>>26)|0,w+=A>>>26,A&=67108863}h.words[E]=b,g=A,A=w}return g!==0?h.words[E]=g:h.length--,h._strip()}function D(v,c,h){return O(v,c,h)}i.prototype.mulTo=function(c,h){var g,w=this.length+c.length;return this.length===10&&c.length===10?g=R(this,c,h):w<63?g=k(this,c,h):w<1024?g=O(this,c,h):g=D(this,c,h),g},i.prototype.mul=function(c){var h=new i(null);return h.words=new Array(this.length+c.length),this.mulTo(c,h)},i.prototype.mulf=function(c){var h=new i(null);return h.words=new Array(this.length+c.length),D(this,c,h)},i.prototype.imul=function(c){return this.clone().mulTo(c,this)},i.prototype.imuln=function(c){var h=c<0;h&&(c=-c),n(typeof c=="number"),n(c<67108864);for(var g=0,w=0;w>=26,g+=E/67108864|0,g+=A>>>26,this.words[w]=A&67108863}return g!==0&&(this.words[w]=g,this.length++),h?this.ineg():this},i.prototype.muln=function(c){return this.clone().imuln(c)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(c){var h=M(c);if(h.length===0)return new i(1);for(var g=this,w=0;w=0);var h=c%26,g=(c-h)/26,w=67108863>>>26-h<<26-h,E;if(h!==0){var A=0;for(E=0;E>>26-h}A&&(this.words[E]=A,this.length++)}if(g!==0){for(E=this.length-1;E>=0;E--)this.words[E+g]=this.words[E];for(E=0;E=0);var w;h?w=(h-h%26)/26:w=0;var E=c%26,A=Math.min((c-E)/26,this.length),b=67108863^67108863>>>E<A)for(this.length-=A,d=0;d=0&&(m!==0||d>=w);d--){var U=this.words[d]|0;this.words[d]=m<<26-E|U>>>E,m=U&b}return p&&m!==0&&(p.words[p.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(c,h,g){return n(this.negative===0),this.iushrn(c,h,g)},i.prototype.shln=function(c){return this.clone().ishln(c)},i.prototype.ushln=function(c){return this.clone().iushln(c)},i.prototype.shrn=function(c){return this.clone().ishrn(c)},i.prototype.ushrn=function(c){return this.clone().iushrn(c)},i.prototype.testn=function(c){n(typeof c=="number"&&c>=0);var h=c%26,g=(c-h)/26,w=1<=0);var h=c%26,g=(c-h)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(h!==0&&g++,this.length=Math.min(g,this.length),h!==0){var w=67108863^67108863>>>h<=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},i.prototype.isubn=function(c){if(n(typeof c=="number"),n(c<67108864),c<0)return this.iaddn(-c);if(this.negative!==0)return this.negative=0,this.iaddn(c),this.negative=1,this;if(this.words[0]-=c,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h>26)-(p/67108864|0),this.words[E+g]=A&67108863}for(;E>26,this.words[E+g]=A&67108863;if(b===0)return this._strip();for(n(b===-1),b=0,E=0;E>26,this.words[E]=A&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(c,h){var g=this.length-c.length,w=this.clone(),E=c,A=E.words[E.length-1]|0,b=this._countBits(A);g=26-b,g!==0&&(E=E.ushln(g),w.iushln(g),A=E.words[E.length-1]|0);var p=w.length-E.length,d;if(h!=="mod"){d=new i(null),d.length=p+1,d.words=new Array(d.length);for(var m=0;m=0;T--){var L=(w.words[E.length+T]|0)*67108864+(w.words[E.length+T-1]|0);for(L=Math.min(L/A|0,67108863),w._ishlnsubmul(E,L,T);w.negative!==0;)L--,w.negative=0,w._ishlnsubmul(E,1,T),w.isZero()||(w.negative^=1);d&&(d.words[T]=L)}return d&&d._strip(),w._strip(),h!=="div"&&g!==0&&w.iushrn(g),{div:d||null,mod:w}},i.prototype.divmod=function(c,h,g){if(n(!c.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var w,E,A;return this.negative!==0&&c.negative===0?(A=this.neg().divmod(c,h),h!=="mod"&&(w=A.div.neg()),h!=="div"&&(E=A.mod.neg(),g&&E.negative!==0&&E.iadd(c)),{div:w,mod:E}):this.negative===0&&c.negative!==0?(A=this.divmod(c.neg(),h),h!=="mod"&&(w=A.div.neg()),{div:w,mod:A.mod}):(this.negative&c.negative)!==0?(A=this.neg().divmod(c.neg(),h),h!=="div"&&(E=A.mod.neg(),g&&E.negative!==0&&E.isub(c)),{div:A.div,mod:E}):c.length>this.length||this.cmp(c)<0?{div:new i(0),mod:this}:c.length===1?h==="div"?{div:this.divn(c.words[0]),mod:null}:h==="mod"?{div:null,mod:new i(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new i(this.modrn(c.words[0]))}:this._wordDiv(c,h)},i.prototype.div=function(c){return this.divmod(c,"div",!1).div},i.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod},i.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod},i.prototype.divRound=function(c){var h=this.divmod(c);if(h.mod.isZero())return h.div;var g=h.div.negative!==0?h.mod.isub(c):h.mod,w=c.ushrn(1),E=c.andln(1),A=g.cmp(w);return A<0||E===1&&A===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},i.prototype.modrn=function(c){var h=c<0;h&&(c=-c),n(c<=67108863);for(var g=(1<<26)%c,w=0,E=this.length-1;E>=0;E--)w=(g*w+(this.words[E]|0))%c;return h?-w:w},i.prototype.modn=function(c){return this.modrn(c)},i.prototype.idivn=function(c){var h=c<0;h&&(c=-c),n(c<=67108863);for(var g=0,w=this.length-1;w>=0;w--){var E=(this.words[w]|0)+g*67108864;this.words[w]=E/c|0,g=E%c}return this._strip(),h?this.ineg():this},i.prototype.divn=function(c){return this.clone().idivn(c)},i.prototype.egcd=function(c){n(c.negative===0),n(!c.isZero());var h=this,g=c.clone();h.negative!==0?h=h.umod(c):h=h.clone();for(var w=new i(1),E=new i(0),A=new i(0),b=new i(1),p=0;h.isEven()&&g.isEven();)h.iushrn(1),g.iushrn(1),++p;for(var d=g.clone(),m=h.clone();!h.isZero();){for(var U=0,T=1;(h.words[0]&T)===0&&U<26;++U,T<<=1);if(U>0)for(h.iushrn(U);U-- >0;)(w.isOdd()||E.isOdd())&&(w.iadd(d),E.isub(m)),w.iushrn(1),E.iushrn(1);for(var L=0,G=1;(g.words[0]&G)===0&&L<26;++L,G<<=1);if(L>0)for(g.iushrn(L);L-- >0;)(A.isOdd()||b.isOdd())&&(A.iadd(d),b.isub(m)),A.iushrn(1),b.iushrn(1);h.cmp(g)>=0?(h.isub(g),w.isub(A),E.isub(b)):(g.isub(h),A.isub(w),b.isub(E))}return{a:A,b,gcd:g.iushln(p)}},i.prototype._invmp=function(c){n(c.negative===0),n(!c.isZero());var h=this,g=c.clone();h.negative!==0?h=h.umod(c):h=h.clone();for(var w=new i(1),E=new i(0),A=g.clone();h.cmpn(1)>0&&g.cmpn(1)>0;){for(var b=0,p=1;(h.words[0]&p)===0&&b<26;++b,p<<=1);if(b>0)for(h.iushrn(b);b-- >0;)w.isOdd()&&w.iadd(A),w.iushrn(1);for(var d=0,m=1;(g.words[0]&m)===0&&d<26;++d,m<<=1);if(d>0)for(g.iushrn(d);d-- >0;)E.isOdd()&&E.iadd(A),E.iushrn(1);h.cmp(g)>=0?(h.isub(g),w.isub(E)):(g.isub(h),E.isub(w))}var U;return h.cmpn(1)===0?U=w:U=E,U.cmpn(0)<0&&U.iadd(c),U},i.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var h=this.clone(),g=c.clone();h.negative=0,g.negative=0;for(var w=0;h.isEven()&&g.isEven();w++)h.iushrn(1),g.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;g.isEven();)g.iushrn(1);var E=h.cmp(g);if(E<0){var A=h;h=g,g=A}else if(E===0||g.cmpn(1)===0)break;h.isub(g)}while(!0);return g.iushln(w)},i.prototype.invm=function(c){return this.egcd(c).a.umod(c)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(c){return this.words[0]&c},i.prototype.bincn=function(c){n(typeof c=="number");var h=c%26,g=(c-h)/26,w=1<>>26,b&=67108863,this.words[A]=b}return E!==0&&(this.words[A]=E,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(c){var h=c<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var g;if(this.length>1)g=1;else{h&&(c=-c),n(c<=67108863,"Number is too big");var w=this.words[0]|0;g=w===c?0:wc.length)return 1;if(this.length=0;g--){var w=this.words[g]|0,E=c.words[g]|0;if(w!==E){wE&&(h=1);break}}return h},i.prototype.gtn=function(c){return this.cmpn(c)===1},i.prototype.gt=function(c){return this.cmp(c)===1},i.prototype.gten=function(c){return this.cmpn(c)>=0},i.prototype.gte=function(c){return this.cmp(c)>=0},i.prototype.ltn=function(c){return this.cmpn(c)===-1},i.prototype.lt=function(c){return this.cmp(c)===-1},i.prototype.lten=function(c){return this.cmpn(c)<=0},i.prototype.lte=function(c){return this.cmp(c)<=0},i.prototype.eqn=function(c){return this.cmpn(c)===0},i.prototype.eq=function(c){return this.cmp(c)===0},i.red=function(c){return new F(c)},i.prototype.toRed=function(c){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),c.convertTo(this)._forceRed(c)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(c){return this.red=c,this},i.prototype.forceRed=function(c){return n(!this.red,"Already a number in reduction context"),this._forceRed(c)},i.prototype.redAdd=function(c){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},i.prototype.redIAdd=function(c){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},i.prototype.redSub=function(c){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},i.prototype.redISub=function(c){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},i.prototype.redShl=function(c){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},i.prototype.redMul=function(c){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},i.prototype.redIMul=function(c){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(c){return n(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var j={k256:null,p224:null,p192:null,p25519:null};function K(v,c){this.name=v,this.p=new i(c,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var c=new i(null);return c.words=new Array(Math.ceil(this.n/13)),c},K.prototype.ireduce=function(c){var h=c,g;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),g=h.bitLength();while(g>this.n);var w=g0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},K.prototype.split=function(c,h){c.iushrn(this.n,0,h)},K.prototype.imulK=function(c){return c.imul(this.k)};function Z(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(Z,K),Z.prototype.split=function(c,h){for(var g=4194303,w=Math.min(c.length,9),E=0;E>>22,A=b}A>>>=22,c.words[E-10]=A,A===0&&c.length>10?c.length-=10:c.length-=9},Z.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var h=0,g=0;g>>=26,c.words[g]=E,h=w}return h!==0&&(c.words[c.length++]=h),c},i._prime=function(c){if(j[c])return j[c];var h;if(c==="k256")h=new Z;else if(c==="p224")h=new te;else if(c==="p192")h=new se;else if(c==="p25519")h=new he;else throw new Error("Unknown prime "+c);return j[c]=h,h};function F(v){if(typeof v=="string"){var c=i._prime(v);this.m=c.p,this.prime=c}else n(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}F.prototype._verify1=function(c){n(c.negative===0,"red works only with positives"),n(c.red,"red works only with red numbers")},F.prototype._verify2=function(c,h){n((c.negative|h.negative)===0,"red works only with positives"),n(c.red&&c.red===h.red,"red works only with red numbers")},F.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(u(c,c.umod(this.m)._forceRed(this)),c)},F.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},F.prototype.add=function(c,h){this._verify2(c,h);var g=c.add(h);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},F.prototype.iadd=function(c,h){this._verify2(c,h);var g=c.iadd(h);return g.cmp(this.m)>=0&&g.isub(this.m),g},F.prototype.sub=function(c,h){this._verify2(c,h);var g=c.sub(h);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},F.prototype.isub=function(c,h){this._verify2(c,h);var g=c.isub(h);return g.cmpn(0)<0&&g.iadd(this.m),g},F.prototype.shl=function(c,h){return this._verify1(c),this.imod(c.ushln(h))},F.prototype.imul=function(c,h){return this._verify2(c,h),this.imod(c.imul(h))},F.prototype.mul=function(c,h){return this._verify2(c,h),this.imod(c.mul(h))},F.prototype.isqr=function(c){return this.imul(c,c.clone())},F.prototype.sqr=function(c){return this.mul(c,c)},F.prototype.sqrt=function(c){if(c.isZero())return c.clone();var h=this.m.andln(3);if(n(h%2===1),h===3){var g=this.m.add(new i(1)).iushrn(2);return this.pow(c,g)}for(var w=this.m.subn(1),E=0;!w.isZero()&&w.andln(1)===0;)E++,w.iushrn(1);n(!w.isZero());var A=new i(1).toRed(this),b=A.redNeg(),p=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);this.pow(d,p).cmp(b)!==0;)d.redIAdd(b);for(var m=this.pow(d,w),U=this.pow(c,w.addn(1).iushrn(1)),T=this.pow(c,w),L=E;T.cmp(A)!==0;){for(var G=T,J=0;G.cmp(A)!==0;J++)G=G.redSqr();n(J=0;E--){for(var m=h.words[E],U=d-1;U>=0;U--){var T=m>>U&1;if(A!==w[0]&&(A=this.sqr(A)),T===0&&b===0){p=0;continue}b<<=1,b|=T,p++,!(p!==g&&(E!==0||U!==0))&&(A=this.mul(A,w[b]),p=0,b=0)}d=26}return A},F.prototype.convertTo=function(c){var h=c.umod(this.m);return h===c?h.clone():h},F.prototype.convertFrom=function(c){var h=c.clone();return h.red=null,h},i.mont=function(c){return new P(c)};function P(v){F.call(this,v),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}f(P,F),P.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},P.prototype.convertFrom=function(c){var h=this.imod(c.mul(this.rinv));return h.red=null,h},P.prototype.imul=function(c,h){if(c.isZero()||h.isZero())return c.words[0]=0,c.length=1,c;var g=c.imul(h),w=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=g.isub(w).iushrn(this.shift),A=E;return E.cmp(this.m)>=0?A=E.isub(this.m):E.cmpn(0)<0&&(A=E.iadd(this.m)),A._forceRed(this)},P.prototype.mul=function(c,h){if(c.isZero()||h.isZero())return new i(0)._forceRed(this);var g=c.mul(h),w=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=g.isub(w).iushrn(this.shift),A=E;return E.cmp(this.m)>=0?A=E.isub(this.m):E.cmpn(0)<0&&(A=E.iadd(this.m)),A._forceRed(this)},P.prototype.invm=function(c){var h=this.imod(c._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(r,ge)})(GC);var M_;function Eee(){if(M_)return bu;M_=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.Signature=void 0;var r=GC.exports,e=gf,t=gl(),n=function(){function f(i,a){this.signature=i,this.ec=a}return f.fromString=function(i,a){var o=e.stringToSignature(i);return a||(a=t.constructElliptic(o.type)),new f(o,a)},f.fromElliptic=function(i,a,o){var l=i.r.toArray("be",32),s=i.s.toArray("be",32),u;a===e.KeyType.k1||a===e.KeyType.r1?(u=i.recoveryParam+27,i.recoveryParam<=3&&(u+=4)):a===e.KeyType.wa&&(u=i.recoveryParam);var y=new Uint8Array([u].concat(l,s));return o||(o=t.constructElliptic(a)),new f({type:a,data:y},o)},f.prototype.toElliptic=function(){var i=32,a=32,o=new r(this.signature.data.slice(1,i+1)),l=new r(this.signature.data.slice(i+1,i+a+1)),s;this.signature.type===e.KeyType.k1||this.signature.type===e.KeyType.r1?(s=this.signature.data[0]-27,s>3&&(s-=4)):this.signature.type===e.KeyType.wa&&(s=this.signature.data[0]);var u=s&3;return{r:o,s:l,recoveryParam:u}},f.prototype.toString=function(){return e.signatureToString(this.signature)},f.prototype.toBinary=function(){return this.signature.data},f.prototype.getType=function(){return this.signature.type},f.prototype.verify=function(i,a,o,l){o===void 0&&(o=!0),l===void 0&&(l="utf8"),o&&(typeof i=="string"&&(i=Buffer.from(i,l)),i=this.ec.hash().update(i).digest());var s=this.toElliptic(),u=a.toElliptic();return this.ec.verify(i,s,u,l)},f.prototype.recover=function(i,a,o){a===void 0&&(a=!0),o===void 0&&(o="utf8"),a&&(typeof i=="string"&&(i=Buffer.from(i,o)),i=this.ec.hash().update(i).digest());var l=this.toElliptic(),s=this.ec.recoverPubKey(i,l,l.recoveryParam,o),u=this.ec.keyFromPublic(s);return t.PublicKey.fromElliptic(u,this.getType(),this.ec)},f}();return bu.Signature=n,bu}var P_;function gl(){return P_||(P_=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.sha256=r.generateKeyPair=r.constructElliptic=r.Signature=r.PublicKey=r.PrivateKey=void 0;var e=td,t=tn,n=gf,f=T_(),i=k_(),a=k_();Object.defineProperty(r,"PrivateKey",{enumerable:!0,get:function(){return a.PrivateKey}});var o=T_();Object.defineProperty(r,"PublicKey",{enumerable:!0,get:function(){return o.PublicKey}});var l=Eee();Object.defineProperty(r,"Signature",{enumerable:!0,get:function(){return l.Signature}});var s=function(x){return x===n.KeyType.k1?new e.ec("secp256k1"):new e.ec("p256")};r.constructElliptic=s;var u=function(x,_){if(_===void 0&&(_={}),!_.secureEnv)throw new Error("Key generation is completely INSECURE in production environments in the browser. If you are absolutely certain this does NOT describe your environment, set `secureEnv` in your options to `true`. If this does describe your environment and you set `secureEnv` to `true`, YOU DO SO AT YOUR OWN RISK AND THE RISK OF YOUR USERS.");var S;x===n.KeyType.k1?S=new e.ec("secp256k1"):S=new e.ec("p256");var C=S.genKeyPair(_.ecOptions),M=f.PublicKey.fromElliptic(C,x,S),k=i.PrivateKey.fromElliptic(C,x,S);return{publicKey:M,privateKey:k}};r.generateKeyPair=u;var y=function(x){return t.sha256().update(x).digest()};r.sha256=y}(Oy)),Oy}(function(r){var e=ge&&ge.__awaiter||function(u,y,x,_){function S(C){return C instanceof x?C:new x(function(M){M(C)})}return new(x||(x=Promise))(function(C,M){function k(D){try{O(_.next(D))}catch(j){M(j)}}function R(D){try{O(_.throw(D))}catch(j){M(j)}}function O(D){D.done?C(D.value):S(D.value).then(k,R)}O((_=_.apply(u,y||[])).next())})},t=ge&&ge.__generator||function(u,y){var x={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},_,S,C,M;return M={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function k(O){return function(D){return R([O,D])}}function R(O){if(_)throw new TypeError("Generator is already executing.");for(;x;)try{if(_=1,S&&(C=O[0]&2?S.return:O[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,O[1])).done)return C;switch(S=0,C&&(O=[O[0]&2,C.value]),O[0]){case 0:case 1:C=O;break;case 4:return x.label++,{value:O[1],done:!1};case 5:x.label++,S=O[1],O=[0];continue;case 7:O=x.ops.pop(),x.trys.pop();continue;default:if(C=x.trys,!(C=C.length>0&&C[C.length-1])&&(O[0]===6||O[0]===2)){x=0;continue}if(O[0]===3&&(!C||O[1]>C[0]&&O[1]=u.length&&(u=void 0),{value:u&&u[_++],done:!u}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.JsSignatureProvider=r.digestFromSerializedData=r.Signature=r.PublicKey=r.PrivateKey=void 0;var f=td,i=gl();Object.defineProperty(r,"PrivateKey",{enumerable:!0,get:function(){return i.PrivateKey}}),Object.defineProperty(r,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}}),Object.defineProperty(r,"Signature",{enumerable:!0,get:function(){return i.Signature}});var a=gf,o=new f.ec("secp256k1"),l=function(u,y,x,_){_===void 0&&(_=o);var S=Buffer.concat([Buffer.from(u,"hex"),Buffer.from(y),Buffer.from(x?new Uint8Array(_.hash().update(x).digest()):new Uint8Array(32))]);return _.hash().update(S).digest()};r.digestFromSerializedData=l;var s=function(){function u(y){var x,_;this.keys=new Map,this.availableKeys=[];try{for(var S=n(y),C=S.next();!C.done;C=S.next()){var M=C.value,k=i.PrivateKey.fromString(M),R=k.toElliptic(),O=k.getPublicKey().toString();this.keys.set(O,R),this.availableKeys.push(O)}}catch(D){x={error:D}}finally{try{C&&!C.done&&(_=S.return)&&_.call(S)}finally{if(x)throw x.error}}}return u.prototype.getAvailableKeys=function(){return e(this,void 0,void 0,function(){return t(this,function(y){return[2,this.availableKeys]})})},u.prototype.sign=function(y){var x=y.chainId,_=y.requiredKeys,S=y.serializedTransaction,C=y.serializedContextFreeData;return e(this,void 0,void 0,function(){var M,k,R,O,D,j,K,Z,te,se,he;return t(this,function(F){M=l(x,S,C,o),k=[];try{for(R=n(_),O=R.next();!O.done;O=R.next())D=O.value,j=i.PublicKey.fromString(D),K=this.keys.get(a.convertLegacyPublicKey(D)),Z=i.PrivateKey.fromElliptic(K,j.getType()),te=Z.sign(M,!1),k.push(te.toString())}catch(P){se={error:P}}finally{try{O&&!O.done&&(he=R.return)&&he.call(R)}finally{if(se)throw se.error}}return[2,{signatures:k,serializedTransaction:S,serializedContextFreeData:C}]})})},u}();r.JsSignatureProvider=s})(qC);Object.defineProperty(kv,"__esModule",{value:!0});var WC=kv.ecc=void 0,_f=qC,Tee=gl(),See=gf;WC=kv.ecc={initialize:function(){return console.error("Method deprecated")},unsafeRandomKey:function(){return console.error("Method deprecated")},randomKey:function(r,e){e===void 0&&(e={}),r!==void 0&&console.warn("Argument `cpuEntropyBits` is deprecated, use the options argument instead");var t=Tee.generateKeyPair(See.KeyType.k1,e).privateKey;return Promise.resolve(t.toLegacyString())},seedPrivate:function(){return console.error("Method deprecated")},privateToPublic:function(r,e){e!==void 0&&console.warn("Argument `pubkey_prefix` is deprecated, keys prefixed with PUB_K1_/PUB_R1_/PUB_WA_ going forward");var t=_f.PrivateKey.fromString(r),n=t.getPublicKey();return n.toLegacyString()},isValidPublic:function(r,e){e!==void 0&&console.warn("Argument `pubkey_prefix` is deprecated, keys prefixed with PUB_K1_/PUB_R1_/PUB_WA_ going forward");try{var t=_f.PublicKey.fromString(r);return t.isValid()}catch{return!1}},isValidPrivate:function(r){try{var e=_f.PrivateKey.fromString(r);return e.isValid()}catch{return!1}},sign:function(r,e,t){t===void 0&&(t="utf8");var n=typeof e=="string"?_f.PrivateKey.fromString(e):e,f=n.sign(r,!0,t);return f.toString()},signHash:function(r,e,t){t===void 0&&(t="hex");var n=typeof e=="string"?_f.PrivateKey.fromString(e):e,f=n.sign(r,!1,t);return f.toString()},verify:function(r,e,t,n,f){n===void 0&&(n="utf8"),f===void 0&&(f=!0);var i=typeof t=="string"?_f.PublicKey.fromString(t):t,a=_f.Signature.fromString(r);return a.verify(e,i,f,n)},recover:function(r,e,t){t===void 0&&(t="utf8");var n=_f.Signature.fromString(r),f=n.recover(e,!0,t);return f.toLegacyString()},recoverHash:function(r,e,t){t===void 0&&(t="hex");var n=_f.Signature.fromString(r),f=n.recover(e,!1,t);return f.toLegacyString()},sha256:function(r,e,t){return t!==void 0&&console.warn("Argument `encoding` is deprecated"),e!==void 0&&console.warn("Argument `resultEncoding` is deprecated"),gl().sha256(r)}};var kee=globalThis&&globalThis.__makeTemplateObject||function(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r},By=globalThis&&globalThis.__awaiter||function(r,e,t,n){function f(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(u){try{s(n.next(u))}catch(y){a(y)}}function l(u){try{s(n.throw(u))}catch(y){a(y)}}function s(u){u.done?i(u.value):f(u.value).then(o,l)}s((n=n.apply(r,e||[])).next())})},Dy=globalThis&&globalThis.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,f,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(s){return function(u){return l([s,u])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(t=0)),t;)try{if(n=1,f&&(i=s[0]&2?f.return:s[0]?f.throw||((i=f.return)&&i.call(f),0):f.next)&&!(i=i.call(f,s[1])).done)return i;switch(f=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,f=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]import("./FlowProvider.95a44d2b.js"),[])];case 4:t=l.sent(),n=t.getFlowProvider(),l.label=5;case 5:return l.trys.push([5,7,,8]),[4,n.send([n.script(I_||(I_=kee([` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,o;return{s:function(){t=t.call(r)},n:function(){var s=t.next();return i=s.done,s},e:function(s){a=!0,o=s},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(a)throw o}}}}var x_,ree=typeof queueMicrotask=="function"?queueMicrotask:function(r){return(x_||(x_=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},nee=function(){var e=[],t;return{deliver:function(f){return Sv(Bc.mark(function i(){return Bc.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:e.push(f),t&&(t(e.shift()),t=void 0);case 2:case"end":return o.stop()}},i)}))()},receive:function(){return new Promise(function(i){var a=e.shift();if(a)return i(a);t=i})}}},w_="INIT",iee="SUBSCRIBE",fee="UNSUBSCRIBE",aee="UPDATED",oee="EXIT",__="TERMINATE",wr=(typeof self>"u"?"undefined":Kf(self))==="object"&&self.self===self&&self||(typeof global>"u"?"undefined":Kf(global))==="object"&&global.global===global&&global||(typeof window>"u"?"undefined":Kf(window))==="object"&&window.window===window&&window;wr.FCL_REGISTRY=wr.FCL_REGISTRY==null?{}:wr.FCL_REGISTRY;var see=0,cee=5e3,uh=function(e,t,n){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return new Promise(function(i,a){var o=f.expectReply||!1,l=f.timeout!=null?f.timeout:cee;o&&l&&setTimeout(function(){return a(new Error("Timeout: ".concat(l,"ms passed without a response.")))},l);var s={to:e,from:f.from,tag:t,data:n,timeout:l,reply:i,reject:a};try{wr.FCL_REGISTRY[e]&&wr.FCL_REGISTRY[e].mailbox.deliver(s),o||i(!0)}catch(u){console.error("FCL.Actor -- Could Not Deliver Message",s,wr.FCL_REGISTRY[e],u)}})},lee=function(e){delete wr.FCL_REGISTRY[e]},uee=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(){var t=Sv(Bc.mark(function n(f){var i;return Bc.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(typeof e[w_]!="function"){o.next=3;break}return o.next=3,e[w_](f);case 3:return o.next=6,f.receive();case 6:if(i=o.sent,o.prev=7,i.tag!==oee){o.next=13;break}if(typeof e[__]!="function"){o.next=12;break}return o.next=12,e[__](f,i,i.data||{});case 12:return o.abrupt("break",25);case 13:return o.next=15,e[i.tag](f,i,i.data||{});case 15:o.next=20;break;case 17:o.prev=17,o.t0=o.catch(7),console.error("".concat(f.self()," Error"),i,o.t0);case 20:return o.prev=20,o.abrupt("continue",3);case 23:o.next=3;break;case 25:case"end":return o.stop()}},n,null,[[7,17,20,23]])}));return function(n){return t.apply(this,arguments)}}()},dee=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(t==null&&(t=++see),wr.FCL_REGISTRY[t]!=null)return t;wr.FCL_REGISTRY[t]={addr:t,mailbox:nee(),subs:new Set,kvs:{},error:null};var n={self:function(){return t},receive:function(){return wr.FCL_REGISTRY[t].mailbox.receive()},send:function(i,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return l.from=t,uh(i,a,o,l)},sendSelf:function(i,a,o){wr.FCL_REGISTRY[t]&&uh(t,i,a,o)},broadcast:function(i,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};o.from=t;var l=m_(wr.FCL_REGISTRY[t].subs),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;uh(u,i,a,o)}}catch(y){l.e(y)}finally{l.f()}},subscribe:function(i){return i!=null&&wr.FCL_REGISTRY[t].subs.add(i)},unsubscribe:function(i){return i!=null&&wr.FCL_REGISTRY[t].subs.delete(i)},subscriberCount:function(){return wr.FCL_REGISTRY[t].subs.size},hasSubs:function(){return!!wr.FCL_REGISTRY[t].subs.size},put:function(i,a){i!=null&&(wr.FCL_REGISTRY[t].kvs[i]=a)},get:function(i,a){var o=wr.FCL_REGISTRY[t].kvs[i];return o??a},delete:function(i){delete wr.FCL_REGISTRY[t].kvs[i]},update:function(i,a){i!=null&&(wr.FCL_REGISTRY[t].kvs[i]=a(wr.FCL_REGISTRY[t].kvs[i]))},keys:function(){return Object.keys(wr.FCL_REGISTRY[t].kvs)},all:function(){return wr.FCL_REGISTRY[t].kvs},where:function(i){return Object.keys(wr.FCL_REGISTRY[t].kvs).reduce(function(a,o){return i.test(o)?wa(wa({},a),{},i0({},o,wr.FCL_REGISTRY[t].kvs[o])):a},{})},merge:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(i).forEach(function(a){return wr.FCL_REGISTRY[t].kvs[a]=i[a]})},fatalError:function(i){wr.FCL_REGISTRY[t].error=i;var a=m_(wr.FCL_REGISTRY[t].subs),o;try{for(a.s();!(o=a.n()).done;){var l=o.value;uh(l,aee)}}catch(s){a.e(s)}finally{a.f()}}};return Kf(e)==="object"&&(e=uee(e)),ree(Sv(Bc.mark(function f(){return Bc.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e(n);case 2:lee(t);case 3:case"end":return a.stop()}},f)}))),t},t0,hee="config",pee="PUT_CONFIG",bee="GET_CONFIG",yee="GET_ALL_CONFIG",gee="UPDATE_CONFIG",vee="DELETE_CONFIG",mee="CLEAR_CONFIG",xee="WHERE_CONFIG",du="CONFIG/UPDATED",wee=function(e){return e},_ee=(t0={},i0(t0,pee,function(r,e,t){var n=t.key,f=t.value;if(n==null)throw new Error("Missing 'key' for config/put.");r.put(n,f),r.broadcast(du,wa({},r.all()))}),i0(t0,bee,function(r,e,t){var n=t.key,f=t.fallback;if(n==null)throw new Error("Missing 'key' for config/get");e.reply(r.get(n,f))}),i0(t0,yee,function(r,e){e.reply(wa({},r.all()))}),i0(t0,gee,function(r,e,t){var n=t.key,f=t.fn;if(n==null)throw new Error("Missing 'key' for config/update");r.update(n,f||wee),r.broadcast(du,wa({},r.all()))}),i0(t0,vee,function(r,e,t){var n=t.key;if(n==null)throw new Error("Missing 'key' for config/delete");r.delete(n),r.broadcast(du,wa({},r.all()))}),i0(t0,mee,function(r,e){for(var t=Object.keys(r.all()),n=0,f=t;n0?c:h},i.min=function(c,h){return c.cmp(h)<0?c:h},i.prototype._init=function(c,h,g){if(typeof c=="number")return this._initNumber(c,h,g);if(typeof c=="object")return this._initArray(c,h,g);h==="hex"&&(h=16),n(h===(h|0)&&h>=2&&h<=36),c=c.toString().replace(/\s+/g,"");var w=0;c[0]==="-"&&(w++,this.negative=1),w=0;w-=3)A=c[w]|c[w-1]<<8|c[w-2]<<16,this.words[E]|=A<>>26-b&67108863,b+=24,b>=26&&(b-=26,E++);else if(g==="le")for(w=0,E=0;w>>26-b&67108863,b+=24,b>=26&&(b-=26,E++);return this._strip()};function o(v,c){var h=v.charCodeAt(c);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;n(!1,"Invalid character in "+v)}function l(v,c,h){var g=o(v,h);return h-1>=c&&(g|=o(v,h-1)<<4),g}i.prototype._parseHex=function(c,h,g){this.length=Math.ceil((c.length-h)/6),this.words=new Array(this.length);for(var w=0;w=h;w-=2)b=l(c,h,w)<=18?(E-=18,A+=1,this.words[A]|=b>>>26):E+=8;else{var p=c.length-h;for(w=p%2===0?h+1:h;w=18?(E-=18,A+=1,this.words[A]|=b>>>26):E+=8}this._strip()};function s(v,c,h,g){for(var w=0,E=0,A=Math.min(v.length,h),b=c;b=49?E=p-49+10:p>=17?E=p-17+10:E=p,n(p>=0&&E1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{i.prototype.inspect=y}else i.prototype.inspect=y;function y(){return(this.red?""}var x=["","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"],_=[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],S=[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];i.prototype.toString=function(c,h){c=c||10,h=h|0||1;var g;if(c===16||c==="hex"){g="";for(var w=0,E=0,A=0;A>>24-w&16777215,E!==0||A!==this.length-1?g=x[6-p.length]+p+g:g=p+g,w+=2,w>=26&&(w-=26,A--)}for(E!==0&&(g=E.toString(16)+g);g.length%h!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(c===(c|0)&&c>=2&&c<=36){var d=_[c],m=S[c];g="";var U=this.clone();for(U.negative=0;!U.isZero();){var T=U.modrn(m).toString(c);U=U.idivn(m),U.isZero()?g=T+g:g=x[d-T.length]+T+g}for(this.isZero()&&(g="0"+g);g.length%h!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var c=this.words[0];return this.length===2?c+=this.words[1]*67108864:this.length===3&&this.words[2]===1?c+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-c:c},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(c,h){return this.toArrayLike(a,c,h)}),i.prototype.toArray=function(c,h){return this.toArrayLike(Array,c,h)};var C=function(c,h){return c.allocUnsafe?c.allocUnsafe(h):new c(h)};i.prototype.toArrayLike=function(c,h,g){this._strip();var w=this.byteLength(),E=g||Math.max(1,w);n(w<=E,"byte array longer than desired length"),n(E>0,"Requested array length <= 0");var A=C(c,E),b=h==="le"?"LE":"BE";return this["_toArrayLike"+b](A,w),A},i.prototype._toArrayLikeLE=function(c,h){for(var g=0,w=0,E=0,A=0;E>8&255),g>16&255),A===6?(g>24&255),w=0,A=0):(w=b>>>24,A+=2)}if(g=0&&(c[g--]=b>>8&255),g>=0&&(c[g--]=b>>16&255),A===6?(g>=0&&(c[g--]=b>>24&255),w=0,A=0):(w=b>>>24,A+=2)}if(g>=0)for(c[g--]=w;g>=0;)c[g--]=0},Math.clz32?i.prototype._countBits=function(c){return 32-Math.clz32(c)}:i.prototype._countBits=function(c){var h=c,g=0;return h>=4096&&(g+=13,h>>>=13),h>=64&&(g+=7,h>>>=7),h>=8&&(g+=4,h>>>=4),h>=2&&(g+=2,h>>>=2),g+h},i.prototype._zeroBits=function(c){if(c===0)return 26;var h=c,g=0;return(h&8191)===0&&(g+=13,h>>>=13),(h&127)===0&&(g+=7,h>>>=7),(h&15)===0&&(g+=4,h>>>=4),(h&3)===0&&(g+=2,h>>>=2),(h&1)===0&&g++,g},i.prototype.bitLength=function(){var c=this.words[this.length-1],h=this._countBits(c);return(this.length-1)*26+h};function M(v){for(var c=new Array(v.bitLength()),h=0;h>>w&1}return c}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,h=0;hc.length?this.clone().ior(c):c.clone().ior(this)},i.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)},i.prototype.iuand=function(c){var h;this.length>c.length?h=c:h=this;for(var g=0;gc.length?this.clone().iand(c):c.clone().iand(this)},i.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)},i.prototype.iuxor=function(c){var h,g;this.length>c.length?(h=this,g=c):(h=c,g=this);for(var w=0;wc.length?this.clone().ixor(c):c.clone().ixor(this)},i.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)},i.prototype.inotn=function(c){n(typeof c=="number"&&c>=0);var h=Math.ceil(c/26)|0,g=c%26;this._expand(h),g>0&&h--;for(var w=0;w0&&(this.words[w]=~this.words[w]&67108863>>26-g),this._strip()},i.prototype.notn=function(c){return this.clone().inotn(c)},i.prototype.setn=function(c,h){n(typeof c=="number"&&c>=0);var g=c/26|0,w=c%26;return this._expand(g+1),h?this.words[g]=this.words[g]|1<c.length?(g=this,w=c):(g=c,w=this);for(var E=0,A=0;A>>26;for(;E!==0&&A>>26;if(this.length=g.length,E!==0)this.words[this.length]=E,this.length++;else if(g!==this)for(;Ac.length?this.clone().iadd(c):c.clone().iadd(this)},i.prototype.isub=function(c){if(c.negative!==0){c.negative=0;var h=this.iadd(c);return c.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var g=this.cmp(c);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,E;g>0?(w=this,E=c):(w=c,E=this);for(var A=0,b=0;b>26,this.words[b]=h&67108863;for(;A!==0&&b>26,this.words[b]=h&67108863;if(A===0&&b>>26,U=p&67108863,T=Math.min(d,c.length-1),L=Math.max(0,d-v.length+1);L<=T;L++){var G=d-L|0;w=v.words[G]|0,E=c.words[L]|0,A=w*E+U,m+=A/67108864|0,U=A&67108863}h.words[d]=U|0,p=m|0}return p!==0?h.words[d]=p|0:h.length--,h._strip()}var R=function(c,h,g){var w=c.words,E=h.words,A=g.words,b=0,p,d,m,U=w[0]|0,T=U&8191,L=U>>>13,G=w[1]|0,J=G&8191,X=G>>>13,ve=w[2]|0,de=ve&8191,ce=ve>>>13,Q=w[3]|0,W=Q&8191,ee=Q>>>13,Ce=w[4]|0,pe=Ce&8191,be=Ce>>>13,Ne=w[5]|0,me=Ne&8191,ye=Ne>>>13,Ee=w[6]|0,_e=Ee&8191,xe=Ee>>>13,qe=w[7]|0,H=qe&8191,B=qe>>>13,q=w[8]|0,re=q&8191,ie=q>>>13,Pe=w[9]|0,Me=Pe&8191,Y=Pe>>>13,ae=E[0]|0,Ie=ae&8191,we=ae>>>13,et=E[1]|0,Be=et&8191,ze=et>>>13,mt=E[2]|0,Ze=mt&8191,$e=mt>>>13,At=E[3]|0,We=At&8191,Ue=At>>>13,_t=E[4]|0,it=_t&8191,He=_t>>>13,Tt=E[5]|0,tt=Tt&8191,Fe=Tt>>>13,St=E[6]|0,N=St&8191,z=St>>>13,V=E[7]|0,I=V&8191,$=V>>>13,le=E[8]|0,ne=le&8191,ue=le>>>13,Oe=E[9]|0,Se=Oe&8191,ke=Oe>>>13;g.negative=c.negative^h.negative,g.length=19,p=Math.imul(T,Ie),d=Math.imul(T,we),d=d+Math.imul(L,Ie)|0,m=Math.imul(L,we);var vt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(vt>>>26)|0,vt&=67108863,p=Math.imul(J,Ie),d=Math.imul(J,we),d=d+Math.imul(X,Ie)|0,m=Math.imul(X,we),p=p+Math.imul(T,Be)|0,d=d+Math.imul(T,ze)|0,d=d+Math.imul(L,Be)|0,m=m+Math.imul(L,ze)|0;var Qe=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,p=Math.imul(de,Ie),d=Math.imul(de,we),d=d+Math.imul(ce,Ie)|0,m=Math.imul(ce,we),p=p+Math.imul(J,Be)|0,d=d+Math.imul(J,ze)|0,d=d+Math.imul(X,Be)|0,m=m+Math.imul(X,ze)|0,p=p+Math.imul(T,Ze)|0,d=d+Math.imul(T,$e)|0,d=d+Math.imul(L,Ze)|0,m=m+Math.imul(L,$e)|0;var st=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(st>>>26)|0,st&=67108863,p=Math.imul(W,Ie),d=Math.imul(W,we),d=d+Math.imul(ee,Ie)|0,m=Math.imul(ee,we),p=p+Math.imul(de,Be)|0,d=d+Math.imul(de,ze)|0,d=d+Math.imul(ce,Be)|0,m=m+Math.imul(ce,ze)|0,p=p+Math.imul(J,Ze)|0,d=d+Math.imul(J,$e)|0,d=d+Math.imul(X,Ze)|0,m=m+Math.imul(X,$e)|0,p=p+Math.imul(T,We)|0,d=d+Math.imul(T,Ue)|0,d=d+Math.imul(L,We)|0,m=m+Math.imul(L,Ue)|0;var lt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(lt>>>26)|0,lt&=67108863,p=Math.imul(pe,Ie),d=Math.imul(pe,we),d=d+Math.imul(be,Ie)|0,m=Math.imul(be,we),p=p+Math.imul(W,Be)|0,d=d+Math.imul(W,ze)|0,d=d+Math.imul(ee,Be)|0,m=m+Math.imul(ee,ze)|0,p=p+Math.imul(de,Ze)|0,d=d+Math.imul(de,$e)|0,d=d+Math.imul(ce,Ze)|0,m=m+Math.imul(ce,$e)|0,p=p+Math.imul(J,We)|0,d=d+Math.imul(J,Ue)|0,d=d+Math.imul(X,We)|0,m=m+Math.imul(X,Ue)|0,p=p+Math.imul(T,it)|0,d=d+Math.imul(T,He)|0,d=d+Math.imul(L,it)|0,m=m+Math.imul(L,He)|0;var dt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(dt>>>26)|0,dt&=67108863,p=Math.imul(me,Ie),d=Math.imul(me,we),d=d+Math.imul(ye,Ie)|0,m=Math.imul(ye,we),p=p+Math.imul(pe,Be)|0,d=d+Math.imul(pe,ze)|0,d=d+Math.imul(be,Be)|0,m=m+Math.imul(be,ze)|0,p=p+Math.imul(W,Ze)|0,d=d+Math.imul(W,$e)|0,d=d+Math.imul(ee,Ze)|0,m=m+Math.imul(ee,$e)|0,p=p+Math.imul(de,We)|0,d=d+Math.imul(de,Ue)|0,d=d+Math.imul(ce,We)|0,m=m+Math.imul(ce,Ue)|0,p=p+Math.imul(J,it)|0,d=d+Math.imul(J,He)|0,d=d+Math.imul(X,it)|0,m=m+Math.imul(X,He)|0,p=p+Math.imul(T,tt)|0,d=d+Math.imul(T,Fe)|0,d=d+Math.imul(L,tt)|0,m=m+Math.imul(L,Fe)|0;var gt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(gt>>>26)|0,gt&=67108863,p=Math.imul(_e,Ie),d=Math.imul(_e,we),d=d+Math.imul(xe,Ie)|0,m=Math.imul(xe,we),p=p+Math.imul(me,Be)|0,d=d+Math.imul(me,ze)|0,d=d+Math.imul(ye,Be)|0,m=m+Math.imul(ye,ze)|0,p=p+Math.imul(pe,Ze)|0,d=d+Math.imul(pe,$e)|0,d=d+Math.imul(be,Ze)|0,m=m+Math.imul(be,$e)|0,p=p+Math.imul(W,We)|0,d=d+Math.imul(W,Ue)|0,d=d+Math.imul(ee,We)|0,m=m+Math.imul(ee,Ue)|0,p=p+Math.imul(de,it)|0,d=d+Math.imul(de,He)|0,d=d+Math.imul(ce,it)|0,m=m+Math.imul(ce,He)|0,p=p+Math.imul(J,tt)|0,d=d+Math.imul(J,Fe)|0,d=d+Math.imul(X,tt)|0,m=m+Math.imul(X,Fe)|0,p=p+Math.imul(T,N)|0,d=d+Math.imul(T,z)|0,d=d+Math.imul(L,N)|0,m=m+Math.imul(L,z)|0;var pt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(pt>>>26)|0,pt&=67108863,p=Math.imul(H,Ie),d=Math.imul(H,we),d=d+Math.imul(B,Ie)|0,m=Math.imul(B,we),p=p+Math.imul(_e,Be)|0,d=d+Math.imul(_e,ze)|0,d=d+Math.imul(xe,Be)|0,m=m+Math.imul(xe,ze)|0,p=p+Math.imul(me,Ze)|0,d=d+Math.imul(me,$e)|0,d=d+Math.imul(ye,Ze)|0,m=m+Math.imul(ye,$e)|0,p=p+Math.imul(pe,We)|0,d=d+Math.imul(pe,Ue)|0,d=d+Math.imul(be,We)|0,m=m+Math.imul(be,Ue)|0,p=p+Math.imul(W,it)|0,d=d+Math.imul(W,He)|0,d=d+Math.imul(ee,it)|0,m=m+Math.imul(ee,He)|0,p=p+Math.imul(de,tt)|0,d=d+Math.imul(de,Fe)|0,d=d+Math.imul(ce,tt)|0,m=m+Math.imul(ce,Fe)|0,p=p+Math.imul(J,N)|0,d=d+Math.imul(J,z)|0,d=d+Math.imul(X,N)|0,m=m+Math.imul(X,z)|0,p=p+Math.imul(T,I)|0,d=d+Math.imul(T,$)|0,d=d+Math.imul(L,I)|0,m=m+Math.imul(L,$)|0;var yt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(yt>>>26)|0,yt&=67108863,p=Math.imul(re,Ie),d=Math.imul(re,we),d=d+Math.imul(ie,Ie)|0,m=Math.imul(ie,we),p=p+Math.imul(H,Be)|0,d=d+Math.imul(H,ze)|0,d=d+Math.imul(B,Be)|0,m=m+Math.imul(B,ze)|0,p=p+Math.imul(_e,Ze)|0,d=d+Math.imul(_e,$e)|0,d=d+Math.imul(xe,Ze)|0,m=m+Math.imul(xe,$e)|0,p=p+Math.imul(me,We)|0,d=d+Math.imul(me,Ue)|0,d=d+Math.imul(ye,We)|0,m=m+Math.imul(ye,Ue)|0,p=p+Math.imul(pe,it)|0,d=d+Math.imul(pe,He)|0,d=d+Math.imul(be,it)|0,m=m+Math.imul(be,He)|0,p=p+Math.imul(W,tt)|0,d=d+Math.imul(W,Fe)|0,d=d+Math.imul(ee,tt)|0,m=m+Math.imul(ee,Fe)|0,p=p+Math.imul(de,N)|0,d=d+Math.imul(de,z)|0,d=d+Math.imul(ce,N)|0,m=m+Math.imul(ce,z)|0,p=p+Math.imul(J,I)|0,d=d+Math.imul(J,$)|0,d=d+Math.imul(X,I)|0,m=m+Math.imul(X,$)|0,p=p+Math.imul(T,ne)|0,d=d+Math.imul(T,ue)|0,d=d+Math.imul(L,ne)|0,m=m+Math.imul(L,ue)|0;var bt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(bt>>>26)|0,bt&=67108863,p=Math.imul(Me,Ie),d=Math.imul(Me,we),d=d+Math.imul(Y,Ie)|0,m=Math.imul(Y,we),p=p+Math.imul(re,Be)|0,d=d+Math.imul(re,ze)|0,d=d+Math.imul(ie,Be)|0,m=m+Math.imul(ie,ze)|0,p=p+Math.imul(H,Ze)|0,d=d+Math.imul(H,$e)|0,d=d+Math.imul(B,Ze)|0,m=m+Math.imul(B,$e)|0,p=p+Math.imul(_e,We)|0,d=d+Math.imul(_e,Ue)|0,d=d+Math.imul(xe,We)|0,m=m+Math.imul(xe,Ue)|0,p=p+Math.imul(me,it)|0,d=d+Math.imul(me,He)|0,d=d+Math.imul(ye,it)|0,m=m+Math.imul(ye,He)|0,p=p+Math.imul(pe,tt)|0,d=d+Math.imul(pe,Fe)|0,d=d+Math.imul(be,tt)|0,m=m+Math.imul(be,Fe)|0,p=p+Math.imul(W,N)|0,d=d+Math.imul(W,z)|0,d=d+Math.imul(ee,N)|0,m=m+Math.imul(ee,z)|0,p=p+Math.imul(de,I)|0,d=d+Math.imul(de,$)|0,d=d+Math.imul(ce,I)|0,m=m+Math.imul(ce,$)|0,p=p+Math.imul(J,ne)|0,d=d+Math.imul(J,ue)|0,d=d+Math.imul(X,ne)|0,m=m+Math.imul(X,ue)|0,p=p+Math.imul(T,Se)|0,d=d+Math.imul(T,ke)|0,d=d+Math.imul(L,Se)|0,m=m+Math.imul(L,ke)|0;var rt=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(rt>>>26)|0,rt&=67108863,p=Math.imul(Me,Be),d=Math.imul(Me,ze),d=d+Math.imul(Y,Be)|0,m=Math.imul(Y,ze),p=p+Math.imul(re,Ze)|0,d=d+Math.imul(re,$e)|0,d=d+Math.imul(ie,Ze)|0,m=m+Math.imul(ie,$e)|0,p=p+Math.imul(H,We)|0,d=d+Math.imul(H,Ue)|0,d=d+Math.imul(B,We)|0,m=m+Math.imul(B,Ue)|0,p=p+Math.imul(_e,it)|0,d=d+Math.imul(_e,He)|0,d=d+Math.imul(xe,it)|0,m=m+Math.imul(xe,He)|0,p=p+Math.imul(me,tt)|0,d=d+Math.imul(me,Fe)|0,d=d+Math.imul(ye,tt)|0,m=m+Math.imul(ye,Fe)|0,p=p+Math.imul(pe,N)|0,d=d+Math.imul(pe,z)|0,d=d+Math.imul(be,N)|0,m=m+Math.imul(be,z)|0,p=p+Math.imul(W,I)|0,d=d+Math.imul(W,$)|0,d=d+Math.imul(ee,I)|0,m=m+Math.imul(ee,$)|0,p=p+Math.imul(de,ne)|0,d=d+Math.imul(de,ue)|0,d=d+Math.imul(ce,ne)|0,m=m+Math.imul(ce,ue)|0,p=p+Math.imul(J,Se)|0,d=d+Math.imul(J,ke)|0,d=d+Math.imul(X,Se)|0,m=m+Math.imul(X,ke)|0;var ot=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(ot>>>26)|0,ot&=67108863,p=Math.imul(Me,Ze),d=Math.imul(Me,$e),d=d+Math.imul(Y,Ze)|0,m=Math.imul(Y,$e),p=p+Math.imul(re,We)|0,d=d+Math.imul(re,Ue)|0,d=d+Math.imul(ie,We)|0,m=m+Math.imul(ie,Ue)|0,p=p+Math.imul(H,it)|0,d=d+Math.imul(H,He)|0,d=d+Math.imul(B,it)|0,m=m+Math.imul(B,He)|0,p=p+Math.imul(_e,tt)|0,d=d+Math.imul(_e,Fe)|0,d=d+Math.imul(xe,tt)|0,m=m+Math.imul(xe,Fe)|0,p=p+Math.imul(me,N)|0,d=d+Math.imul(me,z)|0,d=d+Math.imul(ye,N)|0,m=m+Math.imul(ye,z)|0,p=p+Math.imul(pe,I)|0,d=d+Math.imul(pe,$)|0,d=d+Math.imul(be,I)|0,m=m+Math.imul(be,$)|0,p=p+Math.imul(W,ne)|0,d=d+Math.imul(W,ue)|0,d=d+Math.imul(ee,ne)|0,m=m+Math.imul(ee,ue)|0,p=p+Math.imul(de,Se)|0,d=d+Math.imul(de,ke)|0,d=d+Math.imul(ce,Se)|0,m=m+Math.imul(ce,ke)|0;var Xe=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,p=Math.imul(Me,We),d=Math.imul(Me,Ue),d=d+Math.imul(Y,We)|0,m=Math.imul(Y,Ue),p=p+Math.imul(re,it)|0,d=d+Math.imul(re,He)|0,d=d+Math.imul(ie,it)|0,m=m+Math.imul(ie,He)|0,p=p+Math.imul(H,tt)|0,d=d+Math.imul(H,Fe)|0,d=d+Math.imul(B,tt)|0,m=m+Math.imul(B,Fe)|0,p=p+Math.imul(_e,N)|0,d=d+Math.imul(_e,z)|0,d=d+Math.imul(xe,N)|0,m=m+Math.imul(xe,z)|0,p=p+Math.imul(me,I)|0,d=d+Math.imul(me,$)|0,d=d+Math.imul(ye,I)|0,m=m+Math.imul(ye,$)|0,p=p+Math.imul(pe,ne)|0,d=d+Math.imul(pe,ue)|0,d=d+Math.imul(be,ne)|0,m=m+Math.imul(be,ue)|0,p=p+Math.imul(W,Se)|0,d=d+Math.imul(W,ke)|0,d=d+Math.imul(ee,Se)|0,m=m+Math.imul(ee,ke)|0;var ft=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(ft>>>26)|0,ft&=67108863,p=Math.imul(Me,it),d=Math.imul(Me,He),d=d+Math.imul(Y,it)|0,m=Math.imul(Y,He),p=p+Math.imul(re,tt)|0,d=d+Math.imul(re,Fe)|0,d=d+Math.imul(ie,tt)|0,m=m+Math.imul(ie,Fe)|0,p=p+Math.imul(H,N)|0,d=d+Math.imul(H,z)|0,d=d+Math.imul(B,N)|0,m=m+Math.imul(B,z)|0,p=p+Math.imul(_e,I)|0,d=d+Math.imul(_e,$)|0,d=d+Math.imul(xe,I)|0,m=m+Math.imul(xe,$)|0,p=p+Math.imul(me,ne)|0,d=d+Math.imul(me,ue)|0,d=d+Math.imul(ye,ne)|0,m=m+Math.imul(ye,ue)|0,p=p+Math.imul(pe,Se)|0,d=d+Math.imul(pe,ke)|0,d=d+Math.imul(be,Se)|0,m=m+Math.imul(be,ke)|0;var at=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(at>>>26)|0,at&=67108863,p=Math.imul(Me,tt),d=Math.imul(Me,Fe),d=d+Math.imul(Y,tt)|0,m=Math.imul(Y,Fe),p=p+Math.imul(re,N)|0,d=d+Math.imul(re,z)|0,d=d+Math.imul(ie,N)|0,m=m+Math.imul(ie,z)|0,p=p+Math.imul(H,I)|0,d=d+Math.imul(H,$)|0,d=d+Math.imul(B,I)|0,m=m+Math.imul(B,$)|0,p=p+Math.imul(_e,ne)|0,d=d+Math.imul(_e,ue)|0,d=d+Math.imul(xe,ne)|0,m=m+Math.imul(xe,ue)|0,p=p+Math.imul(me,Se)|0,d=d+Math.imul(me,ke)|0,d=d+Math.imul(ye,Se)|0,m=m+Math.imul(ye,ke)|0;var Je=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Je>>>26)|0,Je&=67108863,p=Math.imul(Me,N),d=Math.imul(Me,z),d=d+Math.imul(Y,N)|0,m=Math.imul(Y,z),p=p+Math.imul(re,I)|0,d=d+Math.imul(re,$)|0,d=d+Math.imul(ie,I)|0,m=m+Math.imul(ie,$)|0,p=p+Math.imul(H,ne)|0,d=d+Math.imul(H,ue)|0,d=d+Math.imul(B,ne)|0,m=m+Math.imul(B,ue)|0,p=p+Math.imul(_e,Se)|0,d=d+Math.imul(_e,ke)|0,d=d+Math.imul(xe,Se)|0,m=m+Math.imul(xe,ke)|0;var Ae=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,p=Math.imul(Me,I),d=Math.imul(Me,$),d=d+Math.imul(Y,I)|0,m=Math.imul(Y,$),p=p+Math.imul(re,ne)|0,d=d+Math.imul(re,ue)|0,d=d+Math.imul(ie,ne)|0,m=m+Math.imul(ie,ue)|0,p=p+Math.imul(H,Se)|0,d=d+Math.imul(H,ke)|0,d=d+Math.imul(B,Se)|0,m=m+Math.imul(B,ke)|0;var Te=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Te>>>26)|0,Te&=67108863,p=Math.imul(Me,ne),d=Math.imul(Me,ue),d=d+Math.imul(Y,ne)|0,m=Math.imul(Y,ue),p=p+Math.imul(re,Se)|0,d=d+Math.imul(re,ke)|0,d=d+Math.imul(ie,Se)|0,m=m+Math.imul(ie,ke)|0;var Le=(b+p|0)+((d&8191)<<13)|0;b=(m+(d>>>13)|0)+(Le>>>26)|0,Le&=67108863,p=Math.imul(Me,Se),d=Math.imul(Me,ke),d=d+Math.imul(Y,Se)|0,m=Math.imul(Y,ke);var De=(b+p|0)+((d&8191)<<13)|0;return b=(m+(d>>>13)|0)+(De>>>26)|0,De&=67108863,A[0]=vt,A[1]=Qe,A[2]=st,A[3]=lt,A[4]=dt,A[5]=gt,A[6]=pt,A[7]=yt,A[8]=bt,A[9]=rt,A[10]=ot,A[11]=Xe,A[12]=ft,A[13]=at,A[14]=Je,A[15]=Ae,A[16]=Te,A[17]=Le,A[18]=De,b!==0&&(A[19]=b,g.length++),g};Math.imul||(R=k);function O(v,c,h){h.negative=c.negative^v.negative,h.length=v.length+c.length;for(var g=0,w=0,E=0;E>>26)|0,w+=A>>>26,A&=67108863}h.words[E]=b,g=A,A=w}return g!==0?h.words[E]=g:h.length--,h._strip()}function D(v,c,h){return O(v,c,h)}i.prototype.mulTo=function(c,h){var g,w=this.length+c.length;return this.length===10&&c.length===10?g=R(this,c,h):w<63?g=k(this,c,h):w<1024?g=O(this,c,h):g=D(this,c,h),g},i.prototype.mul=function(c){var h=new i(null);return h.words=new Array(this.length+c.length),this.mulTo(c,h)},i.prototype.mulf=function(c){var h=new i(null);return h.words=new Array(this.length+c.length),D(this,c,h)},i.prototype.imul=function(c){return this.clone().mulTo(c,this)},i.prototype.imuln=function(c){var h=c<0;h&&(c=-c),n(typeof c=="number"),n(c<67108864);for(var g=0,w=0;w>=26,g+=E/67108864|0,g+=A>>>26,this.words[w]=A&67108863}return g!==0&&(this.words[w]=g,this.length++),h?this.ineg():this},i.prototype.muln=function(c){return this.clone().imuln(c)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(c){var h=M(c);if(h.length===0)return new i(1);for(var g=this,w=0;w=0);var h=c%26,g=(c-h)/26,w=67108863>>>26-h<<26-h,E;if(h!==0){var A=0;for(E=0;E>>26-h}A&&(this.words[E]=A,this.length++)}if(g!==0){for(E=this.length-1;E>=0;E--)this.words[E+g]=this.words[E];for(E=0;E=0);var w;h?w=(h-h%26)/26:w=0;var E=c%26,A=Math.min((c-E)/26,this.length),b=67108863^67108863>>>E<A)for(this.length-=A,d=0;d=0&&(m!==0||d>=w);d--){var U=this.words[d]|0;this.words[d]=m<<26-E|U>>>E,m=U&b}return p&&m!==0&&(p.words[p.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(c,h,g){return n(this.negative===0),this.iushrn(c,h,g)},i.prototype.shln=function(c){return this.clone().ishln(c)},i.prototype.ushln=function(c){return this.clone().iushln(c)},i.prototype.shrn=function(c){return this.clone().ishrn(c)},i.prototype.ushrn=function(c){return this.clone().iushrn(c)},i.prototype.testn=function(c){n(typeof c=="number"&&c>=0);var h=c%26,g=(c-h)/26,w=1<=0);var h=c%26,g=(c-h)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(h!==0&&g++,this.length=Math.min(g,this.length),h!==0){var w=67108863^67108863>>>h<=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},i.prototype.isubn=function(c){if(n(typeof c=="number"),n(c<67108864),c<0)return this.iaddn(-c);if(this.negative!==0)return this.negative=0,this.iaddn(c),this.negative=1,this;if(this.words[0]-=c,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h>26)-(p/67108864|0),this.words[E+g]=A&67108863}for(;E>26,this.words[E+g]=A&67108863;if(b===0)return this._strip();for(n(b===-1),b=0,E=0;E>26,this.words[E]=A&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(c,h){var g=this.length-c.length,w=this.clone(),E=c,A=E.words[E.length-1]|0,b=this._countBits(A);g=26-b,g!==0&&(E=E.ushln(g),w.iushln(g),A=E.words[E.length-1]|0);var p=w.length-E.length,d;if(h!=="mod"){d=new i(null),d.length=p+1,d.words=new Array(d.length);for(var m=0;m=0;T--){var L=(w.words[E.length+T]|0)*67108864+(w.words[E.length+T-1]|0);for(L=Math.min(L/A|0,67108863),w._ishlnsubmul(E,L,T);w.negative!==0;)L--,w.negative=0,w._ishlnsubmul(E,1,T),w.isZero()||(w.negative^=1);d&&(d.words[T]=L)}return d&&d._strip(),w._strip(),h!=="div"&&g!==0&&w.iushrn(g),{div:d||null,mod:w}},i.prototype.divmod=function(c,h,g){if(n(!c.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var w,E,A;return this.negative!==0&&c.negative===0?(A=this.neg().divmod(c,h),h!=="mod"&&(w=A.div.neg()),h!=="div"&&(E=A.mod.neg(),g&&E.negative!==0&&E.iadd(c)),{div:w,mod:E}):this.negative===0&&c.negative!==0?(A=this.divmod(c.neg(),h),h!=="mod"&&(w=A.div.neg()),{div:w,mod:A.mod}):(this.negative&c.negative)!==0?(A=this.neg().divmod(c.neg(),h),h!=="div"&&(E=A.mod.neg(),g&&E.negative!==0&&E.isub(c)),{div:A.div,mod:E}):c.length>this.length||this.cmp(c)<0?{div:new i(0),mod:this}:c.length===1?h==="div"?{div:this.divn(c.words[0]),mod:null}:h==="mod"?{div:null,mod:new i(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new i(this.modrn(c.words[0]))}:this._wordDiv(c,h)},i.prototype.div=function(c){return this.divmod(c,"div",!1).div},i.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod},i.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod},i.prototype.divRound=function(c){var h=this.divmod(c);if(h.mod.isZero())return h.div;var g=h.div.negative!==0?h.mod.isub(c):h.mod,w=c.ushrn(1),E=c.andln(1),A=g.cmp(w);return A<0||E===1&&A===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},i.prototype.modrn=function(c){var h=c<0;h&&(c=-c),n(c<=67108863);for(var g=(1<<26)%c,w=0,E=this.length-1;E>=0;E--)w=(g*w+(this.words[E]|0))%c;return h?-w:w},i.prototype.modn=function(c){return this.modrn(c)},i.prototype.idivn=function(c){var h=c<0;h&&(c=-c),n(c<=67108863);for(var g=0,w=this.length-1;w>=0;w--){var E=(this.words[w]|0)+g*67108864;this.words[w]=E/c|0,g=E%c}return this._strip(),h?this.ineg():this},i.prototype.divn=function(c){return this.clone().idivn(c)},i.prototype.egcd=function(c){n(c.negative===0),n(!c.isZero());var h=this,g=c.clone();h.negative!==0?h=h.umod(c):h=h.clone();for(var w=new i(1),E=new i(0),A=new i(0),b=new i(1),p=0;h.isEven()&&g.isEven();)h.iushrn(1),g.iushrn(1),++p;for(var d=g.clone(),m=h.clone();!h.isZero();){for(var U=0,T=1;(h.words[0]&T)===0&&U<26;++U,T<<=1);if(U>0)for(h.iushrn(U);U-- >0;)(w.isOdd()||E.isOdd())&&(w.iadd(d),E.isub(m)),w.iushrn(1),E.iushrn(1);for(var L=0,G=1;(g.words[0]&G)===0&&L<26;++L,G<<=1);if(L>0)for(g.iushrn(L);L-- >0;)(A.isOdd()||b.isOdd())&&(A.iadd(d),b.isub(m)),A.iushrn(1),b.iushrn(1);h.cmp(g)>=0?(h.isub(g),w.isub(A),E.isub(b)):(g.isub(h),A.isub(w),b.isub(E))}return{a:A,b,gcd:g.iushln(p)}},i.prototype._invmp=function(c){n(c.negative===0),n(!c.isZero());var h=this,g=c.clone();h.negative!==0?h=h.umod(c):h=h.clone();for(var w=new i(1),E=new i(0),A=g.clone();h.cmpn(1)>0&&g.cmpn(1)>0;){for(var b=0,p=1;(h.words[0]&p)===0&&b<26;++b,p<<=1);if(b>0)for(h.iushrn(b);b-- >0;)w.isOdd()&&w.iadd(A),w.iushrn(1);for(var d=0,m=1;(g.words[0]&m)===0&&d<26;++d,m<<=1);if(d>0)for(g.iushrn(d);d-- >0;)E.isOdd()&&E.iadd(A),E.iushrn(1);h.cmp(g)>=0?(h.isub(g),w.isub(E)):(g.isub(h),E.isub(w))}var U;return h.cmpn(1)===0?U=w:U=E,U.cmpn(0)<0&&U.iadd(c),U},i.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var h=this.clone(),g=c.clone();h.negative=0,g.negative=0;for(var w=0;h.isEven()&&g.isEven();w++)h.iushrn(1),g.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;g.isEven();)g.iushrn(1);var E=h.cmp(g);if(E<0){var A=h;h=g,g=A}else if(E===0||g.cmpn(1)===0)break;h.isub(g)}while(!0);return g.iushln(w)},i.prototype.invm=function(c){return this.egcd(c).a.umod(c)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(c){return this.words[0]&c},i.prototype.bincn=function(c){n(typeof c=="number");var h=c%26,g=(c-h)/26,w=1<>>26,b&=67108863,this.words[A]=b}return E!==0&&(this.words[A]=E,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(c){var h=c<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var g;if(this.length>1)g=1;else{h&&(c=-c),n(c<=67108863,"Number is too big");var w=this.words[0]|0;g=w===c?0:wc.length)return 1;if(this.length=0;g--){var w=this.words[g]|0,E=c.words[g]|0;if(w!==E){wE&&(h=1);break}}return h},i.prototype.gtn=function(c){return this.cmpn(c)===1},i.prototype.gt=function(c){return this.cmp(c)===1},i.prototype.gten=function(c){return this.cmpn(c)>=0},i.prototype.gte=function(c){return this.cmp(c)>=0},i.prototype.ltn=function(c){return this.cmpn(c)===-1},i.prototype.lt=function(c){return this.cmp(c)===-1},i.prototype.lten=function(c){return this.cmpn(c)<=0},i.prototype.lte=function(c){return this.cmp(c)<=0},i.prototype.eqn=function(c){return this.cmpn(c)===0},i.prototype.eq=function(c){return this.cmp(c)===0},i.red=function(c){return new F(c)},i.prototype.toRed=function(c){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),c.convertTo(this)._forceRed(c)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(c){return this.red=c,this},i.prototype.forceRed=function(c){return n(!this.red,"Already a number in reduction context"),this._forceRed(c)},i.prototype.redAdd=function(c){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},i.prototype.redIAdd=function(c){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},i.prototype.redSub=function(c){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},i.prototype.redISub=function(c){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},i.prototype.redShl=function(c){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},i.prototype.redMul=function(c){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},i.prototype.redIMul=function(c){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(c){return n(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var j={k256:null,p224:null,p192:null,p25519:null};function K(v,c){this.name=v,this.p=new i(c,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var c=new i(null);return c.words=new Array(Math.ceil(this.n/13)),c},K.prototype.ireduce=function(c){var h=c,g;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),g=h.bitLength();while(g>this.n);var w=g0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},K.prototype.split=function(c,h){c.iushrn(this.n,0,h)},K.prototype.imulK=function(c){return c.imul(this.k)};function Z(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(Z,K),Z.prototype.split=function(c,h){for(var g=4194303,w=Math.min(c.length,9),E=0;E>>22,A=b}A>>>=22,c.words[E-10]=A,A===0&&c.length>10?c.length-=10:c.length-=9},Z.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var h=0,g=0;g>>=26,c.words[g]=E,h=w}return h!==0&&(c.words[c.length++]=h),c},i._prime=function(c){if(j[c])return j[c];var h;if(c==="k256")h=new Z;else if(c==="p224")h=new te;else if(c==="p192")h=new se;else if(c==="p25519")h=new he;else throw new Error("Unknown prime "+c);return j[c]=h,h};function F(v){if(typeof v=="string"){var c=i._prime(v);this.m=c.p,this.prime=c}else n(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}F.prototype._verify1=function(c){n(c.negative===0,"red works only with positives"),n(c.red,"red works only with red numbers")},F.prototype._verify2=function(c,h){n((c.negative|h.negative)===0,"red works only with positives"),n(c.red&&c.red===h.red,"red works only with red numbers")},F.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(u(c,c.umod(this.m)._forceRed(this)),c)},F.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},F.prototype.add=function(c,h){this._verify2(c,h);var g=c.add(h);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},F.prototype.iadd=function(c,h){this._verify2(c,h);var g=c.iadd(h);return g.cmp(this.m)>=0&&g.isub(this.m),g},F.prototype.sub=function(c,h){this._verify2(c,h);var g=c.sub(h);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},F.prototype.isub=function(c,h){this._verify2(c,h);var g=c.isub(h);return g.cmpn(0)<0&&g.iadd(this.m),g},F.prototype.shl=function(c,h){return this._verify1(c),this.imod(c.ushln(h))},F.prototype.imul=function(c,h){return this._verify2(c,h),this.imod(c.imul(h))},F.prototype.mul=function(c,h){return this._verify2(c,h),this.imod(c.mul(h))},F.prototype.isqr=function(c){return this.imul(c,c.clone())},F.prototype.sqr=function(c){return this.mul(c,c)},F.prototype.sqrt=function(c){if(c.isZero())return c.clone();var h=this.m.andln(3);if(n(h%2===1),h===3){var g=this.m.add(new i(1)).iushrn(2);return this.pow(c,g)}for(var w=this.m.subn(1),E=0;!w.isZero()&&w.andln(1)===0;)E++,w.iushrn(1);n(!w.isZero());var A=new i(1).toRed(this),b=A.redNeg(),p=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);this.pow(d,p).cmp(b)!==0;)d.redIAdd(b);for(var m=this.pow(d,w),U=this.pow(c,w.addn(1).iushrn(1)),T=this.pow(c,w),L=E;T.cmp(A)!==0;){for(var G=T,J=0;G.cmp(A)!==0;J++)G=G.redSqr();n(J=0;E--){for(var m=h.words[E],U=d-1;U>=0;U--){var T=m>>U&1;if(A!==w[0]&&(A=this.sqr(A)),T===0&&b===0){p=0;continue}b<<=1,b|=T,p++,!(p!==g&&(E!==0||U!==0))&&(A=this.mul(A,w[b]),p=0,b=0)}d=26}return A},F.prototype.convertTo=function(c){var h=c.umod(this.m);return h===c?h.clone():h},F.prototype.convertFrom=function(c){var h=c.clone();return h.red=null,h},i.mont=function(c){return new P(c)};function P(v){F.call(this,v),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}f(P,F),P.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},P.prototype.convertFrom=function(c){var h=this.imod(c.mul(this.rinv));return h.red=null,h},P.prototype.imul=function(c,h){if(c.isZero()||h.isZero())return c.words[0]=0,c.length=1,c;var g=c.imul(h),w=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=g.isub(w).iushrn(this.shift),A=E;return E.cmp(this.m)>=0?A=E.isub(this.m):E.cmpn(0)<0&&(A=E.iadd(this.m)),A._forceRed(this)},P.prototype.mul=function(c,h){if(c.isZero()||h.isZero())return new i(0)._forceRed(this);var g=c.mul(h),w=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=g.isub(w).iushrn(this.shift),A=E;return E.cmp(this.m)>=0?A=E.isub(this.m):E.cmpn(0)<0&&(A=E.iadd(this.m)),A._forceRed(this)},P.prototype.invm=function(c){var h=this.imod(c._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(r,ge)})(GC);var M_;function Eee(){if(M_)return bu;M_=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.Signature=void 0;var r=GC.exports,e=gf,t=gl(),n=function(){function f(i,a){this.signature=i,this.ec=a}return f.fromString=function(i,a){var o=e.stringToSignature(i);return a||(a=t.constructElliptic(o.type)),new f(o,a)},f.fromElliptic=function(i,a,o){var l=i.r.toArray("be",32),s=i.s.toArray("be",32),u;a===e.KeyType.k1||a===e.KeyType.r1?(u=i.recoveryParam+27,i.recoveryParam<=3&&(u+=4)):a===e.KeyType.wa&&(u=i.recoveryParam);var y=new Uint8Array([u].concat(l,s));return o||(o=t.constructElliptic(a)),new f({type:a,data:y},o)},f.prototype.toElliptic=function(){var i=32,a=32,o=new r(this.signature.data.slice(1,i+1)),l=new r(this.signature.data.slice(i+1,i+a+1)),s;this.signature.type===e.KeyType.k1||this.signature.type===e.KeyType.r1?(s=this.signature.data[0]-27,s>3&&(s-=4)):this.signature.type===e.KeyType.wa&&(s=this.signature.data[0]);var u=s&3;return{r:o,s:l,recoveryParam:u}},f.prototype.toString=function(){return e.signatureToString(this.signature)},f.prototype.toBinary=function(){return this.signature.data},f.prototype.getType=function(){return this.signature.type},f.prototype.verify=function(i,a,o,l){o===void 0&&(o=!0),l===void 0&&(l="utf8"),o&&(typeof i=="string"&&(i=Buffer.from(i,l)),i=this.ec.hash().update(i).digest());var s=this.toElliptic(),u=a.toElliptic();return this.ec.verify(i,s,u,l)},f.prototype.recover=function(i,a,o){a===void 0&&(a=!0),o===void 0&&(o="utf8"),a&&(typeof i=="string"&&(i=Buffer.from(i,o)),i=this.ec.hash().update(i).digest());var l=this.toElliptic(),s=this.ec.recoverPubKey(i,l,l.recoveryParam,o),u=this.ec.keyFromPublic(s);return t.PublicKey.fromElliptic(u,this.getType(),this.ec)},f}();return bu.Signature=n,bu}var P_;function gl(){return P_||(P_=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.sha256=r.generateKeyPair=r.constructElliptic=r.Signature=r.PublicKey=r.PrivateKey=void 0;var e=td,t=tn,n=gf,f=T_(),i=k_(),a=k_();Object.defineProperty(r,"PrivateKey",{enumerable:!0,get:function(){return a.PrivateKey}});var o=T_();Object.defineProperty(r,"PublicKey",{enumerable:!0,get:function(){return o.PublicKey}});var l=Eee();Object.defineProperty(r,"Signature",{enumerable:!0,get:function(){return l.Signature}});var s=function(x){return x===n.KeyType.k1?new e.ec("secp256k1"):new e.ec("p256")};r.constructElliptic=s;var u=function(x,_){if(_===void 0&&(_={}),!_.secureEnv)throw new Error("Key generation is completely INSECURE in production environments in the browser. If you are absolutely certain this does NOT describe your environment, set `secureEnv` in your options to `true`. If this does describe your environment and you set `secureEnv` to `true`, YOU DO SO AT YOUR OWN RISK AND THE RISK OF YOUR USERS.");var S;x===n.KeyType.k1?S=new e.ec("secp256k1"):S=new e.ec("p256");var C=S.genKeyPair(_.ecOptions),M=f.PublicKey.fromElliptic(C,x,S),k=i.PrivateKey.fromElliptic(C,x,S);return{publicKey:M,privateKey:k}};r.generateKeyPair=u;var y=function(x){return t.sha256().update(x).digest()};r.sha256=y}(Oy)),Oy}(function(r){var e=ge&&ge.__awaiter||function(u,y,x,_){function S(C){return C instanceof x?C:new x(function(M){M(C)})}return new(x||(x=Promise))(function(C,M){function k(D){try{O(_.next(D))}catch(j){M(j)}}function R(D){try{O(_.throw(D))}catch(j){M(j)}}function O(D){D.done?C(D.value):S(D.value).then(k,R)}O((_=_.apply(u,y||[])).next())})},t=ge&&ge.__generator||function(u,y){var x={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},_,S,C,M;return M={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function k(O){return function(D){return R([O,D])}}function R(O){if(_)throw new TypeError("Generator is already executing.");for(;x;)try{if(_=1,S&&(C=O[0]&2?S.return:O[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,O[1])).done)return C;switch(S=0,C&&(O=[O[0]&2,C.value]),O[0]){case 0:case 1:C=O;break;case 4:return x.label++,{value:O[1],done:!1};case 5:x.label++,S=O[1],O=[0];continue;case 7:O=x.ops.pop(),x.trys.pop();continue;default:if(C=x.trys,!(C=C.length>0&&C[C.length-1])&&(O[0]===6||O[0]===2)){x=0;continue}if(O[0]===3&&(!C||O[1]>C[0]&&O[1]=u.length&&(u=void 0),{value:u&&u[_++],done:!u}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.JsSignatureProvider=r.digestFromSerializedData=r.Signature=r.PublicKey=r.PrivateKey=void 0;var f=td,i=gl();Object.defineProperty(r,"PrivateKey",{enumerable:!0,get:function(){return i.PrivateKey}}),Object.defineProperty(r,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}}),Object.defineProperty(r,"Signature",{enumerable:!0,get:function(){return i.Signature}});var a=gf,o=new f.ec("secp256k1"),l=function(u,y,x,_){_===void 0&&(_=o);var S=Buffer.concat([Buffer.from(u,"hex"),Buffer.from(y),Buffer.from(x?new Uint8Array(_.hash().update(x).digest()):new Uint8Array(32))]);return _.hash().update(S).digest()};r.digestFromSerializedData=l;var s=function(){function u(y){var x,_;this.keys=new Map,this.availableKeys=[];try{for(var S=n(y),C=S.next();!C.done;C=S.next()){var M=C.value,k=i.PrivateKey.fromString(M),R=k.toElliptic(),O=k.getPublicKey().toString();this.keys.set(O,R),this.availableKeys.push(O)}}catch(D){x={error:D}}finally{try{C&&!C.done&&(_=S.return)&&_.call(S)}finally{if(x)throw x.error}}}return u.prototype.getAvailableKeys=function(){return e(this,void 0,void 0,function(){return t(this,function(y){return[2,this.availableKeys]})})},u.prototype.sign=function(y){var x=y.chainId,_=y.requiredKeys,S=y.serializedTransaction,C=y.serializedContextFreeData;return e(this,void 0,void 0,function(){var M,k,R,O,D,j,K,Z,te,se,he;return t(this,function(F){M=l(x,S,C,o),k=[];try{for(R=n(_),O=R.next();!O.done;O=R.next())D=O.value,j=i.PublicKey.fromString(D),K=this.keys.get(a.convertLegacyPublicKey(D)),Z=i.PrivateKey.fromElliptic(K,j.getType()),te=Z.sign(M,!1),k.push(te.toString())}catch(P){se={error:P}}finally{try{O&&!O.done&&(he=R.return)&&he.call(R)}finally{if(se)throw se.error}}return[2,{signatures:k,serializedTransaction:S,serializedContextFreeData:C}]})})},u}();r.JsSignatureProvider=s})(qC);Object.defineProperty(kv,"__esModule",{value:!0});var WC=kv.ecc=void 0,_f=qC,Tee=gl(),See=gf;WC=kv.ecc={initialize:function(){return console.error("Method deprecated")},unsafeRandomKey:function(){return console.error("Method deprecated")},randomKey:function(r,e){e===void 0&&(e={}),r!==void 0&&console.warn("Argument `cpuEntropyBits` is deprecated, use the options argument instead");var t=Tee.generateKeyPair(See.KeyType.k1,e).privateKey;return Promise.resolve(t.toLegacyString())},seedPrivate:function(){return console.error("Method deprecated")},privateToPublic:function(r,e){e!==void 0&&console.warn("Argument `pubkey_prefix` is deprecated, keys prefixed with PUB_K1_/PUB_R1_/PUB_WA_ going forward");var t=_f.PrivateKey.fromString(r),n=t.getPublicKey();return n.toLegacyString()},isValidPublic:function(r,e){e!==void 0&&console.warn("Argument `pubkey_prefix` is deprecated, keys prefixed with PUB_K1_/PUB_R1_/PUB_WA_ going forward");try{var t=_f.PublicKey.fromString(r);return t.isValid()}catch{return!1}},isValidPrivate:function(r){try{var e=_f.PrivateKey.fromString(r);return e.isValid()}catch{return!1}},sign:function(r,e,t){t===void 0&&(t="utf8");var n=typeof e=="string"?_f.PrivateKey.fromString(e):e,f=n.sign(r,!0,t);return f.toString()},signHash:function(r,e,t){t===void 0&&(t="hex");var n=typeof e=="string"?_f.PrivateKey.fromString(e):e,f=n.sign(r,!1,t);return f.toString()},verify:function(r,e,t,n,f){n===void 0&&(n="utf8"),f===void 0&&(f=!0);var i=typeof t=="string"?_f.PublicKey.fromString(t):t,a=_f.Signature.fromString(r);return a.verify(e,i,f,n)},recover:function(r,e,t){t===void 0&&(t="utf8");var n=_f.Signature.fromString(r),f=n.recover(e,!0,t);return f.toLegacyString()},recoverHash:function(r,e,t){t===void 0&&(t="hex");var n=_f.Signature.fromString(r),f=n.recover(e,!1,t);return f.toLegacyString()},sha256:function(r,e,t){return t!==void 0&&console.warn("Argument `encoding` is deprecated"),e!==void 0&&console.warn("Argument `resultEncoding` is deprecated"),gl().sha256(r)}};var kee=globalThis&&globalThis.__makeTemplateObject||function(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r},By=globalThis&&globalThis.__awaiter||function(r,e,t,n){function f(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(u){try{s(n.next(u))}catch(y){a(y)}}function l(u){try{s(n.throw(u))}catch(y){a(y)}}function s(u){u.done?i(u.value):f(u.value).then(o,l)}s((n=n.apply(r,e||[])).next())})},Dy=globalThis&&globalThis.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,f,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(s){return function(u){return l([s,u])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(t=0)),t;)try{if(n=1,f&&(i=s[0]&2?f.return:s[0]?f.throw||((i=f.return)&&i.call(f),0):f.next)&&!(i=i.call(f,s[1])).done)return i;switch(f=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,f=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]import("./FlowProvider.ac4f8be8.js"),[])];case 4:t=l.sent(),n=t.getFlowProvider(),l.label=5;case 5:return l.trys.push([5,7,,8]),[4,n.send([n.script(I_||(I_=kee([` pub fun main(address: Address, sig: String, msg: String): Bool { let account = getAccount(address) let sig = sig.decodeHex() @@ -485,4 +485,4 @@ Restores as an Eip712AttestationRequestWithUsage object instead`;(0,Dt.logger)(c `).concat(l,` - `);document.body.insertAdjacentHTML("beforeend",s),document.getElementById("tn-access-accept").addEventListener("click",function(){var y,x,_,S=document.getElementsByClassName("tn-permission-cb"),C=[];try{for(var M=Tu(S),k=M.next();!k.done;k=M.next()){var R=k.value,O=R.getAttribute("data-issuer");!((_=n.storedWhitelist[e])===null||_===void 0)&&_.issuers||(n.storedWhitelist[e]={issuers:[]}),R.checked&&C.push(O)}}catch(D){y={error:D}}finally{try{k&&!k.done&&(x=M.return)&&x.call(M)}finally{if(y)throw y.error}}n.storedWhitelist[e].issuers=C,n.saveWhitelist(),f()});var u=function(){n.storedWhitelist[e]&&delete n.storedWhitelist[e],n.saveWhitelist(),HQ("tn-user-denied-access-to-connection",!0,10)};document.getElementById("tn-access-deny").addEventListener("click",function(){u(),i(new Error("USER_ABORT"))}),n.showWhitelistCallback()})},r.STORAGE_KEY="tn-whitelist",r}(),bre=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,f){n.__proto__=f}||function(n,f){for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&(n[i]=f[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),hg=globalThis&&globalThis.__assign||function(){return hg=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},yre={whitelistDialogWidth:"450px",whitelistDialogHeight:"350px"},xh={max_width:typeof window<"u"&&window.innerWidth<700?"400px":"450px",min_height:typeof window<"u"&&window.innerHeight<600?"600px":"650px"};(function(r){bre(e,r);function e(t,n){n===void 0&&(n=null);var f=r.call(this,t)||this;if(f.tokenConfig=t,f.tokenConfig=Object.assign(yre,t),f.whitelist=new pre(f.tokenConfig,function(){var a=f.getDataFromQuery("evtid");f.sendMessageResponse({evtid:a,evt:Nf.SHOW_FRAME,max_width:f.tokenConfig.whitelistDialogWidth,min_height:f.tokenConfig.whitelistDialogHeight})}),n)f.urlParams=n;else{var i=window.location.hash.length>1?"?"+window.location.hash.substring(1):window.location.search;f.urlParams=new URLSearchParams(i)}return f.pageOnLoadEventHandler().catch(function(a){console.error(a),nt(2,"Outlet pageOnLoadEventHandler error: "+a.message)}),f}return e.prototype.getDataFromQuery=function(t){return this.urlParams?this.urlParams.has(Bn+t)?this.urlParams.get(Bn+t):this.urlParams.get(t):null},e.prototype.getCallbackUrlKey=function(t){return Bn+t},e.prototype.pageOnLoadEventHandler=function(){var t;return Su(this,void 0,void 0,function(){var n,f,i,a,o;return ku(this,function(l){switch(l.label){case 0:n=this.getDataFromQuery("evtid"),f=this.getDataFromQuery("action"),i=this.getDataFromQuery("requestor"),i&&(this.redirectCallbackUrl=new URL(i)),nt(2,"Outlet received event ID "+n+" action "+f+" at "+window.location.href),l.label=1;case 1:switch(l.trys.push([1,15,,16]),a=f,a){case Zr.GET_ISSUER_TOKENS:return[3,2];case Zr.EMAIL_ATTEST_CALLBACK:return[3,4];case Zr.GET_PROOF:return[3,6];case Zr.GET_MUTLI_PROOF:return[3,8]}return[3,10];case 2:return[4,this.sendTokens(n)];case 3:return l.sent(),[3,14];case 4:return this.getDataFromQuery("localClient")==="true"?[2]:[4,this.processAttestationIdCallback(n)];case 5:return l.sent(),[3,14];case 6:return[4,this.sendTokenProof(n)];case 7:return l.sent(),[3,14];case 8:return[4,this.sendMultiTokenProof(n)];case 9:return l.sent(),[3,14];case 10:return this.getDataFromQuery("ticket")?[4,this.readMagicLink()]:[3,13];case 11:return l.sent(),[4,this.sendTokens(n)];case 12:l.sent(),l.label=13;case 13:return[3,14];case 14:return[3,16];case 15:return o=l.sent(),console.error(o),this.sendErrorResponse(n,(t=o?.message)!==null&&t!==void 0?t:o,this.getDataFromQuery("issuer")),[3,16];case 16:return[2]}})})},e.prototype.processAttestationIdCallback=function(t){var n=this.redirectCallbackUrl,f=this.getDataFromQuery("issuer");try{var i=new z1;i.captureAttestationIdCallback(this.urlParams);var a=this.getDataFromQuery("orig-action");switch(a){case Zr.GET_PROOF:this.sendTokenProof(t);break;case Zr.GET_MUTLI_PROOF:this.sendMultiTokenProof(t);break;default:throw new Error("Original action not defined in attestation.id callback")}}catch(o){if(console.error(o),n)return this.proofRedirectError(f,o.message)}window.location.hash=Y8(this.urlParams,["attestation","requestSecret","address","wallet"]).toString()},e.prototype.getIssuerConfigById=function(t){var n,f;if(this.tokenConfig.issuers){try{for(var i=Mu(this.tokenConfig.issuers),a=i.next();!a.done;a=i.next()){var o=a.value;if(o.collectionID===t)return o}}catch(l){n={error:l}}finally{try{a&&!a.done&&(f=i.return)&&f.call(i)}finally{if(n)throw n.error}}throw new Error("Issuer "+t+" not found")}},e.prototype.readMagicLink=function(){return Su(this,void 0,void 0,function(){return ku(this,function(t){switch(t.label){case 0:return this.urlParams.has("ticket")?[4,this.ticketStorage.importTicketFromMagicLink(this.urlParams)]:[2];case 1:return t.sent(),[2]}})})},e.prototype.sendMultiTokenProof=function(t){return Su(this,void 0,void 0,function(){var n,f,i,a,o,l,s,u,y,x=this;return ku(this,function(_){switch(_.label){case 0:n=this.getDataFromQuery("tokens"),f=this.getDataFromQuery("wallet"),i=this.getDataFromQuery("address"),Ea(n,"unsigned token is missing"),a=this.getDataFromQuery("redirect")==="true"?window.location.href:!1,_.label=1;case 1:return _.trys.push([1,3,,4]),o=JSON.parse(n),[4,this.authenticateMany(o,i,f,a,function(){x.sendMessageResponse({evtid:t,evt:Nf.SHOW_FRAME,max_width:xh.max_width,min_height:xh.min_height})})];case 2:return l=_.sent(),this.redirectCallbackUrl?(s=this.redirectCallbackUrl,u=new URLSearchParams(s.hash.substring(1)),u.set(this.getCallbackUrlKey("action"),"proof-callback"),u.set(this.getCallbackUrlKey("multi-token"),"true"),u.set(this.getCallbackUrlKey("tokens"),JSON.stringify(l)),s.hash=u.toString(),window.location.href=s.href,[2]):(this.sendMessageResponse({evtid:t,evt:cc.PROOF,data:l}),[3,4]);case 3:return y=_.sent(),nt(2,y),a?[2,this.proofRedirectError(this.getDataFromQuery("issuer"),y.message)]:(this.sendErrorResponse(t,y.message),[3,4]);case 4:return[2]}})})},e.prototype.sendTokenProof=function(t){return Su(this,void 0,void 0,function(){var n,f,i,a,o,l,s,u,y,x,_,S,C,M,k=this;return ku(this,function(R){switch(R.label){case 0:n=this.getDataFromQuery("issuer"),f=this.getDataFromQuery("token"),i=this.getDataFromQuery("wallet"),a=this.getDataFromQuery("address"),Ea(f,"unsigned token is missing"),o=JSON.parse(f),l=this.getDataFromQuery("redirect")==="true"?window.location.href:!1,R.label=1;case 1:return R.trys.push([1,5,,6]),s=this.getIssuerConfigById(n),[4,this.ticketStorage.getStoredTicketFromDecodedTokenOrId(Wa(s),o)];case 2:return u=R.sent(),y=new z1(s.attestationOrigin,function(){k.sendMessageResponse({evtid:t,evt:Nf.SHOW_FRAME,max_width:xh.max_width,min_height:xh.min_height})},l),[4,y.getIdentifierAttestation(u.id,i,a,{action:Zr.GET_PROOF,issuer:n,token:JSON.stringify(o)})];case 3:return x=R.sent(),[4,dg(s,x.attestation,x.identifierSecret,u)];case 4:return _=R.sent(),this.redirectCallbackUrl?(S=this.redirectCallbackUrl,C=new URLSearchParams(S.hash.substring(1)),C.set(this.getCallbackUrlKey("action"),"proof-callback"),C.set(this.getCallbackUrlKey("issuer"),n),C.set(this.getCallbackUrlKey("attestation"),_.proof),C.set(this.getCallbackUrlKey("type"),u.type),C.set(this.getCallbackUrlKey("token"),f),S.hash=C.toString(),window.location.href=S.href,[2]):(this.sendMessageResponse({evtid:t,evt:cc.PROOF,data:hg({issuer:s.collectionID},_)}),[3,6]);case 5:return M=R.sent(),nt(2,M),l?[2,this.proofRedirectError(this.getDataFromQuery("issuer"),M.message)]:(this.sendErrorResponse(t,M.message),[3,6]);case 6:return[2]}})})},e.prototype.sendTokens=function(t){return Su(this,void 0,void 0,function(){var n,f,i,a,S,o,l,s,R,u,S,y,x,R,_,S,C,M,k,R,O,D,j,K,Z,te,se,he,F,P,v,c;return ku(this,function(h){switch(h.label){case 0:if(n=JSON.parse(this.getDataFromQuery("request")),!n)return[2];f={};try{for(i=Mu(this.tokenConfig.issuers),a=i.next();!a.done;a=i.next()){S=a.value,o=Wa(S);try{for(l=(se=void 0,Mu(o)),s=l.next();!s.done;s=l.next())R=s.value,f[R]=S}catch(g){se={error:g}}finally{try{s&&!s.done&&(he=l.return)&&he.call(l)}finally{if(se)throw se.error}}}}catch(g){Z={error:g}}finally{try{a&&!a.done&&(te=i.return)&&te.call(i)}finally{if(Z)throw Z.error}}u=[];for(S in n)try{for(y=(F=void 0,Mu(n[S])),x=y.next();!x.done;x=y.next())R=x.value,f[R]&&u.indexOf(f[R])===-1&&u.push(f[R])}catch(g){F={error:g}}finally{try{x&&!x.done&&(P=y.return)&&P.call(y)}finally{if(F)throw F.error}}return[4,this.whitelist.whitelistCheck(u,!1)];case 1:_=h.sent();for(S in n){C=[];try{for(M=(v=void 0,Mu(n[S])),k=M.next();!k.done;k=M.next())R=k.value,f[R]&&_.indexOf(f[R].collectionID)>-1&&C.push(R)}catch(g){v={error:g}}finally{try{k&&!k.done&&(c=M.return)&&c.call(M)}finally{if(v)throw v.error}}n[S]=C}return[4,this.ticketStorage.getDecodedTokens(n)];case 2:if(O=h.sent(),nt(2,"issuerTokens: (Outlet.sendTokens)",O),this.redirectCallbackUrl)try{return D=this.redirectCallbackUrl,j=new URLSearchParams(D.hash.substring(1)),j.set(this.getCallbackUrlKey("action"),Zr.GET_ISSUER_TOKENS+"-response"),j.set(this.getCallbackUrlKey("tokens"),JSON.stringify(O)),D.hash="#"+j.toString(),K=D.href,nt(2,"tokens ready. go to: ",K),window.location.href=K,[2]}catch(g){nt(2,"Requestor redirect Error. ",g)}return this.sendMessageResponse({evtid:t,evt:cc.ISSUER_TOKENS,data:{tokens:O}}),[2]}})})},e.prototype.sendErrorResponse=function(t,n,f,i){if(i===void 0&&(i="error"),this.redirectCallbackUrl){var a=this.redirectCallbackUrl,o=new URLSearchParams(a.hash.substring(1));o.set(this.getCallbackUrlKey("action"),Nf.ERROR),o.set(this.getCallbackUrlKey("issuer"),f),o.set(this.getCallbackUrlKey("type"),i),o.set(this.getCallbackUrlKey("error"),n),a.hash="#"+o.toString(),window.location.href=a.href;return}this.sendMessageResponse({evtid:t,evt:Nf.ERROR,errors:[n]})},e.prototype.proofRedirectError=function(t,n){var f=this.redirectCallbackUrl,i=new URLSearchParams(f.hash.substring(1));i.set(this.getCallbackUrlKey("action"),"proof-callback"),i.set(this.getCallbackUrlKey("issuer"),t),i.set(this.getCallbackUrlKey("error"),n),f.hash=i.toString(),window.location.href=f.href},e.prototype.sendMessageResponse=function(t){if(!!document.referrer){var n;window.opener&&window.opener!==window?n=window.opener:window.parent!==window&&(n=window.parent),n&&n.postMessage(t,"*")}},e})(uc);const gre=r=>(NA("data-v-9dacf319"),r=r(),UA(),r),vre=gre(()=>Vt("img",{alt:"Vue logo",class:"logo",src:EB,width:"125",height:"125"},null,-1)),mre={class:"wrapper"},xre=rr("Home"),wre=rr("About"),_re={__name:"App",setup(r){const e=jc({client:void 0});return VA(()=>{e.client=new ure({type:"active",issuers:[{collectionID:"penthouse-panther-club",collectionAddress:"ff846ef2eed57e5367cf8826e63f4d53fe28d28aa67417accb6e4b48cbd19136",onChain:!0,collectionSymbol:"PPC",chain:"mainnet",blockchain:"solana"},{collectionID:"pixel",collectionAddress:"166424b16c4c7f40eb852f9eb2d0d6869a9ed7ac54a8e6afbd516676bfbbeb19",onChain:!0,collectionSymbol:"PIXEL",chain:"mainnet",blockchain:"solana"},{onChain:!0,collectionID:"expansion-punks",contract:"0x0d0167a823c6619d430b1a96ad85b888bcf97c37",chain:"eth",blockchain:"ethereum"},{onChain:!0,collectionID:"Perion",contract:"0x96af92ae2d822a0f191455ceca4d4e7ee227668e",chain:"mumbai",blockchain:"evm"},{collectionID:"COOLCATS-#2426-14",onChain:!0,contract:"0x3C7e352481F4b2fdEc1e642a3f0018661c77513D",chain:"eth",openSeaSlug:"devcon-vi-suit-up-collection"},{collectionID:"Town-Hall",onChain:!0,contract:"0x81b30ff521D1fEB67EDE32db726D95714eb00637",chain:"Optimism"},{collectionID:"Blusteak Kangaroo #64",onChain:!0,contract:"0xa996F7F3BC647EebC98C684aB0A302c9b85d2FA1",chain:"Avalanche"},{collectionID:"Alone Pirate",onChain:!0,contract:"0x36535ec384B94342558e37282527b5052587af6A",chain:"Arbitrum"},{collectionID:"TNM",onChain:!0,contract:"0x3cC6c9c6DC13814c6ba4da3520d2Ae40332A831F",chain:"goerli",fungible:!0},{collectionID:"Tether-USD",onChain:!0,contract:"0xdac17f958d2ee523a2206206994597c13d831ec7",chain:"eth",fungible:!0},{collectionID:"AdEx-Network",onChain:!0,contract:"0xade00c28244d5ce17d72e40330b1c318cd12b7c3",chain:"eth",fungible:!0},{collectionID:"AAVEPool",contract:"0xb7fd3398484ea4eff33e003db4c85d4984f8d62e",fungible:!0,onChain:!0,chain:"polygon"},{collectionID:"Minereum-AVAX",contract:"0xf9d922c055a3f1759299467dafafdf43be844f7a",fungible:!0,onChain:!0,chain:"Avalanche"},{collectionID:"Testv4",contract:"0x499d11e0b6eac7c0593d8fb292dcbbf815fb29ae",fungible:!0,onChain:!0,chain:"goerli"},{collectionID:"Dummy ERC20",contract:"0xfe4f5145f6e09952a5ba9e956ed0c25e3fa4c7f1",fungible:!0,onChain:!0,chain:"mumbai"},{collectionID:"Domains",onChain:!0,contract:"A.233eb012d34b0070.Domains",chain:"mainnet",blockchain:"flow"},{collectionID:"AllDay",onChain:!0,contract:"A.e4cf4bdc1751c65d.AllDay",chain:"mainnet",blockchain:"flow"},{collectionID:"NBA",onChain:!0,contract:"A.0b2a3299cc857e29.TopShot",chain:"mainnet",blockchain:"flow"}],uiOptions:{openingHeading:"Open a new world of perks, benefits and opportunities with your attestation, collectible or token.",issuerHeading:"Get discount with Ticket",repeatAction:"try again",theme:"dark",position:"top-right"},unSupportedUserAgent:{authentication:{config:{metaMaskAndroid:!0,alphaWalletAndroid:!0,mewAndroid:!0,imTokenAndroid:!0},errorMessage:"No Support for Authentication with this user agent. Try Chrome, Safari or Edge instead."},full:{config:{iE:!0,iE9:!0},errorMessage:"This browser is not supported. Please try using Chrome, Edge, FireFox or Safari."}}}),e.client.on("connected-wallet",t=>{console.log("connected wallet",t),e.client.ui.openOverlay()}),e.client.on("tokens-selected",t=>{console.log(t)}),e.client.on("token-proof",t=>{console.log(t)}),e.client.negotiate()}),(t,n)=>(w0(),cf(_i,null,[Vt("header",null,[vre,Vt("div",mre,[_r(CD,{msg:"You did it!"}),Vt("nav",null,[_r(zf(l8),{to:"/"},{default:sn(()=>[xre]),_:1}),_r(zf(l8),{to:"/about"},{default:sn(()=>[wre]),_:1})])])]),_r(zf(vE))],64))}},Are=Ja(_re,[["__scopeId","data-v-9dacf319"]]);const Ere={},Tre={class:"item"},Sre={class:"details"};function kre(r,e){return w0(),cf("div",Tre,[Vt("em",null,[K5(r.$slots,"icon",{},void 0,!0)]),Vt("div",Sre,[Vt("h3",null,[K5(r.$slots,"heading",{},void 0,!0)]),K5(r.$slots,"default",{},void 0,!0)])])}const Pu=Ja(Ere,[["render",kre],["__scopeId","data-v-72623109"]]),Mre={},Pre={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"17",fill:"currentColor"},Ire=Vt("path",{d:"M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"},null,-1),Cre=[Ire];function Rre(r,e){return w0(),cf("svg",Pre,Cre)}const Ore=Ja(Mre,[["render",Rre]]),Bre={},Dre={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",class:"iconify iconify--mdi",width:"24",height:"24",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},Nre=Vt("path",{d:"M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z",fill:"currentColor"},null,-1),Ure=[Nre];function Lre(r,e){return w0(),cf("svg",Dre,Ure)}const Fre=Ja(Bre,[["render",Lre]]),zre={},jre={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"currentColor"},$re=Vt("path",{d:"M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"},null,-1),Vre=[$re];function Hre(r,e){return w0(),cf("svg",jre,Vre)}const Kre=Ja(zre,[["render",Hre]]),qre={},Gre={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor"},Wre=Vt("path",{d:"M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"},null,-1),Qre=[Wre];function Yre(r,e){return w0(),cf("svg",Gre,Qre)}const Zre=Ja(qre,[["render",Yre]]),Jre={},Xre={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor"},ene=Vt("path",{d:"M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"},null,-1),tne=[ene];function rne(r,e){return w0(),cf("svg",Xre,tne)}const nne=Ja(Jre,[["render",rne]]),ine=rr("Documentation"),fne=rr(" Vue\u2019s "),ane=Vt("a",{target:"_blank",href:"https://vuejs.org/",rel:"noopener"},"official documentation",-1),one=rr(" provides you with all information you need to get started. "),sne=rr("Tooling"),cne=rr(" This project is served and bundled with "),lne=Vt("a",{href:"https://vitejs.dev/guide/features.html",target:"_blank",rel:"noopener"},"Vite",-1),une=rr(". The recommended IDE setup is "),dne=Vt("a",{href:"https://code.visualstudio.com/",target:"_blank",rel:"noopener"},"VSCode",-1),hne=rr(" + "),pne=Vt("a",{href:"https://github.com/johnsoncodehk/volar",target:"_blank",rel:"noopener"},"Volar",-1),bne=rr(". If you need to test your components and web pages, check out "),yne=Vt("a",{href:"https://www.cypress.io/",target:"_blank",rel:"noopener"},"Cypress",-1),gne=rr(" and "),vne=Vt("a",{href:"https://on.cypress.io/component",target:"_blank",rel:"noopener"},"Cypress Component Testing",-1),mne=rr(". "),xne=Vt("br",null,null,-1),wne=rr(" More instructions are available in "),_ne=Vt("code",null,"README.md",-1),Ane=rr(". "),Ene=rr("Ecosystem"),Tne=rr(" Get official tools and libraries for your project: "),Sne=Vt("a",{target:"_blank",href:"https://pinia.vuejs.org/",rel:"noopener"},"Pinia",-1),kne=rr(", "),Mne=Vt("a",{target:"_blank",href:"https://router.vuejs.org/",rel:"noopener"},"Vue Router",-1),Pne=rr(", "),Ine=Vt("a",{target:"_blank",href:"https://test-utils.vuejs.org/",rel:"noopener"},"Vue Test Utils",-1),Cne=rr(", and "),Rne=Vt("a",{target:"_blank",href:"https://github.com/vuejs/devtools",rel:"noopener"},"Vue Dev Tools",-1),One=rr(". If you need more resources, we suggest paying "),Bne=Vt("a",{target:"_blank",href:"https://github.com/vuejs/awesome-vue",rel:"noopener"},"Awesome Vue",-1),Dne=rr(" a visit. "),Nne=rr("Community"),Une=rr(" Got stuck? Ask your question on "),Lne=Vt("a",{target:"_blank",href:"https://chat.vuejs.org",rel:"noopener"},"Vue Land",-1),Fne=rr(", our official Discord server, or "),zne=Vt("a",{target:"_blank",href:"https://stackoverflow.com/questions/tagged/vue.js",rel:"noopener"},"StackOverflow",-1),jne=rr(". You should also subscribe to "),$ne=Vt("a",{target:"_blank",href:"https://news.vuejs.org",rel:"noopener"},"our mailing list",-1),Vne=rr(" and follow the official "),Hne=Vt("a",{target:"_blank",href:"https://twitter.com/vuejs",rel:"noopener"},"@vuejs",-1),Kne=rr(" twitter account for latest news in the Vue world. "),qne=rr("Support Vue"),Gne=rr(" As an independent project, Vue relies on community backing for its sustainability. You can help us by "),Wne=Vt("a",{target:"_blank",href:"https://vuejs.org/sponsor/",rel:"noopener"},"becoming a sponsor",-1),Qne=rr(". "),Yne={__name:"TheWelcome",setup(r){return(e,t)=>(w0(),cf(_i,null,[_r(Pu,null,{icon:sn(()=>[_r(Ore)]),heading:sn(()=>[ine]),default:sn(()=>[fne,ane,one]),_:1}),_r(Pu,null,{icon:sn(()=>[_r(Fre)]),heading:sn(()=>[sne]),default:sn(()=>[cne,lne,une,dne,hne,pne,bne,yne,gne,vne,mne,xne,wne,_ne,Ane]),_:1}),_r(Pu,null,{icon:sn(()=>[_r(Kre)]),heading:sn(()=>[Ene]),default:sn(()=>[Tne,Sne,kne,Mne,Pne,Ine,Cne,Rne,One,Bne,Dne]),_:1}),_r(Pu,null,{icon:sn(()=>[_r(Zre)]),heading:sn(()=>[Nne]),default:sn(()=>[Une,Lne,Fne,zne,jne,$ne,Vne,Hne,Kne]),_:1}),_r(Pu,null,{icon:sn(()=>[_r(nne)]),heading:sn(()=>[qne]),default:sn(()=>[Gne,Wne,Qne]),_:1})],64))}},Zne={__name:"HomeView",setup(r){return(e,t)=>(w0(),cf("main",null,[_r(Yne)]))}},Jne=ED({history:$B("/token-negotiator-examples/vue-vite-boilerplate/"),routes:[{path:"/",name:"home",component:Zne},{path:"/about",name:"about",component:()=>F0(()=>import("./AboutView.945e3a5e.js"),["assets/AboutView.945e3a5e.js","assets/AboutView.4d995ba2.css"])}]});const rR=_B(Are);rR.use(Jne);rR.mount("#app");export{Ja as _,Vt as a,ge as b,cf as c,JX as d,Iq as e,FP as f,Rr as g,aa as h,zP as i,fG as j,e5 as k,A6 as l,lie as m,cie as n,w0 as o,eie as p,_0 as r,Cq as t}; + `);document.body.insertAdjacentHTML("beforeend",s),document.getElementById("tn-access-accept").addEventListener("click",function(){var y,x,_,S=document.getElementsByClassName("tn-permission-cb"),C=[];try{for(var M=Tu(S),k=M.next();!k.done;k=M.next()){var R=k.value,O=R.getAttribute("data-issuer");!((_=n.storedWhitelist[e])===null||_===void 0)&&_.issuers||(n.storedWhitelist[e]={issuers:[]}),R.checked&&C.push(O)}}catch(D){y={error:D}}finally{try{k&&!k.done&&(x=M.return)&&x.call(M)}finally{if(y)throw y.error}}n.storedWhitelist[e].issuers=C,n.saveWhitelist(),f()});var u=function(){n.storedWhitelist[e]&&delete n.storedWhitelist[e],n.saveWhitelist(),HQ("tn-user-denied-access-to-connection",!0,10)};document.getElementById("tn-access-deny").addEventListener("click",function(){u(),i(new Error("USER_ABORT"))}),n.showWhitelistCallback()})},r.STORAGE_KEY="tn-whitelist",r}(),bre=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,f){n.__proto__=f}||function(n,f){for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&(n[i]=f[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),hg=globalThis&&globalThis.__assign||function(){return hg=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},yre={whitelistDialogWidth:"450px",whitelistDialogHeight:"350px"},xh={max_width:typeof window<"u"&&window.innerWidth<700?"400px":"450px",min_height:typeof window<"u"&&window.innerHeight<600?"600px":"650px"};(function(r){bre(e,r);function e(t,n){n===void 0&&(n=null);var f=r.call(this,t)||this;if(f.tokenConfig=t,f.tokenConfig=Object.assign(yre,t),f.whitelist=new pre(f.tokenConfig,function(){var a=f.getDataFromQuery("evtid");f.sendMessageResponse({evtid:a,evt:Nf.SHOW_FRAME,max_width:f.tokenConfig.whitelistDialogWidth,min_height:f.tokenConfig.whitelistDialogHeight})}),n)f.urlParams=n;else{var i=window.location.hash.length>1?"?"+window.location.hash.substring(1):window.location.search;f.urlParams=new URLSearchParams(i)}return f.pageOnLoadEventHandler().catch(function(a){console.error(a),nt(2,"Outlet pageOnLoadEventHandler error: "+a.message)}),f}return e.prototype.getDataFromQuery=function(t){return this.urlParams?this.urlParams.has(Bn+t)?this.urlParams.get(Bn+t):this.urlParams.get(t):null},e.prototype.getCallbackUrlKey=function(t){return Bn+t},e.prototype.pageOnLoadEventHandler=function(){var t;return Su(this,void 0,void 0,function(){var n,f,i,a,o;return ku(this,function(l){switch(l.label){case 0:n=this.getDataFromQuery("evtid"),f=this.getDataFromQuery("action"),i=this.getDataFromQuery("requestor"),i&&(this.redirectCallbackUrl=new URL(i)),nt(2,"Outlet received event ID "+n+" action "+f+" at "+window.location.href),l.label=1;case 1:switch(l.trys.push([1,15,,16]),a=f,a){case Zr.GET_ISSUER_TOKENS:return[3,2];case Zr.EMAIL_ATTEST_CALLBACK:return[3,4];case Zr.GET_PROOF:return[3,6];case Zr.GET_MUTLI_PROOF:return[3,8]}return[3,10];case 2:return[4,this.sendTokens(n)];case 3:return l.sent(),[3,14];case 4:return this.getDataFromQuery("localClient")==="true"?[2]:[4,this.processAttestationIdCallback(n)];case 5:return l.sent(),[3,14];case 6:return[4,this.sendTokenProof(n)];case 7:return l.sent(),[3,14];case 8:return[4,this.sendMultiTokenProof(n)];case 9:return l.sent(),[3,14];case 10:return this.getDataFromQuery("ticket")?[4,this.readMagicLink()]:[3,13];case 11:return l.sent(),[4,this.sendTokens(n)];case 12:l.sent(),l.label=13;case 13:return[3,14];case 14:return[3,16];case 15:return o=l.sent(),console.error(o),this.sendErrorResponse(n,(t=o?.message)!==null&&t!==void 0?t:o,this.getDataFromQuery("issuer")),[3,16];case 16:return[2]}})})},e.prototype.processAttestationIdCallback=function(t){var n=this.redirectCallbackUrl,f=this.getDataFromQuery("issuer");try{var i=new z1;i.captureAttestationIdCallback(this.urlParams);var a=this.getDataFromQuery("orig-action");switch(a){case Zr.GET_PROOF:this.sendTokenProof(t);break;case Zr.GET_MUTLI_PROOF:this.sendMultiTokenProof(t);break;default:throw new Error("Original action not defined in attestation.id callback")}}catch(o){if(console.error(o),n)return this.proofRedirectError(f,o.message)}window.location.hash=Y8(this.urlParams,["attestation","requestSecret","address","wallet"]).toString()},e.prototype.getIssuerConfigById=function(t){var n,f;if(this.tokenConfig.issuers){try{for(var i=Mu(this.tokenConfig.issuers),a=i.next();!a.done;a=i.next()){var o=a.value;if(o.collectionID===t)return o}}catch(l){n={error:l}}finally{try{a&&!a.done&&(f=i.return)&&f.call(i)}finally{if(n)throw n.error}}throw new Error("Issuer "+t+" not found")}},e.prototype.readMagicLink=function(){return Su(this,void 0,void 0,function(){return ku(this,function(t){switch(t.label){case 0:return this.urlParams.has("ticket")?[4,this.ticketStorage.importTicketFromMagicLink(this.urlParams)]:[2];case 1:return t.sent(),[2]}})})},e.prototype.sendMultiTokenProof=function(t){return Su(this,void 0,void 0,function(){var n,f,i,a,o,l,s,u,y,x=this;return ku(this,function(_){switch(_.label){case 0:n=this.getDataFromQuery("tokens"),f=this.getDataFromQuery("wallet"),i=this.getDataFromQuery("address"),Ea(n,"unsigned token is missing"),a=this.getDataFromQuery("redirect")==="true"?window.location.href:!1,_.label=1;case 1:return _.trys.push([1,3,,4]),o=JSON.parse(n),[4,this.authenticateMany(o,i,f,a,function(){x.sendMessageResponse({evtid:t,evt:Nf.SHOW_FRAME,max_width:xh.max_width,min_height:xh.min_height})})];case 2:return l=_.sent(),this.redirectCallbackUrl?(s=this.redirectCallbackUrl,u=new URLSearchParams(s.hash.substring(1)),u.set(this.getCallbackUrlKey("action"),"proof-callback"),u.set(this.getCallbackUrlKey("multi-token"),"true"),u.set(this.getCallbackUrlKey("tokens"),JSON.stringify(l)),s.hash=u.toString(),window.location.href=s.href,[2]):(this.sendMessageResponse({evtid:t,evt:cc.PROOF,data:l}),[3,4]);case 3:return y=_.sent(),nt(2,y),a?[2,this.proofRedirectError(this.getDataFromQuery("issuer"),y.message)]:(this.sendErrorResponse(t,y.message),[3,4]);case 4:return[2]}})})},e.prototype.sendTokenProof=function(t){return Su(this,void 0,void 0,function(){var n,f,i,a,o,l,s,u,y,x,_,S,C,M,k=this;return ku(this,function(R){switch(R.label){case 0:n=this.getDataFromQuery("issuer"),f=this.getDataFromQuery("token"),i=this.getDataFromQuery("wallet"),a=this.getDataFromQuery("address"),Ea(f,"unsigned token is missing"),o=JSON.parse(f),l=this.getDataFromQuery("redirect")==="true"?window.location.href:!1,R.label=1;case 1:return R.trys.push([1,5,,6]),s=this.getIssuerConfigById(n),[4,this.ticketStorage.getStoredTicketFromDecodedTokenOrId(Wa(s),o)];case 2:return u=R.sent(),y=new z1(s.attestationOrigin,function(){k.sendMessageResponse({evtid:t,evt:Nf.SHOW_FRAME,max_width:xh.max_width,min_height:xh.min_height})},l),[4,y.getIdentifierAttestation(u.id,i,a,{action:Zr.GET_PROOF,issuer:n,token:JSON.stringify(o)})];case 3:return x=R.sent(),[4,dg(s,x.attestation,x.identifierSecret,u)];case 4:return _=R.sent(),this.redirectCallbackUrl?(S=this.redirectCallbackUrl,C=new URLSearchParams(S.hash.substring(1)),C.set(this.getCallbackUrlKey("action"),"proof-callback"),C.set(this.getCallbackUrlKey("issuer"),n),C.set(this.getCallbackUrlKey("attestation"),_.proof),C.set(this.getCallbackUrlKey("type"),u.type),C.set(this.getCallbackUrlKey("token"),f),S.hash=C.toString(),window.location.href=S.href,[2]):(this.sendMessageResponse({evtid:t,evt:cc.PROOF,data:hg({issuer:s.collectionID},_)}),[3,6]);case 5:return M=R.sent(),nt(2,M),l?[2,this.proofRedirectError(this.getDataFromQuery("issuer"),M.message)]:(this.sendErrorResponse(t,M.message),[3,6]);case 6:return[2]}})})},e.prototype.sendTokens=function(t){return Su(this,void 0,void 0,function(){var n,f,i,a,S,o,l,s,R,u,S,y,x,R,_,S,C,M,k,R,O,D,j,K,Z,te,se,he,F,P,v,c;return ku(this,function(h){switch(h.label){case 0:if(n=JSON.parse(this.getDataFromQuery("request")),!n)return[2];f={};try{for(i=Mu(this.tokenConfig.issuers),a=i.next();!a.done;a=i.next()){S=a.value,o=Wa(S);try{for(l=(se=void 0,Mu(o)),s=l.next();!s.done;s=l.next())R=s.value,f[R]=S}catch(g){se={error:g}}finally{try{s&&!s.done&&(he=l.return)&&he.call(l)}finally{if(se)throw se.error}}}}catch(g){Z={error:g}}finally{try{a&&!a.done&&(te=i.return)&&te.call(i)}finally{if(Z)throw Z.error}}u=[];for(S in n)try{for(y=(F=void 0,Mu(n[S])),x=y.next();!x.done;x=y.next())R=x.value,f[R]&&u.indexOf(f[R])===-1&&u.push(f[R])}catch(g){F={error:g}}finally{try{x&&!x.done&&(P=y.return)&&P.call(y)}finally{if(F)throw F.error}}return[4,this.whitelist.whitelistCheck(u,!1)];case 1:_=h.sent();for(S in n){C=[];try{for(M=(v=void 0,Mu(n[S])),k=M.next();!k.done;k=M.next())R=k.value,f[R]&&_.indexOf(f[R].collectionID)>-1&&C.push(R)}catch(g){v={error:g}}finally{try{k&&!k.done&&(c=M.return)&&c.call(M)}finally{if(v)throw v.error}}n[S]=C}return[4,this.ticketStorage.getDecodedTokens(n)];case 2:if(O=h.sent(),nt(2,"issuerTokens: (Outlet.sendTokens)",O),this.redirectCallbackUrl)try{return D=this.redirectCallbackUrl,j=new URLSearchParams(D.hash.substring(1)),j.set(this.getCallbackUrlKey("action"),Zr.GET_ISSUER_TOKENS+"-response"),j.set(this.getCallbackUrlKey("tokens"),JSON.stringify(O)),D.hash="#"+j.toString(),K=D.href,nt(2,"tokens ready. go to: ",K),window.location.href=K,[2]}catch(g){nt(2,"Requestor redirect Error. ",g)}return this.sendMessageResponse({evtid:t,evt:cc.ISSUER_TOKENS,data:{tokens:O}}),[2]}})})},e.prototype.sendErrorResponse=function(t,n,f,i){if(i===void 0&&(i="error"),this.redirectCallbackUrl){var a=this.redirectCallbackUrl,o=new URLSearchParams(a.hash.substring(1));o.set(this.getCallbackUrlKey("action"),Nf.ERROR),o.set(this.getCallbackUrlKey("issuer"),f),o.set(this.getCallbackUrlKey("type"),i),o.set(this.getCallbackUrlKey("error"),n),a.hash="#"+o.toString(),window.location.href=a.href;return}this.sendMessageResponse({evtid:t,evt:Nf.ERROR,errors:[n]})},e.prototype.proofRedirectError=function(t,n){var f=this.redirectCallbackUrl,i=new URLSearchParams(f.hash.substring(1));i.set(this.getCallbackUrlKey("action"),"proof-callback"),i.set(this.getCallbackUrlKey("issuer"),t),i.set(this.getCallbackUrlKey("error"),n),f.hash=i.toString(),window.location.href=f.href},e.prototype.sendMessageResponse=function(t){if(!!document.referrer){var n;window.opener&&window.opener!==window?n=window.opener:window.parent!==window&&(n=window.parent),n&&n.postMessage(t,"*")}},e})(uc);const gre=r=>(NA("data-v-9dacf319"),r=r(),UA(),r),vre=gre(()=>Vt("img",{alt:"Vue logo",class:"logo",src:EB,width:"125",height:"125"},null,-1)),mre={class:"wrapper"},xre=rr("Home"),wre=rr("About"),_re={__name:"App",setup(r){const e=jc({client:void 0});return VA(()=>{e.client=new ure({type:"active",issuers:[{collectionID:"penthouse-panther-club",collectionAddress:"ff846ef2eed57e5367cf8826e63f4d53fe28d28aa67417accb6e4b48cbd19136",onChain:!0,collectionSymbol:"PPC",chain:"mainnet",blockchain:"solana"},{collectionID:"pixel",collectionAddress:"166424b16c4c7f40eb852f9eb2d0d6869a9ed7ac54a8e6afbd516676bfbbeb19",onChain:!0,collectionSymbol:"PIXEL",chain:"mainnet",blockchain:"solana"},{onChain:!0,collectionID:"expansion-punks",contract:"0x0d0167a823c6619d430b1a96ad85b888bcf97c37",chain:"eth",blockchain:"ethereum"},{onChain:!0,collectionID:"Perion",contract:"0x96af92ae2d822a0f191455ceca4d4e7ee227668e",chain:"mumbai",blockchain:"evm"},{collectionID:"COOLCATS-#2426-14",onChain:!0,contract:"0x3C7e352481F4b2fdEc1e642a3f0018661c77513D",chain:"eth",openSeaSlug:"devcon-vi-suit-up-collection"},{collectionID:"Town-Hall",onChain:!0,contract:"0x81b30ff521D1fEB67EDE32db726D95714eb00637",chain:"Optimism"},{collectionID:"Blusteak Kangaroo #64",onChain:!0,contract:"0xa996F7F3BC647EebC98C684aB0A302c9b85d2FA1",chain:"Avalanche"},{collectionID:"Alone Pirate",onChain:!0,contract:"0x36535ec384B94342558e37282527b5052587af6A",chain:"Arbitrum"},{collectionID:"TNM",onChain:!0,contract:"0x3cC6c9c6DC13814c6ba4da3520d2Ae40332A831F",chain:"goerli",fungible:!0},{collectionID:"Tether-USD",onChain:!0,contract:"0xdac17f958d2ee523a2206206994597c13d831ec7",chain:"eth",fungible:!0},{collectionID:"AdEx-Network",onChain:!0,contract:"0xade00c28244d5ce17d72e40330b1c318cd12b7c3",chain:"eth",fungible:!0},{collectionID:"AAVEPool",contract:"0xb7fd3398484ea4eff33e003db4c85d4984f8d62e",fungible:!0,onChain:!0,chain:"polygon"},{collectionID:"Minereum-AVAX",contract:"0xf9d922c055a3f1759299467dafafdf43be844f7a",fungible:!0,onChain:!0,chain:"Avalanche"},{collectionID:"Testv4",contract:"0x499d11e0b6eac7c0593d8fb292dcbbf815fb29ae",fungible:!0,onChain:!0,chain:"goerli"},{collectionID:"Dummy ERC20",contract:"0xfe4f5145f6e09952a5ba9e956ed0c25e3fa4c7f1",fungible:!0,onChain:!0,chain:"mumbai"},{collectionID:"Domains",onChain:!0,contract:"A.233eb012d34b0070.Domains",chain:"mainnet",blockchain:"flow"},{collectionID:"AllDay",onChain:!0,contract:"A.e4cf4bdc1751c65d.AllDay",chain:"mainnet",blockchain:"flow"},{collectionID:"NBA",onChain:!0,contract:"A.0b2a3299cc857e29.TopShot",chain:"mainnet",blockchain:"flow"}],uiOptions:{openingHeading:"Open a new world of perks, benefits and opportunities with your attestation, collectible or token.",issuerHeading:"Get discount with Ticket",repeatAction:"try again",theme:"dark",position:"top-right"},unSupportedUserAgent:{authentication:{config:{metaMaskAndroid:!0,alphaWalletAndroid:!0,mewAndroid:!0,imTokenAndroid:!0},errorMessage:"No Support for Authentication with this user agent. Try Chrome, Safari or Edge instead."},full:{config:{iE:!0,iE9:!0},errorMessage:"This browser is not supported. Please try using Chrome, Edge, FireFox or Safari."}}}),e.client.on("connected-wallet",t=>{console.log("connected wallet",t),e.client.ui.openOverlay()}),e.client.on("tokens-selected",t=>{console.log(t)}),e.client.on("token-proof",t=>{console.log(t)}),e.client.negotiate()}),(t,n)=>(w0(),cf(_i,null,[Vt("header",null,[vre,Vt("div",mre,[_r(CD,{msg:"You did it!"}),Vt("nav",null,[_r(zf(l8),{to:"/"},{default:sn(()=>[xre]),_:1}),_r(zf(l8),{to:"/about"},{default:sn(()=>[wre]),_:1})])])]),_r(zf(vE))],64))}},Are=Ja(_re,[["__scopeId","data-v-9dacf319"]]);const Ere={},Tre={class:"item"},Sre={class:"details"};function kre(r,e){return w0(),cf("div",Tre,[Vt("em",null,[K5(r.$slots,"icon",{},void 0,!0)]),Vt("div",Sre,[Vt("h3",null,[K5(r.$slots,"heading",{},void 0,!0)]),K5(r.$slots,"default",{},void 0,!0)])])}const Pu=Ja(Ere,[["render",kre],["__scopeId","data-v-72623109"]]),Mre={},Pre={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"17",fill:"currentColor"},Ire=Vt("path",{d:"M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"},null,-1),Cre=[Ire];function Rre(r,e){return w0(),cf("svg",Pre,Cre)}const Ore=Ja(Mre,[["render",Rre]]),Bre={},Dre={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",class:"iconify iconify--mdi",width:"24",height:"24",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},Nre=Vt("path",{d:"M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z",fill:"currentColor"},null,-1),Ure=[Nre];function Lre(r,e){return w0(),cf("svg",Dre,Ure)}const Fre=Ja(Bre,[["render",Lre]]),zre={},jre={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"currentColor"},$re=Vt("path",{d:"M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"},null,-1),Vre=[$re];function Hre(r,e){return w0(),cf("svg",jre,Vre)}const Kre=Ja(zre,[["render",Hre]]),qre={},Gre={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor"},Wre=Vt("path",{d:"M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"},null,-1),Qre=[Wre];function Yre(r,e){return w0(),cf("svg",Gre,Qre)}const Zre=Ja(qre,[["render",Yre]]),Jre={},Xre={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor"},ene=Vt("path",{d:"M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"},null,-1),tne=[ene];function rne(r,e){return w0(),cf("svg",Xre,tne)}const nne=Ja(Jre,[["render",rne]]),ine=rr("Documentation"),fne=rr(" Vue\u2019s "),ane=Vt("a",{target:"_blank",href:"https://vuejs.org/",rel:"noopener"},"official documentation",-1),one=rr(" provides you with all information you need to get started. "),sne=rr("Tooling"),cne=rr(" This project is served and bundled with "),lne=Vt("a",{href:"https://vitejs.dev/guide/features.html",target:"_blank",rel:"noopener"},"Vite",-1),une=rr(". The recommended IDE setup is "),dne=Vt("a",{href:"https://code.visualstudio.com/",target:"_blank",rel:"noopener"},"VSCode",-1),hne=rr(" + "),pne=Vt("a",{href:"https://github.com/johnsoncodehk/volar",target:"_blank",rel:"noopener"},"Volar",-1),bne=rr(". If you need to test your components and web pages, check out "),yne=Vt("a",{href:"https://www.cypress.io/",target:"_blank",rel:"noopener"},"Cypress",-1),gne=rr(" and "),vne=Vt("a",{href:"https://on.cypress.io/component",target:"_blank",rel:"noopener"},"Cypress Component Testing",-1),mne=rr(". "),xne=Vt("br",null,null,-1),wne=rr(" More instructions are available in "),_ne=Vt("code",null,"README.md",-1),Ane=rr(". "),Ene=rr("Ecosystem"),Tne=rr(" Get official tools and libraries for your project: "),Sne=Vt("a",{target:"_blank",href:"https://pinia.vuejs.org/",rel:"noopener"},"Pinia",-1),kne=rr(", "),Mne=Vt("a",{target:"_blank",href:"https://router.vuejs.org/",rel:"noopener"},"Vue Router",-1),Pne=rr(", "),Ine=Vt("a",{target:"_blank",href:"https://test-utils.vuejs.org/",rel:"noopener"},"Vue Test Utils",-1),Cne=rr(", and "),Rne=Vt("a",{target:"_blank",href:"https://github.com/vuejs/devtools",rel:"noopener"},"Vue Dev Tools",-1),One=rr(". If you need more resources, we suggest paying "),Bne=Vt("a",{target:"_blank",href:"https://github.com/vuejs/awesome-vue",rel:"noopener"},"Awesome Vue",-1),Dne=rr(" a visit. "),Nne=rr("Community"),Une=rr(" Got stuck? Ask your question on "),Lne=Vt("a",{target:"_blank",href:"https://chat.vuejs.org",rel:"noopener"},"Vue Land",-1),Fne=rr(", our official Discord server, or "),zne=Vt("a",{target:"_blank",href:"https://stackoverflow.com/questions/tagged/vue.js",rel:"noopener"},"StackOverflow",-1),jne=rr(". You should also subscribe to "),$ne=Vt("a",{target:"_blank",href:"https://news.vuejs.org",rel:"noopener"},"our mailing list",-1),Vne=rr(" and follow the official "),Hne=Vt("a",{target:"_blank",href:"https://twitter.com/vuejs",rel:"noopener"},"@vuejs",-1),Kne=rr(" twitter account for latest news in the Vue world. "),qne=rr("Support Vue"),Gne=rr(" As an independent project, Vue relies on community backing for its sustainability. You can help us by "),Wne=Vt("a",{target:"_blank",href:"https://vuejs.org/sponsor/",rel:"noopener"},"becoming a sponsor",-1),Qne=rr(". "),Yne={__name:"TheWelcome",setup(r){return(e,t)=>(w0(),cf(_i,null,[_r(Pu,null,{icon:sn(()=>[_r(Ore)]),heading:sn(()=>[ine]),default:sn(()=>[fne,ane,one]),_:1}),_r(Pu,null,{icon:sn(()=>[_r(Fre)]),heading:sn(()=>[sne]),default:sn(()=>[cne,lne,une,dne,hne,pne,bne,yne,gne,vne,mne,xne,wne,_ne,Ane]),_:1}),_r(Pu,null,{icon:sn(()=>[_r(Kre)]),heading:sn(()=>[Ene]),default:sn(()=>[Tne,Sne,kne,Mne,Pne,Ine,Cne,Rne,One,Bne,Dne]),_:1}),_r(Pu,null,{icon:sn(()=>[_r(Zre)]),heading:sn(()=>[Nne]),default:sn(()=>[Une,Lne,Fne,zne,jne,$ne,Vne,Hne,Kne]),_:1}),_r(Pu,null,{icon:sn(()=>[_r(nne)]),heading:sn(()=>[qne]),default:sn(()=>[Gne,Wne,Qne]),_:1})],64))}},Zne={__name:"HomeView",setup(r){return(e,t)=>(w0(),cf("main",null,[_r(Yne)]))}},Jne=ED({history:$B("/token-negotiator-examples/vue-vite-boilerplate/"),routes:[{path:"/",name:"home",component:Zne},{path:"/about",name:"about",component:()=>F0(()=>import("./AboutView.8d883951.js"),["assets/AboutView.8d883951.js","assets/AboutView.4d995ba2.css"])}]});const rR=_B(Are);rR.use(Jne);rR.mount("#app");export{Ja as _,Vt as a,ge as b,cf as c,JX as d,Iq as e,FP as f,Rr as g,aa as h,zP as i,fG as j,e5 as k,A6 as l,lie as m,cie as n,w0 as o,eie as p,_0 as r,Cq as t}; diff --git a/vue-vite-boilerplate/index.html b/vue-vite-boilerplate/index.html index f21fa63d7..74edddc83 100644 --- a/vue-vite-boilerplate/index.html +++ b/vue-vite-boilerplate/index.html @@ -1,11 +1,11 @@ - + TKN Vite Dapp - +