Initial commit: Pezkuwi Wallet Android

Security hardened release:
- Code obfuscation enabled (minifyEnabled=true, shrinkResources=true)
- Sensitive files excluded (google-services.json, keystores)
- Branch.io key moved to BuildConfig placeholder
- Updated dependencies: OkHttp 4.12.0, Gson 2.10.1, BouncyCastle 1.77
- Comprehensive ProGuard rules for crypto wallet
- Navigation 2.7.7, Lifecycle 2.7.0, ConstraintLayout 2.1.4
This commit is contained in:
Kurdistan Tech Ministry committed 2026-02-12 05:19:41 +03:00
commit a294aa1a6b
7687 files changed
+441811

No files matched your search

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/text_primary" android:state_selected="true" />
<item android:color="@color/text_secondary" />
</selector>
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@drawable/dapp_tab_background_selected"/>
<item android:drawable="@drawable/dapp_tab_background_default" />
</selector>
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:background="@color/secondary_screen_background">
<io.novafoundation.nova.common.view.Toolbar
android:id="@+id/addToFavouritesToolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:dividerVisible="false"
app:homeButtonIcon="@drawable/ic_close"
app:textRight="@string/common_save"
app:titleText="@string/dapp_favourites_add" />
<ImageView
android:id="@+id/addToFavouritesIcon"
style="@style/Widget.Nova.Icon.Big"
android:layout_gravity="center_horizontal"
android:layout_marginTop="12dp"
tools:src="@drawable/ic_earth" />
<TextView
style="@style/TextAppearance.NovaFoundation.Regular.Footnote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:text="@string/common_title"
android:textColor="@color/text_secondary" />
<io.novafoundation.nova.common.view.input.TextInputView
android:id="@+id/addToFavouritesTitleInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:hint="@string/common_title"
tools:text="duckduckgo.com" />
<TextView
style="@style/TextAppearance.NovaFoundation.Regular.Footnote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:text="@string/common_address"
android:textColor="@color/text_secondary" />
<io.novafoundation.nova.common.view.input.TextInputView
android:id="@+id/addToFavouritesAddressInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:hint="@string/common_address"
tools:text="duckduckgo.com" />
</LinearLayout>
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:background="@color/secondary_screen_background">
<io.novafoundation.nova.common.view.Toolbar
android:id="@+id/authorizedDAppsToolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:dividerVisible="false"
app:homeButtonIcon="@drawable/ic_close"
app:titleText="@string/dapp_authorized_title" />
<TextView
style="@style/TextAppearance.NovaFoundation.Regular.Footnote"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:textColor="@color/text_secondary"
android:layout_marginEnd="16dp"
android:text="@string/dapp_authorized_description" />
<io.novafoundation.nova.common.view.TableCellView
android:id="@+id/authorizedDAppsWallet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
app:dividerVisible="false"
app:title="@string/tabbar_wallet_title" />
<Space
android:id="@+id/authorizedPlaceholderSpacerTop"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_weight="1" />
<io.novafoundation.nova.common.view.PlaceholderView
android:id="@+id/authorizedPlaceholder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/dapp_list_placeholder"
app:placeholderBackgroundStyle="no_background"
app:image="@drawable/ic_placeholder"/>
<Space
android:id="@+id/authorizedPlaceholderSpacerBottom"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_weight="2" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/authorizedDAppsList"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:layout_weight="1"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/view_dapp"
tools:visibility="gone" />
</LinearLayout>
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/secondary_screen_background"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/browserTabsList"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:clipToPadding="false"
android:padding="8dp"
tools:layoutManager="androidx.recyclerview.widget.GridLayoutManager" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="2dp"
android:paddingBottom="24dp">
<TextView
android:id="@+id/browserTabsCloseTabs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|start"
android:paddingHorizontal="16dp"
android:paddingVertical="8dp"
android:text="@string/browser_tabs_close_all"
android:textColor="@color/text_primary" />
<ImageView
android:id="@+id/browserTabsAddTab"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:scaleType="centerCrop"
android:src="@drawable/ic_add_circle"
app:tint="@color/icon_primary" />
<TextView
android:id="@+id/browserTabsDone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
android:paddingHorizontal="16dp"
android:paddingVertical="8dp"
android:text="@string/common_done"
android:textColor="@color/text_primary" />
</FrameLayout>
</LinearLayout>
@@ -0,0 +1,151 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/secondary_screen_background"
android:orientation="vertical">
<LinearLayout
android:id="@+id/dappBrowserAddressBarGroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/blur_navigation_background"
android:gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/dappBrowserHide"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:padding="8dp"
android:src="@drawable/ic_chevron_down"
app:tint="@color/actions_color" />
<io.novafoundation.nova.feature_dapp_impl.presentation.browser.main.view.AddressBarView
android:id="@+id/dappBrowserAddressBar"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="6dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="6dp"
android:layout_weight="1" />
<ImageView
android:id="@+id/dappBrowserRefresh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:padding="8dp"
android:src="@drawable/ic_refresh"
app:tint="@color/actions_color" />
</LinearLayout>
<FrameLayout
android:id="@+id/dappBrowserWebViewContainer"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/dappBrowserBottomNavigation"
app:layout_constraintTop_toBottomOf="@+id/dappBrowserAddressBarGroup" />
<io.novafoundation.nova.common.view.TopCropImageView
android:id="@+id/dappBrowserTransitionImage"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/dappBrowserBottomNavigation"
app:layout_constraintTop_toBottomOf="@+id/dappBrowserAddressBarGroup" />
<ProgressBar
android:id="@+id/dappBrowserProgress"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="4dp"
android:max="100"
app:layout_constraintTop_toBottomOf="@+id/dappBrowserAddressBarGroup"
tools:progress="45" />
<LinearLayout
android:id="@+id/dappBrowserBottomNavigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/dapp_blur_navigation_background"
android:gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent">
<ImageView
android:id="@+id/dappBrowserBack"
android:layout_width="0dp"
android:layout_height="46dp"
android:layout_weight="1"
android:scaleType="centerInside"
android:src="@drawable/ic_chevron_left"
app:tint="@color/actions_color" />
<ImageView
android:id="@+id/dappBrowserForward"
android:layout_width="0dp"
android:layout_height="46dp"
android:layout_weight="1"
android:scaleType="centerInside"
android:src="@drawable/ic_chevron_right"
app:tint="@color/actions_color" />
<FrameLayout
android:id="@+id/dappBrowserTabs"
android:layout_width="0dp"
android:layout_height="46dp"
android:layout_weight="1"
android:paddingTop="11dp"
android:paddingBottom="11dp">
<ImageView
android:id="@+id/dappBrowserTabsIcon"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:scaleType="centerInside"
android:src="@drawable/ic_siri_paw"
android:visibility="gone"
app:tint="@color/actions_color" />
<TextView
android:id="@+id/dappBrowserTabsContent"
style="@style/TextAppearance.NovaFoundation.SemiBold.Caption1"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:background="@drawable/bg_browser_tabs_outline"
android:backgroundTint="@color/actions_color"
android:backgroundTintMode="multiply"
android:gravity="center"
android:includeFontPadding="false"
android:textColor="@color/text_primary"
app:tint="@color/actions_color"
tools:text="99" />
</FrameLayout>
<ImageView
android:id="@+id/dappBrowserFavorite"
android:layout_width="0dp"
android:layout_height="46dp"
android:layout_weight="1"
android:scaleType="centerInside"
android:src="@drawable/ic_favorite_heart_outline" />
<ImageView
android:id="@+id/dappBrowserMore"
android:layout_width="0dp"
android:layout_height="46dp"
android:layout_weight="1"
android:scaleType="centerInside"
android:src="@drawable/ic_more_horizontal"
app:tint="@color/actions_color" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/dappRecyclerViewCatalog"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/drawable_background_image"
android:clipToPadding="false"
android:overScrollMode="never"
android:paddingBottom="16dp"
android:scrollbars="none"
app:layoutManager="io.novafoundation.nova.common.view.recyclerview.LinearLayoutManagerFixed" />
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/searchDappSearhContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:background="@color/secondary_screen_background">
<io.novafoundation.nova.common.view.Toolbar
android:id="@+id/favoritesDappToolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:dividerVisible="false"
app:homeButtonIcon="@drawable/ic_close"
app:titleText="@string/dapp_favorites" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/favoritesDappList"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:clipToPadding="false"
android:paddingBottom="24dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</LinearLayout>
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/searchDappSearhContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:background="@color/secondary_screen_background">
<io.novafoundation.nova.common.view.SearchToolbar
android:id="@+id/searchDappSearch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/dapp_search_hint" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingVertical="8dp"
android:background="@color/blur_navigation_background"
app:layout_constraintTop_toBottomOf="@+id/dappMainSearch">
<FrameLayout
android:id="@+id/searchDappCategoriesShimmering"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintTop_toBottomOf="@+id/dappMainSearch">
<include layout="@layout/item_dapp_categories_shimmering"/>
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/searchDappCategories"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:orientation="horizontal"
android:paddingHorizontal="16dp"
tools:listitem="@layout/item_dapp_category"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</FrameLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/navigation_divider"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/searchDappList"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:clipToPadding="false"
android:paddingBottom="24dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</LinearLayout>
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:clipToPadding="false"
android:orientation="vertical"
android:padding="8dp">
<com.google.android.material.card.MaterialCardView
android:id="@+id/browserTabCard"
android:layout_width="match_parent"
android:layout_height="230dp"
app:cardBackgroundColor="@color/container_border"
app:cardCornerRadius="16dp"
app:cardElevation="8dp"
app:strokeColor="@color/container_border"
app:strokeWidth="2dp">
<io.novafoundation.nova.common.view.TopCropImageView
android:id="@+id/browserTabScreenshot"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:background="@color/secondary_screen_background" />
<ImageView
android:id="@+id/browserTabClose"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="6dp"
android:src="@drawable/ic_tab_close" />
</com.google.android.material.card.MaterialCardView>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="6dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/browserTabFavicon"
android:layout_width="16dp"
android:layout_height="16dp" />
<TextView
android:id="@+id/browserTabSiteName"
style="@style/TextAppearance.NovaFoundation.Regular.Caption1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:ellipsize="end"
android:lines="1"
tools:text="Hydration" />
</LinearLayout>
</LinearLayout>
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/categorizedDappsCategoriesShimmering"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingHorizontal="12dp"
android:scrollbars="none"
app:layout_constraintTop_toBottomOf="@+id/dappMainSearch">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<include layout="@layout/item_dapp_category_shimmering" />
<include layout="@layout/item_dapp_category_shimmering" />
<include layout="@layout/item_dapp_category_shimmering" />
<include layout="@layout/item_dapp_category_shimmering" />
</LinearLayout>
</HorizontalScrollView>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:background="@drawable/dapp_tab_background"
android:orientation="horizontal"
android:paddingStart="4dp"
android:paddingEnd="8dp">
<ImageView
android:id="@+id/itemDappCategoryIcon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="4dp"
tools:src="@drawable/ic_favorite_heart_filled_20" />
<TextView
android:id="@+id/itemDappCategoryText"
style="@style/TextAppearance.NovaFoundation.Regular.Footnote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="4dp"
android:gravity="center"
android:includeFontPadding="false"
android:paddingTop="9dp"
android:paddingBottom="9dp"
android:textColor="@color/dapp_category_text_tint"
tools:text="All" />
</LinearLayout>
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="80dp"
android:layout_height="32dp"
android:layout_marginHorizontal="4dp"
android:layout_weight="1"
android:background="@drawable/dapp_tab_background"
android:gravity="center_vertical"
android:paddingStart="8dp"
android:paddingEnd="12dp">
<com.facebook.shimmer.ShimmerFrameLayout
android:layout_width="20dp"
android:layout_height="20dp"
android:background="@drawable/bg_shimmering" />
<com.facebook.shimmer.ShimmerFrameLayout
android:layout_width="32dp"
android:layout_height="8dp"
android:layout_marginStart="8dp"
android:background="@drawable/bg_shimmering" />
</LinearLayout>
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_primary_list_item">
<ImageView
android:id="@+id/itemDraggableFavoriteDAppIcon"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:background="@drawable/dapp_icon_background"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"
tools:src="@drawable/ic_sub_id" />
<TextView
android:id="@+id/itemDraggableFavoriteDAppTitle"
style="@style/TextAppearance.NovaFoundation.Regular.Body"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginEnd="24dp"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
android:singleLine="true"
android:textColor="@color/text_primary"
app:layout_constraintBottom_toTopOf="@+id/itemDraggableFavoriteDAppSubtitle"
app:layout_constraintEnd_toStartOf="@+id/itemDraggableFavoriteDappFavoriteIcon"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toEndOf="@id/itemDraggableFavoriteDAppIcon"
app:layout_constraintTop_toTopOf="@+id/itemDraggableFavoriteDAppIcon"
app:layout_constraintVertical_chainStyle="packed"
tools:text="Astar" />
<TextView
android:id="@+id/itemDraggableFavoriteDAppSubtitle"
style="@style/TextAppearance.NovaFoundation.Regular.Footnote"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:layout_marginEnd="24dp"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
android:textColor="@color/text_secondary"
app:layout_constraintBottom_toBottomOf="@+id/itemDraggableFavoriteDAppIcon"
app:layout_constraintEnd_toStartOf="@+id/itemDraggableFavoriteDappFavoriteIcon"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="@+id/itemDraggableFavoriteDAppTitle"
app:layout_constraintTop_toBottomOf="@+id/itemDraggableFavoriteDAppTitle"
app:layout_goneMarginStart="0dp"
tools:text="Staking" />
<ImageView
android:id="@+id/itemDraggableFavoriteDappFavoriteIcon"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:paddingStart="16dp"
android:paddingEnd="8dp"
android:src="@drawable/ic_favorite_heart_filled_20"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/itemDraggableFavoriteDappDragHandle"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/itemDraggableFavoriteDappDragHandle"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:paddingStart="8dp"
android:paddingEnd="16dp"
android:src="@drawable/ic_list_drag"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:tint="@color/icon_secondary" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/itemDAppCategoryTitle"
style="@style/TextAppearance.NovaFoundation.SemiBold.Title3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="16dp"
android:ellipsize="end"
android:lines="1"
android:textColor="@color/text_primary"
tools:text="Staking" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/dappRecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="8dp"
android:clipToPadding="false"
android:orientation="horizontal"
android:overScrollMode="never"
android:paddingEnd="40dp"
android:scrollbars="none" />
</LinearLayout>
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/dappMainContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/dappMainTitle"
style="@style/TextAppearance.NovaFoundation.Bold.LargeTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="17dp"
android:layout_marginTop="25dp"
android:includeFontPadding="false"
android:text="@string/dapp_dapps"
android:textColor="@color/text_primary"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<io.novafoundation.nova.feature_account_api.view.SelectedWalletView
android:id="@+id/dappMainSelectedWallet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
android:layout_marginEnd="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<io.novafoundation.nova.feature_dapp_impl.presentation.main.view.TapToSearchView
android:id="@+id/dappMainSearch"
android:layout_width="0dp"
android:layout_height="36dp"
android:layout_marginStart="16dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="4dp"
app:layout_constraintEnd_toStartOf="@id/dappMainManage"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/dappMainTitle" />
<io.novafoundation.nova.common.view.IconButton
android:id="@+id/dappMainManage"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_marginEnd="16dp"
android:src="@drawable/ic_options"
app:layout_constraintBottom_toBottomOf="@+id/dappMainSearch"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/dappMainSearch"
app:tint="@color/chip_icon" />
<androidx.constraintlayout.widget.Barrier
android:id="@+id/categorizedDappsCategoriesBarrier"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="mainDappCategories,categorizedDappsCategoriesShimmering" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/mainDappCategories"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:clipToPadding="false"
android:orientation="horizontal"
android:overScrollMode="never"
android:paddingVertical="4dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintTop_toBottomOf="@+id/dappMainSearch"
tools:listitem="@layout/item_dapp_category"
tools:visibility="visible" />
<FrameLayout
android:id="@+id/categorizedDappsCategoriesShimmering"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingVertical="4dp"
app:layout_constraintTop_toBottomOf="@+id/dappMainSearch">
<include layout="@layout/item_dapp_categories_shimmering" />
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/searchCategory"
style="@style/TextAppearance.NovaFoundation.Regular.Caption1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingTop="16dp"
android:paddingBottom="8dp"
android:textColor="@color/text_secondary"
tools:background="@color/secondary_screen_background"
tools:text="DApps" />
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:padding="8dp"
android:background="@drawable/bg_primary_list_item">
<ImageView
android:id="@+id/itemFavoriteDAppIcon"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginBottom="8dp"
android:background="@drawable/dapp_icon_background"
tools:src="@drawable/ic_sub_id" />
<TextView
android:id="@+id/itemFavoriteDAppTitle"
style="@style/TextAppearance.NovaFoundation.Regular.Caption1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
android:singleLine="true"
android:textColor="@color/text_secondary"
tools:text="Astar" />
</LinearLayout>
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp">
ё
<TextView
android:id="@+id/dAppMainFavoriteDAppTitle"
style="@style/TextAppearance.NovaFoundation.SemiBold.Title3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="24dp"
android:drawablePadding="8dp"
android:ellipsize="end"
android:gravity="center_vertical"
android:lines="1"
android:text="@string/dapp_favorites"
android:textColor="@color/text_primary"
app:drawableStartCompat="@drawable/ic_favorite_heart_filled_20"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/dAppMainFavoriteDAppsShow"
style="@style/TextAppearance.NovaFoundation.Regular.Caption1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:padding="8dp"
android:text="@string/common_see_all"
android:textColor="@color/button_text_accent"
app:layout_constraintBottom_toBottomOf="@+id/dAppMainFavoriteDAppTitle"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/dAppMainFavoriteDAppTitle" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/dAppMainFavoriteDAppList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:orientation="horizontal"
android:overScrollMode="never"
android:paddingVertical="8dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintTop_toBottomOf="@+id/dAppMainFavoriteDAppTitle"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:background="@color/divider"
tools:gravity="center"
tools:orientation="horizontal"
tools:parentTag="android.widget.LinearLayout">
<ImageView
android:id="@+id/addressBarIcon"
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_marginStart="24dp"
android:src="@drawable/ic_lock"
app:tint="@color/icon_primary"/>
<TextView
android:id="@+id/addressBarUrl"
style="@style/TextAppearance.NovaFoundation.Regular.Footnote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="9dp"
android:layout_marginEnd="32dp"
android:layout_marginBottom="9dp"
android:ellipsize="end"
android:includeFontPadding="false"
android:singleLine="true"
android:textColor="@color/text_primary"
tools:text="polkadot.js.org" />
</merge>
@@ -0,0 +1,14 @@
window.addEventListener("message", ({ data, source }) => {
// only allow messages from our window, by the loader
if (source !== window) {
return;
}
let dataJson = JSON.stringify(data)
console.log(`Got message: ${dataJson}`)
if (data.origin === "dapp-request") {
// should be in tact with PolkadotJsExtension.kt
Nova_PolkadotJs.onNewMessage(dataJson)
}
});
@@ -0,0 +1,869 @@
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"Fylb":[function(require,module,exports) {
var r={messageId:0,toPayload:function(e,o){return e||console.error("jsonrpc method should be specified!"),r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:e,params:o||[]}},isValidResponse:function(r){return Array.isArray(r)?r.every(e):e(r);function e(r){return!!r&&!r.error&&"2.0"===r.jsonrpc&&"number"==typeof r.id&&void 0!==r.result}},toBatchPayload:function(e){return e.map(function(e){return r.toPayload(e.method,e.params)})}};module.exports=r;
},{}],"FRly":[function(require,module,exports) {
"use strict";exports.byteLength=u,exports.toByteArray=i,exports.fromByteArray=d;for(var r=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;function h(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){var n,o,a=h(r),u=a[0],i=a[1],f=new e(c(r,u,i)),A=0,d=i>0?u-4:u;for(o=0;o<d;o+=4)n=t[r.charCodeAt(o)]<<18|t[r.charCodeAt(o+1)]<<12|t[r.charCodeAt(o+2)]<<6|t[r.charCodeAt(o+3)],f[A++]=n>>16&255,f[A++]=n>>8&255,f[A++]=255&n;return 2===i&&(n=t[r.charCodeAt(o)]<<2|t[r.charCodeAt(o+1)]>>4,f[A++]=255&n),1===i&&(n=t[r.charCodeAt(o)]<<10|t[r.charCodeAt(o+1)]<<4|t[r.charCodeAt(o+2)]>>2,f[A++]=n>>8&255,f[A++]=255&n),f}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;a<e;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(255&r[a+2]),o.push(f(n));return o.join("")}function d(t){for(var e,n=t.length,o=n%3,a=[],h=0,u=n-o;h<u;h+=16383)a.push(A(t,h,h+16383>u?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;
},{}],"Quj6":[function(require,module,exports) {
exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<<w)-1,e=f>>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<<e)-1,N=i>>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<<h|w,e+=h;e>0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
},{}],"aqZJ":[function(require,module,exports) {
var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)};
},{}],"z1tx":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=f.prototype:(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,e){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,r,e)}function s(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?g(t,r,e,n):"string"==typeof r?l(t,r,e):y(t,r)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,r,e,n){return h(r),r<=0?u(t,r):void 0!==e?"string"==typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}function c(t,r){if(h(r),t=u(t,r<0?0:0|w(r)),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function l(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(r,e),i=(t=u(t,n)).write(r,e);return i!==n&&(t=t.slice(0,i)),t}function p(t,r){var e=r.length<0?0:0|w(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function g(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),f.TYPED_ARRAY_SUPPORT?(t=r).__proto__=f.prototype:t=p(t,r),t}function y(t,r){if(f.isBuffer(r)){var e=0|w(r.length);return 0===(t=u(t,e)).length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||W(r.length)?u(t,0):p(t,r);if("Buffer"===r.type&&n(r.data))return p(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.isBuffer(r))return 0===r.length?-1:_(t,r,e,n,i);if("number"==typeof r)return r&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):_(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function h(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var a=-1;for(o=e;o<f;o++)if(h(t,o)===h(r,-1===a?0:o-a)){if(-1===a&&(a=o),o-a+1===s)return a*u}else-1!==a&&(o-=o-a),a=-1}else for(e+s>f&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;l<s;l++)if(h(t,o+l)!==h(r,l)){c=!1;break}if(c)return o}return-1}function A(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=iLine truncated
},{"base64-js":"FRly","ieee754":"Quj6","isarray":"aqZJ","buffer":"z1tx"}],"gIYa":[function(require,module,exports) {
var r=require("buffer"),e=r.Buffer;function o(r,e){for(var o in r)e[o]=r[o]}function n(r,o,n){return e(r,o,n)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?module.exports=r:(o(r,exports),exports.Buffer=n),n.prototype=Object.create(e.prototype),o(e,n),n.from=function(r,o,n){if("number"==typeof r)throw new TypeError("Argument must not be a number");return e(r,o,n)},n.alloc=function(r,o,n){if("number"!=typeof r)throw new TypeError("Argument must be a number");var t=e(r);return void 0!==o?"string"==typeof n?t.fill(o,n):t.fill(o):t.fill(0),t},n.allocUnsafe=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return e(r)},n.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)};
},{"buffer":"z1tx"}],"g5IB":[function(require,module,exports) {
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
},{}],"pXr2":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var e=arguments[3],r=require("process"),o=65536,n=4294967295;function t(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var s=require("safe-buffer").Buffer,u=e.crypto||e.msCrypto;function a(e,t){if(e>n)throw new RangeError("requested too many random bytes");var a=s.allocUnsafe(e);if(e>0)if(e>o)for(var f=0;f<e;f+=o)u.getRandomValues(a.slice(f,f+o));else u.getRandomValues(a);return"function"==typeof t?r.nextTick(function(){t(null,a)}):a}u&&u.getRandomValues?module.exports=a:module.exports=t;
},{"safe-buffer":"gIYa","process":"g5IB"}],"oxwV":[function(require,module,exports) {
"function"==typeof Object.create?module.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:module.exports=function(t,e){if(e){t.super_=e;var o=function(){};o.prototype=e.prototype,t.prototype=new o,t.prototype.constructor=t}};
},{}],"wIHY":[function(require,module,exports) {
"use strict";var e,t="object"==typeof Reflect?Reflect:null,n=t&&"function"==typeof t.apply?t.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function r(e){console&&console.warn&&console.warn(e)}e=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}module.exports=o,module.exports.once=m,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,i){var o,s,c;if(u(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),c=s[t]),void 0===c)c=s[t]=n,++e._eventsCount;else if("function"==typeof c?c=s[t]=i?[n,c]:[c,n]:i?c.unshift(n):c.push(n),(o=f(e))>0&&c.length>o&&!c.warned){c.warned=!0;var v=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");v.name="MaxListenersExceededWarning",v.emitter=e,v.type=t,v.count=c.length,r(v)}return e}function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=v.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?d(i):h(i,i.length)}function a(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function d(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function m(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&L(e,i,{once:!0})})}function L(e,t,n){"function"==typeof e.on&&g(e,"error",t,n)}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var f=o[e];if(void 0===f)return!1;if("function"==typeof f)n(f,this,t);else{var c=f.length,v=h(f,c);for(r=0;r<c;++r)n(v[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():y(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return thiLine truncated
},{}],"XrGN":[function(require,module,exports) {
module.exports=require("events").EventEmitter;
},{"events":"wIHY"}],"sC8V":[function(require,module,exports) {
},{}],"nfI5":[function(require,module,exports) {
"use strict";function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function e(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?t(Object(i),!0).forEach(function(t){n(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}var h=require("buffer"),l=h.Buffer,s=require("util"),u=s.inspect,o=u&&u.custom||"inspect";function c(t,e,n){l.prototype.copy.call(t,e,n)}module.exports=function(){function t(){a(this,t),this.head=null,this.tail=null,this.length=0}return r(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return l.alloc(0);for(var e=l.allocUnsafe(t>>>0),n=this.head,a=0;n;)c(n.data,e,a),a+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,a=e.data;for(t-=a.length;e=e.next;){var i=e.data,r=t>i.length?i.length:t;if(r===i.length?a+=i:a+=i.slice(0,t),0===(t-=r)){r===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(r));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(t){var e=l.allocUnsafe(t),n=this.head,a=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,r=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,r),0===(t-=r)){r===i.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(r));break}++a}return this.length-=a,e}},{key:o,value:function(t,n){return u(this,e({},n,{depth:0,customInspect:!1}))}}]),t}();
},{"buffer":"z1tx","util":"sC8V"}],"VglT":[function(require,module,exports) {
var process = require("process");
var t=require("process");function e(e,r){var d=this,l=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return l||o?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(s,this,e)):t.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!r&&e?d._writableState?d._writableState.errorEmitted?t.nextTick(i,d):(d._writableState.errorEmitted=!0,t.nextTick(a,d,e)):t.nextTick(a,d,e):r?(t.nextTick(i,d),r(e)):t.nextTick(i,d)}),this)}function a(t,e){s(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(t,e){t.emit("error",e)}function d(t,e){var a=t._readableState,i=t._writableState;a&&a.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}module.exports={destroy:e,undestroy:r,errorOrDestroy:d};
},{"process":"g5IB"}],"S4np":[function(require,module,exports) {
"use strict";function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}function n(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}var e={};function o(t,o,r){r||(r=Error);var c=function(t){function e(n,e,r){return t.call(this,function(t,n,e){return"string"==typeof o?o:o(t,n,e)}(n,e,r))||this}return n(e,t),e}(r);c.prototype.name=r.name,c.prototype.code=t,e[t]=c}function r(t,n){if(Array.isArray(t)){var e=t.length;return t=t.map(function(t){return String(t)}),e>2?"one of ".concat(n," ").concat(t.slice(0,e-1).join(", "),", or ")+t[e-1]:2===e?"one of ".concat(n," ").concat(t[0]," or ").concat(t[1]):"of ".concat(n," ").concat(t[0])}return"of ".concat(n," ").concat(String(t))}function c(t,n,e){return t.substr(!e||e<0?0:+e,n.length)===n}function a(t,n,e){return(void 0===e||e>t.length)&&(e=t.length),t.substring(e-n.length,e)===n}function u(t,n,e){return"number"!=typeof e&&(e=0),!(e+n.length>t.length)&&-1!==t.indexOf(n,e)}o("ERR_INVALID_OPT_VALUE",function(t,n){return'The value "'+n+'" is invalid for option "'+t+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(n,e,o){var i,E;if("string"==typeof e&&c(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be",a(n," argument"))E="The ".concat(n," ").concat(i," ").concat(r(e,"type"));else{var f=u(n,".")?"property":"argument";E='The "'.concat(n,'" ').concat(f," ").concat(i," ").concat(r(e,"type"))}return E+=". Received type ".concat(t(o))},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),module.exports.codes=e;
},{}],"FQAg":[function(require,module,exports) {
"use strict";var r=require("../../../errors").codes.ERR_INVALID_OPT_VALUE;function e(r,e,t){return null!=r.highWaterMark?r.highWaterMark:e?r[t]:null}function t(t,i,o,a){var n=e(i,a,o);if(null!=n){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new r(a?o:"highWaterMark",n);return Math.floor(n)}return t.objectMode?16:16384}module.exports={getHighWaterMark:t};
},{"../../../errors":"S4np"}],"hQaz":[function(require,module,exports) {
var global = arguments[3];
var r=arguments[3];function t(r,t){if(e("noDeprecation"))return r;var n=!1;return function(){if(!n){if(e("throwDeprecation"))throw new Error(t);e("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return r.apply(this,arguments)}}function e(t){try{if(!r.localStorage)return!1}catch(n){return!1}var e=r.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}module.exports=t;
},{}],"JX87":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var e,t=arguments[3],n=require("process");function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){G(t,e)}}module.exports=x,x.WritableState=m;var o={deprecate:require("util-deprecate")},s=require("./internal/streams/stream"),u=require("buffer").Buffer,f=t.Uint8Array||function(){};function a(e){return u.from(e)}function c(e){return u.isBuffer(e)||e instanceof f}var l,d=require("./internal/streams/destroy"),h=require("./internal/streams/state"),b=h.getHighWaterMark,p=require("../errors").codes,y=p.ERR_INVALID_ARG_TYPE,w=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,_=p.ERR_STREAM_CANNOT_PIPE,R=p.ERR_STREAM_DESTROYED,k=p.ERR_STREAM_NULL_VALUES,E=p.ERR_STREAM_WRITE_AFTER_END,S=p.ERR_UNKNOWN_ENCODING,q=d.errorOrDestroy;function v(){}function m(t,n,r){e=e||require("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=b(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function x(t){var n=this instanceof(e=e||require("./_stream_duplex"));if(!n&&!l.call(x,this))return new x(t);this._writableState=new m(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function M(e,t){var r=new E;q(e,r),n.nextTick(t,r)}function B(e,t,r,i){var o;return null===r?o=new k:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(q(e,o),n.nextTick(i,o),!1)}function T(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}function D(e,t,n,r,i,o){if(!n){var s=T(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var u=t.objectMode?1:r.length;t.length+=u;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else P(e,t,!1,u,r,i,o);return f}function P(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new R("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function j(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(U,e,t),e._writableState.errorEmitted=!0,q(e,i)):(o(i),e._writableState.errorEmitted=!0,q(e,i),U(e,t))}function C(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function O(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(C(r),t)j(e,r,i,t,o);else{var s=I(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||N(e,r),i?n.nextTick(A,e,r,s,o):A(e,r,s,o)}}function A(e,t,n,r){n||L(e,t),t.pendingcb--,r(),U(e,t)}function L(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function N(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var u=0,f=!0;n;)o[u]=n,n.isBuf||(f=!1),n=n.next,u+=1;o.allBuffers=f,P(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var a=n.chunk,c=n.encoding,l=n.callback;if(P(e,t,!1,t.objectMode?1:a.length,a,c,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function W(e,t){e._final(function(n){t.pendingcb--,n&&q(e,n),t.prefinished=!0,e.emit("prefinish"),U(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(W,e,t)))}function U(e,t){var n=I(t);if(n&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function H(e,t,r){t.ending=!0,U(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function G(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),Line truncated
},{"util-deprecate":"hQaz","./internal/streams/stream":"XrGN","buffer":"z1tx","./internal/streams/destroy":"VglT","./internal/streams/state":"FQAg","../errors":"S4np","inherits":"oxwV","./_stream_duplex":"KKw9","process":"g5IB"}],"KKw9":[function(require,module,exports) {
var process = require("process");
var e=require("process"),t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};module.exports=l;var r=require("./_stream_readable"),a=require("./_stream_writable");require("inherits")(l,r);for(var i=t(a.prototype),n=0;n<i.length;n++){var o=i[n];l.prototype[o]||(l.prototype[o]=a.prototype[o])}function l(e){if(!(this instanceof l))return new l(e);r.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||e.nextTick(b,this)}function b(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}});
},{"./_stream_readable":"KkzJ","./_stream_writable":"JX87","inherits":"oxwV","process":"g5IB"}],"ikue":[function(require,module,exports) {
"use strict";var t=require("safe-buffer").Buffer,e=t.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function i(i){var a=s(i);if("string"!=typeof a&&(t.isEncoding===e||!e(i)))throw new Error("Unknown encoding: "+i);return a||i}function a(e){var s;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=c,this.end=f,s=4;break;case"utf8":this.fillLast=l,s=4;break;case"base64":this.text=d,this.end=g,s=3;break;default:return this.write=N,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(s)}function r(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function n(t,e,s){var i=e.length-1;if(i<s)return 0;var a=r(e[i]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--i<s||-2===a?0:(a=r(e[i]))>=0?(a>0&&(t.lastNeed=a-2),a):--i<s||-2===a?0:(a=r(e[i]))>=0?(a>0&&(2===a?a=0:t.lastNeed=a-3),a):0}function h(t,e,s){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}function l(t){var e=this.lastTotal-this.lastNeed,s=h(this,t,e);return void 0!==s?s:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){var s=n(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=s;var i=t.length-(s-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function o(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function c(t,e){if((t.length-e)%2==0){var s=t.toString("utf16le",e);if(s){var i=s.charCodeAt(s.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,s)}return e}function d(t,e){var s=(t.length-e)%3;return 0===s?t.toString("base64",e):(this.lastNeed=3-s,this.lastTotal=3,1===s?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-s))}function g(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function N(t){return t.toString(this.encoding)}function v(t){return t&&t.length?this.write(t):""}exports.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,s;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<t.length?e?e+this.text(t,s):this.text(t,s):e||""},a.prototype.end=o,a.prototype.text=u,a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};
},{"safe-buffer":"gIYa"}],"tOhx":[function(require,module,exports) {
"use strict";var e=require("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.apply(this,n)}}}function t(){}function n(e){return e.setHeader&&"function"==typeof e.abort}function o(i,a,l){if("function"==typeof a)return o(i,null,a);a||(a={}),l=r(l||t);var s=a.readable||!1!==a.readable&&i.readable,c=a.writable||!1!==a.writable&&i.writable,u=function(){i.writable||d()},f=i._writableState&&i._writableState.finished,d=function(){c=!1,f=!0,s||l.call(i)},b=i._readableState&&i._readableState.endEmitted,v=function(){s=!1,b=!0,c||l.call(i)},m=function(e){l.call(i,e)},w=function(){var r;return s&&!b?(i._readableState&&i._readableState.ended||(r=new e),l.call(i,r)):c&&!f?(i._writableState&&i._writableState.ended||(r=new e),l.call(i,r)):void 0},_=function(){i.req.on("finish",d)};return n(i)?(i.on("complete",d),i.on("abort",w),i.req?_():i.on("request",_)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",d),!1!==a.error&&i.on("error",m),i.on("close",w),function(){i.removeListener("complete",d),i.removeListener("abort",w),i.removeListener("request",_),i.req&&i.req.removeListener("finish",d),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",d),i.removeListener("end",v),i.removeListener("error",m),i.removeListener("close",w)}}module.exports=o;
},{"../../../errors":"S4np"}],"UXpq":[function(require,module,exports) {
var process = require("process");
var e,n=require("process");function r(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var t=require("./end-of-stream"),l=Symbol("lastResolve"),u=Symbol("lastReject"),i=Symbol("error"),o=Symbol("ended"),a=Symbol("lastPromise"),s=Symbol("handlePromise"),c=Symbol("stream");function f(e,n){return{value:e,done:n}}function v(e){var n=e[l];if(null!==n){var r=e[c].read();null!==r&&(e[a]=null,e[l]=null,e[u]=null,n(f(r,!1)))}}function d(e){n.nextTick(v,e)}function b(e,n){return function(r,t){e.then(function(){n[o]?r(f(void 0,!0)):n[s](r,t)},t)}}var m=Object.getPrototypeOf(function(){}),h=Object.setPrototypeOf((r(e={get stream(){return this[c]},next:function(){var e=this,r=this[i];if(null!==r)return Promise.reject(r);if(this[o])return Promise.resolve(f(void 0,!0));if(this[c].destroyed)return new Promise(function(r,t){n.nextTick(function(){e[i]?t(e[i]):r(f(void 0,!0))})});var t,l=this[a];if(l)t=new Promise(b(l,this));else{var u=this[c].read();if(null!==u)return Promise.resolve(f(u,!1));t=new Promise(this[s])}return this[a]=t,t}},Symbol.asyncIterator,function(){return this}),r(e,"return",function(){var e=this;return new Promise(function(n,r){e[c].destroy(null,function(e){e?r(e):n(f(void 0,!0))})})}),e),m),y=function(e){var n,v=Object.create(h,(r(n={},c,{value:e,writable:!0}),r(n,l,{value:null,writable:!0}),r(n,u,{value:null,writable:!0}),r(n,i,{value:null,writable:!0}),r(n,o,{value:e._readableState.endEmitted,writable:!0}),r(n,s,{value:function(e,n){var r=v[c].read();r?(v[a]=null,v[l]=null,v[u]=null,e(f(r,!1))):(v[l]=e,v[u]=n)},writable:!0}),n));return v[a]=null,t(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var n=v[u];return null!==n&&(v[a]=null,v[l]=null,v[u]=null,n(e)),void(v[i]=e)}var r=v[l];null!==r&&(v[a]=null,v[l]=null,v[u]=null,r(f(void 0,!0))),v[o]=!0}),e.on("readable",d.bind(null,v)),v};module.exports=y;
},{"./end-of-stream":"tOhx","process":"g5IB"}],"Ogns":[function(require,module,exports) {
module.exports=function(){throw new Error("Readable.from is not available in the browser")};
},{}],"KkzJ":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var e,t=arguments[3],n=require("process");module.exports=j,j.ReadableState=L;var r=require("events").EventEmitter,i=function(e,t){return e.listeners(t).length},a=require("./internal/streams/stream"),d=require("buffer").Buffer,o=t.Uint8Array||function(){};function s(e){return d.from(e)}function l(e){return d.isBuffer(e)||e instanceof o}var u,h=require("util");u=h&&h.debuglog?h.debuglog("stream"):function(){};var p,f,c,b=require("./internal/streams/buffer_list"),g=require("./internal/streams/destroy"),m=require("./internal/streams/state"),y=m.getHighWaterMark,_=require("../errors").codes,v=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,R=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;require("inherits")(j,a);var M=g.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function L(t,n,r){e=e||require("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",r),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=require("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function j(t){if(e=e||require("./_stream_duplex"),!(this instanceof j))return new j(t);var n=this instanceof e;this._readableState=new L(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function D(e,t,n,r,i){u("readableAddChunk",t);var a,o=e._readableState;if(null===t)o.reading=!1,A(e,o);else if(i||(a=T(o,t)),a)M(e,a);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=s(t)),r)o.endEmitted?M(e,new R):C(e,o,t,!0);else if(o.ended)M(e,new w);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?C(e,o,t,!1):U(e,o)):C(e,o,t,!1)}else r||(o.reading=!1,U(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),U(e,t)}function T(e,t){var n;return l(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new v("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),j.prototype.destroy=g.destroy,j.prototype._undestroy=g.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=d.from(e,t),t=""),n=!0),D(this,e,t,!1,n)},j.prototype.unshift=function(e){return D(this,e,null,!0,!1)},j.prototype.isPaused=function(){return!1===this._readableState.flowing},j.prototype.setEncoding=function(e){p||(p=require("string_decoder/").StringDecoder);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var q=1073741824;function W(e){return e>=q?e=q:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=W(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e,t){if(u("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}function O(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(P,e))}function P(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&Line truncated
},{"events":"wIHY","./internal/streams/stream":"XrGN","buffer":"z1tx","util":"sC8V","./internal/streams/buffer_list":"nfI5","./internal/streams/destroy":"VglT","./internal/streams/state":"FQAg","../errors":"S4np","inherits":"oxwV","./_stream_duplex":"KKw9","string_decoder/":"ikue","./internal/streams/async_iterator":"UXpq","./internal/streams/from":"Ogns","process":"g5IB"}],"M1RH":[function(require,module,exports) {
"use strict";module.exports=o;var t=require("../errors").codes,r=t.ERR_METHOD_NOT_IMPLEMENTED,e=t.ERR_MULTIPLE_CALLBACK,n=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=t.ERR_TRANSFORM_WITH_LENGTH_0,a=require("./_stream_duplex");function s(t,r){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new e);n.writechunk=null,n.writecb=null,null!=r&&this.push(r),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);a.call(this,t),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(r,e){f(t,r,e)})}function f(t,r,e){if(r)return t.emit("error",r);if(null!=e&&t.push(e),t._writableState.length)throw new i;if(t._transformState.transforming)throw new n;return t.push(null)}require("inherits")(o,a),o.prototype.push=function(t,r){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,r)},o.prototype._transform=function(t,e,n){n(new r("_transform()"))},o.prototype._write=function(t,r,e){var n=this._transformState;if(n.writecb=e,n.writechunk=t,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var r=this._transformState;null===r.writechunk||r.transforming?r.needTransform=!0:(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform))},o.prototype._destroy=function(t,r){a.prototype._destroy.call(this,t,function(t){r(t)})};
},{"../errors":"S4np","./_stream_duplex":"KKw9","inherits":"oxwV"}],"WkHr":[function(require,module,exports) {
"use strict";module.exports=t;var r=require("./_stream_transform");function t(e){if(!(this instanceof t))return new t(e);r.call(this,e)}require("inherits")(t,r),t.prototype._transform=function(r,t,e){e(null,r)};
},{"./_stream_transform":"M1RH","inherits":"oxwV"}],"t9fV":[function(require,module,exports) {
"use strict";var r;function n(r){var n=!1;return function(){n||(n=!0,r.apply(void 0,arguments))}}var t=require("../../../errors").codes,e=t.ERR_MISSING_ARGS,o=t.ERR_STREAM_DESTROYED;function i(r){if(r)throw r}function u(r){return r.setHeader&&"function"==typeof r.abort}function f(t,e,i,f){f=n(f);var a=!1;t.on("close",function(){a=!0}),void 0===r&&(r=require("./end-of-stream")),r(t,{readable:e,writable:i},function(r){if(r)return f(r);a=!0,f()});var c=!1;return function(r){if(!a&&!c)return c=!0,u(t)?t.abort():"function"==typeof t.destroy?t.destroy():void f(r||new o("pipe"))}}function a(r){r()}function c(r,n){return r.pipe(n)}function p(r){return r.length?"function"!=typeof r[r.length-1]?i:r.pop():i}function s(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];var o,i=p(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new e("streams");var u=n.map(function(r,t){var e=t<n.length-1;return f(r,e,t>0,function(r){o||(o=r),r&&u.forEach(a),e||(u.forEach(a),i(o))})});return n.reduce(c)}module.exports=s;
},{"../../../errors":"S4np","./end-of-stream":"tOhx"}],"tUuk":[function(require,module,exports) {
exports=module.exports=require("./lib/_stream_readable.js"),exports.Stream=exports,exports.Readable=exports,exports.Writable=require("./lib/_stream_writable.js"),exports.Duplex=require("./lib/_stream_duplex.js"),exports.Transform=require("./lib/_stream_transform.js"),exports.PassThrough=require("./lib/_stream_passthrough.js"),exports.finished=require("./lib/internal/streams/end-of-stream.js"),exports.pipeline=require("./lib/internal/streams/pipeline.js");
},{"./lib/_stream_readable.js":"KkzJ","./lib/_stream_writable.js":"JX87","./lib/_stream_duplex.js":"KKw9","./lib/_stream_transform.js":"M1RH","./lib/_stream_passthrough.js":"WkHr","./lib/internal/streams/end-of-stream.js":"tOhx","./lib/internal/streams/pipeline.js":"t9fV"}],"AZ76":[function(require,module,exports) {
"use strict";var t=require("safe-buffer").Buffer,e=require("readable-stream").Transform,i=require("inherits");function r(e,i){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError(i+" must be a string or a buffer")}function o(i){e.call(this),this._block=t.allocUnsafe(i),this._blockSize=i,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(o,e),o.prototype._transform=function(t,e,i){var r=null;try{this.update(t,e)}catch(o){r=o}i(r)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(i){e=i}t(e)},o.prototype.update=function(e,i){if(r(e,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(e)||(e=t.from(e,i));for(var o=this._block,s=0;this._blockOffset+e.length-s>=this._blockSize;){for(var f=this._blockOffset;f<this._blockSize;)o[f++]=e[s++];this._update(),this._blockOffset=0}for(;s<e.length;)o[this._blockOffset++]=e[s++];for(var n=0,h=8*e.length;h>0;++n)this._length[n]+=h,(h=this._length[n]/4294967296|0)>0&&(this._length[n]-=4294967296*h);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},module.exports=o;
},{"safe-buffer":"gIYa","readable-stream":"tUuk","inherits":"oxwV"}],"CYub":[function(require,module,exports) {
"use strict";var t=require("inherits"),i=require("hash-base"),s=require("safe-buffer").Buffer,e=new Array(16);function h(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function r(t,i){return t<<i|t>>>32-i}function _(t,i,s,e,h,_,n){return r(t+(i&s|~i&e)+h+_|0,n)+i|0}function n(t,i,s,e,h,_,n){return r(t+(i&e|s&~e)+h+_|0,n)+i|0}function c(t,i,s,e,h,_,n){return r(t+(i^s^e)+h+_|0,n)+i|0}function f(t,i,s,e,h,_,n){return r(t+(s^(i|~e))+h+_|0,n)+i|0}t(h,i),h.prototype._update=function(){for(var t=e,i=0;i<16;++i)t[i]=this._block.readInt32LE(4*i);var s=this._a,h=this._b,r=this._c,o=this._d;s=_(s,h,r,o,t[0],3614090360,7),o=_(o,s,h,r,t[1],3905402710,12),r=_(r,o,s,h,t[2],606105819,17),h=_(h,r,o,s,t[3],3250441966,22),s=_(s,h,r,o,t[4],4118548399,7),o=_(o,s,h,r,t[5],1200080426,12),r=_(r,o,s,h,t[6],2821735955,17),h=_(h,r,o,s,t[7],4249261313,22),s=_(s,h,r,o,t[8],1770035416,7),o=_(o,s,h,r,t[9],2336552879,12),r=_(r,o,s,h,t[10],4294925233,17),h=_(h,r,o,s,t[11],2304563134,22),s=_(s,h,r,o,t[12],1804603682,7),o=_(o,s,h,r,t[13],4254626195,12),r=_(r,o,s,h,t[14],2792965006,17),s=n(s,h=_(h,r,o,s,t[15],1236535329,22),r,o,t[1],4129170786,5),o=n(o,s,h,r,t[6],3225465664,9),r=n(r,o,s,h,t[11],643717713,14),h=n(h,r,o,s,t[0],3921069994,20),s=n(s,h,r,o,t[5],3593408605,5),o=n(o,s,h,r,t[10],38016083,9),r=n(r,o,s,h,t[15],3634488961,14),h=n(h,r,o,s,t[4],3889429448,20),s=n(s,h,r,o,t[9],568446438,5),o=n(o,s,h,r,t[14],3275163606,9),r=n(r,o,s,h,t[3],4107603335,14),h=n(h,r,o,s,t[8],1163531501,20),s=n(s,h,r,o,t[13],2850285829,5),o=n(o,s,h,r,t[2],4243563512,9),r=n(r,o,s,h,t[7],1735328473,14),s=c(s,h=n(h,r,o,s,t[12],2368359562,20),r,o,t[5],4294588738,4),o=c(o,s,h,r,t[8],2272392833,11),r=c(r,o,s,h,t[11],1839030562,16),h=c(h,r,o,s,t[14],4259657740,23),s=c(s,h,r,o,t[1],2763975236,4),o=c(o,s,h,r,t[4],1272893353,11),r=c(r,o,s,h,t[7],4139469664,16),h=c(h,r,o,s,t[10],3200236656,23),s=c(s,h,r,o,t[13],681279174,4),o=c(o,s,h,r,t[0],3936430074,11),r=c(r,o,s,h,t[3],3572445317,16),h=c(h,r,o,s,t[6],76029189,23),s=c(s,h,r,o,t[9],3654602809,4),o=c(o,s,h,r,t[12],3873151461,11),r=c(r,o,s,h,t[15],530742520,16),s=f(s,h=c(h,r,o,s,t[2],3299628645,23),r,o,t[0],4096336452,6),o=f(o,s,h,r,t[7],1126891415,10),r=f(r,o,s,h,t[14],2878612391,15),h=f(h,r,o,s,t[5],4237533241,21),s=f(s,h,r,o,t[12],1700485571,6),o=f(o,s,h,r,t[3],2399980690,10),r=f(r,o,s,h,t[10],4293915773,15),h=f(h,r,o,s,t[1],2240044497,21),s=f(s,h,r,o,t[8],1873313359,6),o=f(o,s,h,r,t[15],4264355552,10),r=f(r,o,s,h,t[6],2734768916,15),h=f(h,r,o,s,t[13],1309151649,21),s=f(s,h,r,o,t[4],4149444226,6),o=f(o,s,h,r,t[11],3174756917,10),r=f(r,o,s,h,t[2],718787259,15),h=f(h,r,o,s,t[9],3951481745,21),this._a=this._a+s|0,this._b=this._b+h|0,this._c=this._c+r|0,this._d=this._d+o|0},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=s.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},module.exports=h;
},{"inherits":"oxwV","hash-base":"AZ76","safe-buffer":"gIYa"}],"DubT":[function(require,module,exports) {
"use strict";var t=require("buffer").Buffer,i=require("inherits"),s=require("hash-base"),h=new Array(16),e=[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],_=[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],r=[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],n=[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],c=[0,1518500249,1859775393,2400959708,2840853838],o=[1352829926,1548603684,1836072691,2053994217,0];function f(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function u(t,i){return t<<i|t>>>32-i}function l(t,i,s,h,e,_,r,n){return u(t+(i^s^h)+_+r|0,n)+e|0}function a(t,i,s,h,e,_,r,n){return u(t+(i&s|~i&h)+_+r|0,n)+e|0}function b(t,i,s,h,e,_,r,n){return u(t+((i|~s)^h)+_+r|0,n)+e|0}function d(t,i,s,h,e,_,r,n){return u(t+(i&h|s&~h)+_+r|0,n)+e|0}function k(t,i,s,h,e,_,r,n){return u(t+(i^(s|~h))+_+r|0,n)+e|0}i(f,s),f.prototype._update=function(){for(var t=h,i=0;i<16;++i)t[i]=this._block.readInt32LE(4*i);for(var s=0|this._a,f=0|this._b,w=0|this._c,p=0|this._d,E=0|this._e,I=0|this._a,L=0|this._b,v=0|this._c,O=0|this._d,g=0|this._e,q=0;q<80;q+=1){var y,U;q<16?(y=l(s,f,w,p,E,t[e[q]],c[0],r[q]),U=k(I,L,v,O,g,t[_[q]],o[0],n[q])):q<32?(y=a(s,f,w,p,E,t[e[q]],c[1],r[q]),U=d(I,L,v,O,g,t[_[q]],o[1],n[q])):q<48?(y=b(s,f,w,p,E,t[e[q]],c[2],r[q]),U=b(I,L,v,O,g,t[_[q]],o[2],n[q])):q<64?(y=d(s,f,w,p,E,t[e[q]],c[3],r[q]),U=a(I,L,v,O,g,t[_[q]],o[3],n[q])):(y=k(s,f,w,p,E,t[e[q]],c[4],r[q]),U=l(I,L,v,O,g,t[_[q]],o[4],n[q])),s=E,E=p,p=u(w,10),w=f,f=y,I=g,g=O,O=u(v,10),v=L,L=U}var m=this._b+w+O|0;this._b=this._c+p+g|0,this._c=this._d+E+I|0,this._d=this._e+s+L|0,this._e=this._a+f+v|0,this._a=m},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var i=t.alloc?t.alloc(20):new t(20);return i.writeInt32LE(this._a,0),i.writeInt32LE(this._b,4),i.writeInt32LE(this._c,8),i.writeInt32LE(this._d,12),i.writeInt32LE(this._e,16),i},module.exports=f;
},{"buffer":"z1tx","inherits":"oxwV","hash-base":"AZ76"}],"yzxE":[function(require,module,exports) {
var t=require("safe-buffer").Buffer;function i(i,e){this._block=t.alloc(i),this._finalSize=e,this._blockSize=i,this._len=0}i.prototype.update=function(i,e){"string"==typeof i&&(e=e||"utf8",i=t.from(i,e));for(var s=this._block,o=this._blockSize,l=i.length,h=this._len,r=0;r<l;){for(var _=h%o,n=Math.min(l-r,o-_),c=0;c<n;c++)s[_+c]=i[r+c];r+=n,(h+=n)%o==0&&this._update(s)}return this._len+=l,this},i.prototype.digest=function(t){var i=this._len%this._blockSize;this._block[i]=128,this._block.fill(0,i+1),i>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=8*this._len;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var s=(4294967295&e)>>>0,o=(e-s)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(s,this._blockSize-4)}this._update(this._block);var l=this._hash();return t?l.toString(t):l},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},module.exports=i;
},{"safe-buffer":"gIYa"}],"pTHz":[function(require,module,exports) {
var t=require("inherits"),i=require("./hash"),r=require("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);function e(){this.init(),this._w=h,i.call(this,64,56)}function n(t){return t<<5|t>>>27}function _(t){return t<<30|t>>>2}function a(t,i,r,s){return 0===t?i&r|~i&s:2===t?i&r|i&s|r&s:i^r^s}t(e,i),e.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},e.prototype._update=function(t){for(var i=this._w,r=0|this._a,h=0|this._b,e=0|this._c,o=0|this._d,u=0|this._e,f=0;f<16;++f)i[f]=t.readInt32BE(4*f);for(;f<80;++f)i[f]=i[f-3]^i[f-8]^i[f-14]^i[f-16];for(var c=0;c<80;++c){var d=~~(c/20),p=n(r)+a(d,h,e,o)+u+i[c]+s[d]|0;u=o,o=e,e=_(h),h=r,r=p}this._a=r+this._a|0,this._b=h+this._b|0,this._c=e+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0},e.prototype._hash=function(){var t=r.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},module.exports=e;
},{"inherits":"oxwV","./hash":"yzxE","safe-buffer":"gIYa"}],"iGWE":[function(require,module,exports) {
var t=require("inherits"),i=require("./hash"),r=require("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],e=new Array(80);function h(){this.init(),this._w=e,i.call(this,64,56)}function n(t){return t<<1|t>>>31}function _(t){return t<<5|t>>>27}function u(t){return t<<30|t>>>2}function o(t,i,r,s){return 0===t?i&r|~i&s:2===t?i&r|i&s|r&s:i^r^s}t(h,i),h.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},h.prototype._update=function(t){for(var i=this._w,r=0|this._a,e=0|this._b,h=0|this._c,a=0|this._d,f=0|this._e,c=0;c<16;++c)i[c]=t.readInt32BE(4*c);for(;c<80;++c)i[c]=n(i[c-3]^i[c-8]^i[c-14]^i[c-16]);for(var d=0;d<80;++d){var p=~~(d/20),w=_(r)+o(p,e,h,a)+f+i[d]+s[p]|0;f=a,a=h,h=u(e),e=r,r=w}this._a=r+this._a|0,this._b=e+this._b|0,this._c=h+this._c|0,this._d=a+this._d|0,this._e=f+this._e|0},h.prototype._hash=function(){var t=r.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},module.exports=h;
},{"inherits":"oxwV","./hash":"yzxE","safe-buffer":"gIYa"}],"fGKM":[function(require,module,exports) {
var t=require("inherits"),i=require("./hash"),h=require("safe-buffer").Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],r=new Array(64);function _(){this.init(),this._w=r,i.call(this,64,56)}function n(t,i,h){return h^t&(i^h)}function e(t,i,h){return t&i|h&(t|i)}function u(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function f(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function o(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function a(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}t(_,i),_.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},_.prototype._update=function(t){for(var i=this._w,h=0|this._a,r=0|this._b,_=0|this._c,c=0|this._d,w=0|this._e,B=0|this._f,E=0|this._g,I=0|this._h,d=0;d<16;++d)i[d]=t.readInt32BE(4*d);for(;d<64;++d)i[d]=a(i[d-2])+i[d-7]+o(i[d-15])+i[d-16]|0;for(var p=0;p<64;++p){var b=I+f(w)+n(w,B,E)+s[p]+i[p]|0,g=u(h)+e(h,r,_)|0;I=E,E=B,B=w,w=c+b|0,c=_,_=r,r=h,h=b+g|0}this._a=h+this._a|0,this._b=r+this._b|0,this._c=_+this._c|0,this._d=c+this._d|0,this._e=w+this._e|0,this._f=B+this._f|0,this._g=E+this._g|0,this._h=I+this._h|0},_.prototype._hash=function(){var t=h.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},module.exports=_;
},{"inherits":"oxwV","./hash":"yzxE","safe-buffer":"gIYa"}],"LPeK":[function(require,module,exports) {
var t=require("inherits"),i=require("./sha256"),e=require("./hash"),r=require("safe-buffer").Buffer,h=new Array(64);function s(){this.init(),this._w=h,e.call(this,64,56)}t(s,i),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var t=r.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},module.exports=s;
},{"inherits":"oxwV","./sha256":"fGKM","./hash":"yzxE","safe-buffer":"gIYa"}],"Ncel":[function(require,module,exports) {
var h=require("inherits"),t=require("./hash"),i=require("safe-buffer").Buffer,s=[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],_=new Array(160);function l(){this.init(),this._w=_,t.call(this,128,112)}function r(h,t,i){return i^h&(t^i)}function n(h,t,i){return h&t|i&(h|t)}function e(h,t){return(h>>>28|t<<4)^(t>>>2|h<<30)^(t>>>7|h<<25)}function f(h,t){return(h>>>14|t<<18)^(h>>>18|t<<14)^(t>>>9|h<<23)}function u(h,t){return(h>>>1|t<<31)^(h>>>8|t<<24)^h>>>7}function a(h,t){return(h>>>1|t<<31)^(h>>>8|t<<24)^(h>>>7|t<<25)}function c(h,t){return(h>>>19|t<<13)^(t>>>29|h<<3)^h>>>6}function o(h,t){return(h>>>19|t<<13)^(t>>>29|h<<3)^(h>>>6|t<<26)}function d(h,t){return h>>>0<t>>>0?1:0}h(l,t),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(h){for(var t=this._w,i=0|this._ah,_=0|this._bh,l=0|this._ch,b=0|this._dh,g=0|this._eh,p=0|this._fh,v=0|this._gh,w=0|this._hh,B=0|this._al,y=0|this._bl,E=0|this._cl,I=0|this._dl,q=0|this._el,m=0|this._fl,x=0|this._gl,A=0|this._hl,U=0;U<32;U+=2)t[U]=h.readInt32BE(4*U),t[U+1]=h.readInt32BE(4*U+4);for(;U<160;U+=2){var j=t[U-30],k=t[U-30+1],z=u(j,k),C=a(k,j),D=c(j=t[U-4],k=t[U-4+1]),F=o(k,j),G=t[U-14],H=t[U-14+1],J=t[U-32],K=t[U-32+1],L=C+H|0,M=z+G+d(L,C)|0;M=(M=M+D+d(L=L+F|0,F)|0)+J+d(L=L+K|0,K)|0,t[U]=M,t[U+1]=L}for(var N=0;N<160;N+=2){M=t[N],L=t[N+1];var O=n(i,_,l),P=n(B,y,E),Q=e(i,B),R=e(B,i),S=f(g,q),T=f(q,g),V=s[N],W=s[N+1],X=r(g,p,v),Y=r(q,m,x),Z=A+T|0,$=w+S+d(Z,A)|0;$=($=($=$+X+d(Z=Z+Y|0,Y)|0)+V+d(Z=Z+W|0,W)|0)+M+d(Z=Z+L|0,L)|0;var hh=R+P|0,th=Q+O+d(hh,R)|0;w=v,A=x,v=p,x=m,p=g,m=q,g=b+$+d(q=I+Z|0,I)|0,b=l,I=E,l=_,E=y,_=i,y=B,i=$+th+d(B=Z+hh|0,Z)|0}this._al=this._al+B|0,this._bl=this._bl+y|0,this._cl=this._cl+E|0,this._dl=this._dl+I|0,this._el=this._el+q|0,this._fl=this._fl+m|0,this._gl=this._gl+x|0,this._hl=this._hl+A|0,this._ah=this._ah+i+d(this._al,B)|0,this._bh=this._bh+_+d(this._bl,y)|0,this._ch=this._ch+l+d(this._cl,E)|0,this._dh=this._dh+b+d(this._dl,I)|0,this._eh=this._eh+g+d(this._el,q)|0,this._fh=this._fh+p+d(this._fl,m)|0,this._gh=this._gh+v+d(this._gl,x)|0,this._hh=this._hh+w+d(this._hl,A)|0},l.prototype._hash=function(){var h=i.allocUnsafe(64);function t(t,i,s){h.writeInt32BE(t,s),h.writeInt32BE(i,s+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),h},module.exports=l;
},{"inherits":"oxwV","./hash":"yzxE","safe-buffer":"gIYa"}],"alxw":[function(require,module,exports) {
var h=require("inherits"),t=require("./sha512"),i=require("./hash"),s=require("safe-buffer").Buffer,_=new Array(160);function e(){this.init(),this._w=_,i.call(this,128,112)}h(e,t),e.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},e.prototype._hash=function(){var h=s.allocUnsafe(48);function t(t,i,s){h.writeInt32BE(t,s),h.writeInt32BE(i,s+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),h},module.exports=e;
},{"inherits":"oxwV","./sha512":"Ncel","./hash":"yzxE","safe-buffer":"gIYa"}],"IaNs":[function(require,module,exports) {
var e=module.exports=function(r){r=r.toLowerCase();var s=e[r];if(!s)throw new Error(r+" is not supported (we accept pull requests)");return new s};e.sha=require("./sha"),e.sha1=require("./sha1"),e.sha224=require("./sha224"),e.sha256=require("./sha256"),e.sha384=require("./sha384"),e.sha512=require("./sha512");
},{"./sha":"pTHz","./sha1":"iGWE","./sha224":"LPeK","./sha256":"fGKM","./sha384":"alxw","./sha512":"Ncel"}],"iFTO":[function(require,module,exports) {
var process = require("process");
var n=require("process");function e(e,r,t,c){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,l,u=arguments.length;switch(u){case 0:case 1:return n.nextTick(e);case 2:return n.nextTick(function(){e.call(null,r)});case 3:return n.nextTick(function(){e.call(null,r,t)});case 4:return n.nextTick(function(){e.call(null,r,t,c)});default:for(i=new Array(u-1),l=0;l<i.length;)i[l++]=arguments[l];return n.nextTick(function(){e.apply(null,i)})}}void 0===n||!n.version||0===n.version.indexOf("v0.")||0===n.version.indexOf("v1.")&&0!==n.version.indexOf("v1.8.")?module.exports={nextTick:e}:module.exports=n;
},{"process":"g5IB"}],"nFKF":[function(require,module,exports) {
var r=require("buffer"),e=r.Buffer;function n(r,e){for(var n in r)e[n]=r[n]}function o(r,n,o){return e(r,n,o)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?module.exports=r:(n(r,exports),exports.Buffer=o),n(e,o),o.from=function(r,n,o){if("number"==typeof r)throw new TypeError("Argument must not be a number");return e(r,n,o)},o.alloc=function(r,n,o){if("number"!=typeof r)throw new TypeError("Argument must be a number");var f=e(r);return void 0!==n?"string"==typeof o?f.fill(n,o):f.fill(n):f.fill(0),f},o.allocUnsafe=function(r){if("number"!=typeof r)throw new TypeError("Argument must be a number");return e(r)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)};
},{"buffer":"z1tx"}],"kj8s":[function(require,module,exports) {
function r(r){return Array.isArray?Array.isArray(r):"[object Array]"===b(r)}function t(r){return"boolean"==typeof r}function e(r){return null===r}function n(r){return null==r}function o(r){return"number"==typeof r}function i(r){return"string"==typeof r}function u(r){return"symbol"==typeof r}function s(r){return void 0===r}function f(r){return"[object RegExp]"===b(r)}function p(r){return"object"==typeof r&&null!==r}function c(r){return"[object Date]"===b(r)}function l(r){return"[object Error]"===b(r)||r instanceof Error}function y(r){return"function"==typeof r}function x(r){return null===r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||"symbol"==typeof r||void 0===r}function b(r){return Object.prototype.toString.call(r)}exports.isArray=r,exports.isBoolean=t,exports.isNull=e,exports.isNullOrUndefined=n,exports.isNumber=o,exports.isString=i,exports.isSymbol=u,exports.isUndefined=s,exports.isRegExp=f,exports.isObject=p,exports.isDate=c,exports.isError=l,exports.isFunction=y,exports.isPrimitive=x,exports.isBuffer=require("buffer").Buffer.isBuffer;
},{"buffer":"z1tx"}],"m362":[function(require,module,exports) {
"use strict";function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var n=require("safe-buffer").Buffer,e=require("util");function i(t,n,e){t.copy(n,e)}module.exports=function(){function e(){t(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(t){var n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(t){var n={data:t,next:this.head};0===this.length&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(t){if(0===this.length)return"";for(var n=this.head,e=""+n.data;n=n.next;)e+=t+n.data;return e},e.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e=n.allocUnsafe(t>>>0),h=this.head,a=0;h;)i(h.data,e,a),a+=h.data.length,h=h.next;return e},e}(),e&&e.inspect&&e.inspect.custom&&(module.exports.prototype[e.inspect.custom]=function(){var t=e.inspect({length:this.length});return this.constructor.name+" "+t});
},{"safe-buffer":"nFKF","util":"sC8V"}],"Umu5":[function(require,module,exports) {
"use strict";var t=require("process-nextick-args");function e(e,a){var r=this,s=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return s||d?(a?a(e):!e||this._writableState&&this._writableState.errorEmitted||t.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!a&&e?(t.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):a&&a(e)}),this)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function i(t,e){t.emit("error",e)}module.exports={destroy:e,undestroy:a};
},{"process-nextick-args":"iFTO"}],"pX9p":[function(require,module,exports) {
var process = require("process");
var global = arguments[3];
var e=require("process"),t=arguments[3],n=require("process-nextick-args");function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){W(t,e)}}module.exports=g;var o,s=n.nextTick;g.WritableState=y;var f=Object.create(require("core-util-is"));f.inherits=require("inherits");var u={deprecate:require("util-deprecate")},a=require("./internal/streams/stream"),c=require("safe-buffer").Buffer,l=t.Uint8Array||function(){};function d(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof l}var b,p=require("./internal/streams/destroy");function w(){}function y(e,t){o=o||require("./_stream_duplex"),e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,s=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(s||0===s)?s:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){S(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function g(e){if(o=o||require("./_stream_duplex"),!(b.call(g,this)||this instanceof o))return new g(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function k(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}function v(e,t,r,i){var o=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),n.nextTick(i,s),o=!1),o}function q(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,n)),t}function _(e,t,n,r,i,o){if(!n){var s=q(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var f=t.objectMode?1:r.length;t.length+=f;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else m(e,t,!1,f,r,i,o);return u}function m(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function R(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),T(e,t))}function x(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function S(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(x(n),t)R(e,n,r,t,i);else{var o=E(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||B(e,n),r?s(M,e,n,o,i):M(e,n,o,i)}}function M(e,t,n,r){n||j(e,t),t.pendingcb--,r(),T(e,t)}function j(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var f=0,u=!0;n;)o[f]=n,n.isBuf||(u=!1),n=n.next,f+=1;o.allBuffers=u,m(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var a=n.chunk,c=n.encoding,l=n.callback;if(m(e,t,!1,t.objectMode?1:a.length,a,c,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),T(e,t)})}function P(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function T(e,t){var n=E(t);return n&&(P(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}function F(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function W(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}f.inherits(g,a),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},functioLine truncated
},{"process-nextick-args":"iFTO","core-util-is":"kj8s","inherits":"oxwV","util-deprecate":"hQaz","./internal/streams/stream":"XrGN","safe-buffer":"nFKF","./internal/streams/destroy":"Umu5","./_stream_duplex":"gYn1","process":"g5IB"}],"gYn1":[function(require,module,exports) {
"use strict";var e=require("process-nextick-args"),t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};module.exports=l;var r=Object.create(require("core-util-is"));r.inherits=require("inherits");var i=require("./_stream_readable"),a=require("./_stream_writable");r.inherits(l,i);for(var o=t(a.prototype),s=0;s<o.length;s++){var n=o[s];l.prototype[n]||(l.prototype[n]=a.prototype[n])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||e.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(t,r){this.push(null),this.end(),e.nextTick(r,t)};
},{"process-nextick-args":"iFTO","core-util-is":"kj8s","inherits":"oxwV","./_stream_readable":"KTao","./_stream_writable":"pX9p"}],"jreP":[function(require,module,exports) {
"use strict";var t=require("safe-buffer").Buffer,e=t.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function i(i){var a=s(i);if("string"!=typeof a&&(t.isEncoding===e||!e(i)))throw new Error("Unknown encoding: "+i);return a||i}function a(e){var s;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=c,this.end=f,s=4;break;case"utf8":this.fillLast=l,s=4;break;case"base64":this.text=d,this.end=g,s=3;break;default:return this.write=N,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(s)}function r(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function n(t,e,s){var i=e.length-1;if(i<s)return 0;var a=r(e[i]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--i<s||-2===a?0:(a=r(e[i]))>=0?(a>0&&(t.lastNeed=a-2),a):--i<s||-2===a?0:(a=r(e[i]))>=0?(a>0&&(2===a?a=0:t.lastNeed=a-3),a):0}function h(t,e,s){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}function l(t){var e=this.lastTotal-this.lastNeed,s=h(this,t,e);return void 0!==s?s:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){var s=n(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=s;var i=t.length-(s-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function o(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function c(t,e){if((t.length-e)%2==0){var s=t.toString("utf16le",e);if(s){var i=s.charCodeAt(s.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,s)}return e}function d(t,e){var s=(t.length-e)%3;return 0===s?t.toString("base64",e):(this.lastNeed=3-s,this.lastTotal=3,1===s?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-s))}function g(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function N(t){return t.toString(this.encoding)}function v(t){return t&&t.length?this.write(t):""}exports.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return"";var e,s;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<t.length?e?e+this.text(t,s):this.text(t,s):e||""},a.prototype.end=o,a.prototype.text=u,a.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};
},{"safe-buffer":"nFKF"}],"KTao":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var e=arguments[3],t=require("process"),n=require("process-nextick-args");module.exports=_;var r,i=require("isarray");_.ReadableState=w;var a=require("events").EventEmitter,d=function(e,t){return e.listeners(t).length},o=require("./internal/streams/stream"),s=require("safe-buffer").Buffer,u=e.Uint8Array||function(){};function l(e){return s.from(e)}function h(e){return s.isBuffer(e)||e instanceof u}var p=Object.create(require("core-util-is"));p.inherits=require("inherits");var f=require("util"),c=void 0;c=f&&f.debuglog?f.debuglog("stream"):function(){};var g,b=require("./internal/streams/BufferList"),m=require("./internal/streams/destroy");p.inherits(_,o);var v=["error","close","destroy","pause","resume"];function y(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?i(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function w(e,t){e=e||{};var n=t instanceof(r=r||require("./_stream_duplex"));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,d=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:d,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||(g=require("string_decoder/").StringDecoder),this.decoder=new g(e.encoding),this.encoding=e.encoding)}function _(e){if(r=r||require("./_stream_duplex"),!(this instanceof _))return new _(e);this._readableState=new w(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function M(e,t,n,r,i){var a,d=e._readableState;null===t?(d.reading=!1,x(e,d)):(i||(a=k(d,t)),a?e.emit("error",a):d.objectMode||t&&t.length>0?("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=l(t)),r?d.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,d,t,!0):d.ended?e.emit("error",new Error("stream.push() after EOF")):(d.reading=!1,d.decoder&&!n?(t=d.decoder.write(t),d.objectMode||0!==t.length?S(e,d,t,!1):C(e,d)):S(e,d,t,!1))):r||(d.reading=!1));return j(d)}function S(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&q(e)),C(e,t)}function k(e,t){var n;return h(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function j(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),_.prototype.destroy=m.destroy,_.prototype._undestroy=m.undestroy,_.prototype._destroy=function(e,t){this.push(null),t(e)},_.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),M(this,e,t,!1,n)},_.prototype.unshift=function(e){return M(this,e,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(e){return g||(g=require("string_decoder/").StringDecoder),this._readableState.decoder=new g(e),this._readableState.encoding=e,this};var R=8388608;function E(e){return e>=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=E(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,q(e)}}function q(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(W,e):W(e))}function W(e){c("emit readable"),e.emit("readable"),B(e)}function C(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(D,e,t))}function D(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(c("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function O(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&d(e,"data")&&(t.flowing=!0,B(e))}}function T(e){c("readable nexttick read 0"),e.read(0)}function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(P,e,t))}function P(e,t){t.reading||(c("Line truncated
},{"process-nextick-args":"iFTO","isarray":"aqZJ","events":"wIHY","./internal/streams/stream":"XrGN","safe-buffer":"nFKF","core-util-is":"kj8s","inherits":"oxwV","util":"sC8V","./internal/streams/BufferList":"m362","./internal/streams/destroy":"Umu5","./_stream_duplex":"gYn1","string_decoder/":"jreP","process":"g5IB"}],"PxOV":[function(require,module,exports) {
"use strict";module.exports=n;var t=require("./_stream_duplex"),r=Object.create(require("core-util-is"));function e(t,r){var e=this._transformState;e.transforming=!1;var n=e.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));e.writechunk=null,e.writecb=null,null!=r&&this.push(r),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function n(r){if(!(this instanceof n))return new n(r);t.call(this,r),this._transformState={afterTransform:e.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&("function"==typeof r.transform&&(this._transform=r.transform),"function"==typeof r.flush&&(this._flush=r.flush)),this.on("prefinish",i)}function i(){var t=this;"function"==typeof this._flush?this._flush(function(r,e){a(t,r,e)}):a(this,null,null)}function a(t,r,e){if(r)return t.emit("error",r);if(null!=e&&t.push(e),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}r.inherits=require("inherits"),r.inherits(n,t),n.prototype.push=function(r,e){return this._transformState.needTransform=!1,t.prototype.push.call(this,r,e)},n.prototype._transform=function(t,r,e){throw new Error("_transform() is not implemented")},n.prototype._write=function(t,r,e){var n=this._transformState;if(n.writecb=e,n.writechunk=t,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},n.prototype._read=function(t){var r=this._transformState;null!==r.writechunk&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0},n.prototype._destroy=function(r,e){var n=this;t.prototype._destroy.call(this,r,function(t){e(t),n.emit("close")})};
},{"./_stream_duplex":"gYn1","core-util-is":"kj8s","inherits":"oxwV"}],"pumY":[function(require,module,exports) {
"use strict";module.exports=t;var r=require("./_stream_transform"),e=Object.create(require("core-util-is"));function t(e){if(!(this instanceof t))return new t(e);r.call(this,e)}e.inherits=require("inherits"),e.inherits(t,r),t.prototype._transform=function(r,e,t){t(null,r)};
},{"./_stream_transform":"PxOV","core-util-is":"kj8s","inherits":"oxwV"}],"YvpY":[function(require,module,exports) {
exports=module.exports=require("./lib/_stream_readable.js"),exports.Stream=exports,exports.Readable=exports,exports.Writable=require("./lib/_stream_writable.js"),exports.Duplex=require("./lib/_stream_duplex.js"),exports.Transform=require("./lib/_stream_transform.js"),exports.PassThrough=require("./lib/_stream_passthrough.js");
},{"./lib/_stream_readable.js":"KTao","./lib/_stream_writable.js":"pX9p","./lib/_stream_duplex.js":"gYn1","./lib/_stream_transform.js":"PxOV","./lib/_stream_passthrough.js":"pumY"}],"PbAG":[function(require,module,exports) {
module.exports=require("./lib/_stream_writable.js");
},{"./lib/_stream_writable.js":"pX9p"}],"AyLR":[function(require,module,exports) {
module.exports=require("./lib/_stream_duplex.js");
},{"./lib/_stream_duplex.js":"gYn1"}],"K38q":[function(require,module,exports) {
module.exports=require("./readable").Transform;
},{"./readable":"YvpY"}],"D33E":[function(require,module,exports) {
module.exports=require("./readable").PassThrough;
},{"./readable":"YvpY"}],"JMHy":[function(require,module,exports) {
module.exports=n;var e=require("events").EventEmitter,r=require("inherits");function n(){e.call(this)}r(n,e),n.Readable=require("readable-stream/readable.js"),n.Writable=require("readable-stream/writable.js"),n.Duplex=require("readable-stream/duplex.js"),n.Transform=require("readable-stream/transform.js"),n.PassThrough=require("readable-stream/passthrough.js"),n.Stream=n,n.prototype.pipe=function(r,n){var o=this;function t(e){r.writable&&!1===r.write(e)&&o.pause&&o.pause()}function s(){o.readable&&o.resume&&o.resume()}o.on("data",t),r.on("drain",s),r._isStdio||n&&!1===n.end||(o.on("end",a),o.on("close",u));var i=!1;function a(){i||(i=!0,r.end())}function u(){i||(i=!0,"function"==typeof r.destroy&&r.destroy())}function d(r){if(l(),0===e.listenerCount(this,"error"))throw r}function l(){o.removeListener("data",t),r.removeListener("drain",s),o.removeListener("end",a),o.removeListener("close",u),o.removeListener("error",d),r.removeListener("error",d),o.removeListener("end",l),o.removeListener("close",l),r.removeListener("close",l)}return o.on("error",d),r.on("error",d),o.on("end",l),o.on("close",l),r.on("close",l),r.emit("pipe",o),r};
},{"events":"wIHY","inherits":"oxwV","readable-stream/readable.js":"YvpY","readable-stream/writable.js":"PbAG","readable-stream/duplex.js":"AyLR","readable-stream/transform.js":"K38q","readable-stream/passthrough.js":"D33E"}],"YX7l":[function(require,module,exports) {
var t=require("safe-buffer").Buffer,i=require("stream").Transform,r=require("string_decoder").StringDecoder,e=require("inherits");function n(t){i.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e(n,i),n.prototype.update=function(i,r,e){"string"==typeof i&&(i=t.from(i,r));var n=this._update(i);return this.hashMode?this:(e&&(n=this._toString(n,e)),n)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(t,i,r){var e;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(n){e=n}finally{r(e)}},n.prototype._flush=function(t){var i;try{this.push(this.__final())}catch(r){i=r}t(i)},n.prototype._finalOrDigest=function(i){var r=this.__final()||t.alloc(0);return i&&(r=this._toString(r,i,!0)),r},n.prototype._toString=function(t,i,e){if(this._decoder||(this._decoder=new r(i),this._encoding=i),this._encoding!==i)throw new Error("can't switch encodings");var n=this._decoder.write(t);return e&&(n+=this._decoder.end()),n},module.exports=n;
},{"safe-buffer":"gIYa","stream":"JMHy","string_decoder":"ikue","inherits":"oxwV"}],"CBfM":[function(require,module,exports) {
"use strict";var e=require("inherits"),r=require("md5.js"),t=require("ripemd160"),i=require("sha.js"),s=require("cipher-base");function n(e){s.call(this,"digest"),this._hash=e}e(n,s),n.prototype._update=function(e){this._hash.update(e)},n.prototype._final=function(){return this._hash.digest()},module.exports=function(e){return"md5"===(e=e.toLowerCase())?new r:"rmd160"===e||"ripemd160"===e?new t:new n(i(e))};
},{"inherits":"oxwV","md5.js":"CYub","ripemd160":"DubT","sha.js":"IaNs","cipher-base":"YX7l"}],"fAvu":[function(require,module,exports) {
"use strict";var t=require("inherits"),e=require("safe-buffer").Buffer,a=require("cipher-base"),i=e.alloc(128),s=64;function h(t,h){a.call(this,"digest"),"string"==typeof h&&(h=e.from(h)),this._alg=t,this._key=h,h.length>s?h=t(h):h.length<s&&(h=e.concat([h,i],s));for(var r=this._ipad=e.allocUnsafe(s),o=this._opad=e.allocUnsafe(s),n=0;n<s;n++)r[n]=54^h[n],o[n]=92^h[n];this._hash=[r]}t(h,a),h.prototype._update=function(t){this._hash.push(t)},h.prototype._final=function(){var t=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,t]))},module.exports=h;
},{"inherits":"oxwV","safe-buffer":"gIYa","cipher-base":"YX7l"}],"WFOW":[function(require,module,exports) {
var e=require("md5.js");module.exports=function(r){return(new e).update(r).digest()};
},{"md5.js":"CYub"}],"Jc9P":[function(require,module,exports) {
"use strict";var e=require("inherits"),t=require("./legacy"),r=require("cipher-base"),a=require("safe-buffer").Buffer,i=require("create-hash/md5"),s=require("ripemd160"),h=require("sha.js"),n=a.alloc(128);function d(e,t){r.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var i="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>i)?t=("rmd160"===e?new s:h(e)).update(t).digest():t.length<i&&(t=a.concat([t,n],i));for(var d=this._ipad=a.allocUnsafe(i),u=this._opad=a.allocUnsafe(i),o=0;o<i;o++)d[o]=54^t[o],u[o]=92^t[o];this._hash="rmd160"===e?new s:h(e),this._hash.update(d)}e(d,r),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new s:h(this._alg)).update(this._opad).update(e).digest()},module.exports=function(e,r){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",r):"md5"===e?new t(i,r):new d(e,r)};
},{"inherits":"oxwV","./legacy":"fAvu","cipher-base":"YX7l","safe-buffer":"gIYa","create-hash/md5":"WFOW","ripemd160":"DubT","sha.js":"IaNs"}],"X0Jx":[function(require,module,exports) {
module.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};
},{}],"Iwnn":[function(require,module,exports) {
module.exports=require("./browser/algorithms.json");
},{"./browser/algorithms.json":"X0Jx"}],"O2Da":[function(require,module,exports) {
var r=Math.pow(2,30)-1;module.exports=function(e,o){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0||o>r||o!=o)throw new TypeError("Bad key length")};
},{}],"dDDZ":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var s,e=arguments[3],r=require("process");if(e.process&&e.process.browser)s="utf-8";else if(e.process&&e.process.version){var o=parseInt(r.version.split(".")[0].slice(1),10);s=o>=6?"utf-8":"binary"}else s="utf-8";module.exports=s;
},{"process":"g5IB"}],"gx8A":[function(require,module,exports) {
var r=require("safe-buffer").Buffer;module.exports=function(e,f,u){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,f);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(u+" must be a string, a Buffer, a typed array or a DataView")};
},{"safe-buffer":"gIYa"}],"uqMe":[function(require,module,exports) {
var e=require("create-hash/md5"),r=require("ripemd160"),a=require("sha.js"),t=require("safe-buffer").Buffer,i=require("./precondition"),s=require("./default-encoding"),n=require("./to-buffer"),h=t.alloc(128),o={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function u(e,r,a){var i=c(e),s="sha512"===e||"sha384"===e?128:64;r.length>s?r=i(r):r.length<s&&(r=t.concat([r,h],s));for(var n=t.allocUnsafe(s+o[e]),u=t.allocUnsafe(s+o[e]),l=0;l<s;l++)n[l]=54^r[l],u[l]=92^r[l];var d=t.allocUnsafe(s+a+4);n.copy(d,0,0,s),this.ipad1=d,this.ipad2=n,this.opad=u,this.alg=e,this.blocksize=s,this.hash=i,this.size=o[e]}function c(t){return"rmd160"===t||"ripemd160"===t?function(e){return(new r).update(e).digest()}:"md5"===t?e:function(e){return a(t).update(e).digest()}}function l(e,r,a,h,c){i(a,h);var l=new u(c=c||"sha1",e=n(e,s,"Password"),(r=n(r,s,"Salt")).length),d=t.allocUnsafe(h),f=t.allocUnsafe(r.length+4);r.copy(f,0,0,r.length);for(var p=0,g=o[c],m=Math.ceil(h/g),v=1;v<=m;v++){f.writeUInt32BE(v,r.length);for(var q=l.run(f,l.ipad1),y=q,U=1;U<a;U++){y=l.run(y,l.ipad2);for(var b=0;b<g;b++)q[b]^=y[b]}q.copy(d,p),p+=g}return d}u.prototype.run=function(e,r){return e.copy(r,this.blocksize),this.hash(r).copy(this.opad,this.blocksize),this.hash(this.opad)},module.exports=l;
},{"create-hash/md5":"WFOW","ripemd160":"DubT","sha.js":"IaNs","safe-buffer":"gIYa","./precondition":"O2Da","./default-encoding":"dDDZ","./to-buffer":"gx8A"}],"KcRf":[function(require,module,exports) {
var global = arguments[3];
var e,r,t=arguments[3],n=require("safe-buffer").Buffer,o=require("./precondition"),i=require("./default-encoding"),u=require("./sync"),s=require("./to-buffer"),c=t.crypto&&t.crypto.subtle,a={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function h(r){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==f[r])return f[r];var o=m(e=e||n.alloc(8),e,10,128,r).then(function(){return!0}).catch(function(){return!1});return f[r]=o,o}function l(){return r||(r=t.process&&t.process.nextTick?t.process.nextTick:t.queueMicrotask?t.queueMicrotask:t.setImmediate?t.setImmediate:t.setTimeout)}function m(e,r,t,o,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return c.deriveBits({name:"PBKDF2",salt:r,iterations:t,hash:{name:i}},e,o<<3)}).then(function(e){return n.from(e)})}function p(e,r){e.then(function(e){l()(function(){r(null,e)})},function(e){l()(function(){r(e)})})}module.exports=function(e,r,n,c,f,d){"function"==typeof f&&(d=f,f=void 0);var v=a[(f=f||"sha1").toLowerCase()];if(v&&"function"==typeof t.Promise){if(o(n,c),e=s(e,i,"Password"),r=s(r,i,"Salt"),"function"!=typeof d)throw new Error("No callback provided to pbkdf2");p(h(v).then(function(t){return t?m(e,r,n,c,v):u(e,r,n,c,f)}),d)}else l()(function(){var t;try{t=u(e,r,n,c,f)}catch(o){return d(o)}d(null,t)})};
},{"safe-buffer":"gIYa","./precondition":"O2Da","./default-encoding":"dDDZ","./sync":"uqMe","./to-buffer":"gx8A"}],"WuSv":[function(require,module,exports) {
exports.pbkdf2=require("./lib/async"),exports.pbkdf2Sync=require("./lib/sync");
},{"./lib/async":"KcRf","./lib/sync":"uqMe"}],"PKi5":[function(require,module,exports) {
"use strict";exports.readUInt32BE=function(r,o){return(r[0+o]<<24|r[1+o]<<16|r[2+o]<<8|r[3+o])>>>0},exports.writeUInt32BE=function(r,o,t){r[0+t]=o>>>24,r[1+t]=o>>>16&255,r[2+t]=o>>>8&255,r[3+t]=255&o},exports.ip=function(r,o,t,f){for(var n=0,e=0,u=6;u>=0;u-=2){for(var i=0;i<=24;i+=8)n<<=1,n|=o>>>i+u&1;for(i=0;i<=24;i+=8)n<<=1,n|=r>>>i+u&1}for(u=6;u>=0;u-=2){for(i=1;i<=25;i+=8)e<<=1,e|=o>>>i+u&1;for(i=1;i<=25;i+=8)e<<=1,e|=r>>>i+u&1}t[f+0]=n>>>0,t[f+1]=e>>>0},exports.rip=function(r,o,t,f){for(var n=0,e=0,u=0;u<4;u++)for(var i=24;i>=0;i-=8)n<<=1,n|=o>>>i+u&1,n<<=1,n|=r>>>i+u&1;for(u=4;u<8;u++)for(i=24;i>=0;i-=8)e<<=1,e|=o>>>i+u&1,e<<=1,e|=r>>>i+u&1;t[f+0]=n>>>0,t[f+1]=e>>>0},exports.pc1=function(r,o,t,f){for(var n=0,e=0,u=7;u>=5;u--){for(var i=0;i<=24;i+=8)n<<=1,n|=o>>i+u&1;for(i=0;i<=24;i+=8)n<<=1,n|=r>>i+u&1}for(i=0;i<=24;i+=8)n<<=1,n|=o>>i+u&1;for(u=1;u<=3;u++){for(i=0;i<=24;i+=8)e<<=1,e|=o>>i+u&1;for(i=0;i<=24;i+=8)e<<=1,e|=r>>i+u&1}for(i=0;i<=24;i+=8)e<<=1,e|=r>>i+u&1;t[f+0]=n>>>0,t[f+1]=e>>>0},exports.r28shl=function(r,o){return r<<o&268435455|r>>>28-o};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];exports.pc2=function(o,t,f,n){for(var e=0,u=0,i=r.length>>>1,p=0;p<i;p++)e<<=1,e|=o>>>r[p]&1;for(p=i;p<r.length;p++)u<<=1,u|=t>>>r[p]&1;f[n+0]=e>>>0,f[n+1]=u>>>0},exports.expand=function(r,o,t){var f=0,n=0;f=(1&r)<<5|r>>>27;for(var e=23;e>=15;e-=4)f<<=6,f|=r>>>e&63;for(e=11;e>=3;e-=4)n|=r>>>e&63,n<<=6;n|=(31&r)<<1|r>>>31,o[t+0]=f>>>0,o[t+1]=n>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];exports.substitute=function(r,t){for(var f=0,n=0;n<4;n++){f<<=4,f|=o[64*n+(r>>>18-6*n&63)]}for(n=0;n<4;n++){f<<=4,f|=o[256+64*n+(t>>>18-6*n&63)]}return f>>>0};var t=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];exports.permute=function(r){for(var o=0,f=0;f<t.length;f++)o<<=1,o|=r>>>t[f]&1;return o>>>0},exports.padSplit=function(r,o,t){for(var f=r.toString(2);f.length<o;)f="0"+f;for(var n=[],e=0;e<o;e+=t)n.push(f.slice(e,e+t));return n.join(" ")};
},{}],"PhA8":[function(require,module,exports) {
function r(r,o){if(!r)throw new Error(o||"Assertion failed")}module.exports=r,r.equal=function(r,o,e){if(r!=o)throw new Error(e||"Assertion failed: "+r+" != "+o)};
},{}],"IsNc":[function(require,module,exports) {
"use strict";var t=require("minimalistic-assert");function f(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}module.exports=f,f.prototype._init=function(){},f.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},f.prototype._buffer=function(t,f){for(var e=Math.min(this.buffer.length-this.bufferOff,t.length-f),r=0;r<e;r++)this.buffer[this.bufferOff+r]=t[f+r];return this.bufferOff+=e,e},f.prototype._flushBuffer=function(t,f){return this._update(this.buffer,0,t,f),this.bufferOff=0,this.blockSize},f.prototype._updateEncrypt=function(t){var f=0,e=0,r=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(f+=this._buffer(t,f),this.bufferOff===this.buffer.length&&(e+=this._flushBuffer(i,e)));for(var h=t.length-(t.length-f)%this.blockSize;f<h;f+=this.blockSize)this._update(t,f,i,e),e+=this.blockSize;for(;f<t.length;f++,this.bufferOff++)this.buffer[this.bufferOff]=t[f];return i},f.prototype._updateDecrypt=function(t){for(var f=0,e=0,r=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)f+=this._buffer(t,f),e+=this._flushBuffer(i,e);return f+=this._buffer(t,f),i},f.prototype.final=function(t){var f,e;return t&&(f=this.update(t)),e="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),f?f.concat(e):e},f.prototype._pad=function(t,f){if(0===f)return!1;for(;f<t.length;)t[f++]=0;return!0},f.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},f.prototype._unpad=function(t){return t},f.prototype._finalDecrypt=function(){t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var f=new Array(this.blockSize);return this._flushBuffer(f,0),this._unpad(f)};
},{"minimalistic-assert":"PhA8"}],"aGNl":[function(require,module,exports) {
"use strict";var t=require("minimalistic-assert"),e=require("inherits"),r=require("./utils"),n=require("./cipher");function p(){this.tmp=new Array(2),this.keys=null}function i(t){n.call(this,t);var e=new p;this._desState=e,this.deriveKeys(e,t.key)}e(i,n),module.exports=i,i.create=function(t){return new i(t)};var s=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];i.prototype.deriveKeys=function(e,n){e.keys=new Array(32),t.equal(n.length,this.blockSize,"Invalid key length");var p=r.readUInt32BE(n,0),i=r.readUInt32BE(n,4);r.pc1(p,i,e.tmp,0),p=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var u=s[a>>>1];p=r.r28shl(p,u),i=r.r28shl(i,u),r.pc2(p,i,e.keys,a)}},i.prototype._update=function(t,e,n,p){var i=this._desState,s=r.readUInt32BE(t,e),a=r.readUInt32BE(t,e+4);r.ip(s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,s,a,i.tmp,0):this._decrypt(i,s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],r.writeUInt32BE(n,s,p),r.writeUInt32BE(n,a,p+4)},i.prototype._pad=function(t,e){for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},i.prototype._unpad=function(e){for(var r=e[e.length-1],n=e.length-r;n<e.length;n++)t.equal(e[n],r);return e.slice(0,e.length-r)},i.prototype._encrypt=function(t,e,n,p,i){for(var s=e,a=n,u=0;u<t.keys.length;u+=2){var o=t.keys[u],y=t.keys[u+1];r.expand(a,t.tmp,0),o^=t.tmp[0],y^=t.tmp[1];var h=r.substitute(o,y),l=a;a=(s^r.permute(h))>>>0,s=l}r.rip(a,s,p,i)},i.prototype._decrypt=function(t,e,n,p,i){for(var s=n,a=e,u=t.keys.length-2;u>=0;u-=2){var o=t.keys[u],y=t.keys[u+1];r.expand(s,t.tmp,0),o^=t.tmp[0],y^=t.tmp[1];var h=r.substitute(o,y),l=s;s=(a^r.permute(h))>>>0,a=l}r.rip(s,a,p,i)};
},{"minimalistic-assert":"PhA8","inherits":"oxwV","./utils":"PKi5","./cipher":"IsNc"}],"En4C":[function(require,module,exports) {
"use strict";var t=require("minimalistic-assert"),i=require("inherits"),e={};function r(i){t.equal(i.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=i[e]}function n(t){function r(i){t.call(this,i),this._cbcInit()}i(r,t);for(var n=Object.keys(e),s=0;s<n.length;s++){var c=n[s];r.prototype[c]=e[c]}return r.create=function(t){return new r(t)},r}exports.instantiate=n,e._cbcInit=function(){var t=new r(this.options.iv);this._cbcState=t},e._update=function(t,i,e,r){var n=this._cbcState,s=this.constructor.super_.prototype,c=n.iv;if("encrypt"===this.type){for(var o=0;o<this.blockSize;o++)c[o]^=t[i+o];s._update.call(this,c,0,e,r);for(o=0;o<this.blockSize;o++)c[o]=e[r+o]}else{s._update.call(this,t,i,e,r);for(o=0;o<this.blockSize;o++)e[r+o]^=c[o];for(o=0;o<this.blockSize;o++)c[o]=t[i+o]}};
},{"minimalistic-assert":"PhA8","inherits":"oxwV"}],"TG5B":[function(require,module,exports) {
"use strict";var e=require("minimalistic-assert"),t=require("inherits"),r=require("./cipher"),p=require("./des");function i(t,r){e.equal(r.length,24,"Invalid key length");var i=r.slice(0,8),c=r.slice(8,16),y=r.slice(16,24);this.ciphers="encrypt"===t?[p.create({type:"encrypt",key:i}),p.create({type:"decrypt",key:c}),p.create({type:"encrypt",key:y})]:[p.create({type:"decrypt",key:y}),p.create({type:"encrypt",key:c}),p.create({type:"decrypt",key:i})]}function c(e){r.call(this,e);var t=new i(this.type,this.options.key);this._edeState=t}t(c,r),module.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,r,p){var i=this._edeState;i.ciphers[0]._update(e,t,r,p),i.ciphers[1]._update(r,p,r,p),i.ciphers[2]._update(r,p,r,p)},c.prototype._pad=p.prototype._pad,c.prototype._unpad=p.prototype._unpad;
},{"minimalistic-assert":"PhA8","inherits":"oxwV","./cipher":"IsNc","./des":"aGNl"}],"eHiV":[function(require,module,exports) {
"use strict";exports.utils=require("./des/utils"),exports.Cipher=require("./des/cipher"),exports.DES=require("./des/des"),exports.CBC=require("./des/cbc"),exports.EDE=require("./des/ede");
},{"./des/utils":"PKi5","./des/cipher":"IsNc","./des/des":"aGNl","./des/cbc":"En4C","./des/ede":"TG5B"}],"EWqc":[function(require,module,exports) {
var e=require("cipher-base"),r=require("des.js"),t=require("inherits"),s=require("safe-buffer").Buffer,d={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function i(r){e.call(this);var t,i=r.mode.toLowerCase(),c=d[i];t=r.decrypt?"decrypt":"encrypt";var a=r.key;s.isBuffer(a)||(a=s.from(a)),"des-ede"!==i&&"des-ede-cbc"!==i||(a=s.concat([a,a.slice(0,8)]));var n=r.iv;s.isBuffer(n)||(n=s.from(n)),this._des=c.create({key:a,iv:n,type:t})}d.des=d["des-cbc"],d.des3=d["des-ede3-cbc"],module.exports=i,t(i,e),i.prototype._update=function(e){return s.from(this._des.update(e))},i.prototype._final=function(){return s.from(this._des.final())};
},{"cipher-base":"YX7l","des.js":"eHiV","inherits":"oxwV","safe-buffer":"gIYa"}],"o4Dd":[function(require,module,exports) {
exports.encrypt=function(r,c){return r._cipher.encryptBlock(c)},exports.decrypt=function(r,c){return r._cipher.decryptBlock(c)};
},{}],"rlGJ":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;module.exports=function(r,n){for(var f=Math.min(r.length,n.length),t=new e(f),u=0;u<f;++u)t[u]=r[u]^n[u];return t};
},{"buffer":"z1tx"}],"EzbC":[function(require,module,exports) {
var r=require("buffer-xor");exports.encrypt=function(e,p){var c=r(p,e._prev);return e._prev=e._cipher.encryptBlock(c),e._prev},exports.decrypt=function(e,p){var c=e._prev;e._prev=p;var t=e._cipher.decryptBlock(p);return r(t,c)};
},{"buffer-xor":"rlGJ"}],"fOrg":[function(require,module,exports) {
var e=require("safe-buffer").Buffer,c=require("buffer-xor");function r(r,a,n){var t=a.length,h=c(a,r._cache);return r._cache=r._cache.slice(t),r._prev=e.concat([r._prev,n?a:h]),h}exports.encrypt=function(c,a,n){for(var t,h=e.allocUnsafe(0);a.length;){if(0===c._cache.length&&(c._cache=c._cipher.encryptBlock(c._prev),c._prev=e.allocUnsafe(0)),!(c._cache.length<=a.length)){h=e.concat([h,r(c,a,n)]);break}t=c._cache.length,h=e.concat([h,r(c,a.slice(0,t),n)]),a=a.slice(t)}return h};
},{"safe-buffer":"gIYa","buffer-xor":"rlGJ"}],"GWgw":[function(require,module,exports) {
var r=require("safe-buffer").Buffer;function e(e,n,c){var f=e._cipher.encryptBlock(e._prev)[0]^n;return e._prev=r.concat([e._prev.slice(1),r.from([c?n:f])]),f}exports.encrypt=function(n,c,f){for(var t=c.length,o=r.allocUnsafe(t),a=-1;++a<t;)o[a]=e(n,c[a],f);return o};
},{"safe-buffer":"gIYa"}],"JLdD":[function(require,module,exports) {
var r=require("safe-buffer").Buffer;function e(r,e,f){for(var t,o,c=-1,a=0;++c<8;)t=e&1<<7-c?128:0,a+=(128&(o=r._cipher.encryptBlock(r._prev)[0]^t))>>c%8,r._prev=n(r._prev,f?t:o);return a}function n(e,n){var f=e.length,t=-1,o=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([n])]);++t<f;)o[t]=e[t]<<1|e[t+1]>>7;return o}exports.encrypt=function(n,f,t){for(var o=f.length,c=r.allocUnsafe(o),a=-1;++a<o;)c[a]=e(n,f[a],t);return c};
},{"safe-buffer":"gIYa"}],"HEZF":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer,c=require("buffer-xor");function r(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}exports.encrypt=function(n,t){for(;n._cache.length<t.length;)n._cache=e.concat([n._cache,r(n)]);var h=n._cache.slice(0,t.length);return n._cache=n._cache.slice(t.length),c(t,h)};
},{"buffer-xor":"rlGJ","buffer":"z1tx"}],"AeXY":[function(require,module,exports) {
function t(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}module.exports=t;
},{}],"UecX":[function(require,module,exports) {
var e=require("buffer-xor"),c=require("safe-buffer").Buffer,r=require("../incr32");function a(e){var c=e._cipher.encryptBlockRaw(e._prev);return r(e._prev),c}var t=16;exports.encrypt=function(r,n){var h=Math.ceil(n.length/t),i=r._cache.length;r._cache=c.concat([r._cache,c.allocUnsafe(h*t)]);for(var _=0;_<h;_++){var f=a(r),l=i+_*t;r._cache.writeUInt32BE(f[0],l+0),r._cache.writeUInt32BE(f[1],l+4),r._cache.writeUInt32BE(f[2],l+8),r._cache.writeUInt32BE(f[3],l+12)}var u=r._cache.slice(0,n.length);return r._cache=r._cache.slice(n.length),e(n,u)};
},{"buffer-xor":"rlGJ","safe-buffer":"gIYa","../incr32":"AeXY"}],"E8oM":[function(require,module,exports) {
module.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};
},{}],"YE6O":[function(require,module,exports) {
var r={ECB:require("./ecb"),CBC:require("./cbc"),CFB:require("./cfb"),CFB8:require("./cfb8"),CFB1:require("./cfb1"),OFB:require("./ofb"),CTR:require("./ctr"),GCM:require("./ctr")},e=require("./list.json");for(var i in e)e[i].module=r[e[i].mode];module.exports=e;
},{"./ecb":"o4Dd","./cbc":"EzbC","./cfb":"fOrg","./cfb8":"GWgw","./cfb1":"JLdD","./ofb":"HEZF","./ctr":"UecX","./list.json":"E8oM"}],"syH2":[function(require,module,exports) {
var e=require("safe-buffer").Buffer;function t(t){e.isBuffer(t)||(t=e.from(t));for(var r=t.length/4|0,n=new Array(r),o=0;o<r;o++)n[o]=t.readUInt32BE(4*o);return n}function r(e){for(;0<e.length;e++)e[0]=0}function n(e,t,r,n,o){for(var i,B,S,u,c=r[0],_=r[1],f=r[2],a=r[3],s=e[0]^t[0],y=e[1]^t[1],I=e[2]^t[2],X=e[3]^t[3],h=4,l=1;l<o;l++)i=c[s>>>24]^_[y>>>16&255]^f[I>>>8&255]^a[255&X]^t[h++],B=c[y>>>24]^_[I>>>16&255]^f[X>>>8&255]^a[255&s]^t[h++],S=c[I>>>24]^_[X>>>16&255]^f[s>>>8&255]^a[255&y]^t[h++],u=c[X>>>24]^_[s>>>16&255]^f[y>>>8&255]^a[255&I]^t[h++],s=i,y=B,I=S,X=u;return i=(n[s>>>24]<<24|n[y>>>16&255]<<16|n[I>>>8&255]<<8|n[255&X])^t[h++],B=(n[y>>>24]<<24|n[I>>>16&255]<<16|n[X>>>8&255]<<8|n[255&s])^t[h++],S=(n[I>>>24]<<24|n[X>>>16&255]<<16|n[s>>>8&255]<<8|n[255&y])^t[h++],u=(n[X>>>24]<<24|n[s>>>16&255]<<16|n[y>>>8&255]<<8|n[255&I])^t[h++],[i>>>=0,B>>>=0,S>>>=0,u>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],i=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],o=[[],[],[],[]],i=[[],[],[],[]],B=0,S=0,u=0;u<256;++u){var c=S^S<<1^S<<2^S<<3^S<<4;c=c>>>8^255&c^99,r[B]=c,n[c]=B;var _=e[B],f=e[_],a=e[f],s=257*e[c]^16843008*c;o[0][B]=s<<24|s>>>8,o[1][B]=s<<16|s>>>16,o[2][B]=s<<8|s>>>24,o[3][B]=s,s=16843009*a^65537*f^257*_^16843008*B,i[0][c]=s<<24|s>>>8,i[1][c]=s<<16|s>>>16,i[2][c]=s<<8|s>>>24,i[3][c]=s,0===B?B=S=1:(B=_^e[e[e[a^_]]],S^=e[e[S]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:o,INV_SUB_MIX:i}}();function B(e){this._key=t(e),this._reset()}B.blockSize=16,B.keySize=32,B.prototype.blockSize=B.blockSize,B.prototype.keySize=B.keySize,B.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),B=[],S=0;S<t;S++)B[S]=e[S];for(S=t;S<n;S++){var u=B[S-1];S%t==0?(u=u<<8|u>>>24,u=i.SBOX[u>>>24]<<24|i.SBOX[u>>>16&255]<<16|i.SBOX[u>>>8&255]<<8|i.SBOX[255&u],u^=o[S/t|0]<<24):t>6&&S%t==4&&(u=i.SBOX[u>>>24]<<24|i.SBOX[u>>>16&255]<<16|i.SBOX[u>>>8&255]<<8|i.SBOX[255&u]),B[S]=B[S-t]^u}for(var c=[],_=0;_<n;_++){var f=n-_,a=B[f-(_%4?0:4)];c[_]=_<4||f<=4?a:i.INV_SUB_MIX[0][i.SBOX[a>>>24]]^i.INV_SUB_MIX[1][i.SBOX[a>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[a>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[255&a]]}this._nRounds=r,this._keySchedule=B,this._invKeySchedule=c},B.prototype.encryptBlockRaw=function(e){return n(e=t(e),this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},B.prototype.encryptBlock=function(t){var r=this.encryptBlockRaw(t),n=e.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[1],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[3],12),n},B.prototype.decryptBlock=function(r){var o=(r=t(r))[1];r[1]=r[3],r[3]=o;var B=n(r,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),S=e.allocUnsafe(16);return S.writeUInt32BE(B[0],0),S.writeUInt32BE(B[3],4),S.writeUInt32BE(B[2],8),S.writeUInt32BE(B[1],12),S},B.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},module.exports.AES=B;
},{"safe-buffer":"gIYa"}],"vz55":[function(require,module,exports) {
var t=require("safe-buffer").Buffer,e=t.alloc(16,0);function h(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function a(e){var h=t.allocUnsafe(16);return h.writeUInt32BE(e[0]>>>0,0),h.writeUInt32BE(e[1]>>>0,4),h.writeUInt32BE(e[2]>>>0,8),h.writeUInt32BE(e[3]>>>0,12),h}function i(e){this.h=e,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}i.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},i.prototype._multiply=function(){for(var t,e,i=h(this.h),c=[0,0,0,0],s=-1;++s<128;){for(0!=(this.state[~~(s/8)]&1<<7-s%8)&&(c[0]^=i[0],c[1]^=i[1],c[2]^=i[2],c[3]^=i[3]),e=0!=(1&i[3]),t=3;t>0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,e&&(i[0]=i[0]^225<<24)}this.state=a(c)},i.prototype.update=function(e){var h;for(this.cache=t.concat([this.cache,e]);this.cache.length>=16;)h=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(h)},i.prototype.final=function(h,i){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(a([0,h,0,i])),this.state},module.exports=i;
},{"safe-buffer":"gIYa"}],"zyhX":[function(require,module,exports) {
var t=require("./aes"),e=require("safe-buffer").Buffer,r=require("cipher-base"),h=require("inherits"),a=require("./ghash"),i=require("buffer-xor"),n=require("./incr32");function s(t,e){var r=0;t.length!==e.length&&r++;for(var h=Math.min(t.length,e.length),a=0;a<h;++a)r+=t[a]^e[a];return r}function o(t,r,h){if(12===r.length)return t._finID=e.concat([r,e.from([0,0,0,1])]),e.concat([r,e.from([0,0,0,2])]);var i=new a(h),s=r.length,o=s%16;i.update(r),o&&(o=16-o,i.update(e.alloc(o,0))),i.update(e.alloc(8,0));var u=8*s,l=e.alloc(8);l.writeUIntBE(u,0,8),i.update(l),t._finID=i.state;var c=e.from(t._finID);return n(c),c}function u(h,i,n,s){r.call(this);var u=e.alloc(4,0);this._cipher=new t.AES(i);var l=this._cipher.encryptBlock(u);this._ghash=new a(l),n=o(this,n,l),this._prev=e.from(n),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=h,this._authTag=null,this._called=!1}h(u,r),u.prototype._update=function(t){if(!this._called&&this._alen){var r=16-this._alen%16;r<16&&(r=e.alloc(r,0),this._ghash.update(r))}this._called=!0;var h=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(h),this._len+=t.length,h},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=i(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&s(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!e.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},u.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},module.exports=u;
},{"./aes":"syH2","safe-buffer":"gIYa","cipher-base":"YX7l","inherits":"oxwV","./ghash":"vz55","buffer-xor":"rlGJ","./incr32":"AeXY"}],"sqT5":[function(require,module,exports) {
var e=require("./aes"),r=require("safe-buffer").Buffer,t=require("cipher-base"),i=require("inherits");function s(i,s,c,h){t.call(this),this._cipher=new e.AES(s),this._prev=r.from(c),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=h,this._mode=i}i(s,t),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},module.exports=s;
},{"./aes":"syH2","safe-buffer":"gIYa","cipher-base":"YX7l","inherits":"oxwV"}],"id7t":[function(require,module,exports) {
var e=require("safe-buffer").Buffer,r=require("md5.js");function t(t,a,f,l){if(e.isBuffer(t)||(t=e.from(t,"binary")),a&&(e.isBuffer(a)||(a=e.from(a,"binary")),8!==a.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=f/8,i=e.alloc(n),o=e.alloc(l||0),u=e.alloc(0);n>0||l>0;){var h=new r;h.update(u),h.update(t),a&&h.update(a),u=h.digest();var g=0;if(n>0){var s=i.length-n;g=Math.min(n,u.length),u.copy(i,s,0,g),n-=g}if(g<u.length&&l>0){var d=o.length-l,v=Math.min(l,u.length-g);u.copy(o,d,g,g+v),l-=v}}return u.fill(0),{key:i,iv:o}}module.exports=t;
},{"safe-buffer":"gIYa","md5.js":"CYub"}],"OEHI":[function(require,module,exports) {
var e=require("./modes"),t=require("./authCipher"),r=require("safe-buffer").Buffer,i=require("./streamCipher"),n=require("cipher-base"),h=require("./aes"),o=require("evp_bytestokey"),a=require("inherits");function c(e,t,i){n.call(this),this._cache=new u,this._cipher=new h.AES(t),this._prev=r.from(i),this._mode=e,this._autopadding=!0}a(c,n),c.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get();)i=this._mode.encrypt(this,t),n.push(i);return r.concat(n)};var s=r.alloc(16,16);function u(){this.cache=r.allocUnsafe(0)}function p(n,h,o){var a=e[n.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof h&&(h=r.from(h)),h.length!==a.key/8)throw new TypeError("invalid key length "+h.length);if("string"==typeof o&&(o=r.from(o)),"GCM"!==a.mode&&o.length!==a.iv)throw new TypeError("invalid iv length "+o.length);return"stream"===a.type?new i(a.module,h,o):"auth"===a.type?new t(a.module,h,o):new c(a.module,h,o)}function f(t,r){var i=e[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=o(r,!1,i.key,i.iv);return p(t,n.key,n.iv)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(s))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},u.prototype.add=function(e){this.cache=r.concat([this.cache,e])},u.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},u.prototype.flush=function(){for(var e=16-this.cache.length,t=r.allocUnsafe(e),i=-1;++i<e;)t.writeUInt8(e,i);return r.concat([this.cache,t])},exports.createCipheriv=p,exports.createCipher=f;
},{"./modes":"YE6O","./authCipher":"zyhX","safe-buffer":"gIYa","./streamCipher":"sqT5","cipher-base":"YX7l","./aes":"syH2","evp_bytestokey":"id7t","inherits":"oxwV"}],"qsP2":[function(require,module,exports) {
var e=require("./authCipher"),t=require("safe-buffer").Buffer,r=require("./modes"),i=require("./streamCipher"),h=require("cipher-base"),n=require("./aes"),o=require("evp_bytestokey"),a=require("inherits");function c(e,r,i){h.call(this),this._cache=new s,this._last=void 0,this._cipher=new n.AES(r),this._prev=t.from(i),this._mode=e,this._autopadding=!0}function s(){this.cache=t.allocUnsafe(0)}function u(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function p(h,n,o){var a=r[h.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof o&&(o=t.from(o)),"GCM"!==a.mode&&o.length!==a.iv)throw new TypeError("invalid iv length "+o.length);if("string"==typeof n&&(n=t.from(n)),n.length!==a.key/8)throw new TypeError("invalid key length "+n.length);return"stream"===a.type?new i(a.module,n,o,!0):"auth"===a.type?new e(a.module,n,o,!0):new c(a.module,n,o)}function f(e,t){var i=r[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var h=o(t,!1,i.key,i.iv);return p(e,h.key,h.iv)}a(c,h),c.prototype._update=function(e){var r,i;this._cache.add(e);for(var h=[];r=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,r),h.push(i);return t.concat(h)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return u(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},s.prototype.add=function(e){this.cache=t.concat([this.cache,e])},s.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},s.prototype.flush=function(){if(this.cache.length)return this.cache},exports.createDecipher=f,exports.createDecipheriv=p;
},{"./authCipher":"zyhX","safe-buffer":"gIYa","./modes":"YE6O","./streamCipher":"sqT5","cipher-base":"YX7l","./aes":"syH2","evp_bytestokey":"id7t","inherits":"oxwV"}],"aV4Z":[function(require,module,exports) {
var e=require("./encrypter"),r=require("./decrypter"),i=require("./modes/list.json");function p(){return Object.keys(i)}exports.createCipher=exports.Cipher=e.createCipher,exports.createCipheriv=exports.Cipheriv=e.createCipheriv,exports.createDecipher=exports.Decipher=r.createDecipher,exports.createDecipheriv=exports.Decipheriv=r.createDecipheriv,exports.listCiphers=exports.getCiphers=p;
},{"./encrypter":"OEHI","./decrypter":"qsP2","./modes/list.json":"E8oM"}],"G3pN":[function(require,module,exports) {
exports["des-ecb"]={key:8,iv:0},exports["des-cbc"]=exports.des={key:8,iv:8},exports["des-ede3-cbc"]=exports.des3={key:24,iv:8},exports["des-ede3"]={key:24,iv:0},exports["des-ede-cbc"]={key:16,iv:8},exports["des-ede"]={key:16,iv:0};
},{}],"po04":[function(require,module,exports) {
var e=require("browserify-des"),r=require("browserify-aes/browser"),i=require("browserify-aes/modes"),t=require("browserify-des/modes"),o=require("evp_bytestokey");function s(e,r){var s,p;if(e=e.toLowerCase(),i[e])s=i[e].key,p=i[e].iv;else{if(!t[e])throw new TypeError("invalid suite type");s=8*t[e].key,p=t[e].iv}var v=o(r,!1,s,p);return n(e,v.key,v.iv)}function p(e,r){var s,p;if(e=e.toLowerCase(),i[e])s=i[e].key,p=i[e].iv;else{if(!t[e])throw new TypeError("invalid suite type");s=8*t[e].key,p=t[e].iv}var n=o(r,!1,s,p);return v(e,n.key,n.iv)}function n(o,s,p){if(o=o.toLowerCase(),i[o])return r.createCipheriv(o,s,p);if(t[o])return new e({key:s,iv:p,mode:o});throw new TypeError("invalid suite type")}function v(o,s,p){if(o=o.toLowerCase(),i[o])return r.createDecipheriv(o,s,p);if(t[o])return new e({key:s,iv:p,mode:o,decrypt:!0});throw new TypeError("invalid suite type")}function y(){return Object.keys(t).concat(r.getCiphers())}exports.createCipher=exports.Cipher=s,exports.createCipheriv=exports.Cipheriv=n,exports.createDecipher=exports.Decipher=p,exports.createDecipheriv=exports.Decipheriv=v,exports.listCiphers=exports.getCiphers=y;
},{"browserify-des":"EWqc","browserify-aes/browser":"aV4Z","browserify-aes/modes":"YE6O","browserify-des/modes":"G3pN","evp_bytestokey":"id7t"}],"o7RX":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var t=require("buffer").Buffer;!function(t,i){"use strict";function r(t,i){if(!t)throw new Error(i||"Assertion failed")}function n(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,i,r){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==i&&"be"!==i||(r=i,i=10),this._init(t||0,i||10,r||"be"))}var e;"object"==typeof t?t.exports=h:i.BN=h,h.BN=h,h.wordSize=26;try{e="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require("buffer").Buffer}catch(A){}function o(t,i){var r=t.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(t,i,r){var n=o(t,r);return r-1>=i&&(n|=o(t,r-1)<<4),n}function u(t,i,r,n){for(var h=0,e=Math.min(t.length,r),o=i;o<e;o++){var s=t.charCodeAt(o)-48;h*=n,h+=s>=49?s-49+10:s>=17?s-17+10:s}return h}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,i){return t.cmp(i)>0?t:i},h.min=function(t,i){return t.cmp(i)<0?t:i},h.prototype._init=function(t,i,n){if("number"==typeof t)return this._initNumber(t,i,n);if("object"==typeof t)return this._initArray(t,i,n);"hex"===i&&(i=16),r(i===(0|i)&&i>=2&&i<=36);var h=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(h++,this.negative=1),h<t.length&&(16===i?this._parseHex(t,h,n):(this._parseBase(t,i,h),"le"===n&&this._initArray(this.toArray(),i,n)))},h.prototype._initNumber=function(t,i,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),i,n)},h.prototype._initArray=function(t,i,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var e,o,s=0;if("be"===n)for(h=t.length-1,e=0;h>=0;h-=3)o=t[h]|t[h-1]<<8|t[h-2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if("le"===n)for(h=0,e=0;h<t.length;h+=3)o=t[h]|t[h+1]<<8|t[h+2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this.strip()},h.prototype._parseHex=function(t,i,r){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var h,e=0,o=0;if("be"===r)for(n=t.length-1;n>=i;n-=2)h=s(t,i,n)<<e,this.words[o]|=67108863&h,e>=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;else for(n=(t.length-i)%2==0?i+1:i;n<t.length;n+=2)h=s(t,i,n)<<e,this.words[o]|=67108863&h,e>=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;this.strip()},h.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=i)n++;n--,h=h/i|0;for(var e=t.length-r,o=e%n,s=Math.min(e,e-o)+r,a=0,l=r;l<s;l+=n)a=u(t,l,l+n,i),this.imuln(h),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==o){var m=1;for(a=u(t,l,t.length,i),l=0;l<o;l++)m*=i;this.imuln(m),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var a=["","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"],l=[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],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,i,r){r.negative=i.negative^t.negative;var n=t.length+i.length|0;r.length=n,n=n-1|0;var h=0|t.words[0],e=0|i.words[0],o=h*e,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var a=1;a<n;a++){for(var l=u>>>26,m=67108863&u,f=Math.min(a,i.length-1),d=Math.max(0,a-t.length+1);d<=f;d++){var p=a-d|0;l+=(o=Line truncated
},{"buffer":"sC8V"}],"En1q":[function(require,module,exports) {
var t;function e(t){this.rand=t}if(module.exports=function(r){return t||(t=new e(null)),t.generate(r)},module.exports.Rand=e,e.prototype.generate=function(t){return this._rand(t)},e.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?e.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?e.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(e.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var r=require("crypto");if("function"!=typeof r.randomBytes)throw new Error("Not supported");e.prototype._rand=function(t){return r.randomBytes(t)}}catch(n){}
},{"crypto":"sC8V"}],"vItx":[function(require,module,exports) {
var r=require("bn.js"),e=require("brorand");function n(r){this.rand=r||new e.Rand}module.exports=n,n.create=function(r){return new n(r)},n.prototype._randbelow=function(e){var n=e.bitLength(),t=Math.ceil(n/8);do{var o=new r(this.rand.generate(t))}while(o.cmp(e)>=0);return o},n.prototype._randrange=function(r,e){var n=e.sub(r);return r.add(this._randbelow(n))},n.prototype.test=function(e,n,t){var o=e.bitLength(),a=r.mont(e),d=new r(1).toRed(a);n||(n=Math.max(1,o/48|0));for(var i=e.subn(1),u=0;!i.testn(u);u++);for(var f=e.shrn(u),c=i.toRed(a);n>0;n--){var p=this._randrange(new r(2),i);t&&t(p);var s=p.toRed(a).redPow(f);if(0!==s.cmp(d)&&0!==s.cmp(c)){for(var m=1;m<u;m++){if(0===(s=s.redSqr()).cmp(d))return!1;if(0===s.cmp(c))break}if(m===u)return!1}}return!0},n.prototype.getDivisor=function(e,n){var t=e.bitLength(),o=r.mont(e),a=new r(1).toRed(o);n||(n=Math.max(1,t/48|0));for(var d=e.subn(1),i=0;!d.testn(i);i++);for(var u=e.shrn(i),f=d.toRed(o);n>0;n--){var c=this._randrange(new r(2),d),p=e.gcd(c);if(0!==p.cmpn(1))return p;var s=c.toRed(o).redPow(u);if(0!==s.cmp(a)&&0!==s.cmp(f)){for(var m=1;m<i;m++){if(0===(s=s.redSqr()).cmp(a))return s.fromRed().subn(1).gcd(e);if(0===s.cmp(f))break}if(m===i)return(s=s.redSqr()).fromRed().subn(1).gcd(e)}}return!1};
},{"bn.js":"o7RX","brorand":"En1q"}],"zRwu":[function(require,module,exports) {
var e=require("randombytes");module.exports=M,M.simpleSieve=b,M.fermatTest=q;var n=require("bn.js"),r=new n(24),t=require("miller-rabin"),i=new t,o=new n(1),f=new n(2),a=new n(5),u=new n(16),w=new n(8),d=new n(10),m=new n(3),s=new n(7),c=new n(11),l=new n(4),v=new n(12),p=null;function h(){if(null!==p)return p;var e=[];e[0]=2;for(var n=1,r=3;r<1048576;r+=2){for(var t=Math.ceil(Math.sqrt(r)),i=0;i<n&&e[i]<=t&&r%e[i]!=0;i++);n!==i&&e[i]<=t||(e[n++]=r)}return p=e,e}function b(e){for(var n=h(),r=0;r<n.length;r++)if(0===e.modn(n[r]))return 0===e.cmpn(n[r]);return!0}function q(e){var r=n.mont(e);return 0===f.toRed(r).redPow(e.subn(1)).fromRed().cmpn(1)}function M(t,u){if(t<16)return new n(2===u||5===u?[140,123]:[140,39]);var w,s;for(u=new n(u);;){for(w=new n(e(Math.ceil(t/8)));w.bitLength()>t;)w.ishrn(1);if(w.isEven()&&w.iadd(o),w.testn(1)||w.iadd(f),u.cmp(f)){if(!u.cmp(a))for(;w.mod(d).cmp(m);)w.iadd(l)}else for(;w.mod(r).cmp(c);)w.iadd(l);if(b(s=w.shrn(1))&&b(w)&&q(s)&&q(w)&&i.test(s)&&i.test(w))return w}}
},{"randombytes":"pXr2","bn.js":"o7RX","miller-rabin":"vItx"}],"qZTb":[function(require,module,exports) {
module.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef951Line truncated
},{}],"ikIr":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer,t=require("bn.js"),r=require("miller-rabin"),i=new r,n=new t(24),o=new t(11),s=new t(10),u=new t(3),p=new t(7),h=require("./generatePrime"),f=require("randombytes");function _(r,i){return i=i||"utf8",e.isBuffer(r)||(r=new e(r,i)),this._pub=new t(r),this}function m(r,i){return i=i||"utf8",e.isBuffer(r)||(r=new e(r,i)),this._priv=new t(r),this}module.exports=g;var c={};function a(e,t){var r=t.toString("hex"),f=[r,e.toString(16)].join("_");if(f in c)return c[f];var _,m=0;if(e.isEven()||!h.simpleSieve||!h.fermatTest(e)||!i.test(e))return m+=1,m+="02"===r||"05"===r?8:4,c[f]=m,m;switch(i.test(e.shrn(1))||(m+=2),r){case"02":e.mod(n).cmp(o)&&(m+=8);break;case"05":(_=e.mod(s)).cmp(u)&&_.cmp(p)&&(m+=8);break;default:m+=4}return c[f]=m,m}function g(e,r,i){this.setGenerator(r),this.__prime=new t(e),this._prime=t.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=_,this.setPrivateKey=m):this._primeCode=8}function v(t,r){var i=new e(t.toArray());return r?i.toString(r):i}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=a(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new t(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(r){var i=(r=(r=new t(r)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new e(i.toArray()),o=this.getPrime();if(n.length<o.length){var s=new e(o.length-n.length);s.fill(0),n=e.concat([s,n])}return n},g.prototype.getPublicKey=function(e){return v(this._pub,e)},g.prototype.getPrivateKey=function(e){return v(this._priv,e)},g.prototype.getPrime=function(e){return v(this.__prime,e)},g.prototype.getGenerator=function(e){return v(this._gen,e)},g.prototype.setGenerator=function(r,i){return i=i||"utf8",e.isBuffer(r)||(r=new e(r,i)),this.__gen=r,this._gen=new t(r),this};
},{"bn.js":"o7RX","miller-rabin":"vItx","./generatePrime":"zRwu","randombytes":"pXr2","buffer":"z1tx"}],"Ej94":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer,r=require("./lib/generatePrime"),i=require("./lib/primes.json"),n=require("./lib/dh");function f(r){var f=new e(i[r].prime,"hex"),a=new e(i[r].gen,"hex");return new n(f,a)}var a={binary:!0,hex:!0,base64:!0};function u(i,f,t,l){return e.isBuffer(f)||void 0===a[f]?u(i,"binary",f,t):(f=f||"binary",l=l||"binary",t=t||new e([2]),e.isBuffer(t)||(t=new e(t,l)),"number"==typeof i?new n(r(i,t),t,!0):(e.isBuffer(i)||(i=new e(i,f)),new n(i,t,!0)))}exports.DiffieHellmanGroup=exports.createDiffieHellmanGroup=exports.getDiffieHellman=f,exports.createDiffieHellman=exports.DiffieHellman=u;
},{"./lib/generatePrime":"zRwu","./lib/primes.json":"qZTb","./lib/dh":"ikIr","buffer":"z1tx"}],"YVfc":[function(require,module,exports) {
"use strict";var r=require("../../../errors").codes.ERR_INVALID_OPT_VALUE;function e(r,e,t){return null!=r.highWaterMark?r.highWaterMark:e?r[t]:null}function t(t,i,o,a){var n=e(i,a,o);if(null!=n){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new r(a?o:"highWaterMark",n);return Math.floor(n)}return t.objectMode?16:16384}module.exports={getHighWaterMark:t};
},{"../../../errors":"S4np"}],"XwTe":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var e,t=arguments[3],n=require("process");function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){G(t,e)}}module.exports=x,x.WritableState=m;var o={deprecate:require("util-deprecate")},s=require("./internal/streams/stream"),u=require("buffer").Buffer,f=t.Uint8Array||function(){};function a(e){return u.from(e)}function c(e){return u.isBuffer(e)||e instanceof f}var l,d=require("./internal/streams/destroy"),h=require("./internal/streams/state"),b=h.getHighWaterMark,p=require("../errors").codes,y=p.ERR_INVALID_ARG_TYPE,w=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,_=p.ERR_STREAM_CANNOT_PIPE,R=p.ERR_STREAM_DESTROYED,k=p.ERR_STREAM_NULL_VALUES,E=p.ERR_STREAM_WRITE_AFTER_END,S=p.ERR_UNKNOWN_ENCODING,q=d.errorOrDestroy;function v(){}function m(t,n,r){e=e||require("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=b(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function x(t){var n=this instanceof(e=e||require("./_stream_duplex"));if(!n&&!l.call(x,this))return new x(t);this._writableState=new m(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function M(e,t){var r=new E;q(e,r),n.nextTick(t,r)}function B(e,t,r,i){var o;return null===r?o=new k:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(q(e,o),n.nextTick(i,o),!1)}function T(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}function D(e,t,n,r,i,o){if(!n){var s=T(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var u=t.objectMode?1:r.length;t.length+=u;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else P(e,t,!1,u,r,i,o);return f}function P(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new R("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function j(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(U,e,t),e._writableState.errorEmitted=!0,q(e,i)):(o(i),e._writableState.errorEmitted=!0,q(e,i),U(e,t))}function C(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function O(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(C(r),t)j(e,r,i,t,o);else{var s=I(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||N(e,r),i?n.nextTick(A,e,r,s,o):A(e,r,s,o)}}function A(e,t,n,r){n||L(e,t),t.pendingcb--,r(),U(e,t)}function L(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function N(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var u=0,f=!0;n;)o[u]=n,n.isBuf||(f=!1),n=n.next,u+=1;o.allBuffers=f,P(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var a=n.chunk,c=n.encoding,l=n.callback;if(P(e,t,!1,t.objectMode?1:a.length,a,c,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function W(e,t){e._final(function(n){t.pendingcb--,n&&q(e,n),t.prefinished=!0,e.emit("prefinish"),U(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(W,e,t)))}function U(e,t){var n=I(t);if(n&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function H(e,t,r){t.ending=!0,U(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function G(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),Line truncated
},{"util-deprecate":"hQaz","./internal/streams/stream":"XrGN","buffer":"z1tx","./internal/streams/destroy":"VglT","./internal/streams/state":"YVfc","../errors":"S4np","inherits":"oxwV","./_stream_duplex":"wHK7","process":"g5IB"}],"wHK7":[function(require,module,exports) {
var process = require("process");
var e=require("process"),t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};module.exports=l;var r=require("./_stream_readable"),a=require("./_stream_writable");require("inherits")(l,r);for(var i=t(a.prototype),n=0;n<i.length;n++){var o=i[n];l.prototype[o]||(l.prototype[o]=a.prototype[o])}function l(e){if(!(this instanceof l))return new l(e);r.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||e.nextTick(b,this)}function b(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}});
},{"./_stream_readable":"psWw","./_stream_writable":"XwTe","inherits":"oxwV","process":"g5IB"}],"d4QQ":[function(require,module,exports) {
"use strict";var e=require("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.apply(this,n)}}}function t(){}function n(e){return e.setHeader&&"function"==typeof e.abort}function o(i,a,l){if("function"==typeof a)return o(i,null,a);a||(a={}),l=r(l||t);var s=a.readable||!1!==a.readable&&i.readable,c=a.writable||!1!==a.writable&&i.writable,u=function(){i.writable||d()},f=i._writableState&&i._writableState.finished,d=function(){c=!1,f=!0,s||l.call(i)},b=i._readableState&&i._readableState.endEmitted,v=function(){s=!1,b=!0,c||l.call(i)},m=function(e){l.call(i,e)},w=function(){var r;return s&&!b?(i._readableState&&i._readableState.ended||(r=new e),l.call(i,r)):c&&!f?(i._writableState&&i._writableState.ended||(r=new e),l.call(i,r)):void 0},_=function(){i.req.on("finish",d)};return n(i)?(i.on("complete",d),i.on("abort",w),i.req?_():i.on("request",_)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",d),!1!==a.error&&i.on("error",m),i.on("close",w),function(){i.removeListener("complete",d),i.removeListener("abort",w),i.removeListener("request",_),i.req&&i.req.removeListener("finish",d),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",d),i.removeListener("end",v),i.removeListener("error",m),i.removeListener("close",w)}}module.exports=o;
},{"../../../errors":"S4np"}],"ESSx":[function(require,module,exports) {
var process = require("process");
var e,n=require("process");function r(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var t=require("./end-of-stream"),l=Symbol("lastResolve"),u=Symbol("lastReject"),i=Symbol("error"),o=Symbol("ended"),a=Symbol("lastPromise"),s=Symbol("handlePromise"),c=Symbol("stream");function f(e,n){return{value:e,done:n}}function v(e){var n=e[l];if(null!==n){var r=e[c].read();null!==r&&(e[a]=null,e[l]=null,e[u]=null,n(f(r,!1)))}}function d(e){n.nextTick(v,e)}function b(e,n){return function(r,t){e.then(function(){n[o]?r(f(void 0,!0)):n[s](r,t)},t)}}var m=Object.getPrototypeOf(function(){}),h=Object.setPrototypeOf((r(e={get stream(){return this[c]},next:function(){var e=this,r=this[i];if(null!==r)return Promise.reject(r);if(this[o])return Promise.resolve(f(void 0,!0));if(this[c].destroyed)return new Promise(function(r,t){n.nextTick(function(){e[i]?t(e[i]):r(f(void 0,!0))})});var t,l=this[a];if(l)t=new Promise(b(l,this));else{var u=this[c].read();if(null!==u)return Promise.resolve(f(u,!1));t=new Promise(this[s])}return this[a]=t,t}},Symbol.asyncIterator,function(){return this}),r(e,"return",function(){var e=this;return new Promise(function(n,r){e[c].destroy(null,function(e){e?r(e):n(f(void 0,!0))})})}),e),m),y=function(e){var n,v=Object.create(h,(r(n={},c,{value:e,writable:!0}),r(n,l,{value:null,writable:!0}),r(n,u,{value:null,writable:!0}),r(n,i,{value:null,writable:!0}),r(n,o,{value:e._readableState.endEmitted,writable:!0}),r(n,s,{value:function(e,n){var r=v[c].read();r?(v[a]=null,v[l]=null,v[u]=null,e(f(r,!1))):(v[l]=e,v[u]=n)},writable:!0}),n));return v[a]=null,t(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var n=v[u];return null!==n&&(v[a]=null,v[l]=null,v[u]=null,n(e)),void(v[i]=e)}var r=v[l];null!==r&&(v[a]=null,v[l]=null,v[u]=null,r(f(void 0,!0))),v[o]=!0}),e.on("readable",d.bind(null,v)),v};module.exports=y;
},{"./end-of-stream":"d4QQ","process":"g5IB"}],"psWw":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var e,t=arguments[3],n=require("process");module.exports=j,j.ReadableState=L;var r=require("events").EventEmitter,i=function(e,t){return e.listeners(t).length},a=require("./internal/streams/stream"),d=require("buffer").Buffer,o=t.Uint8Array||function(){};function s(e){return d.from(e)}function l(e){return d.isBuffer(e)||e instanceof o}var u,h=require("util");u=h&&h.debuglog?h.debuglog("stream"):function(){};var p,f,c,b=require("./internal/streams/buffer_list"),g=require("./internal/streams/destroy"),m=require("./internal/streams/state"),y=m.getHighWaterMark,_=require("../errors").codes,v=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,R=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;require("inherits")(j,a);var M=g.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function L(t,n,r){e=e||require("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",r),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=require("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function j(t){if(e=e||require("./_stream_duplex"),!(this instanceof j))return new j(t);var n=this instanceof e;this._readableState=new L(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function D(e,t,n,r,i){u("readableAddChunk",t);var a,o=e._readableState;if(null===t)o.reading=!1,A(e,o);else if(i||(a=T(o,t)),a)M(e,a);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=s(t)),r)o.endEmitted?M(e,new R):C(e,o,t,!0);else if(o.ended)M(e,new w);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?C(e,o,t,!1):U(e,o)):C(e,o,t,!1)}else r||(o.reading=!1,U(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),U(e,t)}function T(e,t){var n;return l(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new v("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),j.prototype.destroy=g.destroy,j.prototype._undestroy=g.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=d.from(e,t),t=""),n=!0),D(this,e,t,!1,n)},j.prototype.unshift=function(e){return D(this,e,null,!0,!1)},j.prototype.isPaused=function(){return!1===this._readableState.flowing},j.prototype.setEncoding=function(e){p||(p=require("string_decoder/").StringDecoder);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var q=1073741824;function W(e){return e>=q?e=q:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=W(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e,t){if(u("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}function O(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(P,e))}function P(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&Line truncated
},{"events":"wIHY","./internal/streams/stream":"XrGN","buffer":"z1tx","util":"sC8V","./internal/streams/buffer_list":"nfI5","./internal/streams/destroy":"VglT","./internal/streams/state":"YVfc","../errors":"S4np","inherits":"oxwV","./_stream_duplex":"wHK7","string_decoder/":"ikue","./internal/streams/async_iterator":"ESSx","./internal/streams/from":"Ogns","process":"g5IB"}],"ZVdB":[function(require,module,exports) {
"use strict";module.exports=o;var t=require("../errors").codes,r=t.ERR_METHOD_NOT_IMPLEMENTED,e=t.ERR_MULTIPLE_CALLBACK,n=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=t.ERR_TRANSFORM_WITH_LENGTH_0,a=require("./_stream_duplex");function s(t,r){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new e);n.writechunk=null,n.writecb=null,null!=r&&this.push(r),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);a.call(this,t),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(r,e){f(t,r,e)})}function f(t,r,e){if(r)return t.emit("error",r);if(null!=e&&t.push(e),t._writableState.length)throw new i;if(t._transformState.transforming)throw new n;return t.push(null)}require("inherits")(o,a),o.prototype.push=function(t,r){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,r)},o.prototype._transform=function(t,e,n){n(new r("_transform()"))},o.prototype._write=function(t,r,e){var n=this._transformState;if(n.writecb=e,n.writechunk=t,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var r=this._transformState;null===r.writechunk||r.transforming?r.needTransform=!0:(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform))},o.prototype._destroy=function(t,r){a.prototype._destroy.call(this,t,function(t){r(t)})};
},{"../errors":"S4np","./_stream_duplex":"wHK7","inherits":"oxwV"}],"NgZz":[function(require,module,exports) {
"use strict";module.exports=t;var r=require("./_stream_transform");function t(e){if(!(this instanceof t))return new t(e);r.call(this,e)}require("inherits")(t,r),t.prototype._transform=function(r,t,e){e(null,r)};
},{"./_stream_transform":"ZVdB","inherits":"oxwV"}],"rtLt":[function(require,module,exports) {
"use strict";var r;function n(r){var n=!1;return function(){n||(n=!0,r.apply(void 0,arguments))}}var t=require("../../../errors").codes,e=t.ERR_MISSING_ARGS,o=t.ERR_STREAM_DESTROYED;function i(r){if(r)throw r}function u(r){return r.setHeader&&"function"==typeof r.abort}function f(t,e,i,f){f=n(f);var a=!1;t.on("close",function(){a=!0}),void 0===r&&(r=require("./end-of-stream")),r(t,{readable:e,writable:i},function(r){if(r)return f(r);a=!0,f()});var c=!1;return function(r){if(!a&&!c)return c=!0,u(t)?t.abort():"function"==typeof t.destroy?t.destroy():void f(r||new o("pipe"))}}function a(r){r()}function c(r,n){return r.pipe(n)}function p(r){return r.length?"function"!=typeof r[r.length-1]?i:r.pop():i}function s(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];var o,i=p(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new e("streams");var u=n.map(function(r,t){var e=t<n.length-1;return f(r,e,t>0,function(r){o||(o=r),r&&u.forEach(a),e||(u.forEach(a),i(o))})});return n.reduce(c)}module.exports=s;
},{"../../../errors":"S4np","./end-of-stream":"d4QQ"}],"R738":[function(require,module,exports) {
exports=module.exports=require("./lib/_stream_readable.js"),exports.Stream=exports,exports.Readable=exports,exports.Writable=require("./lib/_stream_writable.js"),exports.Duplex=require("./lib/_stream_duplex.js"),exports.Transform=require("./lib/_stream_transform.js"),exports.PassThrough=require("./lib/_stream_passthrough.js"),exports.finished=require("./lib/internal/streams/end-of-stream.js"),exports.pipeline=require("./lib/internal/streams/pipeline.js");
},{"./lib/_stream_readable.js":"psWw","./lib/_stream_writable.js":"XwTe","./lib/_stream_duplex.js":"wHK7","./lib/_stream_transform.js":"ZVdB","./lib/_stream_passthrough.js":"NgZz","./lib/internal/streams/end-of-stream.js":"d4QQ","./lib/internal/streams/pipeline.js":"rtLt"}],"EOUW":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var t=require("buffer").Buffer;!function(t,i){"use strict";function r(t,i){if(!t)throw new Error(i||"Assertion failed")}function n(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,i,r){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==i&&"be"!==i||(r=i,i=10),this._init(t||0,i||10,r||"be"))}var e;"object"==typeof t?t.exports=h:i.BN=h,h.BN=h,h.wordSize=26;try{e="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require("buffer").Buffer}catch(B){}function o(t,i){var n=t.charCodeAt(i);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function s(t,i,r){var n=o(t,r);return r-1>=i&&(n|=o(t,r-1)<<4),n}function u(t,i,n,h){for(var e=0,o=0,s=Math.min(t.length,n),u=i;u<s;u++){var a=t.charCodeAt(u)-48;e*=h,o=a>=49?a-49+10:a>=17?a-17+10:a,r(a>=0&&o<h,"Invalid character"),e+=o}return e}function a(t,i){t.words=i.words,t.length=i.length,t.negative=i.negative,t.red=i.red}if(h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,i){return t.cmp(i)>0?t:i},h.min=function(t,i){return t.cmp(i)<0?t:i},h.prototype._init=function(t,i,n){if("number"==typeof t)return this._initNumber(t,i,n);if("object"==typeof t)return this._initArray(t,i,n);"hex"===i&&(i=16),r(i===(0|i)&&i>=2&&i<=36);var h=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(h++,this.negative=1),h<t.length&&(16===i?this._parseHex(t,h,n):(this._parseBase(t,i,h),"le"===n&&this._initArray(this.toArray(),i,n)))},h.prototype._initNumber=function(t,i,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),i,n)},h.prototype._initArray=function(t,i,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var e,o,s=0;if("be"===n)for(h=t.length-1,e=0;h>=0;h-=3)o=t[h]|t[h-1]<<8|t[h-2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if("le"===n)for(h=0,e=0;h<t.length;h+=3)o=t[h]|t[h+1]<<8|t[h+2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this._strip()},h.prototype._parseHex=function(t,i,r){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var h,e=0,o=0;if("be"===r)for(n=t.length-1;n>=i;n-=2)h=s(t,i,n)<<e,this.words[o]|=67108863&h,e>=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;else for(n=(t.length-i)%2==0?i+1:i;n<t.length;n+=2)h=s(t,i,n)<<e,this.words[o]|=67108863&h,e>=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;this._strip()},h.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=i)n++;n--,h=h/i|0;for(var e=t.length-r,o=e%n,s=Math.min(e,e-o)+r,a=0,l=r;l<s;l+=n)a=u(t,l,l+n,i),this.imuln(h),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==o){var m=1;for(a=u(t,l,t.length,i),l=0;l<o;l++)m*=i;this.imuln(m),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this._strip()},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype._move=function(t){a(t,this)},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{h.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(B){h.prototype.inspect=l}else h.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[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,2Line truncated
},{"buffer":"sC8V"}],"hH2J":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer,r=require("bn.js"),u=require("randombytes");function o(e){var u=n(e);return{blinder:u.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:u.invm(e.modulus)}}function n(e){var o,n=e.modulus.byteLength();do{o=new r(u(n))}while(o.cmp(e.modulus)>=0||!o.umod(e.prime1)||!o.umod(e.prime2));return o}function m(u,n){var m=o(n),d=n.modulus.byteLength(),i=new r(u).mul(m.blinder).umod(n.modulus),t=i.toRed(r.mont(n.prime1)),l=i.toRed(r.mont(n.prime2)),b=n.coefficient,f=n.prime1,p=n.prime2,s=t.redPow(n.exponent1).fromRed(),a=l.redPow(n.exponent2).fromRed(),c=s.isub(a).imul(b).umod(f).imul(p);return a.iadd(c).imul(m.unblinder).umod(n.modulus).toArrayLike(e,"be",d)}m.getr=n,module.exports=m;
},{"bn.js":"EOUW","randombytes":"pXr2","buffer":"z1tx"}],"Y4Tp":[function(require,module,exports) {
module.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}};
},{}],"ubVI":[function(require,module,exports) {
"use strict";var r=exports;function e(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if("string"!=typeof r){for(var n=0;n<r.length;n++)t[n]=0|r[n];return t}if("hex"===e){(r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r);for(n=0;n<r.length;n+=2)t.push(parseInt(r[n]+r[n+1],16))}else for(n=0;n<r.length;n++){var o=r.charCodeAt(n),u=o>>8,i=255&o;u?t.push(u,i):t.push(i)}return t}function t(r){return 1===r.length?"0"+r:r}function n(r){for(var e="",n=0;n<r.length;n++)e+=t(r[n].toString(16));return e}r.toArray=e,r.zero2=t,r.toHex=n,r.encode=function(r,e){return"hex"===e?n(r):r};
},{}],"hLmj":[function(require,module,exports) {
"use strict";var r=exports,n=require("bn.js"),t=require("minimalistic-assert"),e=require("minimalistic-crypto-utils");function i(r,n,t){var e=new Array(Math.max(r.bitLength(),t)+1);e.fill(0);for(var i=1<<n+1,o=r.clone(),a=0;a<e.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,e[a]=s,o.iushrn(1)}return e}function o(r,n){var t=[[],[]];r=r.clone(),n=n.clone();for(var e,i=0,o=0;r.cmpn(-i)>0||n.cmpn(-o)>0;){var a,s,u=r.andln(3)+i&3,c=n.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!==(e=r.andln(7)+i&7)&&5!==e||2!==c?u:-u,t[0].push(a),s=0==(1&c)?0:3!==(e=n.andln(7)+o&7)&&5!==e||2!==u?c:-c,t[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),r.iushrn(1),n.iushrn(1)}return t}function a(r,n,t){var e="_"+n;r.prototype[n]=function(){return void 0!==this[e]?this[e]:this[e]=t.call(this)}}function s(n){return"string"==typeof n?r.toArray(n,"hex"):n}function u(r){return new n(r,"hex","le")}r.assert=t,r.toArray=e.toArray,r.zero2=e.zero2,r.toHex=e.toHex,r.encode=e.encode,r.getNAF=i,r.getJSF=o,r.cachedProperty=a,r.parseBytes=s,r.intFromLE=u;
},{"bn.js":"o7RX","minimalistic-assert":"PhA8","minimalistic-crypto-utils":"ubVI"}],"Qo8X":[function(require,module,exports) {
"use strict";var t=require("bn.js"),e=require("../utils"),n=e.getNAF,r=e.getJSF,i=e.assert;function o(e,n){this.type=e,this.p=new t(n.p,16),this.red=n.prime?t.red(n.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=n.n&&new t(n.n,16),this.g=n.g&&this.pointFromJSON(n.g,n.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function s(t,e){this.curve=t,this.type=e,this.precomputed=null}module.exports=o,o.prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(t,e){i(t.precomputed);var r=t._getDoubles(),o=n(e,1,this._bitLength),s=(1<<r.step+1)-(r.step%2==0?2:1);s/=3;var p,h,d=[];for(p=0;p<o.length;p+=r.step){h=0;for(var u=p+r.step-1;u>=p;u--)h=(h<<1)+o[u];d.push(h)}for(var a=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=s;f>0;f--){for(p=0;p<d.length;p++)(h=d[p])===f?l=l.mixedAdd(r.points[p]):h===-f&&(l=l.mixedAdd(r.points[p].neg()));a=a.add(l)}return a.toP()},o.prototype._wnafMul=function(t,e){var r=4,o=t._getNAFPoints(r);r=o.wnd;for(var s=o.points,p=n(e,r,this._bitLength),h=this.jpoint(null,null,null),d=p.length-1;d>=0;d--){for(var u=0;d>=0&&0===p[d];d--)u++;if(d>=0&&u++,h=h.dblp(u),d<0)break;var a=p[d];i(0!==a),h="affine"===t.type?a>0?h.mixedAdd(s[a-1>>1]):h.mixedAdd(s[-a-1>>1].neg()):a>0?h.add(s[a-1>>1]):h.add(s[-a-1>>1].neg())}return"affine"===t.type?h.toP():h},o.prototype._wnafMulAdd=function(t,e,i,o,s){var p,h,d,u=this._wnafT1,a=this._wnafT2,l=this._wnafT3,f=0;for(p=0;p<o;p++){var c=(d=e[p])._getNAFPoints(t);u[p]=c.wnd,a[p]=c.points}for(p=o-1;p>=1;p-=2){var g=p-1,m=p;if(1===u[g]&&1===u[m]){var y=[e[g],null,null,e[m]];0===e[g].y.cmp(e[m].y)?(y[1]=e[g].add(e[m]),y[2]=e[g].toJ().mixedAdd(e[m].neg())):0===e[g].y.cmp(e[m].y.redNeg())?(y[1]=e[g].toJ().mixedAdd(e[m]),y[2]=e[g].add(e[m].neg())):(y[1]=e[g].toJ().mixedAdd(e[m]),y[2]=e[g].toJ().mixedAdd(e[m].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],w=r(i[g],i[m]);for(f=Math.max(w[0].length,f),l[g]=new Array(f),l[m]=new Array(f),h=0;h<f;h++){var b=0|w[0][h],_=0|w[1][h];l[g][h]=v[3*(b+1)+(_+1)],l[m][h]=0,a[g]=y}}else l[g]=n(i[g],u[g],this._bitLength),l[m]=n(i[m],u[m],this._bitLength),f=Math.max(l[g].length,f),f=Math.max(l[m].length,f)}var A=this.jpoint(null,null,null),x=this._wnafT4;for(p=f;p>=0;p--){for(var N=0;p>=0;){var L=!0;for(h=0;h<o;h++)x[h]=0|l[h][p],0!==x[h]&&(L=!1);if(!L)break;N++,p--}if(p>=0&&N++,A=A.dblp(N),p<0)break;for(h=0;h<o;h++){var P=x[h];0!==P&&(P>0?d=a[h][P-1>>1]:P<0&&(d=a[h][-P-1>>1].neg()),A="affine"===d.type?A.mixedAdd(d):A.add(d))}}for(p=0;p<o;p++)a[p]=null;return s?A:A.toP()},o.BasePoint=s,s.prototype.eq=function(){throw new Error("Not implemented")},s.prototype.validate=function(){return this.curve.validate(this)},o.prototype.decodePoint=function(t,n){t=e.toArray(t,n);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?i(t[t.length-1]%2==0):7===t[0]&&i(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},s.prototype.encodeCompressed=function(t){return this.encode(t,!0)},s.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},s.prototype.encode=function(t,n){return e.encode(this._encode(n),t)},s.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},s.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},s.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)r=r.dbl();n.push(r)}return{step:t,points:n}},s.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)e[i]=e[i-1].add(r);return{wnd:t,points:e}},s.prototype._getBeta=function(){return null},s.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e};
},{"bn.js":"o7RX","../utils":"hLmj"}],"JBz3":[function(require,module,exports) {
"use strict";var r=require("../utils"),e=require("bn.js"),t=require("inherits"),d=require("./base"),i=r.assert;function n(r){d.call(this,"short",r),this.a=new e(r.a,16).toRed(this.red),this.b=new e(r.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(r,t,i,n){d.BasePoint.call(this,r,"affine"),null===t&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(t,16),this.y=new e(i,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function s(r,t,i,n){d.BasePoint.call(this,r,"jacobian"),null===t&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(t,16),this.y=new e(i,16),this.z=new e(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}t(n,d),module.exports=n,n.prototype._getEndomorphism=function(r){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,d;if(r.beta)t=new e(r.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(r.lambda)d=new e(r.lambda,16);else{var u=this._getEndoRoots(this.n);0===this.g.mul(u[0]).x.cmp(this.g.x.redMul(t))?d=u[0]:(d=u[1],i(0===this.g.mul(d).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:d,basis:r.basis?r.basis.map(function(r){return{a:new e(r.a,16),b:new e(r.b,16)}}):this._getEndoBasis(d)}}},n.prototype._getEndoRoots=function(r){var t=r===this.p?this.red:e.mont(r),d=new e(2).toRed(t).redInvm(),i=d.redNeg(),n=new e(3).toRed(t).redNeg().redSqrt().redMul(d);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},n.prototype._getEndoBasis=function(r){for(var t,d,i,n,u,s,o,h,p,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),a=r,f=this.n.clone(),c=new e(1),S=new e(0),b=new e(0),v=new e(1),I=0;0!==a.cmpn(0);){var y=f.div(a);h=f.sub(y.mul(a)),p=b.sub(y.mul(c));var A=v.sub(y.mul(S));if(!i&&h.cmp(l)<0)t=o.neg(),d=c,i=h.neg(),n=p;else if(i&&2==++I)break;o=h,f=a,a=h,b=c,c=p,v=S,S=A}u=h.neg(),s=p;var m=i.sqr().add(n.sqr());return u.sqr().add(s.sqr()).cmp(m)>=0&&(u=t,s=d),i.negative&&(i=i.neg(),n=n.neg()),u.negative&&(u=u.neg(),s=s.neg()),[{a:i,b:n},{a:u,b:s}]},n.prototype._endoSplit=function(r){var e=this.endo.basis,t=e[0],d=e[1],i=d.b.mul(r).divRound(this.n),n=t.b.neg().mul(r).divRound(this.n),u=i.mul(t.a),s=n.mul(d.a),o=i.mul(t.b),h=n.mul(d.b);return{k1:r.sub(u).sub(s),k2:o.add(h).neg()}},n.prototype.pointFromX=function(r,t){(r=new e(r,16)).red||(r=r.toRed(this.red));var d=r.redSqr().redMul(r).redIAdd(r.redMul(this.a)).redIAdd(this.b),i=d.redSqrt();if(0!==i.redSqr().redSub(d).cmp(this.zero))throw new Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(r,i)},n.prototype.validate=function(r){if(r.inf)return!0;var e=r.x,t=r.y,d=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(d).redIAdd(this.b);return 0===t.redSqr().redISub(i).cmpn(0)},n.prototype._endoWnafMulAdd=function(r,e,t){for(var d=this._endoWnafT1,i=this._endoWnafT2,n=0;n<r.length;n++){var u=this._endoSplit(e[n]),s=r[n],o=s._getBeta();u.k1.negative&&(u.k1.ineg(),s=s.neg(!0)),u.k2.negative&&(u.k2.ineg(),o=o.neg(!0)),d[2*n]=s,d[2*n+1]=o,i[2*n]=u.k1,i[2*n+1]=u.k2}for(var h=this._wnafMulAdd(1,d,i,2*n,t),p=0;p<2*n;p++)d[p]=null,i[p]=null;return h},t(u,d.BasePoint),n.prototype.point=function(r,e,t){return new u(this,r,e,t)},n.prototype.pointFromJSON=function(r,e){return u.fromJSON(this,r,e)},u.prototype._getBeta=function(){if(this.curve.endo){var r=this.precomputed;if(r&&r.beta)return r.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(r){var t=this.curve,d=function(r){return t.point(r.x.redMul(t.endo.beta),r.y)};r.beta=e,e.precomputed={beta:null,naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(d)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(d)}}}return e}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(r,e,t){"string"==typeof e&&(e=JSON.parse(e));var d=r.point(e[0],e[1],t);if(!e[2])return d;function i(e){return r.point(e[0],e[1],t)}var n=e[2];return d.precomputed={beta:null,doubles:n.doubles&&{step:n.doubles.step,points:[d].concat(n.doubles.points.map(i))},naf:n.naf&&{wnd:n.naf.wnd,points:[d].concat(n.naf.points.map(i))}},d},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toStLine truncated
},{"../utils":"hLmj","bn.js":"o7RX","inherits":"oxwV","./base":"Qo8X"}],"iBD7":[function(require,module,exports) {
"use strict";var t=require("bn.js"),r=require("inherits"),e=require("./base"),i=require("../utils");function o(r){e.call(this,"mont",r),this.a=new t(r.a,16).toRed(this.red),this.b=new t(r.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function n(r,i,o){e.BasePoint.call(this,r,"projective"),null===i&&null===o?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(i,16),this.z=new t(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(o,e),module.exports=o,o.prototype.validate=function(t){var r=t.normalize().x,e=r.redSqr(),i=e.redMul(r).redAdd(e.redMul(this.a)).redAdd(r);return 0===i.redSqrt().redSqr().cmp(i)},r(n,e.BasePoint),o.prototype.decodePoint=function(t,r){return this.point(i.toArray(t,r),1)},o.prototype.point=function(t,r){return new n(this,t,r)},o.prototype.pointFromJSON=function(t){return n.fromJSON(this,t)},n.prototype.precompute=function(){},n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},n.fromJSON=function(t,r){return new n(t,r[0],r[1]||t.one)},n.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},n.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),r=this.x.redSub(this.z).redSqr(),e=t.redSub(r),i=t.redMul(r),o=e.redMul(r.redAdd(this.curve.a24.redMul(e)));return this.curve.point(i,o)},n.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.diffAdd=function(t,r){var e=this.x.redAdd(this.z),i=this.x.redSub(this.z),o=t.x.redAdd(t.z),n=t.x.redSub(t.z).redMul(e),d=o.redMul(i),u=r.z.redMul(n.redAdd(d).redSqr()),s=r.x.redMul(n.redISub(d).redSqr());return this.curve.point(u,s)},n.prototype.mul=function(t){for(var r=t.clone(),e=this,i=this.curve.point(null,null),o=[];0!==r.cmpn(0);r.iushrn(1))o.push(r.andln(1));for(var n=o.length-1;n>=0;n--)0===o[n]?(e=e.diffAdd(i,this),i=i.dbl()):(i=e.diffAdd(i,this),e=e.dbl());return i},n.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},n.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()};
},{"bn.js":"o7RX","inherits":"oxwV","./base":"Qo8X","../utils":"hLmj"}],"zADK":[function(require,module,exports) {
"use strict";var t=require("../utils"),e=require("bn.js"),r=require("inherits"),i=require("./base"),d=t.assert;function s(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,i.call(this,"edwards",t),this.a=new e(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),d(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function u(t,r,d,s,u){i.BasePoint.call(this,t,"projective"),null===r&&null===d&&null===s?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new e(r,16),this.y=new e(d,16),this.z=s?new e(s,16):this.curve.one,this.t=u&&new e(u,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}r(s,i),module.exports=s,s.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},s.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},s.prototype.jpoint=function(t,e,r,i){return this.point(t,e,r,i)},s.prototype.pointFromX=function(t,r){(t=new e(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),d=this.c2.redSub(this.a.redMul(i)),s=this.one.redSub(this.c2.redMul(this.d).redMul(i)),u=d.redMul(s.redInvm()),h=u.redSqrt();if(0!==h.redSqr().redSub(u).cmp(this.zero))throw new Error("invalid point");var n=h.fromRed().isOdd();return(r&&!n||!r&&n)&&(h=h.redNeg()),this.point(t,h)},s.prototype.pointFromY=function(t,r){(t=new e(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),d=i.redSub(this.c2),s=i.redMul(this.d).redMul(this.c2).redSub(this.a),u=d.redMul(s.redInvm());if(0===u.cmp(this.zero)){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var h=u.redSqrt();if(0!==h.redSqr().redSub(u).cmp(this.zero))throw new Error("invalid point");return h.fromRed().isOdd()!==r&&(h=h.redNeg()),this.point(h,t)},s.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),i=e.redMul(this.a).redAdd(r),d=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===i.cmp(d)},r(u,i.BasePoint),s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},s.prototype.point=function(t,e,r,i){return new u(this,t,e,r,i)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(t),d=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),s=i.redAdd(e),u=s.redSub(r),h=i.redSub(e),n=d.redMul(u),o=s.redMul(h),c=d.redMul(h),l=u.redMul(s);return this.curve.point(n,o,l,c)},u.prototype._projDbl=function(){var t,e,r,i,d,s,u=this.x.redAdd(this.y).redSqr(),h=this.x.redSqr(),n=this.y.redSqr();if(this.curve.twisted){var o=(i=this.curve._mulA(h)).redAdd(n);this.zOne?(t=u.redSub(h).redSub(n).redMul(o.redSub(this.curve.two)),e=o.redMul(i.redSub(n)),r=o.redSqr().redSub(o).redSub(o)):(d=this.z.redSqr(),s=o.redSub(d).redISub(d),t=u.redSub(h).redISub(n).redMul(s),e=o.redMul(i.redSub(n)),r=o.redMul(s))}else i=h.redAdd(n),d=this.curve._mulC(this.z).redSqr(),s=i.redSub(d).redSub(d),t=this.curve._mulC(u.redISub(i)).redMul(s),e=this.curve._mulC(i).redMul(h.redISub(n)),r=i.redMul(s);return this.curve.point(t,e,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),d=this.z.redMul(t.z.redAdd(t.z)),s=r.redSub(e),u=d.redSub(i),h=d.redAdd(i),n=r.redAdd(e),o=s.redMul(u),c=h.redMul(n),l=s.redMul(n),p=u.redMul(h);return this.curve.point(o,c,p,l)},u.prototype._projAdd=function(t){var e,r,i=this.z.redMul(t.z),d=i.redSqr(),s=this.x.redMul(t.x),u=this.y.redMul(t.y),h=this.curve.d.redMul(s).redMul(u),n=d.redSub(h),o=d.redAdd(h),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(s).redISub(u),l=i.redMul(n).redMul(c);return this.curve.twisted?(e=i.redMul(o).redMul(u.redSub(this.curve._mulA(s))),r=n.redMul(o)):(e=i.redMul(o).redMul(u.redSub(s)),r=this.curve._mulC(n).redMul(o)),this.curve.point(l,e,r)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){retuLine truncated
},{"../utils":"hLmj","bn.js":"o7RX","inherits":"oxwV","./base":"Qo8X"}],"fmno":[function(require,module,exports) {
"use strict";var r=exports;r.base=require("./base"),r.short=require("./short"),r.mont=require("./mont"),r.edwards=require("./edwards");
},{"./base":"Qo8X","./short":"JBz3","./mont":"iBD7","./edwards":"zADK"}],"nkOw":[function(require,module,exports) {
"use strict";var r=require("minimalistic-assert"),t=require("inherits");function n(r,t){return 55296==(64512&r.charCodeAt(t))&&(!(t<0||t+1>=r.length)&&56320==(64512&r.charCodeAt(t+1)))}function e(r,t){if(Array.isArray(r))return r.slice();if(!r)return[];var e=[];if("string"==typeof r)if(t){if("hex"===t)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),u=0;u<r.length;u+=2)e.push(parseInt(r[u]+r[u+1],16))}else for(var o=0,u=0;u<r.length;u++){var i=r.charCodeAt(u);i<128?e[o++]=i:i<2048?(e[o++]=i>>6|192,e[o++]=63&i|128):n(r,u)?(i=65536+((1023&i)<<10)+(1023&r.charCodeAt(++u)),e[o++]=i>>18|240,e[o++]=i>>12&63|128,e[o++]=i>>6&63|128,e[o++]=63&i|128):(e[o++]=i>>12|224,e[o++]=i>>6&63|128,e[o++]=63&i|128)}else for(u=0;u<r.length;u++)e[u]=0|r[u];return e}function o(r){for(var t="",n=0;n<r.length;n++)t+=s(r[n].toString(16));return t}function u(r){return(r>>>24|r>>>8&65280|r<<8&16711680|(255&r)<<24)>>>0}function i(r,t){for(var n="",e=0;e<r.length;e++){var o=r[e];"little"===t&&(o=u(o)),n+=f(o.toString(16))}return n}function s(r){return 1===r.length?"0"+r:r}function f(r){return 7===r.length?"0"+r:6===r.length?"00"+r:5===r.length?"000"+r:4===r.length?"0000"+r:3===r.length?"00000"+r:2===r.length?"000000"+r:1===r.length?"0000000"+r:r}function c(t,n,e,o){var u=e-n;r(u%4==0);for(var i=new Array(u/4),s=0,f=n;s<i.length;s++,f+=4){var c;c="big"===o?t[f]<<24|t[f+1]<<16|t[f+2]<<8|t[f+3]:t[f+3]<<24|t[f+2]<<16|t[f+1]<<8|t[f],i[s]=c>>>0}return i}function h(r,t){for(var n=new Array(4*r.length),e=0,o=0;e<r.length;e++,o+=4){var u=r[e];"big"===t?(n[o]=u>>>24,n[o+1]=u>>>16&255,n[o+2]=u>>>8&255,n[o+3]=255&u):(n[o+3]=u>>>24,n[o+2]=u>>>16&255,n[o+1]=u>>>8&255,n[o]=255&u)}return n}function l(r,t){return r>>>t|r<<32-t}function p(r,t){return r<<t|r>>>32-t}function a(r,t){return r+t>>>0}function x(r,t,n){return r+t+n>>>0}function g(r,t,n,e){return r+t+n+e>>>0}function _(r,t,n,e,o){return r+t+n+e+o>>>0}function v(r,t,n,e){var o=r[t],u=e+r[t+1]>>>0,i=(u<e?1:0)+n+o;r[t]=i>>>0,r[t+1]=u}function m(r,t,n,e){return(t+e>>>0<t?1:0)+r+n>>>0}function A(r,t,n,e){return t+e>>>0}function y(r,t,n,e,o,u,i,s){var f=0,c=t;return f+=(c=c+e>>>0)<t?1:0,f+=(c=c+u>>>0)<u?1:0,r+n+o+i+(f+=(c=c+s>>>0)<s?1:0)>>>0}function d(r,t,n,e,o,u,i,s){return t+e+u+s>>>0}function C(r,t,n,e,o,u,i,s,f,c){var h=0,l=t;return h+=(l=l+e>>>0)<t?1:0,h+=(l=l+u>>>0)<u?1:0,h+=(l=l+s>>>0)<s?1:0,r+n+o+i+f+(h+=(l=l+c>>>0)<c?1:0)>>>0}function z(r,t,n,e,o,u,i,s,f,c){return t+e+u+s+c>>>0}function b(r,t,n){return(t<<32-n|r>>>n)>>>0}function q(r,t,n){return(r<<32-n|t>>>n)>>>0}function w(r,t,n){return r>>>n}function H(r,t,n){return(r<<32-n|t>>>n)>>>0}exports.inherits=t,exports.toArray=e,exports.toHex=o,exports.htonl=u,exports.toHex32=i,exports.zero2=s,exports.zero8=f,exports.join32=c,exports.split32=h,exports.rotr32=l,exports.rotl32=p,exports.sum32=a,exports.sum32_3=x,exports.sum32_4=g,exports.sum32_5=_,exports.sum64=v,exports.sum64_hi=m,exports.sum64_lo=A,exports.sum64_4_hi=y,exports.sum64_4_lo=d,exports.sum64_5_hi=C,exports.sum64_5_lo=z,exports.rotr64_hi=b,exports.rotr64_lo=q,exports.shr64_hi=w,exports.shr64_lo=H;
},{"minimalistic-assert":"PhA8","inherits":"oxwV"}],"d5ks":[function(require,module,exports) {
"use strict";var t=require("./utils"),i=require("minimalistic-assert");function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}exports.BlockHash=n,n.prototype.update=function(i,n){if(i=t.toArray(i,n),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){var e=(i=this.pending).length%this._delta8;this.pending=i.slice(i.length-e,i.length),0===this.pending.length&&(this.pending=null),i=t.join32(i,0,i.length-e,this.endian);for(var h=0;h<i.length;h+=this._delta32)this._update(i,h,h+this._delta32)}return this},n.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},n.prototype._pad=function(){var t=this.pendingTotal,i=this._delta8,n=i-(t+this.padLength)%i,e=new Array(n+this.padLength);e[0]=128;for(var h=1;h<n;h++)e[h]=0;if(t<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)e[h++]=0;e[h++]=0,e[h++]=0,e[h++]=0,e[h++]=0,e[h++]=t>>>24&255,e[h++]=t>>>16&255,e[h++]=t>>>8&255,e[h++]=255&t}else for(e[h++]=255&t,e[h++]=t>>>8&255,e[h++]=t>>>16&255,e[h++]=t>>>24&255,e[h++]=0,e[h++]=0,e[h++]=0,e[h++]=0,s=8;s<this.padLength;s++)e[h++]=0;return e};
},{"./utils":"nkOw","minimalistic-assert":"PhA8"}],"DO8W":[function(require,module,exports) {
"use strict";var r=require("../utils"),t=r.rotr32;function n(r,t,n,s){return 0===r?e(t,n,s):1===r||3===r?o(t,n,s):2===r?u(t,n,s):void 0}function e(r,t,n){return r&t^~r&n}function u(r,t,n){return r&t^r&n^t&n}function o(r,t,n){return r^t^n}function s(r){return t(r,2)^t(r,13)^t(r,22)}function i(r){return t(r,6)^t(r,11)^t(r,25)}function c(r){return t(r,7)^t(r,18)^r>>>3}function f(r){return t(r,17)^t(r,19)^r>>>10}exports.ft_1=n,exports.ch32=e,exports.maj32=u,exports.p32=o,exports.s0_256=s,exports.s1_256=i,exports.g0_256=c,exports.g1_256=f;
},{"../utils":"nkOw"}],"CO9T":[function(require,module,exports) {
"use strict";var t=require("../utils"),h=require("../common"),i=require("./common"),s=t.rotl32,e=t.sum32,r=t.sum32_5,o=i.ft_1,n=h.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(a,n),module.exports=a,a.blockSize=512,a.outSize=160,a.hmacStrength=80,a.padLength=64,a.prototype._update=function(t,h){for(var i=this.W,n=0;n<16;n++)i[n]=t[h+n];for(;n<i.length;n++)i[n]=s(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var a=this.h[0],c=this.h[1],l=this.h[2],f=this.h[3],m=this.h[4];for(n=0;n<i.length;n++){var p=~~(n/20),g=r(s(a,5),o(p,c,l,f),m,i[n],u[p]);m=f,f=l,l=s(c,30),c=a,a=g}this.h[0]=e(this.h[0],a),this.h[1]=e(this.h[1],c),this.h[2]=e(this.h[2],l),this.h[3]=e(this.h[3],f),this.h[4]=e(this.h[4],m)},a.prototype._digest=function(h){return"hex"===h?t.toHex32(this.h,"big"):t.split32(this.h,"big")};
},{"../utils":"nkOw","../common":"d5ks","./common":"DO8W"}],"S4Of":[function(require,module,exports) {
"use strict";var h=require("../utils"),t=require("../common"),i=require("./common"),s=require("minimalistic-assert"),e=h.sum32,r=h.sum32_4,n=h.sum32_5,o=i.ch32,u=i.maj32,a=i.s0_256,c=i.s1_256,l=i.g0_256,m=i.g1_256,g=t.BlockHash,f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function p(){if(!(this instanceof p))return new p;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=f,this.W=new Array(64)}h.inherits(p,g),module.exports=p,p.blockSize=512,p.outSize=256,p.hmacStrength=192,p.padLength=64,p.prototype._update=function(h,t){for(var i=this.W,g=0;g<16;g++)i[g]=h[t+g];for(;g<i.length;g++)i[g]=r(m(i[g-2]),i[g-7],l(i[g-15]),i[g-16]);var f=this.h[0],p=this.h[1],_=this.h[2],k=this.h[3],d=this.h[4],q=this.h[5],v=this.h[6],b=this.h[7];for(s(this.k.length===i.length),g=0;g<i.length;g++){var x=n(b,c(d),o(d,q,v),this.k[g],i[g]),y=e(a(f),u(f,p,_));b=v,v=q,q=d,d=e(k,x),k=_,_=p,p=f,f=e(x,y)}this.h[0]=e(this.h[0],f),this.h[1]=e(this.h[1],p),this.h[2]=e(this.h[2],_),this.h[3]=e(this.h[3],k),this.h[4]=e(this.h[4],d),this.h[5]=e(this.h[5],q),this.h[6]=e(this.h[6],v),this.h[7]=e(this.h[7],b)},p.prototype._digest=function(t){return"hex"===t?h.toHex32(this.h,"big"):h.split32(this.h,"big")};
},{"../utils":"nkOw","../common":"d5ks","./common":"DO8W","minimalistic-assert":"PhA8"}],"oEQu":[function(require,module,exports) {
"use strict";var t=require("../utils"),i=require("./256");function e(){if(!(this instanceof e))return new e;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(e,i),module.exports=e,e.blockSize=512,e.outSize=224,e.hmacStrength=192,e.padLength=64,e.prototype._digest=function(i){return"hex"===i?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")};
},{"../utils":"nkOw","./256":"S4Of"}],"qupt":[function(require,module,exports) {
"use strict";var t=require("../utils"),h=require("../common"),i=require("minimalistic-assert"),r=t.rotr64_hi,n=t.rotr64_lo,s=t.shr64_hi,e=t.shr64_lo,u=t.sum64,o=t.sum64_hi,a=t.sum64_lo,c=t.sum64_4_hi,f=t.sum64_4_lo,l=t.sum64_5_hi,v=t.sum64_5_lo,_=h.BlockHash,p=[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 m(){if(!(this instanceof m))return new m;_.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=p,this.W=new Array(160)}function g(t,h,i,r,n){var s=t&i^~t&n;return s<0&&(s+=4294967296),s}function k(t,h,i,r,n,s){var e=h&r^~h&s;return e<0&&(e+=4294967296),e}function d(t,h,i,r,n){var s=t&i^t&n^i&n;return s<0&&(s+=4294967296),s}function y(t,h,i,r,n,s){var e=h&r^h&s^r&s;return e<0&&(e+=4294967296),e}function b(t,h){var i=r(t,h,28)^r(h,t,2)^r(h,t,7);return i<0&&(i+=4294967296),i}function q(t,h){var i=n(t,h,28)^n(h,t,2)^n(h,t,7);return i<0&&(i+=4294967296),i}function x(t,h){var i=r(t,h,14)^r(t,h,18)^r(h,t,9);return i<0&&(i+=4294967296),i}function B(t,h){var i=n(t,h,14)^n(t,h,18)^n(h,t,9);return i<0&&(i+=4294967296),i}function S(t,h){var i=r(t,h,1)^r(t,h,8)^s(t,h,7);return i<0&&(i+=4294967296),i}function W(t,h){var i=n(t,h,1)^n(t,h,8)^e(t,h,7);return i<0&&(i+=4294967296),i}function w(t,h){var i=r(t,h,19)^r(h,t,29)^s(t,h,6);return i<0&&(i+=4294967296),i}function z(t,h){var i=n(t,h,19)^n(h,t,29)^e(t,h,6);return i<0&&(i+=4294967296),i}t.inherits(m,_),module.exports=m,m.blockSize=1024,m.outSize=512,m.hmacStrength=192,m.padLength=128,m.prototype._prepareBlock=function(t,h){for(var i=this.W,r=0;r<32;r++)i[r]=t[h+r];for(;r<i.length;r+=2){var n=w(i[r-4],i[r-3]),s=z(i[r-4],i[r-3]),e=i[r-14],u=i[r-13],o=S(i[r-30],i[r-29]),a=W(i[r-30],i[r-29]),l=i[r-32],v=i[r-31];i[r]=c(n,s,e,u,o,a,l,v),i[r+1]=f(n,s,e,u,o,a,l,v)}},m.prototype._update=function(t,h){this._prepareBlock(t,h);var r=this.W,n=this.h[0],s=this.h[1],e=this.h[2],c=this.h[3],f=this.h[4],_=this.h[5],p=this.h[6],m=this.h[7],S=this.h[8],W=this.h[9],w=this.h[10],z=this.h[11],H=this.h[12],A=this.h[13],L=this.h[14],j=this.h[15];i(this.k.length===r.length);for(var C=0;C<r.length;C+=2){var D=L,E=j,F=x(S,W),G=B(S,W),I=g(S,W,w,z,H,A),J=k(S,W,w,z,H,A),K=this.k[C],M=this.k[C+1],N=r[C],O=r[C+1],P=l(D,E,F,G,I,J,K,M,N,O),Q=v(D,E,F,G,I,J,K,M,N,O);D=b(n,s),E=q(n,s),F=d(n,s,e,c,f,_),G=y(n,s,e,c,f,_);var R=o(D,E,F,G),T=a(D,E,F,G);L=H,j=A,H=w,A=z,w=S,z=W,S=o(p,m,P,Q),W=a(m,m,P,Q),p=f,m=_,f=e,_=c,e=n,c=s,n=o(P,Q,R,T),s=a(P,Q,R,T)}u(this.h,0,n,s),u(this.h,2,e,c),u(this.h,4,f,_),u(this.h,6,p,m),u(this.h,8,S,W),u(this.h,10,w,z),u(this.h,12,H,A),u(this.h,14,L,j)},m.prototype._digest=function(h){return"hex"===h?t.toHex32(this.h,"big"):t.split32(this.h,"big")};
},{"../utils":"nkOw","../common":"d5ks","minimalistic-assert":"PhA8"}],"oSXQ":[function(require,module,exports) {
"use strict";var t=require("../utils"),i=require("./512");function e(){if(!(this instanceof e))return new e;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(e,i),module.exports=e,e.blockSize=1024,e.outSize=384,e.hmacStrength=192,e.padLength=128,e.prototype._digest=function(i){return"hex"===i?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")};
},{"../utils":"nkOw","./512":"qupt"}],"yBIv":[function(require,module,exports) {
"use strict";exports.sha1=require("./sha/1"),exports.sha224=require("./sha/224"),exports.sha256=require("./sha/256"),exports.sha384=require("./sha/384"),exports.sha512=require("./sha/512");
},{"./sha/1":"CO9T","./sha/224":"oEQu","./sha/256":"S4Of","./sha/384":"oSXQ","./sha/512":"qupt"}],"hfbr":[function(require,module,exports) {
"use strict";var t=require("./utils"),h=require("./common"),i=t.rotl32,s=t.sum32,e=t.sum32_3,r=t.sum32_4,n=h.BlockHash;function o(){if(!(this instanceof o))return new o;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(t,h,i,s){return t<=15?h^i^s:t<=31?h&i|~h&s:t<=47?(h|~i)^s:t<=63?h&s|i&~s:h^(i|~s)}function c(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function l(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}t.inherits(o,n),exports.ripemd160=o,o.blockSize=512,o.outSize=160,o.hmacStrength=192,o.padLength=64,o.prototype._update=function(t,h){for(var n=this.h[0],o=this.h[1],d=this.h[2],v=this.h[3],_=this.h[4],g=n,x=o,S=d,k=v,q=_,y=0;y<80;y++){var z=s(i(r(n,u(y,o,d,v),t[a[y]+h],c(y)),p[y]),_);n=_,_=v,v=i(d,10),d=o,o=z,z=s(i(r(g,u(79-y,x,S,k),t[f[y]+h],l(y)),m[y]),q),g=q,q=k,k=i(S,10),S=x,x=z}z=e(this.h[1],d,k),this.h[1]=e(this.h[2],v,q),this.h[2]=e(this.h[3],_,g),this.h[3]=e(this.h[4],n,x),this.h[4]=e(this.h[0],o,S),this.h[0]=z},o.prototype._digest=function(h){return"hex"===h?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var a=[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],f=[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],p=[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],m=[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];
},{"./utils":"nkOw","./common":"d5ks"}],"Z8Lw":[function(require,module,exports) {
"use strict";var t=require("./utils"),i=require("minimalistic-assert");function e(i,s,n){if(!(this instanceof e))return new e(i,s,n);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(s,n))}module.exports=e,e.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},e.prototype.update=function(t,i){return this.inner.update(t,i),this},e.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};
},{"./utils":"nkOw","minimalistic-assert":"PhA8"}],"U6lo":[function(require,module,exports) {
var h=exports;h.utils=require("./hash/utils"),h.common=require("./hash/common"),h.sha=require("./hash/sha"),h.ripemd=require("./hash/ripemd"),h.hmac=require("./hash/hmac"),h.sha1=h.sha.sha1,h.sha256=h.sha.sha256,h.sha224=h.sha.sha224,h.sha384=h.sha.sha384,h.sha512=h.sha.sha512,h.ripemd160=h.ripemd.ripemd160;
},{"./hash/utils":"nkOw","./hash/common":"d5ks","./hash/sha":"yBIv","./hash/ripemd":"hfbr","./hash/hmac":"Z8Lw"}],"fjHH":[function(require,module,exports) {
module.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8",Line truncated
},{}],"YeyX":[function(require,module,exports) {
"use strict";var f,e=exports,a=require("hash.js"),b=require("./curve"),c=require("./utils"),d=c.assert;function r(f){"short"===f.type?this.curve=new b.short(f):"edwards"===f.type?this.curve=new b.edwards(f):this.curve=new b.mont(f),this.g=this.curve.g,this.n=this.curve.n,this.hash=f.hash,d(this.g.validate(),"Invalid curve"),d(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(f,a){Object.defineProperty(e,f,{configurable:!0,enumerable:!0,get:function(){var b=new r(a);return Object.defineProperty(e,f,{configurable:!0,enumerable:!0,value:b}),b}})}e.PresetCurve=r,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{f=require("./precomputed/secp256k1")}catch(t){f=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce8Line truncated
},{"hash.js":"U6lo","./curve":"fmno","./utils":"hLmj","./precomputed/secp256k1":"fjHH"}],"kwdl":[function(require,module,exports) {
"use strict";var t=require("hash.js"),e=require("minimalistic-crypto-utils"),i=require("minimalistic-assert");function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var h=e.toArray(t.entropy,t.entropyEnc||"hex"),r=e.toArray(t.nonce,t.nonceEnc||"hex"),n=e.toArray(t.pers,t.persEnc||"hex");i(h.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(h,r,n)}module.exports=s,s.prototype._init=function(t,e,i){var s=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var h=0;h<this.V.length;h++)this.K[h]=0,this.V[h]=1;this._update(s),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new t.hmac(this.hash,this.K)},s.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(t,s,h,r){"string"!=typeof s&&(r=h,h=s,s=null),t=e.toArray(t,s),h=e.toArray(h,r),i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(h||[])),this._reseed=1},s.prototype.generate=function(t,i,s,h){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof i&&(h=s,s=i,i=null),s&&(s=e.toArray(s,h||"hex"),this._update(s));for(var r=[];r.length<t;)this.V=this._hmac().update(this.V).digest(),r=r.concat(this.V);var n=r.slice(0,t);return this._update(s),this._reseed++,e.encode(n,i)};
},{"hash.js":"U6lo","minimalistic-crypto-utils":"ubVI","minimalistic-assert":"PhA8"}],"FvtJ":[function(require,module,exports) {
"use strict";var t=require("bn.js"),i=require("../utils"),e=i.assert;function r(t,i){this.ec=t,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}module.exports=r,r.fromPublic=function(t,i,e){return i instanceof r?i:new r(t,{pub:i,pubEnc:e})},r.fromPrivate=function(t,i,e){return i instanceof r?i:new r(t,{priv:i,privEnc:e})},r.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},r.prototype.getPublic=function(t,i){return"string"==typeof t&&(i=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),i?this.pub.encode(i,t):this.pub},r.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(i,e){this.priv=new t(i,e||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(t,i){if(t.x||t.y)return"mont"===this.ec.curve.type?e(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||e(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,i)},r.prototype.derive=function(t){return t.validate()||e(t.validate(),"public point not validated"),t.mul(this.priv).getX()},r.prototype.sign=function(t,i,e){return this.ec.sign(t,this,i,e)},r.prototype.verify=function(t,i){return this.ec.verify(t,i,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};
},{"bn.js":"o7RX","../utils":"hLmj"}],"vm1O":[function(require,module,exports) {
"use strict";var r=require("bn.js"),e=require("../utils"),t=e.assert;function n(e,a){if(e instanceof n)return e;this._importDER(e,a)||(t(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function i(r,e){var t=r[e.place++];if(!(128&t))return t;var n=15&t;if(0===n||n>4)return!1;for(var a=0,i=0,c=e.place;i<n;i++,c++)a<<=8,a|=r[c],a>>>=0;return!(a<=127)&&(e.place=c,a)}function c(r){for(var e=0,t=r.length-1;!r[e]&&!(128&r[e+1])&&e<t;)e++;return 0===e?r:r.slice(e)}function o(r,e){if(e<128)r.push(e);else{var t=1+(Math.log(e)/Math.LN2>>>3);for(r.push(128|t);--t;)r.push(e>>>(t<<3)&255);r.push(e)}}module.exports=n,n.prototype._importDER=function(t,n){t=e.toArray(t,n);var c=new a;if(48!==t[c.place++])return!1;var o=i(t,c);if(!1===o)return!1;if(o+c.place!==t.length)return!1;if(2!==t[c.place++])return!1;var u=i(t,c);if(!1===u)return!1;var s=t.slice(c.place,u+c.place);if(c.place+=u,2!==t[c.place++])return!1;var l=i(t,c);if(!1===l)return!1;if(t.length!==l+c.place)return!1;var f=t.slice(c.place,l+c.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(s),this.s=new r(f),this.recoveryParam=null,!0},n.prototype.toDER=function(r){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=c(t),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var a=[2];o(a,t.length),(a=a.concat(t)).push(2),o(a,n.length);var i=a.concat(n),u=[48];return o(u,i.length),u=u.concat(i),e.encode(u,r)};
},{"bn.js":"o7RX","../utils":"hLmj"}],"Tbty":[function(require,module,exports) {
"use strict";var e=require("bn.js"),r=require("hmac-drbg"),t=require("../utils"),n=require("../curves"),i=require("brorand"),s=t.assert,o=require("./key"),u=require("./signature");function h(e){if(!(this instanceof h))return new h(e);"string"==typeof e&&(s(Object.prototype.hasOwnProperty.call(n,e),"Unknown curve "+e),e=n[e]),e instanceof n.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}module.exports=h,h.prototype.keyPair=function(e){return new o(this,e)},h.prototype.keyFromPrivate=function(e,r){return o.fromPrivate(this,e,r)},h.prototype.keyFromPublic=function(e,r){return o.fromPublic(this,e,r)},h.prototype.genKeyPair=function(t){t||(t={});for(var n=new r({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||i(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),s=this.n.byteLength(),o=this.n.sub(new e(2));;){var u=new e(n.generate(s));if(!(u.cmp(o)>0))return u.iaddn(1),this.keyFromPrivate(u)}},h.prototype._truncateToN=function(e,r){var t=8*e.byteLength()-this.n.bitLength();return t>0&&(e=e.ushrn(t)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(t,n,i,s){"object"==typeof i&&(s=i,i=null),s||(s={}),n=this.keyFromPrivate(n,i),t=this._truncateToN(new e(t,16));for(var o=this.n.byteLength(),h=n.getPrivate().toArray("be",o),c=t.toArray("be",o),a=new r({hash:this.hash,entropy:h,nonce:c,pers:s.pers,persEnc:s.persEnc||"utf8"}),p=this.n.sub(new e(1)),m=0;;m++){var v=s.k?s.k(m):new e(a.generate(this.n.byteLength()));if(!((v=this._truncateToN(v,!0)).cmpn(1)<=0||v.cmp(p)>=0)){var y=this.g.mul(v);if(!y.isInfinity()){var f=y.getX(),g=f.umod(this.n);if(0!==g.cmpn(0)){var d=v.invm(this.n).mul(g.mul(n.getPrivate()).iadd(t));if(0!==(d=d.umod(this.n)).cmpn(0)){var l=(y.getY().isOdd()?1:0)|(0!==f.cmp(g)?2:0);return s.canonical&&d.cmp(this.nh)>0&&(d=this.n.sub(d),l^=1),new u({r:g,s:d,recoveryParam:l})}}}}}},h.prototype.verify=function(r,t,n,i){r=this._truncateToN(new e(r,16)),n=this.keyFromPublic(n,i);var s=(t=new u(t,"hex")).r,o=t.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var h,c=o.invm(this.n),a=c.mul(r).umod(this.n),p=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(h=this.g.jmulAdd(a,n.getPublic(),p)).isInfinity()&&h.eqXToP(s):!(h=this.g.mulAdd(a,n.getPublic(),p)).isInfinity()&&0===h.getX().umod(this.n).cmp(s)},h.prototype.recoverPubKey=function(r,t,n,i){s((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,h=new e(r),c=t.r,a=t.s,p=1&n,m=n>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&m)throw new Error("Unable to find sencond key candinate");c=m?this.curve.pointFromX(c.add(this.curve.n),p):this.curve.pointFromX(c,p);var v=t.r.invm(o),y=o.sub(h).mul(v).umod(o),f=a.mul(v).umod(o);return this.g.mulAdd(y,c,f)},h.prototype.getKeyRecoveryParam=function(e,r,t,n){if(null!==(r=new u(r,n)).recoveryParam)return r.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(e,r,i)}catch(e){continue}if(s.eq(t))return i}throw new Error("Unable to find valid recovery factor")};
},{"bn.js":"o7RX","hmac-drbg":"kwdl","../utils":"hLmj","../curves":"YeyX","brorand":"En1q","./key":"FvtJ","./signature":"vm1O"}],"uUCk":[function(require,module,exports) {
"use strict";var t=require("../utils"),e=t.assert,s=t.parseBytes,i=t.cachedProperty;function n(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}n.fromPublic=function(t,e){return e instanceof n?e:new n(t,{pub:e})},n.fromSecret=function(t,e){return e instanceof n?e:new n(t,{secret:e})},n.prototype.secret=function(){return this._secret},i(n,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),i(n,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),i(n,"privBytes",function(){var t=this.eddsa,e=this.hash(),s=t.encodingLength-1,i=e.slice(0,t.encodingLength);return i[0]&=248,i[s]&=127,i[s]|=64,i}),i(n,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),i(n,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),i(n,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),n.prototype.sign=function(t){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},n.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},n.prototype.getSecret=function(s){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),s)},n.prototype.getPublic=function(e){return t.encode(this.pubBytes(),e)},module.exports=n;
},{"../utils":"hLmj"}],"Fvj4":[function(require,module,exports) {
"use strict";var e=require("bn.js"),t=require("../utils"),n=t.assert,o=t.cachedProperty,d=t.parseBytes;function i(t,o){this.eddsa=t,"object"!=typeof o&&(o=d(o)),Array.isArray(o)&&(o={R:o.slice(0,t.encodingLength),S:o.slice(t.encodingLength)}),n(o.R&&o.S,"Signature without R or S"),t.isPoint(o.R)&&(this._R=o.R),o.S instanceof e&&(this._S=o.S),this._Rencoded=Array.isArray(o.R)?o.R:o.Rencoded,this._Sencoded=Array.isArray(o.S)?o.S:o.Sencoded}o(i,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(i,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(i,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(i,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},module.exports=i;
},{"bn.js":"o7RX","../utils":"hLmj"}],"td2I":[function(require,module,exports) {
"use strict";var t=require("hash.js"),e=require("../curves"),n=require("../utils"),r=n.assert,i=n.parseBytes,o=require("./key"),s=require("./signature");function u(n){if(r("ed25519"===n,"only tested with ed25519 so far"),!(this instanceof u))return new u(n);n=e[n].curve,this.curve=n,this.g=n.g,this.g.precompute(n.n.bitLength()+1),this.pointClass=n.point().constructor,this.encodingLength=Math.ceil(n.n.bitLength()/8),this.hash=t.sha512}module.exports=u,u.prototype.sign=function(t,e){t=i(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),o=this.g.mul(r),s=this.encodePoint(o),u=this.hashInt(s,n.pubBytes(),t).mul(n.priv()),h=r.add(u).umod(this.curve.n);return this.makeSignature({R:o,S:h,Rencoded:s})},u.prototype.verify=function(t,e,n){t=i(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),o=this.hashInt(e.Rencoded(),r.pubBytes(),t),s=this.g.mul(e.S());return e.R().add(r.pub().mul(o)).eq(s)},u.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return n.intFromLE(t.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(t){return o.fromPublic(this,t)},u.prototype.keyFromSecret=function(t){return o.fromSecret(this,t)},u.prototype.makeSignature=function(t){return t instanceof s?t:new s(this,t)},u.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},u.prototype.decodePoint=function(t){var e=(t=n.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),i=0!=(128&t[e]),o=n.intFromLE(r);return this.curve.pointFromY(o,i)},u.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(t){return n.intFromLE(t)},u.prototype.isPoint=function(t){return t instanceof this.pointClass};
},{"hash.js":"U6lo","../curves":"YeyX","../utils":"hLmj","./key":"uUCk","./signature":"Fvj4"}],"G54Y":[function(require,module,exports) {
"use strict";var e=exports;e.version=require("../package.json").version,e.utils=require("./elliptic/utils"),e.rand=require("brorand"),e.curve=require("./elliptic/curve"),e.curves=require("./elliptic/curves"),e.ec=require("./elliptic/ec"),e.eddsa=require("./elliptic/eddsa");
},{"../package.json":"Y4Tp","./elliptic/utils":"hLmj","brorand":"En1q","./elliptic/curve":"fmno","./elliptic/curves":"YeyX","./elliptic/ec":"Tbty","./elliptic/eddsa":"td2I"}],"IVbQ":[function(require,module,exports) {
var process = require("process");
var e,r=require("process"),t=require("buffer"),n=t.Buffer,o={};for(e in t)t.hasOwnProperty(e)&&"SlowBuffer"!==e&&"Buffer"!==e&&(o[e]=t[e]);var f=o.Buffer={};for(e in n)n.hasOwnProperty(e)&&"allocUnsafe"!==e&&"allocUnsafeSlow"!==e&&(f[e]=n[e]);if(o.Buffer.prototype=n.prototype,f.from&&f.from!==Uint8Array.from||(f.from=function(e,r,t){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return n(e,r,t)}),f.alloc||(f.alloc=function(e,r,t){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=n(e);return r&&0!==r.length?"string"==typeof t?o.fill(r,t):o.fill(r):o.fill(0),o}),!o.kStringMaxLength)try{o.kStringMaxLength=r.binding("buffer").kStringMaxLength}catch(i){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),module.exports=o;
},{"buffer":"z1tx","process":"g5IB"}],"AW2j":[function(require,module,exports) {
"use strict";const t=require("inherits");function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function e(t,r){this.path=t,this.rethrow(r)}exports.Reporter=r,r.prototype.isError=function(t){return t instanceof e},r.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){const r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){const r=this._reporterState;r.path=r.path.slice(0,t-1)},r.prototype.leaveKey=function(t,r,e){const o=this._reporterState;this.exitKey(t),null!==o.obj&&(o.obj[r]=e)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const t=this._reporterState,r=t.obj;return t.obj={},r},r.prototype.leaveObject=function(t){const r=this._reporterState,e=r.obj;return r.obj=t,e},r.prototype.error=function(t){let r;const o=this._reporterState,n=t instanceof e;if(r=n?t:new e(o.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!o.options.partial)throw r;return n||o.errors.push(r),r},r.prototype.wrapResult=function(t){const r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t},t(e,Error),e.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,e),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};
},{"inherits":"oxwV"}],"nnAu":[function(require,module,exports) {
"use strict";const e=require("inherits"),t=require("../base/reporter").Reporter,r=require("safer-buffer").Buffer;function o(e,o){t.call(this,o),r.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function f(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return f.isEncoderBuffer(e)||(e=new f(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=r.byteLength(e);else{if(!r.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}e(o,t),exports.DecoderBuffer=o,o.isDecoderBuffer=function(e){if(e instanceof o)return!0;return"object"==typeof e&&r.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},o.prototype.restore=function(e){const r=new o(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,t.prototype.restore.call(this,e.reporter),r},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const r=new o(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},exports.EncoderBuffer=f,f.isEncoderBuffer=function(e){if(e instanceof f)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},f.prototype.join=function(e,t){return e||(e=r.alloc(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):r.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)};
},{"inherits":"oxwV","../base/reporter":"AW2j","safer-buffer":"IVbQ"}],"dLZ9":[function(require,module,exports) {
"use strict";const e=require("../base/reporter").Reporter,t=require("../base/buffer").EncoderBuffer,n=require("../base/buffer").DecoderBuffer,i=require("minimalistic-assert"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],r=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o),s=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function c(e,t,n){const i={};this._baseState=i,i.name=n,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}module.exports=c;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};l.forEach(function(n){t[n]=e[n]});const n=new this.constructor(t.parent);return n._baseState=t,n},c.prototype._wrap=function(){const e=this._baseState;r.forEach(function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}},this)},c.prototype._init=function(e){const t=this._baseState;i(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),i.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,n=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==n.length&&(i(null===t.children),t.children=n,n.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(i(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach(function(n){n==(0|n)&&(n|=0);const i=e[n];t[i]=n}),t}))},s.forEach(function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(e){c.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return i(null===t.tag),t.tag=e,this._useArgs(n),this}}),c.prototype.use=function(e){i(e);const t=this._baseState;return i(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return i(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return i(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return i(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){const t=this._baseState;return i(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));let o,r=i.default,s=!0,c=null;if(null!==i.key&&(c=e.enterKey(i.key)),i.optional){let n=null;if(null!==i.explicit?n=i.explicit:null!==i.implicit?n=i.implicit:null!==i.tag&&(n=i.tag),null!==n||i.any){if(s=this._peekTag(e,n,i.any),e.isError(s))return s}else{const n=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),s=!0}catch(l){s=!1}e.restore(n)}}if(i.obj&&s&&(o=e.enterObject()),s){if(null!==i.explicit){const t=this._decodeTag(e,i.explicit);if(e.isError(t))return t;e=t}const o=e.offset;if(null===i.use&&null===i.choice){let t;i.any&&(t=e.save());const n=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(n))return n;i.any?r=e.raw(t):e=n}if(t&&t.track&&null!==i.tag&&t.track(e.path(),o,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach(function(n){n._decode(e,t)}),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const o=new n(r);r=this._getUse(i.contains,e._reporterState.objLine truncated
},{"../base/reporter":"AW2j","../base/buffer":"nnAu","minimalistic-assert":"PhA8"}],"kV6m":[function(require,module,exports) {
"use strict";function t(t){const s={};return Object.keys(t).forEach(function(e){(0|e)==e&&(e|=0);const r=t[e];s[r]=e}),s}exports.tagClass={0:"universal",1:"application",2:"context",3:"private"},exports.tagClassByName=t(exports.tagClass),exports.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},exports.tagByName=t(exports.tag);
},{}],"Q8XQ":[function(require,module,exports) {
"use strict";const e=require("inherits"),t=require("safer-buffer").Buffer,r=require("../base/node"),n=require("../constants/der");function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new i,this.tree._init(e.body)}function i(e){r.call(this,"der",e)}function s(e){return e<10?"0"+e:e}function f(e,t,r,o){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),n.tagByName.hasOwnProperty(e))i=n.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return o.error("Unknown tag: "+e);i=e}return i>=31?o.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=n.tagClassByName[r||"universal"]<<6)}module.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},e(i,r),i.prototype._encodeComposite=function(e,r,n,o){const i=f(e,r,n,this.reporter);if(o.length<128){const e=t.alloc(2);return e[0]=i,e[1]=o.length,this._createEncoderBuffer([e,o])}let s=1;for(let t=o.length;t>=256;t>>=8)s++;const u=t.alloc(2+s);u[0]=i,u[1]=128|s;for(let t=1+s,f=o.length;f>0;t--,f>>=8)u[t]=255&f;return this._createEncoderBuffer([u,o])},i.prototype._encodeStr=function(e,r){if("bitstr"===r)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===r){const r=t.alloc(2*e.length);for(let t=0;t<e.length;t++)r.writeUInt16BE(e.charCodeAt(t),2*t);return this._createEncoderBuffer(r)}return"numstr"===r?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===r?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(e):"objDesc"===r?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+r+" unsupported")},i.prototype._encodeObjid=function(e,r,n){if("string"==typeof e){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=r[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let o=0;for(let t=0;t<e.length;t++){let r=e[t];for(o++;r>=128;r>>=7)o++}const i=t.alloc(o);let s=i.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(i[s--]=127&r;(r>>=7)>0;)i[s--]=128|127&r}return this._createEncoderBuffer(i)},i.prototype._encodeTime=function(e,t){let r;const n=new Date(e);return"gentime"===t?r=[s(n.getUTCFullYear()),s(n.getUTCMonth()+1),s(n.getUTCDate()),s(n.getUTCHours()),s(n.getUTCMinutes()),s(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[s(n.getUTCFullYear()%100),s(n.getUTCMonth()+1),s(n.getUTCDate()),s(n.getUTCHours()),s(n.getUTCMinutes()),s(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.prototype._encodeInt=function(e,r){if("string"==typeof e){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if("number"!=typeof e&&!t.isBuffer(e)){const r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=t.from(r)}if(t.isBuffer(e)){let r=e.length;0===e.length&&r++;const n=t.alloc(r);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;const o=new Array(n);for(let t=o.length-1;t>=0;t--)o[t]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(t.from(o))},i.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},i.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},i.prototype._skipDefault=function(e,t,r){const n=this._baseState;let o;if(null===n.default)return!1;const i=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),i.length!==n.defaultBuffer.length)return!1;for(o=0;o<i.length;o++)if(i[o]!==n.defaultBuffer[o])return!1;return!0};
},{"inherits":"oxwV","safer-buffer":"IVbQ","../base/node":"dLZ9","../constants/der":"kV6m"}],"NM8F":[function(require,module,exports) {
"use strict";const e=require("inherits"),t=require("./der");function n(e){t.call(this,e),this.enc="pem"}e(n,t),module.exports=n,n.prototype.encode=function(e,n){const o=t.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+n.label+"-----"];for(let t=0;t<o.length;t+=64)r.push(o.slice(t,t+64));return r.push("-----END "+n.label+"-----"),r.join("\n")};
},{"inherits":"oxwV","./der":"Q8XQ"}],"gn4S":[function(require,module,exports) {
"use strict";const e=exports;e.der=require("./der"),e.pem=require("./pem");
},{"./der":"Q8XQ","./pem":"NM8F"}],"zV5X":[function(require,module,exports) {
"use strict";const t=require("inherits"),r=require("bn.js"),e=require("../base/buffer").DecoderBuffer,i=require("../base/node"),o=require("../constants/der");function n(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new s,this.tree._init(t.body)}function s(t){i.call(this,"der",t)}function c(t,r){let e=t.readUInt8(r);if(t.isError(e))return e;const i=o.tagClass[e>>6],n=0==(32&e);if(31==(31&e)){let i=e;for(e=0;128==(128&i);){if(i=t.readUInt8(r),t.isError(i))return i;e<<=7,e|=127&i}}else e&=31;return{cls:i,primitive:n,tag:e,tagStr:o.tag[e]}}function u(t,r,e){let i=t.readUInt8(e);if(t.isError(i))return i;if(!r&&128===i)return null;if(0==(128&i))return i;const o=127&i;if(o>4)return t.error("length octect is too long");i=0;for(let n=0;n<o;n++){i<<=8;const r=t.readUInt8(e);if(t.isError(r))return r;i|=r}return i}module.exports=n,n.prototype.decode=function(t,r){return e.isDecoderBuffer(t)||(t=new e(t,r)),this.tree._decode(t,r)},t(s,i),s.prototype._peekTag=function(t,r,e){if(t.isEmpty())return!1;const i=t.save(),o=c(t,'Failed to peek tag: "'+r+'"');return t.isError(o)?o:(t.restore(i),o.tag===r||o.tagStr===r||o.tagStr+"of"===r||e)},s.prototype._decodeTag=function(t,r,e){const i=c(t,'Failed to decode tag of "'+r+'"');if(t.isError(i))return i;let o=u(t,i.primitive,'Failed to get length of "'+r+'"');if(t.isError(o))return o;if(!e&&i.tag!==r&&i.tagStr!==r&&i.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(i.primitive||null!==o)return t.skip(o,'Failed to match body of: "'+r+'"');const n=t.save(),s=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(s)?s:(o=t.offset-n.offset,t.restore(n),t.skip(o,'Failed to match body of: "'+r+'"'))},s.prototype._skipUntilEnd=function(t,r){for(;;){const e=c(t,r);if(t.isError(e))return e;const i=u(t,e.primitive,r);if(t.isError(i))return i;let o;if(o=e.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,r),t.isError(o))return o;if("end"===e.tagStr)break}},s.prototype._decodeList=function(t,r,e,i){const o=[];for(;!t.isEmpty();){const r=this._peekTag(t,"end");if(t.isError(r))return r;const n=e.decode(t,"der",i);if(t.isError(n)&&r)break;o.push(n)}return o},s.prototype._decodeStr=function(t,r){if("bitstr"===r){const r=t.readUInt8();return t.isError(r)?r:{unused:r,data:t.raw()}}if("bmpstr"===r){const r=t.raw();if(r.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");let e="";for(let t=0;t<r.length/2;t++)e+=String.fromCharCode(r.readUInt16BE(2*t));return e}if("numstr"===r){const r=t.raw().toString("ascii");return this._isNumstr(r)?r:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===r)return t.raw();if("objDesc"===r)return t.raw();if("printstr"===r){const r=t.raw().toString("ascii");return this._isPrintstr(r)?r:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")},s.prototype._decodeObjid=function(t,r,e){let i;const o=[];let n=0,s=0;for(;!t.isEmpty();)n<<=7,n|=127&(s=t.readUInt8()),0==(128&s)&&(o.push(n),n=0);128&s&&o.push(n);const c=o[0]/40|0,u=o[0]%40;if(i=e?o:[c,u].concat(o.slice(1)),r){let t=r[i.join(" ")];void 0===t&&(t=r[i.join(".")]),void 0!==t&&(i=t)}return i},s.prototype._decodeTime=function(t,r){const e=t.raw().toString();let i,o,n,s,c,u;if("gentime"===r)i=0|e.slice(0,4),o=0|e.slice(4,6),n=0|e.slice(6,8),s=0|e.slice(8,10),c=0|e.slice(10,12),u=0|e.slice(12,14);else{if("utctime"!==r)return t.error("Decoding "+r+" time is not supported yet");i=0|e.slice(0,2),o=0|e.slice(2,4),n=0|e.slice(4,6),s=0|e.slice(6,8),c=0|e.slice(8,10),u=0|e.slice(10,12),i=i<70?2e3+i:1900+i}return Date.UTC(i,o-1,n,s,c,u,0)},s.prototype._decodeNull=function(){return null},s.prototype._decodeBool=function(t){const r=t.readUInt8();return t.isError(r)?r:0!==r},s.prototype._decodeInt=function(t,e){const i=t.raw();let o=new r(i);return e&&(o=e[o.toString(10)]||o),o},s.prototype._use=function(t,r){return"function"==typeof t&&(t=t(r)),t._getDecoder("der").tree};
},{"inherits":"oxwV","bn.js":"o7RX","../base/buffer":"nnAu","../base/node":"dLZ9","../constants/der":"kV6m"}],"mdHg":[function(require,module,exports) {
"use strict";const e=require("inherits"),r=require("safer-buffer").Buffer,t=require("./der");function o(e){t.call(this,e),this.enc="pem"}e(o,t),module.exports=o,o.prototype.decode=function(e,o){const i=e.toString().split(/[\r\n]+/g),n=o.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/;let c=-1,f=-1;for(let r=0;r<i.length;r++){const e=i[r].match(s);if(null!==e&&e[2]===n){if(-1!==c){if("END"!==e[1])break;f=r;break}if("BEGIN"!==e[1])break;c=r}}if(-1===c||-1===f)throw new Error("PEM section not found for: "+n);const l=i.slice(c+1,f).join("");l.replace(/[^a-z0-9+/=]+/gi,"");const a=r.from(l,"base64");return t.prototype.decode.call(this,a,o)};
},{"inherits":"oxwV","safer-buffer":"IVbQ","./der":"zV5X"}],"TKvA":[function(require,module,exports) {
"use strict";const e=exports;e.der=require("./der"),e.pem=require("./pem");
},{"./der":"zV5X","./pem":"mdHg"}],"WF4J":[function(require,module,exports) {
"use strict";const e=require("./encoders"),t=require("./decoders"),r=require("inherits"),n=exports;function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}n.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function n(e){this._initNamed(e,t)}return r(n,e),n.prototype._initNamed=function(t,r){e.call(this,t,r)},new n(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(t[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(e[t])),this.encoders[t]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)};
},{"./encoders":"gn4S","./decoders":"TKvA","inherits":"oxwV"}],"KXE6":[function(require,module,exports) {
"use strict";const e=exports;e.Reporter=require("./reporter").Reporter,e.DecoderBuffer=require("./buffer").DecoderBuffer,e.EncoderBuffer=require("./buffer").EncoderBuffer,e.Node=require("./node");
},{"./reporter":"AW2j","./buffer":"nnAu","./node":"dLZ9"}],"WrAB":[function(require,module,exports) {
"use strict";const e=exports;e._reverse=function(e){const r={};return Object.keys(e).forEach(function(t){(0|t)==t&&(t|=0);const c=e[t];r[c]=t}),r},e.der=require("./der");
},{"./der":"kV6m"}],"Rxwt":[function(require,module,exports) {
"use strict";const e=exports;e.bignum=require("bn.js"),e.define=require("./asn1/api").define,e.base=require("./asn1/base"),e.constants=require("./asn1/constants"),e.decoders=require("./asn1/decoders"),e.encoders=require("./asn1/encoders");
},{"bn.js":"o7RX","./asn1/api":"WF4J","./asn1/base":"KXE6","./asn1/constants":"WrAB","./asn1/decoders":"TKvA","./asn1/encoders":"gn4S"}],"jeqz":[function(require,module,exports) {
"use strict";var e=require("asn1.js"),i=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),t=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),n=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),o=e.define("RelativeDistinguishedName",function(){this.setof(t)}),u=e.define("RDNSequence",function(){this.seqof(o)}),h=e.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),c=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),r=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(h),this.key("validity").use(c),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(n),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(r).optional())}),y=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});module.exports=y;
},{"asn1.js":"Rxwt"}],"E0bn":[function(require,module,exports) {
"use strict";var e=require("asn1.js");exports.certificate=require("./certificate");var i=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});exports.RSAPrivateKey=i;var t=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});exports.RSAPublicKey=t;var s=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});exports.PublicKey=s;var n=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),o=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())});exports.PrivateKey=o;var r=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});exports.EncryptedPrivateKey=r;var y=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});exports.DSAPrivateKey=y,exports.DSAparam=e.define("DSAparam",function(){this.int()});var h=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(a),this.key("publicKey").optional().explicit(1).bitstr())});exports.ECPrivateKey=h;var a=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});exports.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});
},{"asn1.js":"Rxwt","./certificate":"jeqz"}],"KoSE":[function(require,module,exports) {
module.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};
},{}],"RrC8":[function(require,module,exports) {
var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,t=require("evp_bytestokey"),n=require("browserify-aes"),f=require("safe-buffer").Buffer;module.exports=function(s,E){var c,o=s.toString(),i=o.match(e);if(i){var u="aes"+i[1],m=f.from(i[2],"hex"),p=f.from(i[3].replace(/[\r\n]/g,""),"base64"),I=t(E,m.slice(0,8),parseInt(i[1],10)).key,h=[],C=n.createDecipheriv(u,I,m);h.push(C.update(p)),h.push(C.final()),c=f.concat(h)}else{var l=o.match(a);c=f.from(l[2].replace(/[\r\n]/g,""),"base64")}return{tag:o.match(r)[1],data:c}};
},{"evp_bytestokey":"id7t","browserify-aes":"aV4Z","safe-buffer":"gIYa"}],"vlJd":[function(require,module,exports) {
var e=require("./asn1"),r=require("./aesid.json"),a=require("./fixProc"),t=require("browserify-aes"),i=require("pbkdf2"),c=require("safe-buffer").Buffer;function d(r){var t;"object"!=typeof r||c.isBuffer(r)||(t=r.passphrase,r=r.key),"string"==typeof r&&(r=c.from(r));var i,d,u=a(r,t),o=u.tag,n=u.data;switch(o){case"CERTIFICATE":d=e.certificate.decode(n,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(d||(d=e.PublicKey.decode(n,"der")),i=d.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(d.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return d.subjectPrivateKey=d.subjectPublicKey,{type:"ec",data:d};case"1.2.840.10040.4.1":return d.algorithm.params.pub_key=e.DSAparam.decode(d.subjectPublicKey.data,"der"),{type:"dsa",data:d.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":n=s(n=e.EncryptedPrivateKey.decode(n,"der"),t);case"PRIVATE KEY":switch(i=(d=e.PrivateKey.decode(n,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(d.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:d.algorithm.curve,privateKey:e.ECPrivateKey.decode(d.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return d.algorithm.params.priv_key=e.DSAparam.decode(d.subjectPrivateKey,"der"),{type:"dsa",params:d.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(n,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(n,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(n,"der")};case"EC PRIVATE KEY":return{curve:(n=e.ECPrivateKey.decode(n,"der")).parameters.value,privateKey:n.privateKey};default:throw new Error("unknown key type "+o)}}function s(e,a){var d=e.algorithm.decrypt.kde.kdeparams.salt,s=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),u=r[e.algorithm.decrypt.cipher.algo.join(".")],o=e.algorithm.decrypt.cipher.iv,n=e.subjectPrivateKey,p=parseInt(u.split("-")[1],10)/8,y=i.pbkdf2Sync(a,d,s,p,"sha1"),K=t.createDecipheriv(u,y,o),l=[];return l.push(K.update(n)),l.push(K.final()),c.concat(l)}module.exports=d,d.signature=e.signature;
},{"./asn1":"E0bn","./aesid.json":"KoSE","./fixProc":"RrC8","browserify-aes":"aV4Z","pbkdf2":"WuSv","safe-buffer":"gIYa"}],"maRY":[function(require,module,exports) {
module.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};
},{}],"vQ8q":[function(require,module,exports) {
var e=require("safe-buffer").Buffer,r=require("create-hmac"),t=require("browserify-rsa"),n=require("elliptic").ec,a=require("bn.js"),o=require("parse-asn1"),u=require("./curves.json");function i(r,n,a,u,i){var p=o(n);if(p.curve){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong private key type");return c(r,p)}if("dsa"===p.type){if("dsa"!==u)throw new Error("wrong private key type");return d(r,p,a)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong private key type");r=e.concat([i,r]);for(var f=p.modulus.byteLength(),s=[0,1];r.length+s.length+1<f;)s.push(255);s.push(0);for(var l=-1;++l<r.length;)s.push(r[l]);return t(s,p)}function c(r,t){var a=u[t.curve.join(".")];if(!a)throw new Error("unknown curve "+t.curve.join("."));var o=new n(a).keyFromPrivate(t.privateKey).sign(r);return e.from(o.toDER())}function d(e,r,t){for(var n,o=r.params.priv_key,u=r.params.p,i=r.params.q,c=r.params.g,d=new a(0),l=s(e,i).mod(i),h=!1,m=f(o,i,e,t);!1===h;)d=v(c,n=g(i,m,t),u,i),0===(h=n.invm(i).imul(l.add(o.mul(d))).mod(i)).cmpn(0)&&(h=!1,d=new a(0));return p(d,h)}function p(r,t){r=r.toArray(),t=t.toArray(),128&r[0]&&(r=[0].concat(r)),128&t[0]&&(t=[0].concat(t));var n=[48,r.length+t.length+4,2,r.length];return n=n.concat(r,[2,t.length],t),e.from(n)}function f(t,n,a,o){if((t=e.from(t.toArray())).length<n.byteLength()){var u=e.alloc(n.byteLength()-t.length);t=e.concat([u,t])}var i=a.length,c=l(a,n),d=e.alloc(i);d.fill(1);var p=e.alloc(i);return p=r(o,p).update(d).update(e.from([0])).update(t).update(c).digest(),d=r(o,p).update(d).digest(),{k:p=r(o,p).update(d).update(e.from([1])).update(t).update(c).digest(),v:d=r(o,p).update(d).digest()}}function s(e,r){var t=new a(e),n=(e.length<<3)-r.bitLength();return n>0&&t.ishrn(n),t}function l(r,t){r=(r=s(r,t)).mod(t);var n=e.from(r.toArray());if(n.length<t.byteLength()){var a=e.alloc(t.byteLength()-n.length);n=e.concat([a,n])}return n}function g(t,n,a){var o,u;do{for(o=e.alloc(0);8*o.length<t.bitLength();)n.v=r(a,n.k).update(n.v).digest(),o=e.concat([o,n.v]);u=s(o,t),n.k=r(a,n.k).update(n.v).update(e.from([0])).digest(),n.v=r(a,n.k).update(n.v).digest()}while(-1!==u.cmp(t));return u}function v(e,r,t,n){return e.toRed(a.mont(t)).redPow(r).fromRed().mod(n)}module.exports=i,module.exports.getKey=f,module.exports.makeKey=g;
},{"safe-buffer":"gIYa","create-hmac":"Jc9P","browserify-rsa":"hH2J","elliptic":"G54Y","bn.js":"EOUW","parse-asn1":"vlJd","./curves.json":"maRY"}],"SWON":[function(require,module,exports) {
var r=require("safe-buffer").Buffer,e=require("bn.js"),n=require("elliptic").ec,o=require("parse-asn1"),t=require("./curves.json");function a(n,t,a,d,f){var c=o(a);if("ec"===c.type){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");return u(n,t,c)}if("dsa"===c.type){if("dsa"!==d)throw new Error("wrong public key type");return i(n,t,c)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw new Error("wrong public key type");t=r.concat([f,t]);for(var s=c.modulus.byteLength(),m=[1],l=0;t.length+m.length+2<s;)m.push(255),l++;m.push(0);for(var w=-1;++w<t.length;)m.push(t[w]);m=r.from(m);var p=e.mont(c.modulus);n=(n=new e(n).toRed(p)).redPow(new e(c.publicExponent)),n=r.from(n.fromRed().toArray());var h=l<8?1:0;for(s=Math.min(n.length,m.length),n.length!==m.length&&(h=1),w=-1;++w<s;)h|=n[w]^m[w];return 0===h}function u(r,e,o){var a=t[o.data.algorithm.curve.join(".")];if(!a)throw new Error("unknown curve "+o.data.algorithm.curve.join("."));var u=new n(a),i=o.data.subjectPrivateKey.data;return u.verify(e,r,i)}function i(r,n,t){var a=t.data.p,u=t.data.q,i=t.data.g,f=t.data.pub_key,c=o.signature.decode(r,"der"),s=c.s,m=c.r;d(s,u),d(m,u);var l=e.mont(a),w=s.invm(u);return 0===i.toRed(l).redPow(new e(n).mul(w).mod(u)).fromRed().mul(f.toRed(l).redPow(m.mul(w).mod(u)).fromRed()).mod(a).mod(u).cmp(m)}function d(r,e){if(r.cmpn(0)<=0)throw new Error("invalid sig");if(r.cmp(e)>=e)throw new Error("invalid sig")}module.exports=a;
},{"safe-buffer":"gIYa","bn.js":"EOUW","elliptic":"G54Y","parse-asn1":"vlJd","./curves.json":"maRY"}],"VebA":[function(require,module,exports) {
var t=require("safe-buffer").Buffer,e=require("create-hash"),i=require("readable-stream"),r=require("inherits"),s=require("./sign"),h=require("./verify"),n=require("./algorithms.json");function a(t){i.Writable.call(this);var r=n[t];if(!r)throw new Error("Unknown message digest");this._hashType=r.hash,this._hash=e(r.hash),this._tag=r.id,this._signType=r.sign}function o(t){i.Writable.call(this);var r=n[t];if(!r)throw new Error("Unknown message digest");this._hash=e(r.hash),this._tag=r.id,this._signType=r.sign}function u(t){return new a(t)}function f(t){return new o(t)}Object.keys(n).forEach(function(e){n[e].id=t.from(n[e].id,"hex"),n[e.toLowerCase()]=n[e]}),r(a,i.Writable),a.prototype._write=function(t,e,i){this._hash.update(t),i()},a.prototype.update=function(e,i){return"string"==typeof e&&(e=t.from(e,i)),this._hash.update(e),this},a.prototype.sign=function(t,e){this.end();var i=this._hash.digest(),r=s(i,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},r(o,i.Writable),o.prototype._write=function(t,e,i){this._hash.update(t),i()},o.prototype.update=function(e,i){return"string"==typeof e&&(e=t.from(e,i)),this._hash.update(e),this},o.prototype.verify=function(e,i,r){"string"==typeof i&&(i=t.from(i,r)),this.end();var s=this._hash.digest();return h(i,s,e,this._signType,this._tag)},module.exports={Sign:u,Verify:f,createSign:u,createVerify:f};
},{"safe-buffer":"gIYa","create-hash":"CBfM","readable-stream":"R738","inherits":"oxwV","./sign":"vQ8q","./verify":"SWON","./algorithms.json":"X0Jx"}],"Qs7t":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer,t=require("elliptic"),r=require("bn.js");module.exports=function(e){return new n(e)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function n(e){this.curveType=i[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function s(t,r,i){Array.isArray(t)||(t=t.toArray());var n=new e(t);if(i&&n.length<i){var s=new e(i-n.length);s.fill(0),n=e.concat([s,n])}return r?n.toString(r):n}i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,n.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},n.prototype.computeSecret=function(t,r,i){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),s(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},n.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,e)},n.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},n.prototype.setPublicKey=function(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this.keys._importPublic(t),this},n.prototype.setPrivateKey=function(t,i){i=i||"utf8",e.isBuffer(t)||(t=new e(t,i));var n=new r(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this};
},{"elliptic":"G54Y","bn.js":"o7RX","buffer":"z1tx"}],"YSbm":[function(require,module,exports) {
var e=require("create-hash"),r=require("safe-buffer").Buffer;function a(e){var a=r.allocUnsafe(4);return a.writeUInt32BE(e,0),a}module.exports=function(t,u){for(var n,f=r.alloc(0),c=0;f.length<u;)n=a(c++),f=r.concat([f,e("sha1").update(t).update(n).digest()]);return f.slice(0,u)};
},{"create-hash":"CBfM","safe-buffer":"gIYa"}],"KvhV":[function(require,module,exports) {
module.exports=function(r,e){for(var n=r.length,o=-1;++o<n;)r[o]^=e[o];return r};
},{}],"TOWt":[function(require,module,exports) {
var e=require("bn.js"),r=require("safe-buffer").Buffer;function o(o,u){return r.from(o.toRed(e.mont(u.modulus)).redPow(new e(u.publicExponent)).fromRed().toArray())}module.exports=o;
},{"bn.js":"o7RX","safe-buffer":"gIYa"}],"Hv4l":[function(require,module,exports) {
var r=require("parse-asn1"),e=require("randombytes"),o=require("create-hash"),n=require("./mgf"),a=require("./xor"),t=require("bn.js"),u=require("./withPublic"),l=require("browserify-rsa"),i=require("safe-buffer").Buffer;function s(r,u){var l=r.modulus.byteLength(),s=u.length,f=o("sha1").update(i.alloc(0)).digest(),c=f.length,g=2*c;if(s>l-g-2)throw new Error("message too long");var d=i.alloc(l-s-g-2),h=l-c-1,w=e(c),m=a(i.concat([f,d,i.alloc(1,1),u],h),n(w,h)),q=a(w,n(m,c));return new t(i.concat([i.alloc(1),q,m],l))}function f(r,e,o){var n,a=e.length,u=r.modulus.byteLength();if(a>u-11)throw new Error("message too long");return n=o?i.alloc(u-a-3,255):c(u-a-3),new t(i.concat([i.from([0,o?1:2]),n,i.alloc(1),e],u))}function c(r){for(var o,n=i.allocUnsafe(r),a=0,t=e(2*r),u=0;a<r;)u===t.length&&(t=e(2*r),u=0),(o=t[u++])&&(n[a++]=o);return n}module.exports=function(e,o,n){var a;a=e.padding?e.padding:n?1:4;var i,c=r(e);if(4===a)i=s(c,o);else if(1===a)i=f(c,o,n);else{if(3!==a)throw new Error("unknown padding");if((i=new t(o)).cmp(c.modulus)>=0)throw new Error("data too long for modulus")}return n?l(i,c):u(i,c)};
},{"parse-asn1":"vlJd","randombytes":"pXr2","create-hash":"CBfM","./mgf":"YSbm","./xor":"KvhV","bn.js":"o7RX","./withPublic":"TOWt","browserify-rsa":"hH2J","safe-buffer":"gIYa"}],"JjUB":[function(require,module,exports) {
var r=require("parse-asn1"),e=require("./mgf"),n=require("./xor"),t=require("bn.js"),o=require("browserify-rsa"),i=require("create-hash"),u=require("./withPublic"),a=require("safe-buffer").Buffer;function l(r,t){var o=r.modulus.byteLength(),u=i("sha1").update(a.alloc(0)).digest(),l=u.length;if(0!==t[0])throw new Error("decryption error");var f=t.slice(1,l+1),c=t.slice(l+1),s=n(f,e(c,l)),g=n(c,e(s,o-l-1));if(h(u,g.slice(0,l)))throw new Error("decryption error");for(var d=l;0===g[d];)d++;if(1!==g[d++])throw new Error("decryption error");return g.slice(d)}function f(r,e,n){for(var t=e.slice(0,2),o=2,i=0;0!==e[o++];)if(o>=e.length){i++;break}var u=e.slice(2,o-1);if(("0002"!==t.toString("hex")&&!n||"0001"!==t.toString("hex")&&n)&&i++,u.length<8&&i++,i)throw new Error("decryption error");return e.slice(o)}function h(r,e){r=a.from(r),e=a.from(e);var n=0,t=r.length;r.length!==e.length&&(n++,t=Math.min(r.length,e.length));for(var o=-1;++o<t;)n+=r[o]^e[o];return n}module.exports=function(e,n,i){var h;h=e.padding?e.padding:i?1:4;var c,s=r(e),g=s.modulus.byteLength();if(n.length>g||new t(n).cmp(s.modulus)>=0)throw new Error("decryption error");c=i?u(new t(n),s):o(n,s);var d=a.alloc(g-c.length);if(c=a.concat([d,c],g),4===h)return l(s,c);if(1===h)return f(s,c,i);if(3===h)return c;throw new Error("unknown padding")};
},{"parse-asn1":"vlJd","./mgf":"YSbm","./xor":"KvhV","bn.js":"o7RX","browserify-rsa":"hH2J","create-hash":"CBfM","./withPublic":"TOWt","safe-buffer":"gIYa"}],"KGZW":[function(require,module,exports) {
exports.publicEncrypt=require("./publicEncrypt"),exports.privateDecrypt=require("./privateDecrypt"),exports.privateEncrypt=function(r,p){return exports.publicEncrypt(r,p,!0)},exports.publicDecrypt=function(r,p){return exports.privateDecrypt(r,p,!0)};
},{"./publicEncrypt":"Hv4l","./privateDecrypt":"JjUB"}],"EJeA":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var r=arguments[3],e=require("process");function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=require("safe-buffer"),o=require("randombytes"),f=t.Buffer,u=t.kMaxLength,i=r.crypto||r.msCrypto,a=Math.pow(2,32)-1;function s(r,e){if("number"!=typeof r||r!=r)throw new TypeError("offset must be a number");if(r>a||r<0)throw new TypeError("offset must be a uint32");if(r>u||r>e)throw new RangeError("offset out of range")}function m(r,e,n){if("number"!=typeof r||r!=r)throw new TypeError("size must be a number");if(r>a||r<0)throw new TypeError("size must be a uint32");if(r+e>n||r>u)throw new RangeError("buffer too small")}function l(e,n,t,o){if(!(f.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)o=n,n=0,t=e.length;else if("function"==typeof t)o=t,t=e.length-n;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return s(n,e.length),m(t,n,e.length),p(e,n,t,o)}function p(r,n,t,o){var f=r.buffer,u=new Uint8Array(f,n,t);return i.getRandomValues(u),o?void e.nextTick(function(){o(null,r)}):r}function w(e,n,t){if(void 0===n&&(n=0),!(f.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return s(n,e.length),void 0===t&&(t=e.length-n),m(t,n,e.length),p(e,n,t)}i&&i.getRandomValues?(exports.randomFill=l,exports.randomFillSync=w):(exports.randomFill=n,exports.randomFillSync=n);
},{"safe-buffer":"gIYa","randombytes":"pXr2","process":"g5IB"}],"WnIQ":[function(require,module,exports) {
"use strict";exports.randomBytes=exports.rng=exports.pseudoRandomBytes=exports.prng=require("randombytes"),exports.createHash=exports.Hash=require("create-hash"),exports.createHmac=exports.Hmac=require("create-hmac");var e=require("browserify-sign/algos"),r=Object.keys(e),t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);exports.getHashes=function(){return t};var i=require("pbkdf2");exports.pbkdf2=i.pbkdf2,exports.pbkdf2Sync=i.pbkdf2Sync;var p=require("browserify-cipher");exports.Cipher=p.Cipher,exports.createCipher=p.createCipher,exports.Cipheriv=p.Cipheriv,exports.createCipheriv=p.createCipheriv,exports.Decipher=p.Decipher,exports.createDecipher=p.createDecipher,exports.Decipheriv=p.Decipheriv,exports.createDecipheriv=p.createDecipheriv,exports.getCiphers=p.getCiphers,exports.listCiphers=p.listCiphers;var s=require("diffie-hellman");exports.DiffieHellmanGroup=s.DiffieHellmanGroup,exports.createDiffieHellmanGroup=s.createDiffieHellmanGroup,exports.getDiffieHellman=s.getDiffieHellman,exports.createDiffieHellman=s.createDiffieHellman,exports.DiffieHellman=s.DiffieHellman;var a=require("browserify-sign");exports.createSign=a.createSign,exports.Sign=a.Sign,exports.createVerify=a.createVerify,exports.Verify=a.Verify,exports.createECDH=require("create-ecdh");var o=require("public-encrypt");exports.publicEncrypt=o.publicEncrypt,exports.privateEncrypt=o.privateEncrypt,exports.publicDecrypt=o.publicDecrypt,exports.privateDecrypt=o.privateDecrypt;var c=require("randomfill");exports.randomFill=c.randomFill,exports.randomFillSync=c.randomFillSync,exports.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},exports.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6};
},{"randombytes":"pXr2","create-hash":"CBfM","create-hmac":"Jc9P","browserify-sign/algos":"Iwnn","pbkdf2":"WuSv","browserify-cipher":"po04","diffie-hellman":"Ej94","browserify-sign":"VebA","create-ecdh":"Qs7t","public-encrypt":"KGZW","randomfill":"EJeA"}],"LdGf":[function(require,module,exports) {
var define;
var global = arguments[3];
var e,n=arguments[3];!function(n){"use strict";var t,r,i,o=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,u=Math.ceil,s=Math.floor,f=" not a boolean or binary digit",l="rounding mode",c="number type has more than 15 significant digits",a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",h=1e14,g=14,p=9007199254740991,m=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,w=1e9;function v(e){var n=0|e;return e>0||e===n?n:n-1}function N(e){for(var n,t,r=1,i=e.length,o=e[0]+"";r<i;){for(n=e[r++]+"",t=g-n.length;t--;n="0"+n);o+=n}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function b(e,n){var t,r,i=e.c,o=n.c,u=e.s,s=n.s,f=e.e,l=n.e;if(!u||!s)return null;if(t=i&&!i[0],r=o&&!o[0],t||r)return t?r?0:-s:u;if(u!=s)return u;if(t=u<0,r=f==l,!i||!o)return r?0:!i^t?1:-1;if(!r)return f>l^t?1:-1;for(s=(f=i.length)<(l=o.length)?f:l,u=0;u<s;u++)if(i[u]!=o[u])return i[u]>o[u]^t?1:-1;return f==l?0:f>l^t?1:-1}function O(e,n,t){return(e=E(e))>=n&&e<=t}function y(e){return"[object Array]"==Object.prototype.toString.call(e)}function S(e,n,t){for(var r,i,o=[0],u=0,s=e.length;u<s;){for(i=o.length;i--;o[i]*=n);for(o[r=0]+=a.indexOf(e.charAt(u++));r<o.length;r++)o[r]>t-1&&(null==o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/t|0,o[r]%=t)}return o.reverse()}function R(e,n){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(n<0?"e":"e+")+n}function A(e,n){var t,r;if(n<0){for(r="0.";++n;r+="0");e=r+e}else if(++n>(t=e.length)){for(r="0",n-=t;--n;r+="0");e+=r}else n<t&&(e=e.slice(0,n)+"."+e.slice(n));return e}function E(e){return(e=parseFloat(e))<0?u(e):s(e)}if(t=function e(n){var t,D,_,x,F,I,L,U=0,C=J.prototype,M=new J(1),T=20,q=4,P=-7,k=21,B=-1e7,$=1e7,G=!0,z=K,j=!1,H=1,V=100,W={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};function J(e,n){var t,r,u,s,f,l,h=this;if(!(h instanceof J))return G&&ee(26,"constructor call without new",e),new J(e,n);if(null!=n&&z(n,2,64,U,"base")){if(l=e+"",10==(n|=0))return ne(h=new J(e instanceof J?e:l),T+h.e+1,q);if((s="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(t="["+a.slice(0,n)+"]+")+"(?:\\."+t+")?$",n<37?"i":"").test(l))return i(h,l,s,n);s?(h.s=1/e<0?(l=l.slice(1),-1):1,G&&l.replace(/^0\.0*|\./,"").length>15&&ee(U,c,e),s=!1):h.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1,l=X(l,10,n,h.s)}else{if(e instanceof J)return h.s=e.s,h.e=e.e,h.c=(e=e.c)?e.slice():e,void(U=0);if((s="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(r=0,u=e;u>=10;u/=10,r++);return h.e=r,h.c=[e],void(U=0)}l=e+""}else{if(!o.test(l=e+""))return i(h,l,s);h.s=45===l.charCodeAt(0)?(l=l.slice(1),-1):1}}for((r=l.indexOf("."))>-1&&(l=l.replace(".","")),(u=l.search(/e/i))>0?(r<0&&(r=u),r+=+l.slice(u+1),l=l.substring(0,u)):r<0&&(r=l.length),u=0;48===l.charCodeAt(u);u++);for(f=l.length;48===l.charCodeAt(--f););if(l=l.slice(u,f+1))if(f=l.length,s&&G&&f>15&&ee(U,c,h.s*e),(r=r-u-1)>$)h.c=h.e=null;else if(r<B)h.c=[h.e=0];else{if(h.e=r,h.c=[],u=(r+1)%g,r<0&&(u+=g),u<f){for(u&&h.c.push(+l.slice(0,u)),f-=g;u<f;)h.c.push(+l.slice(u,u+=g));l=l.slice(u),u=g-l.length}else u-=f;for(;u--;l+="0");h.c.push(+l)}else h.c=[h.e=0];U=0}function X(e,n,r,i){var o,u,s,f,l,c,h,g=e.indexOf("."),p=T,m=q;for(r<37&&(e=e.toLowerCase()),g>=0&&(s=V,V=0,e=e.replace(".",""),l=(h=new J(r)).pow(e.length-g),V=s,h.c=S(A(N(l.c),l.e),10,n),h.e=h.c.length),u=s=(c=S(e,r,n)).length;0==c[--s];c.pop());if(!c[0])return"0";if(g<0?--u:(l.c=c,l.e=u,l.s=i,c=(l=t(l,h,p,m,n)).c,f=l.r,u=l.e),g=c[o=u+p+1],s=n/2,f=f||o<0||null!=c[o+1],f=m<4?(null!=g||f)&&(0==m||m==(l.s<0?3:2)):g>s||g==s&&(4==m||f||6==m&&1&c[o-1]||m==(l.s<0?8:7)),o<1||!c[0])e=f?A("1",-p):"0";else{if(c.length=o,f)for(--n;++c[--o]>n;)c[o]=0,o||(++u,c.unshift(1));for(s=c.length;!c[--s];);for(g=0,e="";g<=s;e+=a.charAt(c[g++]));e=A(e,u)}return e}function Y(e,n,t,r){var i,o,u,s,f;if(t=null!=t&&z(t,0,8,r,l)?0|t:q,!e.c)return e.toString();if(i=e.c[0],u=e.e,null==n)f=N(e.c),f=19==r||24==r&&u<=P?R(f,u):A(f,u);else if(o=(e=ne(new J(e),n,t)).e,s=(f=N(e.c)).length,19==r||24==r&&(n<=o||o<=P)){for(;s<n;f+="0",s++);f=R(f,o)}else if(n-=u,f=A(f,o),o+1>s){if(--n>0)for(f+=".";n--;f+="0");}else if((n+=o-s)>0)for(o+1==s&&(f+=".");n--;f+="0");return e.s<0&&i?"-"+f:f}function Z(e,n){var t,r,i=0;for(y(e[0])&&(e=e[0]),t=new J(e[0]);++i<e.length;){if(!(r=new J(e[i])).s){t=r;break}n.call(t,r)&&(t=r)}return t}function K(e,n,t,r,i){return(e<n||e>t||e!=E(e))&&ee(r,(i||"decimal places")+(e<n||e>t?" out of range":" not an integer"),e),!0}function Q(e,n,t){for(var r=1,i=n.length;!n[--i];n.pop());for(i=n[0];i>=10;i/=10,r++);return(t=r+t*g-1)>$?e.c=e.e=null:t<B?e.c=[e.e=0]:(e.e=t,e.c=n),e}function ee(e,n,t){var r=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+n+": "+t);throw r.name="BigNumber Error",U=0,r}function ne(e,n,t,r){var i,o,Line truncated
},{"crypto":"WnIQ"}],"eUTO":[function(require,module,exports) {
var define;
var t;!function(n,i){"object"==typeof exports?module.exports=exports=i():"function"==typeof t&&t.amd?t([],i):n.CryptoJS=i()}(this,function(){var t=t||function(t,n){var i=Object.create||function(){function t(){}return function(n){var i;return t.prototype=n,i=new t,t.prototype=null,i}}(),r={},e=r.lib={},o=e.Base={extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=e.WordArray=o.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=null!=n?n:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var n=this.words,i=t.words,r=this.sigBytes,e=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<e;o++){var s=i[o>>>2]>>>24-o%4*8&255;n[r+o>>>2]|=s<<24-(r+o)%4*8}else for(o=0;o<e;o+=4)n[r+o>>>2]=i[o>>>2];return this.sigBytes+=e,this},clamp:function(){var n=this.words,i=this.sigBytes;n[i>>>2]&=4294967295<<32-i%4*8,n.length=t.ceil(i/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(n){for(var i,r=[],e=function(n){n=n;var i=987654321,r=4294967295;return function(){var e=((i=36969*(65535&i)+(i>>16)&r)<<16)+(n=18e3*(65535&n)+(n>>16)&r)&r;return e/=4294967296,(e+=.5)*(t.random()>.5?1:-1)}},o=0;o<n;o+=4){var a=e(4294967296*(i||t.random()));i=987654071*a(),r.push(4294967296*a()|0)}return new s.init(r,n)}}),a=r.enc={},c=a.Hex={stringify:function(t){for(var n=t.words,i=t.sigBytes,r=[],e=0;e<i;e++){var o=n[e>>>2]>>>24-e%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var n=t.length,i=[],r=0;r<n;r+=2)i[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(i,n/2)}},u=a.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,r=[],e=0;e<i;e++){var o=n[e>>>2]>>>24-e%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,i=[],r=0;r<n;r++)i[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(i,n)}},f=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(n){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},h=e.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var i=this._data,r=i.words,e=i.sigBytes,o=this.blockSize,a=e/(4*o),c=(a=n?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*o,u=t.min(4*c,e);if(c){for(var f=0;f<c;f+=o)this._doProcessBlock(r,f);var h=r.splice(0,c);i.sigBytes-=u}return new s.init(h,u)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(e.Hasher=h.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(n,i){return new t.init(i).finalize(n)}},_createHmacHelper:function(t){return function(n,i){return new p.HMAC.init(t,i).finalize(n)}}}),r.algo={});return r}(Math);return t});
},{}],"M95N":[function(require,module,exports) {
var define;
var t;!function(r,o){"object"==typeof exports?module.exports=exports=o(require("./core")):"function"==typeof t&&t.amd?t(["./core"],o):o(r.CryptoJS)}(this,function(t){var r,o,e,n,i;return o=(r=t).lib,e=o.Base,n=o.WordArray,(i=r.x64={}).Word=e.extend({init:function(t,r){this.high=t,this.low=r}}),i.WordArray=e.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=null!=r?r:8*t.length},toX32:function(){for(var t=this.words,r=t.length,o=[],e=0;e<r;e++){var i=t[e];o.push(i.high),o.push(i.low)}return n.create(o,this.sigBytes)},clone:function(){for(var t=e.clone.call(this),r=t.words=this.words.slice(0),o=r.length,n=0;n<o;n++)r[n]=r[n].clone();return t}}),t});
},{"./core":"eUTO"}],"X5QY":[function(require,module,exports) {
var define;
var r;!function(n,t){"object"==typeof exports?module.exports=exports=t(require("./core")):"function"==typeof r&&r.amd?r(["./core"],t):t(n.CryptoJS)}(this,function(r){return function(){if("function"==typeof ArrayBuffer){var n=r.lib.WordArray,t=n.init;(n.init=function(r){if(r instanceof ArrayBuffer&&(r=new Uint8Array(r)),(r instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&r instanceof Uint8ClampedArray||r instanceof Int16Array||r instanceof Uint16Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array)&&(r=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)),r instanceof Uint8Array){for(var n=r.byteLength,e=[],a=0;a<n;a++)e[a>>>2]|=r[a]<<24-a%4*8;t.call(this,e,n)}else t.apply(this,arguments)}).prototype=n}}(),r.lib.WordArray});
},{"./core":"eUTO"}],"xZKj":[function(require,module,exports) {
var define;
var r;!function(t,n){"object"==typeof exports?module.exports=exports=n(require("./core")):"function"==typeof r&&r.amd?r(["./core"],n):n(t.CryptoJS)}(this,function(r){return function(){var t=r,n=t.lib.WordArray,o=t.enc;o.Utf16=o.Utf16BE={stringify:function(r){for(var t=r.words,n=r.sigBytes,o=[],e=0;e<n;e+=2){var f=t[e>>>2]>>>16-e%4*8&65535;o.push(String.fromCharCode(f))}return o.join("")},parse:function(r){for(var t=r.length,o=[],e=0;e<t;e++)o[e>>>1]|=r.charCodeAt(e)<<16-e%2*16;return n.create(o,2*t)}};function e(r){return r<<8&4278255360|r>>>8&16711935}o.Utf16LE={stringify:function(r){for(var t=r.words,n=r.sigBytes,o=[],f=0;f<n;f+=2){var i=e(t[f>>>2]>>>16-f%4*8&65535);o.push(String.fromCharCode(i))}return o.join("")},parse:function(r){for(var t=r.length,o=[],f=0;f<t;f++)o[f>>>1]|=e(r.charCodeAt(f)<<16-f%2*16);return n.create(o,2*t)}}}(),r.enc.Utf16});
},{"./core":"eUTO"}],"pJaz":[function(require,module,exports) {
var define;
var r;!function(e,t){"object"==typeof exports?module.exports=exports=t(require("./core")):"function"==typeof r&&r.amd?r(["./core"],t):t(e.CryptoJS)}(this,function(r){return function(){var e=r,t=e.lib.WordArray;e.enc.Base64={stringify:function(r){var e=r.words,t=r.sigBytes,a=this._map;r.clamp();for(var o=[],n=0;n<t;n+=3)for(var i=(e[n>>>2]>>>24-n%4*8&255)<<16|(e[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|e[n+2>>>2]>>>24-(n+2)%4*8&255,c=0;c<4&&n+.75*c<t;c++)o.push(a.charAt(i>>>6*(3-c)&63));var f=a.charAt(64);if(f)for(;o.length%4;)o.push(f);return o.join("")},parse:function(r){var e=r.length,a=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var n=0;n<a.length;n++)o[a.charCodeAt(n)]=n}var i=a.charAt(64);if(i){var c=r.indexOf(i);-1!==c&&(e=c)}return function(r,e,a){for(var o=[],n=0,i=0;i<e;i++)if(i%4){var c=a[r.charCodeAt(i-1)]<<i%4*2,f=a[r.charCodeAt(i)]>>>6-i%4*2;o[n>>>2]|=(c|f)<<24-n%4*8,n++}return t.create(o,n)}(r,e,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64});
},{"./core":"eUTO"}],"GVDV":[function(require,module,exports) {
var define;
var r;!function(t,n){"object"==typeof exports?module.exports=exports=n(require("./core")):"function"==typeof r&&r.amd?r(["./core"],n):n(t.CryptoJS)}(this,function(r){return function(t){var n=r,e=n.lib,o=e.WordArray,a=e.Hasher,s=n.algo,i=[];!function(){for(var r=0;r<64;r++)i[r]=4294967296*t.abs(t.sin(r+1))|0}();var c=s.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,t){for(var n=0;n<16;n++){var e=t+n,o=r[e];r[e]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,s=r[t+0],c=r[t+1],l=r[t+2],_=r[t+3],d=r[t+4],p=r[t+5],y=r[t+6],D=r[t+7],H=r[t+8],M=r[t+9],g=r[t+10],m=r[t+11],w=r[t+12],x=r[t+13],B=r[t+14],b=r[t+15],j=a[0],k=a[1],q=a[2],z=a[3];j=h(j,k,q,z,s,7,i[0]),z=h(z,j,k,q,c,12,i[1]),q=h(q,z,j,k,l,17,i[2]),k=h(k,q,z,j,_,22,i[3]),j=h(j,k,q,z,d,7,i[4]),z=h(z,j,k,q,p,12,i[5]),q=h(q,z,j,k,y,17,i[6]),k=h(k,q,z,j,D,22,i[7]),j=h(j,k,q,z,H,7,i[8]),z=h(z,j,k,q,M,12,i[9]),q=h(q,z,j,k,g,17,i[10]),k=h(k,q,z,j,m,22,i[11]),j=h(j,k,q,z,w,7,i[12]),z=h(z,j,k,q,x,12,i[13]),q=h(q,z,j,k,B,17,i[14]),j=u(j,k=h(k,q,z,j,b,22,i[15]),q,z,c,5,i[16]),z=u(z,j,k,q,y,9,i[17]),q=u(q,z,j,k,m,14,i[18]),k=u(k,q,z,j,s,20,i[19]),j=u(j,k,q,z,p,5,i[20]),z=u(z,j,k,q,g,9,i[21]),q=u(q,z,j,k,b,14,i[22]),k=u(k,q,z,j,d,20,i[23]),j=u(j,k,q,z,M,5,i[24]),z=u(z,j,k,q,B,9,i[25]),q=u(q,z,j,k,_,14,i[26]),k=u(k,q,z,j,H,20,i[27]),j=u(j,k,q,z,x,5,i[28]),z=u(z,j,k,q,l,9,i[29]),q=u(q,z,j,k,D,14,i[30]),j=f(j,k=u(k,q,z,j,w,20,i[31]),q,z,p,4,i[32]),z=f(z,j,k,q,H,11,i[33]),q=f(q,z,j,k,m,16,i[34]),k=f(k,q,z,j,B,23,i[35]),j=f(j,k,q,z,c,4,i[36]),z=f(z,j,k,q,d,11,i[37]),q=f(q,z,j,k,D,16,i[38]),k=f(k,q,z,j,g,23,i[39]),j=f(j,k,q,z,x,4,i[40]),z=f(z,j,k,q,s,11,i[41]),q=f(q,z,j,k,_,16,i[42]),k=f(k,q,z,j,y,23,i[43]),j=f(j,k,q,z,M,4,i[44]),z=f(z,j,k,q,w,11,i[45]),q=f(q,z,j,k,b,16,i[46]),j=v(j,k=f(k,q,z,j,l,23,i[47]),q,z,s,6,i[48]),z=v(z,j,k,q,D,10,i[49]),q=v(q,z,j,k,B,15,i[50]),k=v(k,q,z,j,p,21,i[51]),j=v(j,k,q,z,w,6,i[52]),z=v(z,j,k,q,_,10,i[53]),q=v(q,z,j,k,g,15,i[54]),k=v(k,q,z,j,c,21,i[55]),j=v(j,k,q,z,H,6,i[56]),z=v(z,j,k,q,b,10,i[57]),q=v(q,z,j,k,y,15,i[58]),k=v(k,q,z,j,x,21,i[59]),j=v(j,k,q,z,d,6,i[60]),z=v(z,j,k,q,m,10,i[61]),q=v(q,z,j,k,l,15,i[62]),k=v(k,q,z,j,M,21,i[63]),a[0]=a[0]+j|0,a[1]=a[1]+k|0,a[2]=a[2]+q|0,a[3]=a[3]+z|0},_doFinalize:function(){var r=this._data,n=r.words,e=8*this._nDataBytes,o=8*r.sigBytes;n[o>>>5]|=128<<24-o%32;var a=t.floor(e/4294967296),s=e;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r.sigBytes=4*(n.length+1),this._process();for(var i=this._hash,c=i.words,h=0;h<4;h++){var u=c[h];c[h]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return i},clone:function(){var r=a.clone.call(this);return r._hash=this._hash.clone(),r}});function h(r,t,n,e,o,a,s){var i=r+(t&n|~t&e)+o+s;return(i<<a|i>>>32-a)+t}function u(r,t,n,e,o,a,s){var i=r+(t&e|n&~e)+o+s;return(i<<a|i>>>32-a)+t}function f(r,t,n,e,o,a,s){var i=r+(t^n^e)+o+s;return(i<<a|i>>>32-a)+t}function v(r,t,n,e,o,a,s){var i=r+(n^(t|~e))+o+s;return(i<<a|i>>>32-a)+t}n.MD5=a._createHelper(c),n.HmacMD5=a._createHmacHelper(c)}(Math),r.MD5});
},{"./core":"eUTO"}],"yxyM":[function(require,module,exports) {
var define;
var e;!function(t,r){"object"==typeof exports?module.exports=exports=r(require("./core")):"function"==typeof e&&e.amd?e(["./core"],r):r(t.CryptoJS)}(this,function(e){var t,r,o,s,a,n,i;return r=(t=e).lib,o=r.WordArray,s=r.Hasher,a=t.algo,n=[],i=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,o=r[0],s=r[1],a=r[2],i=r[3],h=r[4],c=0;c<80;c++){if(c<16)n[c]=0|e[t+c];else{var l=n[c-3]^n[c-8]^n[c-14]^n[c-16];n[c]=l<<1|l>>>31}var _=(o<<5|o>>>27)+h+n[c];_+=c<20?1518500249+(s&a|~s&i):c<40?1859775393+(s^a^i):c<60?(s&a|s&i|a&i)-1894007588:(s^a^i)-899497514,h=i,i=a,a=s<<30|s>>>2,s=o,o=_}r[0]=r[0]+o|0,r[1]=r[1]+s|0,r[2]=r[2]+a|0,r[3]=r[3]+i|0,r[4]=r[4]+h|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(o+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=s._createHelper(i),t.HmacSHA1=s._createHmacHelper(i),e.SHA1});
},{"./core":"eUTO"}],"MS2N":[function(require,module,exports) {
var define;
var r;!function(t,e){"object"==typeof exports?module.exports=exports=e(require("./core")):"function"==typeof r&&r.amd?r(["./core"],e):e(t.CryptoJS)}(this,function(r){return function(t){var e=r,o=e.lib,n=o.WordArray,s=o.Hasher,i=e.algo,a=[],c=[];!function(){function r(r){for(var e=t.sqrt(r),o=2;o<=e;o++)if(!(r%o))return!1;return!0}function e(r){return 4294967296*(r-(0|r))|0}for(var o=2,n=0;n<64;)r(o)&&(n<8&&(a[n]=e(t.pow(o,.5))),c[n]=e(t.pow(o,1/3)),n++),o++}();var h=[],f=i.SHA256=s.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(r,t){for(var e=this._hash.words,o=e[0],n=e[1],s=e[2],i=e[3],a=e[4],f=e[5],u=e[6],l=e[7],_=0;_<64;_++){if(_<16)h[_]=0|r[t+_];else{var p=h[_-15],d=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=h[_-2],H=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;h[_]=d+h[_-7]+H+h[_-16]}var y=o&n^o&s^n&s,w=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),A=l+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&f^~a&u)+c[_]+h[_];l=u,u=f,f=a,a=i+A|0,i=s,s=n,n=o,o=A+(w+y)|0}e[0]=e[0]+o|0,e[1]=e[1]+n|0,e[2]=e[2]+s|0,e[3]=e[3]+i|0,e[4]=e[4]+a|0,e[5]=e[5]+f|0,e[6]=e[6]+u|0,e[7]=e[7]+l|0},_doFinalize:function(){var r=this._data,e=r.words,o=8*this._nDataBytes,n=8*r.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=t.floor(o/4294967296),e[15+(n+64>>>9<<4)]=o,r.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var r=s.clone.call(this);return r._hash=this._hash.clone(),r}});e.SHA256=s._createHelper(f),e.HmacSHA256=s._createHmacHelper(f)}(Math),r.SHA256});
},{"./core":"eUTO"}],"OEnX":[function(require,module,exports) {
var define;
var e;!function(r,t,o){"object"==typeof exports?module.exports=exports=t(require("./core"),require("./sha256")):"function"==typeof e&&e.amd?e(["./core","./sha256"],t):t(r.CryptoJS)}(this,function(e){var r,t,o,i,n;return t=(r=e).lib.WordArray,o=r.algo,i=o.SHA256,n=o.SHA224=i.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}}),r.SHA224=i._createHelper(n),r.HmacSHA224=i._createHmacHelper(n),e.SHA224});
},{"./core":"eUTO","./sha256":"MS2N"}],"xA62":[function(require,module,exports) {
var define;
var i;!function(h,o,e){"object"==typeof exports?module.exports=exports=o(require("./core"),require("./x64-core")):"function"==typeof i&&i.amd?i(["./core","./x64-core"],o):o(h.CryptoJS)}(this,function(i){return function(){var h=i,o=h.lib.Hasher,e=h.x64,t=e.Word,n=e.WordArray,r=h.algo;function l(){return t.create.apply(t,arguments)}var a=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],w=[];!function(){for(var i=0;i<80;i++)w[i]=l()}();var s=r.SHA512=o.extend({_doReset:function(){this._hash=new n.init([new t.init(1779033703,4089235720),new t.init(3144134277,2227873595),new t.init(1013904242,4271175723),new t.init(2773480762,1595750129),new t.init(1359893119,2917565137),new t.init(2600822924,725511199),new t.init(528734635,4215389547),new t.init(1541459225,327033209)])},_doProcessBlock:function(i,h){for(var o=this._hash.words,e=o[0],t=o[1],n=o[2],r=o[3],l=o[4],s=o[5],c=o[6],g=o[7],u=e.high,f=e.low,_=t.high,v=t.low,d=n.high,p=n.low,H=r.high,y=r.low,x=l.high,S=l.low,A=s.high,m=s.low,B=c.high,b=c.low,k=g.high,q=g.low,z=u,W=f,j=_,C=v,D=d,F=p,J=H,M=y,P=x,R=S,X=A,E=m,G=B,I=b,K=k,L=q,N=0;N<80;N++){var O=w[N];if(N<16)var Q=O.high=0|i[h+2*N],T=O.low=0|i[h+2*N+1];else{var U=w[N-15],V=U.high,Y=U.low,Z=(V>>>1|Y<<31)^(V>>>8|Y<<24)^V>>>7,$=(Y>>>1|V<<31)^(Y>>>8|V<<24)^(Y>>>7|V<<25),ii=w[N-2],hi=ii.high,oi=ii.low,ei=(hi>>>19|oi<<13)^(hi<<3|oi>>>29)^hi>>>6,ti=(oi>>>19|hi<<13)^(oi<<3|hi>>>29)^(oi>>>6|hi<<26),ni=w[N-7],ri=ni.high,li=ni.low,ai=w[N-16],wi=ai.high,si=ai.low;Q=(Q=(Q=Z+ri+((T=$+li)>>>0<$>>>0?1:0))+ei+((T=T+ti)>>>0<ti>>>0?1:0))+wi+((T=T+si)>>>0<si>>>0?1:0);O.high=Q,O.low=T}var ci,gi=P&X^~P&G,ui=R&E^~R&I,fi=z&j^z&D^j&D,_i=W&C^W&F^C&F,vi=(z>>>28|W<<4)^(z<<30|W>>>2)^(z<<25|W>>>7),di=(W>>>28|z<<4)^(W<<30|z>>>2)^(W<<25|z>>>7),pi=(P>>>14|R<<18)^(P>>>18|R<<14)^(P<<23|R>>>9),Hi=(R>>>14|P<<18)^(R>>>18|P<<14)^(R<<23|P>>>9),yi=a[N],xi=yi.high,Si=yi.low,Ai=K+pi+((ci=L+Hi)>>>0<L>>>0?1:0),mi=di+_i;K=G,L=I,G=X,I=E,X=P,E=R,P=J+(Ai=(Ai=(Ai=Ai+gi+((ci=ci+ui)>>>0<ui>>>0?1:0))+xi+((ci=ci+Si)>>>0<Si>>>0?1:0))+Q+((ci=ci+T)>>>0<T>>>0?1:0))+((R=M+ci|0)>>>0<M>>>0?1:0)|0,J=D,M=F,D=j,F=C,j=z,C=W,z=Ai+(vi+fi+(mi>>>0<di>>>0?1:0))+((W=ci+mi|0)>>>0<ci>>>0?1:0)|0}f=e.low=f+W,e.high=u+z+(f>>>0<W>>>0?1:0),v=t.low=v+C,t.high=_+j+(v>>>0<C>>>0?1:0),p=n.low=p+F,n.high=d+D+(p>>>0<F>>>0?1:0),y=r.low=y+M,r.high=H+J+(y>>>0<M>>>0?1:0),S=l.low=S+R,l.high=x+P+(S>>>0<R>>>0?1:0),m=s.low=m+E,s.high=A+X+(m>>>0<E>>>0?1:0),b=c.low=b+I,c.high=B+G+(b>>>0<I>>>0?1:0),q=g.low=q+L,g.high=k+K+(q>>>0<L>>>0?1:0)},_doFinalize:function(){var i=this._data,h=i.words,o=8*this._nDataBytes,e=8*i.sigBytes;return h[e>>>5]|=128<<24-e%32,h[30+(e+128>>>10<<5)]=Math.floor(o/4294967296),h[31+(e+128>>>10<<5)]=o,i.sigBytes=4*h.length,this._process(),this._hash.toX32()},clone:function(){var i=o.clone.call(this);return i._hash=this._hash.clone(),i},blockSize:32});h.SHA512=o._createHelper(s),h.HmacSHA512=o._createHmacHelper(s)}(),i.SHA512});
},{"./core":"eUTO","./x64-core":"M95N"}],"YkB8":[function(require,module,exports) {
var define;
var e;!function(i,n,t){"object"==typeof exports?module.exports=exports=n(require("./core"),require("./x64-core"),require("./sha512")):"function"==typeof e&&e.amd?e(["./core","./x64-core","./sha512"],n):n(i.CryptoJS)}(this,function(e){var i,n,t,r,o,a,c;return n=(i=e).x64,t=n.Word,r=n.WordArray,o=i.algo,a=o.SHA512,c=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=a._createHelper(c),i.HmacSHA384=a._createHmacHelper(c),e.SHA384});
},{"./core":"eUTO","./x64-core":"M95N","./sha512":"xA62"}],"F6e3":[function(require,module,exports) {
var define;
var r;!function(o,t,e){"object"==typeof exports?module.exports=exports=t(require("./core"),require("./x64-core")):"function"==typeof r&&r.amd?r(["./core","./x64-core"],t):t(o.CryptoJS)}(this,function(r){return function(o){var t=r,e=t.lib,i=e.WordArray,h=e.Hasher,a=t.x64.Word,n=t.algo,s=[],c=[],f=[];!function(){for(var r=1,o=0,t=0;t<24;t++){s[r+5*o]=(t+1)*(t+2)/2%64;var e=(2*r+3*o)%5;r=o%5,o=e}for(r=0;r<5;r++)for(o=0;o<5;o++)c[r+5*o]=o+(2*r+3*o)%5*5;for(var i=1,h=0;h<24;h++){for(var n=0,l=0,g=0;g<7;g++){if(1&i){var v=(1<<g)-1;v<32?l^=1<<v:n^=1<<v-32}128&i?i=i<<1^113:i<<=1}f[h]=a.create(n,l)}}();var l=[];!function(){for(var r=0;r<25;r++)l[r]=a.create()}();var g=n.SHA3=h.extend({cfg:h.cfg.extend({outputLength:512}),_doReset:function(){for(var r=this._state=[],o=0;o<25;o++)r[o]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(r,o){for(var t=this._state,e=this.blockSize/2,i=0;i<e;i++){var h=r[o+2*i],a=r[o+2*i+1];h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(B=t[i]).high^=a,B.low^=h}for(var n=0;n<24;n++){for(var g=0;g<5;g++){for(var v=0,u=0,w=0;w<5;w++){v^=(B=t[g+5*w]).high,u^=B.low}var p=l[g];p.high=v,p.low=u}for(g=0;g<5;g++){var _=l[(g+4)%5],d=l[(g+1)%5],H=d.high,x=d.low;for(v=_.high^(H<<1|x>>>31),u=_.low^(x<<1|H>>>31),w=0;w<5;w++){(B=t[g+5*w]).high^=v,B.low^=u}}for(var S=1;S<25;S++){var y=(B=t[S]).high,b=B.low,A=s[S];if(A<32)v=y<<A|b>>>32-A,u=b<<A|y>>>32-A;else v=b<<A-32|y>>>64-A,u=y<<A-32|b>>>64-A;var k=l[c[S]];k.high=v,k.low=u}var m=l[0],z=t[0];m.high=z.high,m.low=z.low;for(g=0;g<5;g++)for(w=0;w<5;w++){var B=t[S=g+5*w],L=l[S],q=l[(g+1)%5+5*w],W=l[(g+2)%5+5*w];B.high=L.high^~q.high&W.high,B.low=L.low^~q.low&W.low}B=t[0];var j=f[n];B.high^=j.high,B.low^=j.low}},_doFinalize:function(){var r=this._data,t=r.words,e=(this._nDataBytes,8*r.sigBytes),h=32*this.blockSize;t[e>>>5]|=1<<24-e%32,t[(o.ceil((e+1)/h)*h>>>5)-1]|=128,r.sigBytes=4*t.length,this._process();for(var a=this._state,n=this.cfg.outputLength/8,s=n/8,c=[],f=0;f<s;f++){var l=a[f],g=l.high,v=l.low;g=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8),v=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),c.push(v),c.push(g)}return new i.init(c,n)},clone:function(){for(var r=h.clone.call(this),o=r._state=this._state.slice(0),t=0;t<25;t++)o[t]=o[t].clone();return r}});t.SHA3=h._createHelper(g),t.HmacSHA3=h._createHmacHelper(g)}(Math),r.SHA3});
},{"./core":"eUTO","./x64-core":"M95N"}],"Y8cR":[function(require,module,exports) {
var define;
var r;!function(e,t){"object"==typeof exports?module.exports=exports=t(require("./core")):"function"==typeof r&&r.amd?r(["./core"],t):t(e.CryptoJS)}(this,function(r){return function(e){var t=r,o=t.lib,n=o.WordArray,s=o.Hasher,a=t.algo,c=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),i=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),l=a.RIPEMD160=s.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,e){for(var t=0;t<16;t++){var o=e+t,n=r[o];r[o]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s,a,l,H,M,P,R,g,m,x,B,E=this._hash.words,I=f.words,b=d.words,j=c.words,k=i.words,q=u.words,z=h.words;P=s=E[0],R=a=E[1],g=l=E[2],m=H=E[3],x=M=E[4];for(t=0;t<80;t+=1)B=s+r[e+j[t]]|0,B+=t<16?_(a,l,H)+I[0]:t<32?p(a,l,H)+I[1]:t<48?v(a,l,H)+I[2]:t<64?w(a,l,H)+I[3]:y(a,l,H)+I[4],B=(B=D(B|=0,q[t]))+M|0,s=M,M=H,H=D(l,10),l=a,a=B,B=P+r[e+k[t]]|0,B+=t<16?y(R,g,m)+b[0]:t<32?w(R,g,m)+b[1]:t<48?v(R,g,m)+b[2]:t<64?p(R,g,m)+b[3]:_(R,g,m)+b[4],B=(B=D(B|=0,z[t]))+x|0,P=x,x=m,m=D(g,10),g=R,R=B;B=E[1]+l+m|0,E[1]=E[2]+H+x|0,E[2]=E[3]+M+P|0,E[3]=E[4]+s+R|0,E[4]=E[0]+a+g|0,E[0]=B},_doFinalize:function(){var r=this._data,e=r.words,t=8*this._nDataBytes,o=8*r.sigBytes;e[o>>>5]|=128<<24-o%32,e[14+(o+64>>>9<<4)]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),r.sigBytes=4*(e.length+1),this._process();for(var n=this._hash,s=n.words,a=0;a<5;a++){var c=s[a];s[a]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return n},clone:function(){var r=s.clone.call(this);return r._hash=this._hash.clone(),r}});function _(r,e,t){return r^e^t}function p(r,e,t){return r&e|~r&t}function v(r,e,t){return(r|~e)^t}function w(r,e,t){return r&t|e&~t}function y(r,e,t){return r^(e|~t)}function D(r,e){return r<<e|r>>>32-e}t.RIPEMD160=s._createHelper(l),t.HmacRIPEMD160=s._createHmacHelper(l)}(Math),r.RIPEMD160});
},{"./core":"eUTO"}],"IKo8":[function(require,module,exports) {
var define;
var e;!function(t,i){"object"==typeof exports?module.exports=exports=i(require("./core")):"function"==typeof e&&e.amd?e(["./core"],i):i(t.CryptoJS)}(this,function(e){var t,i,s;i=(t=e).lib.Base,s=t.enc.Utf8,t.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var i=e.blockSize,r=4*i;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var n=this._oKey=t.clone(),o=this._iKey=t.clone(),a=n.words,h=o.words,c=0;c<i;c++)a[c]^=1549556828,h[c]^=909522486;n.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,i=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(i))}})});
},{"./core":"eUTO"}],"NfQY":[function(require,module,exports) {
var define;
var e;!function(r,t,o){"object"==typeof exports?module.exports=exports=t(require("./core"),require("./sha1"),require("./hmac")):"function"==typeof e&&e.amd?e(["./core","./sha1","./hmac"],t):t(r.CryptoJS)}(this,function(e){var r,t,o,i,a,n,c,s;return t=(r=e).lib,o=t.Base,i=t.WordArray,a=r.algo,n=a.SHA1,c=a.HMAC,s=a.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:n,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,r){for(var t=this.cfg,o=c.create(t.hasher,e),a=i.create(),n=i.create([1]),s=a.words,f=n.words,u=t.keySize,h=t.iterations;s.length<u;){var d=o.update(r).finalize(n);o.reset();for(var p=d.words,g=p.length,l=d,y=1;y<h;y++){l=o.finalize(l),o.reset();for(var m=l.words,v=0;v<g;v++)p[v]^=m[v]}a.concat(d),f[0]++}return a.sigBytes=4*u,a}}),r.PBKDF2=function(e,r,t){return s.create(t).compute(e,r)},e.PBKDF2});
},{"./core":"eUTO","./sha1":"yxyM","./hmac":"IKo8"}],"W9aa":[function(require,module,exports) {
var define;
var e;!function(t,r,i){"object"==typeof exports?module.exports=exports=r(require("./core"),require("./sha1"),require("./hmac")):"function"==typeof e&&e.amd?e(["./core","./sha1","./hmac"],r):r(t.CryptoJS)}(this,function(e){var t,r,i,o,a,n,c;return r=(t=e).lib,i=r.Base,o=r.WordArray,a=t.algo,n=a.MD5,c=a.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:n,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=r.hasher.create(),a=o.create(),n=a.words,c=r.keySize,s=r.iterations;n.length<c;){u&&i.update(u);var u=i.update(e).finalize(t);i.reset();for(var f=1;f<s;f++)u=i.finalize(u),i.reset();a.concat(u)}return a.sigBytes=4*c,a}}),t.EvpKDF=function(e,t,r){return c.create(r).compute(e,t)},e.EvpKDF});
},{"./core":"eUTO","./sha1":"yxyM","./hmac":"IKo8"}],"uCLB":[function(require,module,exports) {
var define;
var e;!function(t,r,i){"object"==typeof exports?module.exports=exports=r(require("./core"),require("./evpkdf")):"function"==typeof e&&e.amd?e(["./core","./evpkdf"],r):r(t.CryptoJS)}(this,function(e){e.lib.Cipher||function(t){var r=e,i=r.lib,n=i.Base,c=i.WordArray,o=i.BufferedBlockAlgorithm,s=r.enc,a=(s.Utf8,s.Base64),f=r.algo.EvpKDF,p=i.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?x:v}return function(t){return{encrypt:function(r,i,n){return e(i).encrypt(t,r,i,n)},decrypt:function(r,i,n){return e(i).decrypt(t,r,i,n)}}}}()}),h=(i.StreamCipher=p.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),r.mode={}),d=i.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),u=h.CBC=function(){var e=d.extend();function r(e,r,i){var n=this._iv;if(n){var c=n;this._iv=t}else c=this._prevBlock;for(var o=0;o<i;o++)e[r+o]^=c[o]}return e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize;r.call(this,e,t,n),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+n)}}),e.Decryptor=e.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize,c=e.slice(t,t+n);i.decryptBlock(e,t),r.call(this,e,t,n),this._prevBlock=c}}),e}(),l=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,i=r-e.sigBytes%r,n=i<<24|i<<16|i<<8|i,o=[],s=0;s<i;s+=4)o.push(n);var a=c.create(o,i);e.concat(a)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},_=(i.BlockCipher=p.extend({cfg:p.cfg.extend({mode:u,padding:l}),reset:function(){p.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),i.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=c.create([1398893684,1701076831]).concat(r).concat(t);else i=t;return i.toString(a)},parse:function(e){var t=a.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=c.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return _.create({ciphertext:t,salt:i})}},v=i.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var n=e.createEncryptor(r,i),c=n.finalize(t),o=n.cfg;return _.create({ciphertext:c,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(r,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),k=(r.kdf={}).OpenSSL={execute:function(e,t,r,i){i||(i=c.random(8));var n=f.create({keySize:t+r}).compute(e,i),o=c.create(n.words.slice(t),4*r);return n.sigBytes=4*t,_.create({key:n,iv:o,salt:i})}},x=i.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:k}),encrypt:function(e,t,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize);i.iv=n.iv;var c=v.encrypt.call(this,e,t,n.key,i);return c.mixIn(n),c},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var n=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);return i.iv=n.iv,v.decrypt.call(this,e,t,n.key,i)}})}()});
},{"./core":"eUTO","./evpkdf":"W9aa"}],"dnNm":[function(require,module,exports) {
var define;
var e;!function(r,o,c){"object"==typeof exports?module.exports=exports=o(require("./core"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(e){return e.mode.CFB=function(){var r=e.lib.BlockCipherMode.extend();function o(e,r,o,c){var i=this._iv;if(i){var t=i.slice(0);this._iv=void 0}else t=this._prevBlock;c.encryptBlock(t,0);for(var n=0;n<o;n++)e[r+n]^=t[n]}return r.Encryptor=r.extend({processBlock:function(e,r){var c=this._cipher,i=c.blockSize;o.call(this,e,r,i,c),this._prevBlock=e.slice(r,r+i)}}),r.Decryptor=r.extend({processBlock:function(e,r){var c=this._cipher,i=c.blockSize,t=e.slice(r,r+i);o.call(this,e,r,i,c),this._prevBlock=t}}),r}(),e.mode.CFB});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"iAFA":[function(require,module,exports) {
var define;
var e;!function(r,o,t){"object"==typeof exports?module.exports=exports=o(require("./core"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(e){var r,o;return e.mode.CTR=(r=e.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(e,r){var o=this._cipher,t=o.blockSize,c=this._iv,i=this._counter;c&&(i=this._counter=c.slice(0),this._iv=void 0);var n=i.slice(0);o.encryptBlock(n,0),i[t-1]=i[t-1]+1|0;for(var p=0;p<t;p++)e[r+p]^=n[p]}}),r.Decryptor=o,r),e.mode.CTR});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"Oy1Y":[function(require,module,exports) {
var define;
var e;!function(r,o,t){"object"==typeof exports?module.exports=exports=o(require("./core"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(e){return e.mode.CTRGladman=function(){var r=e.lib.BlockCipherMode.extend();function o(e){if(255==(e>>24&255)){var r=e>>16&255,o=e>>8&255,t=255&e;255===r?(r=0,255===o?(o=0,255===t?t=0:++t):++o):++r,e=0,e+=r<<16,e+=o<<8,e+=t}else e+=1<<24;return e}var t=r.Encryptor=r.extend({processBlock:function(e,r){var t=this._cipher,c=t.blockSize,i=this._iv,n=this._counter;i&&(n=this._counter=i.slice(0),this._iv=void 0),function(e){0===(e[0]=o(e[0]))&&(e[1]=o(e[1]))}(n);var u=n.slice(0);t.encryptBlock(u,0);for(var p=0;p<c;p++)e[r+p]^=u[p]}});return r.Decryptor=t,r}(),e.mode.CTRGladman});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"HXdk":[function(require,module,exports) {
var define;
var e;!function(r,o,t){"object"==typeof exports?module.exports=exports=o(require("./core"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(e){var r,o;return e.mode.OFB=(r=e.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(e,r){var o=this._cipher,t=o.blockSize,i=this._iv,c=this._keystream;i&&(c=this._keystream=i.slice(0),this._iv=void 0),o.encryptBlock(c,0);for(var p=0;p<t;p++)e[r+p]^=c[p]}}),r.Decryptor=o,r),e.mode.OFB});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"QDS2":[function(require,module,exports) {
var define;
var e;!function(o,r,c){"object"==typeof exports?module.exports=exports=r(require("./core"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./cipher-core"],r):r(o.CryptoJS)}(this,function(e){var o;return e.mode.ECB=((o=e.lib.BlockCipherMode.extend()).Encryptor=o.extend({processBlock:function(e,o){this._cipher.encryptBlock(e,o)}}),o.Decryptor=o.extend({processBlock:function(e,o){this._cipher.decryptBlock(e,o)}}),o),e.mode.ECB});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"Hi7U":[function(require,module,exports) {
var define;
var e;!function(r,o,t){"object"==typeof exports?module.exports=exports=o(require("./core"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(e){return e.pad.AnsiX923={pad:function(e,r){var o=e.sigBytes,t=4*r,i=t-o%t,s=o+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var r=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=r}},e.pad.Ansix923});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"HttL":[function(require,module,exports) {
var define;
var r;!function(o,e,t){"object"==typeof exports?module.exports=exports=e(require("./core"),require("./cipher-core")):"function"==typeof r&&r.amd?r(["./core","./cipher-core"],e):e(o.CryptoJS)}(this,function(r){return r.pad.Iso10126={pad:function(o,e){var t=4*e,c=t-o.sigBytes%t;o.concat(r.lib.WordArray.random(c-1)).concat(r.lib.WordArray.create([c<<24],1))},unpad:function(r){var o=255&r.words[r.sigBytes-1>>>2];r.sigBytes-=o}},r.pad.Iso10126});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"letQ":[function(require,module,exports) {
var define;
var e;!function(o,r,t){"object"==typeof exports?module.exports=exports=r(require("./core"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./cipher-core"],r):r(o.CryptoJS)}(this,function(e){return e.pad.Iso97971={pad:function(o,r){o.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(o,r)},unpad:function(o){e.pad.ZeroPadding.unpad(o),o.sigBytes--}},e.pad.Iso97971});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"aieV":[function(require,module,exports) {
var define;
var e;!function(r,o,t){"object"==typeof exports?module.exports=exports=o(require("./core"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./cipher-core"],o):o(r.CryptoJS)}(this,function(e){return e.pad.ZeroPadding={pad:function(e,r){var o=4*r;e.clamp(),e.sigBytes+=o-(e.sigBytes%o||o)},unpad:function(e){for(var r=e.words,o=e.sigBytes-1;!(r[o>>>2]>>>24-o%4*8&255);)o--;e.sigBytes=o+1}},e.pad.ZeroPadding});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"GO8Y":[function(require,module,exports) {
var define;
var o;!function(e,r,n){"object"==typeof exports?module.exports=exports=r(require("./core"),require("./cipher-core")):"function"==typeof o&&o.amd?o(["./core","./cipher-core"],r):r(e.CryptoJS)}(this,function(o){return o.pad.NoPadding={pad:function(){},unpad:function(){}},o.pad.NoPadding});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"vtW7":[function(require,module,exports) {
var define;
var r;!function(e,t,o){"object"==typeof exports?module.exports=exports=t(require("./core"),require("./cipher-core")):"function"==typeof r&&r.amd?r(["./core","./cipher-core"],t):t(e.CryptoJS)}(this,function(r){var e,t,o;return t=(e=r).lib.CipherParams,o=e.enc.Hex,e.format.Hex={stringify:function(r){return r.ciphertext.toString(o)},parse:function(r){var e=o.parse(r);return t.create({ciphertext:e})}},r.format.Hex});
},{"./core":"eUTO","./cipher-core":"uCLB"}],"Srb3":[function(require,module,exports) {
var define;
var e;!function(r,o,t){"object"==typeof exports?module.exports=exports=o(require("./core"),require("./enc-base64"),require("./md5"),require("./evpkdf"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],o):o(r.CryptoJS)}(this,function(e){return function(){var r=e,o=r.lib.BlockCipher,t=r.algo,i=[],c=[],n=[],s=[],u=[],f=[],h=[],d=[],a=[],y=[];!function(){for(var e=[],r=0;r<256;r++)e[r]=r<128?r<<1:r<<1^283;var o=0,t=0;for(r=0;r<256;r++){var p=t^t<<1^t<<2^t<<3^t<<4;p=p>>>8^255&p^99,i[o]=p,c[p]=o;var v=e[o],l=e[v],_=e[l],k=257*e[p]^16843008*p;n[o]=k<<24|k>>>8,s[o]=k<<16|k>>>16,u[o]=k<<8|k>>>24,f[o]=k;k=16843009*_^65537*l^257*v^16843008*o;h[p]=k<<24|k>>>8,d[p]=k<<16|k>>>16,a[p]=k<<8|k>>>24,y[p]=k,o?(o=v^e[e[e[_^v]]],t^=e[e[t]]):o=t=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=t.AES=o.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,r=e.words,o=e.sigBytes/4,t=4*((this._nRounds=o+6)+1),c=this._keySchedule=[],n=0;n<t;n++)if(n<o)c[n]=r[n];else{var s=c[n-1];n%o?o>6&&n%o==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[n/o|0]<<24),c[n]=c[n-o]^s}for(var u=this._invKeySchedule=[],f=0;f<t;f++){n=t-f;if(f%4)s=c[n];else s=c[n-4];u[f]=f<4||n<=4?s:h[i[s>>>24]]^d[i[s>>>16&255]]^a[i[s>>>8&255]]^y[i[255&s]]}}},encryptBlock:function(e,r){this._doCryptBlock(e,r,this._keySchedule,n,s,u,f,i)},decryptBlock:function(e,r){var o=e[r+1];e[r+1]=e[r+3],e[r+3]=o,this._doCryptBlock(e,r,this._invKeySchedule,h,d,a,y,c);o=e[r+1];e[r+1]=e[r+3],e[r+3]=o},_doCryptBlock:function(e,r,o,t,i,c,n,s){for(var u=this._nRounds,f=e[r]^o[0],h=e[r+1]^o[1],d=e[r+2]^o[2],a=e[r+3]^o[3],y=4,p=1;p<u;p++){var v=t[f>>>24]^i[h>>>16&255]^c[d>>>8&255]^n[255&a]^o[y++],l=t[h>>>24]^i[d>>>16&255]^c[a>>>8&255]^n[255&f]^o[y++],_=t[d>>>24]^i[a>>>16&255]^c[f>>>8&255]^n[255&h]^o[y++],k=t[a>>>24]^i[f>>>16&255]^c[h>>>8&255]^n[255&d]^o[y++];f=v,h=l,d=_,a=k}v=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&a])^o[y++],l=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[a>>>8&255]<<8|s[255&f])^o[y++],_=(s[d>>>24]<<24|s[a>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^o[y++],k=(s[a>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^o[y++];e[r]=v,e[r+1]=l,e[r+2]=_,e[r+3]=k},keySize:8});r.AES=o._createHelper(v)}(),e.AES});
},{"./core":"eUTO","./enc-base64":"pJaz","./md5":"GVDV","./evpkdf":"W9aa","./cipher-core":"uCLB"}],"ySCI":[function(require,module,exports) {
var define;
var e;!function(t,c,r){"object"==typeof exports?module.exports=exports=c(require("./core"),require("./enc-base64"),require("./md5"),require("./evpkdf"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],c):c(t.CryptoJS)}(this,function(e){return function(){var t=e,c=t.lib,r=c.WordArray,i=c.BlockCipher,o=t.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],k=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536Line truncated
},{"./core":"eUTO","./enc-base64":"pJaz","./md5":"GVDV","./evpkdf":"W9aa","./cipher-core":"uCLB"}],"pOMX":[function(require,module,exports) {
var define;
var e;!function(r,t,i){"object"==typeof exports?module.exports=exports=t(require("./core"),require("./enc-base64"),require("./md5"),require("./evpkdf"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(r.CryptoJS)}(this,function(e){return function(){var r=e,t=r.lib.StreamCipher,i=r.algo,o=i.RC4=t.extend({_doReset:function(){for(var e=this._key,r=e.words,t=e.sigBytes,i=this._S=[],o=0;o<256;o++)i[o]=o;o=0;for(var c=0;o<256;o++){var s=o%t,n=r[s>>>2]>>>24-s%4*8&255;c=(c+i[o]+n)%256;var a=i[o];i[o]=i[c],i[c]=a}this._i=this._j=0},_doProcessBlock:function(e,r){e[r]^=c.call(this)},keySize:8,ivSize:0});function c(){for(var e=this._S,r=this._i,t=this._j,i=0,o=0;o<4;o++){t=(t+e[r=(r+1)%256])%256;var c=e[r];e[r]=e[t],e[t]=c,i|=e[(e[r]+e[t])%256]<<24-8*o}return this._i=r,this._j=t,i}r.RC4=t._createHelper(o);var s=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)c.call(this)}});r.RC4Drop=t._createHelper(s)}(),e.RC4});
},{"./core":"eUTO","./enc-base64":"pJaz","./md5":"GVDV","./evpkdf":"W9aa","./cipher-core":"uCLB"}],"f1HY":[function(require,module,exports) {
var define;
var r;!function(e,i,t){"object"==typeof exports?module.exports=exports=i(require("./core"),require("./enc-base64"),require("./md5"),require("./evpkdf"),require("./cipher-core")):"function"==typeof r&&r.amd?r(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],i):i(e.CryptoJS)}(this,function(r){return function(){var e=r,i=e.lib.StreamCipher,t=e.algo,o=[],c=[],s=[],a=t.Rabbit=i.extend({_doReset:function(){for(var r=this._key.words,e=this.cfg.iv,i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8);var t=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],o=this._C=[r[2]<<16|r[2]>>>16,4294901760&r[0]|65535&r[1],r[3]<<16|r[3]>>>16,4294901760&r[1]|65535&r[2],r[0]<<16|r[0]>>>16,4294901760&r[2]|65535&r[3],r[1]<<16|r[1]>>>16,4294901760&r[3]|65535&r[0]];this._b=0;for(i=0;i<4;i++)f.call(this);for(i=0;i<8;i++)o[i]^=t[i+4&7];if(e){var c=e.words,s=c[0],a=c[1],n=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),b=n>>>16|4294901760&h,u=h<<16|65535&n;o[0]^=n,o[1]^=b,o[2]^=h,o[3]^=u,o[4]^=n,o[5]^=b,o[6]^=h,o[7]^=u;for(i=0;i<4;i++)f.call(this)}},_doProcessBlock:function(r,e){var i=this._X;f.call(this),o[0]=i[0]^i[5]>>>16^i[3]<<16,o[1]=i[2]^i[7]>>>16^i[5]<<16,o[2]=i[4]^i[1]>>>16^i[7]<<16,o[3]=i[6]^i[3]>>>16^i[1]<<16;for(var t=0;t<4;t++)o[t]=16711935&(o[t]<<8|o[t]>>>24)|4278255360&(o[t]<<24|o[t]>>>8),r[e+t]^=o[t]},blockSize:4,ivSize:2});function f(){for(var r=this._X,e=this._C,i=0;i<8;i++)c[i]=e[i];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<c[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<c[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<c[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<c[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<c[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<c[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<c[6]>>>0?1:0)|0,this._b=e[7]>>>0<c[7]>>>0?1:0;for(i=0;i<8;i++){var t=r[i]+e[i],o=65535&t,a=t>>>16,f=((o*o>>>17)+o*a>>>15)+a*a,n=((4294901760&t)*t|0)+((65535&t)*t|0);s[i]=f^n}r[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,r[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,r[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,r[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,r[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,r[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,r[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,r[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=i._createHelper(a)}(),r.Rabbit});
},{"./core":"eUTO","./enc-base64":"pJaz","./md5":"GVDV","./evpkdf":"W9aa","./cipher-core":"uCLB"}],"vtgx":[function(require,module,exports) {
var define;
var e;!function(r,i,t){"object"==typeof exports?module.exports=exports=i(require("./core"),require("./enc-base64"),require("./md5"),require("./evpkdf"),require("./cipher-core")):"function"==typeof e&&e.amd?e(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],i):i(r.CryptoJS)}(this,function(e){return function(){var r=e,i=r.lib.StreamCipher,t=r.algo,o=[],c=[],a=[],s=t.RabbitLegacy=i.extend({_doReset:function(){var e=this._key.words,r=this.cfg.iv,i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],t=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)f.call(this);for(o=0;o<8;o++)t[o]^=i[o+4&7];if(r){var c=r.words,a=c[0],s=c[1],n=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),b=n>>>16|4294901760&h,u=h<<16|65535&n;t[0]^=n,t[1]^=b,t[2]^=h,t[3]^=u,t[4]^=n,t[5]^=b,t[6]^=h,t[7]^=u;for(o=0;o<4;o++)f.call(this)}},_doProcessBlock:function(e,r){var i=this._X;f.call(this),o[0]=i[0]^i[5]>>>16^i[3]<<16,o[1]=i[2]^i[7]>>>16^i[5]<<16,o[2]=i[4]^i[1]>>>16^i[7]<<16,o[3]=i[6]^i[3]>>>16^i[1]<<16;for(var t=0;t<4;t++)o[t]=16711935&(o[t]<<8|o[t]>>>24)|4278255360&(o[t]<<24|o[t]>>>8),e[r+t]^=o[t]},blockSize:4,ivSize:2});function f(){for(var e=this._X,r=this._C,i=0;i<8;i++)c[i]=r[i];r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<c[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<c[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<c[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<c[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<c[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<c[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<c[6]>>>0?1:0)|0,this._b=r[7]>>>0<c[7]>>>0?1:0;for(i=0;i<8;i++){var t=e[i]+r[i],o=65535&t,s=t>>>16,f=((o*o>>>17)+o*s>>>15)+s*s,n=((4294901760&t)*t|0)+((65535&t)*t|0);a[i]=f^n}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.RabbitLegacy=i._createHelper(s)}(),e.RabbitLegacy});
},{"./core":"eUTO","./enc-base64":"pJaz","./md5":"GVDV","./evpkdf":"W9aa","./cipher-core":"uCLB"}],"M4FG":[function(require,module,exports) {
var define;
var e;!function(r,i,a){"object"==typeof exports?module.exports=exports=i(require("./core"),require("./x64-core"),require("./lib-typedarrays"),require("./enc-utf16"),require("./enc-base64"),require("./md5"),require("./sha1"),require("./sha256"),require("./sha224"),require("./sha512"),require("./sha384"),require("./sha3"),require("./ripemd160"),require("./hmac"),require("./pbkdf2"),require("./evpkdf"),require("./cipher-core"),require("./mode-cfb"),require("./mode-ctr"),require("./mode-ctr-gladman"),require("./mode-ofb"),require("./mode-ecb"),require("./pad-ansix923"),require("./pad-iso10126"),require("./pad-iso97971"),require("./pad-zeropadding"),require("./pad-nopadding"),require("./format-hex"),require("./aes"),require("./tripledes"),require("./rc4"),require("./rabbit"),require("./rabbit-legacy")):"function"==typeof e&&e.amd?e(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],i):r.CryptoJS=i(r.CryptoJS)}(this,function(e){return e});
},{"./core":"eUTO","./x64-core":"M95N","./lib-typedarrays":"X5QY","./enc-utf16":"xZKj","./enc-base64":"pJaz","./md5":"GVDV","./sha1":"yxyM","./sha256":"MS2N","./sha224":"OEnX","./sha512":"xA62","./sha384":"YkB8","./sha3":"F6e3","./ripemd160":"Y8cR","./hmac":"IKo8","./pbkdf2":"NfQY","./evpkdf":"W9aa","./cipher-core":"uCLB","./mode-cfb":"dnNm","./mode-ctr":"iAFA","./mode-ctr-gladman":"Oy1Y","./mode-ofb":"HXdk","./mode-ecb":"QDS2","./pad-ansix923":"Hi7U","./pad-iso10126":"HttL","./pad-iso97971":"letQ","./pad-zeropadding":"aieV","./pad-nopadding":"GO8Y","./format-hex":"vtW7","./aes":"Srb3","./tripledes":"ySCI","./rc4":"pOMX","./rabbit":"f1HY","./rabbit-legacy":"vtgx"}],"jJsm":[function(require,module,exports) {
var e=require("crypto-js"),r=require("crypto-js/sha3");module.exports=function(t,n){return n&&"hex"===n.encoding&&(t.length>2&&"0x"===t.substr(0,2)&&(t=t.substr(2)),t=e.enc.Hex.parse(t)),r(t,{outputLength:256}).toString()};
},{"crypto-js":"M4FG","crypto-js/sha3":"F6e3"}],"RkzP":[function(require,module,exports) {
var global = arguments[3];
var define;
var r,t=arguments[3];!function(n){var o="object"==typeof exports&&exports,e="object"==typeof module&&module&&module.exports==o&&module,i="object"==typeof t&&t;i.global!==i&&i.window!==i||(n=i);var u,f,a,c=String.fromCharCode;function d(r){for(var t,n,o=[],e=0,i=r.length;e<i;)(t=r.charCodeAt(e++))>=55296&&t<=56319&&e<i?56320==(64512&(n=r.charCodeAt(e++)))?o.push(((1023&t)<<10)+(1023&n)+65536):(o.push(t),e--):o.push(t);return o}function l(r){if(r>=55296&&r<=57343)throw Error("Lone surrogate U+"+r.toString(16).toUpperCase()+" is not a scalar value")}function v(r,t){return c(r>>t&63|128)}function h(r){if(0==(4294967168&r))return c(r);var t="";return 0==(4294965248&r)?t=c(r>>6&31|192):0==(4294901760&r)?(l(r),t=c(r>>12&15|224),t+=v(r,6)):0==(4292870144&r)&&(t=c(r>>18&7|240),t+=v(r,12),t+=v(r,6)),t+=c(63&r|128)}function s(){if(a>=f)throw Error("Invalid byte index");var r=255&u[a];if(a++,128==(192&r))return 63&r;throw Error("Invalid continuation byte")}function p(){var r,t;if(a>f)throw Error("Invalid byte index");if(a==f)return!1;if(r=255&u[a],a++,0==(128&r))return r;if(192==(224&r)){if((t=(31&r)<<6|s())>=128)return t;throw Error("Invalid continuation byte")}if(224==(240&r)){if((t=(15&r)<<12|s()<<6|s())>=2048)return l(t),t;throw Error("Invalid continuation byte")}if(240==(248&r)&&(t=(7&r)<<18|s()<<12|s()<<6|s())>=65536&&t<=1114111)return t;throw Error("Invalid UTF-8 detected")}var y={version:"2.1.2",encode:function(r){for(var t=d(r),n=t.length,o=-1,e="";++o<n;)e+=h(t[o]);return e},decode:function(r){u=d(r),f=u.length,a=0;for(var t,n=[];!1!==(t=p());)n.push(t);return function(r){for(var t,n=r.length,o=-1,e="";++o<n;)(t=r[o])>65535&&(e+=c((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=c(t);return e}(n)}};if("function"==typeof r&&"object"==typeof r.amd&&r.amd)r(function(){return y});else if(o&&!o.nodeType)if(e)e.exports=y;else{var b={}.hasOwnProperty;for(var w in y)b.call(y,w)&&(o[w]=y[w])}else n.utf8=y}(this);
},{}],"Fh47":[function(require,module,exports) {
var r=require("bignumber.js"),e=require("./sha3.js"),t=require("utf8"),n={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"},f=function(r,e,t){return new Array(e-r.length+1).join(t||"0")+r},i=function(r,e,t){return r+new Array(e-r.length+1).join(t||"0")},o=function(r){var e="",n=0,f=r.length;for("0x"===r.substring(0,2)&&(n=2);n<f;n+=2){var i=parseInt(r.substr(n,2),16);if(0===i)break;e+=String.fromCharCode(i)}return t.decode(e)},u=function(r){var e="",t=0,n=r.length;for("0x"===r.substring(0,2)&&(t=2);t<n;t+=2){var f=parseInt(r.substr(t,2),16);e+=String.fromCharCode(f)}return e},s=function(r,e){r=t.encode(r);for(var n="",f=0;f<r.length;f++){var i=r.charCodeAt(f);if(0===i){if(!e)break;n+="00"}else{var o=i.toString(16);n+=o.length<2?"0"+o:o}}return"0x"+n},a=function(r,e){for(var t="",n=0;n<r.length;n++){var f=r.charCodeAt(n).toString(16);t+=f.length<2?"0"+f:f}return"0x"+t.padEnd(e,"0")},c=function(r){if(-1!==r.name.indexOf("("))return r.name;var e=r.inputs.map(function(r){return r.type}).join();return r.name+"("+e+")"},l=function(r){var e=r.indexOf("("),t=r.indexOf(")");return-1!==e&&-1!==t?r.substr(0,e):r},x=function(r){var e=r.indexOf("("),t=r.indexOf(")");return-1!==e&&-1!==t?r.substr(e+1,t-e-1).replace(" ",""):""},d=function(r){return v(r).toNumber()},h=function(r){var e=v(r),t=e.toString(16);return e.lessThan(0)?"-0x"+t.substr(1):"0x"+t},m=function(r){if(k(r))return h(+r);if($(r))return h(r);if("object"==typeof r)return s(JSON.stringify(r));if(N(r)){if(0===r.indexOf("-0x"))return h(r);if(0===r.indexOf("0x"))return r;if(!isFinite(r))return s(r,1)}return h(r)},g=function(e){e=e?e.toLowerCase():"ether";var t=n[e];if(void 0===t)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(n,null,2));return new r(t,10)},p=function(r,e){var t=v(r).dividedBy(g(e));return $(r)?t:t.toString(10)},b=function(r,e){var t=v(r).times(g(e));return $(r)?t:t.toString(10)},v=function(e){return $(e=e||0)?e:!N(e)||0!==e.indexOf("0x")&&0!==e.indexOf("-0x")?new r(e.toString(10),10):new r(e.replace("0x",""),16)},w=function(e){var t=v(e).round();return t.lessThan(0)?new r("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16).plus(t).plus(1):t},y=function(r){return/^0x[0-9a-f]{40}$/i.test(r)},A=function(r){return!!/^(0x)?[0-9a-f]{40}$/i.test(r)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(r)&&!/^(0x)?[0-9A-F]{40}$/.test(r))||C(r))},C=function(r){r=r.replace("0x","");for(var t=e(r.toLowerCase()),n=0;n<40;n++)if(parseInt(t[n],16)>7&&r[n].toUpperCase()!==r[n]||parseInt(t[n],16)<=7&&r[n].toLowerCase()!==r[n])return!1;return!0},S=function(r){if(void 0===r)return"";r=r.toLowerCase().replace("0x","");for(var t=e(r),n="0x",f=0;f<r.length;f++)parseInt(t[f],16)>7?n+=r[f].toUpperCase():n+=r[f];return n},O=function(r){return y(r)?r:/^[0-9a-f]{40}$/.test(r)?"0x"+r:"0x"+f(m(r).substr(2),40)},$=function(e){return e instanceof r||e&&e.constructor&&"BigNumber"===e.constructor.name},N=function(r){return"string"==typeof r||r&&r.constructor&&"String"===r.constructor.name},j=function(r){return"function"==typeof r},T=function(r){return null!==r&&!Array.isArray(r)&&"object"==typeof r},k=function(r){return"boolean"==typeof r},B=function(r){return Array.isArray(r)},F=function(r){try{return!!JSON.parse(r)}catch(e){return!1}},I=function(r){return!!/^(0x)?[0-9a-f]{512}$/i.test(r)&&!(!/^(0x)?[0-9a-f]{512}$/.test(r)&&!/^(0x)?[0-9A-F]{512}$/.test(r))},L=function(r){return!!/^(0x)?[0-9a-f]{64}$/i.test(r)&&!(!/^(0x)?[0-9a-f]{64}$/.test(r)&&!/^(0x)?[0-9A-F]{64}$/.test(r))};module.exports={padLeft:f,padRight:i,toHex:m,toDecimal:d,fromDecimal:h,toUtf8:o,toAscii:u,fromUtf8:s,fromAscii:a,transformToFullName:c,extractDisplayName:l,extractTypeName:x,toWei:b,fromWei:p,toBigNumber:v,toTwosComplement:w,toAddress:O,isBigNumber:$,isStrictAddress:y,isAddress:A,isChecksumAddress:C,toChecksumAddress:S,isFunction:j,isString:N,isObject:T,isBoolean:k,isArray:B,isJson:F,isBloom:I,isTopic:L};
},{"bignumber.js":"LdGf","./sha3.js":"jJsm","utf8":"RkzP"}],"hHtK":[function(require,module,exports) {
var e=require("bignumber.js"),r=["wei","kwei","Mwei","Gwei","szabo","finney","femtoether","picoether","nanoether","microether","milliether","nano","micro","milli","ether","grand","Mether","Gether","Tether","Pether","Eether","Zether","Yether","Nether","Dether","Vether","Uether"];module.exports={ETH_PADDING:32,ETH_SIGNATURE_LENGTH:4,ETH_UNITS:r,ETH_BIGNUMBER_ROUNDING_MODE:{ROUNDING_MODE:e.ROUND_DOWN},ETH_POLLING_TIMEOUT:500,defaultBlock:"latest",defaultAccount:void 0};
},{"bignumber.js":"LdGf"}],"NewK":[function(require,module,exports) {
module.exports={InvalidNumberOfSolidityArgs:function(){return new Error("Invalid number of arguments to Solidity function")},InvalidNumberOfRPCParams:function(){return new Error("Invalid number of input parameters to RPC method")},InvalidConnection:function(r){return new Error("CONNECTION ERROR: Couldn't connect to node "+r+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(r){var n=r&&r.error&&r.error.message?r.error.message:"Invalid JSON RPC response: "+JSON.stringify(r);return new Error(n)},ConnectionTimeout:function(r){return new Error("CONNECTION TIMEOUT: timeout of "+r+" ms achived")}};
},{}],"XRH2":[function(require,module,exports) {
var t=require("./jsonrpc"),i=require("../utils/utils"),o=require("../utils/config"),e=require("./errors"),r=function(t){this.provider=t,this.polls={},this.timeout=null};r.prototype.send=function(i){if(!this.provider)return console.error(e.InvalidProvider()),null;var o=t.toPayload(i.method,i.params),r=this.provider.send(o);if(!t.isValidResponse(r))throw e.InvalidResponse(r);return r.result},r.prototype.sendAsync=function(i,o){if(!this.provider)return o(e.InvalidProvider());var r=t.toPayload(i.method,i.params);this.provider.sendAsync(r,function(i,r){return i?o(i):t.isValidResponse(r)?void o(null,r.result):o(e.InvalidResponse(r))})},r.prototype.sendBatch=function(o,r){if(!this.provider)return r(e.InvalidProvider());var s=t.toBatchPayload(o);this.provider.sendAsync(s,function(t,o){return t?r(t):i.isArray(o)?void r(t,o):r(e.InvalidResponse(o))})},r.prototype.setProvider=function(t){this.provider=t},r.prototype.startPolling=function(t,i,o,e){this.polls[i]={data:t,id:i,callback:o,uninstall:e},this.timeout||this.poll()},r.prototype.stopPolling=function(t){delete this.polls[t],0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},r.prototype.reset=function(t){for(var i in this.polls)t&&-1!==i.indexOf("syncPoll_")||(this.polls[i].uninstall(),delete this.polls[i]);0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},r.prototype.poll=function(){if(this.timeout=setTimeout(this.poll.bind(this),o.ETH_POLLING_TIMEOUT),0!==Object.keys(this.polls).length)if(this.provider){var r=[],s=[];for(var l in this.polls)r.push(this.polls[l].data),s.push(l);if(0!==r.length){var n=t.toBatchPayload(r),a={};n.forEach(function(t,i){a[t.id]=s[i]});var u=this;this.provider.sendAsync(n,function(o,r){if(!o){if(!i.isArray(r))throw e.InvalidResponse(r);r.map(function(t){var i=a[t.id];return!!u.polls[i]&&(t.callback=u.polls[i].callback,t)}).filter(function(t){return!!t}).filter(function(i){var o=t.isValidResponse(i);return o||i.callback(e.InvalidResponse(i)),o}).forEach(function(t){t.callback(null,t.result)})}})}}else console.error(e.InvalidProvider())},module.exports=r;
},{"./jsonrpc":"Fylb","../utils/utils":"Fh47","../utils/config":"hHtK","./errors":"NewK"}],"JSHq":[function(require,module,exports) {
var t=require("bignumber.js"),n=function(t,n){for(var r=t;r.length<2*n;)r="0"+r;return r},r=function(t){var n="A".charCodeAt(0),r="Z".charCodeAt(0);return(t=(t=t.toUpperCase()).substr(4)+t.substr(0,4)).split("").map(function(t){var i=t.charCodeAt(0);return i>=n&&i<=r?i-n+10:t}).join("")},i=function(t){for(var n,r=t;r.length>2;)n=r.slice(0,9),r=parseInt(n,10)%97+r.slice(n.length);return parseInt(r,10)%97},e=function(t){this._iban=t};e.fromAddress=function(r){var i=new t(r,16).toString(36),o=n(i,15);return e.fromBban(o.toUpperCase())},e.fromBban=function(t){var n=("0"+(98-i(r("XE00"+t)))).slice(-2);return new e("XE"+n+t)},e.createIndirect=function(t){return e.fromBban("ETH"+t.institution+t.identifier)},e.isValid=function(t){return new e(t).isValid()},e.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===i(r(this._iban))},e.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},e.prototype.isIndirect=function(){return 20===this._iban.length},e.prototype.checksum=function(){return this._iban.substr(2,2)},e.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},e.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},e.prototype.address=function(){if(this.isDirect()){var r=this._iban.substr(4),i=new t(r,36);return n(i.toString(16),20)}return""},e.prototype.toString=function(){return this._iban},module.exports=e;
},{"bignumber.js":"LdGf"}],"ra15":[function(require,module,exports) {
"use strict";var t=require("../utils/utils"),o=require("../utils/config"),r=require("./iban"),e=function(o){return t.toBigNumber(o)},i=function(t){return"latest"===t||"pending"===t||"earliest"===t},n=function(t){return void 0===t?o.defaultBlock:a(t)},a=function(o){if(void 0!==o)return i(o)?o:t.toHex(o)},c=function(r){return r.from=r.from||o.defaultAccount,r.from&&(r.from=g(r.from)),r.to&&(r.to=g(r.to)),["gasPrice","gas","value","nonce"].filter(function(t){return void 0!==r[t]}).forEach(function(o){r[o]=t.fromDecimal(r[o])}),r},u=function(r){return r.from=r.from||o.defaultAccount,r.from=g(r.from),r.to&&(r.to=g(r.to)),["gasPrice","gas","value","nonce"].filter(function(t){return void 0!==r[t]}).forEach(function(o){r[o]=t.fromDecimal(r[o])}),r},l=function(o){return null!==o.blockNumber&&(o.blockNumber=t.toDecimal(o.blockNumber)),null!==o.transactionIndex&&(o.transactionIndex=t.toDecimal(o.transactionIndex)),o.nonce=t.toDecimal(o.nonce),o.gas=t.toDecimal(o.gas),o.gasPrice=t.toBigNumber(o.gasPrice),o.value=t.toBigNumber(o.value),o},s=function(o){return null!==o.blockNumber&&(o.blockNumber=t.toDecimal(o.blockNumber)),null!==o.transactionIndex&&(o.transactionIndex=t.toDecimal(o.transactionIndex)),o.cumulativeGasUsed=t.toDecimal(o.cumulativeGasUsed),o.gasUsed=t.toDecimal(o.gasUsed),t.isArray(o.logs)&&(o.logs=o.logs.map(function(t){return f(t)})),o},m=function(o){return o.gasLimit=t.toDecimal(o.gasLimit),o.gasUsed=t.toDecimal(o.gasUsed),o.size=t.toDecimal(o.size),o.timestamp=t.toDecimal(o.timestamp),null!==o.number&&(o.number=t.toDecimal(o.number)),o.difficulty=t.toBigNumber(o.difficulty),o.totalDifficulty=t.toBigNumber(o.totalDifficulty),t.isArray(o.transactions)&&o.transactions.forEach(function(o){if(!t.isString(o))return l(o)}),o},f=function(o){return o.blockNumber&&(o.blockNumber=t.toDecimal(o.blockNumber)),o.transactionIndex&&(o.transactionIndex=t.toDecimal(o.transactionIndex)),o.logIndex&&(o.logIndex=t.toDecimal(o.logIndex)),o},d=function(o){return o.ttl=t.fromDecimal(o.ttl),o.workToProve=t.fromDecimal(o.workToProve),o.priority=t.fromDecimal(o.priority),t.isArray(o.topics)||(o.topics=o.topics?[o.topics]:[]),o.topics=o.topics.map(function(o){return 0===o.indexOf("0x")?o:t.fromUtf8(o)}),o},p=function(o){return o.expiry=t.toDecimal(o.expiry),o.sent=t.toDecimal(o.sent),o.ttl=t.toDecimal(o.ttl),o.workProved=t.toDecimal(o.workProved),o.topics||(o.topics=[]),o.topics=o.topics.map(function(o){return t.toAscii(o)}),o},g=function(o){var e=new r(o);if(e.isValid()&&e.isDirect())return"0x"+e.address();if(t.isStrictAddress(o))return o;if(t.isAddress(o))return"0x"+o;throw new Error("invalid address")},D=function(o){return o?(o.startingBlock=t.toDecimal(o.startingBlock),o.currentBlock=t.toDecimal(o.currentBlock),o.highestBlock=t.toDecimal(o.highestBlock),o.knownStates&&(o.knownStates=t.toDecimal(o.knownStates),o.pulledStates=t.toDecimal(o.pulledStates)),o):o};module.exports={inputDefaultBlockNumberFormatter:n,inputBlockNumberFormatter:a,inputCallFormatter:c,inputTransactionFormatter:u,inputAddressFormatter:g,inputPostFormatter:d,outputBigNumberFormatter:e,outputTransactionFormatter:l,outputTransactionReceiptFormatter:s,outputBlockFormatter:m,outputLogFormatter:f,outputPostFormatter:p,outputSyncingFormatter:D};
},{"../utils/utils":"Fh47","../utils/config":"hHtK","./iban":"JSHq"}],"Gyz6":[function(require,module,exports) {
var t=require("../utils/utils"),r=require("./errors"),a=function(t){this.name=t.name,this.call=t.call,this.params=t.params||0,this.inputFormatter=t.inputFormatter,this.outputFormatter=t.outputFormatter,this.requestManager=null};a.prototype.setRequestManager=function(t){this.requestManager=t},a.prototype.getCall=function(r){return t.isFunction(this.call)?this.call(r):this.call},a.prototype.extractCallback=function(r){if(t.isFunction(r[r.length-1]))return r.pop()},a.prototype.validateArgs=function(t){if(t.length!==this.params)throw r.InvalidNumberOfRPCParams()},a.prototype.formatInput=function(t){return this.inputFormatter?this.inputFormatter.map(function(r,a){return r?r(t[a]):t[a]}):t},a.prototype.formatOutput=function(t){return this.outputFormatter&&t?this.outputFormatter(t):t},a.prototype.toPayload=function(t){var r=this.getCall(t),a=this.extractCallback(t),e=this.formatInput(t);return this.validateArgs(e),{method:r,params:e,callback:a}},a.prototype.attachToObject=function(t){var r=this.buildCall();r.call=this.call;var a=this.name.split(".");a.length>1?(t[a[0]]=t[a[0]]||{},t[a[0]][a[1]]=r):t[a[0]]=r},a.prototype.buildCall=function(){var t=this,r=function(){var r=t.toPayload(Array.prototype.slice.call(arguments));return r.callback?t.requestManager.sendAsync(r,function(a,e){r.callback(a,t.formatOutput(e))}):t.formatOutput(t.requestManager.send(r))};return r.request=this.request.bind(this),r},a.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},module.exports=a;
},{"../utils/utils":"Fh47","./errors":"NewK"}],"H1O0":[function(require,module,exports) {
var t=require("../utils/utils"),e=function(t){this.name=t.name,this.getter=t.getter,this.setter=t.setter,this.outputFormatter=t.outputFormatter,this.inputFormatter=t.inputFormatter,this.requestManager=null};e.prototype.setRequestManager=function(t){this.requestManager=t},e.prototype.formatInput=function(t){return this.inputFormatter?this.inputFormatter(t):t},e.prototype.formatOutput=function(t){return this.outputFormatter&&null!=t?this.outputFormatter(t):t},e.prototype.extractCallback=function(e){if(t.isFunction(e[e.length-1]))return e.pop()},e.prototype.attachToObject=function(t){var e={get:this.buildGet(),enumerable:!0},n=this.name.split("."),u=n[0];n.length>1&&(t[n[0]]=t[n[0]]||{},t=t[n[0]],u=n[1]),Object.defineProperty(t,u,e),t[r(u)]=this.buildAsyncGet()};var r=function(t){return"get"+t.charAt(0).toUpperCase()+t.slice(1)};e.prototype.buildGet=function(){var t=this;return function(){return t.formatOutput(t.requestManager.send({method:t.getter}))}},e.prototype.buildAsyncGet=function(){var t=this,e=function(e){t.requestManager.sendAsync({method:t.getter},function(r,n){e(r,t.formatOutput(n))})};return e.request=this.request.bind(this),e},e.prototype.request=function(){var t={method:this.getter,params:[],callback:this.extractCallback(Array.prototype.slice.call(arguments))};return t.format=this.formatOutput.bind(this),t},module.exports=e;
},{"../utils/utils":"Fh47"}],"dIvh":[function(require,module,exports) {
var t=require("../utils/utils"),n=function(t,n){this.value=t||"",this.offset=n};n.prototype.dynamicPartLength=function(){return this.dynamicPart().length/2},n.prototype.withOffset=function(t){return new n(this.value,t)},n.prototype.combine=function(t){return new n(this.value+t.value)},n.prototype.isDynamic=function(){return void 0!==this.offset},n.prototype.offsetAsBytes=function(){return this.isDynamic()?t.padLeft(t.toTwosComplement(this.offset).toString(16),64):""},n.prototype.staticPart=function(){return this.isDynamic()?this.offsetAsBytes():this.value},n.prototype.dynamicPart=function(){return this.isDynamic()?this.value:""},n.prototype.encode=function(){return this.staticPart()+this.dynamicPart()},n.encodeList=function(t){var n=32*t.length,e=t.map(function(t){if(!t.isDynamic())return t;var e=n;return n+=t.dynamicPartLength(),t.withOffset(e)});return e.reduce(function(t,n){return t+n.dynamicPart()},e.reduce(function(t,n){return t+n.staticPart()},""))},module.exports=n;
},{"../utils/utils":"Fh47"}],"lYBp":[function(require,module,exports) {
var t=require("bignumber.js"),f=require("../utils/utils"),n=require("../utils/config"),r=require("./param"),u=function(u){t.config(n.ETH_BIGNUMBER_ROUNDING_MODE);var e=f.padLeft(f.toTwosComplement(u).toString(16),64);return new r(e)},e=function(t){var n=f.toHex(t).substr(2),u=Math.floor((n.length+63)/64);return n=f.padRight(n,64*u),new r(n)},a=function(t){var n=f.toHex(t).substr(2),e=n.length/2,a=Math.floor((n.length+63)/64);return n=f.padRight(n,64*a),new r(u(e).value+n)},o=function(t){var n=f.fromUtf8(t).substr(2),e=n.length/2,a=Math.floor((n.length+63)/64);return n=f.padRight(n,64*a),new r(u(e).value+n)},i=function(t){return new r("000000000000000000000000000000000000000000000000000000000000000"+(t?"1":"0"))},s=function(f){return u(new t(f).times(new t(2).pow(128)))},c=function(f){return"1"===new t(f.substr(0,1),16).toString(2).substr(0,1)},m=function(f){var n=f.staticPart()||"0";return c(n)?new t(n,16).minus(new t("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):new t(n,16)},l=function(f){var n=f.staticPart()||"0";return new t(n,16)},p=function(f){return m(f).dividedBy(new t(2).pow(128))},w=function(f){return l(f).dividedBy(new t(2).pow(128))},d=function(t){return"0000000000000000000000000000000000000000000000000000000000000001"===t.staticPart()},g=function(t,f){var n=f.match(/^bytes([0-9]*)/),r=parseInt(n[1]);return"0x"+t.staticPart().slice(0,2*r)},v=function(f){var n=2*new t(f.dynamicPart().slice(0,64),16).toNumber();return"0x"+f.dynamicPart().substr(64,n)},h=function(n){var r=2*new t(n.dynamicPart().slice(0,64),16).toNumber();return f.toUtf8(n.dynamicPart().substr(64,r))},y=function(t){var f=t.staticPart();return"0x"+f.slice(f.length-40,f.length)};module.exports={formatInputInt:u,formatInputBytes:e,formatInputDynamicBytes:a,formatInputString:o,formatInputBool:i,formatInputReal:s,formatOutputInt:m,formatOutputUInt:l,formatOutputReal:p,formatOutputUReal:w,formatOutputBool:d,formatOutputBytes:g,formatOutputDynamicBytes:v,formatOutputString:h,formatOutputAddress:y};
},{"bignumber.js":"LdGf","../utils/utils":"Fh47","../utils/config":"hHtK","./param":"dIvh"}],"KKSW":[function(require,module,exports) {
var t=require("./formatters"),r=require("./param"),e=function(t){this._inputFormatter=t.inputFormatter,this._outputFormatter=t.outputFormatter};e.prototype.isType=function(t){throw"this method should be overrwritten for type "+t},e.prototype.staticPartLength=function(t){return(this.nestedTypes(t)||["[1]"]).map(function(t){return parseInt(t.slice(1,-1),10)||1}).reduce(function(t,r){return t*r},32)},e.prototype.isDynamicArray=function(t){var r=this.nestedTypes(t);return!!r&&!r[r.length-1].match(/[0-9]{1,}/g)},e.prototype.isStaticArray=function(t){var r=this.nestedTypes(t);return!!r&&!!r[r.length-1].match(/[0-9]{1,}/g)},e.prototype.staticArrayLength=function(t){var r=this.nestedTypes(t);return r?parseInt(r[r.length-1].match(/[0-9]{1,}/g)||1):1},e.prototype.nestedName=function(t){var r=this.nestedTypes(t);return r?t.substr(0,t.length-r[r.length-1].length):t},e.prototype.isDynamicType=function(){return!1},e.prototype.nestedTypes=function(t){return t.match(/(\[[0-9]*\])/g)},e.prototype.encode=function(r,e){var n,s,o,a=this;return this.isDynamicArray(e)?(n=r.length,s=a.nestedName(e),(o=[]).push(t.formatInputInt(n).encode()),r.forEach(function(t){o.push(a.encode(t,s))}),o):this.isStaticArray(e)?function(){for(var t=a.staticArrayLength(e),n=a.nestedName(e),s=[],o=0;o<t;o++)s.push(a.encode(r[o],n));return s}():this._inputFormatter(r,e).encode()},e.prototype.decode=function(t,e,n){var s=this;if(this.isDynamicArray(n))return function(){for(var r=parseInt("0x"+t.substr(2*e,64)),o=parseInt("0x"+t.substr(2*r,64)),a=r+32,i=s.nestedName(n),u=s.staticPartLength(i),p=32*Math.floor((u+31)/32),c=[],h=0;h<o*p;h+=p)c.push(s.decode(t,a+h,i));return c}();if(this.isStaticArray(n))return function(){for(var r=s.staticArrayLength(n),o=e,a=s.nestedName(n),i=s.staticPartLength(a),u=32*Math.floor((i+31)/32),p=[],c=0;c<r*u;c+=u)p.push(s.decode(t,o+c,a));return p}();if(this.isDynamicType(n))return function(){var o=parseInt("0x"+t.substr(2*e,64)),a=parseInt("0x"+t.substr(2*o,64)),i=Math.floor((a+31)/32),u=new r(t.substr(2*o,64*(1+i)),0);return s._outputFormatter(u,n)}();var o=this.staticPartLength(n),a=new r(t.substr(2*e,2*o));return this._outputFormatter(a,n)},module.exports=e;
},{"./formatters":"lYBp","./param":"dIvh"}],"MvtH":[function(require,module,exports) {
var t=require("./formatters"),r=require("./type"),e=function(){this._inputFormatter=t.formatInputInt,this._outputFormatter=t.formatOutputAddress};e.prototype=new r({}),e.prototype.constructor=e,e.prototype.isType=function(t){return!!t.match(/address(\[([0-9]*)\])?/)},module.exports=e;
},{"./formatters":"lYBp","./type":"KKSW"}],"DjGv":[function(require,module,exports) {
var t=require("./formatters"),o=require("./type"),r=function(){this._inputFormatter=t.formatInputBool,this._outputFormatter=t.formatOutputBool};r.prototype=new o({}),r.prototype.constructor=r,r.prototype.isType=function(t){return!!t.match(/^bool(\[([0-9]*)\])*$/)},module.exports=r;
},{"./formatters":"lYBp","./type":"KKSW"}],"J37L":[function(require,module,exports) {
var t=require("./formatters"),r=require("./type"),o=function(){this._inputFormatter=t.formatInputInt,this._outputFormatter=t.formatOutputInt};o.prototype=new r({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^int([0-9]*)?(\[([0-9]*)\])*$/)},module.exports=o;
},{"./formatters":"lYBp","./type":"KKSW"}],"vu1n":[function(require,module,exports) {
var t=require("./formatters"),r=require("./type"),o=function(){this._inputFormatter=t.formatInputInt,this._outputFormatter=t.formatOutputUInt};o.prototype=new r({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^uint([0-9]*)?(\[([0-9]*)\])*$/)},module.exports=o;
},{"./formatters":"lYBp","./type":"KKSW"}],"XEgM":[function(require,module,exports) {
var t=require("./formatters"),r=require("./type"),e=function(){this._inputFormatter=t.formatInputDynamicBytes,this._outputFormatter=t.formatOutputDynamicBytes};e.prototype=new r({}),e.prototype.constructor=e,e.prototype.isType=function(t){return!!t.match(/^bytes(\[([0-9]*)\])*$/)},e.prototype.isDynamicType=function(){return!0},module.exports=e;
},{"./formatters":"lYBp","./type":"KKSW"}],"LdWN":[function(require,module,exports) {
var t=require("./formatters"),r=require("./type"),o=function(){this._inputFormatter=t.formatInputString,this._outputFormatter=t.formatOutputString};o.prototype=new r({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^string(\[([0-9]*)\])*$/)},o.prototype.isDynamicType=function(){return!0},module.exports=o;
},{"./formatters":"lYBp","./type":"KKSW"}],"kn1A":[function(require,module,exports) {
var t=require("./formatters"),r=require("./type"),e=function(){this._inputFormatter=t.formatInputReal,this._outputFormatter=t.formatOutputReal};e.prototype=new r({}),e.prototype.constructor=e,e.prototype.isType=function(t){return!!t.match(/real([0-9]*)?(\[([0-9]*)\])?/)},module.exports=e;
},{"./formatters":"lYBp","./type":"KKSW"}],"TFZD":[function(require,module,exports) {
var t=require("./formatters"),r=require("./type"),e=function(){this._inputFormatter=t.formatInputReal,this._outputFormatter=t.formatOutputUReal};e.prototype=new r({}),e.prototype.constructor=e,e.prototype.isType=function(t){return!!t.match(/^ureal([0-9]*)?(\[([0-9]*)\])*$/)},module.exports=e;
},{"./formatters":"lYBp","./type":"KKSW"}],"ol8o":[function(require,module,exports) {
var t=require("./formatters"),r=require("./type"),e=function(){this._inputFormatter=t.formatInputBytes,this._outputFormatter=t.formatOutputBytes};e.prototype=new r({}),e.prototype.constructor=e,e.prototype.isType=function(t){return!!t.match(/^bytes([0-9]{1,})(\[([0-9]*)\])*$/)},module.exports=e;
},{"./formatters":"lYBp","./type":"KKSW"}],"YtyA":[function(require,module,exports) {
var e=require("./formatters"),t=require("./address"),r=require("./bool"),n=require("./int"),i=require("./uint"),o=require("./dynamicbytes"),a=require("./string"),u=require("./real"),f=require("./ureal"),s=require("./bytes"),c=function(e,t){return e.isDynamicType(t)||e.isDynamicArray(t)},p=function(e){this._types=e};p.prototype._requireType=function(e){var t=this._types.filter(function(t){return t.isType(e)})[0];if(!t)throw Error("invalid solidity type!: "+e);return t},p.prototype.encodeParam=function(e,t){return this.encodeParams([e],[t])},p.prototype.encodeParams=function(e,t){var r=this.getSolidityTypes(e),n=r.map(function(r,n){return r.encode(t[n],e[n])}),i=r.reduce(function(t,n,i){var o=n.staticPartLength(e[i]),a=32*Math.floor((o+31)/32);return t+(c(r[i],e[i])?32:a)},0);return this.encodeMultiWithOffset(e,r,n,i)},p.prototype.encodeMultiWithOffset=function(t,r,n,i){var o="",a=this;return t.forEach(function(u,f){if(c(r[f],t[f])){o+=e.formatInputInt(i).encode();var s=a.encodeWithOffset(t[f],r[f],n[f],i);i+=s.length/2}else o+=a.encodeWithOffset(t[f],r[f],n[f],i)}),t.forEach(function(e,u){if(c(r[u],t[u])){var f=a.encodeWithOffset(t[u],r[u],n[u],i);i+=f.length/2,o+=f}}),o},p.prototype.encodeWithOffset=function(t,r,n,i){var o=1,a=2,u=3,f=r.isDynamicArray(t)?o:r.isStaticArray(t)?a:u;if(f!==u){var s=r.nestedName(t),c=r.staticPartLength(s),p=f===o?n[0]:"";if(r.isDynamicArray(s))for(var h=f===o?2:0,y=0;y<n.length;y++)f===o?h+=+n[y-1][0]||0:f===a&&(h+=+(n[y-1]||[])[0]||0),p+=e.formatInputInt(i+y*c+32*h).encode();for(var d=f===o?n.length-1:n.length,m=0;m<d;m++){var l=p/2;f===o?p+=this.encodeWithOffset(s,r,n[m+1],i+l):f===a&&(p+=this.encodeWithOffset(s,r,n[m],i+l))}return p}return n},p.prototype.decodeParam=function(e,t){return this.decodeParams([e],t)[0]},p.prototype.decodeParams=function(e,t){var r=this.getSolidityTypes(e),n=this.getOffsets(e,r);return r.map(function(r,i){return r.decode(t,n[i],e[i],i)})},p.prototype.getOffsets=function(e,t){for(var r=t.map(function(t,r){return t.staticPartLength(e[r])}),n=1;n<r.length;n++)r[n]+=r[n-1];return r.map(function(r,n){return r-t[n].staticPartLength(e[n])})},p.prototype.getSolidityTypes=function(e){var t=this;return e.map(function(e){return t._requireType(e)})};var h=new p([new t,new r,new n,new i,new o,new s,new a,new u,new f]);module.exports=h;
},{"./formatters":"lYBp","./address":"MvtH","./bool":"DjGv","./int":"J37L","./uint":"vu1n","./dynamicbytes":"XEgM","./string":"LdWN","./real":"kn1A","./ureal":"TFZD","./bytes":"ol8o"}],"kB3J":[function(require,module,exports) {
var t=require("./formatters"),i=require("../utils/utils"),r=function(t){return null==t?null:0===(t=String(t)).indexOf("0x")?t:i.fromUtf8(t)},n=function(n,e){if(i.isString(n))return n;switch(n=n||{},e){case"eth":return n.topics=n.topics||[],n.topics=n.topics.map(function(t){return i.isArray(t)?t.map(r):r(t)}),{topics:n.topics,from:n.from,to:n.to,address:n.address,fromBlock:t.inputBlockNumberFormatter(n.fromBlock),toBlock:t.inputBlockNumberFormatter(n.toBlock)};case"shh":return n}},e=function(t,r){i.isString(t.options)||t.get(function(t,n){t&&r(t),i.isArray(n)&&n.forEach(function(t){r(null,t)})})},o=function(t){t.requestManager.startPolling({method:t.implementation.poll.call,params:[t.filterId]},t.filterId,function(r,n){if(r)return t.callbacks.forEach(function(t){t(r)});i.isArray(n)&&n.forEach(function(i){i=t.formatter?t.formatter(i):i,t.callbacks.forEach(function(t){t(null,i)})})},t.stopWatching.bind(t))},s=function(t,i,r,s,l,a,c){var f=this,u={};return s.forEach(function(t){t.setRequestManager(r),t.attachToObject(u)}),this.requestManager=r,this.options=n(t,i),this.implementation=u,this.filterId=null,this.callbacks=[],this.getLogsCallbacks=[],this.pollFilters=[],this.formatter=l,this.implementation.newFilter(this.options,function(t,i){if(t)f.callbacks.forEach(function(i){i(t)}),"function"==typeof c&&c(t);else if(f.filterId=i,f.getLogsCallbacks.forEach(function(t){f.get(t)}),f.getLogsCallbacks=[],f.callbacks.forEach(function(t){e(f,t)}),f.callbacks.length>0&&o(f),"function"==typeof a)return f.watch(a)}),this};s.prototype.watch=function(t){return this.callbacks.push(t),this.filterId&&(e(this,t),o(this)),this},s.prototype.stopWatching=function(t){if(this.requestManager.stopPolling(this.filterId),this.callbacks=[],!t)return this.implementation.uninstallFilter(this.filterId);this.implementation.uninstallFilter(this.filterId,t)},s.prototype.get=function(t){var r=this;if(!i.isFunction(t)){if(null===this.filterId)throw new Error("Filter ID Error: filter().get() can't be chained synchronous, please provide a callback for the get() method.");return this.implementation.getLogs(this.filterId).map(function(t){return r.formatter?r.formatter(t):t})}return null===this.filterId?this.getLogsCallbacks.push(t):this.implementation.getLogs(this.filterId,function(i,n){i?t(i):t(null,n.map(function(t){return r.formatter?r.formatter(t):t}))}),this},module.exports=s;
},{"./formatters":"ra15","../utils/utils":"Fh47"}],"Xvr8":[function(require,module,exports) {
var e=require("../method"),a=function(){return[new e({name:"newFilter",call:function(e){switch(e[0]){case"latest":return e.shift(),this.params=0,"eth_newBlockFilter";case"pending":return e.shift(),this.params=0,"eth_newPendingTransactionFilter";default:return"eth_newFilter"}},params:1}),new e({name:"uninstallFilter",call:"eth_uninstallFilter",params:1}),new e({name:"getLogs",call:"eth_getFilterLogs",params:1}),new e({name:"poll",call:"eth_getFilterChanges",params:1})]},t=function(){return[new e({name:"newFilter",call:"shh_newMessageFilter",params:1}),new e({name:"uninstallFilter",call:"shh_deleteMessageFilter",params:1}),new e({name:"getLogs",call:"shh_getFilterMessages",params:1}),new e({name:"poll",call:"shh_getFilterMessages",params:1})]};module.exports={eth:a,shh:t};
},{"../method":"Gyz6"}],"N4No":[function(require,module,exports) {
var t=require("../utils/utils"),e=require("../solidity/coder"),r=require("./formatters"),n=require("../utils/sha3"),i=require("./filter"),s=require("./methods/watches"),a=function(e,r,n){this._requestManager=e,this._params=r.inputs,this._name=t.transformToFullName(r),this._address=n,this._anonymous=r.anonymous};a.prototype.types=function(t){return this._params.filter(function(e){return e.indexed===t}).map(function(t){return t.type})},a.prototype.displayName=function(){return t.extractDisplayName(this._name)},a.prototype.typeName=function(){return t.extractTypeName(this._name)},a.prototype.signature=function(){return n(this._name)},a.prototype.encode=function(n,i){n=n||{},i=i||{};var s={};["fromBlock","toBlock"].filter(function(t){return void 0!==i[t]}).forEach(function(t){s[t]=r.inputBlockNumberFormatter(i[t])}),s.topics=[],s.address=this._address,this._anonymous||s.topics.push("0x"+this.signature());var a=this._params.filter(function(t){return!0===t.indexed}).map(function(r){var i=n[r.name];return null==i?null:t.isArray(i)?i.map(function(t){return"0x"+e.encodeParam(r.type,t)}):"0x"+e.encodeParam(r.type,i)});return s.topics=s.topics.concat(a),s},a.prototype.decode=function(t){t.data=t.data||"",t.topics=t.topics||[];var n=(this._anonymous?t.topics:t.topics.slice(1)).map(function(t){return t.slice(2)}).join(""),i=e.decodeParams(this.types(!0),n),s=t.data.slice(2),a=e.decodeParams(this.types(!1),s),o=r.outputLogFormatter(t);return o.event=this.displayName(),o.address=t.address,o.args=this._params.reduce(function(t,e){return t[e.name]=e.indexed?i.shift():a.shift(),t},{}),delete o.data,delete o.topics,o},a.prototype.execute=function(e,r,n){t.isFunction(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],2===arguments.length&&(r=null),1===arguments.length&&(r=null,e={}));var a=this.encode(e,r),o=this.decode.bind(this);return new i(a,"eth",this._requestManager,s.eth(),o,n)},a.prototype.attachToContract=function(t){var e=this.execute.bind(this),r=this.displayName();t[r]||(t[r]=e),t[r][this.typeName()]=this.execute.bind(this,t)},module.exports=a;
},{"../utils/utils":"Fh47","../solidity/coder":"YtyA","./formatters":"ra15","../utils/sha3":"jJsm","./filter":"kB3J","./methods/watches":"Xvr8"}],"fhPu":[function(require,module,exports) {
var t=require("../solidity/coder"),e=require("../utils/utils"),a=require("./errors"),i=require("./formatters"),r=require("../utils/sha3"),n=function(t,a,i){this._eth=t,this._inputTypes=a.inputs.map(function(t){return t.type}),this._outputTypes=a.outputs.map(function(t){return t.type}),this._constant="view"===a.stateMutability||"pure"===a.stateMutability||a.constant,this._payable="payable"===a.stateMutability||a.payable,this._name=e.transformToFullName(a),this._address=i};n.prototype.extractCallback=function(t){if(e.isFunction(t[t.length-1]))return t.pop()},n.prototype.extractDefaultBlock=function(t){if(t.length>this._inputTypes.length&&!e.isObject(t[t.length-1]))return i.inputDefaultBlockNumberFormatter(t.pop())},n.prototype.validateArgs=function(t){if(t.filter(function(t){return!(!0===e.isObject(t)&&!1===e.isArray(t)&&!1===e.isBigNumber(t))}).length!==this._inputTypes.length)throw a.InvalidNumberOfSolidityArgs()},n.prototype.toPayload=function(a){var i={};return a.length>this._inputTypes.length&&e.isObject(a[a.length-1])&&(i=a[a.length-1]),this.validateArgs(a),i.to=this._address,i.data="0x"+this.signature()+t.encodeParams(this._inputTypes,a),i},n.prototype.signature=function(){return r(this._name).slice(0,8)},n.prototype.unpackOutput=function(e){if(e){e=e.length>=2?e.slice(2):e;var a=t.decodeParams(this._outputTypes,e);return 1===a.length?a[0]:a}},n.prototype.call=function(){var t=Array.prototype.slice.call(arguments).filter(function(t){return void 0!==t}),e=this.extractCallback(t),a=this.extractDefaultBlock(t),i=this.toPayload(t);if(!e){var r=this._eth.call(i,a);return this.unpackOutput(r)}var n=this;this._eth.call(i,a,function(t,a){if(t)return e(t,null);var i=null;try{i=n.unpackOutput(a)}catch(r){t=r}e(t,i)})},n.prototype.sendTransaction=function(){var t=Array.prototype.slice.call(arguments).filter(function(t){return void 0!==t}),e=this.extractCallback(t),a=this.toPayload(t);if(a.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!e)return this._eth.sendTransaction(a);this._eth.sendTransaction(a,e)},n.prototype.estimateGas=function(){var t=Array.prototype.slice.call(arguments),e=this.extractCallback(t),a=this.toPayload(t);if(!e)return this._eth.estimateGas(a);this._eth.estimateGas(a,e)},n.prototype.getData=function(){var t=Array.prototype.slice.call(arguments);return this.toPayload(t).data},n.prototype.displayName=function(){return e.extractDisplayName(this._name)},n.prototype.typeName=function(){return e.extractTypeName(this._name)},n.prototype.request=function(){var t=Array.prototype.slice.call(arguments),e=this.extractCallback(t),a=this.toPayload(t),i=this.unpackOutput.bind(this);return{method:this._constant?"eth_call":"eth_sendTransaction",callback:e,params:[a],format:i}},n.prototype.execute=function(){return!this._constant?this.sendTransaction.apply(this,Array.prototype.slice.call(arguments)):this.call.apply(this,Array.prototype.slice.call(arguments))},n.prototype.attachToContract=function(t){var e=this.execute.bind(this);e.request=this.request.bind(this),e.call=this.call.bind(this),e.sendTransaction=this.sendTransaction.bind(this),e.estimateGas=this.estimateGas.bind(this),e.getData=this.getData.bind(this);var a=this.displayName();t[a]||(t[a]=e),t[a][this.typeName()]=e},module.exports=n;
},{"../solidity/coder":"YtyA","../utils/utils":"Fh47","./errors":"NewK","./formatters":"ra15","../utils/sha3":"jJsm"}],"HDvc":[function(require,module,exports) {
var t=require("../utils/sha3"),e=require("./event"),r=require("./formatters"),i=require("../utils/utils"),o=require("./filter"),n=require("./methods/watches"),s=function(t,e,r){this._requestManager=t,this._json=e,this._address=r};s.prototype.encode=function(t){t=t||{};var e={};return["fromBlock","toBlock"].filter(function(e){return void 0!==t[e]}).forEach(function(i){e[i]=r.inputBlockNumberFormatter(t[i])}),e.address=this._address,e},s.prototype.decode=function(o){o.data=o.data||"";var n=i.isArray(o.topics)&&i.isString(o.topics[0])?o.topics[0].slice(2):"",s=this._json.filter(function(e){return n===t(i.transformToFullName(e))})[0];return s?new e(this._requestManager,s,this._address).decode(o):r.outputLogFormatter(o)},s.prototype.execute=function(t,e){i.isFunction(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],1===arguments.length&&(t=null));var r=this.encode(t),s=this.decode.bind(this);return new o(r,"eth",this._requestManager,n.eth(),s,e)},s.prototype.attachToContract=function(t){var e=this.execute.bind(this);t.allEvents=e},module.exports=s;
},{"../utils/sha3":"jJsm","./event":"N4No","./formatters":"ra15","../utils/utils":"Fh47","./filter":"kB3J","./methods/watches":"Xvr8"}],"lrYx":[function(require,module,exports) {
var t=require("../utils/utils"),n=require("../solidity/coder"),e=require("./event"),r=require("./function"),a=require("./allevents"),o=function(t,e){return t.filter(function(t){return"constructor"===t.type&&t.inputs.length===e.length}).map(function(t){return t.inputs.map(function(t){return t.type})}).map(function(t){return n.encodeParams(t,e)})[0]||""},i=function(t){t.abi.filter(function(t){return"function"===t.type}).map(function(n){return new r(t._eth,n,t.address)}).forEach(function(n){n.attachToContract(t)})},c=function(t){var n=t.abi.filter(function(t){return"event"===t.type});new a(t._eth._requestManager,n,t.address).attachToContract(t),n.map(function(n){return new e(t._eth._requestManager,n,t.address)}).forEach(function(n){n.attachToContract(t)})},s=function(t,n){var e=0,r=!1,a=t._eth.filter("latest",function(o){if(!o&&!r)if(++e>50){if(a.stopWatching(function(){}),r=!0,!n)throw new Error("Contract transaction couldn't be found after 50 blocks");n(new Error("Contract transaction couldn't be found after 50 blocks"))}else t._eth.getTransactionReceipt(t.transactionHash,function(e,o){o&&o.blockHash&&!r&&t._eth.getCode(o.contractAddress,function(e,s){if(!r&&s)if(a.stopWatching(function(){}),r=!0,s.length>3)t.address=o.contractAddress,i(t),c(t),n&&n(null,t);else{if(!n)throw new Error("The contract code couldn't be stored, please check your gas amount.");n(new Error("The contract code couldn't be stored, please check your gas amount."))}})})})},u=function(n,e){this.eth=n,this.abi=e,this.new=function(){var n,r=new h(this.eth,this.abi),a={},i=Array.prototype.slice.call(arguments);t.isFunction(i[i.length-1])&&(n=i.pop());var c=i[i.length-1];if((t.isObject(c)&&!t.isArray(c)&&(a=i.pop()),a.value>0)&&!(e.filter(function(t){return"constructor"===t.type&&t.inputs.length===i.length})[0]||{}).payable)throw new Error("Cannot send value to non-payable constructor");var u=o(this.abi,i);if(a.data+=u,n)this.eth.sendTransaction(a,function(t,e){t?n(t):(r.transactionHash=e,n(null,r),s(r,n))});else{var l=this.eth.sendTransaction(a);r.transactionHash=l,s(r)}return r},this.new.getData=this.getData.bind(this)};u.prototype.at=function(t,n){var e=new h(this.eth,this.abi,t);return i(e),c(e),n&&n(null,e),e},u.prototype.getData=function(){var n={},e=Array.prototype.slice.call(arguments),r=e[e.length-1];t.isObject(r)&&!t.isArray(r)&&(n=e.pop());var a=o(this.abi,e);return n.data+=a,n.data};var h=function(t,n,e){this._eth=t,this.transactionHash=null,this.address=e,this.abi=n};module.exports=u;
},{"../utils/utils":"Fh47","../solidity/coder":"YtyA","./event":"N4No","./function":"fhPu","./allevents":"HDvc"}],"R3EG":[function(require,module,exports) {
var t=require("./formatters"),a=require("../utils/utils"),s=1,n=function(s){s.requestManager.startPolling({method:"eth_syncing",params:[]},s.pollId,function(n,l){if(n)return s.callbacks.forEach(function(t){t(n)});a.isObject(l)&&l.startingBlock&&(l=t.outputSyncingFormatter(l)),s.callbacks.forEach(function(t){s.lastSyncState!==l&&(!s.lastSyncState&&a.isObject(l)&&t(null,!0),setTimeout(function(){t(null,l)},0),s.lastSyncState=l)})},s.stopWatching.bind(s))},l=function(t,a){return this.requestManager=t,this.pollId="syncPoll_"+s++,this.callbacks=[],this.addCallback(a),this.lastSyncState=!1,n(this),this};l.prototype.addCallback=function(t){return t&&this.callbacks.push(t),this},l.prototype.stopWatching=function(){this.requestManager.stopPolling(this.pollId),this.callbacks=[]},module.exports=l;
},{"./formatters":"ra15","../utils/utils":"Fh47"}],"K6wu":[function(require,module,exports) {
module.exports=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"name",outputs:[{name:"o_name",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"subRegistrar",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_registrar",type:"address"}],name:"setSubRegistrar",outputs:[],type:"function"},{constant:!1,inputs:[],name:"Registrar",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"},{name:"_primary",type:"bool"}],name:"setAddress",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_content",type:"bytes32"}],name:"setContent",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"disown",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_winner",type:"address"}],name:"AuctionEnded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_bidder",type:"address"},{indexed:!1,name:"_value",type:"uint256"}],name:"NewBid",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"},{indexed:!0,name:"addr",type:"address"}],name:"PrimaryChanged",type:"event"}];
},{}],"OzEt":[function(require,module,exports) {
module.exports=[{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_refund",type:"address"}],name:"disown",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"}],name:"setAddr",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"}];
},{}],"DSD0":[function(require,module,exports) {
var a=require("../contracts/GlobalRegistrar.json"),c=require("../contracts/ICAPRegistrar.json"),r="0xc6d9d2cd449a754c494264e1809c50e34d64562b",e="0xa1a111bc074c9cfa781f0c38e63bd51c91b8af00";module.exports={global:{abi:a,address:r},icap:{abi:c,address:e}};
},{"../contracts/GlobalRegistrar.json":"K6wu","../contracts/ICAPRegistrar.json":"OzEt"}],"iGcT":[function(require,module,exports) {
module.exports=[{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"indirectId",type:"bytes32"},{name:"value",type:"uint256"}],name:"icapTransfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"to",type:"bytes32"}],name:"deposit",outputs:[],payable:!0,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"AnonymousDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"indirectId",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"IcapTransfer",type:"event"}];
},{}],"JAe5":[function(require,module,exports) {
var r=require("./iban"),n=require("../contracts/SmartExchange.json"),i=function(n,i,a,o,s){var u=new r(a);if(!u.isValid())throw new Error("invalid iban address");if(u.isDirect())return e(n,i,u.address(),o,s);if(!s){var c=n.icapNamereg().addr(u.institution());return t(n,i,c,o,u.client())}n.icapNamereg().addr(u.institution(),function(r,e){return t(n,i,e,o,u.client(),s)})},e=function(r,n,i,e,t){return r.sendTransaction({address:i,from:n,value:e},t)},t=function(r,i,e,t,a,o){var s=n;return r.contract(s).at(e).deposit(a,{from:i,value:t},o)};module.exports=i;
},{"./iban":"JSHq","../contracts/SmartExchange.json":"iGcT"}],"mNYm":[function(require,module,exports) {
"use strict";var t=require("../formatters"),e=require("../../utils/utils"),r=require("../method"),a=require("../property"),n=require("../../utils/config"),o=require("../contract"),u=require("./watches"),i=require("../filter"),c=require("../syncing"),m=require("../namereg"),l=require("../iban"),s=require("../transfer"),p=function(t){return e.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},g=function(t){return e.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},h=function(t){return e.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},F=function(t){return e.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},f=function(t){return e.isString(t[0])&&0===t[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"};function B(t){this._requestManager=t._requestManager;var e=this;d().forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}),_().forEach(function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}),this.iban=l,this.sendIBANTransaction=s.bind(null,this)}Object.defineProperty(B.prototype,"defaultBlock",{get:function(){return n.defaultBlock},set:function(t){return n.defaultBlock=t,t}}),Object.defineProperty(B.prototype,"defaultAccount",{get:function(){return n.defaultAccount},set:function(t){return n.defaultAccount=t,t}});var d=function(){var a=new r({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[t.inputAddressFormatter,t.inputDefaultBlockNumberFormatter],outputFormatter:t.outputBigNumberFormatter}),n=new r({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[null,e.toHex,t.inputDefaultBlockNumberFormatter]}),o=new r({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[t.inputAddressFormatter,t.inputDefaultBlockNumberFormatter]}),u=new r({name:"getBlock",call:p,params:2,inputFormatter:[t.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:t.outputBlockFormatter}),i=new r({name:"getUncle",call:h,params:2,inputFormatter:[t.inputBlockNumberFormatter,e.toHex],outputFormatter:t.outputBlockFormatter}),c=new r({name:"getCompilers",call:"eth_getCompilers",params:0}),m=new r({name:"getBlockTransactionCount",call:F,params:1,inputFormatter:[t.inputBlockNumberFormatter],outputFormatter:e.toDecimal}),l=new r({name:"getBlockUncleCount",call:f,params:1,inputFormatter:[t.inputBlockNumberFormatter],outputFormatter:e.toDecimal}),s=new r({name:"getTransaction",call:"eth_getTransactionByHash",params:1,outputFormatter:t.outputTransactionFormatter}),B=new r({name:"getTransactionFromBlock",call:g,params:2,inputFormatter:[t.inputBlockNumberFormatter,e.toHex],outputFormatter:t.outputTransactionFormatter}),d=new r({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,outputFormatter:t.outputTransactionReceiptFormatter}),_=new r({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[null,t.inputDefaultBlockNumberFormatter],outputFormatter:e.toDecimal}),w=new r({name:"sendRawTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),b=new r({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[t.inputTransactionFormatter]}),k=new r({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[t.inputTransactionFormatter]}),y=new r({name:"sign",call:"eth_sign",params:2,inputFormatter:[t.inputAddressFormatter,null]});return[a,n,o,u,i,c,m,l,s,B,d,_,new r({name:"call",call:"eth_call",params:2,inputFormatter:[t.inputCallFormatter,t.inputDefaultBlockNumberFormatter]}),new r({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[t.inputCallFormatter],outputFormatter:e.toDecimal}),w,k,b,y,new r({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new r({name:"compile.lll",call:"eth_compileLLL",params:1}),new r({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new r({name:"submitWork",call:"eth_submitWork",params:3}),new r({name:"getWork",call:"eth_getWork",params:0})]},_=function(){return[new a({name:"coinbase",getter:"eth_coinbase"}),new a({name:"mining",getter:"eth_mining"}),new a({name:"hashrate",getter:"eth_hashrate",outputFormatter:e.toDecimal}),new a({name:"syncing",getter:"eth_syncing",outputFormatter:t.outputSyncingFormatter}),new a({name:"gasPrice",getter:"eth_gasPrice",outputFormatter:t.outputBigNumberFormatter}),new a({name:"accounts",getter:"eth_accounts"}),new a({name:"blockNumber",getter:"eth_blockNumber",outputFormatter:e.toDecimal}),new a({name:"protocolVersion",getter:"eth_protocolVersion"})]};B.prototype.contract=function(t){return new o(this,t)},B.prototype.filter=function(e,r,a){return new i(e,"eth",this._requestManager,u.eth(),t.outputLogFormatter,r,a)},B.prototype.namereg=function(){return this.contract(m.global.abi).at(m.global.address)},B.prototyLine truncated
},{"../formatters":"ra15","../../utils/utils":"Fh47","../method":"Gyz6","../property":"H1O0","../../utils/config":"hHtK","../contract":"lrYx","./watches":"Xvr8","../filter":"kB3J","../syncing":"R3EG","../namereg":"DSD0","../iban":"JSHq","../transfer":"JAe5"}],"wvNc":[function(require,module,exports) {
var e=require("../method"),a=function(e){this._requestManager=e._requestManager;var a=this;t().forEach(function(t){t.attachToObject(a),t.setRequestManager(e._requestManager)})},t=function(){return[new e({name:"putString",call:"db_putString",params:3}),new e({name:"getString",call:"db_getString",params:2}),new e({name:"putHex",call:"db_putHex",params:3}),new e({name:"getHex",call:"db_getHex",params:2})]};module.exports=a;
},{"../method":"Gyz6"}],"QZdx":[function(require,module,exports) {
var e=require("../method"),a=require("../filter"),s=require("./watches"),r=function(e){this._requestManager=e._requestManager;var a=this;n().forEach(function(e){e.attachToObject(a),e.setRequestManager(a._requestManager)})};r.prototype.newMessageFilter=function(e,r,n){return new a(e,"shh",this._requestManager,s.shh(),null,r,n)};var n=function(){return[new e({name:"version",call:"shh_version",params:0}),new e({name:"info",call:"shh_info",params:0}),new e({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new e({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new e({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new e({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new e({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new e({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new e({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new e({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new e({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new e({name:"newSymKey",call:"shh_newSymKey",params:0}),new e({name:"addSymKey",call:"shh_addSymKey",params:1}),new e({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new e({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new e({name:"getSymKey",call:"shh_getSymKey",params:1}),new e({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new e({name:"post",call:"shh_post",params:1,inputFormatter:[null]})]};module.exports=r;
},{"../method":"Gyz6","../filter":"kB3J","./watches":"Xvr8"}],"NpaX":[function(require,module,exports) {
var e=require("../../utils/utils"),t=require("../property"),r=function(e){this._requestManager=e._requestManager;var t=this;n().forEach(function(r){r.attachToObject(t),r.setRequestManager(e._requestManager)})},n=function(){return[new t({name:"listening",getter:"net_listening"}),new t({name:"peerCount",getter:"net_peerCount",outputFormatter:e.toDecimal})]};module.exports=r;
},{"../../utils/utils":"Fh47","../property":"H1O0"}],"T1z5":[function(require,module,exports) {
"use strict";var e=require("../method"),n=require("../property"),a=require("../formatters");function r(e){this._requestManager=e._requestManager;var n=this;t().forEach(function(e){e.attachToObject(n),e.setRequestManager(n._requestManager)}),o().forEach(function(e){e.attachToObject(n),e.setRequestManager(n._requestManager)})}var t=function(){var n=new e({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null]}),r=new e({name:"importRawKey",call:"personal_importRawKey",params:2}),t=new e({name:"sign",call:"personal_sign",params:3,inputFormatter:[null,a.inputAddressFormatter,null]}),o=new e({name:"ecRecover",call:"personal_ecRecover",params:2});return[n,r,new e({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[a.inputAddressFormatter,null,null]}),o,t,new e({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[a.inputTransactionFormatter,null]}),new e({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[a.inputAddressFormatter]})]},o=function(){return[new n({name:"listAccounts",getter:"personal_listAccounts"})]};module.exports=r;
},{"../method":"Gyz6","../property":"H1O0","../formatters":"ra15"}],"bPYj":[function(require,module,exports) {
"use strict";var e=require("../method"),a=require("../property");function n(e){this._requestManager=e._requestManager;var a=this;t().forEach(function(e){e.attachToObject(a),e.setRequestManager(a._requestManager)}),r().forEach(function(e){e.attachToObject(a),e.setRequestManager(a._requestManager)})}var t=function(){return[new e({name:"blockNetworkRead",call:"bzz_blockNetworkRead",params:1,inputFormatter:[null]}),new e({name:"syncEnabled",call:"bzz_syncEnabled",params:1,inputFormatter:[null]}),new e({name:"swapEnabled",call:"bzz_swapEnabled",params:1,inputFormatter:[null]}),new e({name:"download",call:"bzz_download",params:2,inputFormatter:[null,null]}),new e({name:"upload",call:"bzz_upload",params:2,inputFormatter:[null,null]}),new e({name:"retrieve",call:"bzz_retrieve",params:1,inputFormatter:[null]}),new e({name:"store",call:"bzz_store",params:2,inputFormatter:[null,null]}),new e({name:"get",call:"bzz_get",params:1,inputFormatter:[null]}),new e({name:"put",call:"bzz_put",params:2,inputFormatter:[null,null]}),new e({name:"modify",call:"bzz_modify",params:4,inputFormatter:[null,null,null,null]})]},r=function(){return[new a({name:"hive",getter:"bzz_hive"}),new a({name:"info",getter:"bzz_info"})]};module.exports=n;
},{"../method":"Gyz6","../property":"H1O0"}],"vHQl":[function(require,module,exports) {
var t=function(){this.defaultBlock="latest",this.defaultAccount=void 0};module.exports=t;
},{}],"Epl9":[function(require,module,exports) {
module.exports={version:"0.20.7"};
},{}],"JnL1":[function(require,module,exports) {
var e=require("./formatters"),r=require("./../utils/utils"),t=require("./method"),o=require("./property"),a=function(a){var u=function(e){var r;e.property?(a[e.property]||(a[e.property]={}),r=a[e.property]):r=a,e.methods&&e.methods.forEach(function(e){e.attachToObject(r),e.setRequestManager(a._requestManager)}),e.properties&&e.properties.forEach(function(e){e.attachToObject(r),e.setRequestManager(a._requestManager)})};return u.formatters=e,u.utils=r,u.Method=t,u.Property=o,u};module.exports=a;
},{"./formatters":"ra15","./../utils/utils":"Fh47","./method":"Gyz6","./property":"H1O0"}],"Gofy":[function(require,module,exports) {
var e=require("./jsonrpc"),r=require("./errors"),t=function(e){this.requestManager=e._requestManager,this.requests=[]};t.prototype.add=function(e){this.requests.push(e)},t.prototype.execute=function(){var t=this.requests;this.requestManager.sendBatch(t,function(s,n){n=n||[],t.map(function(e,r){return n[r]||{}}).forEach(function(s,n){if(t[n].callback){if(!e.isValidResponse(s))return t[n].callback(r.InvalidResponse(s));t[n].callback(null,t[n].format?t[n].format(s.result):s.result)}})})},module.exports=t;
},{"./jsonrpc":"Fylb","./errors":"NewK"}],"HLYo":[function(require,module,exports) {
"use strict";"undefined"==typeof XMLHttpRequest?exports.XMLHttpRequest={}:exports.XMLHttpRequest=XMLHttpRequest;
},{}],"MtmI":[function(require,module,exports) {
var global = arguments[3];
var r,e=arguments[3];exports.fetch=s(e.fetch)&&s(e.ReadableStream),exports.writableStream=s(e.WritableStream),exports.abortController=s(e.AbortController),exports.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),exports.blobConstructor=!0}catch(f){}function t(){if(void 0!==r)return r;if(e.XMLHttpRequest){r=new e.XMLHttpRequest;try{r.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(f){r=null}}else r=null;return r}function o(r){var e=t();if(!e)return!1;try{return e.responseType=r,e.responseType===r}catch(f){}return!1}var a=void 0!==e.ArrayBuffer,n=a&&s(e.ArrayBuffer.prototype.slice);function s(r){return"function"==typeof r}exports.arraybuffer=exports.fetch||a&&o("arraybuffer"),exports.msstream=!exports.fetch&&n&&o("ms-stream"),exports.mozchunkedarraybuffer=!exports.fetch&&a&&o("moz-chunked-arraybuffer"),exports.overrideMimeType=exports.fetch||!!t()&&s(t().overrideMimeType),exports.vbArray=s(e.VBArray),r=null;
},{}],"K8Qe":[function(require,module,exports) {
var process = require("process");
var Buffer = require("buffer").Buffer;
var global = arguments[3];
var e=require("process"),r=require("buffer").Buffer,t=arguments[3],s=require("./capability"),a=require("inherits"),o=require("readable-stream"),n=exports.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=exports.IncomingMessage=function(a,n,u,i){var c=this;if(o.Readable.call(c),c._mode=u,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){e.nextTick(function(){c.emit("close")})}),"fetch"===u){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach(function(e,r){c.headers[r.toLowerCase()]=e,c.rawHeaders.push(r,e)}),s.writableStream){var d=new WritableStream({write:function(e){return new Promise(function(t,s){c._destroyed?s():c.push(new r(e))?t():c._resumeFetch=t})},close:function(){t.clearTimeout(i),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void n.body.pipeTo(d).catch(function(e){t.clearTimeout(i),c._destroyed||c.emit("error",e)})}catch(p){}}var h=n.body.getReader();!function e(){h.read().then(function(s){if(!c._destroyed){if(s.done)return t.clearTimeout(i),void c.push(null);c.push(new r(s.value)),e()}}).catch(function(e){t.clearTimeout(i),c._destroyed||c.emit("error",e)})}()}else{if(c._xhr=a,c._pos=0,c.url=a.responseURL,c.statusCode=a.status,c.statusMessage=a.statusText,a.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var r=e.match(/^([^:]+):\s*(.*)/);if(r){var t=r[1].toLowerCase();"set-cookie"===t?(void 0===c.headers[t]&&(c.headers[t]=[]),c.headers[t].push(r[2])):void 0!==c.headers[t]?c.headers[t]+=", "+r[2]:c.headers[t]=r[2],c.rawHeaders.push(r[1],r[2])}}),c._charset="x-user-defined",!s.overrideMimeType){var f=c.rawHeaders["mime-type"];if(f){var l=f.match(/;\s*charset=([^;])(;|$)/);l&&(c._charset=l[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(u,o.Readable),u.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},u.prototype._onXHRProgress=function(){var e=this,s=e._xhr,a=null;switch(e._mode){case"text:vbarray":if(s.readyState!==n.DONE)break;try{a=new t.VBArray(s.responseBody).toArray()}catch(d){}if(null!==a){e.push(new r(a));break}case"text":try{a=s.responseText}catch(d){e._mode="text:vbarray";break}if(a.length>e._pos){var o=a.substr(e._pos);if("x-user-defined"===e._charset){for(var u=new r(o.length),i=0;i<o.length;i++)u[i]=255&o.charCodeAt(i);e.push(u)}else e.push(o,e._charset);e._pos=a.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;a=s.response,e.push(new r(new Uint8Array(a)));break;case"moz-chunked-arraybuffer":if(a=s.response,s.readyState!==n.LOADING||!a)break;e.push(new r(new Uint8Array(a)));break;case"ms-stream":if(a=s.response,s.readyState!==n.LOADING)break;var c=new t.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(a)}e._xhr.readyState===n.DONE&&"ms-stream"!==e._mode&&e.push(null)};
},{"./capability":"MtmI","inherits":"oxwV","readable-stream":"YvpY","process":"g5IB","buffer":"z1tx"}],"xHkA":[function(require,module,exports) {
var e=require("buffer").Buffer;module.exports=function(f){if(f instanceof Uint8Array){if(0===f.byteOffset&&f.byteLength===f.buffer.byteLength)return f.buffer;if("function"==typeof f.buffer.slice)return f.buffer.slice(f.byteOffset,f.byteOffset+f.byteLength)}if(e.isBuffer(f)){for(var r=new Uint8Array(f.length),t=f.length,n=0;n<t;n++)r[n]=f[n];return r.buffer}throw new Error("Argument must be a Buffer")};
},{"buffer":"z1tx"}],"p71p":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var global = arguments[3];
var process = require("process");
var e=require("buffer").Buffer,t=arguments[3],r=require("process"),o=require("./capability"),n=require("inherits"),i=require("./response"),s=require("readable-stream"),a=require("to-arraybuffer"),c=i.IncomingMessage,u=i.readyStates;function d(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":o.vbArray&&e?"text:vbarray":"text"}var f=module.exports=function(t){var r,n=this;s.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){n.setHeader(e,t.headers[e])});var i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!o.abortController)i=!1,r=!0;else if("prefer-streaming"===t.mode)r=!1;else if("allow-wrong-content-type"===t.mode)r=!o.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");r=!0}n._mode=d(r,i),n._fetchTimer=null,n.on("finish",function(){n._onFinish()})};function h(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}n(f,s.Writable),f.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===p.indexOf(r)&&(this._headers[r]={name:e,value:t})},f.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},f.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},f.prototype._onFinish=function(){var n=this;if(!n._destroyed){var i=n._opts,s=n._headers,c=null;"GET"!==i.method&&"HEAD"!==i.method&&(c=o.arraybuffer?a(e.concat(n._body)):o.blobConstructor?new t.Blob(n._body.map(function(e){return a(e)}),{type:(s["content-type"]||{}).value||""}):e.concat(n._body).toString());var d=[];if(Object.keys(s).forEach(function(e){var t=s[e].name,r=s[e].value;Array.isArray(r)?r.forEach(function(e){d.push([t,e])}):d.push([t,r])}),"fetch"===n._mode){var f=null;if(o.abortController){var h=new AbortController;f=h.signal,n._fetchAbortController=h,"requestTimeout"in i&&0!==i.requestTimeout&&(n._fetchTimer=t.setTimeout(function(){n.emit("requestTimeout"),n._fetchAbortController&&n._fetchAbortController.abort()},i.requestTimeout))}t.fetch(n._opts.url,{method:n._opts.method,headers:d,body:c||void 0,mode:"cors",credentials:i.withCredentials?"include":"same-origin",signal:f}).then(function(e){n._fetchResponse=e,n._connect()},function(e){t.clearTimeout(n._fetchTimer),n._destroyed||n.emit("error",e)})}else{var p=n._xhr=new t.XMLHttpRequest;try{p.open(n._opts.method,n._opts.url,!0)}catch(l){return void r.nextTick(function(){n.emit("error",l)})}"responseType"in p&&(p.responseType=n._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!i.withCredentials),"text"===n._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in i&&(p.timeout=i.requestTimeout,p.ontimeout=function(){n.emit("requestTimeout")}),d.forEach(function(e){p.setRequestHeader(e[0],e[1])}),n._response=null,p.onreadystatechange=function(){switch(p.readyState){case u.LOADING:case u.DONE:n._onXHRProgress()}},"moz-chunked-arraybuffer"===n._mode&&(p.onprogress=function(){n._onXHRProgress()}),p.onerror=function(){n._destroyed||n.emit("error",new Error("XHR error"))};try{p.send(c)}catch(l){return void r.nextTick(function(){n.emit("error",l)})}}}},f.prototype._onXHRProgress=function(){h(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},f.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},f.prototype._write=function(e,t,r){this._body.push(e),r()},f.prototype.abort=f.prototype.destroy=function(){this._destroyed=!0,t.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},f.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),s.Writable.prototype.end.call(this,e,t,r)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];
},{"./capability":"MtmI","inherits":"oxwV","./response":"K8Qe","readable-stream":"YvpY","to-arraybuffer":"xHkA","buffer":"z1tx","process":"g5IB"}],"YxsI":[function(require,module,exports) {
module.exports=o;var r=Object.prototype.hasOwnProperty;function o(){for(var o={},t=0;t<arguments.length;t++){var e=arguments[t];for(var a in e)r.call(e,a)&&(o[a]=e[a])}return o}
},{}],"XmSl":[function(require,module,exports) {
module.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"};
},{}],"GVK8":[function(require,module,exports) {
var global = arguments[3];
var define;
var o,e=arguments[3];!function(n){var r="object"==typeof exports&&exports&&!exports.nodeType&&exports,t="object"==typeof module&&module&&!module.nodeType&&module,u="object"==typeof e&&e;u.global!==u&&u.window!==u&&u.self!==u||(n=u);var i,f,c=2147483647,l=36,s=1,p=26,a=38,d=700,h=72,v=128,g="-",w=/^xn--/,x=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=l-s,b=Math.floor,j=String.fromCharCode;function A(o){throw new RangeError(m[o])}function I(o,e){for(var n=o.length,r=[];n--;)r[n]=e(o[n]);return r}function E(o,e){var n=o.split("@"),r="";return n.length>1&&(r=n[0]+"@",o=n[1]),r+I((o=o.replace(y,".")).split("."),e).join(".")}function F(o){for(var e,n,r=[],t=0,u=o.length;t<u;)(e=o.charCodeAt(t++))>=55296&&e<=56319&&t<u?56320==(64512&(n=o.charCodeAt(t++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),t--):r.push(e);return r}function O(o){return I(o,function(o){var e="";return o>65535&&(e+=j((o-=65536)>>>10&1023|55296),o=56320|1023&o),e+=j(o)}).join("")}function S(o,e){return o+22+75*(o<26)-((0!=e)<<5)}function T(o,e,n){var r=0;for(o=n?b(o/d):o>>1,o+=b(o/e);o>C*p>>1;r+=l)o=b(o/C);return b(r+(C+1)*o/(o+a))}function L(o){var e,n,r,t,u,i,f,a,d,w,x,y=[],m=o.length,C=0,j=v,I=h;for((n=o.lastIndexOf(g))<0&&(n=0),r=0;r<n;++r)o.charCodeAt(r)>=128&&A("not-basic"),y.push(o.charCodeAt(r));for(t=n>0?n+1:0;t<m;){for(u=C,i=1,f=l;t>=m&&A("invalid-input"),((a=(x=o.charCodeAt(t++))-48<10?x-22:x-65<26?x-65:x-97<26?x-97:l)>=l||a>b((c-C)/i))&&A("overflow"),C+=a*i,!(a<(d=f<=I?s:f>=I+p?p:f-I));f+=l)i>b(c/(w=l-d))&&A("overflow"),i*=w;I=T(C-u,e=y.length+1,0==u),b(C/e)>c-j&&A("overflow"),j+=b(C/e),C%=e,y.splice(C++,0,j)}return O(y)}function M(o){var e,n,r,t,u,i,f,a,d,w,x,y,m,C,I,E=[];for(y=(o=F(o)).length,e=v,n=0,u=h,i=0;i<y;++i)(x=o[i])<128&&E.push(j(x));for(r=t=E.length,t&&E.push(g);r<y;){for(f=c,i=0;i<y;++i)(x=o[i])>=e&&x<f&&(f=x);for(f-e>b((c-n)/(m=r+1))&&A("overflow"),n+=(f-e)*m,e=f,i=0;i<y;++i)if((x=o[i])<e&&++n>c&&A("overflow"),x==e){for(a=n,d=l;!(a<(w=d<=u?s:d>=u+p?p:d-u));d+=l)I=a-w,C=l-w,E.push(j(S(w+I%C,0))),a=b(I/C);E.push(j(S(a,0))),u=T(n,m,r==t),n=0,++r}++n,++e}return E.join("")}if(i={version:"1.4.1",ucs2:{decode:F,encode:O},decode:L,encode:M,toASCII:function(o){return E(o,function(o){return x.test(o)?"xn--"+M(o):o})},toUnicode:function(o){return E(o,function(o){return w.test(o)?L(o.slice(4).toLowerCase()):o})}},"function"==typeof o&&"object"==typeof o.amd&&o.amd)o("punycode",function(){return i});else if(r&&t)if(module.exports==r)t.exports=i;else for(f in i)i.hasOwnProperty(f)&&(r[f]=i[f]);else n.punycode=i}(this);
},{}],"oHuK":[function(require,module,exports) {
"use strict";module.exports={isString:function(n){return"string"==typeof n},isObject:function(n){return"object"==typeof n&&null!==n},isNull:function(n){return null===n},isNullOrUndefined:function(n){return null==n}};
},{}],"ObZ4":[function(require,module,exports) {
"use strict";function r(r,e){return Object.prototype.hasOwnProperty.call(r,e)}module.exports=function(t,n,o,a){n=n||"&",o=o||"=";var s={};if("string"!=typeof t||0===t.length)return s;var p=/\+/g;t=t.split(n);var u=1e3;a&&"number"==typeof a.maxKeys&&(u=a.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var i=0;i<c;++i){var y,l,f,v,b=t[i].replace(p,"%20"),d=b.indexOf(o);d>=0?(y=b.substr(0,d),l=b.substr(d+1)):(y=b,l=""),f=decodeURIComponent(y),v=decodeURIComponent(l),r(s,f)?e(s[f])?s[f].push(v):s[f]=[s[f],v]:s[f]=v}return s};var e=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)};
},{}],"XK8a":[function(require,module,exports) {
"use strict";var n=function(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}};module.exports=function(o,u,c,a){return u=u||"&",c=c||"=",null===o&&(o=void 0),"object"==typeof o?r(t(o),function(t){var a=encodeURIComponent(n(t))+c;return e(o[t])?r(o[t],function(e){return a+encodeURIComponent(n(e))}).join(u):a+encodeURIComponent(n(o[t]))}).join(u):a?encodeURIComponent(n(a))+c+encodeURIComponent(n(o)):""};var e=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)};function r(n,e){if(n.map)return n.map(e);for(var r=[],t=0;t<n.length;t++)r.push(e(n[t],t));return r}var t=Object.keys||function(n){var e=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.push(r);return e};
},{}],"SF0R":[function(require,module,exports) {
"use strict";exports.decode=exports.parse=require("./decode"),exports.encode=exports.stringify=require("./encode");
},{"./decode":"ObZ4","./encode":"XK8a"}],"j37I":[function(require,module,exports) {
"use strict";var t=require("punycode"),s=require("./util");function h(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}exports.parse=b,exports.resolve=O,exports.resolveObject=d,exports.format=q,exports.Url=h;var e=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r","\n","\t"],n=["{","}","|","\\","^","`"].concat(o),i=["'"].concat(n),l=["%","/","?",";","#"].concat(i),p=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=require("querystring");function b(t,e,a){if(t&&s.isObject(t)&&t instanceof h)return t;var r=new h;return r.parse(t,e,a),r}function q(t){return s.isString(t)&&(t=b(t)),t instanceof h?t.format():h.prototype.format.call(t)}function O(t,s){return b(t,!1,!0).resolve(s)}function d(t,s){return t?b(t,!1,!0).resolveObject(s):s}h.prototype.parse=function(h,a,o){if(!s.isString(h))throw new TypeError("Parameter 'url' must be a string, not "+typeof h);var n=h.indexOf("?"),b=-1!==n&&n<h.indexOf("#")?"?":"#",q=h.split(b);q[0]=q[0].replace(/\\/g,"/");var O=h=q.join(b);if(O=O.trim(),!o&&1===h.split("#").length){var d=r.exec(O);if(d)return this.path=O,this.href=O,this.pathname=d[1],d[2]?(this.search=d[2],this.query=a?y.parse(this.search.substr(1)):this.search.substr(1)):a&&(this.search="",this.query={}),this}var j=e.exec(O);if(j){var x=(j=j[0]).toLowerCase();this.protocol=x,O=O.substr(j.length)}if(o||j||O.match(/^\/\/[^@\/]+@[^@\/]+/)){var A="//"===O.substr(0,2);!A||j&&v[j]||(O=O.substr(2),this.slashes=!0)}if(!v[j]&&(A||j&&!g[j])){for(var C,I,w=-1,U=0;U<p.length;U++){-1!==(k=O.indexOf(p[U]))&&(-1===w||k<w)&&(w=k)}-1!==(I=-1===w?O.lastIndexOf("@"):O.lastIndexOf("@",w))&&(C=O.slice(0,I),O=O.slice(I+1),this.auth=decodeURIComponent(C)),w=-1;for(U=0;U<l.length;U++){var k;-1!==(k=O.indexOf(l[U]))&&(-1===w||k<w)&&(w=k)}-1===w&&(w=O.length),this.host=O.slice(0,w),O=O.slice(w),this.parseHost(),this.hostname=this.hostname||"";var N="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!N)for(var R=this.hostname.split(/\./),S=(U=0,R.length);U<S;U++){var $=R[U];if($&&!$.match(u)){for(var z="",H=0,L=$.length;H<L;H++)$.charCodeAt(H)>127?z+="x":z+=$[H];if(!z.match(u)){var Z=R.slice(0,U),_=R.slice(U+1),E=$.match(f);E&&(Z.push(E[1]),_.unshift(E[2])),_.length&&(O="/"+_.join(".")+O),this.hostname=Z.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=t.toASCII(this.hostname));var P=this.port?":"+this.port:"",T=this.hostname||"";this.host=T+P,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!m[x])for(U=0,S=i.length;U<S;U++){var B=i[U];if(-1!==O.indexOf(B)){var D=encodeURIComponent(B);D===B&&(D=escape(B)),O=O.split(B).join(D)}}var F=O.indexOf("#");-1!==F&&(this.hash=O.substr(F),O=O.slice(0,F));var G=O.indexOf("?");if(-1!==G?(this.search=O.substr(G),this.query=O.substr(G+1),a&&(this.query=y.parse(this.query)),O=O.slice(0,G)):a&&(this.search="",this.query={}),O&&(this.pathname=O),g[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){P=this.pathname||"";var J=this.search||"";this.path=P+J}return this.href=this.format(),this},h.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var h=this.protocol||"",e=this.pathname||"",a=this.hash||"",r=!1,o="";this.host?r=t+this.host:this.hostname&&(r=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var n=this.search||o&&"?"+o||"";return h&&":"!==h.substr(-1)&&(h+=":"),this.slashes||(!h||g[h])&&!1!==r?(r="//"+(r||""),e&&"/"!==e.charAt(0)&&(e="/"+e)):r||(r=""),a&&"#"!==a.charAt(0)&&(a="#"+a),n&&"?"!==n.charAt(0)&&(n="?"+n),h+r+(e=e.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(n=n.replace("#","%23"))+a},h.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},h.prototype.resolveObject=function(t){if(s.isString(t)){var e=new h;e.parse(t,!1,!0),t=e}for(var a=new h,r=Object.keys(this),o=0;o<r.length;o++){var n=r[o];a[n]=this[n]}if(a.hash=t.hash,""===t.href)return a.href=a.format(),a;if(t.slashes&&!t.protocol){for(var i=Object.keys(t),l=0;l<i.length;l++){var p=i[l];"protocol"!==p&&(a[p]=t[p])}return g[a.protocol]&&a.hostname&&!a.pathname&&(a.path=a.pathname="/"),a.href=a.format(),a}if(t.protocol&&t.protocol!==a.protocol){if(!g[t.protocol]){for(var c=Object.keys(t),u=0;u<c.length;u++){var f=c[u];a[f]=t[f]}return a.href=a.format(),a}if(a.protocol=t.protocol,t.host||v[t.protocol])a.pathname=t.pathnaLine truncated
},{"punycode":"GVK8","./util":"oHuK","querystring":"SF0R"}],"f2Kk":[function(require,module,exports) {
var global = arguments[3];
var e=arguments[3],t=require("./lib/request"),r=require("./lib/response"),n=require("xtend"),o=require("builtin-status-codes"),s=require("url"),u=exports;u.request=function(r,o){r="string"==typeof r?s.parse(r):n(r);var u=-1===e.location.protocol.search(/^https?:$/)?"http:":"",E=r.protocol||u,a=r.hostname||r.host,C=r.port,i=r.path||"/";a&&-1!==a.indexOf(":")&&(a="["+a+"]"),r.url=(a?E+"//"+a:"")+(C?":"+C:"")+i,r.method=(r.method||"GET").toUpperCase(),r.headers=r.headers||{};var T=new t(r);return o&&T.on("response",o),T},u.get=function(e,t){var r=u.request(e,t);return r.end(),r},u.ClientRequest=t,u.IncomingMessage=r.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=o,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"];
},{"./lib/request":"p71p","./lib/response":"K8Qe","xtend":"YxsI","builtin-status-codes":"XmSl","url":"j37I"}],"AHs6":[function(require,module,exports) {
var t=require("http"),r=require("url"),o=module.exports;for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);function p(t){if("string"==typeof t&&(t=r.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(r,o){return r=p(r),t.request.call(this,r,o)},o.get=function(r,o){return r=p(r),t.get.call(this,r,o)};
},{"http":"f2Kk","url":"j37I"}],"war4":[function(require,module,exports) {
exports.endianness=function(){return"LE"},exports.hostname=function(){return"undefined"!=typeof location?location.hostname:""},exports.loadavg=function(){return[]},exports.uptime=function(){return 0},exports.freemem=function(){return Number.MAX_VALUE},exports.totalmem=function(){return Number.MAX_VALUE},exports.cpus=function(){return[]},exports.type=function(){return"Browser"},exports.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},exports.networkInterfaces=exports.getNetworkInterfaces=function(){return{}},exports.arch=function(){return"javascript"},exports.platform=function(){return"browser"},exports.tmpdir=exports.tmpDir=function(){return"/tmp"},exports.EOL="\n",exports.homedir=function(){return"/"};
},{}],"qJpg":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(){return function(t){this.type=t,this.bubbles=!1,this.cancelable=!1,this.loaded=0,this.lengthComputable=!1,this.total=0}}();exports.ProgressEvent=t;
},{}],"sM29":[function(require,module,exports) {
"use strict";var r=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])};return function(t,n){function o(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0});var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n}(Error);exports.SecurityError=t;var n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n}(Error);exports.InvalidStateError=n;var o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n}(Error);exports.NetworkError=o;var e=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n}(Error);exports.SyntaxError=e;
},{}],"s4kV":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t){e=e.toLowerCase(),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t.handleEvent||t)},e.prototype.removeEventListener=function(e,t){if(e=e.toLowerCase(),this.listeners[e]){var s=this.listeners[e].indexOf(t.handleEvent||t);s<0||this.listeners[e].splice(s,1)}},e.prototype.dispatchEvent=function(e){var t=e.type.toLowerCase();if(e.target=this,this.listeners[t])for(var s=0,i=this.listeners[t];s<i.length;s++){i[s].call(this,e)}var n=this["on"+t];return n&&n.call(this,e),!0},e}();exports.XMLHttpRequestEventTarget=e;
},{}],"ZwJQ":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var t=require("buffer").Buffer,e=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0});var n=require("./xml-http-request-event-target"),r=function(n){function r(){var t=n.call(this)||this;return t._contentType=null,t._body=null,t._reset(),t}return e(r,n),r.prototype._reset=function(){this._contentType=null,this._body=null},r.prototype._setData=function(e){if(null!=e)if("string"==typeof e)0!==e.length&&(this._contentType="text/plain;charset=UTF-8"),this._body=new t(e,"utf-8");else if(t.isBuffer(e))this._body=e;else if(e instanceof ArrayBuffer){for(var n=new t(e.byteLength),r=new Uint8Array(e),o=0;o<e.byteLength;o++)n[o]=r[o];this._body=n}else{if(!(e.buffer&&e.buffer instanceof ArrayBuffer))throw new Error("Unsupported send() data "+e);n=new t(e.byteLength);var i=e.byteOffset;for(r=new Uint8Array(e.buffer),o=0;o<e.byteLength;o++)n[o]=r[o+i];this._body=n}},r.prototype._finalizeHeaders=function(t,e){this._contentType&&!e["content-type"]&&(t["Content-Type"]=this._contentType),this._body&&(t["Content-Length"]=this._body.length.toString())},r.prototype._startUpload=function(t){this._body&&t.write(this._body),t.end()},r}(n.XMLHttpRequestEventTarget);exports.XMLHttpRequestUpload=r;
},{"./xml-http-request-event-target":"s4kV","buffer":"z1tx"}],"aIhU":[function(require,module,exports) {
!function(){"use strict";function t(i,e,n,r){return this instanceof t?(this.domain=i||void 0,this.path=e||"/",this.secure=!!n,this.script=!!r,this):new t(i,e,n,r)}function i(t,e,n){return t instanceof i?t:this instanceof i?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(n||"/"),this.explicit_path=!1,this.domain=e||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,t&&this.parse(t,e,n),this):new i(t,e,n)}t.All=Object.freeze(Object.create(null)),exports.CookieAccessInfo=t,exports.Cookie=i,i.prototype.toString=function(){var t=[this.name+"="+this.value];return this.expiration_date!==1/0&&t.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&t.push("domain="+this.domain),this.path&&t.push("path="+this.path),this.secure&&t.push("secure"),this.noscript&&t.push("httponly"),t.join("; ")},i.prototype.toValueString=function(){return this.name+"="+this.value};var e=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function n(){var t,e;return this instanceof n?(t=Object.create(null),this.setCookie=function(n,r,s){var o,a;if(o=(n=new i(n,r,s)).expiration_date<=Date.now(),void 0!==t[n.name]){for(e=t[n.name],a=0;a<e.length;a+=1)if(e[a].collidesWith(n))return o?(e.splice(a,1),0===e.length&&delete t[n.name],!1):(e[a]=n,n);return!o&&(e.push(n),n)}return!o&&(t[n.name]=[n],t[n.name])},this.getCookie=function(i,n){var r,s;if(e=t[i])for(s=0;s<e.length;s+=1)if((r=e[s]).expiration_date<=Date.now())0===e.length&&delete t[r.name];else if(r.matches(n))return r},this.getCookies=function(i){var e,n,r=[];for(e in t)(n=this.getCookie(e,i))&&r.push(n);return r.toString=function(){return r.join(":")},r.toValueString=function(){return r.map(function(t){return t.toValueString()}).join("; ")},r},this):new n}i.prototype.parse=function(t,e,n){if(this instanceof i){var r,s=t.split(";").filter(function(t){return!!t}),o=s[0].match(/([^=]+)=([\s\S]*)/);if(!o)return void console.warn("Invalid cookie header encountered. Header: '"+t+"'");var a=o[1],h=o[2];if("string"!=typeof a||0===a.length||"string"!=typeof h)return void console.warn("Unable to extract values from cookie header. Cookie: '"+t+"'");for(this.name=a,this.value=h,r=1;r<s.length;r+=1)switch(a=(o=s[r].match(/([^=]+)(?:=([\s\S]*))?/))[1].trim().toLowerCase(),h=o[2],a){case"httponly":this.noscript=!0;break;case"expires":this.expiration_date=h?Number(Date.parse(h)):1/0;break;case"path":this.path=h?h.trim():"",this.explicit_path=!0;break;case"domain":this.domain=h?h.trim():"",this.explicit_domain=!!this.domain;break;case"secure":this.secure=!0}return this.explicit_path||(this.path=n||"/"),this.explicit_domain||(this.domain=e),this}return(new i).parse(t,e,n)},i.prototype.matches=function(i){return i===t.All||!(this.noscript&&i.script||this.secure&&!i.secure||!this.collidesWith(i))},i.prototype.collidesWith=function(t){if(this.path&&!t.path||this.domain&&!t.domain)return!1;if(this.path&&0!==t.path.indexOf(this.path))return!1;if(this.explicit_path&&0!==t.path.indexOf(this.path))return!1;var i=t.domain&&t.domain.replace(/^[\.]/,""),e=this.domain&&this.domain.replace(/^[\.]/,"");if(e===i)return!0;if(e){if(!this.explicit_domain)return!1;var n=i.indexOf(e);return-1!==n&&n===i.length-e.length}return!0},exports.CookieJar=n,n.prototype.setCookies=function(t,n,r){var s,o,a=[];for(t=(t=Array.isArray(t)?t:t.split(e)).map(function(t){return new i(t,n,r)}),s=0;s<t.length;s+=1)o=t[s],this.setCookie(o,n,r)&&a.push(o);return a}}();
},{}],"hpi2":[function(require,module,exports) {
var process = require("process");
var Buffer = require("buffer").Buffer;
var e=require("process"),t=require("buffer").Buffer,s=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])};return function(t,s){function r(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(r.prototype=s.prototype,new r)}}(),r=this&&this.__assign||Object.assign||function(e){for(var t,s=1,r=arguments.length;s<r;s++)for(var o in t=arguments[s])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(exports,"__esModule",{value:!0});var o=require("http"),n=require("https"),i=require("os"),a=require("url"),h=require("./progress-event"),p=require("./errors"),l=require("./xml-http-request-event-target"),d=require("./xml-http-request-upload"),u=require("cookiejar"),_=function(l){function _(t){void 0===t&&(t={});var s=l.call(this)||this;return s.UNSENT=_.UNSENT,s.OPENED=_.OPENED,s.HEADERS_RECEIVED=_.HEADERS_RECEIVED,s.LOADING=_.LOADING,s.DONE=_.DONE,s.onreadystatechange=null,s.readyState=_.UNSENT,s.response=null,s.responseText="",s.responseType="",s.status=0,s.statusText="",s.timeout=0,s.upload=new d.XMLHttpRequestUpload,s.responseUrl="",s.withCredentials=!1,s._method=null,s._url=null,s._sync=!1,s._headers={},s._loweredHeaders={},s._mimeOverride=null,s._request=null,s._response=null,s._responseParts=null,s._responseHeaders=null,s._aborting=null,s._error=null,s._loadedBytes=0,s._totalBytes=0,s._lengthComputable=!1,s._restrictedMethods={CONNECT:!0,TRACE:!0,TRACK:!0},s._restrictedHeaders={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0},s._privateHeaders={"set-cookie":!0,"set-cookie2":!0},s._userAgent="Mozilla/5.0 ("+i.type()+" "+i.arch()+") node.js/"+e.versions.node+" v8/"+e.versions.v8,s._anonymous=t.anon||!1,s}return s(_,l),_.prototype.open=function(e,t,s,r,o){if(void 0===s&&(s=!0),e=e.toUpperCase(),this._restrictedMethods[e])throw new _.SecurityError("HTTP method "+e+" is not allowed in XHR");var n=this._parseUrl(t,r,o);this.readyState===_.HEADERS_RECEIVED||(this.readyState,_.LOADING),this._method=e,this._url=n,this._sync=!s,this._headers={},this._loweredHeaders={},this._mimeOverride=null,this._setReadyState(_.OPENED),this._request=null,this._response=null,this.status=0,this.statusText="",this._responseParts=[],this._responseHeaders=null,this._loadedBytes=0,this._totalBytes=0,this._lengthComputable=!1},_.prototype.setRequestHeader=function(e,t){if(this.readyState!==_.OPENED)throw new _.InvalidStateError("XHR readyState must be OPENED");var s=e.toLowerCase();this._restrictedHeaders[s]||/^sec-/.test(s)||/^proxy-/.test(s)?console.warn('Refused to set unsafe header "'+e+'"'):(t=t.toString(),null!=this._loweredHeaders[s]?(e=this._loweredHeaders[s],this._headers[e]=this._headers[e]+", "+t):(this._loweredHeaders[s]=e,this._headers[e]=t))},_.prototype.send=function(e){if(this.readyState!==_.OPENED)throw new _.InvalidStateError("XHR readyState must be OPENED");if(this._request)throw new _.InvalidStateError("send() already called");switch(this._url.protocol){case"file:":return this._sendFile(e);case"http:":case"https:":return this._sendHttp(e);default:throw new _.NetworkError("Unsupported protocol "+this._url.protocol)}},_.prototype.abort=function(){null!=this._request&&(this._request.abort(),this._setError(),this._dispatchProgress("abort"),this._dispatchProgress("loadend"))},_.prototype.getResponseHeader=function(e){if(null==this._responseHeaders||null==e)return null;var t=e.toLowerCase();return this._responseHeaders.hasOwnProperty(t)?this._responseHeaders[e.toLowerCase()]:null},_.prototype.getAllResponseHeaders=function(){var e=this;return null==this._responseHeaders?"":Object.keys(this._responseHeaders).map(function(t){return t+": "+e._responseHeaders[t]}).join("\r\n")},_.prototype.overrideMimeType=function(e){if(this.readyState===_.LOADING||this.readyState===_.DONE)throw new _.InvalidStateError("overrideMimeType() not allowed in LOADING or DONE");this._mimeOverride=e.toLowerCase()},_.prototype.nodejsSet=function(e){if(this.nodejsHttpAgent=e.httpAgent||this.nodejsHttpAgent,this.nodejsHttpsAgent=e.httpsAgent||this.nodejsHttpsAgent,e.hasOwnProperty("baseUrl")){if(null!=e.baseUrl)if(!a.parse(e.baseUrl,!1,!0).protocol)throw new _.SyntaxError("baseUrl must be an absolute URL");this.nodejsBaseUrl=e.baseUrl}},_.nodejsSet=function(e){_.prototype.nodejsSet(e)},_.prototype._setReadyState=function(e){this.readyState=e,this.dispatchEvent(new h.ProgressEvent("readystatechange"))},_.prototype._sendFile=function(e){throw new Error("Protocol file: not implemented")},_.prototype._sendHttp=function(e){if(this._sync)throw new Error("Synchronous XHR processing not implemented");!e||"GET"!==this._method&&"Line truncated
},{"http":"f2Kk","https":"AHs6","os":"war4","url":"j37I","./progress-event":"qJpg","./errors":"sM29","./xml-http-request-event-target":"s4kV","./xml-http-request-upload":"ZwJQ","cookiejar":"aIhU","process":"g5IB","buffer":"z1tx"}],"H7ue":[function(require,module,exports) {
"use strict";function e(e){for(var t in e)exports.hasOwnProperty(t)||(exports[t]=e[t])}Object.defineProperty(exports,"__esModule",{value:!0}),e(require("./xml-http-request"));var t=require("./xml-http-request-event-target");exports.XMLHttpRequestEventTarget=t.XMLHttpRequestEventTarget;
},{"./xml-http-request":"hpi2","./xml-http-request-event-target":"s4kV"}],"kUF0":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var t=require("buffer").Buffer,e=require("./errors");"undefined"!=typeof window&&window.XMLHttpRequest?XMLHttpRequest=window.XMLHttpRequest:XMLHttpRequest=require("xmlhttprequest").XMLHttpRequest;var s=require("xhr2-cookies").XMLHttpRequest,r=function(t,e,s,r,n){this.host=t||"http://localhost:8545",this.timeout=e||0,this.user=s,this.password=r,this.headers=n};r.prototype.prepareRequest=function(e){var r;if(e?(r=new s).timeout=this.timeout:r=new XMLHttpRequest,r.withCredentials=!0,r.open("POST",this.host,e),this.user&&this.password){var n="Basic "+new t(this.user+":"+this.password).toString("base64");r.setRequestHeader("Authorization",n)}return r.setRequestHeader("Content-Type","application/json"),this.headers&&this.headers.forEach(function(t){r.setRequestHeader(t.name,t.value)}),r},r.prototype.send=function(t){var s=this.prepareRequest(!1);try{s.send(JSON.stringify(t))}catch(n){throw e.InvalidConnection(this.host)}var r=s.responseText;try{r=JSON.parse(r)}catch(i){throw e.InvalidResponse(s.responseText)}return r},r.prototype.sendAsync=function(t,s){var r=this.prepareRequest(!0);r.onreadystatechange=function(){if(4===r.readyState&&1!==r.timeout){var t=r.responseText,n=null;try{t=JSON.parse(t)}catch(i){n=e.InvalidResponse(r.responseText)}s(n,t)}},r.ontimeout=function(){s(e.ConnectionTimeout(this.timeout))};try{r.send(JSON.stringify(t))}catch(n){s(e.InvalidConnection(this.host))}},r.prototype.isConnected=function(){try{return this.send({id:9999999999,jsonrpc:"2.0",method:"net_listening",params:[]}),!0}catch(t){return!1}},module.exports=r;
},{"./errors":"NewK","xmlhttprequest":"HLYo","xhr2-cookies":"H7ue","buffer":"z1tx"}],"ECaz":[function(require,module,exports) {
"use strict";var t=require("../utils/utils"),n=require("./errors"),e=function(n,e){var o=this;this.responseCallbacks={},this.path=n,this.connection=e.connect({path:this.path}),this.connection.on("error",function(t){console.error("IPC Connection Error",t),o._timeout()}),this.connection.on("end",function(){o._timeout()}),this.connection.on("data",function(n){o._parseResponse(n.toString()).forEach(function(n){var e=null;t.isArray(n)?n.forEach(function(t){o.responseCallbacks[t.id]&&(e=t.id)}):e=n.id,o.responseCallbacks[e]&&(o.responseCallbacks[e](null,n),delete o.responseCallbacks[e])})})};e.prototype._parseResponse=function(t){var e=this,o=[];return t.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(t){e.lastChunk&&(t=e.lastChunk+t);var s=null;try{s=JSON.parse(t)}catch(i){return e.lastChunk=t,clearTimeout(e.lastChunkTimeout),void(e.lastChunkTimeout=setTimeout(function(){throw e._timeout(),n.InvalidResponse(t)},15e3))}clearTimeout(e.lastChunkTimeout),e.lastChunk=null,s&&o.push(s)}),o},e.prototype._addResponseCallback=function(t,n){var e=t.id||t[0].id,o=t.method||t[0].method;this.responseCallbacks[e]=n,this.responseCallbacks[e].method=o},e.prototype._timeout=function(){for(var t in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(t)&&(this.responseCallbacks[t](n.InvalidConnection("on IPC")),delete this.responseCallbacks[t])},e.prototype.isConnected=function(){return this.connection.writable||this.connection.connect({path:this.path}),!!this.connection.writable},e.prototype.send=function(t){if(this.connection.writeSync){var e;this.connection.writable||this.connection.connect({path:this.path});var o=this.connection.writeSync(JSON.stringify(t));try{e=JSON.parse(o)}catch(s){throw n.InvalidResponse(o)}return e}throw new Error('You tried to send "'+t.method+'" synchronously. Synchronous requests are not supported by the IPC provider.')},e.prototype.sendAsync=function(t,n){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(t)),this._addResponseCallback(t,n)},module.exports=e;
},{"../utils/utils":"Fh47","./errors":"NewK"}],"OHXT":[function(require,module,exports) {
var e=require("./web3/requestmanager"),t=require("./web3/iban"),r=require("./web3/methods/eth"),o=require("./web3/methods/db"),i=require("./web3/methods/shh"),s=require("./web3/methods/net"),n=require("./web3/methods/personal"),p=require("./web3/methods/swarm"),h=require("./web3/settings"),u=require("./version.json"),d=require("./utils/utils"),m=require("./utils/sha3"),a=require("./web3/extend"),c=require("./web3/batch"),w=require("./web3/property"),b=require("./web3/httpprovider"),v=require("./web3/ipcprovider"),y=require("bignumber.js");function f(t){this._requestManager=new e(t),this.currentProvider=t,this.eth=new r(this),this.db=new o(this),this.shh=new i(this),this.net=new s(this),this.personal=new n(this),this.bzz=new p(this),this.settings=new h,this.version={api:u.version},this.providers={HttpProvider:b,IpcProvider:v},this._extend=a(this),this._extend({properties:q()})}f.providers={HttpProvider:b,IpcProvider:v},f.prototype.setProvider=function(e){this._requestManager.setProvider(e),this.currentProvider=e},f.prototype.reset=function(e){this._requestManager.reset(e),this.settings=new h},f.prototype.BigNumber=y,f.prototype.toHex=d.toHex,f.prototype.toAscii=d.toAscii,f.prototype.toUtf8=d.toUtf8,f.prototype.fromAscii=d.fromAscii,f.prototype.fromUtf8=d.fromUtf8,f.prototype.toDecimal=d.toDecimal,f.prototype.fromDecimal=d.fromDecimal,f.prototype.toBigNumber=d.toBigNumber,f.prototype.toWei=d.toWei,f.prototype.fromWei=d.fromWei,f.prototype.isAddress=d.isAddress,f.prototype.isChecksumAddress=d.isChecksumAddress,f.prototype.toChecksumAddress=d.toChecksumAddress,f.prototype.isIBAN=d.isIBAN,f.prototype.padLeft=d.padLeft,f.prototype.padRight=d.padRight,f.prototype.sha3=function(e,t){return"0x"+m(e,t)},f.prototype.fromICAP=function(e){return new t(e).address()};var q=function(){return[new w({name:"version.node",getter:"web3_clientVersion"}),new w({name:"version.network",getter:"net_version",inputFormatter:d.toDecimal}),new w({name:"version.ethereum",getter:"eth_protocolVersion",inputFormatter:d.toDecimal}),new w({name:"version.whisper",getter:"shh_version",inputFormatter:d.toDecimal})]};f.prototype.isConnected=function(){return this.currentProvider&&this.currentProvider.isConnected()},f.prototype.createBatch=function(){return new c(this)},module.exports=f;
},{"./web3/requestmanager":"XRH2","./web3/iban":"JSHq","./web3/methods/eth":"mNYm","./web3/methods/db":"wvNc","./web3/methods/shh":"QZdx","./web3/methods/net":"NpaX","./web3/methods/personal":"T1z5","./web3/methods/swarm":"bPYj","./web3/settings":"vHQl","./version.json":"Epl9","./utils/utils":"Fh47","./utils/sha3":"jJsm","./web3/extend":"JnL1","./web3/batch":"Gofy","./web3/property":"H1O0","./web3/httpprovider":"kUF0","./web3/ipcprovider":"ECaz","bignumber.js":"LdGf"}],"kdoM":[function(require,module,exports) {
var e=require("./lib/web3");"undefined"!=typeof window&&void 0===window.Web3&&(window.Web3=e),module.exports=e;
},{"./lib/web3":"OHXT"}],"afne":[function(require,module,exports) {
"use strict";function e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function r(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var n=function(){function r(t){e(this,r),this.rpcUrl=t}return t(r,[{key:"getNonce",value:function(e){return this.call({jsonrpc:"2.0",method:"eth_getTransactionCount",params:[e,"pending"]}).then(function(e){return e.result})}},{key:"getBlockNumber",value:function(){return this.call({jsonrpc:"2.0",method:"eth_blockNumber",params:[]}).then(function(e){return e.result})}},{key:"getBlockByNumber",value:function(e){return this.call({jsonrpc:"2.0",method:"eth_getBlockByNumber",params:[e,!1]}).then(function(e){return e.result})}},{key:"getFilterLogs",value:function(e){return this.call({jsonrpc:"2.0",method:"eth_getLogs",params:[e]})}},{key:"call",value:function(e){return fetch(this.rpcUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(function(e){return e.json()}).then(function(e){if(!e.result&&e.error)throw console.log("<== rpc error",e.error),new Error(e.error.message||"rpc error");return e})}}]),r}();module.exports=n;
},{}],"MNFS":[function(require,module,exports) {
"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function u(t){var e=l();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){var e="function"==typeof Map?new Map:void 0;return(f=function(t){if(null===t||!p(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return a(t,arguments,y(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function a(t,e,n){return(a=l()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function p(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){o(c,f(Error));var n=u(c);function c(t,r){var o;return e(this,c),(o=n.call(this)).code=t,o.message=r,o}return r(c,[{key:"toString",value:function(){return"".concat(this.message," (").concat(this.code,")")}}]),c}();module.exports=b;
},{}],"FOZT":[function(require,module,exports) {
"use strict";var r=require("buffer");function e(r){return u(r)||o(r)||t(r)||n()}function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(r,e){if(r){if("string"==typeof r)return a(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);return"Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(r,e):void 0}}function o(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function u(r){if(Array.isArray(r))return a(r)}function a(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=r[n];return t}function f(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function i(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}function l(r,e,n){return e&&i(r.prototype,e),n&&i(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}var c=function(){function n(){f(this,n)}return l(n,null,[{key:"genId",value:function(){return(new Date).getTime()+Math.floor(1e3*Math.random())}},{key:"flatMap",value:function(r,n){var t;return(t=[]).concat.apply(t,e(r.map(n)))}},{key:"intRange",value:function(r,e){return r>=e?[]:new Array(e-r).fill().map(function(e,n){return n+r})}},{key:"hexToInt",value:function(r){return null==r?r:Number.parseInt(r,16)}},{key:"intToHex",value:function(r){return null==r?r:"0x"+r.toString(16)}},{key:"messageToBuffer",value:function(e){var n=r.Buffer.from([]);try{n="string"==typeof e?r.Buffer.from(e.replace("0x",""),"hex"):r.Buffer.from(e)}catch(t){console.log("messageToBuffer error: ".concat(t))}return n}},{key:"bufferToHex",value:function(e){return"0x"+r.Buffer.from(e).toString("hex")}}]),n}();module.exports=c;
},{"buffer":"z1tx"}],"sD6q":[function(require,module,exports) {
"use strict";var e=t(require("./utils"));function t(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var u=function(){function t(){n(this,t),this.intIds=new Map}return r(t,[{key:"tryIntifyId",value:function(t){if(t.id){if("number"!=typeof t.id){var n=e.default.genId();this.intIds.set(n,t.id),t.id=n}}else t.id=e.default.genId()}},{key:"tryRestoreId",value:function(e){var t=this.tryPopId(e.id);t&&(e.id=t)}},{key:"tryPopId",value:function(e){var t=this.intIds.get(e);return t&&this.intIds.delete(e),t}}]),t}();module.exports=u;
},{"./utils":"FOZT"}],"ZwKf":[function(require,module,exports) {
"use strict";function e(e){if(!e)return!1;for(var r=0,t=e.length;r<t;)if(e[r]<=127)r++;else{if(e[r]>=194&&e[r]<=223){if(e[r+1]>>6==2){r+=2;continue}return!1}if((224===e[r]&&e[r+1]>=160&&e[r+1]<=191||237===e[r]&&e[r+1]>=128&&e[r+1]<=159)&&e[r+2]>>6==2)r+=3;else if((e[r]>=225&&e[r]<=236||e[r]>=238&&e[r]<=239)&&e[r+1]>>6==2&&e[r+2]>>6==2)r+=3;else{if(!(240===e[r]&&e[r+1]>=144&&e[r+1]<=191||e[r]>=241&&e[r]<=243&&e[r+1]>>6==2||244===e[r]&&e[r+1]>=128&&e[r+1]<=143)||e[r+2]>>6!=2||e[r+3]>>6!=2)return!1;r+=4}}return!0}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var r=e;exports.default=r;
},{}],"tsla":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;function r(r){return function(t){var u=r();return u.update(t),e.from(u.digest())}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createHashFunction=r;
},{"buffer":"z1tx"}],"okQ5":[function(require,module,exports) {
"use strict";var r=require("../../../errors").codes.ERR_INVALID_OPT_VALUE;function e(r,e,t){return null!=r.highWaterMark?r.highWaterMark:e?r[t]:null}function t(t,i,o,a){var n=e(i,a,o);if(null!=n){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new r(a?o:"highWaterMark",n);return Math.floor(n)}return t.objectMode?16:16384}module.exports={getHighWaterMark:t};
},{"../../../errors":"S4np"}],"h5fF":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var e,t=arguments[3],n=require("process");function r(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){G(t,e)}}module.exports=x,x.WritableState=m;var o={deprecate:require("util-deprecate")},s=require("./internal/streams/stream"),u=require("buffer").Buffer,f=t.Uint8Array||function(){};function a(e){return u.from(e)}function c(e){return u.isBuffer(e)||e instanceof f}var l,d=require("./internal/streams/destroy"),h=require("./internal/streams/state"),b=h.getHighWaterMark,p=require("../errors").codes,y=p.ERR_INVALID_ARG_TYPE,w=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,_=p.ERR_STREAM_CANNOT_PIPE,R=p.ERR_STREAM_DESTROYED,k=p.ERR_STREAM_NULL_VALUES,E=p.ERR_STREAM_WRITE_AFTER_END,S=p.ERR_UNKNOWN_ENCODING,q=d.errorOrDestroy;function v(){}function m(t,n,r){e=e||require("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=b(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function x(t){var n=this instanceof(e=e||require("./_stream_duplex"));if(!n&&!l.call(x,this))return new x(t);this._writableState=new m(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function M(e,t){var r=new E;q(e,r),n.nextTick(t,r)}function B(e,t,r,i){var o;return null===r?o=new k:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(q(e,o),n.nextTick(i,o),!1)}function T(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,n)),t}function D(e,t,n,r,i,o){if(!n){var s=T(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var u=t.objectMode?1:r.length;t.length+=u;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else P(e,t,!1,u,r,i,o);return f}function P(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new R("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function j(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(U,e,t),e._writableState.errorEmitted=!0,q(e,i)):(o(i),e._writableState.errorEmitted=!0,q(e,i),U(e,t))}function C(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function O(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(C(r),t)j(e,r,i,t,o);else{var s=I(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||N(e,r),i?n.nextTick(A,e,r,s,o):A(e,r,s,o)}}function A(e,t,n,r){n||L(e,t),t.pendingcb--,r(),U(e,t)}function L(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function N(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var u=0,f=!0;n;)o[u]=n,n.isBuf||(f=!1),n=n.next,u+=1;o.allBuffers=f,P(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var a=n.chunk,c=n.encoding,l=n.callback;if(P(e,t,!1,t.objectMode?1:a.length,a,c,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function W(e,t){e._final(function(n){t.pendingcb--,n&&q(e,n),t.prefinished=!0,e.emit("prefinish"),U(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(W,e,t)))}function U(e,t){var n=I(t);if(n&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function H(e,t,r){t.ending=!0,U(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function G(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),Line truncated
},{"util-deprecate":"hQaz","./internal/streams/stream":"XrGN","buffer":"z1tx","./internal/streams/destroy":"VglT","./internal/streams/state":"okQ5","../errors":"S4np","inherits":"oxwV","./_stream_duplex":"BJej","process":"g5IB"}],"BJej":[function(require,module,exports) {
var process = require("process");
var e=require("process"),t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};module.exports=l;var r=require("./_stream_readable"),a=require("./_stream_writable");require("inherits")(l,r);for(var i=t(a.prototype),n=0;n<i.length;n++){var o=i[n];l.prototype[o]||(l.prototype[o]=a.prototype[o])}function l(e){if(!(this instanceof l))return new l(e);r.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||e.nextTick(b,this)}function b(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}});
},{"./_stream_readable":"Utsh","./_stream_writable":"h5fF","inherits":"oxwV","process":"g5IB"}],"PGSG":[function(require,module,exports) {
"use strict";var e=require("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.apply(this,n)}}}function t(){}function n(e){return e.setHeader&&"function"==typeof e.abort}function o(i,a,l){if("function"==typeof a)return o(i,null,a);a||(a={}),l=r(l||t);var s=a.readable||!1!==a.readable&&i.readable,c=a.writable||!1!==a.writable&&i.writable,u=function(){i.writable||d()},f=i._writableState&&i._writableState.finished,d=function(){c=!1,f=!0,s||l.call(i)},b=i._readableState&&i._readableState.endEmitted,v=function(){s=!1,b=!0,c||l.call(i)},m=function(e){l.call(i,e)},w=function(){var r;return s&&!b?(i._readableState&&i._readableState.ended||(r=new e),l.call(i,r)):c&&!f?(i._writableState&&i._writableState.ended||(r=new e),l.call(i,r)):void 0},_=function(){i.req.on("finish",d)};return n(i)?(i.on("complete",d),i.on("abort",w),i.req?_():i.on("request",_)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",d),!1!==a.error&&i.on("error",m),i.on("close",w),function(){i.removeListener("complete",d),i.removeListener("abort",w),i.removeListener("request",_),i.req&&i.req.removeListener("finish",d),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",d),i.removeListener("end",v),i.removeListener("error",m),i.removeListener("close",w)}}module.exports=o;
},{"../../../errors":"S4np"}],"uKX7":[function(require,module,exports) {
var process = require("process");
var e,n=require("process");function r(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var t=require("./end-of-stream"),l=Symbol("lastResolve"),u=Symbol("lastReject"),i=Symbol("error"),o=Symbol("ended"),a=Symbol("lastPromise"),s=Symbol("handlePromise"),c=Symbol("stream");function f(e,n){return{value:e,done:n}}function v(e){var n=e[l];if(null!==n){var r=e[c].read();null!==r&&(e[a]=null,e[l]=null,e[u]=null,n(f(r,!1)))}}function d(e){n.nextTick(v,e)}function b(e,n){return function(r,t){e.then(function(){n[o]?r(f(void 0,!0)):n[s](r,t)},t)}}var m=Object.getPrototypeOf(function(){}),h=Object.setPrototypeOf((r(e={get stream(){return this[c]},next:function(){var e=this,r=this[i];if(null!==r)return Promise.reject(r);if(this[o])return Promise.resolve(f(void 0,!0));if(this[c].destroyed)return new Promise(function(r,t){n.nextTick(function(){e[i]?t(e[i]):r(f(void 0,!0))})});var t,l=this[a];if(l)t=new Promise(b(l,this));else{var u=this[c].read();if(null!==u)return Promise.resolve(f(u,!1));t=new Promise(this[s])}return this[a]=t,t}},Symbol.asyncIterator,function(){return this}),r(e,"return",function(){var e=this;return new Promise(function(n,r){e[c].destroy(null,function(e){e?r(e):n(f(void 0,!0))})})}),e),m),y=function(e){var n,v=Object.create(h,(r(n={},c,{value:e,writable:!0}),r(n,l,{value:null,writable:!0}),r(n,u,{value:null,writable:!0}),r(n,i,{value:null,writable:!0}),r(n,o,{value:e._readableState.endEmitted,writable:!0}),r(n,s,{value:function(e,n){var r=v[c].read();r?(v[a]=null,v[l]=null,v[u]=null,e(f(r,!1))):(v[l]=e,v[u]=n)},writable:!0}),n));return v[a]=null,t(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var n=v[u];return null!==n&&(v[a]=null,v[l]=null,v[u]=null,n(e)),void(v[i]=e)}var r=v[l];null!==r&&(v[a]=null,v[l]=null,v[u]=null,r(f(void 0,!0))),v[o]=!0}),e.on("readable",d.bind(null,v)),v};module.exports=y;
},{"./end-of-stream":"PGSG","process":"g5IB"}],"Utsh":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var e,t=arguments[3],n=require("process");module.exports=j,j.ReadableState=L;var r=require("events").EventEmitter,i=function(e,t){return e.listeners(t).length},a=require("./internal/streams/stream"),d=require("buffer").Buffer,o=t.Uint8Array||function(){};function s(e){return d.from(e)}function l(e){return d.isBuffer(e)||e instanceof o}var u,h=require("util");u=h&&h.debuglog?h.debuglog("stream"):function(){};var p,f,c,b=require("./internal/streams/buffer_list"),g=require("./internal/streams/destroy"),m=require("./internal/streams/state"),y=m.getHighWaterMark,_=require("../errors").codes,v=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,R=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;require("inherits")(j,a);var M=g.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function L(t,n,r){e=e||require("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=n instanceof e),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",r),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=require("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function j(t){if(e=e||require("./_stream_duplex"),!(this instanceof j))return new j(t);var n=this instanceof e;this._readableState=new L(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function D(e,t,n,r,i){u("readableAddChunk",t);var a,o=e._readableState;if(null===t)o.reading=!1,A(e,o);else if(i||(a=T(o,t)),a)M(e,a);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=s(t)),r)o.endEmitted?M(e,new R):C(e,o,t,!0);else if(o.ended)M(e,new w);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?C(e,o,t,!1):U(e,o)):C(e,o,t,!1)}else r||(o.reading=!1,U(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),U(e,t)}function T(e,t){var n;return l(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new v("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),j.prototype.destroy=g.destroy,j.prototype._undestroy=g.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=d.from(e,t),t=""),n=!0),D(this,e,t,!1,n)},j.prototype.unshift=function(e){return D(this,e,null,!0,!1)},j.prototype.isPaused=function(){return!1===this._readableState.flowing},j.prototype.setEncoding=function(e){p||(p=require("string_decoder/").StringDecoder);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r="";null!==n;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var q=1073741824;function W(e){return e>=q?e=q:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=W(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e,t){if(u("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}}function O(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(P,e))}function P(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&Line truncated
},{"events":"wIHY","./internal/streams/stream":"XrGN","buffer":"z1tx","util":"sC8V","./internal/streams/buffer_list":"nfI5","./internal/streams/destroy":"VglT","./internal/streams/state":"okQ5","../errors":"S4np","inherits":"oxwV","./_stream_duplex":"BJej","string_decoder/":"ikue","./internal/streams/async_iterator":"uKX7","./internal/streams/from":"Ogns","process":"g5IB"}],"qyih":[function(require,module,exports) {
"use strict";module.exports=o;var t=require("../errors").codes,r=t.ERR_METHOD_NOT_IMPLEMENTED,e=t.ERR_MULTIPLE_CALLBACK,n=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=t.ERR_TRANSFORM_WITH_LENGTH_0,a=require("./_stream_duplex");function s(t,r){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new e);n.writechunk=null,n.writecb=null,null!=r&&this.push(r),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);a.call(this,t),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(r,e){f(t,r,e)})}function f(t,r,e){if(r)return t.emit("error",r);if(null!=e&&t.push(e),t._writableState.length)throw new i;if(t._transformState.transforming)throw new n;return t.push(null)}require("inherits")(o,a),o.prototype.push=function(t,r){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,r)},o.prototype._transform=function(t,e,n){n(new r("_transform()"))},o.prototype._write=function(t,r,e){var n=this._transformState;if(n.writecb=e,n.writechunk=t,n.writeencoding=r,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var r=this._transformState;null===r.writechunk||r.transforming?r.needTransform=!0:(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform))},o.prototype._destroy=function(t,r){a.prototype._destroy.call(this,t,function(t){r(t)})};
},{"../errors":"S4np","./_stream_duplex":"BJej","inherits":"oxwV"}],"dJik":[function(require,module,exports) {
"use strict";module.exports=t;var r=require("./_stream_transform");function t(e){if(!(this instanceof t))return new t(e);r.call(this,e)}require("inherits")(t,r),t.prototype._transform=function(r,t,e){e(null,r)};
},{"./_stream_transform":"qyih","inherits":"oxwV"}],"o2uJ":[function(require,module,exports) {
"use strict";var r;function n(r){var n=!1;return function(){n||(n=!0,r.apply(void 0,arguments))}}var t=require("../../../errors").codes,e=t.ERR_MISSING_ARGS,o=t.ERR_STREAM_DESTROYED;function i(r){if(r)throw r}function u(r){return r.setHeader&&"function"==typeof r.abort}function f(t,e,i,f){f=n(f);var a=!1;t.on("close",function(){a=!0}),void 0===r&&(r=require("./end-of-stream")),r(t,{readable:e,writable:i},function(r){if(r)return f(r);a=!0,f()});var c=!1;return function(r){if(!a&&!c)return c=!0,u(t)?t.abort():"function"==typeof t.destroy?t.destroy():void f(r||new o("pipe"))}}function a(r){r()}function c(r,n){return r.pipe(n)}function p(r){return r.length?"function"!=typeof r[r.length-1]?i:r.pop():i}function s(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];var o,i=p(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new e("streams");var u=n.map(function(r,t){var e=t<n.length-1;return f(r,e,t>0,function(r){o||(o=r),r&&u.forEach(a),e||(u.forEach(a),i(o))})});return n.reduce(c)}module.exports=s;
},{"../../../errors":"S4np","./end-of-stream":"PGSG"}],"y2xL":[function(require,module,exports) {
exports=module.exports=require("./lib/_stream_readable.js"),exports.Stream=exports,exports.Readable=exports,exports.Writable=require("./lib/_stream_writable.js"),exports.Duplex=require("./lib/_stream_duplex.js"),exports.Transform=require("./lib/_stream_transform.js"),exports.PassThrough=require("./lib/_stream_passthrough.js"),exports.finished=require("./lib/internal/streams/end-of-stream.js"),exports.pipeline=require("./lib/internal/streams/pipeline.js");
},{"./lib/_stream_readable.js":"Utsh","./lib/_stream_writable.js":"h5fF","./lib/_stream_duplex.js":"BJej","./lib/_stream_transform.js":"qyih","./lib/_stream_passthrough.js":"dJik","./lib/internal/streams/end-of-stream.js":"PGSG","./lib/internal/streams/pipeline.js":"o2uJ"}],"T5sL":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var t=require("buffer").Buffer;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=c();return function(){var r,n=l(t);if(e){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(t,r){if(r&&("object"===e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=require("readable-stream"),y=h.Transform;module.exports=function(e){return function(n){o(f,y);var u=a(f);function f(t,n,i,o,a){var s;return r(this,f),(s=u.call(this,a))._rate=t,s._capacity=n,s._delimitedSuffix=i,s._hashBitLength=o,s._options=a,s._state=new e,s._state.initialize(t,n),s._finalized=!1,s}return i(f,[{key:"_transform",value:function(t,e,r){var n=null;try{this.update(t,e)}catch(i){n=i}r(n)}},{key:"_flush",value:function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)}},{key:"update",value:function(e,r){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return t.isBuffer(e)||(e=t.from(e,r)),this._state.absorb(e),this}},{key:"digest",value:function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var t=new f(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}]),f}()};
},{"readable-stream":"y2xL","buffer":"z1tx"}],"MGcg":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var t=require("buffer").Buffer;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=s();return function(){var r,n=l(t);if(e){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return a(this,r)}}function a(t,r){if(r&&("object"===e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=require("readable-stream"),p=y.Transform;module.exports=function(e){return function(n){i(a,p);var u=f(a);function a(t,n,o,i){var f;return r(this,a),(f=u.call(this,i))._rate=t,f._capacity=n,f._delimitedSuffix=o,f._options=i,f._state=new e,f._state.initialize(t,n),f._finalized=!1,f}return o(a,[{key:"_transform",value:function(t,e,r){var n=null;try{this.update(t,e)}catch(o){n=o}r(n)}},{key:"_flush",value:function(){}},{key:"_read",value:function(t){this.push(this.squeeze(t))}},{key:"update",value:function(e,r){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return t.isBuffer(e)||(e=t.from(e,r)),this._state.absorb(e),this}},{key:"squeeze",value:function(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var t=new a(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}]),a}()};
},{"readable-stream":"y2xL","buffer":"z1tx"}],"TZ9Y":[function(require,module,exports) {
var e=require("./keccak"),r=require("./shake");module.exports=function(n){var a=e(n),c=r(n);return function(e,r){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new a(1152,448,null,224,r);case"keccak256":return new a(1088,512,null,256,r);case"keccak384":return new a(832,768,null,384,r);case"keccak512":return new a(576,1024,null,512,r);case"sha3-224":return new a(1152,448,6,224,r);case"sha3-256":return new a(1088,512,6,256,r);case"sha3-384":return new a(832,768,6,384,r);case"sha3-512":return new a(576,1024,6,512,r);case"shake128":return new c(1344,256,31,r);case"shake256":return new c(1088,512,31,r);default:throw new Error("Invald algorithm: "+e)}}};
},{"./keccak":"T5sL","./shake":"MGcg"}],"ClpW":[function(require,module,exports) {
var r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];exports.p1600=function(a){for(var v=0;v<24;++v){var o=a[0]^a[10]^a[20]^a[30]^a[40],f=a[1]^a[11]^a[21]^a[31]^a[41],n=a[2]^a[12]^a[22]^a[32]^a[42],p=a[3]^a[13]^a[23]^a[33]^a[43],t=a[4]^a[14]^a[24]^a[34]^a[44],c=a[5]^a[15]^a[25]^a[35]^a[45],e=a[6]^a[16]^a[26]^a[36]^a[46],i=a[7]^a[17]^a[27]^a[37]^a[47],s=a[8]^a[18]^a[28]^a[38]^a[48],u=a[9]^a[19]^a[29]^a[39]^a[49],x=s^(n<<1|p>>>31),b=u^(p<<1|n>>>31),d=a[0]^x,g=a[1]^b,h=a[10]^x,j=a[11]^b,k=a[20]^x,l=a[21]^b,m=a[30]^x,q=a[31]^b,w=a[40]^x,y=a[41]^b;x=o^(t<<1|c>>>31),b=f^(c<<1|t>>>31);var z=a[2]^x,A=a[3]^b,B=a[12]^x,C=a[13]^b,D=a[22]^x,E=a[23]^b,F=a[32]^x,G=a[33]^b,H=a[42]^x,I=a[43]^b;x=n^(e<<1|i>>>31),b=p^(i<<1|e>>>31);var J=a[4]^x,K=a[5]^b,L=a[14]^x,M=a[15]^b,N=a[24]^x,O=a[25]^b,P=a[34]^x,Q=a[35]^b,R=a[44]^x,S=a[45]^b;x=t^(s<<1|u>>>31),b=c^(u<<1|s>>>31);var T=a[6]^x,U=a[7]^b,V=a[16]^x,W=a[17]^b,X=a[26]^x,Y=a[27]^b,Z=a[36]^x,$=a[37]^b,_=a[46]^x,rr=a[47]^b;x=e^(o<<1|f>>>31),b=i^(f<<1|o>>>31);var ar=a[8]^x,vr=a[9]^b,or=a[18]^x,fr=a[19]^b,nr=a[28]^x,pr=a[29]^b,tr=a[38]^x,cr=a[39]^b,er=a[48]^x,ir=a[49]^b,sr=d,ur=g,xr=j<<4|h>>>28,br=h<<4|j>>>28,dr=k<<3|l>>>29,gr=l<<3|k>>>29,hr=q<<9|m>>>23,jr=m<<9|q>>>23,kr=w<<18|y>>>14,lr=y<<18|w>>>14,mr=z<<1|A>>>31,qr=A<<1|z>>>31,wr=C<<12|B>>>20,yr=B<<12|C>>>20,zr=D<<10|E>>>22,Ar=E<<10|D>>>22,Br=G<<13|F>>>19,Cr=F<<13|G>>>19,Dr=H<<2|I>>>30,Er=I<<2|H>>>30,Fr=K<<30|J>>>2,Gr=J<<30|K>>>2,Hr=L<<6|M>>>26,Ir=M<<6|L>>>26,Jr=O<<11|N>>>21,Kr=N<<11|O>>>21,Lr=P<<15|Q>>>17,Mr=Q<<15|P>>>17,Nr=S<<29|R>>>3,Or=R<<29|S>>>3,Pr=T<<28|U>>>4,Qr=U<<28|T>>>4,Rr=W<<23|V>>>9,Sr=V<<23|W>>>9,Tr=X<<25|Y>>>7,Ur=Y<<25|X>>>7,Vr=Z<<21|$>>>11,Wr=$<<21|Z>>>11,Xr=rr<<24|_>>>8,Yr=_<<24|rr>>>8,Zr=ar<<27|vr>>>5,$r=vr<<27|ar>>>5,_r=or<<20|fr>>>12,ra=fr<<20|or>>>12,aa=pr<<7|nr>>>25,va=nr<<7|pr>>>25,oa=tr<<8|cr>>>24,fa=cr<<8|tr>>>24,na=er<<14|ir>>>18,pa=ir<<14|er>>>18;a[0]=sr^~wr&Jr,a[1]=ur^~yr&Kr,a[10]=Pr^~_r&dr,a[11]=Qr^~ra&gr,a[20]=mr^~Hr&Tr,a[21]=qr^~Ir&Ur,a[30]=Zr^~xr&zr,a[31]=$r^~br&Ar,a[40]=Fr^~Rr&aa,a[41]=Gr^~Sr&va,a[2]=wr^~Jr&Vr,a[3]=yr^~Kr&Wr,a[12]=_r^~dr&Br,a[13]=ra^~gr&Cr,a[22]=Hr^~Tr&oa,a[23]=Ir^~Ur&fa,a[32]=xr^~zr&Lr,a[33]=br^~Ar&Mr,a[42]=Rr^~aa&hr,a[43]=Sr^~va&jr,a[4]=Jr^~Vr&na,a[5]=Kr^~Wr&pa,a[14]=dr^~Br&Nr,a[15]=gr^~Cr&Or,a[24]=Tr^~oa&kr,a[25]=Ur^~fa&lr,a[34]=zr^~Lr&Xr,a[35]=Ar^~Mr&Yr,a[44]=aa^~hr&Dr,a[45]=va^~jr&Er,a[6]=Vr^~na&sr,a[7]=Wr^~pa&ur,a[16]=Br^~Nr&Pr,a[17]=Cr^~Or&Qr,a[26]=oa^~kr&mr,a[27]=fa^~lr&qr,a[36]=Lr^~Xr&Zr,a[37]=Mr^~Yr&$r,a[46]=hr^~Dr&Fr,a[47]=jr^~Er&Gr,a[8]=na^~sr&wr,a[9]=pa^~ur&yr,a[18]=Nr^~Pr&_r,a[19]=Or^~Qr&ra,a[28]=kr^~mr&Hr,a[29]=lr^~qr&Ir,a[38]=Xr^~Zr&xr,a[39]=Yr^~$r&br,a[48]=Dr^~Fr&Rr,a[49]=Er^~Gr&Sr,a[0]^=r[2*v],a[1]^=r[2*v+1]}};
},{}],"qMHe":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var t=require("buffer").Buffer,i=require("./keccak-state-unroll");function s(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}s.prototype.initialize=function(t,i){for(var s=0;s<50;++s)this.state[s]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},s.prototype.absorb=function(t){for(var s=0;s<t.length;++s)this.state[~~(this.count/4)]^=t[s]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},s.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<this.count%4*8,0!=(128&t)&&this.count===this.blockSize-1&&i.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,i.p1600(this.state),this.count=0,this.squeezing=!0},s.prototype.squeeze=function(s){this.squeezing||this.absorbLastFewBits(1);for(var e=t.alloc(s),o=0;o<s;++o)e[o]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return e},s.prototype.copy=function(t){for(var i=0;i<50;++i)t.state[i]=this.state[i];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},module.exports=s;
},{"./keccak-state-unroll":"ClpW","buffer":"z1tx"}],"zD2i":[function(require,module,exports) {
module.exports=require("./lib/api")(require("./lib/keccak"));
},{"./lib/api":"TZ9Y","./lib/keccak":"qMHe"}],"ZmXY":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./hash-utils"),c=require("keccak");exports.keccak224=e.createHashFunction(function(){return c("keccak224")}),exports.keccak256=e.createHashFunction(function(){return c("keccak256")}),exports.keccak384=e.createHashFunction(function(){return c("keccak384")}),exports.keccak512=e.createHashFunction(function(){return c("keccak512")});
},{"./hash-utils":"tsla","keccak":"zD2i"}],"z4RK":[function(require,module,exports) {
function e(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw i}}}}function r(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var n={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function o(e,r){if(!e)throw new Error(r)}function a(e,r,t){if(o(r instanceof Uint8Array,"Expected ".concat(e," to be an Uint8Array")),void 0!==t)if(Array.isArray(t)){var n=t.join(", "),a="Expected ".concat(e," to be an Uint8Array with length [").concat(n,"]");o(t.includes(r.length),a)}else{var i="Expected ".concat(e," to be an Uint8Array with length ").concat(t);o(r.length===t,i)}}function i(e){o("Boolean"===u(e),"Expected compressed to be a Boolean")}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},r=arguments.length>1?arguments[1]:void 0;return"function"==typeof e&&(e=e(r)),a("output",e,r),e}function u(e){return Object.prototype.toString.call(e).slice(8,-1)}module.exports=function(r){return{contextRandomize:function(e){switch(o(null===e||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==e&&a("seed",e,32),r.contextRandomize(e)){case 1:throw new Error(n.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify:function(e){return a("private key",e,32),0===r.privateKeyVerify(e)},privateKeyNegate:function(e){switch(a("private key",e,32),r.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(n.IMPOSSIBLE_CASE)}},privateKeyTweakAdd:function(e,t){switch(a("private key",e,32),a("tweak",t,32),r.privateKeyTweakAdd(e,t)){case 0:return e;case 1:throw new Error(n.TWEAK_ADD)}},privateKeyTweakMul:function(e,t){switch(a("private key",e,32),a("tweak",t,32),r.privateKeyTweakMul(e,t)){case 0:return e;case 1:throw new Error(n.TWEAK_MUL)}},publicKeyVerify:function(e){return a("public key",e,[33,65]),0===r.publicKeyVerify(e)},publicKeyCreate:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2?arguments[2]:void 0;switch(a("private key",e,32),i(t),o=c(o,t?33:65),r.publicKeyCreate(o,e)){case 0:return o;case 1:throw new Error(n.SECKEY_INVALID);case 2:throw new Error(n.PUBKEY_SERIALIZE)}},publicKeyConvert:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2?arguments[2]:void 0;switch(a("public key",e,[33,65]),i(t),o=c(o,t?33:65),r.publicKeyConvert(o,e)){case 0:return o;case 1:throw new Error(n.PUBKEY_PARSE);case 2:throw new Error(n.PUBKEY_SERIALIZE)}},publicKeyNegate:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2?arguments[2]:void 0;switch(a("public key",e,[33,65]),i(t),o=c(o,t?33:65),r.publicKeyNegate(o,e)){case 0:return o;case 1:throw new Error(n.PUBKEY_PARSE);case 2:throw new Error(n.IMPOSSIBLE_CASE);case 3:throw new Error(n.PUBKEY_SERIALIZE)}},publicKeyCombine:function(t){var u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2?arguments[2]:void 0;o(Array.isArray(t),"Expected public keys to be an Array"),o(t.length>0,"Expected public keys array will have more than zero items");var l,E=e(t);try{for(E.s();!(l=E.n()).done;){a("public key",l.value,[33,65])}}catch(w){E.e(w)}finally{E.f()}switch(i(u),s=c(s,u?33:65),r.publicKeyCombine(s,t)){case 0:return s;case 1:throw new Error(n.PUBKEY_PARSE);case 2:throw new Error(n.PUBKEY_COMBINE);case 3:throw new Error(n.PUBKEY_SERIALIZE)}},publicKeyTweakAdd:function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=arguments.length>3?arguments[3]:void 0;switch(a(Line truncated
},{}],"IAXI":[function(require,module,exports) {
var r=require("elliptic").ec,e=new r("secp256k1"),n=e.curve,t=n.n.constructor;function u(r,u){var i=new t(u);if(i.cmp(n.p)>=0)return null;var a=(i=i.toRed(n.red)).redSqr().redIMul(i).redIAdd(n.b).redSqrt();return 3===r!==a.isOdd()&&(a=a.redNeg()),e.keyPair({pub:{x:i,y:a}})}function i(r,u,i){var a=new t(u),c=new t(i);if(a.cmp(n.p)>=0||c.cmp(n.p)>=0)return null;if(a=a.toRed(n.red),c=c.toRed(n.red),(6===r||7===r)&&c.isOdd()!==(7===r))return null;var l=a.redSqr().redIMul(a);return c.redSqr().redISub(l.redIAdd(n.b)).isZero()?e.keyPair({pub:{x:a,y:c}}):null}function a(r){var e=r[0];switch(e){case 2:case 3:return 33!==r.length?null:u(e,r.subarray(1,33));case 4:case 6:case 7:return 65!==r.length?null:i(e,r.subarray(1,33),r.subarray(33,65));default:return null}}function c(r,e){for(var n=e.encode(null,33===r.length),t=0;t<r.length;++t)r[t]=n[t]}module.exports={contextRandomize:function(){return 0},privateKeyVerify:function(r){var e=new t(r);return e.cmp(n.n)<0&&!e.isZero()?0:1},privateKeyNegate:function(r){var e=new t(r),u=n.n.sub(e).umod(n.n).toArrayLike(Uint8Array,"be",32);return r.set(u),0},privateKeyTweakAdd:function(r,e){var u=new t(e);if(u.cmp(n.n)>=0)return 1;if(u.iadd(new t(r)),u.cmp(n.n)>=0&&u.isub(n.n),u.isZero())return 1;var i=u.toArrayLike(Uint8Array,"be",32);return r.set(i),0},privateKeyTweakMul:function(r,e){var u=new t(e);if(u.cmp(n.n)>=0||u.isZero())return 1;u.imul(new t(r)),u.cmp(n.n)>=0&&(u=u.umod(n.n));var i=u.toArrayLike(Uint8Array,"be",32);return r.set(i),0},publicKeyVerify:function(r){return null===a(r)?1:0},publicKeyCreate:function(r,u){var i=new t(u);return i.cmp(n.n)>=0||i.isZero()?1:(c(r,e.keyFromPrivate(u).getPublic()),0)},publicKeyConvert:function(r,e){var n=a(e);return null===n?1:(c(r,n.getPublic()),0)},publicKeyNegate:function(r,e){var n=a(e);if(null===n)return 1;var t=n.getPublic();return t.y=t.y.redNeg(),c(r,t),0},publicKeyCombine:function(r,e){for(var n=new Array(e.length),t=0;t<e.length;++t)if(n[t]=a(e[t]),null===n[t])return 1;for(var u=n[0].getPublic(),i=1;i<n.length;++i)u=u.add(n[i].pub);return u.isInfinity()?2:(c(r,u),0)},publicKeyTweakAdd:function(r,e,u){var i=a(e);if(null===i)return 1;if((u=new t(u)).cmp(n.n)>=0)return 2;var l=i.getPublic().add(n.g.mul(u));return l.isInfinity()?2:(c(r,l),0)},publicKeyTweakMul:function(r,e,u){var i=a(e);return null===i?1:(u=new t(u)).cmp(n.n)>=0||u.isZero()?2:(c(r,i.getPublic().mul(u)),0)},signatureNormalize:function(r){var u=new t(r.subarray(0,32)),i=new t(r.subarray(32,64));return u.cmp(n.n)>=0||i.cmp(n.n)>=0?1:(1===i.cmp(e.nh)&&r.set(n.n.sub(i).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(r,e){var u=e.subarray(0,32),i=e.subarray(32,64);if(new t(u).cmp(n.n)>=0)return 1;if(new t(i).cmp(n.n)>=0)return 1;var a=r.output,c=a.subarray(4,37);c[0]=0,c.set(u,1);for(var l=33,o=0;l>1&&0===c[o]&&!(128&c[o+1]);--l,++o);if(128&(c=c.subarray(o))[0])return 1;if(l>1&&0===c[0]&&!(128&c[1]))return 1;var s=a.subarray(39,72);s[0]=0,s.set(i,1);for(var f=33,y=0;f>1&&0===s[y]&&!(128&s[y+1]);--f,++y);return 128&(s=s.subarray(y))[0]?1:f>1&&0===s[0]&&!(128&s[1])?1:(r.outputlen=6+l+f,a[0]=48,a[1]=r.outputlen-2,a[2]=2,a[3]=c.length,a.set(c,4),a[4+l]=2,a[5+l]=s.length,a.set(s,6+l),0)},signatureImport:function(r,e){if(e.length<8)return 1;if(e.length>72)return 1;if(48!==e[0])return 1;if(e[1]!==e.length-2)return 1;if(2!==e[2])return 1;var u=e[3];if(0===u)return 1;if(5+u>=e.length)return 1;if(2!==e[4+u])return 1;var i=e[5+u];if(0===i)return 1;if(6+u+i!==e.length)return 1;if(128&e[4])return 1;if(u>1&&0===e[4]&&!(128&e[5]))return 1;if(128&e[u+6])return 1;if(i>1&&0===e[u+6]&&!(128&e[u+7]))return 1;var a=e.subarray(4,4+u);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;var c=e.subarray(6+u);if(33===c.length&&0===c[0]&&(c=c.slice(1)),c.length>32)throw new Error("S length is too long");var l=new t(a);l.cmp(n.n)>=0&&(l=new t(0));var o=new t(e.subarray(6+u));return o.cmp(n.n)>=0&&(o=new t(0)),r.set(l.toArrayLike(Uint8Array,"be",32),0),r.set(o.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(r,u,i,a,c){if(c){var l=c;c=function(r){var e=l(u,i,null,a,r);if(!(e instanceof Uint8Array&&32===e.length))throw new Error("This is the way");return new t(e)}}var o,s=new t(i);if(s.cmp(n.n)>=0||s.isZero())return 1;try{o=e.sign(u,i,{canonical:!0,k:c,pers:a})}catch(f){return 1}return r.signature.set(o.r.toArrayLike(Uint8Array,"be",32),0),r.signature.set(o.s.toArrayLike(Uint8Array,"be",32),32),r.recid=o.recoveryParam,0},ecdsaVerify:function(r,u,i){var c={r:r.subarray(0,32),s:r.subarray(32,64)},l=new t(c.r),o=new t(c.s);if(l.cmp(n.n)>=0||o.cmp(n.n)>=0)return 1;if(1===o.cmp(e.nh)||l.isZero()||o.isZero())return 3;var s=a(i);if(null===s)return 2;var f=s.getPublic();return e.verify(u,c,f)?0:3},ecdsaRecover:function(r,u,i,a){var l,o={r:u.slice(0,32),s:u.slice(32,64)},s=new t(o.r),f=new t(o.s);if(s.cmp(n.n)>=0||f.cmp(n.n)>=0)return 1;if(s.isZero()||f.isZero())return 2;try{l=e.recoverPubKey(a,o,i)}catch(y){return 2}return c(r,l),0},ecdh:function(r,u,i,c,l,o,s){vaLine truncated
},{"elliptic":"G54Y"}],"KY6C":[function(require,module,exports) {
module.exports=require("./lib")(require("./lib/elliptic"));
},{"./lib":"z4RK","./lib/elliptic":"IAXI"}],"amO1":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("randombytes");function t(t){return new Promise(function(n,r){e(t,function(e,t){e?r(e):n(t)})})}function n(t){return e(t)}exports.getRandomBytes=t,exports.getRandomBytesSync=n;
},{"randombytes":"pXr2"}],"rvN4":[function(require,module,exports) {
"use strict";var e=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(t){i(t)}}function u(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},t=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};function r(e){for(var t in e)exports.hasOwnProperty(t)||(exports[t]=e[t])}Object.defineProperty(exports,"__esModule",{value:!0});var n=require("secp256k1"),o=require("./random"),i=32;function a(){return e(this,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return[4,o.getRandomBytes(i)];case 1:return e=t.sent(),n.privateKeyVerify(e)?[2,e]:[3,0];case 2:return[2]}})})}function u(){for(;;){var e=o.getRandomBytesSync(i);if(n.privateKeyVerify(e))return e}}exports.createPrivateKey=a,exports.createPrivateKeySync=u,r(require("secp256k1"));
},{"secp256k1":"KY6C","./random":"amO1"}],"hYjB":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var r=require("buffer").Buffer,e=require("bn.js"),n=require("elliptic").ec,o=new n("secp256k1"),t=o.curve;exports.privateKeyExport=function(r,n){var a=new e(r);if(a.ucmp(t.n)>=0)throw new Error("couldn't export to DER format");var u=o.g.mul(a);return i(u.getX(),u.getY(),n)},exports.privateKeyModInverse=function(n){var o=new e(n);if(o.ucmp(t.n)>=0||o.isZero())throw new Error("private key range is invalid");return o.invm(t.n).toArrayLike(r,"be",32)},exports.signatureImport=function(n){var o=new e(n.r);o.ucmp(t.n)>=0&&(o=new e(0));var i=new e(n.s);return i.ucmp(t.n)>=0&&(i=new e(0)),r.concat([o.toArrayLike(r,"be",32),i.toArrayLike(r,"be",32)])},exports.ecdhUnsafe=function(r,n,a){var u=o.keyFromPublic(r),c=new e(n);if(c.ucmp(t.n)>=0||c.isZero())throw new Error("scalar was invalid (zero or overflow)");var p=u.pub.mul(c);return i(p.getX(),p.getY(),a)};var i=function(e,n,o){var t=void 0;return o?((t=r.alloc(33))[0]=n.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(t,1)):((t=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(t,1),n.toArrayLike(r,"be",32).copy(t,33)),t};
},{"bn.js":"o7RX","elliptic":"G54Y","buffer":"z1tx"}],"L1F8":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var r=require("buffer").Buffer,l=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);exports.privateKeyExport=function(u,e,t){var f=r.from(t?l:n);return u.copy(f,t?8:9),e.copy(f,t?181:214),f},exports.privateKeyImport=function(r){var l=r.length,n=0;if(l<n+1||48!==r[n])return null;if(l<(n+=1)+1||!(128&r[n]))return null;var u=127&r[n];if(u<1||u>2)return null;if(l<(n+=1)+u)return null;var e=r[n+u-1]|(u>1?r[n+u-2]<<8:0);return l<(n+=u)+e?null:l<n+3||2!==r[n]||1!==r[n+1]||1!==r[n+2]?null:l<(n+=3)+2||4!==r[n]||r[n+1]>32||l<n+2+r[n+1]?null:r.slice(n+2,n+2+r[n+1])},exports.signatureImportLax=function(l){var n=r.alloc(32,0),u=r.alloc(32,0),e=l.length,t=0;if(48!==l[t++])return null;var f=l[t++];if(128&f&&(t+=f-128)>e)return null;if(2!==l[t++])return null;var i=l[t++];if(128&i){if(t+(f=i-128)>e)return null;for(;f>0&&0===l[t];t+=1,f-=1);for(i=0;f>0;t+=1,f-=1)i=(i<<8)+l[t]}if(i>e-t)return null;var o=t;if(t+=i,2!==l[t++])return null;var a=l[t++];if(128&a){if(t+(f=a-128)>e)return null;for(;f>0&&0===l[t];t+=1,f-=1);for(a=0;f>0;t+=1,f-=1)a=(a<<8)+l[t]}if(a>e-t)return null;var v=t;for(t+=a;i>0&&0===l[o];i-=1,o+=1);if(i>32)return null;var c=l.slice(o,o+i);for(c.copy(n,32-c.length);a>0&&0===l[v];a-=1,v+=1);if(a>32)return null;var p=l.slice(v,v+a);return p.copy(u,32-p.length),{r:n,s:u}};
},{"buffer":"z1tx"}],"Uazd":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var r=require("buffer").Buffer,e=require("ethereum-cryptography/secp256k1"),n=require("./secp256k1-lib/index"),t=require("./secp256k1-lib/der"),i=function(r){return 32===r.length&&e.privateKeyVerify(Uint8Array.from(r))},o=function(r,e){if(32!==r.length)throw new RangeError("private key length is invalid");var i=n.privateKeyExport(r,e);return t.privateKeyExport(r,i,e)},a=function(r){if(null!==(r=t.privateKeyImport(r))&&32===r.length&&i(r))return r;throw new Error("couldn't import from DER format")},f=function(n){return r.from(e.privateKeyNegate(Uint8Array.from(n)))},u=function(e){if(32!==e.length)throw new Error("private key length is invalid");return r.from(n.privateKeyModInverse(Uint8Array.from(e)))},y=function(n,t){return r.from(e.privateKeyTweakAdd(Uint8Array.from(n),t))},l=function(n,t){return r.from(e.privateKeyTweakMul(Uint8Array.from(n),Uint8Array.from(t)))},m=function(n,t){return r.from(e.publicKeyCreate(Uint8Array.from(n),t))},c=function(n,t){return r.from(e.publicKeyConvert(Uint8Array.from(n),t))},p=function(r){return(33===r.length||65===r.length)&&e.publicKeyVerify(Uint8Array.from(r))},d=function(n,t,i){return r.from(e.publicKeyTweakAdd(Uint8Array.from(n),Uint8Array.from(t),i))},g=function(n,t,i){return r.from(e.publicKeyTweakMul(Uint8Array.from(n),Uint8Array.from(t),i))},s=function(n,t){var i=[];return n.forEach(function(r){i.push(Uint8Array.from(r))}),r.from(e.publicKeyCombine(i,t))},v=function(n){return r.from(e.signatureNormalize(Uint8Array.from(n)))},h=function(n){return r.from(e.signatureExport(Uint8Array.from(n)))},A=function(n){return r.from(e.signatureImport(Uint8Array.from(n)))},w=function(r){if(0===r.length)throw new RangeError("signature length is invalid");var e=t.signatureImportLax(r);if(null===e)throw new Error("couldn't parse DER signature");return n.signatureImport(e)},U=function(n,t,i){if(null===i)throw new TypeError("options should be an Object");var o=void 0;if(i){if(o={},null===i.data)throw new TypeError("options.data should be a Buffer");if(i.data){if(32!==i.data.length)throw new RangeError("options.data length is invalid");o.data=new Uint8Array(i.data)}if(null===i.noncefn)throw new TypeError("options.noncefn should be a Function");i.noncefn&&(o.noncefn=function(e,n,t,o,a){var f=null!=t?r.from(t):null,u=null!=o?r.from(o):null,y=r.from("");return i.noncefn&&(y=i.noncefn(r.from(e),r.from(n),f,u,a)),Uint8Array.from(y)})}var a=e.ecdsaSign(Uint8Array.from(n),Uint8Array.from(t),o);return{signature:r.from(a.signature),recovery:a.recid}},K=function(r,n,t){return e.ecdsaVerify(Uint8Array.from(n),Uint8Array.from(r),t)},b=function(n,t,i,o){return r.from(e.ecdsaRecover(Uint8Array.from(t),i,Uint8Array.from(n),o))},E=function(n,t){return r.from(e.ecdh(Uint8Array.from(n),Uint8Array.from(t),{}))},k=function(e,t,i){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return r.from(n.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),i))};module.exports={privateKeyVerify:i,privateKeyExport:o,privateKeyImport:a,privateKeyNegate:f,privateKeyModInverse:u,privateKeyTweakAdd:y,privateKeyTweakMul:l,publicKeyCreate:m,publicKeyConvert:c,publicKeyVerify:p,publicKeyTweakAdd:d,publicKeyTweakMul:g,publicKeyCombine:s,signatureNormalize:v,signatureExport:h,signatureImport:A,signatureImportLax:w,sign:U,verify:K,recover:b,ecdh:E,ecdhUnsafe:k};
},{"ethereum-cryptography/secp256k1":"rvN4","./secp256k1-lib/index":"hYjB","./secp256k1-lib/der":"L1F8","buffer":"z1tx"}],"YOwE":[function(require,module,exports) {
"use strict";var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable;function n(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function o(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var t={},e=0;e<10;e++)t["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(r){return t[r]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(r){n[r]=r}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}module.exports=o()?Object.assign:function(o,c){for(var a,i,s=n(o),f=1;f<arguments.length;f++){for(var u in a=Object(arguments[f]))t.call(a,u)&&(s[u]=a[u]);if(r){i=r(a);for(var b=0;b<i.length;b++)e.call(a,i[b])&&(s[i[b]]=a[i[b]])}}return s};
},{}],"ebtb":[function(require,module,exports) {
module.exports=function(o){return o&&"object"==typeof o&&"function"==typeof o.copy&&"function"==typeof o.fill&&"function"==typeof o.readUInt8};
},{}],"Zvxt":[function(require,module,exports) {
"function"==typeof Object.create?module.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(t,e){t.super_=e;var o=function(){};o.prototype=e.prototype,t.prototype=new o,t.prototype.constructor=t};
},{}],"KpDW":[function(require,module,exports) {
var global = arguments[3];
var process = require("process");
var e=arguments[3],t=require("process"),r=/%[sdj%]/g;exports.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(i(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,s=o.length,u=String(e).replace(r,function(e){if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(t){return"[Circular]"}default:return e}}),c=o[n];n<s;c=o[++n])h(c)||!z(c)?u+=" "+c:u+=" "+i(c);return u},exports.deprecate=function(r,n){if(j(e.process))return function(){return exports.deprecate(r,n).apply(this,arguments)};if(!0===t.noDeprecation)return r;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),o=!0}return r.apply(this,arguments)}};var n,o={};function i(e,t){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),x(t)?r.showHidden=t:t&&exports._extend(r,t),j(r.showHidden)&&(r.showHidden=!1),j(r.depth)&&(r.depth=2),j(r.colors)&&(r.colors=!1),j(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),p(r,e,r.depth)}function s(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function u(e,t){return e}function c(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function p(e,t,r){if(e.customInspect&&t&&D(t.inspect)&&t.inspect!==exports.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return v(n)||(n=p(e,n,r)),n}var o=l(e,t);if(o)return o;var i=Object.keys(t),s=c(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),E(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return a(t);if(0===i.length){if(D(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(O(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(w(t))return e.stylize(Date.prototype.toString.call(t),"date");if(E(t))return a(t)}var x,h="",b=!1,m=["{","}"];(d(t)&&(b=!0,m=["[","]"]),D(t))&&(h=" [Function"+(t.name?": "+t.name:"")+"]");return O(t)&&(h=" "+RegExp.prototype.toString.call(t)),w(t)&&(h=" "+Date.prototype.toUTCString.call(t)),E(t)&&(h=" "+a(t)),0!==i.length||b&&0!=t.length?r<0?O(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),x=b?f(e,t,r,s,i):i.map(function(n){return g(e,t,r,s,n,b)}),e.seen.pop(),y(x,h,m)):m[0]+h+m[1]}function l(e,t){if(j(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):x(t)?e.stylize(""+t,"boolean"):h(t)?e.stylize("null","null"):void 0}function a(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,o){for(var i=[],s=0,u=t.length;s<u;++s)$(t,String(s))?i.push(g(e,t,r,n,String(s),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(g(e,t,r,n,o,!0))}),i}function g(e,t,r,n,o,i){var s,u,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[Setter]","special")),$(n,o)||(s="["+o+"]"),u||(e.seen.indexOf(c.value)<0?(u=h(r)?p(e,c.value,null):p(e,c.value,r-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n")):u=e.stylize("[Circular]","special")),j(s)){if(i&&o.match(/^\d+$/))return u;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+u}function y(e,t,r){return e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function d(e){return Array.isArray(e)}function x(e){return"boolean"==typeof e}function h(e){return null===e}function b(e){return null==e}function m(e){return"number"==typeof e}function v(e){return"string"==typeof e}function S(e){return"symbol"==typeof e}function j(e){return void 0===e}function O(e){return z(e)&&"[object RegExp]"===A(e)}function z(e){return"object"==typeof e&&null!==e}function w(e){return z(e)&&"[object Date]"===A(e)}function E(e){return z(e)&&("[object Error]"===A(e)||e instanceof Error)}function D(e){return"function"==typeof e}function N(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function A(e){return Object.prototype.toString.call(e)}function J(e){return e<10?"0"+e.toString(10):e.toString(10)}exports.debuglog=function(e){if(j(n)&&(n=""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(n)){var r=t.pid;o[e]=function(){var t=exports.format.apply(exports,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=fuLine truncated
},{"./support/isBuffer":"ebtb","inherits":"Zvxt","process":"g5IB"}],"g2FE":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3],e=require("object-assign");function r(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function n(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var i=require("util/"),o=Object.prototype.hasOwnProperty,u=Array.prototype.slice,a="foo"===function(){}.name;function c(t){return Object.prototype.toString.call(t)}function f(e){return!n(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var s=module.exports=q,l=/\s*function\s+([^\(\s]*)\s*/;function p(t){if(i.isFunction(t)){if(a)return t.name;var e=t.toString().match(l);return e&&e[1]}}function g(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function E(t){if(a||!i.isFunction(t))return i.inspect(t);var e=p(t);return"[Function"+(e?": "+e:"")+"]"}function h(t){return g(E(t.actual),128)+" "+t.operator+" "+g(E(t.expected),128)}function y(t,e,r,n,i){throw new s.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function q(t,e){t||y(t,!0,e,"==",s.ok)}function d(t,e,o,u){if(t===e)return!0;if(n(t)&&n(e))return 0===r(t,e);if(i.isDate(t)&&i.isDate(e))return t.getTime()===e.getTime();if(i.isRegExp(t)&&i.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(f(t)&&f(e)&&c(t)===c(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===r(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(n(t)!==n(e))return!1;var a=(u=u||{actual:[],expected:[]}).actual.indexOf(t);return-1!==a&&a===u.expected.indexOf(e)||(u.actual.push(t),u.expected.push(e),b(t,e,o,u))}return o?t===e:t==e}function m(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function b(t,e,r,n){if(null==t||null==e)return!1;if(i.isPrimitive(t)||i.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var o=m(t),a=m(e);if(o&&!a||!o&&a)return!1;if(o)return d(t=u.call(t),e=u.call(e),r);var c,f,s=A(t),l=A(e);if(s.length!==l.length)return!1;for(s.sort(),l.sort(),f=s.length-1;f>=0;f--)if(s[f]!==l[f])return!1;for(f=s.length-1;f>=0;f--)if(!d(t[c=s[f]],e[c],r,n))return!1;return!0}function v(t,e,r){d(t,e,!0)&&y(t,e,r,"notDeepStrictEqual",v)}function x(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(r){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function S(t){var e;try{t()}catch(r){e=r}return e}function w(t,e,r,n){var o;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),o=S(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!o&&y(o,r,"Missing expected exception"+n);var u="string"==typeof n,a=!t&&o&&!r;if((!t&&i.isError(o)&&u&&x(o,r)||a)&&y(o,r,"Got unwanted exception"+n),t&&o&&r&&!x(o,r)||!t&&o)throw o}function O(t,e){t||y(t,!0,e,"==",O)}s.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=h(this),this.generatedMessage=!0);var e=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=p(e),o=n.indexOf("\n"+i);if(o>=0){var u=n.indexOf("\n",o+1);n=n.substring(u+1)}this.stack=n}}},i.inherits(s.AssertionError,Error),s.fail=y,s.ok=q,s.equal=function(t,e,r){t!=e&&y(t,e,r,"==",s.equal)},s.notEqual=function(t,e,r){t==e&&y(t,e,r,"!=",s.notEqual)},s.deepEqual=function(t,e,r){d(t,e,!1)||y(t,e,r,"deepEqual",s.deepEqual)},s.deepStrictEqual=function(t,e,r){d(t,e,!0)||y(t,e,r,"deepStrictEqual",s.deepStrictEqual)},s.notDeepEqual=function(t,e,r){d(t,e,!1)&&y(t,e,r,"notDeepEqual",s.notDeepEqual)},s.notDeepStrictEqual=v,s.strictEqual=function(t,e,r){t!==e&&y(t,e,r,"===",s.strictEqual)},s.notStrictEqual=function(t,e,r){t===e&&y(t,e,r,"!==",s.notStrictEqual)},s.throws=function(t,e,r){w(!0,t,e,r)},s.doesNotThrow=function(t,e,r){w(!1,t,e,r)},s.ifError=function(t){if(t)throw t},s.strict=e(O,s,{equal:s.strictEqual,deepEqual:s.deepStrictEqual,notEqual:s.notStrictEqual,notDeepEqual:s.notDeepStrictEqual}),s.strict.strict=s.strict;var A=Object.keys||function(t){var e=[];for(var r in t)o.call(t,r)&&e.push(r);return e};
},{"object-assign":"YOwE","util/":"KpDW"}],"jGda":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var r=require("buffer").Buffer,e=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getLength=exports.decode=exports.encode=void 0;var t=e(require("bn.js"));function n(e){if(Array.isArray(e)){for(var t=[],i=0;i<e.length;i++)t.push(n(e[i]));var a=r.concat(t);return r.concat([o(a.length,192),a])}var f=c(e);return 1===f.length&&f[0]<128?f:r.concat([o(f.length,128),f])}function i(r,e){if("0"===r[0]&&"0"===r[1])throw new Error("invalid RLP: extra zeros");return parseInt(r,e)}function o(e,t){if(e<56)return r.from([e+t]);var n=h(e),i=h(t+55+n.length/2);return r.from(i+n,"hex")}function a(e,t){if(void 0===t&&(t=!1),!e||0===e.length)return r.from([]);var n=u(c(e));if(t)return n;if(0!==n.remainder.length)throw new Error("invalid remainder");return n.data}function f(e){if(!e||0===e.length)return r.from([]);var t=c(e),n=t[0];if(n<=127)return t.length;if(n<=183)return n-127;if(n<=191)return n-182;if(n<=247)return n-191;var o=n-246;return o+i(t.slice(1,o).toString("hex"),16)}function u(e){var t,n,o,a,f,l=[],s=e[0];if(s<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(s<=183){if(t=s-127,o=128===s?r.from([]):e.slice(1,t),2===t&&o[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:o,remainder:e.slice(t)}}if(s<=191){if(n=s-182,e.length-1<n)throw new Error("invalid RLP: not enough bytes for string length");if((t=i(e.slice(1,n).toString("hex"),16))<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if((o=e.slice(n,t+n)).length<t)throw new Error("invalid RLP: not enough bytes for string");return{data:o,remainder:e.slice(t+n)}}if(s<=247){for(t=s-191,a=e.slice(1,t);a.length;)f=u(a),l.push(f.data),a=f.remainder;return{data:l,remainder:e.slice(t)}}var h=(n=s-246)+(t=i(e.slice(1,n).toString("hex"),16));if(h>e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(a=e.slice(n,h)).length)throw new Error("invalid rlp, List has a invalid length");for(;a.length;)f=u(a),l.push(f.data),a=f.remainder;return{data:l,remainder:e.slice(h)}}function l(r){return"0x"===r.slice(0,2)}function s(r){return"string"!=typeof r?r:l(r)?r.slice(2):r}function h(r){if(r<0)throw new Error("Invalid integer as argument, must be unsigned!");var e=r.toString(16);return e.length%2?"0"+e:e}function d(r){return r.length%2?"0"+r:r}function g(e){var t=h(e);return r.from(t,"hex")}function c(e){if(!r.isBuffer(e)){if("string"==typeof e)return l(e)?r.from(d(s(e)),"hex"):r.from(e);if("number"==typeof e||"bigint"==typeof e)return e?g(e):r.from([]);if(null==e)return r.from([]);if(e instanceof Uint8Array)return r.from(e);if(t.default.isBN(e))return r.from(e.toArray());throw new Error("invalid type")}return e}exports.encode=n,exports.decode=a,exports.getLength=f;
},{"bn.js":"EOUW","buffer":"z1tx"}],"XYhr":[function(require,module,exports) {
function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}module.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+t(e)+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)};
},{}],"BxjE":[function(require,module,exports) {
var e=require("is-hex-prefixed");module.exports=function(r){return"string"!=typeof r?r:e(r)?r.slice(2):r};
},{"is-hex-prefixed":"XYhr"}],"VqbN":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var r=require("buffer").Buffer;function t(r){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}var e=require("is-hex-prefixed"),n=require("strip-hex-prefix");function i(r){var e=r;if("string"!=typeof e)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+t(e)+", while padToEven.");return e.length%2&&(e="0"+e),e}function o(r){return"0x"+r.toString(16)}function u(t){var e=o(t);return new r(i(e.slice(2)),"hex")}function f(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+t(e)+"'.");return r.byteLength(e,"utf8")}function a(r,e,n){if(!0!==Array.isArray(r))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+t(r)+"'");if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+t(e)+"'");return e[Boolean(n)?"some":"every"](function(t){return r.indexOf(t)>=0})}function s(t){return new r(i(n(t).replace(/^0+|0+$/g,"")),"hex").toString("utf8")}function y(r){var t="",e=0,n=r.length;for("0x"===r.substring(0,2)&&(e=2);e<n;e+=2){var i=parseInt(r.substr(e,2),16);t+=String.fromCharCode(i)}return t}function g(t){return"0x"+i(new r(t,"utf8").toString("hex")).replace(/^0+|0+$/g,"")}function p(r){for(var t="",e=0;e<r.length;e++){var n=r.charCodeAt(e).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t}function h(r,e,n){if(!Array.isArray(r))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+t(r)+"'");if("string"!=typeof e)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+t(e)+"'.");for(var i=[],o=0;o<r.length;o++){var u=r[o][e];if(n&&!u)u="";else if("string"!=typeof u)throw new Error("invalid abi");i.push(u)}return i}function l(r,t){return!("string"!=typeof r||!r.match(/^0x[0-9A-Fa-f]*$/))&&(!t||r.length===2+2*t)}module.exports={arrayContainsArray:a,intToBuffer:u,getBinarySize:f,isHexPrefixed:e,stripHexPrefix:n,padToEven:i,intToHex:o,fromAscii:p,fromUtf8:g,toAscii:y,toUtf8:s,getKeys:h,isHexString:l};
},{"is-hex-prefixed":"XYhr","strip-hex-prefix":"BxjE","buffer":"z1tx"}],"qR15":[function(require,module,exports) {
"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=require("ethereum-cryptography/keccak"),t=r.keccak224,f=r.keccak384,o=r.keccak256,s=r.keccak512,n=require("./secp256k1-adapter"),i=require("assert"),p=require("rlp"),u=require("bn.js"),a=require("create-hash"),c=require("safe-buffer").Buffer;Object.assign(exports,require("ethjs-util")),exports.MAX_INTEGER=new u("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),exports.TWO_POW256=new u("10000000000000000000000000000000000000000000000000000000000000000",16),exports.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",exports.SHA3_NULL_S=exports.KECCAK256_NULL_S,exports.KECCAK256_NULL=c.from(exports.KECCAK256_NULL_S,"hex"),exports.SHA3_NULL=exports.KECCAK256_NULL,exports.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",exports.SHA3_RLP_ARRAY_S=exports.KECCAK256_RLP_ARRAY_S,exports.KECCAK256_RLP_ARRAY=c.from(exports.KECCAK256_RLP_ARRAY_S,"hex"),exports.SHA3_RLP_ARRAY=exports.KECCAK256_RLP_ARRAY,exports.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",exports.SHA3_RLP_S=exports.KECCAK256_RLP_S,exports.KECCAK256_RLP=c.from(exports.KECCAK256_RLP_S,"hex"),exports.SHA3_RLP=exports.KECCAK256_RLP,exports.BN=u,exports.rlp=p,exports.secp256k1=n,exports.zeros=function(e){return c.allocUnsafe(e).fill(0)},exports.zeroAddress=function(){var e=exports.zeros(20);return exports.bufferToHex(e)},exports.setLengthLeft=exports.setLength=function(e,r,t){var f=exports.zeros(r);return e=exports.toBuffer(e),t?e.length<r?(e.copy(f),f):e.slice(0,r):e.length<r?(e.copy(f,r-e.length),f):e.slice(-r)},exports.setLengthRight=function(e,r){return exports.setLength(e,r,!0)},exports.unpad=exports.stripZeros=function(e){for(var r=(e=exports.stripHexPrefix(e))[0];e.length>0&&"0"===r.toString();)r=(e=e.slice(1))[0];return e},exports.toBuffer=function(e){if(!c.isBuffer(e))if(Array.isArray(e))e=c.from(e);else if("string"==typeof e)e=exports.isHexString(e)?c.from(exports.padToEven(exports.stripHexPrefix(e)),"hex"):c.from(e);else if("number"==typeof e)e=exports.intToBuffer(e);else if(null==e)e=c.allocUnsafe(0);else if(u.isBN(e))e=e.toArrayLike(c);else{if(!e.toArray)throw new Error("invalid type");e=c.from(e.toArray())}return e},exports.bufferToInt=function(e){return new u(exports.toBuffer(e)).toNumber()},exports.bufferToHex=function(e){return"0x"+(e=exports.toBuffer(e)).toString("hex")},exports.fromSigned=function(e){return new u(e).fromTwos(256)},exports.toUnsigned=function(e){return c.from(e.toTwos(256).toArray())},exports.keccak=function(e,r){switch(e=exports.toBuffer(e),r||(r=256),r){case 224:return t(e);case 256:return o(e);case 384:return f(e);case 512:return s(e);default:throw new Error("Invald algorithm: keccak"+r)}},exports.keccak256=function(e){return exports.keccak(e)},exports.sha3=exports.keccak,exports.sha256=function(e){return e=exports.toBuffer(e),a("sha256").update(e).digest()},exports.ripemd160=function(e,r){e=exports.toBuffer(e);var t=a("rmd160").update(e).digest();return!0===r?exports.setLength(t,32):t},exports.rlphash=function(e){return exports.keccak(p.encode(e))},exports.isValidPrivate=function(e){return n.privateKeyVerify(e)},exports.isValidPublic=function(e,r){return 64===e.length?n.publicKeyVerify(c.concat([c.from([4]),e])):!!r&&n.publicKeyVerify(e)},exports.pubToAddress=exports.publicToAddress=function(e,r){return e=exports.toBuffer(e),r&&64!==e.length&&(e=n.publicKeyConvert(e,!1).slice(1)),i(64===e.length),exports.keccak(e).slice(-20)};var x=exports.privateToPublic=function(e){return e=exports.toBuffer(e),n.publicKeyCreate(e,!1).slice(1)};exports.importPublic=function(e){return 64!==(e=exports.toBuffer(e)).length&&(e=n.publicKeyConvert(e,!1).slice(1)),e},exports.ecsign=function(e,r){var t=n.sign(e,r),f={};return f.r=t.signature.slice(0,32),f.s=t.signature.slice(32,64),f.v=t.recovery+27,f},exports.hashPersonalMessage=function(e){var r=exports.toBuffer("Ethereum Signed Message:\n"+e.length.toString());return exports.keccak(c.concat([r,e]))},exports.ecrecover=function(e,r,t,f){var o=c.concat([exports.setLength(t,32),exports.setLength(f,32)],64),s=r-27;if(0!==s&&1!==s)throw new Error("Invalid signature v value");var i=n.recover(e,o,s);return n.publicKeyConvert(i,!1).slice(1)},exports.toRpcSig=function(e,r,t){if(27!==e&&28!==e)throw new Error("Invalid recovery id");return exports.bufferToHex(c.concat([exports.setLengthLeft(r,32),exports.setLengthLeft(t,32),exports.toBuffer(e-27)]))},exports.fromRpcSig=function(e){if(65!==(e=exports.toBuffer(e)).length)throw new Error("Invalid signature length");var r=e[64];return r<27&&(r+=27),{v:r,r:e.slice(0,32),s:e.slice(32,64)}},exports.privateToAddress=function(e){return exports.publicToAddress(x(e))},exports.isValidAddress=function(e){return/^0x[0Line truncated
},{"ethereum-cryptography/keccak":"ZmXY","./secp256k1-adapter":"Uazd","assert":"g2FE","rlp":"jGda","bn.js":"o7RX","create-hash":"CBfM","safe-buffer":"gIYa","ethjs-util":"VqbN"}],"SZ47":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var r=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0});var e=require("bn.js"),o=require("elliptic").ec,n=new o("secp256k1"),t=n.curve;exports.privateKeyExport=function(r,o){void 0===o&&(o=!0);var a=new e(r);if(a.ucmp(t.n)>=0)throw new Error("couldn't export to DER format");var u=n.g.mul(a);return i(u.getX(),u.getY(),o)},exports.privateKeyModInverse=function(o){var n=new e(o);if(n.ucmp(t.n)>=0||n.isZero())throw new Error("private key range is invalid");return n.invm(t.n).toArrayLike(r,"be",32)},exports.signatureImport=function(o){var n=new e(o.r);n.ucmp(t.n)>=0&&(n=new e(0));var i=new e(o.s);return i.ucmp(t.n)>=0&&(i=new e(0)),r.concat([n.toArrayLike(r,"be",32),i.toArrayLike(r,"be",32)])},exports.ecdhUnsafe=function(r,o,a){void 0===a&&(a=!0);var u=n.keyFromPublic(r),c=new e(o);if(c.ucmp(t.n)>=0||c.isZero())throw new Error("scalar was invalid (zero or overflow)");var p=u.pub.mul(c);return i(p.getX(),p.getY(),a)};var i=function(e,o,n){var t;return n?((t=r.alloc(33))[0]=o.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(t,1)):((t=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(t,1),o.toArrayLike(r,"be",32).copy(t,33)),t};
},{"bn.js":"o7RX","elliptic":"G54Y","buffer":"z1tx"}],"rhQx":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var r=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0});var l=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);exports.privateKeyExport=function(e,u,t){void 0===t&&(t=!0);var f=r.from(t?l:n);return e.copy(f,t?8:9),u.copy(f,t?181:214),f},exports.privateKeyImport=function(r){var l=r.length,n=0;if(l<n+1||48!==r[n])return null;if(l<(n+=1)+1||!(128&r[n]))return null;var e=127&r[n];if(e<1||e>2)return null;if(l<(n+=1)+e)return null;var u=r[n+e-1]|(e>1?r[n+e-2]<<8:0);return l<(n+=e)+u?null:l<n+3||2!==r[n]||1!==r[n+1]||1!==r[n+2]?null:l<(n+=3)+2||4!==r[n]||r[n+1]>32||l<n+2+r[n+1]?null:r.slice(n+2,n+2+r[n+1])},exports.signatureImportLax=function(l){var n=r.alloc(32,0),e=r.alloc(32,0),u=l.length,t=0;if(48!==l[t++])return null;var f=l[t++];if(128&f&&(t+=f-128)>u)return null;if(2!==l[t++])return null;var i=l[t++];if(128&i){if(t+(f=i-128)>u)return null;for(;f>0&&0===l[t];t+=1,f-=1);for(i=0;f>0;t+=1,f-=1)i=(i<<8)+l[t]}if(i>u-t)return null;var o=t;if(t+=i,2!==l[t++])return null;var a=l[t++];if(128&a){if(t+(f=a-128)>u)return null;for(;f>0&&0===l[t];t+=1,f-=1);for(a=0;f>0;t+=1,f-=1)a=(a<<8)+l[t]}if(a>u-t)return null;var v=t;for(t+=a;i>0&&0===l[o];i-=1,o+=1);if(i>32)return null;var p=l.slice(o,o+i);for(p.copy(n,32-p.length);a>0&&0===l[v];a-=1,v+=1);if(a>32)return null;var c=l.slice(v,v+a);return c.copy(e,32-c.length),{r:n,s:e}};
},{"buffer":"z1tx"}],"XKv4":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var r=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ecdhUnsafe=exports.ecdh=exports.recover=exports.verify=exports.sign=exports.signatureImportLax=exports.signatureImport=exports.signatureExport=exports.signatureNormalize=exports.publicKeyCombine=exports.publicKeyTweakMul=exports.publicKeyTweakAdd=exports.publicKeyVerify=exports.publicKeyConvert=exports.publicKeyCreate=exports.privateKeyTweakMul=exports.privateKeyTweakAdd=exports.privateKeyModInverse=exports.privateKeyNegate=exports.privateKeyImport=exports.privateKeyExport=exports.privateKeyVerify=void 0;var e=require("ethereum-cryptography/secp256k1"),t=require("./secp256k1v3-lib/index"),n=require("./secp256k1v3-lib/der");exports.privateKeyVerify=function(r){return 32===r.length&&e.privateKeyVerify(Uint8Array.from(r))},exports.privateKeyExport=function(r,e){if(32!==r.length)throw new RangeError("private key length is invalid");var o=t.privateKeyExport(r,e);return n.privateKeyExport(r,o,e)},exports.privateKeyImport=function(r){if(null!==(r=n.privateKeyImport(r))&&32===r.length&&exports.privateKeyVerify(r))return r;throw new Error("couldn't import from DER format")},exports.privateKeyNegate=function(t){return r.from(e.privateKeyNegate(Uint8Array.from(t)))},exports.privateKeyModInverse=function(e){if(32!==e.length)throw new Error("private key length is invalid");return r.from(t.privateKeyModInverse(Uint8Array.from(e)))},exports.privateKeyTweakAdd=function(t,n){return r.from(e.privateKeyTweakAdd(Uint8Array.from(t),n))},exports.privateKeyTweakMul=function(t,n){return r.from(e.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(n)))},exports.publicKeyCreate=function(t,n){return r.from(e.publicKeyCreate(Uint8Array.from(t),n))},exports.publicKeyConvert=function(t,n){return r.from(e.publicKeyConvert(Uint8Array.from(t),n))},exports.publicKeyVerify=function(r){return(33===r.length||65===r.length)&&e.publicKeyVerify(Uint8Array.from(r))},exports.publicKeyTweakAdd=function(t,n,o){return r.from(e.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(n),o))},exports.publicKeyTweakMul=function(t,n,o){return r.from(e.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(n),o))},exports.publicKeyCombine=function(t,n){var o=[];return t.forEach(function(r){o.push(Uint8Array.from(r))}),r.from(e.publicKeyCombine(o,n))},exports.signatureNormalize=function(t){return r.from(e.signatureNormalize(Uint8Array.from(t)))},exports.signatureExport=function(t){return r.from(e.signatureExport(Uint8Array.from(t)))},exports.signatureImport=function(t){return r.from(e.signatureImport(Uint8Array.from(t)))},exports.signatureImportLax=function(r){if(0===r.length)throw new RangeError("signature length is invalid");var e=n.signatureImportLax(r);if(null===e)throw new Error("couldn't parse DER signature");return t.signatureImport(e)},exports.sign=function(t,n,o){if(null===o)throw new TypeError("options should be an Object");var i=void 0;if(o){if(i={},null===o.data)throw new TypeError("options.data should be a Buffer");if(o.data){if(32!=o.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(o.data)}if(null===o.noncefn)throw new TypeError("options.noncefn should be a Function");o.noncefn&&(i.noncefn=function(e,t,n,i,a){var p=null!=n?r.from(n):null,u=null!=i?r.from(i):null,f=r.from("");return o.noncefn&&(f=o.noncefn(r.from(e),r.from(t),p,u,a)),new Uint8Array(f)})}var a=e.ecdsaSign(Uint8Array.from(t),Uint8Array.from(n),i);return{signature:r.from(a.signature),recovery:a.recid}},exports.verify=function(r,t,n){return e.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(r),n)},exports.recover=function(t,n,o,i){return r.from(e.ecdsaRecover(Uint8Array.from(n),o,Uint8Array.from(t),i))},exports.ecdh=function(t,n){return r.from(e.ecdh(Uint8Array.from(t),Uint8Array.from(n),{}))},exports.ecdhUnsafe=function(e,n,o){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==n.length)throw new RangeError("private key length is invalid");return r.from(t.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(n),o))};
},{"ethereum-cryptography/secp256k1":"rvN4","./secp256k1v3-lib/index":"SZ47","./secp256k1v3-lib/der":"rhQx","buffer":"z1tx"}],"v3Aw":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var f=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0}),exports.KECCAK256_RLP=exports.KECCAK256_RLP_S=exports.KECCAK256_RLP_ARRAY=exports.KECCAK256_RLP_ARRAY_S=exports.KECCAK256_NULL=exports.KECCAK256_NULL_S=exports.TWO_POW256=exports.MAX_INTEGER=void 0;var e=require("bn.js");exports.MAX_INTEGER=new e("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),exports.TWO_POW256=new e("10000000000000000000000000000000000000000000000000000000000000000",16),exports.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",exports.KECCAK256_NULL=f.from(exports.KECCAK256_NULL_S,"hex"),exports.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",exports.KECCAK256_RLP_ARRAY=f.from(exports.KECCAK256_RLP_ARRAY_S,"hex"),exports.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",exports.KECCAK256_RLP=f.from(exports.KECCAK256_RLP_S,"hex");
},{"bn.js":"o7RX","buffer":"z1tx"}],"WX1z":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0}),exports.baToJSON=exports.addHexPrefix=exports.toUnsigned=exports.fromSigned=exports.bufferToHex=exports.bufferToInt=exports.toBuffer=exports.stripZeros=exports.unpad=exports.setLengthRight=exports.setLength=exports.setLengthLeft=exports.zeros=void 0;var r=require("ethjs-util"),t=require("bn.js");exports.zeros=function(r){return e.allocUnsafe(r).fill(0)},exports.setLengthLeft=function(e,r,t){void 0===t&&(t=!1);var o=exports.zeros(r);return e=exports.toBuffer(e),t?e.length<r?(e.copy(o),o):e.slice(0,r):e.length<r?(e.copy(o,r-e.length),o):e.slice(-r)},exports.setLength=exports.setLengthLeft,exports.setLengthRight=function(e,r){return exports.setLength(e,r,!0)},exports.unpad=function(e){for(var t=(e=r.stripHexPrefix(e))[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},exports.stripZeros=exports.unpad,exports.toBuffer=function(o){if(!e.isBuffer(o))if(Array.isArray(o))o=e.from(o);else if("string"==typeof o){if(!r.isHexString(o))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+o);o=e.from(r.padToEven(r.stripHexPrefix(o)),"hex")}else if("number"==typeof o)o=r.intToBuffer(o);else if(null==o)o=e.allocUnsafe(0);else if(t.isBN(o))o=o.toArrayLike(e);else{if(!o.toArray)throw new Error("invalid type");o=e.from(o.toArray())}return o},exports.bufferToInt=function(e){return new t(exports.toBuffer(e)).toNumber()},exports.bufferToHex=function(e){return"0x"+(e=exports.toBuffer(e)).toString("hex")},exports.fromSigned=function(e){return new t(e).fromTwos(256)},exports.toUnsigned=function(r){return e.from(r.toTwos(256).toArray())},exports.addHexPrefix=function(e){return"string"!=typeof e?e:r.isHexPrefixed(e)?e:"0x"+e},exports.baToJSON=function(r){if(e.isBuffer(r))return"0x"+r.toString("hex");if(r instanceof Array){for(var t=[],o=0;o<r.length;o++)t.push(exports.baToJSON(r[o]));return t}};
},{"ethjs-util":"VqbN","bn.js":"o7RX","buffer":"z1tx"}],"UV5i":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0}),exports.rlphash=exports.ripemd160=exports.sha256=exports.keccak256=exports.keccak=void 0;var r=require("ethereum-cryptography/keccak"),t=r.keccak224,c=r.keccak384,a=r.keccak256,o=r.keccak512,s=require("create-hash"),u=require("ethjs-util"),n=require("rlp"),i=require("./bytes");exports.keccak=function(r,s){switch(void 0===s&&(s=256),r="string"!=typeof r||u.isHexString(r)?i.toBuffer(r):e.from(r,"utf8"),s||(s=256),s){case 224:return t(r);case 256:return a(r);case 384:return c(r);case 512:return o(r);default:throw new Error("Invald algorithm: keccak"+s)}},exports.keccak256=function(e){return exports.keccak(e)},exports.sha256=function(e){return e=i.toBuffer(e),s("sha256").update(e).digest()},exports.ripemd160=function(e,r){e=i.toBuffer(e);var t=s("rmd160").update(e).digest();return!0===r?i.setLength(t,32):t},exports.rlphash=function(e){return exports.keccak(n.encode(e))};
},{"ethereum-cryptography/keccak":"ZmXY","create-hash":"CBfM","ethjs-util":"VqbN","rlp":"jGda","./bytes":"WX1z","buffer":"z1tx"}],"LkR7":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0}),exports.importPublic=exports.privateToPublic=exports.privateToAddress=exports.publicToAddress=exports.pubToAddress=exports.isValidPublic=exports.isValidPrivate=exports.isPrecompiled=exports.generateAddress2=exports.generateAddress=exports.isValidChecksumAddress=exports.toChecksumAddress=exports.isZeroAddress=exports.isValidAddress=exports.zeroAddress=void 0;var r=require("assert"),s=require("ethjs-util"),t=require("./secp256k1v3-adapter"),o=require("bn.js"),i=require("./bytes"),u=require("./hash");exports.zeroAddress=function(){var e=i.zeros(20);return i.bufferToHex(e)},exports.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},exports.isZeroAddress=function(e){return exports.zeroAddress()===i.addHexPrefix(e)},exports.toChecksumAddress=function(e,r){e=s.stripHexPrefix(e).toLowerCase();for(var t=void 0!==r?r.toString()+"0x":"",o=u.keccak(t+e).toString("hex"),i="0x",d=0;d<e.length;d++)parseInt(o[d],16)>=8?i+=e[d].toUpperCase():i+=e[d];return i},exports.isValidChecksumAddress=function(e,r){return exports.isValidAddress(e)&&exports.toChecksumAddress(e,r)===e},exports.generateAddress=function(r,s){r=i.toBuffer(r);var t=new o(s);return t.isZero()?u.rlphash([r,null]).slice(-20):u.rlphash([r,e.from(t.toArray())]).slice(-20)},exports.generateAddress2=function(s,t,o){var d=i.toBuffer(s),p=i.toBuffer(t),n=i.toBuffer(o);return r(20===d.length),r(32===p.length),u.keccak256(e.concat([e.from("ff","hex"),d,p,u.keccak256(n)])).slice(-20)},exports.isPrecompiled=function(e){var r=i.unpad(e);return 1===r.length&&r[0]>=1&&r[0]<=8},exports.isValidPrivate=function(e){return t.privateKeyVerify(e)},exports.isValidPublic=function(r,s){return void 0===s&&(s=!1),64===r.length?t.publicKeyVerify(e.concat([e.from([4]),r])):!!s&&t.publicKeyVerify(r)},exports.pubToAddress=function(e,s){return void 0===s&&(s=!1),e=i.toBuffer(e),s&&64!==e.length&&(e=t.publicKeyConvert(e,!1).slice(1)),r(64===e.length),u.keccak(e).slice(-20)},exports.publicToAddress=exports.pubToAddress,exports.privateToAddress=function(e){return exports.publicToAddress(exports.privateToPublic(e))},exports.privateToPublic=function(e){return e=i.toBuffer(e),t.publicKeyCreate(e,!1).slice(1)},exports.importPublic=function(e){return 64!==(e=i.toBuffer(e)).length&&(e=t.publicKeyConvert(e,!1).slice(1)),e};
},{"assert":"g2FE","ethjs-util":"VqbN","./secp256k1v3-adapter":"XKv4","bn.js":"o7RX","./bytes":"WX1z","./hash":"UV5i","buffer":"z1tx"}],"lXcm":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0}),exports.hashPersonalMessage=exports.isValidSignature=exports.fromRpcSig=exports.toRpcSig=exports.ecrecover=exports.ecsign=void 0;var r=require("./secp256k1v3-adapter"),f=require("bn.js"),t=require("./bytes"),n=require("./hash");function i(e,r){return r?e-(2*r+35):e-27}function o(e){return 0===e||1===e}exports.ecsign=function(e,f,t){var n=r.sign(e,f),i=n.recovery;return{r:n.signature.slice(0,32),s:n.signature.slice(32,64),v:t?i+(2*t+35):i+27}},exports.ecrecover=function(f,n,s,a,u){var c=e.concat([t.setLength(s,32),t.setLength(a,32)],64),g=i(n,u);if(!o(g))throw new Error("Invalid signature v value");var v=r.recover(f,c,g);return r.publicKeyConvert(v,!1).slice(1)},exports.toRpcSig=function(r,f,n,s){if(!o(i(r,s)))throw new Error("Invalid signature v value");return t.bufferToHex(e.concat([t.setLengthLeft(f,32),t.setLengthLeft(n,32),t.toBuffer(r)]))},exports.fromRpcSig=function(e){var r=t.toBuffer(e);if(65!==r.length)throw new Error("Invalid signature length");var f=r[64];return f<27&&(f+=27),{v:f,r:r.slice(0,32),s:r.slice(32,64)}},exports.isValidSignature=function(e,r,t,n,s){void 0===n&&(n=!0);var a=new f("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),u=new f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==r.length||32!==t.length)return!1;if(!o(i(e,s)))return!1;var c=new f(r),g=new f(t);return!(c.isZero()||c.gt(u)||g.isZero()||g.gt(u))&&(!n||1!==g.cmp(a))},exports.hashPersonalMessage=function(r){var f=e.from("Ethereum Signed Message:\n"+r.length.toString(),"utf-8");return n.keccak(e.concat([f,r]))};
},{"./secp256k1v3-adapter":"XKv4","bn.js":"o7RX","./bytes":"WX1z","./hash":"UV5i","buffer":"z1tx"}],"KySG":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value:!0}),exports.defineProperties=void 0;var r=require("assert"),t=require("ethjs-util"),n=require("rlp"),i=require("./bytes");exports.defineProperties=function(a,f,o){if(a.raw=[],a._fields=[],a.toJSON=function(e){if(void 0===e&&(e=!1),e){var r={};return a._fields.forEach(function(e){r[e]="0x"+a[e].toString("hex")}),r}return i.baToJSON(a.raw)},a.serialize=function(){return n.encode(a.raw)},f.forEach(function(t,n){function f(){return a.raw[n]}function o(f){"00"!==(f=i.toBuffer(f)).toString("hex")||t.allowZero||(f=e.allocUnsafe(0)),t.allowLess&&t.length?(f=i.stripZeros(f),r(t.length>=f.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===f.length||!t.length||r(t.length===f.length,"The field "+t.name+" must have byte length of "+t.length),a.raw[n]=f}a._fields.push(t.name),Object.defineProperty(a,t.name,{enumerable:!0,configurable:!0,get:f,set:o}),t.default&&(a[t.name]=t.default),t.alias&&Object.defineProperty(a,t.alias,{enumerable:!1,configurable:!0,set:o,get:f})}),o)if("string"==typeof o&&(o=e.from(t.stripHexPrefix(o),"hex")),e.isBuffer(o)&&(o=n.decode(o)),Array.isArray(o)){if(o.length>a._fields.length)throw new Error("wrong number of fields in data");o.forEach(function(e,r){a[a._fields[r]]=i.toBuffer(e)})}else{if("object"!=typeof o)throw new Error("invalid data");var l=Object.keys(o);f.forEach(function(e){-1!==l.indexOf(e.name)&&(a[e.name]=o[e.name]),-1!==l.indexOf(e.alias)&&(a[e.alias]=o[e.alias])})}};
},{"assert":"g2FE","ethjs-util":"VqbN","rlp":"jGda","./bytes":"WX1z","buffer":"z1tx"}],"YoQ7":[function(require,module,exports) {
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,r,t,s){void 0===s&&(s=t),Object.defineProperty(e,s,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,s){void 0===s&&(s=t),e[s]=r[t]}),r=this&&this.__exportStar||function(r,t){for(var s in r)"default"===s||t.hasOwnProperty(s)||e(t,r,s)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.secp256k1=exports.rlp=exports.BN=void 0;var t=require("./secp256k1v3-adapter");exports.secp256k1=t;var s=require("ethjs-util"),i=require("bn.js");exports.BN=i;var o=require("rlp");exports.rlp=o,Object.assign(exports,s),r(require("./constants"),exports),r(require("./account"),exports),r(require("./hash"),exports),r(require("./signature"),exports),r(require("./bytes"),exports),r(require("./object"),exports);
},{"./secp256k1v3-adapter":"XKv4","ethjs-util":"VqbN","bn.js":"o7RX","rlp":"jGda","./constants":"v3Aw","./account":"LkR7","./hash":"UV5i","./signature":"lXcm","./bytes":"WX1z","./object":"KySG"}],"NDcM":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var t=require("buffer").Buffer;const r=require("ethereumjs-util"),e=require("bn.js");var i=function(){};function n(t){return t.startsWith("int[")?"int256"+t.slice(3):"int"===t?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):"ufixed"===t?"ufixed128x128":t}function s(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function o(t){var r=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(r[1],10),parseInt(r[2],10)]}function a(t){var r=t.match(/(.*)\[(.*?)\]$/);return r?""===r[2]?"dynamic":parseInt(r[2],10):null}function u(t){var i=typeof t;if("string"===i)return r.isHexPrefixed(t)?new e(r.stripHexPrefix(t),16):new e(t,10);if("number"===i)return new e(t);if(t.toArray)return t;throw new Error("Argument is not a number")}function f(t){var r=/^(\w+)\((.*)\)$/.exec(t);if(3!==r.length)throw new Error("Invalid method signature");var e=/^(.+)\):\((.+)$/.exec(r[2]);if(null!==e&&3===e.length)return{method:r[1],args:e[1].split(","),retargs:e[2].split(",")};var i=r[2].split(",");return 1===i.length&&""===i[0]&&(i=[]),{method:r[1],args:i}}function h(i,n){var f,d,c,w;if("address"===i)return h("uint160",u(n));if("bool"===i)return h("uint8",n?1:0);if("string"===i)return h("bytes",t.from(n,"utf8"));if(l(i)){if(void 0===n.length)throw new Error("Not an array?");if("dynamic"!==(f=a(i))&&0!==f&&n.length>f)throw new Error("Elements exceed array size: "+f);for(w in c=[],i=i.slice(0,i.lastIndexOf("[")),"string"==typeof n&&(n=JSON.parse(n)),n)c.push(h(i,n[w]));if("dynamic"===f){var p=h("uint256",n.length);c.unshift(p)}return t.concat(c)}if("bytes"===i)return n=t.from(n),c=t.concat([h("uint256",n.length),n]),n.length%32!=0&&(c=t.concat([c,r.zeros(32-n.length%32)])),c;if(i.startsWith("bytes")){if((f=s(i))<1||f>32)throw new Error("Invalid bytes<N> width: "+f);return r.setLengthRight(n,32)}if(i.startsWith("uint")){if((f=s(i))%8||f<8||f>256)throw new Error("Invalid uint<N> width: "+f);if((d=u(n)).bitLength()>f)throw new Error("Supplied uint exceeds width: "+f+" vs "+d.bitLength());if(d<0)throw new Error("Supplied uint is negative");return d.toArrayLike(t,"be",32)}if(i.startsWith("int")){if((f=s(i))%8||f<8||f>256)throw new Error("Invalid int<N> width: "+f);if((d=u(n)).bitLength()>f)throw new Error("Supplied int exceeds width: "+f+" vs "+d.bitLength());return d.toTwos(256).toArrayLike(t,"be",32)}if(i.startsWith("ufixed")){if(f=o(i),(d=u(n))<0)throw new Error("Supplied ufixed is negative");return h("uint256",d.mul(new e(2).pow(new e(f[1]))))}if(i.startsWith("fixed"))return f=o(i),h("int256",u(n).mul(new e(2).pow(new e(f[1]))));throw new Error("Unsupported or invalid type: "+i)}function d(r,i,n){var s,o,a,u;if("string"==typeof r&&(r=c(r)),"address"===r.name)return d(r.rawType,i,n).toArrayLike(t,"be",20).toString("hex");if("bool"===r.name)return d(r.rawType,i,n).toString()===new e(1).toString();if("string"===r.name){var f=d(r.rawType,i,n);return t.from(f,"utf8").toString()}if(r.isArray){for(a=[],s=r.size,"dynamic"===r.size&&(n=d("uint256",i,n).toNumber(),s=d("uint256",i,n).toNumber(),n+=32),u=0;u<s;u++){var h=d(r.subArray,i,n);a.push(h),n+=r.subArray.memoryUsage}return a}if("bytes"===r.name)return n=d("uint256",i,n).toNumber(),s=d("uint256",i,n).toNumber(),i.slice(n+32,n+32+s);if(r.name.startsWith("bytes"))return i.slice(n,n+r.size);if(r.name.startsWith("uint")){if((o=new e(i.slice(n,n+32),16,"be")).bitLength()>r.size)throw new Error("Decoded int exceeds width: "+r.size+" vs "+o.bitLength());return o}if(r.name.startsWith("int")){if((o=new e(i.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>r.size)throw new Error("Decoded uint exceeds width: "+r.size+" vs "+o.bitLength());return o}if(r.name.startsWith("ufixed")){if(s=new e(2).pow(new e(r.size[1])),!(o=d("uint256",i,n)).mod(s).isZero())throw new Error("Decimals not supported yet");return o.div(s)}if(r.name.startsWith("fixed")){if(s=new e(2).pow(new e(r.size[1])),!(o=d("int256",i,n)).mod(s).isZero())throw new Error("Decimals not supported yet");return o.div(s)}throw new Error("Unsupported or invalid type: "+r.name)}function c(t){var r,e,i;if(l(t)){r=a(t);var n=t.slice(0,t.lastIndexOf("["));return n=c(n),e={isArray:!0,name:t,size:r,memoryUsage:"dynamic"===r?32:n.memoryUsage*r,subArray:n}}switch(t){case"address":i="uint160";break;case"bool":i="uint8";break;case"string":i="bytes"}if(e={rawType:i,name:t,memoryUsage:32},t.startsWith("bytes")&&"bytes"!==t||t.startsWith("uint")||t.startsWith("int")?e.size=s(t):(t.startsWith("ufixed")||t.startsWith("fixed"))&&(e.size=o(t)),t.startsWith("bytes")&&"bytes"!==t&&(e.size<1||e.size>32))throw new Error("Invalid bytes<N> width: "+e.size);if((t.startsWith("uint")||t.startsWith("int"))&&(e.size%8||e.size<8||e.size>256))throw new Error("Invalid int/uint<N> width: "+e.size);return e}function w(t){return"string"===t||"bytes"===t||"dynamic"===a(t)}function l(t){return t.lastIndexOf("]")===t.length-1}function p(t,r){return t.staLine truncated
},{"ethereumjs-util":"YoQ7","bn.js":"o7RX","buffer":"z1tx"}],"DsS3":[function(require,module,exports) {
module.exports=require("./lib/index.js");
},{"./lib/index.js":"NDcM"}],"lUvA":[function(require,module,exports) {
!function(r){"use strict";var t=function(r){var t,n=new Float64Array(16);if(r)for(t=0;t<r.length;t++)n[t]=r[t];return n},n=function(){throw new Error("no PRNG")},e=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),h=t([1]),a=t([56129,1]),f=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),s=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),c=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),y=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function l(r,t,n,e){r[t]=n>>24&255,r[t+1]=n>>16&255,r[t+2]=n>>8&255,r[t+3]=255&n,r[t+4]=e>>24&255,r[t+5]=e>>16&255,r[t+6]=e>>8&255,r[t+7]=255&e}function w(r,t,n,e,o){var i,h=0;for(i=0;i<o;i++)h|=r[t+i]^n[e+i];return(1&h-1>>>8)-1}function v(r,t,n,e){return w(r,t,n,e,16)}function p(r,t,n,e){return w(r,t,n,e,32)}function b(r,t,n,e){!function(r,t,n,e){for(var o,i=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,s=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,c=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,y=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,w=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,v=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,b=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,g=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,A=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,U=i,d=h,E=a,x=f,M=s,m=u,B=c,S=y,k=l,K=w,Y=v,L=p,T=b,z=g,R=A,P=_,N=0;N<20;N+=2)U^=(o=(T^=(o=(k^=(o=(M^=(o=U+T|0)<<7|o>>>25)+U|0)<<9|o>>>23)+M|0)<<13|o>>>19)+k|0)<<18|o>>>14,m^=(o=(d^=(o=(z^=(o=(K^=(o=m+d|0)<<7|o>>>25)+m|0)<<9|o>>>23)+K|0)<<13|o>>>19)+z|0)<<18|o>>>14,Y^=(o=(B^=(o=(E^=(o=(R^=(o=Y+B|0)<<7|o>>>25)+Y|0)<<9|o>>>23)+R|0)<<13|o>>>19)+E|0)<<18|o>>>14,P^=(o=(L^=(o=(S^=(o=(x^=(o=P+L|0)<<7|o>>>25)+P|0)<<9|o>>>23)+x|0)<<13|o>>>19)+S|0)<<18|o>>>14,U^=(o=(x^=(o=(E^=(o=(d^=(o=U+x|0)<<7|o>>>25)+U|0)<<9|o>>>23)+d|0)<<13|o>>>19)+E|0)<<18|o>>>14,m^=(o=(M^=(o=(S^=(o=(B^=(o=m+M|0)<<7|o>>>25)+m|0)<<9|o>>>23)+B|0)<<13|o>>>19)+S|0)<<18|o>>>14,Y^=(o=(K^=(o=(k^=(o=(L^=(o=Y+K|0)<<7|o>>>25)+Y|0)<<9|o>>>23)+L|0)<<13|o>>>19)+k|0)<<18|o>>>14,P^=(o=(R^=(o=(z^=(o=(T^=(o=P+R|0)<<7|o>>>25)+P|0)<<9|o>>>23)+T|0)<<13|o>>>19)+z|0)<<18|o>>>14;U=U+i|0,d=d+h|0,E=E+a|0,x=x+f|0,M=M+s|0,m=m+u|0,B=B+c|0,S=S+y|0,k=k+l|0,K=K+w|0,Y=Y+v|0,L=L+p|0,T=T+b|0,z=z+g|0,R=R+A|0,P=P+_|0,r[0]=U>>>0&255,r[1]=U>>>8&255,r[2]=U>>>16&255,r[3]=U>>>24&255,r[4]=d>>>0&255,r[5]=d>>>8&255,r[6]=d>>>16&255,r[7]=d>>>24&255,r[8]=E>>>0&255,r[9]=E>>>8&255,r[10]=E>>>16&255,r[11]=E>>>24&255,r[12]=x>>>0&255,r[13]=x>>>8&255,r[14]=x>>>16&255,r[15]=x>>>24&255,r[16]=M>>>0&255,r[17]=M>>>8&255,r[18]=M>>>16&255,r[19]=M>>>24&255,r[20]=m>>>0&255,r[21]=m>>>8&255,r[22]=m>>>16&255,r[23]=m>>>24&255,r[24]=B>>>0&255,r[25]=B>>>8&255,r[26]=B>>>16&255,r[27]=B>>>24&255,r[28]=S>>>0&255,r[29]=S>>>8&255,r[30]=S>>>16&255,r[31]=S>>>24&255,r[32]=k>>>0&255,r[33]=k>>>8&255,r[34]=k>>>16&255,r[35]=k>>>24&255,r[36]=K>>>0&255,r[37]=K>>>8&255,r[38]=K>>>16&255,r[39]=K>>>24&255,r[40]=Y>>>0&255,r[41]=Y>>>8&255,r[42]=Y>>>16&255,r[43]=Y>>>24&255,r[44]=L>>>0&255,r[45]=L>>>8&255,r[46]=L>>>16&255,r[47]=L>>>24&255,r[48]=T>>>0&255,r[49]=T>>>8&255,r[50]=T>>>16&255,r[51]=T>>>24&255,r[52]=z>>>0&255,r[53]=z>>>8&255,r[54]=z>>>16&255,r[55]=z>>>24&255,r[56]=R>>>0&255,r[57]=R>>>8&255,r[58]=R>>>16&255,r[59]=R>>>24&255,r[60]=P>>>0&255,r[61]=P>>>8&255,r[62]=P>>>16&255,r[63]=P>>>24&255}(r,t,n,e)}function g(r,t,n,e){!function(r,t,n,e){for(var o,i=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,s=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,c=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,y=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,w=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,v=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,b=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,g=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,A=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,U=0;Line truncated
},{"crypto":"sC8V"}],"lHLA":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;!function(e,n){"use strict";"undefined"!=typeof module&&module.exports?module.exports=n():e.nacl?e.nacl.util=n():(e.nacl={},e.nacl.util=n())}(this,function(){"use strict";var n={};function r(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return n.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var n,r=unescape(encodeURIComponent(e)),t=new Uint8Array(r.length);for(n=0;n<r.length;n++)t[n]=r.charCodeAt(n);return t},n.encodeUTF8=function(e){var n,r=[];for(n=0;n<e.length;n++)r.push(String.fromCharCode(e[n]));return decodeURIComponent(escape(r.join("")))},"undefined"==typeof atob?void 0!==e.from?(n.encodeBase64=function(n){return e.from(n).toString("base64")},n.decodeBase64=function(n){return r(n),new Uint8Array(Array.prototype.slice.call(e.from(n,"base64"),0))}):(n.encodeBase64=function(n){return new e(n).toString("base64")},n.decodeBase64=function(n){return r(n),new Uint8Array(Array.prototype.slice.call(new e(n,"base64"),0))}):(n.encodeBase64=function(e){var n,r=[],t=e.length;for(n=0;n<t;n++)r.push(String.fromCharCode(e[n]));return btoa(r.join(""))},n.decodeBase64=function(e){r(e);var n,t=atob(e),o=new Uint8Array(t.length);for(n=0;n<t.length;n++)o[n]=t.charCodeAt(n);return o}),n});
},{"buffer":"sC8V"}],"wMmw":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer,t=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n};Object.defineProperty(exports,"__esModule",{value:!0}),exports.recoverTypedSignature_v4=exports.recoverTypedSignature=exports.signTypedData_v4=exports.signTypedData=exports.recoverTypedMessage=exports.signTypedMessage=exports.getEncryptionPublicKey=exports.decryptSafely=exports.decrypt=exports.encryptSafely=exports.encrypt=exports.recoverTypedSignatureLegacy=exports.signTypedDataLegacy=exports.typedSignatureHash=exports.extractPublicKey=exports.recoverPersonalSignature=exports.personalSign=exports.normalize=exports.concatSig=exports.TypedDataUtils=exports.TYPED_MESSAGE_SCHEMA=void 0;const o=n(require("ethereumjs-util")),s=n(require("ethereumjs-abi")),i=n(require("tweetnacl")),a=n(require("tweetnacl-util")),c={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]};exports.TYPED_MESSAGE_SCHEMA=c;const p={encodeData(t,r,n,i=!0){const a=["bytes32"],c=[this.hashType(t,n)];if(i){const p=(t,r,a)=>{if(void 0!==n[r])return["bytes32",null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":o.keccak(this.encodeData(r,a,n,i))];if(void 0===a)throw new Error(`missing value for field ${t} of type ${r}`);if("bytes"===r)return["bytes32",o.keccak(a)];if("string"===r)return"string"==typeof a&&(a=e.from(a,"utf8")),["bytes32",o.keccak(a)];if(r.lastIndexOf("]")===r.length-1){const e=r.slice(0,r.lastIndexOf("[")),n=a.map(r=>p(t,e,r));return["bytes32",o.keccak(s.rawEncode(n.map(([e])=>e),n.map(([,e])=>e)))]}return[r,a]};for(const e of n[t]){const[t,n]=p(e.name,e.type,r[e.name]);a.push(t),c.push(n)}}else for(const s of n[t]){let t=r[s.name];if(void 0!==t)if("bytes"===s.type)a.push("bytes32"),t=o.keccak(t),c.push(t);else if("string"===s.type)a.push("bytes32"),"string"==typeof t&&(t=e.from(t,"utf8")),t=o.keccak(t),c.push(t);else if(void 0!==n[s.type])a.push("bytes32"),t=o.keccak(this.encodeData(s.type,t,n,i)),c.push(t);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays are unimplemented in encodeData; use V4 extension");a.push(s.type),c.push(t)}}return s.rawEncode(a,c)},encodeType(e,t){let r="",n=this.findTypeDependencies(e,t).filter(t=>t!==e);n=[e].concat(n.sort());for(const o of n){if(!t[o])throw new Error(`No type definition specified: ${o}`);r+=`${o}(${t[o].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`}return r},findTypeDependencies(e,t,r=[]){if([e]=e.match(/^\w*/u),r.includes(e)||void 0===t[e])return r;r.push(e);for(const n of t[e])for(const e of this.findTypeDependencies(n.type,t,r))!r.includes(e)&&r.push(e);return r},hashStruct(e,t,r,n=!0){return o.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return o.keccak(this.encodeType(e,t))},sanitizeData(e){const t={};for(const r in c.properties)e[r]&&(t[r]=e[r]);return"types"in t&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},sign(t,r=!0){const n=this.sanitizeData(t),s=[e.from("1901","hex")];return s.push(this.hashStruct("EIP712Domain",n.domain,n.types,r)),"EIP712Domain"!==n.primaryType&&s.push(this.hashStruct(n.primaryType,n.message,n.types,r)),o.keccak(e.concat(s))}};function u(e,t,r){const n=o.fromSigned(t),s=o.fromSigned(r),i=o.bufferToInt(e),a=O(o.toUnsigned(n).toString("hex"),64),c=O(o.toUnsigned(s).toString("hex"),64),p=o.stripHexPrefix(o.intToHex(i));return o.addHexPrefix(a.concat(c,p)).toString("hex")}function f(e){if(e){if("number"==typeof e){const t=o.toBuffer(e);e=o.bufferToHex(t)}if("string"!=typeof e){let t="eth-sig-util.normalize() requires hex string or integer input.";throw new Error(t+=` received ${typeof e}: ${e}`)}return o.addHexPrefix(e.toLowerCase())}}function y(e,t){const r=o.toBuffer(t.data),n=o.hashPersonalMessage(r),s=o.ecsign(n,e);return o.bufferToHex(u(s.v,s.r,s.s))}function d(e){const t=j(e),r=o.publicToAddress(t);return o.bufferToHex(r)}function l(e){return`0x${j(e).toString("hex")}`}function g(e){const t=B(e);return o.bufferToHex(t)}function h(e,t){const r=B(t.data),n=o.ecsign(r,e);return o.bufferToHex(u(n.v,n.r,n.s))}function x(e){const t=_(B(e.data),e.sig),r=o.publicToAddress(t);return o.bufferToHex(r)}function b(e,t,r){switch(r){case"x25519-xsalsa20-poly1305":{if("string"!=typeof t.data)throw new Error('Cannot detect secret message, message params should be of the form {data: "secret Line truncated
},{"ethereumjs-util":"qR15","ethereumjs-abi":"DsS3","tweetnacl":"lUvA","tweetnacl-util":"lHLA","buffer":"z1tx"}],"Focm":[function(require,module,exports) {
"use strict";var e=c(require("web3")),t=c(require("./rpc")),n=c(require("./error")),s=c(require("./utils")),r=c(require("./id_mapping")),a=require("events"),o=c(require("isutf8")),i=require("eth-sig-util");function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=v();return function(){var n,s=b(e);if(t){var r=b(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){f(d,a.EventEmitter);var c=y(d);function d(e){var t;return l(this,d),(t=c.call(this)).setConfig(e),t.idMapping=new r.default,t.callbacks=new Map,t.wrapResults=new Map,t.isNovaWallet=!0,t.isMetaMask=!0,t.isDebug=!!e.isDebug,t}return h(d,[{key:"setAddress",value:function(e){var t=(e||"").toLowerCase();if(this.address!=t){this.address=t,this.ready=!!e;for(var n=0;n<window.frames.length;n++){var s=window.frames[n];s.ethereum&&s.ethereum.isNovaWallet&&(s.ethereum.address=t,s.ethereum.ready=!!e)}}}},{key:"setChainId",value:function(e){this.chainId=e}},{key:"setRpcUrl",value:function(e){this.rpc=new t.default(e)}},{key:"setConfig",value:function(e){this.setAddress(e.address),this.chainId=e.chainId,this.chainId||(this.chainId=null),e.rpcUrl?this.rpc=new t.default(e.rpcUrl):this.rpc=null,this.isDebug=!!e.isDebug}},{key:"isConnected",value:function(){return null!=this.rpc}},{key:"request",value:function(e){var t=this;return this instanceof d||(t=window.ethereum),t._request(e,!1)}},{key:"enable",value:function(){return console.log('enable() is deprecated, please use window.ethereum.request({method: "eth_requestAccounts"}) instead.'),this.request({method:"eth_requestAccounts",params:[]})}},{key:"send",value:function(e){var t={jsonrpc:"2.0",id:e.id};switch(e.method){case"eth_accounts":t.result=this.eth_accounts();break;case"eth_coinbase":t.result=this.eth_coinbase();break;case"net_version":t.result=this.net_version();break;case"eth_chainId":t.result=this.eth_chainId();break;default:throw new n.default(4200,"Nova does not support calling ".concat(e.method," synchronously without a callback. Please provide a callback parameter to call ").concat(e.method," asynchronously."))}return t}},{key:"sendAsync",value:function(e,t){console.log("sendAsync(data, callback) is deprecated, please use window.ethereum.request(data) instead.");var n=this;this instanceof d||(n=window.ethereum),Array.isArray(e)?Promise.all(e.map(n._request.bind(n))).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)}):n._request(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})}},{key:"_request",value:function(e){var t=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.idMapping.tryIntifyId(e),this.isDebug&&console.log("==> _request payload ".concat(JSON.stringify(e))),new Promise(function(a,o){switch(e.id||(e.id=s.default.genId()),t.callbacks.set(e.id,function(e,t){e?o(e):a(t)}),t.wrapResults.set(e.id,r),e.method){case"eth_accounts":return t.eth_requestAccounts(e);case"eth_coinbase":return t.sendResponse(e.id,t.eth_coinbase());case"net_version":return t.sendResponse(e.id,t.net_version());case"eth_chainId":return t.sendResponse(e.id,t.chainId);case"eth_sign":return t.eth_sign(e);case"personal_sign":return t.personal_sign(e);case"personal_ecRecover":return t.personal_ecRecover(e);case"eth_signTypedData_v3":return t.eth_signTypedData(Line truncated
},{"web3":"kdoM","./rpc":"afne","./error":"MNFS","./utils":"FOZT","./id_mapping":"sD6q","events":"wIHY","isutf8":"ZwKf","eth-sig-util":"wMmw"}]},{},["Focm"], null)
@@ -0,0 +1,262 @@
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"EW12":[function(require,module,exports) {
"use strict";let e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;class t{constructor(t){e=t}get(t){return e("pub(accounts.list)",{anyType:t})}subscribe(t){return e("pub(accounts.subscribe)",null,t).catch(e=>console.error(e)),()=>{}}}exports.default=t;
},{}],"adMO":[function(require,module,exports) {
"use strict";let e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;class t{constructor(t){e=t}get(){return e("pub(metadata.list)")}provide(t){return e("pub(metadata.provide)",t)}}exports.default=t;
},{}],"VCN6":[function(require,module,exports) {
"use strict";function e(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"HsZ4":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=0;function t(t){return"__private_"+e+++"_"+t}
},{}],"JJlS":[function(require,module,exports) {
"use strict";var e=Object.prototype.hasOwnProperty,t="~";function n(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,n,o,s,i){if("function"!=typeof o)throw new TypeError("The listener must be a function");var c=new r(o,s||e,i),f=t?t+n:n;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],c]:e._events[f].push(c):(e._events[f]=c,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function i(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(t=!1)),i.prototype.eventNames=function(){var n,r,o=[];if(0===this._eventsCount)return o;for(r in n=this._events)e.call(n,r)&&o.push(t?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(n)):o},i.prototype.listeners=function(e){var n=t?t+e:e,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,i=new Array(s);o<s;o++)i[o]=r[o].fn;return i},i.prototype.listenerCount=function(e){var n=t?t+e:e,r=this._events[n];return r?r.fn?1:r.length:0},i.prototype.emit=function(e,n,r,o,s,i){var c=t?t+e:e;if(!this._events[c])return!1;var f,u,a=this._events[c],l=arguments.length;if(a.fn){switch(a.once&&this.removeListener(e,a.fn,void 0,!0),l){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,n),!0;case 3:return a.fn.call(a.context,n,r),!0;case 4:return a.fn.call(a.context,n,r,o),!0;case 5:return a.fn.call(a.context,n,r,o,s),!0;case 6:return a.fn.call(a.context,n,r,o,s,i),!0}for(u=1,f=new Array(l-1);u<l;u++)f[u-1]=arguments[u];a.fn.apply(a.context,f)}else{var v,h=a.length;for(u=0;u<h;u++)switch(a[u].once&&this.removeListener(e,a[u].fn,void 0,!0),l){case 1:a[u].fn.call(a[u].context);break;case 2:a[u].fn.call(a[u].context,n);break;case 3:a[u].fn.call(a[u].context,n,r);break;case 4:a[u].fn.call(a[u].context,n,r,o);break;default:if(!f)for(v=1,f=new Array(l-1);v<l;v++)f[v-1]=arguments[v];a[u].fn.apply(a[u].context,f)}}return!0},i.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},i.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},i.prototype.removeListener=function(e,n,r,o){var i=t?t+e:e;if(!this._events[i])return this;if(!n)return s(this,i),this;var c=this._events[i];if(c.fn)c.fn!==n||o&&!c.once||r&&c.context!==r||s(this,i);else{for(var f=0,u=[],a=c.length;f<a;f++)(c[f].fn!==n||o&&!c[f].once||r&&c[f].context!==r)&&u.push(c[f]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},i.prototype.removeAllListeners=function(e){var r;return e?(r=t?t+e:e,this._events[r]&&s(this,r)):(this._events=new n,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=t,i.EventEmitter=i,"undefined"!=typeof module&&(module.exports=i);
},{}],"Z5FL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.packageInfo=void 0;var e={name:"@polkadot/x-global",version:"6.11.1"};exports.packageInfo=e;
},{}],"c2D8":[function(require,module,exports) {
var global = arguments[3];
var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}}),exports.xglobal=void 0;var o=require("./packageInfo.js"),n="undefined"!=typeof globalThis?globalThis:void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;exports.xglobal=n;
},{"./packageInfo.js":"Z5FL"}],"gMZg":[function(require,module,exports) {
"use strict";function e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function r(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextDecoder=void 0;var n=function(){function r(t){e(this,r)}return t(r,[{key:"decode",value:function(e){return e.reduce(function(e,r){return e+String.fromCharCode(r)},"")}}]),r}();exports.TextDecoder=n;
},{}],"OKf9":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.packageInfo=void 0;var e={name:"@polkadot/x-textdecoder",version:"6.11.1"};exports.packageInfo=e;
},{}],"BOVF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextDecoder=void 0,Object.defineProperty(exports,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var e=require("@polkadot/x-global"),r=require("./fallback.js"),o=require("./packageInfo.js"),t=void 0===e.xglobal.TextDecoder?r.TextDecoder:e.xglobal.TextDecoder;exports.TextDecoder=t;
},{"@polkadot/x-global":"c2D8","./fallback.js":"gMZg","./packageInfo.js":"OKf9"}],"Sc5f":[function(require,module,exports) {
"use strict";function e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function r(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextEncoder=void 0;var n=function(){function r(){e(this,r)}return t(r,[{key:"encode",value:function(e){for(var r=new Uint8Array(e.length),t=0;t<e.length;t++)r[t]=e.charCodeAt(t);return r}}]),r}();exports.TextEncoder=n;
},{}],"Bvg4":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.packageInfo=void 0;var e={name:"@polkadot/x-textencoder",version:"6.11.1"};exports.packageInfo=e;
},{}],"wmao":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextEncoder=void 0,Object.defineProperty(exports,"packageInfo",{enumerable:!0,get:function(){return o.packageInfo}});var e=require("@polkadot/x-global"),r=require("./fallback.js"),o=require("./packageInfo.js"),t=void 0===e.xglobal.TextEncoder?r.TextEncoder:e.xglobal.TextEncoder;exports.TextEncoder=t;
},{"@polkadot/x-global":"c2D8","./fallback.js":"Sc5f","./packageInfo.js":"Bvg4"}],"WiBo":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.packageInfo=void 0;var e={name:"@polkadot/util",version:"6.11.1"};exports.packageInfo=e;
},{}],"XXEF":[function(require,module,exports) {
"use strict";function e(e){return"function"==typeof e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isFunction=e;
},{}],"zz6S":[function(require,module,exports) {
"use strict";function e(e){return"string"==typeof e||e instanceof String}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isString=e;
},{}],"QCwi":[function(require,module,exports) {
"use strict";function e(e){return void 0===e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isUndefined=e;
},{}],"ICoQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.assert=n,exports.assertReturn=s;var e=require("./is/function.js"),r=require("./is/undefined.js");function n(r,n){if(!r)throw new Error((0,e.isFunction)(n)?n():n)}function s(e,s){return n(!(0,r.isUndefined)(e),s),e}
},{"./is/function.js":"XXEF","./is/undefined.js":"QCwi"}],"AgAp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.detectPackage=l;var n=require("@polkadot/x-global"),t=require("./is/function.js"),e=require("./is/string.js"),r=require("./assert.js"),o="Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:";function a(t){var e=n.xglobal;return e.__polkadotjs||(e.__polkadotjs={}),e.__polkadotjs[t]||(e.__polkadotjs[t]=[]),e.__polkadotjs[t]}function i(n){return n.reduce(function(n,t){var e=t.version;return Math.max(n,e.length)},0)}function c(n){var t=i(n);return n.map(function(n){var e=n.name,r=n.version;return"\t".concat(r.padEnd(t),"\t").concat(e)}).join("\n")}function s(n){var t=n.map(function(n){return(0,e.isString)(n)?{version:n}:n}),r=i(t);return t.map(function(n){var t=n.path,e=n.version;return"\t".concat(e.padEnd(r),"\t").concat(!t||t.length<5?"<unknown>":t)}).join("\n")}function u(n){if((0,t.isFunction)(n))try{return n()||""}catch(e){return""}return n||""}function l(n,t){var e=n.name,i=n.version,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,r.assert)(e.startsWith("@polkadot"),function(){return"Invalid package descriptor ".concat(e)});var d=a(e);if(d.push({path:u(t),version:i}),1!==d.length)console.warn("".concat(e," has multiple versions, ensure that there is only one installed.\n").concat(o,"\n").concat(s(d)));else{var p=l.filter(function(n){return n&&n.version!==i});p.length&&console.warn("".concat(e," requires direct dependencies exactly matching version ").concat(i,".\n").concat(o,"\n").concat(c(p)))}}
},{"@polkadot/x-global":"c2D8","./is/function.js":"XXEF","./is/string.js":"zz6S","./assert.js":"ICoQ"}],"Hxmh":[function(require,module,exports) {
var __dirname = "/Users/valentun/StudioProjects/pezkuwi-wallet-android/pezkuwi-wallet-dapp-js/node_modules/@polkadot/util";
var e="/Users/valentun/StudioProjects/pezkuwi-wallet-android/pezkuwi-wallet-dapp-js/node_modules/@polkadot/util",a=require("@polkadot/x-textdecoder"),o=require("@polkadot/x-textencoder"),t=require("./packageInfo.js"),r=require("./versionDetect.js");(0,r.detectPackage)(t.packageInfo,void 0!==e&&e,[a.packageInfo,o.packageInfo]);
},{"@polkadot/x-textdecoder":"BOVF","@polkadot/x-textencoder":"wmao","./packageInfo.js":"WiBo","./versionDetect.js":"AgAp"}],"r9p2":[function(require,module,exports) {
"use strict";function e(e,r){for(var t=Math.ceil(e.length/r),a=Array(t),n=0;n<t;n++){var o=n*r;a[n]=e.slice(o,o+r)}return a}Object.defineProperty(exports,"__esModule",{value:!0}),exports.arrayChunk=e;
},{}],"RBCU":[function(require,module,exports) {
"use strict";function e(e){return null===e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isNull=e;
},{}],"q4T2":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.arrayFilter=i;var e=require("../is/null.js"),r=require("../is/undefined.js");function i(i){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return i.filter(function(i){return!(0,r.isUndefined)(i)&&(n||!(0,e.isNull)(i))})}
},{"../is/null.js":"RBCU","../is/undefined.js":"QCwi"}],"Glt8":[function(require,module,exports) {
"use strict";function e(e){for(var r=new Array(e.reduce(function(e,r){return e+r.length},0)),t=-1,n=0;n<e.length;n++)for(var o=e[n],u=0;u<o.length;u++)r[++t]=o[u];return r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.arrayFlatten=e;
},{}],"S0YT":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.arrayRange=r;var e=require("../assert.js");function r(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,e.assert)(r>0,"Expected non-zero, positive number as a range size"),new Array(r).fill(0).map(function(e,r){return r+t})}
},{"../assert.js":"ICoQ"}],"uc3G":[function(require,module,exports) {
"use strict";function r(r){return o(r)||n(r)||e(r)||t()}function t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(r,t){if(r){if("string"==typeof r)return a(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(r,t):void 0}}function n(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function o(r){if(Array.isArray(r))return a(r)}function a(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function i(t){var e=r(t),n=e.length;if(1===n)return e;for(;0!==n;){var o=Math.floor(Math.random()*n);n--;var a=[e[o],e[n]];e[n]=a[0],e[o]=a[1]}return e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.arrayShuffle=i;
},{}],"BQEL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"arrayChunk",{enumerable:!0,get:function(){return e.arrayChunk}}),Object.defineProperty(exports,"arrayFilter",{enumerable:!0,get:function(){return r.arrayFilter}}),Object.defineProperty(exports,"arrayFlatten",{enumerable:!0,get:function(){return t.arrayFlatten}}),Object.defineProperty(exports,"arrayRange",{enumerable:!0,get:function(){return n.arrayRange}}),Object.defineProperty(exports,"arrayShuffle",{enumerable:!0,get:function(){return a.arrayShuffle}});var e=require("./chunk.js"),r=require("./filter.js"),t=require("./flatten.js"),n=require("./range.js"),a=require("./shuffle.js");
},{"./chunk.js":"r9p2","./filter.js":"q4T2","./flatten.js":"Glt8","./range.js":"S0YT","./shuffle.js":"uc3G"}],"rDCW":[function(require,module,exports) {
},{}],"BOxy":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var t=require("buffer").Buffer;!function(t,i){"use strict";function r(t,i){if(!t)throw new Error(i||"Assertion failed")}function n(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,i,r){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==i&&"be"!==i||(r=i,i=10),this._init(t||0,i||10,r||"be"))}var e;"object"==typeof t?t.exports=h:i.BN=h,h.BN=h,h.wordSize=26;try{e="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:require("buffer").Buffer}catch(A){}function o(t,i){var r=t.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(t,i,r){var n=o(t,r);return r-1>=i&&(n|=o(t,r-1)<<4),n}function u(t,i,r,n){for(var h=0,e=Math.min(t.length,r),o=i;o<e;o++){var s=t.charCodeAt(o)-48;h*=n,h+=s>=49?s-49+10:s>=17?s-17+10:s}return h}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,i){return t.cmp(i)>0?t:i},h.min=function(t,i){return t.cmp(i)<0?t:i},h.prototype._init=function(t,i,n){if("number"==typeof t)return this._initNumber(t,i,n);if("object"==typeof t)return this._initArray(t,i,n);"hex"===i&&(i=16),r(i===(0|i)&&i>=2&&i<=36);var h=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(h++,this.negative=1),h<t.length&&(16===i?this._parseHex(t,h,n):(this._parseBase(t,i,h),"le"===n&&this._initArray(this.toArray(),i,n)))},h.prototype._initNumber=function(t,i,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),i,n)},h.prototype._initArray=function(t,i,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var e,o,s=0;if("be"===n)for(h=t.length-1,e=0;h>=0;h-=3)o=t[h]|t[h-1]<<8|t[h-2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if("le"===n)for(h=0,e=0;h<t.length;h+=3)o=t[h]|t[h+1]<<8|t[h+2]<<16,this.words[e]|=o<<s&67108863,this.words[e+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this.strip()},h.prototype._parseHex=function(t,i,r){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var h,e=0,o=0;if("be"===r)for(n=t.length-1;n>=i;n-=2)h=s(t,i,n)<<e,this.words[o]|=67108863&h,e>=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;else for(n=(t.length-i)%2==0?i+1:i;n<t.length;n+=2)h=s(t,i,n)<<e,this.words[o]|=67108863&h,e>=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;this.strip()},h.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=i)n++;n--,h=h/i|0;for(var e=t.length-r,o=e%n,s=Math.min(e,e-o)+r,a=0,l=r;l<s;l+=n)a=u(t,l,l+n,i),this.imuln(h),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==o){var m=1;for(a=u(t,l,t.length,i),l=0;l<o;l++)m*=i;this.imuln(m),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this.strip()},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var a=["","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"],l=[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],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t,i,r){r.negative=i.negative^t.negative;var n=t.length+i.length|0;r.length=n,n=n-1|0;var h=0|t.words[0],e=0|i.words[0],o=h*e,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var a=1;a<n;a++){for(var l=u>>>26,m=67108863&u,f=Math.min(a,i.length-1),d=Math.max(0,a-t.length+1);d<=f;d++){var p=a-d|0;l+=(o=Line truncated
},{"buffer":"rDCW"}],"SLso":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BN",{enumerable:!0,get:function(){return e.default}});var e=r(require("bn.js"));function r(e){return e&&e.__esModule?e:{default:e}}
},{"bn.js":"BOxy"}],"HNIg":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BN_ZERO=exports.BN_TWO=exports.BN_THREE=exports.BN_THOUSAND=exports.BN_TEN=exports.BN_SIX=exports.BN_SEVEN=exports.BN_QUINTILL=exports.BN_ONE=exports.BN_NINE=exports.BN_MILLION=exports.BN_MAX_INTEGER=exports.BN_HUNDRED=exports.BN_FOUR=exports.BN_FIVE=exports.BN_EIGHT=exports.BN_BILLION=void 0;var N=require("./bn.js"),e=new N.BN(0);exports.BN_ZERO=e;var r=new N.BN(1);exports.BN_ONE=r;var B=new N.BN(2);exports.BN_TWO=B;var _=new N.BN(3);exports.BN_THREE=_;var s=new N.BN(4);exports.BN_FOUR=s;var t=new N.BN(5);exports.BN_FIVE=t;var o=new N.BN(6);exports.BN_SIX=o;var p=new N.BN(7);exports.BN_SEVEN=p;var x=new N.BN(8);exports.BN_EIGHT=x;var E=new N.BN(9);exports.BN_NINE=E;var I=new N.BN(10);exports.BN_TEN=I;var v=new N.BN(100);exports.BN_HUNDRED=v;var a=new N.BN(1e3);exports.BN_THOUSAND=a;var n=new N.BN(1e6);exports.BN_MILLION=n;var w=new N.BN(1e9);exports.BN_BILLION=w;var O=w.mul(w);exports.BN_QUINTILL=O;var T=new N.BN(Number.MAX_SAFE_INTEGER);exports.BN_MAX_INTEGER=T;
},{"./bn.js":"SLso"}],"Glli":[function(require,module,exports) {
"use strict";function e(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"Eabu":[function(require,module,exports) {
"use strict";function e(e){return"boolean"==typeof e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBoolean=e;
},{}],"vZtg":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isHex=t;var e=/^0x[a-fA-F0-9]+$/;function t(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!("string"!=typeof t||"0x"!==t&&!e.test(t))&&(-1===r?t.length%2==0||n:t.length===2+Math.ceil(r/4))}
},{}],"fYf8":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hexHasPrefix=r;var e=require("../is/hex.js");function r(r){return!(!r||!(0,e.isHex)(r,-1,!0)||"0x"!==r.substr(0,2))}
},{"../is/hex.js":"vZtg"}],"XjK7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hexStripPrefix=t;var e=require("./hasPrefix.js"),r=/^[a-fA-F0-9]+$/;function t(t){if(!t)return"";if((0,e.hexHasPrefix)(t))return t.substr(2);if(r.test(t))return t;throw new Error("Invalid hex ".concat(t," passed to hexStripPrefix"))}
},{"./hasPrefix.js":"fYf8"}],"DJg4":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hexToBn=c;var e=i(require("@babel/runtime/helpers/esm/defineProperty")),r=require("../bn/bn.js"),t=require("../is/boolean.js"),n=require("./stripPrefix.js");function i(e){return e&&e.__esModule?e:{default:e}}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function s(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,e.default)(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}function u(e){return(e.match(/.{1,2}/g)||[]).reverse().join("")}function c(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isLe:!1,isNegative:!1};if(!e)return new r.BN(0);var o=s({isLe:!1,isNegative:!1},(0,t.isBoolean)(i)?{isLe:i}:i),c=(0,n.hexStripPrefix)(e),f=new r.BN((o.isLe?u(c):c)||"00",16);return o.isNegative?f.fromTwos(4*c.length):f}
},{"@babel/runtime/helpers/esm/defineProperty":"Glli","../bn/bn.js":"SLso","../is/boolean.js":"Eabu","./stripPrefix.js":"XjK7"}],"y3fw":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"bnFromHex",{enumerable:!0,get:function(){return e.hexToBn}});var e=require("../hex/toBn.js");
},{"../hex/toBn.js":"DJg4"}],"AZ7P":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkMaxMin=t;var e=require("../assert.js"),r=require("./bn.js");function t(t,s){return(0,e.assert)(s.length>=1,"Must provide one or more BN arguments"),s.reduce(function(e,s){return r.BN[t](e,s)},s[0])}
},{"../assert.js":"ICoQ","./bn.js":"SLso"}],"FOwf":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bnMax=r;var e=require("./util.js");function r(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return(0,e.checkMaxMin)("max",t)}
},{"./util.js":"AZ7P"}],"x612":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bnMin=r;var e=require("./util.js");function r(){for(var r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return(0,e.checkMaxMin)("min",n)}
},{"./util.js":"AZ7P"}],"vLlJ":[function(require,module,exports) {
"use strict";function e(e){return"bigint"==typeof e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBigInt=e;
},{}],"jl98":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isToBn=t;var e=require("./function.js");function t(t){return!!t&&(0,e.isFunction)(t.toBn)}
},{"./function.js":"XXEF"}],"FiF3":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bnToBn=t;var e=require("../hex/toBn.js"),r=require("../is/bigInt.js"),i=require("../is/hex.js"),n=require("../is/toBn.js"),s=require("./bn.js");function t(t){return t?(0,i.isHex)(t)?(0,e.hexToBn)(t.toString()):(0,r.isBigInt)(t)?new s.BN(t.toString()):s.BN.isBN(t)?t:(0,n.isToBn)(t)?t.toBn():new s.BN(t):new s.BN(0)}
},{"../hex/toBn.js":"DJg4","../is/bigInt.js":"vLlJ","../is/hex.js":"vZtg","../is/toBn.js":"jl98","./bn.js":"SLso"}],"Mnhm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bnSqrt=o;var e=require("../assert.js"),r=require("./bn.js"),t=require("./consts.js"),s=require("./toBn.js"),n=new r.BN(94906265);function o(o){var u=(0,s.bnToBn)(o);if((0,e.assert)(u.gte(t.BN_ZERO),"square root of negative numbers is not supported"),u.lte(t.BN_MAX_INTEGER))return new r.BN(Math.floor(Math.sqrt(u.toNumber())));for(var i=n.clone();;){var a=u.div(i).iadd(i).ishrn(1);if(i.eq(a)||i.eq(a.sub(t.BN_ONE)))return i;i=a}}
},{"../assert.js":"ICoQ","./bn.js":"SLso","./consts.js":"HNIg","./toBn.js":"FiF3"}],"Bfwc":[function(require,module,exports) {
"use strict";function e(e){return"number"==typeof e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isNumber=e;
},{}],"fXDs":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hexToU8a=i;var e=require("../assert.js"),r=require("../is/hex.js"),t=require("./stripPrefix.js");function i(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!i)return new Uint8Array;(0,e.assert)((0,r.isHex)(i),function(){return"Expected hex value to convert, found '".concat(i,"'")});for(var s=(0,t.hexStripPrefix)(i),a=s.length/2,u=Math.ceil(-1===n?a:n/8),o=new Uint8Array(u),x=Math.max(0,u-a),c=0;c<u;c++)o[c+x]=parseInt(s.substr(2*c,2),16);return o}
},{"../assert.js":"ICoQ","../is/hex.js":"vZtg","./stripPrefix.js":"XjK7"}],"yh9p":[function(require,module,exports) {
"use strict";exports.byteLength=u,exports.toByteArray=i,exports.fromByteArray=d;for(var r=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;function h(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){var n,o,a=h(r),u=a[0],i=a[1],f=new e(c(r,u,i)),A=0,d=i>0?u-4:u;for(o=0;o<d;o+=4)n=t[r.charCodeAt(o)]<<18|t[r.charCodeAt(o+1)]<<12|t[r.charCodeAt(o+2)]<<6|t[r.charCodeAt(o+3)],f[A++]=n>>16&255,f[A++]=n>>8&255,f[A++]=255&n;return 2===i&&(n=t[r.charCodeAt(o)]<<2|t[r.charCodeAt(o+1)]>>4,f[A++]=255&n),1===i&&(n=t[r.charCodeAt(o)]<<10|t[r.charCodeAt(o+1)]<<4|t[r.charCodeAt(o+2)]>>2,f[A++]=n>>8&255,f[A++]=255&n),f}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;a<e;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(255&r[a+2]),o.push(f(n));return o.join("")}function d(t){for(var e,n=t.length,o=n%3,a=[],h=0,u=n-o;h<u;h+=16383)a.push(A(t,h,h+16383>u?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;
},{}],"JgNJ":[function(require,module,exports) {
exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<<w)-1,e=f>>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<<e)-1,N=i>>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<<h|w,e+=h;e>0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
},{}],"REa7":[function(require,module,exports) {
var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)};
},{}],"dskh":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=f.prototype:(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,e){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,r,e)}function s(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?g(t,r,e,n):"string"==typeof r?l(t,r,e):y(t,r)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,r,e,n){return h(r),r<=0?u(t,r):void 0!==e?"string"==typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}function c(t,r){if(h(r),t=u(t,r<0?0:0|w(r)),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function l(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(r,e),i=(t=u(t,n)).write(r,e);return i!==n&&(t=t.slice(0,i)),t}function p(t,r){var e=r.length<0?0:0|w(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function g(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),f.TYPED_ARRAY_SUPPORT?(t=r).__proto__=f.prototype:t=p(t,r),t}function y(t,r){if(f.isBuffer(r)){var e=0|w(r.length);return 0===(t=u(t,e)).length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||W(r.length)?u(t,0):p(t,r);if("Buffer"===r.type&&n(r.data))return p(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.isBuffer(r))return 0===r.length?-1:_(t,r,e,n,i);if("number"==typeof r)return r&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):_(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function h(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var a=-1;for(o=e;o<f;o++)if(h(t,o)===h(r,-1===a?0:o-a)){if(-1===a&&(a=o),o-a+1===s)return a*u}else-1!==a&&(o-=o-a),a=-1}else for(e+s>f&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;l<s;l++)if(h(t,o+l)!==h(r,l)){c=!1;break}if(c)return o}return-1}function A(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=iLine truncated
},{"base64-js":"yh9p","ieee754":"JgNJ","isarray":"REa7","buffer":"dskh"}],"af3X":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;function r(r){return e.isBuffer(r)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBuffer=r;
},{"buffer":"dskh"}],"oQUU":[function(require,module,exports) {
"use strict";function e(e,t){return e instanceof t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isInstanceOf=e;
},{}],"FEok":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isU8a=r;var e=require("./instanceOf.js");function r(r){return(0,e.isInstanceOf)(r,Uint8Array)}
},{"./instanceOf.js":"oQUU"}],"BrUJ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringToU8a=t;var e=require("@polkadot/x-textencoder"),r=new e.TextEncoder;function t(e){return e?r.encode(e.toString()):new Uint8Array}
},{"@polkadot/x-textencoder":"wmao"}],"WdNx":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aToU8a=a;var r=require("../assert.js"),e=require("../hex/toU8a.js"),t=require("../is/buffer.js"),o=require("../is/hex.js"),n=require("../is/string.js"),i=require("../is/u8a.js"),s=require("../string/toU8a.js");function u(r){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function a(a){return a?(0,o.isHex)(a)?(0,e.hexToU8a)(a):(0,n.isString)(a)?(0,s.stringToU8a)(a):Array.isArray(a)||(0,t.isBuffer)(a)?new Uint8Array(a):((0,r.assert)((0,i.isU8a)(a),function(){return"Unable to convert ".concat(a.toString()," (typeof ").concat(u(a),") to a Uint8Array")}),a):new Uint8Array}
},{"../assert.js":"ICoQ","../hex/toU8a.js":"fXDs","../is/buffer.js":"af3X","../is/hex.js":"vZtg","../is/string.js":"zz6S","../is/u8a.js":"FEok","../string/toU8a.js":"BrUJ"}],"OzYD":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aCmp=t;var r=require("./toU8a.js");function e(r,e){for(var t=0;;){var u=t>=r.length,n=t>=e.length;if(u&&n)return 0;if(u)return-1;if(n)return 1;if(r[t]!==e[t])return r[t]>e[t]?1:-1;t++}}function t(t,u){return e((0,r.u8aToU8a)(t),(0,r.u8aToU8a)(u))}
},{"./toU8a.js":"WdNx"}],"IlAx":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aConcat=r;var e=require("./toU8a.js");function r(){for(var r=0,t=0,n=new Array(arguments.length),a=0;a<arguments.length;a++)n[a]=(0,e.u8aToU8a)(a<0||arguments.length<=a?void 0:arguments[a]),r+=n[a].length;for(var o=new Uint8Array(r),l=0;l<n.length;l++)o.set(n[l],t),t+=n[l].length;return o}
},{"./toU8a.js":"WdNx"}],"skdh":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aEq=u;var e=require("./cmp.js"),r=require("./toU8a.js");function t(r,t){return r.length===t.length&&0===(0,e.u8aCmp)(r,t)}function u(e,u){return t((0,r.u8aToU8a)(e),(0,r.u8aToU8a)(u))}
},{"./cmp.js":"OzYD","./toU8a.js":"WdNx"}],"lb65":[function(require,module,exports) {
"use strict";function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Math.ceil(t/8);if(-1===t||e.length===n)return e;if(e.length>n)return e.subarray(0,n);var i=new Uint8Array(n);return r?i.set(e,0):i.set(e,n-e.length),i}Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aFixLength=e;
},{}],"KDN7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aSorted=r;var e=require("./cmp.js");function r(r){return r.sort(e.u8aCmp)}
},{"./cmp.js":"OzYD"}],"wFuH":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aToHex=a;var r=require("../array/index.js"),e=(0,r.arrayRange)(256).map(function(r){return r.toString(16).padStart(2,"0")});function t(r){for(var t=new Array(r.length),n=0;n<r.length;n++)t[n]=e[r[n]];return t.join("")}function n(r,e){return"".concat(a(r.subarray(0,e),-1,!1),"…").concat(a(r.subarray(r.length-e),-1,!1))}function a(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?"0x":"";if(null==r||!r.length)return a;var u=Math.ceil(e/8);return a+(u>0&&r.length>u?n(r,Math.ceil(u/2)):t(r))}
},{"../array/index.js":"BQEL"}],"R761":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aToBn=t;var e=require("../hex/toBn.js"),r=require("./toHex.js");function t(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isLe:!0,isNegative:!1};return(0,e.hexToBn)((0,r.u8aToHex)(t),o)}
},{"../hex/toBn.js":"DJg4","./toHex.js":"wFuH"}],"wz28":[function(require,module,exports) {
var Buffer = require("buffer").Buffer;
var e=require("buffer").Buffer;function r(r){return e.from(r||[])}Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aToBuffer=r;
},{"buffer":"dskh"}],"p6zv":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.u8aToString=r;var e=require("@polkadot/x-textdecoder"),t=new e.TextDecoder("utf-8");function r(e){return null!=e&&e.length?t.decode(e):""}
},{"@polkadot/x-textdecoder":"BOVF"}],"WDYB":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"u8aCmp",{enumerable:!0,get:function(){return e.u8aCmp}}),Object.defineProperty(exports,"u8aConcat",{enumerable:!0,get:function(){return r.u8aConcat}}),Object.defineProperty(exports,"u8aEq",{enumerable:!0,get:function(){return t.u8aEq}}),Object.defineProperty(exports,"u8aFixLength",{enumerable:!0,get:function(){return u.u8aFixLength}}),Object.defineProperty(exports,"u8aSorted",{enumerable:!0,get:function(){return n.u8aSorted}}),Object.defineProperty(exports,"u8aToBn",{enumerable:!0,get:function(){return o.u8aToBn}}),Object.defineProperty(exports,"u8aToBuffer",{enumerable:!0,get:function(){return a.u8aToBuffer}}),Object.defineProperty(exports,"u8aToHex",{enumerable:!0,get:function(){return i.u8aToHex}}),Object.defineProperty(exports,"u8aToString",{enumerable:!0,get:function(){return f.u8aToString}}),Object.defineProperty(exports,"u8aToU8a",{enumerable:!0,get:function(){return c.u8aToU8a}});var e=require("./cmp.js"),r=require("./concat.js"),t=require("./eq.js"),u=require("./fixLength.js"),n=require("./sorted.js"),o=require("./toBn.js"),a=require("./toBuffer.js"),i=require("./toHex.js"),f=require("./toString.js"),c=require("./toU8a.js");
},{"./cmp.js":"OzYD","./concat.js":"IlAx","./eq.js":"skdh","./fixLength.js":"lb65","./sorted.js":"KDN7","./toBn.js":"R761","./toBuffer.js":"wz28","./toHex.js":"wFuH","./toString.js":"p6zv","./toU8a.js":"WdNx"}],"Tpcg":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bnToU8a=c;var e=n(require("@babel/runtime/helpers/esm/defineProperty")),t=require("../is/number.js"),r=require("./toBn.js");function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?i(Object(n),!0).forEach(function(r){(0,e.default)(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function s(e,t){return-1===t.bitLength?new Uint8Array:new Uint8Array(e)}function u(e,t,r){var n=r.isLe,i=r.isNegative,o=new Uint8Array(t),s=i?e.toTwos(8*t):e;return o.set(s.toArray(n?"le":"be",t),0),o}function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{bitLength:-1,isLe:!0,isNegative:!1},i=arguments.length>2?arguments[2]:void 0,c=o({bitLength:-1,isLe:!0,isNegative:!1},(0,t.isNumber)(n)?{bitLength:n,isLe:i}:n),b=(0,r.bnToBn)(e),a=-1===c.bitLength?Math.ceil(b.bitLength()/8):Math.ceil((c.bitLength||0)/8);return e?u(b,a,c):s(a,c)}
},{"@babel/runtime/helpers/esm/defineProperty":"Glli","../is/number.js":"Bfwc","./toBn.js":"FiF3"}],"Slop":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bnToHex=c;var e=i(require("@babel/runtime/helpers/esm/defineProperty")),r=require("../is/number.js"),t=require("../u8a/index.js"),n=require("./toU8a.js");function i(e){return e&&e.__esModule?e:{default:e}}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function u(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,e.default)(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}var s="0x00";function c(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{bitLength:-1,isLe:!1,isNegative:!1},o=arguments.length>2?arguments[2]:void 0;if(!e)return s;var c=u({isLe:!1,isNegative:!1},(0,r.isNumber)(i)?{bitLength:i,isLe:o}:i);return(0,t.u8aToHex)((0,n.bnToU8a)(e,c))}
},{"@babel/runtime/helpers/esm/defineProperty":"Glli","../is/number.js":"Bfwc","../u8a/index.js":"WDYB","./toU8a.js":"Tpcg"}],"DIBQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={BN:!0,bnFromHex:!0,bnMax:!0,bnMin:!0,bnSqrt:!0,bnToBn:!0,bnToHex:!0,bnToU8a:!0};Object.defineProperty(exports,"BN",{enumerable:!0,get:function(){return n.BN}}),Object.defineProperty(exports,"bnFromHex",{enumerable:!0,get:function(){return t.bnFromHex}}),Object.defineProperty(exports,"bnMax",{enumerable:!0,get:function(){return o.bnMax}}),Object.defineProperty(exports,"bnMin",{enumerable:!0,get:function(){return b.bnMin}}),Object.defineProperty(exports,"bnSqrt",{enumerable:!0,get:function(){return u.bnSqrt}}),Object.defineProperty(exports,"bnToBn",{enumerable:!0,get:function(){return i.bnToBn}}),Object.defineProperty(exports,"bnToHex",{enumerable:!0,get:function(){return s.bnToHex}}),Object.defineProperty(exports,"bnToU8a",{enumerable:!0,get:function(){return c.bnToU8a}});var r=require("./consts.js");Object.keys(r).forEach(function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(e,n)||n in exports&&exports[n]===r[n]||Object.defineProperty(exports,n,{enumerable:!0,get:function(){return r[n]}}))});var n=require("./bn.js"),t=require("./fromHex.js"),o=require("./max.js"),b=require("./min.js"),u=require("./sqrt.js"),i=require("./toBn.js"),s=require("./toHex.js"),c=require("./toU8a.js");
},{"./consts.js":"HNIg","./bn.js":"SLso","./fromHex.js":"y3fw","./max.js":"FOwf","./min.js":"x612","./sqrt.js":"Mnhm","./toBn.js":"FiF3","./toHex.js":"Slop","./toU8a.js":"Tpcg"}],"c1aJ":[function(require,module,exports) {
"use strict";function e(e){return new Uint8Array(e||[])}Object.defineProperty(exports,"__esModule",{value:!0}),exports.bufferToU8a=e;
},{}],"ekuN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"bufferToU8a",{enumerable:!0,get:function(){return e.bufferToU8a}});var e=require("./toU8a.js");
},{"./toU8a.js":"c1aJ"}],"fzOr":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compactToU8a=u;var e=require("../assert.js"),n=require("../bn/index.js"),r=require("../u8a/index.js"),t=new n.BN(2).pow(new n.BN(6)).subn(1),a=new n.BN(2).pow(new n.BN(14)).subn(1),s=new n.BN(2).pow(new n.BN(30)).subn(1);function u(u){var o=(0,n.bnToBn)(u);if(o.lte(t))return new Uint8Array([o.toNumber()<<2]);if(o.lte(a))return(0,n.bnToU8a)(o.shln(2).iadd(n.BN_ONE),16,!0);if(o.lte(s))return(0,n.bnToU8a)(o.shln(2).iadd(n.BN_TWO),32,!0);for(var i=(0,n.bnToU8a)(o),b=i.length;0===i[b-1];)b--;return(0,e.assert)(b>=4,"Invalid length, previous checks match anything less than 2^30"),(0,r.u8aConcat)([3+(b-4<<2)],i.subarray(0,b))}
},{"../assert.js":"ICoQ","../bn/index.js":"DIBQ","../u8a/index.js":"WDYB"}],"qop7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compactAddLength=r;var e=require("../u8a/index.js"),t=require("./toU8a.js");function r(r){return(0,e.u8aConcat)((0,t.compactToU8a)(r.length),r)}
},{"../u8a/index.js":"WDYB","./toU8a.js":"fzOr"}],"H6CZ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compactFromU8a=n;var r=require("../bn/index.js"),e=require("../u8a/index.js");function n(n){var i=(0,e.u8aToU8a)(n),u=3&i[0];if(0===u)return[1,new r.BN(i[0]).ishrn(2)];if(1===u)return[2,(0,e.u8aToBn)(i.slice(0,2),!0).ishrn(2)];if(2===u)return[4,(0,e.u8aToBn)(i.slice(0,4),!0).ishrn(2)];var a=1+new r.BN(i[0]).ishrn(2).iadd(r.BN_FOUR).toNumber();return[a,(0,e.u8aToBn)(i.subarray(1,a),!0)]}
},{"../bn/index.js":"DIBQ","../u8a/index.js":"WDYB"}],"P2jl":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compactStripLength=i;var r=require("./fromU8a.js");function t(r,t){return u(r)||a(r,t)||n(r,t)||e()}function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(r,t){if(r){if("string"==typeof r)return o(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(r,t):void 0}}function o(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function a(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=e){var n,o,a=[],u=!0,i=!1;try{for(e=e.call(r);!(u=(n=e.next()).done)&&(a.push(n.value),!t||a.length!==t);u=!0);}catch(l){i=!0,o=l}finally{try{u||null==e.return||e.return()}finally{if(i)throw o}}return a}}function u(r){if(Array.isArray(r))return r}function i(e){var n=t((0,r.compactFromU8a)(e),2),o=n[0],a=o+n[1].toNumber();return[a,e.subarray(o,a)]}
},{"./fromU8a.js":"H6CZ"}],"BXdb":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"compactAddLength",{enumerable:!0,get:function(){return e.compactAddLength}}),Object.defineProperty(exports,"compactFromU8a",{enumerable:!0,get:function(){return r.compactFromU8a}}),Object.defineProperty(exports,"compactStripLength",{enumerable:!0,get:function(){return t.compactStripLength}}),Object.defineProperty(exports,"compactToU8a",{enumerable:!0,get:function(){return o.compactToU8a}});var e=require("./addLength.js"),t=require("./stripLength.js"),r=require("./fromU8a.js"),o=require("./toU8a.js");
},{"./addLength.js":"qop7","./stripLength.js":"P2jl","./fromU8a.js":"H6CZ","./toU8a.js":"fzOr"}],"bCFD":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extractTime=d;var e=r(require("@babel/runtime/helpers/esm/defineProperty"));function r(e){return e&&e.__esModule?e:{default:e}}function t(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function n(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach(function(t){(0,e.default)(r,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}var o=3600,s=24*o;function u(e,r){return{days:e.days+r.days,hours:e.hours+r.hours,milliseconds:e.milliseconds+r.milliseconds,minutes:e.minutes+r.minutes,seconds:e.seconds+r.seconds}}var i={days:0,hours:0,milliseconds:0,minutes:0,seconds:0};function c(e,r){var t=Math.floor(r/24);return u(n(n({},i),{},{days:t}),d(e-t*s*1e3))}function a(e,r){var t=r/60;if(t<24){var s=Math.floor(t);return u(n(n({},i),{},{hours:s}),d(e-s*o*1e3))}return c(e,t)}function f(e,r){var t=r/60;if(t<60){var o=Math.floor(t);return u(n(n({},i),{},{minutes:o}),d(e-60*o*1e3))}return a(e,t)}function l(e){var r=e/1e3;if(r<60){var t=Math.floor(r);return u(n(n({},i),{},{seconds:t}),d(e-1e3*t))}return f(e,r)}function d(e){return e?e<1e3?n(n({},i),{},{milliseconds:e}):l(e):i}
},{"@babel/runtime/helpers/esm/defineProperty":"Glli"}],"KAR8":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatDecimal=e;var t=new RegExp("(\\d+?)(?=(\\d{3})+(?!\\d)|$)","g");function e(e){var r=e[0].startsWith("-"),a=r?e.substr(1).match(t):e.match(t);return a?"".concat(r?"-":"").concat(a.join(",")):e}
},{}],"BzLf":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SI_MID=exports.SI=void 0,exports.calcSi=o,exports.findSi=r;var e=8;exports.SI_MID=e;var t=[{power:-24,text:"yocto",value:"y"},{power:-21,text:"zepto",value:"z"},{power:-18,text:"atto",value:"a"},{power:-15,text:"femto",value:"f"},{power:-12,text:"pico",value:"p"},{power:-9,text:"nano",value:"n"},{power:-6,text:"micro",value:"µ"},{power:-3,text:"milli",value:"m"},{power:0,text:"Unit",value:"-"},{power:3,text:"Kilo",value:"k"},{power:6,text:"Mill",value:"M"},{power:9,text:"Bill",value:"B"},{power:12,text:"Tril",value:"T"},{power:15,text:"Peta",value:"P"},{power:18,text:"Exa",value:"E"},{power:21,text:"Zeta",value:"Z"},{power:24,text:"Yotta",value:"Y"}];function r(r){for(var o=0;o<t.length;o++)if(t[o].value===r)return t[o];return t[e]}function o(o,l,a){if(a)return r(a);var p=e-1+Math.ceil((o.length-l)/3);return t[p]||t[p<0?0:t.length-1]}exports.SI=t;
},{}],"VArF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatBalance=void 0;var t=require("../bn/toBn.js"),e=require("../is/boolean.js"),i=require("../is/undefined.js"),n=require("./formatDecimal.js"),r=require("./si.js"),o=0,a=r.SI[r.SI_MID].text,c=o,s=a;function u(i){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,s=(0,t.bnToBn)(i).toString();if(0===s.length||"0"===s)return"0";var u=s[0].startsWith("-");u&&(s=s.substr(1));var l=(0,e.isBoolean)(o)?{withSi:o}:o,d=l.decimals,v=void 0===d?a:d,f=l.forceUnit,S=void 0===f?void 0:f,h=l.withSi,I=void 0===h||h,g=l.withSiFull,m=void 0!==g&&g,b=l.withUnit,x=void 0===b||b,j=(0,r.calcSi)(s,v,S),p=s.length-(v+j.power),w=s.substr(0,p),B="".concat("".concat(new Array((p<0?0-p:0)+1).join("0")).concat(s).substr(p<0?0:p),"0000").substr(0,4),D=I||m?"-"===j.value?x?" ".concat((0,e.isBoolean)(x)?j.text:x):"":" ".concat(m?j.text:j.value).concat(x?"".concat(m?" ":"").concat((0,e.isBoolean)(x)?r.SI[r.SI_MID].text:x):""):"";return"".concat(u?"-":"").concat((0,n.formatDecimal)(w||"0"),".").concat(B).concat(D)}var l=u;exports.formatBalance=l,l.calcSi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,r.calcSi)(t,e)},l.findSi=r.findSi,l.getDefaults=function(){return{decimals:c,unit:s}},l.getOptions=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return r.SI.filter(function(e){var i=e.power;return!(i<0)||t+i>=0})},l.setDefaults=function(t){var e=t.decimals,n=t.unit;c=(0,i.isUndefined)(e)?c:Array.isArray(e)?e[0]:e,s=(0,i.isUndefined)(n)?s:Array.isArray(n)?n[0]:n,r.SI[r.SI_MID].text=s};
},{"../bn/toBn.js":"FiF3","../is/boolean.js":"Eabu","../is/undefined.js":"QCwi","./formatDecimal.js":"KAR8","./si.js":"BzLf"}],"Eb3q":[function(require,module,exports) {
"use strict";function t(t){return t.toString().padStart(2,"0")}function e(e){var n=e.getFullYear().toString(),o=t(e.getMonth()+1),c=t(e.getDate()),r=t(e.getHours()),a=t(e.getMinutes()),u=t(e.getSeconds());return"".concat(n,"-").concat(o,"-").concat(c," ").concat(r,":").concat(a,":").concat(u)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatDate=e;
},{}],"Yq1t":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatElapsed=n;var e=require("../bn/toBn.js");function t(e){return e<15?"".concat(e.toFixed(1),"s"):e<60?"".concat(0|e,"s"):e<3600?"".concat(e/60|0,"m"):"".concat(e/3600|0,"h")}function n(n,o){var a=n&&n.getTime()||0,r=o instanceof Date?o.getTime():(0,e.bnToBn)(o).toNumber();return a&&r?t(Math.max(Math.abs(a-r),0)/1e3):"0.0s"}
},{"../bn/toBn.js":"FiF3"}],"KO6u":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatNumber=t;var e=require("../bn/toBn.js"),r=require("./formatDecimal.js");function t(t){return(0,r.formatDecimal)((0,e.bnToBn)(t).toString())}
},{"../bn/toBn.js":"FiF3","./formatDecimal.js":"KAR8"}],"tBzw":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"calcSi",{enumerable:!0,get:function(){return o.calcSi}}),Object.defineProperty(exports,"findSi",{enumerable:!0,get:function(){return o.findSi}}),Object.defineProperty(exports,"formatBalance",{enumerable:!0,get:function(){return e.formatBalance}}),Object.defineProperty(exports,"formatDate",{enumerable:!0,get:function(){return r.formatDate}}),Object.defineProperty(exports,"formatDecimal",{enumerable:!0,get:function(){return t.formatDecimal}}),Object.defineProperty(exports,"formatElapsed",{enumerable:!0,get:function(){return a.formatElapsed}}),Object.defineProperty(exports,"formatNumber",{enumerable:!0,get:function(){return n.formatNumber}});var e=require("./formatBalance.js"),r=require("./formatDate.js"),t=require("./formatDecimal.js"),a=require("./formatElapsed.js"),n=require("./formatNumber.js"),o=require("./si.js");
},{"./formatBalance.js":"VArF","./formatDate.js":"Eb3q","./formatDecimal.js":"KAR8","./formatElapsed.js":"Yq1t","./formatNumber.js":"KO6u","./si.js":"BzLf"}],"hBNt":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hexAddPrefix=r;var e=require("./hasPrefix.js");function r(r){return r&&(0,e.hexHasPrefix)(r)?r:"0x".concat(r&&r.length%2==1?"0":"").concat(r||"")}
},{"./hasPrefix.js":"fYf8"}],"fwEw":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hexFixLength=t;var e=require("./addPrefix.js"),r=require("./stripPrefix.js");function t(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,x=arguments.length>2&&void 0!==arguments[2]&&arguments[2],h=Math.ceil(i/4),n=h+2;return(0,e.hexAddPrefix)(-1===i||t.length===n||!x&&t.length<n?(0,r.hexStripPrefix)(t):t.length>n?(0,r.hexStripPrefix)(t).slice(-1*h):"".concat("0".repeat(h)).concat((0,r.hexStripPrefix)(t)).slice(-1*h))}
},{"./addPrefix.js":"hBNt","./stripPrefix.js":"XjK7"}],"KVKy":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hexToNumber=r;var e=require("./toBn.js");function r(r){return r?(0,e.hexToBn)(r).toNumber():NaN}
},{"./toBn.js":"DJg4"}],"gOOL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hexToString=t;var e=require("../u8a/toString.js"),r=require("./toU8a.js");function t(t){return(0,e.u8aToString)((0,r.hexToU8a)(t))}
},{"../u8a/toString.js":"p6zv","./toU8a.js":"fXDs"}],"csge":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"hexAddPrefix",{enumerable:!0,get:function(){return e.hexAddPrefix}}),Object.defineProperty(exports,"hexFixLength",{enumerable:!0,get:function(){return r.hexFixLength}}),Object.defineProperty(exports,"hexHasPrefix",{enumerable:!0,get:function(){return t.hexHasPrefix}}),Object.defineProperty(exports,"hexStripPrefix",{enumerable:!0,get:function(){return n.hexStripPrefix}}),Object.defineProperty(exports,"hexToBn",{enumerable:!0,get:function(){return i.hexToBn}}),Object.defineProperty(exports,"hexToNumber",{enumerable:!0,get:function(){return o.hexToNumber}}),Object.defineProperty(exports,"hexToString",{enumerable:!0,get:function(){return u.hexToString}}),Object.defineProperty(exports,"hexToU8a",{enumerable:!0,get:function(){return x.hexToU8a}});var e=require("./addPrefix.js"),r=require("./fixLength.js"),t=require("./hasPrefix.js"),n=require("./stripPrefix.js"),i=require("./toBn.js"),o=require("./toNumber.js"),u=require("./toString.js"),x=require("./toU8a.js");
},{"./addPrefix.js":"hBNt","./fixLength.js":"fwEw","./hasPrefix.js":"fYf8","./stripPrefix.js":"XjK7","./toBn.js":"DJg4","./toNumber.js":"KVKy","./toString.js":"gOOL","./toU8a.js":"fXDs"}],"PgmC":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isAscii=s;var e=require("../u8a/toU8a.js"),r=require("./string.js"),i=[9,10,13];function s(s){return s?!(0,e.u8aToU8a)(s).some(function(e){return e>=127||e<32&&!i.includes(e)}):(0,r.isString)(s)}
},{"../u8a/toU8a.js":"WdNx","./string.js":"zz6S"}],"HDq7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isBn=r;var e=require("../bn/bn.js");function r(r){return e.BN.isBN(r)}
},{"../bn/bn.js":"SLso"}],"qfag":[function(require,module,exports) {
"use strict";function e(e,t){return!!t&&(e===t||e.isPrototypeOf(t))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isChildClass=e;
},{}],"MZrA":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isError=e;var r=require("./instanceOf.js");function e(e){return(0,r.isInstanceOf)(e,Error)}
},{"./instanceOf.js":"oQUU"}],"IxS2":[function(require,module,exports) {
"use strict";var c="[a-fA-F\\d:]",n=function(n){return n&&n.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(c,")|(?<=").concat(c,")(?=\\s|$))"):""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",a="[a-fA-F\\d]{1,4}",o="\n(?:\n(?:".concat(a,":){7}(?:").concat(a,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(a,":){6}(?:").concat(t,"|:").concat(a,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(a,":){5}(?::").concat(t,"|(?::").concat(a,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(a,":){4}(?:(?::").concat(a,"){0,1}:").concat(t,"|(?::").concat(a,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(a,":){3}(?:(?::").concat(a,"){0,2}:").concat(t,"|(?::").concat(a,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(a,":){2}(?:(?::").concat(a,"){0,3}:").concat(t,"|(?::").concat(a,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(a,":){1}(?:(?::").concat(a,"){0,4}:").concat(t,"|(?::").concat(a,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(a,"){0,5}:").concat(t,"|(?::").concat(a,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),e=new RegExp("(?:^".concat(t,"$)|(?:^").concat(o,"$)")),d=new RegExp("^".concat(t,"$")),r=new RegExp("^".concat(o,"$")),u=function(c){return c&&c.exact?e:new RegExp("(?:".concat(n(c)).concat(t).concat(n(c),")|(?:").concat(n(c)).concat(o).concat(n(c),")"),"g")};u.v4=function(c){return c&&c.exact?d:new RegExp("".concat(n(c)).concat(t).concat(n(c)),"g")},u.v6=function(c){return c&&c.exact?r:new RegExp("".concat(n(c)).concat(o).concat(n(c)),"g")},module.exports=u;
},{}],"UnXv":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isIp=r;var e=t(require("ip-regex"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t,r){return"v4"===r?e.default.v4({exact:!0}).test(t):"v6"===r?e.default.v6({exact:!0}).test(t):(0,e.default)({exact:!0}).test(t)}
},{"ip-regex":"IxS2"}],"AbVj":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringify=r;var t=require("./is/bigInt.js");function r(r,e){return JSON.stringify(r,function(r,e){return(0,t.isBigInt)(e)?e.toString():e},e)}
},{"./is/bigInt.js":"vLlJ"}],"pOta":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isJsonObject=r;var t=require("../stringify.js");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(r){var e="string"!=typeof r?(0,t.stringify)(r):r;try{var n=JSON.parse(e);return"object"===o(n)&&null!==n}catch(y){return!1}}
},{"../stringify.js":"AbVj"}],"fT4F":[function(require,module,exports) {
"use strict";function t(o){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(o)}function o(o){return"object"===t(o)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isObject=o;
},{}],"X33k":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isObservable=t;var e=require("./function.js"),r=require("./object.js");function t(t){return(0,r.isObject)(t)&&(0,e.isFunction)(t.next)}
},{"./function.js":"XXEF","./object.js":"fT4F"}],"eI5u":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isTestChain=t;var e=/(Development|Local Testnet)$/;function t(t){return!!t&&!!e.test(t.toString())}
},{}],"wkhl":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isUtf8=i;var r=require("../u8a/toU8a.js"),e=require("./string.js");function i(i){if(!i)return(0,e.isString)(i);for(var t=(0,r.u8aToU8a)(i),f=t.length,u=0;u<f;)if(t[u]<=127)u+=1;else if(t[u]>=194&&t[u]<=223){if(!(u+1<f))return!1;if(t[u+1]<128||t[u+1]>191)return!1;u+=2}else if(224===t[u]){if(!(u+2<f))return!1;if(t[u+1]<160||t[u+1]>191)return!1;if(t[u+2]<128||t[u+2]>191)return!1;u+=3}else if(t[u]>=225&&t[u]<=236){if(!(u+2<f))return!1;if(t[u+1]<128||t[u+1]>191)return!1;if(t[u+2]<128||t[u+2]>191)return!1;u+=3}else if(237===t[u]){if(!(u+2<f))return!1;if(t[u+1]<128||t[u+1]>159)return!1;if(t[u+2]<128||t[u+2]>191)return!1;u+=3}else if(t[u]>=238&&t[u]<=239){if(!(u+2<f))return!1;if(t[u+1]<128||t[u+1]>191)return!1;if(t[u+2]<128||t[u+2]>191)return!1;u+=3}else if(240===t[u]){if(!(u+3<f))return!1;if(t[u+1]<144||t[u+1]>191)return!1;if(t[u+2]<128||t[u+2]>191)return!1;if(t[u+3]<128||t[u+3]>191)return!1;u+=4}else if(t[u]>=241&&t[u]<=243){if(!(u+3<f))return!1;if(t[u+1]<128||t[u+1]>191)return!1;if(t[u+2]<128||t[u+2]>191)return!1;if(t[u+3]<128||t[u+3]>191)return!1;u+=4}else{if(244!==t[u])return!1;if(!(u+3<f))return!1;if(t[u+1]<128||t[u+1]>143)return!1;if(t[u+2]<128||t[u+2]>191)return!1;if(t[u+3]<128||t[u+3]>191)return!1;u+=4}return!0}
},{"../u8a/toU8a.js":"WdNx","./string.js":"zz6S"}],"wIe6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isWasm=s;var e=require("../u8a/eq.js"),r=new Uint8Array([0,97,115,109]);function s(s){return!!s&&(0,e.u8aEq)(s.subarray(0,4),r)}
},{"../u8a/eq.js":"skdh"}],"PVwn":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isAscii",{enumerable:!0,get:function(){return e.isAscii}}),Object.defineProperty(exports,"isBigInt",{enumerable:!0,get:function(){return r.isBigInt}}),Object.defineProperty(exports,"isBn",{enumerable:!0,get:function(){return t.isBn}}),Object.defineProperty(exports,"isBoolean",{enumerable:!0,get:function(){return i.isBoolean}}),Object.defineProperty(exports,"isBuffer",{enumerable:!0,get:function(){return n.isBuffer}}),Object.defineProperty(exports,"isChildClass",{enumerable:!0,get:function(){return s.isChildClass}}),Object.defineProperty(exports,"isError",{enumerable:!0,get:function(){return u.isError}}),Object.defineProperty(exports,"isFunction",{enumerable:!0,get:function(){return o.isFunction}}),Object.defineProperty(exports,"isHex",{enumerable:!0,get:function(){return b.isHex}}),Object.defineProperty(exports,"isInstanceOf",{enumerable:!0,get:function(){return c.isInstanceOf}}),Object.defineProperty(exports,"isIp",{enumerable:!0,get:function(){return f.isIp}}),Object.defineProperty(exports,"isJsonObject",{enumerable:!0,get:function(){return j.isJsonObject}}),Object.defineProperty(exports,"isNull",{enumerable:!0,get:function(){return p.isNull}}),Object.defineProperty(exports,"isNumber",{enumerable:!0,get:function(){return a.isNumber}}),Object.defineProperty(exports,"isObject",{enumerable:!0,get:function(){return l.isObject}}),Object.defineProperty(exports,"isObservable",{enumerable:!0,get:function(){return d.isObservable}}),Object.defineProperty(exports,"isString",{enumerable:!0,get:function(){return O.isString}}),Object.defineProperty(exports,"isTestChain",{enumerable:!0,get:function(){return g.isTestChain}}),Object.defineProperty(exports,"isToBn",{enumerable:!0,get:function(){return m.isToBn}}),Object.defineProperty(exports,"isU8a",{enumerable:!0,get:function(){return x.isU8a}}),Object.defineProperty(exports,"isUndefined",{enumerable:!0,get:function(){return y.isUndefined}}),Object.defineProperty(exports,"isUtf8",{enumerable:!0,get:function(){return P.isUtf8}}),Object.defineProperty(exports,"isWasm",{enumerable:!0,get:function(){return q.isWasm}});var e=require("./ascii.js"),r=require("./bigInt.js"),t=require("./bn.js"),n=require("./buffer.js"),i=require("./boolean.js"),s=require("./childClass.js"),u=require("./error.js"),o=require("./function.js"),b=require("./hex.js"),c=require("./instanceOf.js"),f=require("./ip.js"),j=require("./jsonObject.js"),p=require("./null.js"),a=require("./number.js"),l=require("./object.js"),d=require("./observable.js"),O=require("./string.js"),g=require("./testChain.js"),m=require("./toBn.js"),x=require("./u8a.js"),y=require("./undefined.js"),P=require("./utf8.js"),q=require("./wasm.js");
},{"./ascii.js":"PgmC","./bigInt.js":"vLlJ","./bn.js":"HDq7","./buffer.js":"af3X","./boolean.js":"Eabu","./childClass.js":"qfag","./error.js":"MZrA","./function.js":"XXEF","./hex.js":"vZtg","./instanceOf.js":"oQUU","./ip.js":"UnXv","./jsonObject.js":"pOta","./null.js":"RBCU","./number.js":"Bfwc","./object.js":"fT4F","./observable.js":"X33k","./string.js":"zz6S","./testChain.js":"eI5u","./toBn.js":"jl98","./u8a.js":"FEok","./undefined.js":"QCwi","./utf8.js":"wkhl","./wasm.js":"wIe6"}],"pBGv":[function(require,module,exports) {
var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
},{}],"v4Ne":[function(require,module,exports) {
var process = require("process");
var r=require("process");Object.defineProperty(exports,"__esModule",{value:!0}),exports.logger=x,exports.loggerFormat=w;var t=require("./format/formatDate.js"),e=require("./is/bn.js"),n=require("./is/buffer.js"),o=require("./is/function.js"),a=require("./is/object.js"),i=require("./is/u8a.js"),u=require("./u8a/toHex.js"),c=require("./u8a/toU8a.js");function l(r,t){return y(r)||s(r,t)||d(r,t)||f()}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=e){var n,o,a=[],i=!0,u=!1;try{for(e=e.call(r);!(i=(n=e.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==e.return||e.return()}finally{if(u)throw o}}return a}}function y(r){if(Array.isArray(r))return r}function p(r){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function b(r){return v(r)||g(r)||d(r)||m()}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(r,t){if(r){if("string"==typeof r)return h(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?h(r,t):void 0}}function g(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}function v(r){if(Array.isArray(r))return h(r)}function h(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}var j={debug:"log",error:"error",log:"log",warn:"warn"};function A(r){return r&&(0,a.isObject)(r)&&r.constructor===Object?Object.keys(r).reduce(function(t,e){return t[e]=w(r[e]),t},{}):r}function w(r){return Array.isArray(r)?r.map(w):(0,e.isBn)(r)?r.toString():(0,i.isU8a)(r)||(0,n.isBuffer)(r)?(0,u.u8aToHex)((0,c.u8aToU8a)(r)):A(r)}function S(r,e,n){var a,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(1===n.length&&(0,o.isFunction)(n[0])){var u=n[0]();return S(r,e,Array.isArray(u)?u:[u],i)}(a=console)[j[r]].apply(a,[(0,t.formatDate)(new Date),e].concat(b(n.map(w).map(function(r){if(i<=0)return r;var t="".concat(r);return t.length<i?r:"".concat(t.substr(0,i)," ...")}))))}function q(){}function U(t){var e=("object"===(void 0===r?"undefined":p(r))?r:{}).env||{},n=parseInt(e.DEBUG_MAX||"-1",10),o=!1;return(e.DEBUG||"").toLowerCase().split(",").forEach(function(r){r&&("*"===r||t===r||r.endsWith("*")&&t.startsWith(r.slice(0,-1)))&&(o=!0),r&&r.startsWith("-")&&(t===r.slice(1)||r.endsWith("*")&&t.startsWith(r.slice(1,-1)))&&(o=!1)}),[o,isNaN(n)?-1:n]}function x(r){var t="".concat(r.toUpperCase(),":").padStart(16),e=l(U(r.toLowerCase()),2),n=e[0],o=e[1];return{debug:n?function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];return S("debug",t,e,o)}:q,error:function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];return S("error",t,e)},log:function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];return S("log",t,e)},noop:q,warn:function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];return S("warn",t,e)}}}
},{"./format/formatDate.js":"Eb3q","./is/bn.js":"HDq7","./is/buffer.js":"af3X","./is/function.js":"XXEF","./is/object.js":"fT4F","./is/u8a.js":"FEok","./u8a/toHex.js":"wFuH","./u8a/toU8a.js":"WdNx","process":"pBGv"}],"hmMX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.memoize=i;var e=require("./is/undefined.js"),n=require("./stringify.js");function r(){return"none"}function i(i){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).getInstanceId,o=void 0===t?r:t,s={},u=function(){for(var r=arguments.length,t=new Array(r),u=0;u<r;u++)t[u]=arguments[u];var d=(0,n.stringify)(t),f=o();return s[f]||(s[f]={}),(0,e.isUndefined)(s[f][d])&&(s[f][d]=i.apply(void 0,t)),s[f][d]};return u.unmemoize=function(){for(var r=arguments.length,i=new Array(r),t=0;t<r;t++)i[t]=arguments[t];var u=(0,n.stringify)(i),d=o();s[d]&&!(0,e.isUndefined)(s[d][u])&&delete s[d][u]},u}
},{"./is/undefined.js":"QCwi","./stringify.js":"AbVj"}],"uwVQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.numberToHex=n;var e=require("../hex/fixLength.js"),i=require("../is/null.js"),r=require("../is/undefined.js");function n(n){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,r.isUndefined)(n)||(0,i.isNull)(n)||isNaN(n)?"0x":(0,e.hexFixLength)(n.toString(16),s,!0)}
},{"../hex/fixLength.js":"fwEw","../is/null.js":"RBCU","../is/undefined.js":"QCwi"}],"Zyxl":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.numberToU8a=s;var e=require("../hex/toU8a.js"),r=require("../is/null.js"),i=require("../is/undefined.js"),n=require("./toHex.js");function s(s){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return(0,i.isUndefined)(s)||(0,r.isNull)(s)||isNaN(s)?new Uint8Array:(0,e.hexToU8a)((0,n.numberToHex)(s,u))}
},{"../hex/toU8a.js":"fXDs","../is/null.js":"RBCU","../is/undefined.js":"QCwi","./toHex.js":"uwVQ"}],"mPG8":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"numberToHex",{enumerable:!0,get:function(){return e.numberToHex}}),Object.defineProperty(exports,"numberToU8a",{enumerable:!0,get:function(){return r.numberToU8a}});var e=require("./toHex.js"),r=require("./toU8a.js");
},{"./toHex.js":"uwVQ","./toU8a.js":"Zyxl"}],"DzOR":[function(require,module,exports) {
"use strict";function e(e,r){for(var n=arguments.length,t=new Array(n>2?n-2:0),o=2;o<n;o++)t[o-2]=arguments[o];return new Promise(function(n,o){r.apply(e,t.concat(function(e,r){e?o(e):n(r)}))})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.promisify=e;
},{}],"DdPz":[function(require,module,exports) {
"use strict";var e=function(e){for(var r=!1,t=!1,a=!1,s=0;s<e.length;s++){var o=e[s];r&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(e=e.slice(0,s)+"-"+e.slice(s),r=!1,a=t,t=!0,s++):t&&a&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(e=e.slice(0,s-1)+"-"+e.slice(s-1),a=t,t=!1,r=!0):(r=o.toLowerCase()===o&&o.toUpperCase()!==o,a=t,t=o.toUpperCase()===o&&o.toLowerCase()!==o)}return e},r=function(r,t){if("string"!=typeof r&&!Array.isArray(r))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);var a;return 0===(r=Array.isArray(r)?r.map(function(e){return e.trim()}).filter(function(e){return e.length}).join("-"):r.trim()).length?"":1===r.length?t.pascalCase?r.toUpperCase():r.toLowerCase():(r!==r.toLowerCase()&&(r=e(r)),r=r.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(e,r){return r.toUpperCase()}).replace(/\d+(\w|$)/g,function(e){return e.toUpperCase()}),a=r,t.pascalCase?a.charAt(0).toUpperCase()+a.slice(1):a)};module.exports=r,module.exports.default=r;
},{}],"VIH3":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringCamelCase=r;var e=t(require("camelcase"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t){return(0,e.default)(t.toString())}
},{"camelcase":"DdPz"}],"JDz0":[function(require,module,exports) {
"use strict";function e(e){return e?e.charAt(0).toLowerCase()+e.slice(1):""}Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringLowerFirst=e;
},{}],"Ovop":[function(require,module,exports) {
"use strict";function t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return t.length<=2+2*e?t.toString():"".concat(t.substr(0,e),"…").concat(t.slice(-e))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringShorten=t;
},{}],"zhUw":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringToHex=t;var e=require("../u8a/toHex.js"),r=require("./toU8a.js");function t(t){return(0,e.u8aToHex)((0,r.stringToU8a)(t))}
},{"../u8a/toHex.js":"wFuH","./toU8a.js":"BrUJ"}],"u8uV":[function(require,module,exports) {
"use strict";function e(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringUpperFirst=e;
},{}],"N5b4":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"stringCamelCase",{enumerable:!0,get:function(){return e.stringCamelCase}}),Object.defineProperty(exports,"stringLowerFirst",{enumerable:!0,get:function(){return r.stringLowerFirst}}),Object.defineProperty(exports,"stringShorten",{enumerable:!0,get:function(){return t.stringShorten}}),Object.defineProperty(exports,"stringToHex",{enumerable:!0,get:function(){return n.stringToHex}}),Object.defineProperty(exports,"stringToU8a",{enumerable:!0,get:function(){return i.stringToU8a}}),Object.defineProperty(exports,"stringUpperFirst",{enumerable:!0,get:function(){return s.stringUpperFirst}});var e=require("./camelCase.js"),r=require("./lowerFirst.js"),t=require("./shorten.js"),n=require("./toHex.js"),i=require("./toU8a.js"),s=require("./upperFirst.js");
},{"./camelCase.js":"VIH3","./lowerFirst.js":"JDz0","./shorten.js":"Ovop","./toHex.js":"zhUw","./toU8a.js":"BrUJ","./upperFirst.js":"u8uV"}],"mm3z":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={packageInfo:!0};Object.defineProperty(exports,"packageInfo",{enumerable:!0,get:function(){return r.packageInfo}}),require("./detectPackage.js");var r=require("./packageInfo.js"),t=require("./array/index.js");Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===t[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return t[r]}}))});var o=require("./assert.js");Object.keys(o).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===o[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return o[r]}}))});var n=require("./bn/index.js");Object.keys(n).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===n[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return n[r]}}))});var c=require("./buffer/index.js");Object.keys(c).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===c[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return c[r]}}))});var s=require("./compact/index.js");Object.keys(s).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===s[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return s[r]}}))});var u=require("./extractTime.js");Object.keys(u).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===u[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return u[r]}}))});var p=require("./format/index.js");Object.keys(p).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===p[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return p[r]}}))});var a=require("./hex/index.js");Object.keys(a).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===a[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return a[r]}}))});var i=require("./is/index.js");Object.keys(i).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===i[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return i[r]}}))});var f=require("./logger.js");Object.keys(f).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===f[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return f[r]}}))});var l=require("./memoize.js");Object.keys(l).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===l[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return l[r]}}))});var b=require("./number/index.js");Object.keys(b).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===b[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return b[r]}}))});var y=require("./promisify.js");Object.keys(y).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===y[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return y[r]}}))});var j=require("./string/index.js");Object.keys(j).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===j[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return j[r]}}))});var O=require("./stringify.js");Object.keys(O).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===O[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return O[r]}}))});var d=require("./u8a/index.js");Object.keys(d).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===d[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return d[r]}}))});var x=require("./versionDetect.js");Object.keys(x).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===x[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return x[r]}}))});
},{"./detectPackage.js":"Hxmh","./packageInfo.js":"WiBo","./array/index.js":"BQEL","./assert.js":"ICoQ","./bn/index.js":"DIBQ","./buffer/index.js":"ekuN","./compact/index.js":"BXdb","./extractTime.js":"bCFD","./format/index.js":"tBzw","./hex/index.js":"csge","./is/index.js":"PVwn","./logger.js":"v4Ne","./memoize.js":"hmMX","./number/index.js":"mPG8","./promisify.js":"DzOR","./string/index.js":"N5b4","./stringify.js":"AbVj","./u8a/index.js":"WDYB","./versionDetect.js":"AgAp"}],"Jwvg":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("@babel/runtime/helpers/esm/classPrivateFieldLooseBase")),t=i(require("@babel/runtime/helpers/esm/classPrivateFieldLooseKey")),s=i(require("eventemitter3")),r=require("@polkadot/util");function i(e){return e&&e.__esModule?e:{default:e}}const n=(0,r.logger)("PostMessageProvider");let a;var o=(0,t.default)("eventemitter"),d=(0,t.default)("isConnected"),u=(0,t.default)("subscriptions");class l{constructor(t){Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,d,{writable:!0,value:!1}),Object.defineProperty(this,u,{writable:!0,value:{}}),(0,e.default)(this,o)[o]=new s.default,a=t}clone(){return new l(a)}async connect(){console.error("PostMessageProvider.disconnect() is not implemented.")}async disconnect(){console.error("PostMessageProvider.disconnect() is not implemented.")}get hasSubscriptions(){return!0}get isConnected(){return(0,e.default)(this,d)[d]}listProviders(){return a("pub(rpc.listProviders)",void 0)}on(t,s){return(0,e.default)(this,o)[o].on(t,s),()=>{(0,e.default)(this,o)[o].removeListener(t,s)}}async send(t,s,r){if(r){const{callback:i,type:n}=r,o=await a("pub(rpc.subscribe)",{method:t,params:s,type:n},e=>{r.callback(null,e)});return(0,e.default)(this,u)[u][`${n}::${o}`]=i,o}return a("pub(rpc.send)",{method:t,params:s})}async startProvider(t){(0,e.default)(this,d)[d]=!1,(0,e.default)(this,o)[o].emit("disconnected");const s=await a("pub(rpc.startProvider)",t);return a("pub(rpc.subscribeConnected)",null,t=>((0,e.default)(this,d)[d]=t,t?(0,e.default)(this,o)[o].emit("connected"):(0,e.default)(this,o)[o].emit("disconnected"),!0)),s}subscribe(e,t,s,r){return this.send(t,s,{callback:r,type:e})}async unsubscribe(t,s,i){const a=`${t}::${i}`;return(0,r.isUndefined)((0,e.default)(this,u)[u][a])?(n.debug(()=>`Unable to find active subscription=${a}`),!1):(delete(0,e.default)(this,u)[u][a],this.send(s,[i]))}}exports.default=l;
},{"@babel/runtime/helpers/esm/classPrivateFieldLooseBase":"VCN6","@babel/runtime/helpers/esm/classPrivateFieldLooseKey":"HsZ4","eventemitter3":"JJlS","@polkadot/util":"mm3z"}],"j58w":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("@babel/runtime/helpers/esm/defineProperty"));function t(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach(function(r){(0,e.default)(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}let o,c=0;class s{constructor(e){o=e}async signPayload(e){const t=++c;return n(n({},await o("pub(extrinsic.sign)",e)),{},{id:t})}async signRaw(e){const t=++c;return n(n({},await o("pub(bytes.sign)",e)),{},{id:t})}}exports.default=s;
},{"@babel/runtime/helpers/esm/defineProperty":"Glli"}],"vUJC":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("./Accounts.js")),t=i(require("./Metadata.js")),s=i(require("./PostMessageProvider.js")),r=i(require("./Signer.js"));function i(e){return e&&e.__esModule?e:{default:e}}class a{constructor(i){this.accounts=void 0,this.metadata=void 0,this.provider=void 0,this.signer=void 0,this.accounts=new e.default(i),this.metadata=new t.default(i),this.provider=new s.default(i),this.signer=new r.default(i)}}exports.default=a;
},{"./Accounts.js":"EW12","./Metadata.js":"adMO","./PostMessageProvider.js":"Jwvg","./Signer.js":"j58w"}],"q70l":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.enable=o,exports.handleResponse=u,exports.redirectIfPhishing=i,exports.sendMessage=t;var e=r(require("./Injected.js"));function r(e){return e&&e.__esModule?e:{default:e}}const s={};let n=0;function t(e,r,t){return new Promise((o,i)=>{const u=`${Date.now()}.${++n}`;s[u]={reject:i,resolve:o,subscriber:t};const c={id:u,message:e,origin:"page",request:r||null};window.postMessage(c,"*")})}async function o(r){return await t("pub(authorize.tab)",{origin:r}),new e.default(t)}async function i(){return await t("pub(phishing.redirectIfDenied)")}function u(e){const r=s[e.id];r?(r.subscriber||delete s[e.id],e.subscription?r.subscriber(e.subscription):e.error?r.reject(new Error(e.error)):r.resolve(e.response)):console.error(`Unknown response: ${JSON.stringify(e)}`)}
},{"./Injected.js":"vUJC"}],"ZSaT":[function(require,module,exports) {
"use strict";function e(e,{name:n,version:t}){const i=window;i.injectedWeb3=i.injectedWeb3||{},i.injectedWeb3[n]={enable:n=>e(n),version:t}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.injectExtension=e;
},{}],"GzV5":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){return function(){var e=this;this.addHandler=function(t,s,r){e._messageHandlers.set(t,{resolve:s,reject:r})},this.getHandler=function(t){return e._messageHandlers.get(t)},this._messageHandlers=new Map}}();exports.default=e;
},{}],"EHrm":[function(require,module,exports) {
module.exports={name:"@pezkuwi/extension",description:"A Novawallet signer for the @polkadot/api",version:"0.1.0",author:"Ruslan Rezin <ruslan@pezkuwi.io>",license:"Apache-2",scripts:{clean:"rm -rf dist .cache",build:"rm -rf dist && parcel build src/index.ts --no-source-maps -o nova_min.js -d dist",lint:"prettier --write 'src/**/*.ts'",test:"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register -r jsdom-global/register 'src/test/**/*.ts' --timeout 20000","jest-init":"jest --init"},dependencies:{"@babel/plugin-transform-modules-commonjs":"^7.16.5","@babel/preset-typescript":"^7.16.5","@babel/runtime":"^7.11.2","@polkadot/extension-base":"^0.38.4","@polkadot/extension-dapp":"^0.38.4","@polkadot/extension-inject":"^0.38.4","@types/chai":"^4.3.0","@types/mocha":"^9.0.0","babel-jest":"^27.4.5",chai:"^4.3.4","jest-cli":"^27.4.5","jsdom-global":"^3.0.2",mocha:"^9.1.3",parcel:"^2.14.4","ts-jest":"^27.1.2","ts-node":"^10.4.0"},devDependencies:{"@babel/core":"^7.8.3","@babel/preset-env":"^7.8.3","babel-loader":"^8.0.6",jest:"^27.4.5","parcel-bundler":"^1.12.4","parcel-plugin-static-files-copy":"^2.6.0",prettier:"^1.19.1",typescript:"^4.5.4"},staticFiles:{staticPath:["extension"]},jest:{transform:{"^.+\\.(t|j)s?$":"ts-jest"}}};
},{}],"QCba":[function(require,module,exports) {
"use strict";var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},t=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))(function(o,r){function i(e){try{u(s.next(e))}catch(t){r(t)}}function a(e){try{u(s.throw(e))}catch(t){r(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,a)}u((s=s.apply(e,t||[])).next())})},n=this&&this.__generator||function(e,t){var n,s,o,r,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,s&&(o=2&r[0]?s.return:r[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,r[1])).done)return o;switch(s=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,s=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){i=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(6===r[0]&&i.label<o[1]){i.label=o[1],o=r;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(r);break}o[2]&&i.ops.pop(),i.trys.pop();continue}r=t.call(e,i)}catch(a){r=[6,a],s=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var o=require("@polkadot/extension-base/page"),r=require("@polkadot/extension-inject"),i=s(require("./handlers")),a=s(require("../package.json"));function u(){(0,r.injectExtension)(o.enable,{name:"polkadot-js",version:a.default.version}),window.injectedWeb3["pezkuwi-wallet"]=window.injectedWeb3["polkadot-js"],window.injectedWeb3["pezkuwi-js"]=window.injectedWeb3["polkadot-js"]}var c=function(){function s(){var e=this;this.handlers=new i.default,window.send=this.sendRequest,window.addEventListener("message",function(t){var n=t.data;t.source===window&&("content"===n.origin?n.id?(0,o.handleResponse)(n):console.error("Missing id for response."):"page"===n.origin&&e.handleMessage(n))}),u(),window.walletExtension={onAppResponse:this.onAppResponse.bind(this),onAppSubscription:this.onAppSubscription.bind(this),isPezkuwiWallet:!0}}return s.prototype.postResponse=function(e){this._postMessage("content",e)},s.prototype.sendRequest=function(e){this._postMessage("dapp-request",e)},s.prototype._postMessage=function(t,n){window.postMessage(e(e({},n),{origin:t}),"*")},s.prototype.sendAppRequest=function(e){var s=e.id,o=e.message,r=e.request;return t(this,void 0,void 0,function(){var e=this;return n(this,function(t){return[2,new Promise(function(t,n){e.handlers.addHandler(s,t,n),console.log("Saved handler for id: {id}"),e.sendRequest({id:s,msgType:o,request:r,url:window.location.href})})]})})},s.prototype.onAppResponse=function(e,t,n){var s=this.handlers.getHandler(e);console.log("Got handler for id: {id}"),s&&(n?s.reject(n):s.resolve(t))},s.prototype.onAppSubscription=function(e,t){this.postResponse({id:e,subscription:t})},s.prototype.handleMessage=function(e){return t(this,void 0,void 0,function(){var t,s;return n(this,function(n){switch(n.label){case 0:switch(e.message){case"pub(authorize.tab)":case"pub(metadata.list)":case"pub(metadata.provide)":case"pub(accounts.list)":case"pub(accounts.subscribe)":case"pub(bytes.sign)":case"pub(extrinsic.sign)":return[3,1]}return[3,4];case 1:return n.trys.push([1,3,,4]),[4,this.sendAppRequest(e)];case 2:return t=n.sent(),[2,this.postResponse({id:e.id,response:t})];case 3:return s=n.sent(),[2,this.postResponse({id:e.id,error:s.message})];case 4:throw new Error("Unable to handle message: ".concat(e.message))}})})},s}(),p=new c;exports.default=p;
},{"@polkadot/extension-base/page":"q70l","@polkadot/extension-inject":"ZSaT","./handlers":"GzV5","../package.json":"EHrm"}]},{},["QCba"], null)