forked from cerc-io/cosmos-explorer
8 lines
216 KiB
JavaScript
8 lines
216 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pc"],{"03cd":function(t,e,a){var n=a("0766");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("50cf9668",n,!0,{sourceMap:!1,shadowMode:!1})},"0555":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".governance-title-panel[data-v-19eea813]{padding:20px 20px 0 20px}.governance-id-title[data-v-19eea813]{color:rgba(0,0,0,.85);font-weight:700;font-size:24px;line-height:32px}.governance-tab[data-v-19eea813]{width:100px;text-align:center;-ms-flex-item-align:end;align-self:flex-end}.governance-tab-active[data-v-19eea813]{border-bottom:2px solid #232323}.governance-id-sub[data-v-19eea813]{padding-left:40px;text-align:right}.governance-id-subtitle[data-v-19eea813]{margin-bottom:4px;color:rgba(0,0,0,.45);font-size:14px}.governance-id-subvalue[data-v-19eea813]{color:rgba(0,0,0,.85);font-size:24px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.governance-id-name[data-v-19eea813]{color:rgba(0,0,0,.85);font-weight:400;font-size:14px;width:100px;display:inline-block;line-height:1.5715;white-space:nowrap;margin-right:10px}.address-area .governance-id-name[data-v-19eea813]{display:block}.governance-id-val[data-v-19eea813]{color:rgba(0,0,0,.65);font-size:14px;line-height:1.5715}",""]),t.exports=e},"0766":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".area-item[data-v-4a6de995]{text-align:center;padding:10px 0;background:#fff;border:1px solid #eee}.area-item[data-v-4a6de995]:hover{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.1);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.1);border:1px solid #343a40}.area-item-text[data-v-4a6de995]{margin:0;font-weight:500;color:#343a40;font-size:18px}.area-item-title[data-v-4a6de995]{font-size:14px;color:#98a6ad}.area-title[data-v-4a6de995]{font-size:14px;color:#333;margin-bottom:10px}",""]),t.exports=e},"0776":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".base-layout-nav[data-v-713f230a]{background:#fff;-webkit-box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05);box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05);-webkit-transition:background .3s,width .2s;transition:background .3s,width .2s}",""]),t.exports=e},"07b6":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.filterShow.node?a("ParamItem",{attrs:{title:t.$t("message.parameter_VersionParameters"),content:t.nodeInfo}}):t._e(),t.filterShow.node?a("ParamItem",{attrs:{title:t.$t("message.parameter_NodeParameters"),content:t.nodeParameters}}):t._e(),t.filterShow.governance?a("div",[a("p",{staticClass:"area-title"},[t._v(t._s(t.$t("message.parameter_GovernanceParameters")))]),a("el-row",{attrs:{gutter:20}},[a("el-col",{staticClass:"parameter-item",attrs:{xs:24,sm:12,md:12,lg:8,xl:8}},[a("div",{staticClass:"parameter-item-content"},[a("div",{staticClass:"parameter-item-title"},[t._v(t._s(t.$t("message.parameter_Deposit")))]),a("div",{staticClass:"parameter-item-value"},[t._v(t._s(t.min_deposit))]),a("div",{staticClass:"parameter-item-subtitle"},[t._v(" "+t._s(t.$t("message.parameter_MaxDepositPeriod"))+" "),a("span",{staticClass:"parameter-item-subvalue"},[t._v(" "+t._s(t.max_deposit_period)+" ")])])])]),a("el-col",{staticClass:"parameter-item",attrs:{xs:24,sm:12,md:12,lg:8,xl:8}},[a("div",{staticClass:"parameter-item-content"},[a("div",{staticClass:"parameter-item-title"},[t._v(t._s(t.$t("message.parameter_Voting")))]),a("div",{staticClass:"parameter-item-value"},[t._v(t._s(t.voting_period))]),a("div",{staticClass:"parameter-item-subtitle",staticStyle:{"text-align":"center"}},[t._v(t._s(t.$t("message.parameter_VotingPeriod")))])])]),a("el-col",{staticClass:"parameter-item",attrs:{xs:24,sm:12,md:12,lg:8,xl:8}},[a("div",{staticClass:"parameter-item-content"},[a("div",{staticClass:"parameter-item-title",staticStyle:{"margin-bottom":"0px"}},[t._v(t._s(t.$t("message.parameter_Tallying")))]),a("div",{staticClass:"parameter-item-subvalue2"},[t._v(" "+t._s(t.$t("message.parameter_Quorum"))+" "),a("span",[t._v(t._s(t.quorum))])]),a("div",{staticClass:"parameter-item-subvalue2"},[t._v(" "+t._s(t.$t("message.parameter_Threshold"))+" "),a("span",[t._v(t._s(t.threshold))])]),a("div",{staticClass:"parameter-item-subvalue2"},[t._v(" "+t._s(t.$t("message.parameter_Veto"))+" "),a("span",[t._v(t._s(t.veto))])])])])],1)],1):t._e(),t.filterShow.staking?a("ParamItem",{attrs:{title:t.$t("message.parameter_StakingParameters"),content:t.stakingParameters}}):t._e(),a("ParamItem",{attrs:{title:t.$t("message.parameter_SlashingParameters"),nums:4,content:t.slashingParameters}}),t.filterShow.distribution?a("ParamItem",{attrs:{title:t.$t("message.parameter_DistributionParameters"),content:t.distributionParameters}}):t._e(),t.filterShow.mint?a("ParamItem",{attrs:{title:t.$t("message.parameter_MintParameters"),nums:3,content:t.mintParameters}}):t._e(),t.filterShow.cdp?a("ParamItem",{attrs:{title:t.$t("message.parameter_cdp"),content:t.cdp}}):t._e(),t.filterShow.cdp?a("ParamItem",{attrs:{title:"Auction",content:t.auction}}):t._e(),t.filterShow.cdp?a("ParamItem",{attrs:{title:"Bep3",content:t.bep3}}):t._e(),t.filterShow.cdp?a("ParamItem",{attrs:{title:"Incentive",content:t.incentive}}):t._e()],1)},r=[],i=(a("b680"),a("47f5")),s=a("5530"),o=a("1da1"),l=(a("96cf"),{created:function(){this.initData()},computed:{current:function(){return window.chain},earningRate:function(){if(!this.inflation_val||!this.bondedRate.val)return{percent:"--",value:null};var t=this.inflation_val/this.bondedRate.val,e=(100*t).toFixed(2)+"%";return{percent:e,value:t}},inflation_val:function(){return this.data.inflation_val},bondedRate:function(){if(!this.tokenTotal||!this.tokens.bonded_tokens_val)return{percent:"--"};var t=this.tokenTotal,e=this.tokens.bonded_tokens_val;return{percent:(e/t*100).toFixed(2)+"%",val:e/t}}},data:function(){return{tokenTotal:"",tokenTotal_str:"",tokens:{bonded_tokens:"--",bonded_tokens_val:null},blockHeight:"--",data:{}}},methods:{getSupplyTotal:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSupplyTotal");case 2:a=e.sent,t.tokenTotal=a.amount,t.tokenTotal_str=a.amount_str;case 5:case"end":return e.stop()}}),e)})))()},getStakingPool:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.tokens=a;case 4:case"end":return e.stop()}}),e)})))()},initValidator:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.initBlockHeight();case 1:case"end":return e.stop()}}),e)})))()},initBlockHeight:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getRpcBlockchain",{minHeight:0,maxHeight:0});case 2:a=e.sent,t.blockHeight=a.last_height;case 4:case"end":return e.stop()}}),e)})))()},initData:function(){var t=this;this.initValidator(),this.getSupplyTotal(),this.getStakingPool();var e=["getNodeInfoRes","getStakingParameters","getGovParametersDeposit","getGovParametersVoting","getGovParametersTallying","getSlashingParameters","getDistributionParameters","getMintingParameters","getMintingInflation","getMintingAnnualProvisionsn"];"e-money"===this.current.chainId&&(e=["getStakingParameters","getSlashingParameters","getDistributionParameters"]),"kava-2"===this.current.chainId&&(e.push("getKavaCdpParameters"),e.push("getKavaPricefeed"),e.push("getKavaIncentive"),e.push("getKavaBep3"),e.push("getKavaAuction"));for(var a=0,n=e;a<n.length;a++){var r=n[a];this.$api.fetch(r).then((function(e){var a=JSON.parse(JSON.stringify(t.data));t.data=Object(s["a"])(Object(s["a"])({},a),e)}))}}}}),c={mixins:[l],components:{ParamItem:i["a"]},computed:{incentive:function(){var t=this.data.rewards,e=t&&t[0]&&t[0].available_rewards&&t[0].available_rewards.amount&&(t[0].available_rewards.amount/6).toFixed(2);return[{title:"rewards denom",value:t&&t[0]&&t[0].denom||"--"},{title:"rewards available",value:e||"--"},{title:"rewards duration",value:t&&t[0]&&t[0].duration||"--"},{title:"rewards time_lock",value:t&&t[0]&&t[0].time_lock||"--"},{title:"rewards claim_duration",value:t&&t[0]&&t[0].claim_duration||"--"}]},bep3:function(){var t=this.data,e=t.bnb_deputy_address,a=t.bnb_deputy_fixed_fee,n=t.min_amount,r=t.max_amount,i=t.min_block_lock,s=t.max_block_lock;return[{title:"bnb_deputy_address",value:e||"--"},{title:"bnb_deputy_fixed_fee",value:a&&parseFloat((a/8).toFixed(2))||"--"},{title:"min_amount",value:n||"--"},{title:"max_amount",value:r&&parseFloat((r/8).toFixed(2))||"--"},{title:"min_block_lock",value:i||"--"},{title:"max_block_lock",value:s||"--"}]},auction:function(){var t=this.data,e=t.max_auction_duration,a=t.bid_duration,n=t.increment_surplus,r=t.increment_debt,i=t.increment_collateral;return[{title:"max_auction_duration",value:e||"--"},{title:"bid_duration",value:a||"--"},{title:"increment_surplus",value:n||"--"},{title:"increment_debt",value:r||"--"},{title:"increment_collateral",value:i||"--"}]},cdp:function(){var t=this.data,e=t.circuit_breaker,a=t.debt_auction_lot,n=t.debt_auction_threshold,r=t.global_debt_limit,i=t.savings_distribution_frequency,s=t.surplus_auction_lot,o=t.surplus_auction_threshold,l=(t.collateral_params,t.debt_param);return[{title:"circuit_breaker",value:e?"Active":"Inactive"},{title:"debt_auction_lot",value:a||"--"},{title:"debt_auction_threshold",value:n||"--"},{title:"global_debt_limit",value:r&&parseFloat((r.amount/6).toFixed(2))||"--"},{title:"savings_distribution_frequency",value:i||"--"},{title:"surplus_auction_lot",value:s||"--"},{title:"surplus_auction_threshold",value:o||"--"},{title:"debt_param conversion_factor",value:l&&l.conversion_factor||"--"},{title:"debt_param debt_floor",value:l&&parseFloat((l.debt_floor/6).toFixed(2))||"--"},{title:"debt_param reference_asset",value:l&&l.reference_asset||"--"},{title:"debt_param savings_rate",value:l&&l.savings_rate||"--"},{title:"debt_param denom",value:l&&l.denom||"--"}]},nodeInfo:function(){var t=this.data,e=t.node_info,a=t.application_version;return[{title:this.$t("message.validator_network"),value:e&&e.network||"--"},{title:this.$t("message.validator_version"),value:e&&e.version||"--"},{title:this.$t("message.validator_go"),value:a&&a.go||"--"},{title:this.$t("message.validator_application_version"),value:a&&a.version||"--"}]},nodeParameters:function(){var t=this.data,e=(t.unbonding_time,t.max_validators);t.max_entries,t.bond_denom;return[{title:this.$t("message.validator_BlockHeight"),value:this.blockHeight||"--"},{title:this.$t("message.validator_Validators"),value:e||"--"},{title:this.$t("message.validator_BondedTokens"),value:this.tokens.bonded_tokens+"/"+this.tokenTotal_str||"--"},{title:this.$t("message.validator_EarningRate"),value:this.earningRate.percent||"--"}]},filterShow:function(){var t={governance:!0,staking:!0,slashing:!0,distribution:!0,mint:!0,node:!0,cdp:!1},e=window.chain.chainId;switch(e){case"e-money":case"irishub":t.governance=!1,t.mint=!1,t.node=!1;break;case"kava-2":t.cdp=!0;break}return t},stakingParameters:function(){var t=this.data,e=t.unbonding_time,a=t.max_validators,n=t.max_entries,r=t.bond_denom;return[{title:this.$t("message.parameter_UnbondingTime"),value:e||"--"},{title:this.$t("message.parameter_MaxValidators"),value:a||"--"},{title:this.$t("message.parameter_MaxEntries"),value:n||"--"},{title:this.$t("message.parameter_BondDenom"),value:r||"--"}]},slashingParameters:function(){var t=this.data,e=t.max_evidence_age,a=t.signed_blocks_window,n=t.min_signed_per_window,r=t.downtime_jail_duration,i=t.slash_fraction_double_sign,s=t.slash_fraction_downtime;return[{title:this.$t("message.parameter_MaxEvidenceAge"),value:e||"--"},{title:this.$t("message.parameter_SignedBlocksWindow"),value:a||"--"},{title:this.$t("message.parameter_MinSignedPerWindow"),value:n||"--"},{title:this.$t("message.parameter_DowntimeJailDuration"),value:r||"--"},{title:this.$t("message.parameter_DoubleSignSlash"),value:i||"--"},{title:this.$t("message.parameter_DowntimeSlash"),value:s||"--"}]},distributionParameters:function(){var t=this.data,e=t.community_tax,a=t.base_proposer_reward,n=t.bonus_proposer_reward,r=t.withdraw_addr_enabled;return[{title:this.$t("message.parameter_CommunityTax"),value:e||"--"},{title:this.$t("message.parameter_BaseProposerReward"),value:a||"--"},{title:this.$t("message.parameter_BonusProposerReward"),value:n||"--"},{title:this.$t("message.parameter_WithdrawAddrEnabled"),value:r||"--"}]},mintParameters:function(){var t=this.data,e=t.goal_bonded,a=t.inflation,n=t.inflation_max,r=t.inflation_min,i=t.inflation_rate_change,s=t.blocks_per_year,o=t.annual_provisions,l=t.mint_denom;return[{title:this.$t("message.parameter_GoalBonded"),value:e||"--"},{title:this.$t("message.parameter_Inflation"),value:a||"--"},{title:this.$t("message.parameter_InflationMax"),value:n||"--"},{title:this.$t("message.parameter_InflationMin"),value:r||"--"},{title:this.$t("message.parameter_InflationChange"),value:i||"--"},{title:this.$t("message.parameter_BlocksPerYear"),value:s||"--"},{title:this.$t("message.parameter_AnnualProvisions"),value:o||"--"},{title:this.$t("message.parameter_MintDenom"),value:l||"--"}]},min_deposit:function(){return this.data.min_deposit||"--"},max_deposit_period:function(){return this.data.max_deposit_period||"--"},voting_period:function(){return this.data.voting_period||"--"},quorum:function(){return this.data.quorum||"--"},threshold:function(){return this.data.threshold||"--"},veto:function(){return this.data.veto||"--"}}},d=c,u=(a("5e73"),a("2877")),p=Object(u["a"])(d,n,r,!1,null,"5ecdb0d7",null);e["default"]=p.exports},"09f51":function(t,e,a){"use strict";a("eb97")},"0dd4":function(t,e,a){"use strict";a("de9f")},"0dee":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{background:"#fff"}},[a("div",{staticClass:"wallet-add-wrap tc"},[a("div",[a("div",{staticClass:"wallet-add-title"},[t._v(t._s(t.$t("message.walletadd_Chooseaway")))]),a("div",{staticStyle:{display:"flex","align-items":"center","max-width":"480px",margin:"20px auto"}},[t.canLedger?a("div",{staticClass:"wallet-add-item",class:{"wallet-add-item-active":"ledger"===t.signType},on:{click:function(){t.signType="ledger"}}},[t._m(0),a("div",[t._v(t._s(t.$t("message.walletadd_UseLedger")))])]):t._e(),t.canLedger?a("div",{staticStyle:{width:"20px"}}):t._e(),a("div",{staticClass:"wallet-add-item",class:{"wallet-add-item-active":"address"===t.signType},on:{click:function(){t.signType="address"}}},[t._m(1),a("div",[t._v(t._s(t.$t("message.walletadd_Inputaddress")))])])])]),"ledger"===t.signType?[a("div",{staticClass:"ledger-wrapper"},[a("div",{staticStyle:{"text-align":"left",background:"#f5f5f5",padding:"20px",color:"rgba(0,0,0,.65)"}},[a("div",[a("p",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[t._v(" "+t._s(t.$t("message.walletadd_Pleasefollowthesteps"))+": ")]),a("p",[t._v("1. "+t._s(t.$t("message.walletadd_1")))]),a("p",[t._v("2. "+t._s(t.$t("message.walletadd_2")))]),a("div",[t._v("3. "+t._s(t.$t("message.walletadd_3")))]),a("div",{staticStyle:{"margin-left":"14px","margin-top":"10px","margin-bottom":"10px"}},[a("div",[a("span",{staticStyle:{display:"inline-block",width:"60px"}},[t._v(t._s(t.$t("message.walletadd_Account")))]),a("el-input-number",{attrs:{size:"mini",min:0},model:{value:t.account.account,callback:function(e){t.$set(t.account,"account",e)},expression:"account.account"}})],1),a("div",{staticStyle:{"margin-top":"5px"}},[a("span",{staticStyle:{display:"inline-block",width:"60px"}},[t._v(t._s(t.$t("message.walletadd_Index")))]),a("el-input-number",{attrs:{size:"mini",min:0},model:{value:t.account.index,callback:function(e){t.$set(t.account,"index",e)},expression:"account.index"}})],1)]),a("p",[t._v("4. "+t._s(t.$t("message.walletadd_Continue"))+"...")])])]),t._m(2)]),t.isWindows&&t.isChrome&&!t.hasHIDEnabled?a("div",{staticStyle:{"max-width":"480px",width:"100%",margin:"0 auto","margin-bottom":"20px"}},[a("el-alert",{attrs:{type:"warning",closable:!1,"show-icon":""}},[a("div",{staticStyle:{"text-align":"left"},attrs:{slot:"title"},slot:"title"},[a("div",[t._v(t._s(t.$t("message.walletadd_features")))])]),a("div",{staticStyle:{"text-align":"left","font-size":"14px"}},[a("div",[t._v(" "+t._s(t.$t("message.walletadd_dueto"))+" ")]),a("div",[t._v(" "+t._s(t.$t("message.walletadd_pleasecopy"))+": ")]),a("p",{staticStyle:{color:"#6eb5fe"}},[t._v(" chrome://flags/#enable-experimental-web-platform-feature ")])])])],1):t._e(),a("div",{staticStyle:{"padding-bottom":"80px"}},[t.isChrome?a("el-button",{staticClass:"box-base",staticStyle:{"margin-bottom":"20px","max-width":"480px",width:"100%"},attrs:{type:"primary",block:"",round:"",size:"large",loading:t.loading},on:{click:t.getAddress}},[t._v(t._s(t.$t("message.walletadd_getmyledger")))]):t._e()],1)]:t._e(),"address"===t.signType?[a("div",{staticStyle:{"padding-bottom":"80px"}},[a("div",{staticClass:"wallet-add-title",staticStyle:{"margin-bottom":"20px"}},[t._v(" "+t._s(t.$t("message.walletadd_Enteraddresstoview"))+" ")]),a("el-input",{staticClass:"box-base",staticStyle:{"max-width":"480px"},attrs:{size:"large",placeholder:t.$t("message.walletadd_pleaseinputaddress")},model:{value:t.address,callback:function(e){t.address=e},expression:"address"}},[a("div",{attrs:{slot:"suffix"},slot:"suffix"},[a("el-button",{staticStyle:{padding:"8px 10px","font-size":"20px"},attrs:{type:"text",icon:"el-icon-right"},on:{click:t.goAddress}})],1)]),a("div",{staticStyle:{"margin-top":"20px"}},t._l(t.addressList,(function(e,n){return a("div",{key:n},[a("el-button",{staticStyle:{"margin-top":"10px",cursor:"pointer"},attrs:{size:"mini"},on:{click:function(e){return t.linkAddress(n)}}},[t._v(t._s(n)+" "),a("i",{staticClass:"el-icon-right"})])],1)})),0)],1)]:t._e()],2)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("i",{staticClass:"el-icon-key"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("i",{staticClass:"el-icon-postcard"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{margin:"20px","text-align":"center","align-self":"center"}},[a("img",{staticStyle:{width:"80px"},attrs:{src:"/static/wallet/usb.png",alt:""}})])}],i=a("1da1"),s=(a("96cf"),a("99af"),a("d786")),o=a("a002"),l=a.n(o),c=a("5a0c"),d=a.n(c),u={data:function(){return{address:"",addressList:{}}},created:function(){this.initAddressList()},methods:{initAddressList:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.a.getItem("addressList");case 2:t.addressList=e.sent;case 3:case"end":return e.stop()}}),e)})))()},goAddress:function(){this.address?this.goWallet():this.$message.error({message:"Please enter an address or use ledger."})},goWallet:function(){window.sessionStorage.setItem("address",this.address),this.saveLocalAddress(),this.$router.push("/wallet?address="+this.address)},saveLocalAddress:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.address,e.next=3,l.a.getItem("addressList");case 3:return n=e.sent,n||(n={}),n[a]=d()().format("YYYY MM-DD HH:mm"),e.next=8,l.a.setItem("addressList",n);case 8:case"end":return e.stop()}}),e)})))()}}},p={mixins:[u],data:function(){return{signType:"ledger",loading:!1,account:{account:0,index:0}}},computed:{hasHIDEnabled:function(){return!!window.navigator.hid},isWindows:function(){return window.navigator.platform.indexOf("Win")>-1},isChrome:function(){var t=window.navigator.userAgent.toLowerCase();return/chrome|crios/.test(t)&&!/edge|opr\//.test(t)},canLedger:function(){return this.isChrome}},methods:{copyLink:function(){this.$message.success(this.$t("message.walletadd_copy"))},linkAddress:function(t){this.address=t,this.goWallet()},getAddress:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,Object(s["a"])(t.account);case 4:t.address=e.sent,t.$message.success("".concat(t.$t("message.walletadd_GetAddress"),": ").concat(t.address)),t.goWallet(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),t.$message.warning(e.t0.message);case 12:t.loading=!1;case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))()}}},m=p,f=(a("dd96"),a("2877")),v=Object(f["a"])(m,n,r,!1,null,"b80b9384",null);e["default"]=v.exports},"0e6a":function(t,e,a){"use strict";var n=a("6a70"),r=a("93eb");location.hostname;e["a"]={computed:{current:function(){return window.chain}},data:function(){return{chains:r["a"],loading:!1}},methods:{initChain:function(){this.chains=r["a"]},goAddChain:function(){this.$router.push("/chain-add")},switchChain:function(t){Object(n["a"])(t)}}}},"0f67":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var n=a("1da1"),r=(a("96cf"),a("bc3a")),i=a.n(r);function s(){return o.apply(this,arguments)}function o(){return o=Object(n["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i.a.get("/look/chain/type");case 2:return e=t.sent,t.abrupt("return",e.data);case 4:case"end":return t.stop()}}),t)}))),o.apply(this,arguments)}},1009:function(t,e,a){"use strict";a("8a66")},"125c":function(t,e,a){"use strict";a("33f5")},"14c0":function(t,e,a){"use strict";a("ea6d")},"152c":function(t,e,a){"use strict";a("3042")},1566:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'.validators-table-wrap[data-v-109b3578]{padding:15px;background:#fff}.validators-table-title[data-v-109b3578]{font-size:16px;font-weight:700}.validators-1[data-v-109b3578]{border:1px solid #6658dd;background:#d8d5f7}.validators-1-icon[data-v-109b3578]{color:#6658dd;font-size:40px}.validators-2[data-v-109b3578]{border:1px solid #1abc9c;background:#c5eee6}.validators-2-icon[data-v-109b3578]{color:#1abc9c;font-size:18px}.validators-3[data-v-109b3578]{border:1px solid #4fc6e1;background:#d3f1f8}.validators-3-icon[data-v-109b3578]{color:#4fc6e1;font-size:18px}.validators-4[data-v-109b3578]{border:1px solid #f7b84b;background:#fdedd2}.validators-4-icon[data-v-109b3578]{color:#f7b84b;font-size:16px}.validators-columns-name[data-v-109b3578]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:16px}.pagevalidators-item[data-v-109b3578]{background:#fff;padding:10px 20px;margin-bottom:5px}.pagevalidators-text[data-v-109b3578]{text-align:right}.pagevalidators-number[data-v-109b3578]{color:#323a46;font-weight:500;margin:10px 0;font-family:-apple-system,Cerebri Sans,"sans-serif";font-size:24px}.pagevalidators-subtitle[data-v-109b3578]{color:#98a6ad;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pagevalidators-iconwrap[data-v-109b3578]{width:70px;height:70px;border-radius:100%}',""]),t.exports=e},"1a2af":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px","margin-bottom":"10px"}},[a("div",{staticClass:"list-title"},[t._v("Committee")]),a("div",[a("div",[a("span",{staticStyle:{display:"inline-block",width:"140px"}},[t._v("id")]),a("span",[t._v(t._s(t.item.id))])]),a("div",[a("span",{staticStyle:{display:"inline-block",width:"140px"}},[t._v("description")]),a("span",[t._v(t._s(t.item.description))])]),a("div",[a("span",{staticStyle:{display:"inline-block",width:"140px"}},[t._v("vote_threshold")]),a("span",[t._v(t._s(t.item.vote_threshold))])]),a("div",[a("span",{staticStyle:{display:"inline-block",width:"140px"}},[t._v("proposal_duration")]),a("span",[t._v(t._s(t.item.proposal_duration))])])])]),a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px","margin-bottom":"10px"}},[a("div",{staticClass:"list-title"},[t._v("Members")]),t._l(t.item.members,(function(e,n){return a("div",{key:n,staticStyle:{"margin-bottom":"5px"}},[a("el-tag",[t._v(t._s(e))])],1)}))],2),a("div",[a("div",{staticClass:"list-title"},[t._v("Permissions")]),a("div",t._l(t.item.permissions,(function(e,n){return a("div",{key:n,staticClass:"bg-white",staticStyle:{padding:"10px 15px","margin-bottom":"10px"}},[a("div",{staticClass:"list-title",staticStyle:{"border-bottom":"1px solid #eee","padding-bottom":"10px"}},[t._v(t._s(e.type))]),t._l(e.value,(function(e,n){return a("div",{key:n},[a("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px","border-left":"3px solid #2e3338","padding-left":"5px"}},[t._v(t._s(n))]),a("div",t._l(e,(function(e,n){return a("div",{key:n},t._l(e,(function(e,n){return a("el-tag",{key:n,staticStyle:{"margin-right":"10px","margin-bottom":"10px"},attrs:{type:"primary"}},[t._v(t._s(n)+" : "+t._s(e))])})),1)})),0)])}))],2)})),0)])])},r=[],i=a("1da1"),s=(a("96cf"),{activated:function(){this.init()},data:function(){return{loading:!1,item:{}}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,a=t.$route.params.id,e.next=4,t.$axios.get("/committee/committees/".concat(a),{headers:{server:window.chain.lcd}});case 4:n=e.sent,t.loading=!1,t.item=n.result;case 7:case"end":return e.stop()}}),e)})))()}}}),o=s,l=(a("f02a"),a("2877")),c=Object(l["a"])(o,n,r,!1,null,"22b5500b",null);e["default"]=c.exports},"1e4b":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".list-title[data-v-22b5500b]{font-size:18px;font-weight:400;margin-bottom:10px}",""]),t.exports=e},"1f89":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("FlipClock",{staticStyle:{"margin-top":"60px","margin-bottom":"20px"}}),t._l(t.height_vote_set,(function(e,n){return a("div",{key:n},[a("div",{staticStyle:{padding:"5px 0","font-size":"18px","font-weight":"bold",color:"#666"}},[t._v("Round "+t._s(e.round))]),a("dingyi-data-table",{ref:"dt",refInFor:!0,attrs:{noLocalPaging:!0,toolbar:!1,defaultSort:{prop:"voting_power",order:"descending"},btns:{noFresh:!0,index:!0},datas:e.precommits,loading:t.loading,columns:t.columns}})],1)}))],2)},r=[],i=a("1da1"),s=(a("96cf"),a("edf7")),o={components:{FlipClock:s["a"]},created:function(){this.loop()},data:function(){this.$createElement;return{timer:null,loading:!1,columns:[{label:"content",render:function(t,e){var a=e.props.scope.row;return t("div",[a])}}],height_vote_set:[]}},destroyed:function(){this.timer&&clearInterval(this.timer)},methods:{fetchGenesis:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getRpcGenesis");case 2:e.sent;case 4:case"end":return e.stop()}}),e)})))()},loop:function(){var t=this;this.fetchConsensusState(),this.timer=setInterval((function(){t.fetchConsensusState()}),3e4)},fetchConsensusState:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$api.fetch("getRpcConsensus_state");case 3:if(a=e.sent,t.loading=!1,a){e.next=7;break}return e.abrupt("return");case 7:t.height_vote_set=a.height_vote_set;case 8:case"end":return e.stop()}}),e)})))()}}},l=o,c=a("2877"),d=Object(c["a"])(l,n,r,!1,null,null,null);e["default"]=d.exports},"236b":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".wallet-add-wrap[data-v-b80b9384]{padding-top:40px}.wallet-add-title[data-v-b80b9384]{color:#333342;line-height:19px;font-size:16px}.wallet-add-item[data-v-b80b9384]{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:10px 20px;border:1px solid #eee;cursor:pointer}.wallet-add-item[data-v-b80b9384]:hover{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04)}.wallet-add-item-active[data-v-b80b9384]{border-bottom:4px solid #343a40}.wallet-add-item i[data-v-b80b9384]{font-size:20px;margin-bottom:10px}.ledger-wrapper[data-v-b80b9384]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:#f5f5f5;border:1px solid #ddd;max-width:480px;width:100%;margin:0 auto;margin-bottom:20px}",""]),t.exports=e},"24dc":function(t,e,a){var n=a("0776");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("41fced4e",n,!0,{sourceMap:!1,shadowMode:!1})},"24df":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".governance-item[data-v-0907d56e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid #eee;padding:20px 20px}.governance-item[data-v-0907d56e]:hover{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.governance-title[data-v-0907d56e]{cursor:pointer;margin-bottom:12px;color:rgba(0,0,0,.85);font-size:16px;line-height:24px}.governance-title[data-v-0907d56e]:hover{color:#1890ff}.governance-text[data-v-0907d56e]{max-width:900px;line-height:22px;color:rgba(0,0,0,.65)}.governance-foot[data-v-0907d56e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:16px;color:rgba(0,0,0,.45)}.governance-time[data-v-0907d56e]{color:rgba(0,0,0,.25);font-style:normal}",""]),t.exports=e},"2bee":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".topnav .el-menu--horizontal>.el-menu-item{height:46px;line-height:46px;padding:0 10px;background:#343a40}.topnav .el-menu--horizontal>.el-menu-item.is-active,.topnav .el-menu--horizontal>.el-menu-item:hover{color:#fff;background:#343a40}",""]),t.exports=e},"2ca0":function(t,e,a){"use strict";var n=a("23e7"),r=a("06cf").f,i=a("50c4"),s=a("5a34"),o=a("1d80"),l=a("ab13"),c=a("c430"),d="".startsWith,u=Math.min,p=l("startsWith"),m=!c&&!p&&!!function(){var t=r(String.prototype,"startsWith");return t&&!t.writable}();n({target:"String",proto:!0,forced:!m&&!p},{startsWith:function(t){var e=String(o(this));s(t);var a=i(u(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return d?d.call(e,n,a):e.slice(a,a+n.length)===n}})},"2e42":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=this,a=e.$createElement,n=e._self._c||a;return n("div",[e.address?e._e():n("div",[n("div",{staticClass:"tc",staticStyle:{background:"#fff",padding:"60px 20px"}},[n("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:"/static/icon/empty3.png",fit:"contain"}}),n("div",{staticStyle:{margin:"20px 0",color:"#999"}},[e._v(" "+e._s(e.$t("message.wallet_Addressisrequired"))+" ")]),n("el-button",{staticClass:"box-base",staticStyle:{"padding-left":"20px","padding-right":"20px"},attrs:{type:"primary",icon:"el-icon-plus",round:""},on:{click:function(){t.$router.push("/wallet-add")}}},[e._v(e._s(e.$t("message.wallet_Useanexistingaddress")))])],1)]),e.address?[n("div",{staticStyle:{background:"#fff",padding:"20px"}},[n("div",{staticStyle:{display:"flex","align-items":"center","border-bottom":"1px solid #eee","padding-bottom":"20px"}},[n("el-avatar",{staticStyle:{"margin-right":"10px"},attrs:{size:"large",src:"/static/chains/cosmoshub.svg"}}),n("div",{staticStyle:{flex:"1"}},[n("div",[e._v(" "+e._s(e.address)+" "),n("el-button",{staticStyle:{"font-size":"10px",padding:"2px 5px","margin-left":"4px"},attrs:{type:"primary",plain:"",round:"",title:"switch address"},on:{click:function(){t.$router.push("/wallet-add")}}},[e._v(e._s(e.$t("message.wallet_switch")))])],1),n("div",{staticStyle:{color:"#999"}},[e._v("Cosmoshub")])]),n("div",[n("el-button",{staticStyle:{"margin-right":"5px"},attrs:{type:"primary"},on:{click:function(){t.$router.push("/wallet-send?address="+e.address)}}},[e._v(e._s(e.$t("message.wallet_Send")))])],1)],1),n("el-row",{staticClass:"tc",staticStyle:{"margin-bottom":"20px","margin-top":"40px"}},[n("el-col",{attrs:{span:6}},[n("data-statistic",{staticStyle:{"margin-right":"100px"},attrs:{title:e.$t("message.wallet_AvailableAmount"),value:e.available}})],1),n("el-col",{attrs:{span:6}},[n("data-statistic",{staticStyle:{"margin-right":"100px"},attrs:{title:e.$t("message.wallet_DelegatedAmount"),value:e.delegated}})],1),n("el-col",{attrs:{span:6}},[n("data-statistic",{staticStyle:{"margin-right":"100px"},attrs:{title:e.$t("message.wallet_Rewards"),value:e.reward}})],1),n("el-col",{attrs:{span:6}},[n("data-statistic",{staticStyle:{"margin-right":"100px"},attrs:{title:e.$t("message.wallet_Total"),value:e.total}})],1)],1)],1),n("div",{staticClass:"mt-20 bg-white",staticStyle:{padding:"15px 20px"}},[n("div",{staticStyle:{"margin-bottom":"10px","font-size":"18px","border-left":"2px solid #343a40","padding-left":"10px","line-height":"1"}},[e._v(" "+e._s(e.$t("message.wallet_Delegations"))+" ")]),n("el-table",{staticClass:"mt-10",attrs:{data:e.delegations,border:""}},[n("el-table-column",{attrs:{type:"index",label:"#",width:"60"}}),n("el-table-column",{attrs:{prop:"validator_address",label:e.$t("message.wallet_Validator")},scopedSlots:e._u([{key:"default",fn:function(t){return[n("a",{attrs:{href:"#/validator/"+t.row.validator_address}},[e._v(e._s(e.validatorObj[t.row.validator_address]?e.validatorObj[t.row.validator_address].moniker:t.row.validator_address))])]}}],null,!1,3344724851)}),n("el-table-column",{attrs:{prop:"shares",label:e.$t("message.wallet_DelegatedAmount")},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticStyle:{"font-size":"16px"}},[e._v(e._s(t.row.shares))]),e.rewardObj[t.row.validator_address]?n("el-tag",{staticStyle:{"margin-left":"10px"},attrs:{size:"mini",type:"success"}},[e._v(e._s("+"+e.rewardObj[t.row.validator_address].amount))]):e._e()]}}],null,!1,1395739478)})],1)],1),n("div",{staticClass:"mt-20 bg-white",staticStyle:{padding:"15px 20px"}},[n("div",{staticStyle:{"margin-bottom":"10px","font-size":"18px","border-left":"2px solid #343a40","padding-left":"10px","line-height":"1"}},[e._v(" "+e._s(e.$t("message.wallet_Transcantions"))+" ")]),n("el-table",{staticClass:"mt-10",attrs:{data:e.txs,border:""}},[n("el-table-column",{attrs:{type:"index",label:"#",width:"60"}}),n("el-table-column",{attrs:{prop:"height",label:e.$t("message.wallet_Height"),width:"180"}}),n("el-table-column",{attrs:{prop:"txhash",label:e.$t("message.wallet_txhash")}})],1)],1)]:e._e()],2)},r=[],i=a("1da1"),s=(a("96cf"),a("a9e3"),a("ac1f"),a("5319"),a("636f")),o={mixins:[s["a"]],data:function(){return{address:"",available:"--",reward:"--",delegated:"--",delegations:[],rewards:[],rewardObj:{},data:[],txs:[],page:1,total_count:0}},created:function(){this.init()},activated:function(){this.init()},computed:{total:function(){if(!this.available||!this.delegated||!this.reward)return"--";var t=Number(this.available)+Number(this.delegated)+Number(this.reward);return isNaN(t)?"--":t}},watch:{address:function(t){t&&this.init()}},methods:{init:function(){var t=this.$route.query.address,e=window.sessionStorage.getItem("address");t&&(this.address=t),(t||e)&&(!t&&e&&this.$router.replace({query:{address:e}}),this.getAuthAccounts(),this.getStakingDelegatorsDelegations(),this.getDistributionDelegatorsRewards(),this.getTxs())},getAuthAccounts:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.address,t.loading=!0,e.next=4,t.$api.fetch("getAuthAccounts",{address:a});case 4:if(n=e.sent,n){e.next=7;break}return e.abrupt("return");case 7:t.available=n.available,t.loading=!1;case 9:case"end":return e.stop()}}),e)})))()},getStakingDelegatorsDelegations:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.address,e.next=3,t.$api.fetch("getStakingDelegatorsDelegations",{delegatorAddress:a});case 3:if(n=e.sent,n){e.next=6;break}return e.abrupt("return");case 6:t.delegations=n.delegations,t.delegated=n.delegated;case 8:case"end":return e.stop()}}),e)})))()},getDistributionDelegatorsRewards:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.address,e.next=3,t.$api.fetch("getDistributionDelegatorsRewards",{delegatorAddress:a});case 3:if(n=e.sent,n){e.next=6;break}return e.abrupt("return");case 6:t.rewards=n.rewards,t.reward=n.reward,t.rewardObj=n.rewardObj;case 9:case"end":return e.stop()}}),e)})))()},getTxs:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.address,e.next=3,t.$api.fetch("getTxsHistory",{address:a,page:t.page});case 3:if(n=e.sent,n){e.next=6;break}return e.abrupt("return");case 6:t.txs=n.txs;case 7:case"end":return e.stop()}}),e)})))()}}},l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticStyle:{"margin-bottom":"4px",color:"rgba(0, 0, 0, 0.45)"}},[t._v(t._s(t.title))]),a("div",{staticStyle:{color:"rgba(0, 0, 0, 0.85)","font-size":"24px"}},[t._v(t._s(t.value))])])},c=[],d={props:{title:"",value:""}},u=d,p=a("2877"),m=Object(p["a"])(u,l,c,!1,null,null,null),f=m.exports,v={components:{DataStatistic:f},mixins:[o]},g=v,h=Object(p["a"])(g,n,r,!1,null,null,null);e["default"]=h.exports},"2f33":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{background:"#fff"}},[a("div",{staticStyle:{"max-width":"500px",margin:"0 auto",padding:"40px 0"}},[a("div",{staticStyle:{"font-size":"20px"}},[t._v("Send")]),a("div",{staticStyle:{color:"#666"}},[t._v(" From: "+t._s(t.address)+" "),a("el-button",{staticStyle:{"font-size":"10px",padding:"2px 5px","margin-left":"4px"},attrs:{type:"primary",plain:"",round:"",title:"switch address"}},[t._v("copy")])],1),a("div",{staticStyle:{margin:"20px 0"}},[a("el-steps",{attrs:{active:t.step,"finish-status":"success",simple:""}},[a("el-step",{attrs:{title:"Form"}}),a("el-step",{attrs:{title:"Sign"}}),a("el-step",{attrs:{title:"Result"}})],1)],1),0===t.step?[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[a("el-form-item",{attrs:{label:"to address",prop:"toAddress"}},[a("el-input",{attrs:{placeholder:"address"},model:{value:t.form.toAddress,callback:function(e){t.$set(t.form,"toAddress",e)},expression:"form.toAddress"}})],1),a("el-form-item",{attrs:{label:"amount",prop:"amount"}},[a("el-input",{attrs:{type:"number",min:0},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount",e)},expression:"form.amount"}})],1),a("el-form-item",{attrs:{label:"memo"}},[a("el-input",{attrs:{placeholder:"memo (optional)"},model:{value:t.form.memo,callback:function(e){t.$set(t.form,"memo",e)},expression:"form.memo"}})],1)],1),a("el-button",{staticClass:"box-base",staticStyle:{width:"200px"},attrs:{round:"",type:"primary",loading:t.loading},on:{click:t.nextGasCommon}},[t._v("Next")])]:t._e(),1===t.step?[a("div",[a("div",{staticClass:"subtotal-item"},[a("span",[t._v("Gas:")]),t._v(" "+t._s(t.gasAtom)+" ")]),a("div",{staticClass:"subtotal-item"},[a("span",[t._v("Amount:")]),t._v(" "+t._s(t.form.amount)+" ")]),a("div",{staticClass:"subtotal-item subtotal-total"},[a("span",[t._v("Total:")]),t._v(" "+t._s(t.subTotal)+" ")])]),a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{type:"primary",round:"",loading:t.loading},on:{click:t.nextSignCommon}},[t._v("Sure and Send by ledger")]),a("div",{staticStyle:{color:"#666","margin-top":"10px"}},[t._v("To: "+t._s(t.form.toAddress))])]:t._e(),2===t.step||3===t.step?[a("div",{staticClass:"tc",staticStyle:{"margin-top":"40px"}},[t._m(0),a("div",{staticClass:"sendsuccess-title"},[t._v("Success!")]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v("To: "+t._s(t.form.toAddress))]),a("div",[a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{round:""},on:{click:t.goSend}},[t._v("Send Again")])],1)])]:t._e()],2)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("i",{staticClass:"el-icon-circle-check",staticStyle:{"font-size":"48px",color:"#52c41a"}})])}],i=a("251c"),s=a("1da1"),o=(a("96cf"),a("a9e3"),a("d9bc")),l=(a("cf45"),a("e4e9")),c={created:function(){var t=this.$route.query.address;t&&(this.address=t,this.initAccount(t))},data:function(){return{form:{amount:.5,toAddress:"cosmos1ugnvz4mx7gnxh3qah8m3e2e9gn5t8twtuyjta5",memo:"send by look.ping.pub"},address:"",account:{account_number:"",sequence:"",coins:[],type:""},step:0,loading:!1,gas:""}},filters:{shortAddress:function(t){return t.substr(0,12)+"..."+t.substr(-12,12)}},computed:{subTotal:function(){if(this.gas){var t=Number(Object(o["a"])(Number(this.gas)))+Number(this.form.amount);return t}},gasAtom:function(){return Object(o["a"])(Number(this.gas))}},methods:{initAccount:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loading=!0,a.next=3,e.$api.fetch("getAuthAccounts",{address:t});case 3:n=a.sent,e.loading=!1,e.account=n;case 6:case"end":return a.stop()}}),a)})))()},nextGasCommon:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.loading=!0,a=t.account,a.account_number,a.sequence,t.loading=!1,t.step+=1;case 4:case"end":return e.stop()}}),e)})))()},nextSignCommon:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n,r,i,s,o,c,d,u,p,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.form,n=a.toAddress,r=a.memo,i=a.amount,s=t.account,o=s.account_number,c=s.sequence,d="uatom",u=Object(l["c"])(),p=u.MsgSend(t.address,{toAddress:n,amounts:[{amount:i,denom:d}]}),e.next=7,Object(l["d"])({account_number:o,sequence:c,memo:r,gas:t.gas,msg:p});case 7:return m=e.sent,e.next=10,t.$api.fetch("postTxs",{txBroadcast:m});case 10:e.sent;case 11:case"end":return e.stop()}}),e)})))()}}},d={mixins:[c],data:function(){var t=function(t,e,a){if(!e)return a(new Error("Please input to address"));try{i["c"].decode(e),a()}catch(n){a(new Error(n.message))}};return{rules:{toAddress:[{required:!0,validator:t,trigger:"blur"}],amount:[{required:!0,trigger:"blur",message:"please input amount"},{min:0,trigger:"blur",message:"please input amount"}]}}},methods:{goSend:function(){this.step=0}}},u=d,p=(a("3ba1"),a("2877")),m=Object(p["a"])(u,n,r,!1,null,"66c7ac0a",null);e["default"]=m.exports},3037:function(t,e,a){"use strict";a("cf47")},3042:function(t,e,a){var n=a("e5ce");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("9be7dc82",n,!0,{sourceMap:!1,shadowMode:!1})},"33f5":function(t,e,a){var n=a("72eb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("5963b424",n,!0,{sourceMap:!1,shadowMode:!1})},3603:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"area-title area-title-main"},[t._v(t._s(t.$t("message.txhash_Information")))]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"bg-white",staticStyle:{padding:"20px"}},[a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_TxHash")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.hash))])]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Status")))]),a("div",{staticClass:"tx-item-val"},[a("el-tag",{attrs:{type:t.tx.success?"success":"danger"}},[t._v(t._s(t.tx.success?"Success":"Fail"))]),t.tx.success?t._e():a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(t.tx.log&&t.tx.log.message||t.tx.log))])],1)]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Height")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.tx.height))])]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Fee")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.tx.fee))])]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Gas")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.tx.gas_used)+" / "+t._s(t.tx.gas_wanted))])]),a("div",{staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(t.$t("message.txhash_Time")))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(t.tx.time))])])]),a("div",{staticClass:"area-title area-title-main"},[t._v(t._s(t.$t("message.txhash_Msgs")))]),!t.tx.msgs||t.tx.msgs&&0===t.tx.msgs.length?a("dingyi-empty",{attrs:{loading:t.loading}}):t._e(),t._l(t.tx.msgs,(function(e,n){return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:n,staticClass:"bg-white",staticStyle:{padding:"20px","margin-top":"20px","padding-bottom":"10px"}},[a("div",{staticClass:"area-title"},[t._v(t._s(e.type))]),t._l(e.value,(function(e,n){return a("div",{key:n,staticClass:"tx-item"},[a("div",{staticClass:"tx-item-title"},[t._v(t._s(n))]),a("div",{staticClass:"tx-item-val"},[t._v(t._s(e))])])}))],2)}))],2)},r=[],i=a("b85c"),s=a("1da1"),o=(a("96cf"),a("ac1f"),a("1276"),a("5319"),a("6be8")),l={mixins:[],data:function(){return{tx:{},loading:!1,hash:""}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n,r,s,l,c,d,u,p,m,f,v,g,h,b,_,x,w;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.hash=t.$route.params.hash,t.loading=!0,e.next=4,t.$api.fetch("getTxsHash",{hash:t.hash});case 4:if(a=e.sent,a){e.next=8;break}return t.loading=!1,e.abrupt("return");case 8:a.success=!!a.logs,!a.success&&a.logs&&(a.log=a.logs[0]&&a.logs[0].log&&JSON.parse(a.logs[0].log)||a.raw_log),"irishub"===t.chainId&&(a.success=0===a.result.Code,a.log=a.success?"":a.result.Log,a.gas_used=a.result.GasUsed,a.gas_wanted=a.result.GasWanted),a.fee=a.tx.value.fee.amount&&(a.tx.value.fee.amount.amount&&a.tx.value.fee.amount.amount+" "+a.tx.value.fee.amount.denom||a.tx.value.fee.amount[0]&&a.tx.value.fee.amount[0].amount+" "+a.tx.value.fee.amount[0].denom)||"0",a.time=Object(o["c"])(a.timestamp),n=a.tx.value.msg,r=[],s=Object(i["a"])(n);try{for(s.s();!(l=s.n()).done;){for(p in c=l.value,d=c.value,u={},d){m=p.split("_"),f="",v=Object(i["a"])(m);try{for(v.s();!(g=v.n()).done;)h=g.value,b=h.replace(h[0],h[0].toUpperCase()),f+=f?" "+b:b}catch(y){v.e(y)}finally{v.f()}_="",("amount"===p||"value"===p)&&d[p]&&d[p].amount?_=d[p].amount+" "+d[p].denom:"amount"===p&&d[p]&&!d[p].amount?_=d[p][0].amount+" "+d[p][0].denom:"description"===p?(x=d[p],_=x.details||"--",u[t.$t("message.txhash_moniker")]=x.moniker,u[t.$t("message.txhash_identity")]=x.identity,u[t.$t("message.txhash_website")]=x.website):"commission"===p?(w=d[p],_=null,u[t.$t("message.txhash_CommissionRate")]=Object(o["b"])(w.rate),u[t.$t("message.txhash_CommissionMaxRate")]=Object(o["b"])(w.max_rate),u[t.$t("message.txhash_CommissionMaxChangeRate")]=Object(o["b"])(w.max_change_rate)):_="delegation"===p?d[p].amount+" "+d[p].denom:d[p],_&&(u[f]=_)}r.push({type:c.type,value:u})}}catch(y){s.e(y)}finally{s.f()}a.msgs=r,t.tx=a,t.loading=!1;case 20:case"end":return e.stop()}}),e)})))()}}},c=l,d=(a("ba6f"),a("2877")),u=Object(d["a"])(c,n,r,!1,null,null,null);e["default"]=u.exports},3901:function(t,e,a){"use strict";var n=a("1da1");a("96cf");e["a"]={created:function(){this.init()},data:function(){return{address:"",loading:!1}},methods:{init:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,t.$route.query.address&&(t.address=t.$route.query.address),e.next=4,t.$api.fetch("getCommitteeCommittees");case 4:a=e.sent,t.loading=!1,t.list=a||[];case 7:case"end":return e.stop()}}),e)})))()},fetchTotalBondedTokens:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.$store.commit("bondedTokensSet",a.bonded_tokens_val),t.init();case 5:case"end":return e.stop()}}),e)})))()}}}},"390f":function(t,e,a){"use strict";a("24dc")},3931:function(t,e,a){var n=a("e95d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("eeb34ea8",n,!0,{sourceMap:!1,shadowMode:!1})},"3a1d":function(t,e,a){var n=a("1566");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("02e25b5c",n,!0,{sourceMap:!1,shadowMode:!1})},"3ba1":function(t,e,a){"use strict";a("572d")},"3bb4":function(t,e,a){var n=a("c5de");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("3efa5346",n,!0,{sourceMap:!1,shadowMode:!1})},"3e6f":function(t,e,a){"use strict";a("3bb4")},4351:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=this,a=e.$createElement,n=e._self._c||a;return n("div",[n("div",{staticStyle:{display:"flex","align-items":"center"}},[n("div",{staticClass:"list-title",staticStyle:{"margin-right":"10px"}},[e._v("CDP")]),n("el-popover",{attrs:{placement:"top-start",trigger:"hover",width:"300"}},[n("div",[n("img",{staticStyle:{width:"100%"},attrs:{src:"/static/cdp/risk.png",alt:""}})]),n("i",{staticClass:"el-icon-info",staticStyle:{color:"#aaa","margin-right":"10px"},attrs:{slot:"reference"},slot:"reference"})]),n("div",{staticClass:"pointer",staticStyle:{color:"#aaa"},on:{click:function(){t.showStatus=!t.showStatus}}},[e._v(e._s(e.showStatus?"hide":"show"))]),n("div",{staticClass:"flex-1"}),n("el-radio-group",{attrs:{size:"mini"},on:{change:e.switchTab},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.collateral_params,(function(t,a){return n("el-radio-button",{key:a,attrs:{label:t.denom}},[e._v(e._s(t.denom))])})),1)],1),n("div",[n("ParamItem",{directives:[{name:"show",rawName:"v-show",value:e.showStatus,expression:"showStatus"}],attrs:{title:"",nums:4,content:e.cdp}}),e.show?[0===e.dataPage.length?n("dingyi-empty",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]}):e._e(),e._l(e.dataPage,(function(t,a){return n("div",{key:a,staticStyle:{"margin-top":"10px"}},[n("van-cell-group",[n("van-cell",{attrs:{bottom:"",title:t.owner}},[n("el-popover",{attrs:{trigger:"click",placement:"bottom-end",width:"300"}},[n("div",[n("img",{staticStyle:{width:"100%"},attrs:{src:"/static/cdp/risk.png",alt:""}})]),n("div",{class:[t.riskType],staticStyle:{"font-size":"16px"},attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.riskStr))])])],1),n("div",{staticStyle:{padding:"0 15px 10px 15px"}},[n("div",{staticClass:"cell-item"},[n("div",[e._v("Collateral Deposited")]),n("div",{staticStyle:{"text-align":"right"}},[n("div",[e._v(e._s(t.collateral))]),n("div",{staticStyle:{"font-size":"10px"}},[e._v(e._s(t.collateral2))])])]),n("div",{staticClass:"cell-item"},[n("div",[e._v("Principal Drawn")]),n("div",[e._v(e._s(t.principal))])]),n("div",{staticClass:"cell-item",staticStyle:{"margin-top":"5px"}},[n("div",[e._v("Ratio")]),n("div",[e._v(e._s(t.ratio))])]),n("div",{staticClass:"cell-item",staticStyle:{"margin-top":"5px"}},[n("div",[e._v("Accumulated Fees")]),n("div",[e._v(e._s(t.accumulated_fees))])]),n("div",{staticClass:"cell-item",staticStyle:{"margin-top":"5px"}},[n("div",[e._v("Fees Updated")]),n("div",[e._v(e._s(t.time))])])])],1)],1)}))]:n("dingyi-data-table",{ref:"dt",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:e.dataPage,columns:e.columns,loading:e.loading}}),n("div",{staticStyle:{"text-align":"center","margin-top":"20px"}},[n("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.datas.length},on:{"current-change":e.pageChange}})],1)],2)])},r=[],i=a("5530"),s=a("b85c"),o=a("1da1"),l=(a("96cf"),a("b680"),a("a9e3"),a("fb6a"),a("6be8")),c=a("d9bc"),d=a("47f5"),u={props:{show:{default:!1}},components:{ParamItem:d["a"]},computed:{cdp:function(){var t=this.data,e=t.circuit_breaker,a=(t.debt_auction_lot,t.debt_auction_threshold,t.global_debt_limit,t.savings_distribution_frequency,t.surplus_auction_lot,t.surplus_auction_threshold,t.collateral_params,t.debt_param),n=(t.auction_size,t.conversion_factor,t.liquidation_market_id,t.liquidation_penalty),r=t.liquidation_ratio;t.prefix,t.spot_market_id,t.stability_fee,t.debt_limit;return[{title:"liquidation ratio",value:r&&Number(r).toFixed(2)||"--"},{title:"liquidation penalty",value:n&&Number(n).toFixed(4)||"--"},{title:"debt param",value:a&&a.denom||"--"},{title:"reference asset",value:a&&a.reference_asset||"--"},{title:"circuit breaker",value:e||!1}]}},data:function(){this.$createElement;return{showStatus:!this.show,tab:"",tabObj:{},data:{},collateral_params:[],collateral_paramsObj:{},datas:[],dataPage:[],dataPageNum:1,columns:[{label:"Owner",width:130,render:function(t,e){var a=e.props.scope.row,n=a||{},r=n.owner;return t("div",{class:"validators-columns-name font-14"},[r])}},{label:"Collateral Deposited",render:function(t,e){var a=e.props.scope.row,n=a||{},r=n.collateral,i=n.collateral2;return t("div",[t("div",{class:"validators-columns-name font-14"},[r]),t("div",{class:"validators-columns-name font-14"},[i])])}},{label:"Principal Drawn",render:function(t,e){var a=e.props.scope.row,n=a||{},r=n.principal;return t("div",{class:"validators-columns-name font-14"},[r])}},{label:"Accumulated Fees",render:function(t,e){var a=e.props.scope.row,n=a||{},r=n.accumulated_fees,i=n.time;return t("div",[t("div",{class:"validators-columns-name font-14"},[r]),t("div",{class:"validators-columns-name font-14"},[i])])}},{label:"Ratio",width:80,sortable:!0,"sort-method":function(t,e){var a=t.ratio,n=e.ratio;return Number(a)-Number(n)},render:function(t,e){var a=e.props.scope.row,n=a||{},r=n.ratio;return t("div",{class:"validators-columns-name font-14"},[r])}},{label:"Risk Score",width:120,cdprisk:!0,sortable:!0,"sort-method":function(t,e){var a=t.risk,n=e.risk;return Number(a)-Number(n)},render:function(t,e){var a=e.props.scope.row,n=a||{},r=n.risk;return t("el-popover",{attrs:{trigger:"click",placement:"top-start",width:"300"}},[t("div",[t("img",{style:"width: 100%;",attrs:{src:"/static/cdp/risk.png",alt:!0}})]),t("div",{slot:"reference",class:"validators-columns-name font-14"},[t("el-tag",{attrs:{size:"mini",type:Number(r)<50?"success":Number(r)>80?"danger":"warning"},class:"pointer",style:"font-size: 16px"},[r])])])}}],loading:!1}},created:function(){this.init()},methods:{pageChange:function(t){this.dataPageNum=t||1,this.dataPage=this.datas.slice(10*(this.dataPageNum-1),10*this.dataPageNum)},getCdpDenom:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,e.$axios.get("/cdp/cdps/denom/".concat(t),{headers:{server:window.chain.lcd}});case 2:n=a.sent,e.formatDatas(n.result),e.pageChange(),e.loading=!1;case 6:case"end":return a.stop()}}),a)})))()},formatDatas:function(t){var e,a=Object(s["a"])(t);try{for(a.s();!(e=a.n()).done;){var n=e.value,r=n.cdp,i=r.owner,o=r.collateral;n.owner=i&&i.substr(0,4)+"..."+i.substr(-8),n.collateral=o&&Object(l["d"])(o.amount,!1,!0,o.denom,8);var c=n.collateral_value;n.collateral2=c&&Object(l["d"])(c.amount,!1,!0,c.denom),n.principal=r&&r.principal&&Object(l["d"])(r.principal.amount,!1,!1,r.principal.denom),n.accumulated_fees=r&&r.accumulated_fees&&Object(l["d"])(r.accumulated_fees.amount,!1,!1,r.accumulated_fees.denom),n.time=r&&r.fees_updated&&Object(l["c"])(r.fees_updated),n.ratio=Number(n.collateralization_ratio).toFixed(4);var d=c.amount,u=r.principal.amount;n.risk=Object(l["a"])(100*(1-(d-u)/d)),n.riskType=Number(n.risk)<50?"type-success":Number(n.risk)>80?"type-danger":"type-warning",n.riskStr=(Number(n.risk)<50?"Low Risk ":Number(n.risk)>80?"High Risk ":"Middle Risk ")+n.risk}}catch(p){a.e(p)}finally{a.f()}this.datas=t},switchTab:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.tabObj=t.collateral_paramsObj[t.tab],e.next=3,t.getCdpDenom(t.tab);case 3:t.data=Object(i["a"])(Object(i["a"])({},t.data),t.tabObj);case 4:case"end":return e.stop()}}),e)})))()},init:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,r,i,o,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$axios.get("/cdp/parameters",{headers:{server:window.chain.lcd}});case 3:a=e.sent,n=a.result,n.debt_auction_lot=Object(l["e"])(n.debt_auction_lot),n.surplus_auction_lot=Object(l["e"])(n.surplus_auction_lot),n.debt_auction_threshold=Object(l["e"])(n.debt_auction_threshold),n.surplus_auction_threshold=Object(l["e"])(n.surplus_auction_threshold),n.savings_distribution_frequency=Object(l["e"])(n.savings_distribution_frequency),n.debt_param.savings_rate=Object(c["c"])(n.debt_param.savings_rate),t.data=n,t.collateral_params=a.result.collateral_params,r={},i=Object(s["a"])(t.collateral_params);try{for(i.s();!(o=i.n()).done;)d=o.value,r[d.denom]=d}catch(u){i.e(u)}finally{i.f()}t.collateral_paramsObj=r,t.tab=t.collateral_params[0].denom,t.switchTab();case 19:case"end":return e.stop()}}),e)})))()}}},p=u,m=(a("4548"),a("2877")),f=Object(m["a"])(p,n,r,!1,null,"a28a7660",null);e["default"]=f.exports},4548:function(t,e,a){"use strict";a("6d26")},4625:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px"}},[a("div",{staticClass:"list-title"},[t._v("Auction")]),a("dingyi-data-table",{ref:"dt",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.datas,columns:t.columns,loading:t.loading}})],1)},r=[],i=a("1da1"),s=(a("96cf"),{data:function(){return{datas:[],columns:[{label:"initiator",prop:"initiator"},{label:"bidder",prop:"bidder"},{label:"has_received_bids",prop:"has_received_bids"},{label:"type",prop:"type"},{label:"phase",prop:"phase"}],loading:!1}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$axios.get("/auction/auctions",{headers:{server:window.chain.lcd}});case 3:a=e.sent,t.loading=!1,t.datas=a.result;case 6:case"end":return e.stop()}}),e)})))()}}}),o=s,l=(a("642a"),a("2877")),c=Object(l["a"])(o,n,r,!1,null,"e2911a26",null);e["default"]=c.exports},"469d":function(t,e,a){var n=a("9878");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("37dffbec",n,!0,{sourceMap:!1,shadowMode:!1})},"47f5":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("p",{staticClass:"area-title"},[t._v(t._s(t.title))]),a("el-row",{attrs:{gutter:20}},t._l(t.content,(function(e,n){return a("el-col",{key:n,staticStyle:{"margin-bottom":"15px"},attrs:{xs:24,sm:12,md:t.nums,lg:t.nums,xl:t.nums}},[a("div",{staticClass:"area-item"},[a("h3",{staticClass:"area-item-text"},[t._v(" "+t._s(e.value)+" ")]),a("p",{staticClass:"area-item-title"},[t._v(t._s(e.title))])])])})),1)],1)},r=[],i={props:{nums:{default:6},title:"",content:{default:function(){return{}}}}},s=i,o=(a("8fbe"),a("2877")),l=Object(o["a"])(s,n,r,!1,null,"4a6de995",null);e["a"]=l.exports},4939:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".less33{background:#f8dbdb!important;border-top-color:#fff!important}.less33,.less33 td,.less68{border-bottom-color:#fff!important}.less68{background:#faeed9!important;border-top-color:#fff!important}.less68 td{border-bottom-color:#fff!important}",""]),t.exports=e},"498a":function(t,e,a){"use strict";var n=a("23e7"),r=a("58a8").trim,i=a("c8d2");n({target:"String",proto:!0,forced:i("trim")},{trim:function(){return r(this)}})},"4ae0":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"box-dark p-20",staticStyle:{background:"#fff"}},[a("div",[a("div",{staticClass:"flex-center",staticStyle:{"justify-content":"center"}},[a("el-radio-group",{staticClass:"box-base",attrs:{size:"mini"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"bonded"}},[t._v(t._s(t.$t("message.validator_Active")))]),a("el-radio-button",{attrs:{label:"unbonded"}},[t._v(t._s(t.$t("message.validator_Inactive")))])],1)],1),a("div",{staticClass:"flex-center",staticStyle:{"justify-content":"center","margin-top":"20px"}},[a("el-button",{staticClass:"box-base",staticStyle:{"font-size":"16px","margin-right":"10px","margin-left":"10px"},attrs:{disabled:t.loading||t.blockHeightMin<=1,icon:"el-icon-arrow-left",size:"mini",circle:""},on:{click:t.nextPage}}),a("el-form",{nativeOn:{submit:function(e){return e.preventDefault(),t.switchHeight(e)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.switchHeight(e))}}},[a("el-input",{staticClass:"box-base",staticStyle:{"min-width":"100px","max-width":"200px"},attrs:{disabled:t.loading,type:"number"},on:{blur:t.switchHeight},model:{value:t.blockHeightMin,callback:function(e){t.blockHeightMin=e},expression:"blockHeightMin"}})],1),a("span",{staticStyle:{margin:"0 10px"}},[t._v("-")]),a("el-input",{staticClass:"box-base",staticStyle:{"min-width":"100px","max-width":"200px"},attrs:{disabled:"",type:"number"},model:{value:t.blockHeightMax,callback:function(e){t.blockHeightMax=e},expression:"blockHeightMax"}}),a("el-button",{staticClass:"box-base",staticStyle:{"font-size":"14px","margin-left":"10px","margin-right":"10px"},attrs:{disabled:t.loading||t.blockHeightMax>=t.blockHeight-1,size:"mini",icon:"el-icon-arrow-right",circle:""},on:{click:t.prevPage}})],1)]),a("div",{staticStyle:{"margin-top":"20px","margin-bottom":"30px"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:"bonded"===t.type,expression:"type === 'bonded'"}],staticClass:"uptime-content"},t._l(t.validators,(function(e,n){return a("div",{key:n},[a("div",{staticStyle:{"margin-bottom":"6px"}},[a("a",{staticClass:"uptime-username",attrs:{href:"#/validator/"+e.operator_address,title:e.moniker,underline:!1}},[t._v(" "+t._s(e.moniker)+" "),a("i",{staticClass:"el-icon-arrow-right"})])]),a("div",{staticClass:"flex-center mb-10"},t._l(t.heightArr,(function(t,n){return a("a",{key:n,staticClass:"uptime-block-item",class:{"uptime-block-item-active":t.precommits&&t.precommits[e.hexAddress]},attrs:{href:"#/block/"+t.height,title:t.height}})})),0)])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:"unbonded"===t.type,expression:"type === 'unbonded'"}],staticClass:"uptime-content"},t._l(t.validatorsUnbonded,(function(e,n){return a("div",{key:n},[a("div",{staticStyle:{"margin-bottom":"6px"}},[a("a",{staticClass:"uptime-username",attrs:{href:"#/validator/"+e.operator_address,title:e.moniker,underline:!1}},[t._v(" "+t._s(e.moniker)+" "),a("i",{staticClass:"el-icon-arrow-right"})])]),a("div",{staticClass:"flex-center mb-10"},t._l(t.heightArr,(function(t,n){return a("a",{key:n,staticClass:"uptime-block-item",class:{"uptime-block-item-active":t.precommits&&t.precommits[e.hexAddress]},attrs:{href:"#/block/"+t.height,title:t.height}})})),0)])})),0),0===t.validators.length?a("dingyi-empty",{attrs:{loading:t.loading}}):t._e()],1)])},r=[],i=a("1da1"),s=(a("a9e3"),a("96cf"),{props:{len:{default:50}},data:function(){return{type:"bonded",loading:!1,validators:[],validatorsUnbonded:[],heightArr:[],initHeight:null,blockHeight:null,blockHeightMax:null,blockHeightMin:null,precommitObj:[]}},created:function(){this.initData()},methods:{initData:function(){this.getStakingValidators(),this.getUnbondedValidators()},getUnbondedValidators:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingValidators",{status:"V4"===window.chain.api?"BOND_STATUS_UNBONDED":"unbonded"});case 2:if(a=e.sent,a){e.next=5;break}return e.abrupt("return");case 5:t.validatorsUnbonded=a.result;case 6:case"end":return e.stop()}}),e)})))()},getStakingValidators:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$api.fetch("getStakingValidators",{});case 3:return a=e.sent,t.validators=a.result,e.next=7,t.initBlockHeight();case 7:case"end":return e.stop()}}),e)})))()},initBlockHeight:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("V2"!==window.chain.api){e.next=7;break}return e.next=3,t.$api.fetch("getValidatorsetsLatest");case 3:a=e.sent,t.blockHeight=a.block_height,e.next=11;break;case 7:return e.next=9,t.$api.fetch("getRpcBlockchain",{minHeight:0,maxHeight:0});case 9:n=e.sent,t.blockHeight=n.last_height;case 11:t.initHeight=Number(t.blockHeight),t.blockHeightMax=t.blockHeight,t.switchHeight(),t.loading=!1;case 15:case"end":return e.stop()}}),e)})))()},switchHeight:function(){Number(this.blockHeightMax)>=Number(this.blockHeight)&&(this.blockHeightMax=Number(this.blockHeight)-1),Number(this.blockHeightMax)<this.len&&(this.blockHeightMax=this.len),this.blockHeightMin=this.blockHeightMax-this.len+1,this.fetchPage()},fetchPage:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(a=[],n=function(e){var n=e,r={height:n,precommits:{}};a.push(r),t.$api.fetch("getRpcCommitHeight",{height:n}).then((function(t){r.precommits=t}))},r=t.blockHeightMax;r>=t.blockHeightMin;r-=1)n(r);t.heightArr=a.reverse(),t.loading=!1;case 5:case"end":return e.stop()}}),e)})))()},nextPage:function(){this.blockHeightMax=Number(this.blockHeightMax)-Number(this.len)-1,Number(this.blockHeightMax)<this.len&&(this.blockHeightMax=this.len),this.blockHeightMin=this.blockHeightMax-this.len,this.fetchPage()},prevPage:function(){this.blockHeightMax=Number(this.blockHeightMax)+Number(this.len)+1,Number(this.blockHeightMax)>=Number(this.blockHeight)&&(this.blockHeightMax=this.blockHeight-1),this.blockHeightMin=this.blockHeightMax-this.len,this.fetchPage()}}}),o={mixins:[s]},l=o,c=(a("935a"),a("2877")),d=Object(c["a"])(l,n,r,!1,null,"98160f48",null);e["default"]=d.exports},"4c55":function(t,e,a){"use strict";a("8d53")},"4f4f":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex-center",staticStyle:{"align-items":"flex-end","align-self":"flex-end","justify-content":"center"}},t._l(t.data,(function(e,n){return a("div",{key:n,staticClass:"ratebar-item",style:{width:t.barWidth}},[a("div",[t._v(t._s(e.label||e.value))]),a("div",{staticClass:"rateline-line",style:{height:e.value*t.baseHeight+"px",background:e.bg,width:t.lineWidth}}),e.line?a("div",{staticClass:"ratebar-scale",style:{top:"-"+e.line*t.baseHeight+"px"}}):t._e(),a("div",{staticClass:"ratebar-text"},[t._v(t._s("Yes"===e.type?t.$t("message.governance_Yes"):"Abstain"===e.type?t.$t("message.governance_Abstain"):"No"===e.type?t.$t("message.governance_No"):"No Veto"===e.type?t.$t("message.governance_NoVeto"):"Join"===e.type?t.$t("message.governance_Join"):""))])])})),0)},r=[],i={props:{barWidth:{default:"50px"},lineWidth:{default:"20px"},baseHeight:{default:100},data:{default:function(){return[{type:"Yes",value:1,bg:"#52c41a",line:.5},{type:"No",value:.3,bg:"#faad14",line:.334},{type:"Abstain",value:.3,bg:"#e66",line:null},{type:"No Veto",value:.2,bg:"#ddd",line:null}]}}}},s=i,o=(a("125c"),a("2877")),l=Object(o["a"])(s,n,r,!1,null,"c3025474",null);e["a"]=l.exports},"50ca":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{background:"#fff"}},[a("div",{staticStyle:{"max-width":"500px",margin:"0 auto",padding:"40px 0"}},["form"===t.step?[a("div",{staticStyle:{"font-size":"20px"}},[t._v(t._s(t.$t("message.walletsend_Send")))]),a("div",{staticStyle:{color:"#666","margin-bottom":"20px"}},[t._v(" "+t._s(t.$t("message.walletsend_From"))+": "+t._s(t.address)+" ")]),a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-position":"top"}},[a("el-form-item",{attrs:{label:t.$t("message.walletsend_From"),prop:"toAddress"}},[a("el-input",{attrs:{placeholder:t.$t("message.walletsend_address")},model:{value:t.form.toAddress,callback:function(e){t.$set(t.form,"toAddress",e)},expression:"form.toAddress"}})],1),a("el-form-item",{attrs:{label:t.$t("message.walletsend_Amount")+" ("+t.$t("message.walletsend_Max")+" "+t.available+")",prop:"amount"}},[a("el-input",{attrs:{type:"number",min:0},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount",e)},expression:"form.amount"}},[a("el-button",{attrs:{slot:"append",loading:t.loading},on:{click:t.setMax},slot:"append"},[t._v(t._s(t.$t("message.walletsend_Max")))])],1)],1),a("el-form-item",{attrs:{label:t.$t("message.walletsend_Memo")}},[a("el-input",{attrs:{placeholder:t.$t("message.walletsend_Memo")},model:{value:t.form.memo,callback:function(e){t.$set(t.form,"memo",e)},expression:"form.memo"}})],1),a("el-form-item",{attrs:{label:t.$t("message.walletsend_LedgerAccountIndex")}},[a("div",[a("span",{staticStyle:{display:"inline-block",width:"60px"}},[t._v(t._s(t.$t("message.walletsend_Account")))]),a("el-input-number",{attrs:{size:"mini",min:0},model:{value:t.numAccount,callback:function(e){t.numAccount=e},expression:"numAccount"}}),a("span",{staticStyle:{display:"inline-block",width:"40px","margin-left":"20px"}},[t._v(t._s(t.$t("message.walletsend_Index")))]),a("el-input-number",{attrs:{size:"mini",min:0},model:{value:t.numIndex,callback:function(e){t.numIndex=e},expression:"numIndex"}})],1),a("div",{staticStyle:{"margin-top":"10px"}},[a("span",{staticStyle:{display:"inline-block",width:"60px"}},[t._v(t._s(t.$t("message.walletsend_Gas")))]),a("span",[t._v(" "+t._s(t.gasAtom))])]),a("div",[a("span",{staticStyle:{display:"inline-block",width:"60px"}},[t._v(t._s(t.$t("message.walletsend_Total")))]),a("span",[t._v(" "+t._s(t.subTotal))])])])],1),a("el-button",{staticClass:"box-base",staticStyle:{width:"200px"},attrs:{type:"primary",round:"",loading:t.loading},on:{click:t.sendByLedger}},[t._v(t._s(t.$t("message.walletsend_Sendbyledger")))]),a("div",{staticClass:"sendsuccess-subtitle",staticStyle:{"text-align":"left","margin-top":"10px"}},[t._v(" * "+t._s(t.$t("message.walletsend_exception"))+" ")])]:t._e(),"load"===t.step?[a("div",{staticClass:"tc",staticStyle:{"margin-top":"40px"}},[a("div",[a("i",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"el-icon-info",staticStyle:{"font-size":"48px",color:"#1890ff"}})]),a("div",{staticClass:"sendsuccess-title"},[t._v(" "+t._s(t.$t("message.walletsend_sign"))+" ")]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" "+t._s(t.$t("message.walletsend_openledger"))+" ")]),a("div",[a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{round:""},on:{click:t.goSend}},[t._v(t._s(t.$t("message.walletsend_Canceltransaction")))])],1)])]:t._e(),"ok"===t.step?[a("div",{staticClass:"tc",staticStyle:{"margin-top":"40px"}},[t._m(0),a("div",{staticClass:"sendsuccess-title"},[t._v(t._s(t.$t("message.walletsend_Success"))+"!")]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" "+t._s(t.$t("message.walletsend_BlockHeight"))+": "),a("a",{attrs:{href:t.tx?"#/block/"+t.tx.height:"javascript:void(0)"}},[t._v(" "+t._s(t.tx&&"#"+t.tx.height||"--"))])]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" "+t._s(t.$t("message.walletsend_TxHash"))+": "),a("a",{staticStyle:{"font-size":"12px"},attrs:{href:t.tx?"#/tx/"+t.tx.txhash:"javascript:void(0)"}},[t._v(" "+t._s(t.tx&&t.tx.txhash||"--"))])]),a("div",[a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{round:""},on:{click:t.goSend}},[t._v(t._s(t.$t("message.walletsend_SendAgain")))])],1)])]:t._e(),"warn"===t.step?[a("div",{staticClass:"tc",staticStyle:{"margin-top":"40px"}},[t._m(1),a("div",{staticClass:"sendsuccess-title"},[t._v(t._s(t.$t("message.walletsend_checkit")))]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" "+t._s(t.$t("message.walletsend_notbeenfoun"))+" ")]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" "+t._s(t.$t("message.walletsend_TxHash"))+": "),a("a",{staticStyle:{"font-size":"12px"},attrs:{href:t.txhash?"#/tx/"+t.txhash:"javascript:void(0)"}},[t._v(" "+t._s(t.txhash||"--"))])]),a("div",[a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{round:"",loading:t.loading},on:{click:t.checkTx}},[t._v(t._s(t.$t("message.walletsend_gettransaction")))])],1)])]:t._e(),"error"===t.step?[a("div",{staticClass:"tc",staticStyle:{"margin-top":"40px"}},[t._m(2),a("div",{staticClass:"sendsuccess-title"},[t._v(t._s(t.$t("message.walletsend_SubmissionFailed")))]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" "+t._s(t.$t("message.walletsend_pleasecheck"))+" ")]),a("div",[a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{round:"",loading:t.loading},on:{click:t.goSend}},[t._v(t._s(t.$t("message.walletsend_SendAgain")))])],1)])]:t._e()],2)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("i",{staticClass:"el-icon-circle-check",staticStyle:{"font-size":"48px",color:"#52c41a"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"font-size":"48px",color:"#faad14"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"48px",color:"#ff4d4f"}})])}],i=a("251c"),s=a("1da1"),o=(a("96cf"),a("a9e3"),a("d9bc")),l=a("cf45"),c=a("e4e9"),d=a("901e"),u=a.n(d),p={created:function(){var t=this.$route.query.address;t&&(this.address=t,this.initAccount(t),this.getAuthAccounts())},data:function(){return{available:0,noticOk:"",noticeMsg:"",form:{amount:0,toAddress:"",memo:this.$t("message.walletsend_memodefault")},address:"",account:{account_number:"",sequence:"",coins:[],type:""},step:"form",loading:!1,gas:3575,tx:null,txhash:"",numAccount:0,numIndex:0}},filters:{shortAddress:function(t){return t.substr(0,12)+"..."+t.substr(-12,12)}},computed:{subTotal:function(){if(this.gas){var t=new u.a(Object(o["a"])(Number(this.gas))).plus(this.form.amount);return t}},gasAtom:function(){return Object(o["a"])(Number(this.gas))}},methods:{initAccount:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loading=!0,a.next=3,e.$api.fetch("getAuthAccounts",{address:t});case 3:n=a.sent,e.loading=!1,e.account=n;case 6:case"end":return a.stop()}}),a)})))()},setMax:function(){var t=new u.a(this.available).minus(this.gasAtom);this.form.amount=Number(t)},sendByLedger:function(){this.form.toAddress&&this.form.amount?this.signLedger():this.noticeMsg=this.$t("message.walletsend_Pleaseinputform")},signLedger:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n,r,i,d,u,p,m,f,v,g,h,b,_,x;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,a=t.form,n=a.toAddress,r=a.memo,i=a.amount,d=t.account,u=d.account_number,p=d.sequence,m=Object(l["a"])(window.chain.unit),f=[{amount:Object(o["e"])(i),denom:m}],v=t.address,g=t.gas,h={senderAddress:v,toAddress:n,amounts:f,memo:r,account_number:u,sequence:p,gas:g,amount:Object(o["e"])(i),account:t.numAccount,index:t.numIndex},t.step="load",e.prev=9,e.next=12,Object(c["b"])(h);case 12:b=e.sent,e.next=20;break;case 15:e.prev=15,e.t0=e["catch"](9),t.noticeMsg=e.t0.message,t.loading=!1,t.goSend();case 20:if(b){e.next=22;break}return e.abrupt("return");case 22:return e.next=24,t.$api.fetch("postTxs",{txBroadcast:b});case 24:if(_=e.sent,_.txhash){e.next=28;break}return t.step="error",e.abrupt("return");case 28:x=_.txhash,t.txhash=x,t.noticOk=t.$t("message.walletsend_successfulsignature"),setTimeout(Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.checkTx();case 2:case"end":return e.stop()}}),e)}))),1e4);case 32:case"end":return e.stop()}}),e,null,[[9,15]])})))()},checkTx:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,t.$api.fetch("getTxsHash",{hash:t.txhash});case 4:a=e.sent,e.next=11;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log(e.t0),a=e.t0;case 11:t.loading=!1,a||(t.step="warn"),a.height&&(t.step="ok",t.tx=a);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})))()},getAuthAccounts:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.address,t.loading=!0,e.next=4,t.$api.fetch("getAuthAccounts",{address:a});case 4:if(n=e.sent,n){e.next=7;break}return e.abrupt("return");case 7:t.available=Number(n.available),t.loading=!1;case 9:case"end":return e.stop()}}),e)})))()},goSend:function(){this.step="form"}}},m={mixins:[p],data:function(){var t=this,e=function(e,a,n){if(!a)return n(new Error(t.$t("message.walletsend_Pleaseinputtoaddress")));try{i["c"].decode(a),n()}catch(r){n(new Error(r.message))}};return{rules:{toAddress:[{required:!0,validator:e,trigger:"blur"}],amount:[{required:!0,trigger:"blur",message:this.$t("message.walletsend_pleaseinputamount")},{min:0,trigger:"blur",message:this.$t("message.walletsend_pleaseinputamount")}]}}},watch:{noticeMsg:function(t){t&&(this.$message.error(t),this.noticeMsg="")},noticOk:function(t){t&&(this.$message.success(t),this.noticeOk="")}}},f=m,v=(a("cbe0"),a("2877")),g=Object(v["a"])(f,n,r,!1,null,"15a822b6",null);e["default"]=g.exports},"572d":function(t,e,a){var n=a("844d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("ffa687ce",n,!0,{sourceMap:!1,shadowMode:!1})},"59d8":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".topbar .el-menu{background-color:transparent}.topbar .el-menu--horizontal>.el-submenu .el-submenu__title:hover{background-color:transparent;color:#fff}.topbar .el-menu--horizontal>.el-submenu .el-submenu__title{height:46px;line-height:46px}.drawer-class{margin-top:48px;-webkit-box-shadow:none;box-shadow:none;border-bottom:1px solid #eee}",""]),t.exports=e},"5a34":function(t,e,a){var n=a("44e7");t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c2f":function(t,e,a){"use strict";a.r(e);var n,r=function(){var t=this,e=this,a=e.$createElement,n=e._self._c||a;return n("div",[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"bg-white box-dark governance-title-panel"},[n("div",{staticClass:"flex-center mb-10",staticStyle:{"align-items":"flex-start"}},[e.item.avatar?n("el-avatar",{staticStyle:{"margin-right":"20px"},attrs:{src:e.item.avatar,shape:"square",size:60}}):e._e(),n("div",{staticClass:"governance-id-title"},[n("div",[e._v(e._s(e.item.moniker))]),n("div",[e.item.identity?n("el-tag",{staticStyle:{"align-self":"flex-end","margin-right":"10px"},attrs:{type:"info",size:"mini"}},[e._v(e._s(e.item.identity))]):e._e(),e.item.website?n("el-tag",{staticStyle:{"align-self":"flex-end"},attrs:{type:"info",size:"mini"}},[e._v(e._s(e.item.website))]):e._e()],1)]),n("div",{staticClass:"governance-id-sub"},[n("div",{staticClass:"governance-id-subvalue",staticStyle:{color:"#ffa607"}},[e._v(e._s(e.earningRate.rewards))]),n("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.validatoraddress_EarningRate")))])]),n("div",{staticClass:"flex-1"})],1),n("div",{staticClass:"mb-20",staticStyle:{color:"#999"}},[e._v(e._s(e.item.details))]),n("el-divider"),n("el-row",[n("el-col",{staticClass:"mb-20",attrs:{sm:10,xs:24}},[n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_VotingPower"))+":")]),n("span",{staticClass:"governance-id-val",staticStyle:{"font-size":"16px"}},[e._v(" "+e._s(e.item.voting_power)+" "),n("span",{staticStyle:{"font-size":"14px"}},[e._v("("+e._s(e.voting_power_percent)+")")])])]),n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_SelfDelegation"))+":")]),n("span",{staticClass:"governance-id-val",staticStyle:{"font-size":"16px"}},[e._v(" "+e._s(e.selfShare.shares_str)+" "),n("span",{staticStyle:{"font-size":"14px"}},[e._v("("+e._s(e.selfShare.shares_percent||"--")+")")])])]),n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_Uptime"))+":")]),n("span",{staticClass:"governance-id-val",staticStyle:{"font-size":"16px"}},[e._v(" "+e._s(e.uptime.percent)+" "),n("span",{staticStyle:{"font-size":"14px"}},[e._v("("+e._s(e.uptime.missed_blocks_counter)+")")])])]),n("div",{staticClass:"mb-10"},[e._v(e._s(e.$t("message.validatoraddress_Commission"))+":")]),n("div",{staticClass:"flex-center",staticStyle:{"justify-content":"flex-start","align-items":"flex-start"}},[n("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-left":"0"}},[n("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.validatoraddress_Rate")))]),n("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.commission_rate_percent))])]),n("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-left":"30px"}},[n("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.validatoraddress_Max")))]),n("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.commission_rate_max_percent))])]),n("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-left":"30px"}},[n("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.validatoraddress_Change")))]),n("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.commission_rate_max_change_percent))])])])]),n("el-col",{staticClass:"mb-20 address-area",attrs:{sm:14,xs:24}},[n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_Address"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.userAddress))])]),n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_ValidatorAddress"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.operator_address))])]),n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_Publickey"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.consensus_pubkey))])]),n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.validatoraddress_HEXAddress"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.hexAddress))])])])],1),n("div",{staticClass:"flex-center"},[n("div",{staticClass:"governance-tab",class:{"governance-tab-active":"Votes"===e.tab},on:{click:function(){t.tab="Votes"}}},[n("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"text"}},[e._v(e._s(e.$t("message.validatoraddress_Info")))])],1),n("div",{staticClass:"flex-1"})])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:"Votes"===e.tab,expression:"tab === 'Votes'"}]},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:24,sm:24}},[n("div",{staticClass:"bg-white box-dark mt-20"},[n("div",{staticStyle:{padding:"10px 15px","border-bottom":"1px solid #eee"}},[e._v(e._s(e.$t("message.validatoraddress_Delegations")))]),n("div",{staticStyle:{padding:"0 10px"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.delegationList}},[n("el-table-column",{attrs:{prop:"delegator_address",label:e.$t("message.validatoraddress_Delegator")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.addressObj[t.row.delegator_address]?n("a",{attrs:{href:"#/validator/"+e.addressObj[t.row.delegator_address].operator_address}},[e._v(e._s(e.addressObj[t.row.delegator_address].moniker))]):n("span",[e._v(e._s(t.row.delegator_address))])]}}])}),n("el-table-column",{attrs:{prop:"shares_str",label:e.$t("message.validatoraddress_Amount"),width:"200px"}}),n("el-table-column",{attrs:{prop:"shares_percent",label:e.$t("message.validatoraddress_Share"),width:"100px"}}),n("dingyi-empty",{attrs:{slot:"empty",loading:e.loadingDelegations},slot:"empty"})],1)],1)])])],1)],1)])},i=[],s=a("ade3"),o=a("b85c"),l=a("1da1"),c=(a("96cf"),a("d9bc")),d=a("251c"),u=a("0d5e"),p=function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var a,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.identity,t.next=3,u["a"].get("/_/api/1.0/user/lookup.json",{params:{key_suffix:a,fields:"pictures"},headers:{server:"https://keybase.io"}});case 3:return n=t.sent,r="",n.them&&n.them.length>0&&(r=n.them[0].pictures.primary.url),t.abrupt("return",{avatar:r});case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),m=p,f=(a("b680"),{computed:{earningRate:function(){if(!this.inflation_val||!this.tokens.bonded_tokens_val||!this.totalTokens.amount||!this.item.commission_rate)return{percent:"--",rewards:"--"};var t=this.inflation_val/(this.tokens.bonded_tokens_val/this.totalTokens.amount),e=(100*t).toFixed(2)+"%",a=(t*(1-this.item.commission_rate)*100).toFixed(2)+"%";return{rewards:a,percent:e,value:t}}},data:function(){return{totalTokens:{amount:null},tokens:{bonded_tokens:"--",bonded_tokens_val:null},inflation_val:null}},methods:{initEarningRate:function(){this.getSupplyTotal(),this.getStakingPool(),this.getMintingInflation()},getSupplyTotal:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSupplyTotal");case 2:a=e.sent,t.totalTokens=a;case 4:case"end":return e.stop()}}),e)})))()},getStakingPool:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.tokens=a;case 4:case"end":return e.stop()}}),e)})))()},getMintingInflation:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getMintingInflation");case 2:a=e.sent,t.inflation_val=a.inflation_val;case 4:case"end":return e.stop()}}),e)})))()}}}),v=(a("a9e3"),{computed:{uptime:function(){var t=this.parameters.signed_blocks_window,e=this.signInfo.missed_blocks_counter;if(!t||!e)return{percent:"--",missed_blocks_counter:"--"};var a=Object(c["c"])((t-Number(e))/t);return{percent:a,missed_blocks_counter:e}}},data:function(){return{signInfo:{missed_blocks_counter:null},parameters:{signed_blocks_window:null}}},methods:{initUptime:function(){this.getSlashingValidatorsSigningInfo(),this.getSlashingParameters()},getSlashingValidatorsSigningInfo:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSlashingValidatorsSigningInfo",{validatorAddress:t.item.consensus_pubkey}).catch((function(t){}));case 2:if(a=e.sent,a){e.next=5;break}return e.abrupt("return");case 5:t.signInfo=a;case 6:case"end":return e.stop()}}),e)})))()},getSlashingParameters:function(){var t=this;return Object(l["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSlashingParameters");case 2:a=e.sent,t.parameters=a;case 4:case"end":return e.stop()}}),e)})))()}}}),g=a("636f"),h=(n={mixins:[f,v,g["a"]],computed:{total_deposit:function(){return"--"}},data:function(){return{loading:!1,loadingDelegations:!1,address:"",item:{},delegationList:[],selfShare:{}}}},Object(s["a"])(n,"computed",{voting_power_percent:function(){return this.item.tokens&&this.totalTokens.amount?Object(c["c"])(this.item.tokens/this.totalTokens.amount):"--"}}),Object(s["a"])(n,"created",(function(){this.initData()})),Object(s["a"])(n,"activated",(function(){this.initData()})),Object(s["a"])(n,"methods",{back:function(){this.$router.back()},initData:function(){var t=this.$route.params.address;this.address=t,this.item={},this.getValidatorsAddress(t),this.getStakingValidatorsDelegations(t),this.initEarningRate()},getValidatorsAddress:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loading=!0,a.next=3,e.$api.fetch("getStakingValidatorsValidatorAddress",{validatorAddress:t}).catch((function(t){console.log(t)}));case 3:if(n=a.sent,e.loading=!1,n){a.next=7;break}return a.abrupt("return");case 7:e.item=n,e.initUptime(),e.getKeyBase(n.identity);case 10:case"end":return a.stop()}}),a)})))()},getStakingValidatorsDelegations:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loadingDelegations=!0,a.next=3,e.$api.fetch("getStakingValidatorsDelegations",{validatorAddress:t});case 3:if(n=a.sent,e.loadingDelegations=!1,n){a.next=7;break}return a.abrupt("return");case 7:e.delegationList=n,e.selfDelegations(n);case 9:case"end":return a.stop()}}),a)})))()},selfDelegations:function(t){var e,a=Object(d["d"])(this.address),n=Object(o["a"])(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;a===r.delegator_address&&(this.selfShare=r)}}catch(i){n.e(i)}finally{n.f()}},getKeyBase:function(t){var e=this;return Object(l["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,m({identity:t});case 2:n=a.sent,e.item.avatar=n.avatar;case 4:case"end":return a.stop()}}),a)})))()}}),n),b=a("d75d"),_={components:{RateBar:b["a"]},mixins:[h],data:function(){return{tab:"Votes"}}},x=_,w=(a("0dd4"),a("2877")),y=Object(w["a"])(x,r,i,!1,null,"19eea813",null);e["default"]=y.exports},"5e73":function(t,e,a){"use strict";a("db0f")},"5f14":function(t,e,a){"use strict";a("b123")},"61b3":function(t,e,a){"use strict";var n=a("1da1");a("96cf");e["a"]={created:function(){this.fetchTotalBondedTokens()},data:function(){return{address:"",loading:!1}},methods:{init:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,t.$route.query.address&&(t.address=t.$route.query.address),e.next=4,t.$api.fetch("getGovProposals");case 4:a=e.sent,t.loading=!1,t.list=a||[];case 7:case"end":return e.stop()}}),e)})))()},fetchTotalBondedTokens:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.$store.commit("bondedTokensSet",a.bonded_tokens_val),t.init();case 5:case"end":return e.stop()}}),e)})))()}}}},"623c":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px"}},[a("div",{staticClass:"list-title"},[t._v("Pricefeed")]),a("dingyi-data-table",{ref:"dt",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.datas,columns:t.columns,loading:t.loading}})],1)},r=[],i=a("1da1"),s=a("b85c"),o=(a("96cf"),{data:function(){this.$createElement;return{datas:[],columns:[{label:"oracles",prop:"oracles",render:function(t,e){var a,n=e.props.scope.row,r=n||{},i=r.oracles,o=[],l=Object(s["a"])(i);try{for(l.s();!(a=l.n()).done;){var c=a.value;o.push(t("div",{style:"margin-bottom: 5px;"},[t("el-tag",{attrs:{type:"info"}},[c])]))}}catch(d){l.e(d)}finally{l.f()}return t("el-popover",{attrs:{placement:"right-start",trigger:"click"}},[t("div",[o]),t("el-button",{attrs:{type:"text"},slot:"reference",style:"color: #409EFF"},["Show"])])}},{label:"market_id",prop:"market_id"},{label:"base_asset",prop:"base_asset"},{label:"quote_asset",prop:"quote_asset"},{label:"active",prop:"active"}],loading:!1}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$axios.get("/pricefeed/markets",{headers:{server:window.chain.lcd}});case 3:a=e.sent,t.loading=!1,t.datas=a.result;case 6:case"end":return e.stop()}}),e)})))()}}}),l=o,c=(a("9758"),a("2877")),d=Object(c["a"])(l,n,r,!1,null,"65c15444",null);e["default"]=d.exports},"636f":function(t,e,a){"use strict";var n=a("1da1");a("96cf");e["a"]={activated:function(){this.getStakingValidatorsObj()},created:function(){this.getStakingValidatorsObj()},data:function(){return{hexObj:{},addressObj:{},validatorObj:{}}},methods:{getStakingValidatorsObj:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingValidatorsObj",{});case 2:a=e.sent,t.hexObj=a.hexObj,t.addressObj=a.addressObj,t.validatorObj=a.validatorObj;case 6:case"end":return e.stop()}}),e)})))()}}}},6389:function(t,e,a){"use strict";a("ada8")},6406:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg-white",staticStyle:{padding:"10px 15px"}},[a("div",{staticClass:"list-title"},[t._v("BEP3")]),a("dingyi-data-table",{ref:"dt",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.datas,columns:t.columns,loading:t.loading}})],1)},r=[],i=a("1da1"),s=(a("96cf"),{data:function(){this.$createElement;return{datas:[],columns:[{label:"amount",prop:"amount",render:function(t,e){var a=e.props.scope.row,n=a||{},r=n.amount,i=r&&r[0]||{amount:"",denom:"--"};return t("div",[i.amount+i.denom])}},{label:"random_number_hash",prop:"random_number_hash"},{label:"expire_height",prop:"expire_height"},{label:"timestamp",prop:"timestamp"},{label:"sender",prop:"sender"},{label:"recipient",prop:"recipient"},{label:"sender_other_chain",prop:"sender_other_chain"},{label:"recipient_other_chain",prop:"recipient_other_chain"},{label:"closed_block",prop:"closed_block"},{label:"status",prop:"status"},{label:"cross_chain",prop:"cross_chain"},{label:"direction",prop:"direction"}],loading:!1}},created:function(){this.init()},methods:{init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$axios.get("/bep3/swaps",{headers:{server:window.chain.lcd}});case 3:a=e.sent,t.loading=!1,t.datas=a.result;case 6:case"end":return e.stop()}}),e)})))()}}}),o=s,l=(a("14c0"),a("2877")),c=Object(l["a"])(o,n,r,!1,null,"07c3a3c2",null);e["default"]=c.exports},"642a":function(t,e,a){"use strict";a("469d")},"677e":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"area-title txitem-header"},[t._v(t._s(t.$t("message.blockheight_header")))]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"bg-white",staticStyle:{padding:"20px","min-height":"140px"}},t._l(t.header,(function(e,n){return a("el-row",{key:n},[a("el-col",{staticClass:"tx-item-title",attrs:{xs:24,sm:24,md:8}},[t._v(t._s(n))]),"Hash"===n.substr(-4)||"Proposer"===n.substr(-8)||"提议人"===n&&!t.operator_address?a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[a("div",{staticClass:"text-overflow"},[t._v(t._s(e))])]):"Proposer"!==n.substr(-8)&&"提议人"!==n||!t.operator_address?a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[t._v(t._s(e))]):a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[a("a",{attrs:{href:"#/validator/"+t.operator_address}},[t._v(t._s(e))])])],1)})),1),a("div",{staticClass:"area-title block-more-title"},[t._v(t._s(t.$t("message.blockheight_more")))]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"bg-white block-more-wrap"},t._l(t.block,(function(e,n){return a("el-row",{key:n},[a("el-col",{staticClass:"tx-item-title",attrs:{xs:24,sm:24,md:8}},[t._v(t._s(n))]),"Chain Id"===n?a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[a("el-tag",{attrs:{type:"primary"}},[t._v(t._s(e))])],1):"Hash"===n.substr(-4)?a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[a("div",{staticClass:"text-overflow"},[t._v(t._s(e))])]):a("el-col",{staticClass:"block-val",attrs:{xs:24,sm:24,md:16}},[t._v(t._s(e))])],1)})),1),a("div",{staticClass:"area-title block-more-title"},[t._v(t._s(t.$t("message.validators")))]),a("dingyi-data-table",{ref:"dtPrecommits",attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.precommits,columns:t.precommitsColumns,loading:t.precommitsLoading}})],1)},r=[],i=a("ade3"),s=a("1da1"),o=(a("96cf"),{mixins:[],data:function(){var t=this;this.$createElement;return{operator_address:"",loading:!1,header:{},block:{},height:"",precommits:[],precommitsLoading:!1,precommitsColumns:[{label:this.$t("message.blockheight_Address"),prop:"address",width:400,render:function(e,a){var n=a.props.scope.row,r=n.address,i=t.validatorsObjHex&&t.validatorsObjHex[r]&&t.validatorsObjHex[r],s=i&&i.moniker||r,o=i?e("a",{attrs:{to:{path:"/validator/".concat(i.operator_address)}}},[s]):e("div",[s]);return o}},{label:this.$t("message.blockheight_VotingPower"),prop:"voting_power"},{label:this.$t("message.blockheight_ProposerPriority"),prop:"proposer_priority"}]}},created:function(){this.init()},methods:{init:function(){this.height=this.$route.params.height,this.fetchBlockItem(),this.showPrecommits()},showPrecommits:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.precommits=[],t.precommitsLoading=!0,e.next=4,t.$api.fetch("getRpcValidators",{height:t.height});case 4:if(a=e.sent,t.precommitsLoading=!1,a){e.next=8;break}return e.abrupt("return");case 8:t.precommits=a.validators;case 9:case"end":return e.stop()}}),e)})))()},fetchBlockItem:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n,r,s,o,l,c,d,u,p,m,f,v,g,h,b,_,x,w,y,k,C,S,$,j,O,R;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.$api.fetch("getBlocksHeight",{height:t.height});case 3:if(r=e.sent,t.loading=!1,r){e.next=7;break}return e.abrupt("return");case 7:s=r.block.evidence.evidence,o=r.block_meta||r,l=o.block_id,c=l.hash,d=l.parts,u=o.block&&o.block.header||o.header,p=u.height,m=u.app_hash,f=u.chain_id,v=u.consensus_hash,g=u.evidence_hash,h=u.data_hash,b=u.last_block_id,_=u.last_commit_hash,x=u.last_results_hash,w=u.next_validators_hash,y=u.num_txs,k=u.proposer_address,C=u.time,S=u.total_txs,$=u.validators_hash,j=u.version,O=b.hash||"",R=k,t.header=(a={},Object(i["a"])(a,t.$t("message.blockheight_Height"),p),Object(i["a"])(a,t.$t("message.blockheight_Proposer"),R),Object(i["a"])(a,t.$t("message.blockheight_BlockHash"),c),Object(i["a"])(a,t.$t("message.blockheight_LastBlockHash"),O),Object(i["a"])(a,t.$t("message.blockheight_BlockTime"),C),Object(i["a"])(a,t.$t("message.blockheight_NumberofTransactions"),y),Object(i["a"])(a,t.$t("message.blockheight_TotalofTransactions"),S),a),t.block=(n={},Object(i["a"])(n,t.$t("message.blockheight_ChainId"),f),Object(i["a"])(n,t.$t("message.blockheight_BlockApp"),j.app),Object(i["a"])(n,t.$t("message.blockheight_BlockVersion"),j.block),Object(i["a"])(n,t.$t("message.blockheight_Evidence"),s||"--"),Object(i["a"])(n,t.$t("message.blockheight_EvidenceHash"),g||"--"),Object(i["a"])(n,t.$t("message.blockheight_AppHash"),m),Object(i["a"])(n,t.$t("message.blockheight_ValidatorsHash"),$),Object(i["a"])(n,t.$t("message.blockheight_NextValidatorsHash"),w),Object(i["a"])(n,t.$t("message.blockheight_ConsensusHash"),v),Object(i["a"])(n,t.$t("message.blockheight_PartsHash"),d.hash),Object(i["a"])(n,t.$t("message.blockheight_DataHash"),h),Object(i["a"])(n,t.$t("message.blockheight_LastCommitHash"),_),Object(i["a"])(n,t.$t("message.blockheight_LastResultsHash"),x||"--"),n);case 15:case"end":return e.stop()}}),e)})))()}}}),l=o,c=(a("eb9d"),a("2877")),d=Object(c["a"])(l,n,r,!1,null,"dee4b840",null);e["default"]=d.exports},"6d26":function(t,e,a){var n=a("c24e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("fc3f20ac",n,!0,{sourceMap:!1,shadowMode:!1})},"6e17":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".ratebar-item[data-v-2803c5ec]{color:#343a40;width:50px;text-align:center}.rateline-line[data-v-2803c5ec]{width:20px;margin:0 auto}.ratebar-text[data-v-2803c5ec]{font-size:10px}.ratebar-scale[data-v-2803c5ec]{width:30px;margin:0 auto;position:relative;border-top:1px dashed #e66}",""]),t.exports=e},"72eb":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".ratebar-item[data-v-c3025474]{color:#343a40;width:50px;text-align:center}.rateline-line[data-v-c3025474]{width:20px;margin:0 auto}.ratebar-text[data-v-c3025474]{font-size:10px}.ratebar-scale[data-v-c3025474]{width:30px;margin:0 auto;position:relative;border-top:1px dashed #e66}",""]),t.exports=e},7364:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".dashboard-item[data-v-a779bc14]{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;background:#fff;padding:8px 10px;border:1px solid #eee}.dashboard-logo[data-v-a779bc14]{width:30px;height:30px;border-radius:50%;vertical-align:middle;margin-right:8px}.dashboard-item[data-v-a779bc14]:hover{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.dashboard-item-active[data-v-a779bc14],.dashboard-item[data-v-a779bc14]:hover{border:1px solid #343a3f}.dashboard-title[data-v-a779bc14]{font-weight:400;font-size:16px;color:#333}.dashboard-text[data-v-a779bc14]{line-height:30px;font-size:16px;color:#333}",""]),t.exports=e},"73ab":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".area-title[data-v-5ecdb0d7]{font-size:14px;color:#333;margin-bottom:10px}.parameter-item[data-v-5ecdb0d7]{margin-bottom:15px}.parameter-item-content[data-v-5ecdb0d7]{background:#fff;padding:10px 20px;border:1px solid #eee}.parameter-item-content[data-v-5ecdb0d7]:hover{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);border:1px solid #343a40}.parameter-item-title[data-v-5ecdb0d7]{font-size:16px;font-weight:700}.parameter-item-value[data-v-5ecdb0d7]{color:#343a40;font-size:18px;text-align:center;padding:8px 0;font-weight:500}.parameter-item-subtitle[data-v-5ecdb0d7]{color:#98a6ad}.parameter-item-subvalue[data-v-5ecdb0d7]{float:right;color:#333}.parameter-item-subvalue2[data-v-5ecdb0d7]{font-size:14px;color:#98a6ad}.parameter-item-subvalue2 span[data-v-5ecdb0d7]{float:right;color:#333}",""]),t.exports=e},"73ba":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-row",{staticStyle:{"margin-bottom":"5px"},attrs:{gutter:10}},[a("el-col",{attrs:{xs:24,sm:12,md:12,lg:6,xl:6}},[a("div",{staticClass:"flex-center flex-sb pagevalidators-item border-eee"},[a("div",{staticClass:"pagevalidators-iconwrap flex-center flex-justifycenter validators-1"},[a("i",{staticClass:"iconfont icon-block pagevalidators-icon validators-1-icon"})]),a("div",{staticClass:"pagevalidators-text"},[a("div",{staticClass:"pagevalidators-number",attrs:{"element-loading-spinner":"el-icon-loading"}},[t._v(t._s(t.blockHeight))]),a("div",{staticClass:"pagevalidators-subtitle"},[t._v(t._s(t.$t("message.validator_BlockHeight")))])])])]),a("el-col",{attrs:{xs:24,sm:12,md:12,lg:6,xl:6}},[a("div",{staticClass:"flex-center flex-sb pagevalidators-item border-eee"},[a("div",{staticClass:"pagevalidators-iconwrap flex-center flex-justifycenter validators-2"},[a("i",{staticClass:"iconfont icon-validators pagevalidators-icon validators-2-icon"})]),a("div",{staticClass:"pagevalidators-text"},[a("div",{staticClass:"pagevalidators-number",attrs:{"element-loading-spinner":"el-icon-loading"}},[t._v(t._s(t.validatorsLength))]),a("div",{staticClass:"pagevalidators-subtitle"},[t._v(t._s(t.$t("message.validator_Validators")))])])])]),a("el-col",{attrs:{xs:24,sm:12,md:12,lg:6,xl:6}},[a("div",{staticClass:"flex-center flex-sb pagevalidators-item border-eee"},[a("div",{staticClass:"pagevalidators-iconwrap flex-center flex-justifycenter validators-3"},[a("i",{staticClass:"iconfont icon-BondedTokens pagevalidators-icon validators-3-icon"})]),a("div",{staticClass:"pagevalidators-text"},[a("div",{staticClass:"pagevalidators-number",attrs:{"element-loading-spinner":"el-icon-loading"}},[t._v(t._s(t.tokens.bonded_tokens))]),a("div",{staticClass:"pagevalidators-subtitle"},[t._v(t._s(t.bondedRate.percent)+" / "+t._s(t.tokenTotal_str)+" "+t._s(t.$t("message.validator_Bonded")))])])])]),a("el-col",{attrs:{xs:24,sm:12,md:12,lg:6,xl:6}},[a("div",{staticClass:"flex-center flex-sb pagevalidators-item border-eee"},[a("div",{staticClass:"pagevalidators-iconwrap flex-center flex-justifycenter validators-4"},[a("i",{staticClass:"iconfont icon-BlockTime pagevalidators-icon validators-4-icon"})]),a("div",{staticClass:"pagevalidators-text"},[a("div",{staticClass:"pagevalidators-number",attrs:{"element-loading-spinner":"el-icon-loading"}},[t._v(t._s(t.earningRate.percent))]),a("div",{staticClass:"pagevalidators-subtitle"},[t._v(t._s(t.$t("message.validator_EarningRate")))])])])])],1),a("div",{staticClass:"validators-table-wrap border-eee"},[a("div",{staticClass:"flex-center mb-10"},[a("span",{staticClass:"validators-table-title"},[t._v(t._s(t.$t("message.validator_Validators")))]),a("div",{staticStyle:{flex:"1"}}),a("div",[a("el-radio-group",{staticClass:"box-base",attrs:{size:"mini"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"bonded"}},[t._v(t._s(t.$t("message.validator_Active")))]),a("el-radio-button",{attrs:{label:"unbonded"}},[t._v(t._s(t.$t("message.validator_Inactive")))])],1)],1)]),a("dingyi-data-table",{directives:[{name:"show",rawName:"v-show",value:"bonded"===t.type,expression:"type === 'bonded'"}],ref:"dt",attrs:{tableRowClassName:t.tableRowClassName,noLocalPaging:!0,toolbar:!1,defaultSort:{prop:"voting_power",order:"descending"},btns:{noFresh:!0,index:!0},datas:t.validators,columns:t.columns,loading:t.loading}}),a("dingyi-data-table",{directives:[{name:"show",rawName:"v-show",value:"unbonded"===t.type,expression:"type === 'unbonded'"}],attrs:{noLocalPaging:!0,toolbar:!1,btns:{noFresh:!0,index:!0},datas:t.validatorsUnbonded,columns:t.columnsUnbonded,loading:t.loading}}),a("div",{staticClass:"flex-center",staticStyle:{"margin-top":"20px"}},[a("p",{staticStyle:{"margin-right":"20px"}},[t._v(t._s(t.$t("message.validator_Legend")))]),a("div",{staticStyle:{width:"20px",height:"20px",background:"#f8dbdb","margin-right":"5px"}}),a("p",{staticStyle:{"margin-right":"20px"}},[t._v(" 33.3% "),a("span",[t._v(t._s(t.$t("message.validator_ofbondedtokens")))])]),a("div",{staticStyle:{width:"20px",height:"20px",background:"#faeed9","margin-right":"5px"}}),a("p",[t._v("66.7% "+t._s(t.$t("message.validator_ofbondedtokens")))])])],1)],1)},r=[],i=(a("a9e3"),a("99af"),a("3835")),s=a("1da1"),o=a("b85c"),l=(a("96cf"),a("b680"),a("d3b7"),a("3ca3"),a("ddb0"),{created:function(){this.initData()},computed:{validatorsLength:function(){if(this.earningRate&&this.earningRate.value){var t,e=Object(o["a"])(this.validators);try{for(e.s();!(t=e.n()).done;){var a=t.value;a.rewards=(this.earningRate.value*(1-a.commission_rate)*100).toFixed(2)+"%"}}catch(n){e.e(n)}finally{e.f()}}return this.validators.length||"--"},earningRate:function(){if(!this.inflation_val||!this.bondedRate.val)return{percent:"--",value:null};var t,e=this.inflation_val/this.bondedRate.val,a=(100*e).toFixed(2)+"%",n=Object(o["a"])(this.validators);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.rewards=(e*(1-r.commission_rate)*100).toFixed(2)+"%"}}catch(i){n.e(i)}finally{n.f()}return{percent:a,value:e}},bondedRate:function(){if(!this.tokenTotal||!this.tokens.bonded_tokens_val)return{percent:"--"};var t=this.tokenTotal,e=this.tokens.bonded_tokens_val;return{percent:(e/t*100).toFixed(2)+"%",val:e/t}}},data:function(){return{validators:[],validatorsUnbonded:[],blockHeight:"--",tokenTotal:null,tokenTotal_str:"--",tokens:{bonded_tokens:"--",bonded_tokens_val:null},inflation_val:null,type:"bonded"}},methods:{initData:function(){this.initValidator(),this.getSupplyTotal(),this.getStakingPool(),this.getMintingInflation(),this.getUnbondedValidators()},getUnbondedValidators:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingValidators",{status:"V4"===window.chain.api?"BOND_STATUS_BONDED":"bonded"});case 2:if(a=e.sent,a){e.next=5;break}return e.abrupt("return");case 5:t.validatorsUnbonded=a.result;case 6:case"end":return e.stop()}}),e)})))()},initValidator:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,t.initBlockHeight(),e.next=4,t.$api.fetch("getStakingValidators",{status:"V4"===window.chain.api?"BOND_STATUS_BONDED":"bonded"});case 4:if(a=e.sent,a){e.next=7;break}return e.abrupt("return");case 7:t.validators=a.result,t.loading=!1;case 9:case"end":return e.stop()}}),e)})))()},initBlockHeight:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("V2"!==window.chain.api){e.next=7;break}return e.next=3,t.$api.fetch("getValidatorsetsLatest");case 3:a=e.sent,t.blockHeight=a.block_height,e.next=11;break;case 7:return e.next=9,t.$api.fetch("getRpcBlockchain",{minHeight:0,maxHeight:0});case 9:n=e.sent,t.blockHeight=n.last_height;case 11:return e.next=13,t.getValidatorsetsHeight();case 13:case"end":return e.stop()}}),e)})))()},getStakingPool:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.tokens=a;case 4:case"end":return e.stop()}}),e)})))()},getSupplyTotal:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getSupplyTotal");case 2:if(a=e.sent,a){e.next=5;break}return e.abrupt("return");case 5:t.tokenTotal=a.amount,t.tokenTotal_str=a.amount_str;case 7:case"end":return e.stop()}}),e)})))()},getMintingInflation:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getMintingInflation");case 2:a=e.sent,t.inflation_val=a&&a.inflation_val;case 4:case"end":return e.stop()}}),e)})))()},getValidatorsetsHeight:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n,r,s,l,c,d,u,p,m,f,v,g,h,b,_;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.blockHeight-12500,a<=0&&(a=1),e.next=4,Promise.all([t.$api.fetch("getValidatorsetsHeight",{height:t.blockHeight}),t.$api.fetch("getValidatorsetsHeight",{height:a})]);case 4:if(n=e.sent,r=Object(i["a"])(n,2),s=r[0],l=r[1],c={},d={},l){u=Object(o["a"])(l);try{for(u.s();!(p=u.n()).done;)m=p.value,c[m.pub_key]=Number(m.voting_power)}catch(x){u.e(x)}finally{u.f()}f=Object(o["a"])(s);try{for(f.s();!(v=f.n()).done;)g=v.value,d[g.pub_key]=Number(g.voting_power)}catch(x){f.e(x)}finally{f.f()}h=Object(o["a"])(t.validators);try{for(h.s();!(b=h.n()).done;)_=b.value,_.dailyChange=d[_.consensus_pubkey]-(c[_.consensus_pubkey]||0)}catch(x){h.e(x)}finally{h.f()}}case 11:case"end":return e.stop()}}),e)})))()}}}),c={data:function(){this.$createElement;var t=[{label:this.$t("message.validator_Validator"),width:window.innerWidth<800?160:null,sortable:!0,"sort-method":function(t,e){},render:function(t,e){var a=e.props.scope.row,n=a||{description:{}},r=n.moniker,i=n.operator_address;return t("a",{attrs:{href:"#/validator/".concat(i)},class:"flex-center",style:"color: #333;font-size: 14px;"},[t("div",{class:"validators-columns-name font-14"},[r])])}}],e=[{label:this.$t("message.validator_CommissionMax"),prop:"commission",width:(window.innerWidth,180),align:"right",sortable:!0,"sort-method":function(t,e){var a=function(t){var e=t||{commission:{}},a=e.commission_rate;return a};return Number(a(t))-Number(a(e))},render:function(t,e){var a=e.props.scope.row,n=a||{commission:{}},r=n.commission_rate_percent,i=n.commission_rate_max_percent;return t("div",{class:"font-14 text-right"},[r+"/"+i])}},{label:this.$t("message.validator_Rewards"),prop:"commission",align:"right",sortable:!0,width:(window.innerWidth,120),"sort-method":function(t,e){var a=function(t){var e=t||{commission:{}},a=e.rewards;return a};return a(t)-a(e)},render:function(t,e){var a=e.props.scope.row,n=a.rewards;return t("div",{class:"font-14 text-right"},[n||"--"])}}],a=[{label:this.$t("message.validator_BondedTokens"),prop:"tokens",align:"right",width:(window.innerWidth,180),sortable:!0,"sort-method":function(t,e){return Number(t.tokens)-Number(e.tokens)},render:function(t,e){var a=e.props.scope.row,n=a||{tokens:""},r=n.voting_power;return t("div",{class:"font-14 text-right"},[r||"--"])}},{label:this.$t("message.validator_DailyChanges"),prop:"difference",width:(window.innerWidth,150),align:"right",sortable:!0,"sort-method":function(t,e){return t.dailyChange-e.dailyChange},render:function(t,e){var a=e.props.scope.row,n=a||{dailyChange:"--"},r=n.dailyChange;return t("div",{class:"font-14 text-right",style:{color:r>0?"#1abc9c":"#e66"}},[r>0?"+"+r:r<0?r:"--"])}}],n=[{label:this.$t("message.validator_BondedTokens"),prop:"tokens",width:(window.innerWidth,160),align:"right",sortable:!0,"sort-method":function(t,e){return Number(t.tokens)-Number(e.tokens)},render:function(t,e){var a=e.props.scope.row,n=a.voting_power_str;return t("div",{class:"font-14 text-right"},[n||"--"])}},{label:this.$t("message.validator_UnbondingHeight"),prop:"unbonding_height",align:"right",width:(window.innerWidth,180)},{label:this.$t("message.validator_UnbondingTime"),prop:"unbonding_time",width:(window.innerWidth,180),render:function(t,e){var a=e.props.scope.row,n=a||{},r=n.unbonding_time;return t("div",[r])}}];return{columns:[].concat(t,a,e),columnsUnbonded:[].concat(t,n)}}},d={mixins:[c,l],data:function(){return{blockHeight:"--",loading:!1,type:"bonded",tokenObj:{}}},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;if("unbonded"!==this.type){var n=Number(e.tokens),r=this.tokenObj[a-1];a>0&&(n+=r),this.tokenObj[a]=n;var i=n/this.tokens.bonded_tokens_val,s=r/this.tokens.bonded_tokens_val;if(i<=.33||s<=.33&&i>.33)return"less33";if(i<=.67&&i>.33||s<=.67&&s>.33&&i>.67)return"less68"}return""}}},u=d,p=(a("978c"),a("fa32"),a("2877")),m=Object(p["a"])(u,n,r,!1,null,"109b3578",null);e["default"]=m.exports},7672:function(t,e,a){var n=a("f424");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("f594d832",n,!0,{sourceMap:!1,shadowMode:!1})},7821:function(t,e,a){var n=a("1e4b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("0da25b2c",n,!0,{sourceMap:!1,shadowMode:!1})},7861:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.chains.Mainnet?t._e():a("dingyi-empty",{staticStyle:{padding:"60px 15px"}}),t._l(t.chains,(function(e,n){return a("div",{key:n,staticClass:"mb-10"},[a("div",{staticClass:"flex-center mb-10"},[a("div",{staticClass:"dashboard-title"},[t._v(t._s("Mainnet"===n?t.$t("message.mainnet"):"Testnet"===n?t.$t("message.testnet"):n))])]),a("el-row",{attrs:{gutter:10}},t._l(e,(function(e,n){return a("el-col",{key:n,staticStyle:{"margin-bottom":"10px"},attrs:{xs:12,sm:6,md:6,lg:4,xl:4}},[a("div",{staticClass:"dashboard-item",class:{"dashboard-item-active":t.current.chainId===e.chainId},on:{click:function(a){return t.switchChain(e)}}},[a("img",{staticClass:"dashboard-logo",attrs:{src:e.logo}}),a("p",{staticClass:"dashboard-text"},[t._v(t._s(e.name))])])])})),1)],1)}))],2)])},r=[],i=a("0e6a"),s={mixins:[i["a"]]},o=s,l=(a("5f14"),a("2877")),c=Object(l["a"])(o,n,r,!1,null,"a779bc14",null);e["default"]=c.exports},7958:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".governance-title-panel[data-v-c03c89b8]{padding:20px 20px 0 20px}.governance-id-title[data-v-c03c89b8]{padding-right:12px;color:rgba(0,0,0,.85);font-weight:600;font-size:20px;line-height:32px}.governance-tab[data-v-c03c89b8]{width:100px;text-align:center}.governance-tab-active[data-v-c03c89b8]{border-bottom:2px solid #232323}.governance-id-sub[data-v-c03c89b8]{padding-left:40px;text-align:right}.governance-id-subtitle[data-v-c03c89b8]{margin-bottom:4px;color:rgba(0,0,0,.45);font-size:14px}.governance-id-subvalue[data-v-c03c89b8]{color:rgba(0,0,0,.85);font-size:24px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.governance-id-name[data-v-c03c89b8]{color:rgba(0,0,0,.85);font-weight:400;font-size:14px;line-height:1.5715;white-space:nowrap;margin-right:10px}.governance-id-val[data-v-c03c89b8]{color:rgba(0,0,0,.65);font-size:14px;line-height:1.5715}",""]),t.exports=e},"7b5a":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dropdown",{on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link flex-center",staticStyle:{color:"#fff",cursor:"pointer"}},[a("i",{staticClass:"iconfont icon-yuyanqiehuan",staticStyle:{"margin-right":"5px"}}),t._v(" "+t._s(t.$t("message.lang"))+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"en"}},[t._v("English")]),a("el-dropdown-item",{attrs:{command:"cn",divided:""}},[t._v("中文")]),a("el-dropdown-item",{attrs:{command:"it",divided:""}},[t._v("Italiano")]),a("el-dropdown-item",{attrs:{command:"fr",divided:""}},[t._v("Français")]),a("el-dropdown-item",{attrs:{command:"ru",divided:""}},[t._v("Русский")]),a("el-dropdown-item",{attrs:{command:"es",divided:""}},[t._v("Español")])],1)],1)},r=[],i={methods:{handleCommand:function(t){this.$i18n.locale=t,window.localStorage.setItem("lang",t)}}},s=i,o=a("2877"),l=Object(o["a"])(s,n,r,!1,null,null,null);e["a"]=l.exports},"7cf0":function(t,e,a){"use strict";a("c1a0")},"844d":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".logo[data-v-66c7ac0a]{width:50px;height:31px;line-height:31px;font-size:24px;font-weight:700;color:#2e3338;margin:16px 24px 16px 0;float:left}.subtotal-item[data-v-66c7ac0a]{padding:5px 0;font-size:18px;font-weight:400;color:#333}.subtotal-item span[data-v-66c7ac0a]{color:#666;font-size:14px;display:inline-block;font-weight:400;width:100px}.subtotal-total[data-v-66c7ac0a]{border-top:1px solid #eee;margin-top:10px;padding-top:10px}.sendsuccess-title[data-v-66c7ac0a]{color:rgba(0,0,0,.85);font-size:24px;line-height:1.8;text-align:center}.sendsuccess-subtitle[data-v-66c7ac0a]{color:rgba(0,0,0,.45);font-size:14px;line-height:1.6;text-align:center}",""]),t.exports=e},"84ad":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'.M-Flipper{display:inline-block;position:relative;width:60px;height:100px;line-height:100px;border:1px solid #000;border-radius:10px;background:#fff;font-size:66px;color:#fff;-webkit-box-shadow:0 0 6px rgba(0,0,0,.5);box-shadow:0 0 6px rgba(0,0,0,.5);text-align:center;font-family:Helvetica Neue}.M-Flipper .digital:after,.M-Flipper .digital:before{content:"";position:absolute;left:0;right:0;background:#000;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.M-Flipper .digital:before{top:0;bottom:50%;border-radius:10px 10px 0 0;border-bottom:1px solid #666}.M-Flipper .digital:after{top:50%;bottom:0;border-radius:0 0 10px 10px;line-height:0}.M-Flipper.down .front:before{z-index:3}.M-Flipper.down .back:after{z-index:2;-webkit-transform-origin:50% 0;transform-origin:50% 0;-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}.M-Flipper.down .back:before,.M-Flipper.down .front:after{z-index:1}.M-Flipper.down.go .front:before{-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-animation:frontFlipDown .6s ease-in-out both;animation:frontFlipDown .6s ease-in-out both;-webkit-box-shadow:0 -2px 6px hsla(0,0%,100%,.3);box-shadow:0 -2px 6px hsla(0,0%,100%,.3);-webkit-backface-visibility:hidden;backface-visibility:hidden}.M-Flipper.down.go .back:after{-webkit-animation:backFlipDown .6s ease-in-out both;animation:backFlipDown .6s ease-in-out both}.M-Flipper.up .front:after{z-index:3}.M-Flipper.up .back:before{z-index:2;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}.M-Flipper.up .back:after,.M-Flipper.up .front:before{z-index:1}.M-Flipper.up.go .front:after{-webkit-transform-origin:50% 0;transform-origin:50% 0;-webkit-animation:frontFlipUp .6s ease-in-out both;animation:frontFlipUp .6s ease-in-out both;-webkit-box-shadow:0 2px 6px hsla(0,0%,100%,.3);box-shadow:0 2px 6px hsla(0,0%,100%,.3);-webkit-backface-visibility:hidden;backface-visibility:hidden}.M-Flipper.up.go .back:before{-webkit-animation:backFlipUp .6s ease-in-out both;animation:backFlipUp .6s ease-in-out both}@-webkit-keyframes frontFlipDown{0%{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}to{-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}}@keyframes frontFlipDown{0%{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}to{-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}}@-webkit-keyframes backFlipDown{0%{-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}to{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}}@keyframes backFlipDown{0%{-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}to{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}}@-webkit-keyframes frontFlipUp{0%{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}to{-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}}@keyframes frontFlipUp{0%{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}to{-webkit-transform:perspective(160px) rotateX(180deg);transform:perspective(160px) rotateX(180deg)}}@-webkit-keyframes backFlipUp{0%{-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}to{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}}@keyframes backFlipUp{0%{-webkit-transform:perspective(160px) rotateX(-180deg);transform:perspective(160px) rotateX(-180deg)}to{-webkit-transform:perspective(160px) rotateX(0deg);transform:perspective(160px) rotateX(0deg)}}.M-Flipper .number0:after,.M-Flipper .number0:before{content:"0"}.M-Flipper .number1:after,.M-Flipper .number1:before{content:"1"}.M-Flipper .number2:after,.M-Flipper .number2:before{content:"2"}.M-Flipper .number3:after,.M-Flipper .number3:before{content:"3"}.M-Flipper .number4:after,.M-Flipper .number4:before{content:"4"}.M-Flipper .number5:after,.M-Flipper .number5:before{content:"5"}.M-Flipper .number6:after,.M-Flipper .number6:before{content:"6"}.M-Flipper .number7:after,.M-Flipper .number7:before{content:"7"}.M-Flipper .number8:after,.M-Flipper .number8:before{content:"8"}.M-Flipper .number9:after,.M-Flipper .number9:before{content:"9"}',""]),t.exports=e},"8a66":function(t,e,a){var n=a("59d8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("69dd5f09",n,!0,{sourceMap:!1,shadowMode:!1})},"8d53":function(t,e,a){var n=a("84ad");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("19cab654",n,!0,{sourceMap:!1,shadowMode:!1})},"8fbe":function(t,e,a){"use strict";a("03cd")},"935a":function(t,e,a){"use strict";a("3931")},9758:function(t,e,a){"use strict";a("f917")},"978c":function(t,e,a){"use strict";a("cd3f")},9878:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".list-title[data-v-e2911a26]{font-size:18px;font-weight:400;margin-bottom:10px}",""]),t.exports=e},"9e94":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bg-white p-20"},[a("div",{staticStyle:{"margin-bottom":"10px","font-size":"18px","border-bottom":"1px solid #eee","padding-bottom":"10px"}},[t._v(t._s(t.$t("message.createNewChain")))]),a("el-form",{ref:"ruleForm",attrs:{model:t.form,"label-position":"top",rules:t.rules}},[a("el-form-item",{attrs:{label:t.$t("message.chaindadd_name"),prop:"name"}},[a("el-input",{attrs:{placeholder:"Cosmos Hub"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_chainId"),prop:"chainId"}},[a("el-input",{attrs:{placeholder:"cosmoshub-3"},model:{value:t.form.chainId,callback:function(e){t.$set(t.form,"chainId",e)},expression:"form.chainId"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_logo")}},[a("el-input",{attrs:{placeholder:"/static/chains/cosmoshub.svg"},model:{value:t.form.logo,callback:function(e){t.$set(t.form,"logo",e)},expression:"form.logo"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_lcd"),prop:"lcd"}},[a("el-input",{attrs:{placeholder:"https://lcd.nylira.net (Please add the protocol completely, default http)"},model:{value:t.form.lcd,callback:function(e){t.$set(t.form,"lcd",e)},expression:"form.lcd"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_rpc"),prop:"rpc"}},[a("el-input",{attrs:{placeholder:"https://rpc.nylira.net (Please add the protocol completely, default http)"},model:{value:t.form.rpc,callback:function(e){t.$set(t.form,"rpc",e)},expression:"form.rpc"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_prefix"),prop:"prefix"}},[a("el-input",{attrs:{placeholder:"cosmos"},model:{value:t.form.prefix,callback:function(e){t.$set(t.form,"prefix",e)},expression:"form.prefix"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_unit"),prop:"unit"}},[a("el-input",{attrs:{placeholder:"ATOM"},model:{value:t.form.unit,callback:function(e){t.$set(t.form,"unit",e)},expression:"form.unit"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_version")}},[a("el-input",{attrs:{placeholder:"0.32.7"},model:{value:t.form.version,callback:function(e){t.$set(t.form,"version",e)},expression:"form.version"}})],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_api"),prop:"api"}},[a("el-radio-group",{model:{value:t.form.api,callback:function(e){t.$set(t.form,"api",e)},expression:"form.api"}},[a("el-radio",{attrs:{label:"V1"}},[t._v(t._s(t.$t("message.chaindadd_apiV1")))]),a("el-radio",{attrs:{label:"V2"}},[t._v(t._s(t.$t("message.chaindadd_apiV2")))])],1)],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_type"),prop:"type"}},[a("el-radio-group",{attrs:{prop:"type"},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[a("el-radio",{attrs:{label:"Mainnet"}},[t._v(t._s(t.$t("message.chaindadd_mainnet")))]),a("el-radio",{attrs:{label:"Testnet"}},[t._v(t._s(t.$t("message.chaindadd_testnet")))]),a("el-radio",{attrs:{label:"GoZ"}},[t._v(t._s(t.$t("message.chaindadd_gos")))])],1)],1),a("el-form-item",{attrs:{label:t.$t("message.chaindadd_desc")}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),a("el-form-item",[a("el-button",{attrs:{icon:"el-icon-check",type:"primary"},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v(t._s(t.$t("message.chaindadd_save")))])],1)],1)],1)},r=[],i=a("1da1"),s=(a("96cf"),a("bc3a")),o=a.n(s);function l(t){return c.apply(this,arguments)}function c(){return c=Object(i["a"])(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.a.post("/look/chain/create",e);case 2:return a=t.sent,t.abrupt("return",a.data);case 4:case"end":return t.stop()}}),t)}))),c.apply(this,arguments)}var d={activated:function(){this.initForm()},created:function(){this.initForm()},data:function(){return{form:{name:"",chainId:"",logo:"",lcd:"",rpc:"",version:"0.32.7",unit:"ATOM",prefix:"cosmos",api:"V1",type:"GoZ",desc:""}}},methods:{initForm:function(){this.form={name:"",chainId:"",logo:"/static/chains/cosmoshub.svg",lcd:"",rpc:"",version:"0.32.7",unit:"ATOM",prefix:"cosmos",api:"V1",type:"GoZ",desc:""}},submitChain:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l(t.form);case 2:a=e.sent,1===a.code&&(t.$message.success(t.$t("message.chaindadd_success")),t.$router.push("/dashboard"));case 4:case"end":return e.stop()}}),e)})))()},goAddChain:function(){this.$router.push("/chain-add")}}},u={mixins:[d],data:function(){return{rules:{name:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],chainId:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],api:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],type:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],lcd:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],rpc:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],prefix:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}],unit:[{required:!0,message:this.$t("message.chaindadd_tip"),trigger:"blur"}]}}},methods:{submitForm:function(t){var e=this;"http://"===this.form.lcd.substr(0,7)||"https://"===this.form.lcd.substr(0,8)||"http://"===this.form.rpc.substr(0,7)||"https://"===this.form.rpc.substr(0,8)?this.$refs[t].validate((function(t){if(!t)return!1;e.submitChain()})):this.$message.error(this.$t("message.chaindadd_http"))},resetForm:function(t){this.$refs[t].resetFields()}}},p=u,m=a("2877"),f=Object(m["a"])(p,n,r,!1,null,null,null);e["default"]=f.exports},"9f1e":function(t,e,a){var n=a("236b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("bd48fb1e",n,!0,{sourceMap:!1,shadowMode:!1})},a002:function(t,e,a){(function(e){var a;
|
||
/*!
|
||
localForage -- Offline Storage, Improved
|
||
Version 1.9.0
|
||
https://localforage.github.io/localForage
|
||
(c) 2013-2017 Mozilla, Apache License 2.0
|
||
*/
|
||
(function(e){t.exports=e()})((function(){return function t(e,n,r){function i(o,l){if(!n[o]){if(!e[o]){var c="function"==typeof a&&a;if(!l&&c)return a(o,!0);if(s)return s(o,!0);var d=new Error("Cannot find module '"+o+"'");throw d.code="MODULE_NOT_FOUND",d}var u=n[o]={exports:{}};e[o][0].call(u.exports,(function(t){var a=e[o][1][t];return i(a||t)}),u,u.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof a&&a,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,a,n){(function(t){"use strict";var e,n,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var i=0,s=new r(d),o=t.document.createTextNode("");s.observe(o,{characterData:!0}),e=function(){o.data=i=++i%2}}else if(t.setImmediate||"undefined"===typeof t.MessageChannel)e="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){d(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(d,0)};else{var l=new t.MessageChannel;l.port1.onmessage=d,e=function(){l.port2.postMessage(0)}}var c=[];function d(){var t,e;n=!0;var a=c.length;while(a){e=c,c=[],t=-1;while(++t<a)e[t]();a=c.length}n=!1}function u(t){1!==c.push(t)||n||e()}a.exports=u}).call(this,"undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],2:[function(t,e,a){"use strict";var n=t(1);function r(){}var i={},s=["REJECTED"],o=["FULFILLED"],l=["PENDING"];function c(t){if("function"!==typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&m(this,t)}function d(t,e,a){this.promise=t,"function"===typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"===typeof a&&(this.onRejected=a,this.callRejected=this.otherCallRejected)}function u(t,e,a){n((function(){var n;try{n=e(a)}catch(r){return i.reject(t,r)}n===t?i.reject(t,new TypeError("Cannot resolve promise with itself")):i.resolve(t,n)}))}function p(t){var e=t&&t.then;if(t&&("object"===typeof t||"function"===typeof t)&&"function"===typeof e)return function(){e.apply(t,arguments)}}function m(t,e){var a=!1;function n(e){a||(a=!0,i.reject(t,e))}function r(e){a||(a=!0,i.resolve(t,e))}function s(){e(r,n)}var o=f(s);"error"===o.status&&n(o.value)}function f(t,e){var a={};try{a.value=t(e),a.status="success"}catch(n){a.status="error",a.value=n}return a}function v(t){return t instanceof this?t:i.resolve(new this(r),t)}function g(t){var e=new this(r);return i.reject(e,t)}function h(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var a=t.length,n=!1;if(!a)return this.resolve([]);var s=new Array(a),o=0,l=-1,c=new this(r);while(++l<a)d(t[l],l);return c;function d(t,r){function l(t){s[r]=t,++o!==a||n||(n=!0,i.resolve(c,s))}e.resolve(t).then(l,(function(t){n||(n=!0,i.reject(c,t))}))}}function b(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var a=t.length,n=!1;if(!a)return this.resolve([]);var s=-1,o=new this(r);while(++s<a)l(t[s]);return o;function l(t){e.resolve(t).then((function(t){n||(n=!0,i.resolve(o,t))}),(function(t){n||(n=!0,i.reject(o,t))}))}}e.exports=c,c.prototype["catch"]=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!==typeof t&&this.state===o||"function"!==typeof e&&this.state===s)return this;var a=new this.constructor(r);if(this.state!==l){var n=this.state===o?t:e;u(a,n,this.outcome)}else this.queue.push(new d(a,t,e));return a},d.prototype.callFulfilled=function(t){i.resolve(this.promise,t)},d.prototype.otherCallFulfilled=function(t){u(this.promise,this.onFulfilled,t)},d.prototype.callRejected=function(t){i.reject(this.promise,t)},d.prototype.otherCallRejected=function(t){u(this.promise,this.onRejected,t)},i.resolve=function(t,e){var a=f(p,e);if("error"===a.status)return i.reject(t,a.value);var n=a.value;if(n)m(t,n);else{t.state=o,t.outcome=e;var r=-1,s=t.queue.length;while(++r<s)t.queue[r].callFulfilled(e)}return t},i.reject=function(t,e){t.state=s,t.outcome=e;var a=-1,n=t.queue.length;while(++a<n)t.queue[a].callRejected(e);return t},c.resolve=v,c.reject=g,c.all=h,c.race=b},{1:1}],3:[function(t,a,n){(function(e){"use strict";"function"!==typeof e.Promise&&(e.Promise=t(2))}).call(this,"undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{2:2}],4:[function(t,e,a){"use strict";var n="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};function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){try{if("undefined"!==typeof indexedDB)return indexedDB;if("undefined"!==typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!==typeof mozIndexedDB)return mozIndexedDB;if("undefined"!==typeof OIndexedDB)return OIndexedDB;if("undefined"!==typeof msIndexedDB)return msIndexedDB}catch(t){return}}var s=i();function o(){try{if(!s||!s.open)return!1;var t="undefined"!==typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),e="function"===typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||e)&&"undefined"!==typeof indexedDB&&"undefined"!==typeof IDBKeyRange}catch(a){return!1}}function l(t,e){t=t||[],e=e||{};try{return new Blob(t,e)}catch(i){if("TypeError"!==i.name)throw i;for(var a="undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof MSBlobBuilder?MSBlobBuilder:"undefined"!==typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,n=new a,r=0;r<t.length;r+=1)n.append(t[r]);return n.getBlob(e.type)}}"undefined"===typeof Promise&&t(3);var c=Promise;function d(t,e){e&&t.then((function(t){e(null,t)}),(function(t){e(t)}))}function u(t,e,a){"function"===typeof e&&t.then(e),"function"===typeof a&&t["catch"](a)}function p(t){return"string"!==typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t)),t}function m(){if(arguments.length&&"function"===typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f="local-forage-detect-blob-support",v=void 0,g={},h=Object.prototype.toString,b="readonly",_="readwrite";function x(t){for(var e=t.length,a=new ArrayBuffer(e),n=new Uint8Array(a),r=0;r<e;r++)n[r]=t.charCodeAt(r);return a}function w(t){return new c((function(e){var a=t.transaction(f,_),n=l([""]);a.objectStore(f).put(n,"key"),a.onabort=function(t){t.preventDefault(),t.stopPropagation(),e(!1)},a.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/),a=navigator.userAgent.match(/Edge\//);e(a||!t||parseInt(t[1],10)>=43)}}))["catch"]((function(){return!1}))}function y(t){return"boolean"===typeof v?c.resolve(v):w(t).then((function(t){return v=t,v}))}function k(t){var e=g[t.name],a={};a.promise=new c((function(t,e){a.resolve=t,a.reject=e})),e.deferredOperations.push(a),e.dbReady?e.dbReady=e.dbReady.then((function(){return a.promise})):e.dbReady=a.promise}function C(t){var e=g[t.name],a=e.deferredOperations.pop();if(a)return a.resolve(),a.promise}function S(t,e){var a=g[t.name],n=a.deferredOperations.pop();if(n)return n.reject(e),n.promise}function $(t,e){return new c((function(a,n){if(g[t.name]=g[t.name]||D(),t.db){if(!e)return a(t.db);k(t),t.db.close()}var r=[t.name];e&&r.push(t.version);var i=s.open.apply(s,r);e&&(i.onupgradeneeded=function(e){var a=i.result;try{a.createObjectStore(t.storeName),e.oldVersion<=1&&a.createObjectStore(f)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+t.name+'" has been upgraded from version '+e.oldVersion+" to version "+e.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),i.onerror=function(t){t.preventDefault(),n(i.error)},i.onsuccess=function(){a(i.result),C(t)}}))}function j(t){return $(t,!1)}function O(t){return $(t,!0)}function R(t,e){if(!t.db)return!0;var a=!t.db.objectStoreNames.contains(t.storeName),n=t.version<t.db.version,r=t.version>t.db.version;if(n&&(t.version!==e&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),r||a){if(a){var i=t.db.version+1;i>t.version&&(t.version=i)}return!0}return!1}function M(t){return new c((function(e,a){var n=new FileReader;n.onerror=a,n.onloadend=function(a){var n=btoa(a.target.result||"");e({__local_forage_encoded_blob:!0,data:n,type:t.type})},n.readAsBinaryString(t)}))}function A(t){var e=x(atob(t.data));return l([e],{type:t.type})}function I(t){return t&&t.__local_forage_encoded_blob}function N(t){var e=this,a=e._initReady().then((function(){var t=g[e._dbInfo.name];if(t&&t.dbReady)return t.dbReady}));return u(a,t,t),a}function T(t){k(t);for(var e=g[t.name],a=e.forages,n=0;n<a.length;n++){var r=a[n];r._dbInfo.db&&(r._dbInfo.db.close(),r._dbInfo.db=null)}return t.db=null,j(t).then((function(e){return t.db=e,R(t)?O(t):e})).then((function(n){t.db=e.db=n;for(var r=0;r<a.length;r++)a[r]._dbInfo.db=n}))["catch"]((function(e){throw S(t,e),e}))}function z(t,e,a,n){void 0===n&&(n=1);try{var r=t.db.transaction(t.storeName,e);a(null,r)}catch(i){if(n>0&&(!t.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return c.resolve().then((function(){if(!t.db||"NotFoundError"===i.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),O(t)})).then((function(){return T(t).then((function(){z(t,e,a,n-1)}))}))["catch"](a);a(i)}}function D(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function F(t){var e=this,a={db:null};if(t)for(var n in t)a[n]=t[n];var r=g[a.name];r||(r=D(),g[a.name]=r),r.forages.push(e),e._initReady||(e._initReady=e.ready,e.ready=N);var i=[];function s(){return c.resolve()}for(var o=0;o<r.forages.length;o++){var l=r.forages[o];l!==e&&i.push(l._initReady()["catch"](s))}var d=r.forages.slice(0);return c.all(i).then((function(){return a.db=r.db,j(a)})).then((function(t){return a.db=t,R(a,e._defaultConfig.version)?O(a):t})).then((function(t){a.db=r.db=t,e._dbInfo=a;for(var n=0;n<d.length;n++){var i=d[n];i!==e&&(i._dbInfo.db=a.db,i._dbInfo.version=a.version)}}))}function E(t,e){var a=this;t=p(t);var n=new c((function(e,n){a.ready().then((function(){z(a._dbInfo,b,(function(r,i){if(r)return n(r);try{var s=i.objectStore(a._dbInfo.storeName),o=s.get(t);o.onsuccess=function(){var t=o.result;void 0===t&&(t=null),I(t)&&(t=A(t)),e(t)},o.onerror=function(){n(o.error)}}catch(l){n(l)}}))}))["catch"](n)}));return d(n,e),n}function P(t,e){var a=this,n=new c((function(e,n){a.ready().then((function(){z(a._dbInfo,b,(function(r,i){if(r)return n(r);try{var s=i.objectStore(a._dbInfo.storeName),o=s.openCursor(),l=1;o.onsuccess=function(){var a=o.result;if(a){var n=a.value;I(n)&&(n=A(n));var r=t(n,a.key,l++);void 0!==r?e(r):a["continue"]()}else e()},o.onerror=function(){n(o.error)}}catch(c){n(c)}}))}))["catch"](n)}));return d(n,e),n}function H(t,e,a){var n=this;t=p(t);var r=new c((function(a,r){var i;n.ready().then((function(){return i=n._dbInfo,"[object Blob]"===h.call(e)?y(i.db).then((function(t){return t?e:M(e)})):e})).then((function(e){z(n._dbInfo,_,(function(i,s){if(i)return r(i);try{var o=s.objectStore(n._dbInfo.storeName);null===e&&(e=void 0);var l=o.put(e,t);s.oncomplete=function(){void 0===e&&(e=null),a(e)},s.onabort=s.onerror=function(){var t=l.error?l.error:l.transaction.error;r(t)}}catch(c){r(c)}}))}))["catch"](r)}));return d(r,a),r}function B(t,e){var a=this;t=p(t);var n=new c((function(e,n){a.ready().then((function(){z(a._dbInfo,_,(function(r,i){if(r)return n(r);try{var s=i.objectStore(a._dbInfo.storeName),o=s["delete"](t);i.oncomplete=function(){e()},i.onerror=function(){n(o.error)},i.onabort=function(){var t=o.error?o.error:o.transaction.error;n(t)}}catch(l){n(l)}}))}))["catch"](n)}));return d(n,e),n}function L(t){var e=this,a=new c((function(t,a){e.ready().then((function(){z(e._dbInfo,_,(function(n,r){if(n)return a(n);try{var i=r.objectStore(e._dbInfo.storeName),s=i.clear();r.oncomplete=function(){t()},r.onabort=r.onerror=function(){var t=s.error?s.error:s.transaction.error;a(t)}}catch(o){a(o)}}))}))["catch"](a)}));return d(a,t),a}function V(t){var e=this,a=new c((function(t,a){e.ready().then((function(){z(e._dbInfo,b,(function(n,r){if(n)return a(n);try{var i=r.objectStore(e._dbInfo.storeName),s=i.count();s.onsuccess=function(){t(s.result)},s.onerror=function(){a(s.error)}}catch(o){a(o)}}))}))["catch"](a)}));return d(a,t),a}function q(t,e){var a=this,n=new c((function(e,n){t<0?e(null):a.ready().then((function(){z(a._dbInfo,b,(function(r,i){if(r)return n(r);try{var s=i.objectStore(a._dbInfo.storeName),o=!1,l=s.openKeyCursor();l.onsuccess=function(){var a=l.result;a?0===t||o?e(a.key):(o=!0,a.advance(t)):e(null)},l.onerror=function(){n(l.error)}}catch(c){n(c)}}))}))["catch"](n)}));return d(n,e),n}function U(t){var e=this,a=new c((function(t,a){e.ready().then((function(){z(e._dbInfo,b,(function(n,r){if(n)return a(n);try{var i=r.objectStore(e._dbInfo.storeName),s=i.openKeyCursor(),o=[];s.onsuccess=function(){var e=s.result;e?(o.push(e.key),e["continue"]()):t(o)},s.onerror=function(){a(s.error)}}catch(l){a(l)}}))}))["catch"](a)}));return d(a,t),a}function W(t,e){e=m.apply(this,arguments);var a=this.config();t="function"!==typeof t&&t||{},t.name||(t.name=t.name||a.name,t.storeName=t.storeName||a.storeName);var n,r=this;if(t.name){var i=t.name===a.name&&r._dbInfo.db,o=i?c.resolve(r._dbInfo.db):j(t).then((function(e){var a=g[t.name],n=a.forages;a.db=e;for(var r=0;r<n.length;r++)n[r]._dbInfo.db=e;return e}));n=t.storeName?o.then((function(e){if(e.objectStoreNames.contains(t.storeName)){var a=e.version+1;k(t);var n=g[t.name],r=n.forages;e.close();for(var i=0;i<r.length;i++){var o=r[i];o._dbInfo.db=null,o._dbInfo.version=a}var l=new c((function(e,n){var r=s.open(t.name,a);r.onerror=function(t){var e=r.result;e.close(),n(t)},r.onupgradeneeded=function(){var e=r.result;e.deleteObjectStore(t.storeName)},r.onsuccess=function(){var t=r.result;t.close(),e(t)}}));return l.then((function(t){n.db=t;for(var e=0;e<r.length;e++){var a=r[e];a._dbInfo.db=t,C(a._dbInfo)}}))["catch"]((function(e){throw(S(t,e)||c.resolve())["catch"]((function(){})),e}))}})):o.then((function(e){k(t);var a=g[t.name],n=a.forages;e.close();for(var r=0;r<n.length;r++){var i=n[r];i._dbInfo.db=null}var o=new c((function(e,a){var n=s.deleteDatabase(t.name);n.onerror=n.onblocked=function(t){var e=n.result;e&&e.close(),a(t)},n.onsuccess=function(){var t=n.result;t&&t.close(),e(t)}}));return o.then((function(t){a.db=t;for(var e=0;e<n.length;e++){var r=n[e];C(r._dbInfo)}}))["catch"]((function(e){throw(S(t,e)||c.resolve())["catch"]((function(){})),e}))}))}else n=c.reject("Invalid arguments");return d(n,e),n}var X={_driver:"asyncStorage",_initStorage:F,_support:o(),iterate:P,getItem:E,setItem:H,removeItem:B,clear:L,length:V,key:q,keys:U,dropInstance:W};function G(){return"function"===typeof openDatabase}var K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",J="~~local_forage_type~",Y=/^~~local_forage_type~([^~]+)~/,Q="__lfsc__:",Z=Q.length,tt="arbf",et="blob",at="si08",nt="ui08",rt="uic8",it="si16",st="si32",ot="ur16",lt="ui32",ct="fl32",dt="fl64",ut=Z+tt.length,pt=Object.prototype.toString;function mt(t){var e,a,n,r,i,s=.75*t.length,o=t.length,l=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var c=new ArrayBuffer(s),d=new Uint8Array(c);for(e=0;e<o;e+=4)a=K.indexOf(t[e]),n=K.indexOf(t[e+1]),r=K.indexOf(t[e+2]),i=K.indexOf(t[e+3]),d[l++]=a<<2|n>>4,d[l++]=(15&n)<<4|r>>2,d[l++]=(3&r)<<6|63&i;return c}function ft(t){var e,a=new Uint8Array(t),n="";for(e=0;e<a.length;e+=3)n+=K[a[e]>>2],n+=K[(3&a[e])<<4|a[e+1]>>4],n+=K[(15&a[e+1])<<2|a[e+2]>>6],n+=K[63&a[e+2]];return a.length%3===2?n=n.substring(0,n.length-1)+"=":a.length%3===1&&(n=n.substring(0,n.length-2)+"=="),n}function vt(t,e){var a="";if(t&&(a=pt.call(t)),t&&("[object ArrayBuffer]"===a||t.buffer&&"[object ArrayBuffer]"===pt.call(t.buffer))){var n,r=Q;t instanceof ArrayBuffer?(n=t,r+=tt):(n=t.buffer,"[object Int8Array]"===a?r+=at:"[object Uint8Array]"===a?r+=nt:"[object Uint8ClampedArray]"===a?r+=rt:"[object Int16Array]"===a?r+=it:"[object Uint16Array]"===a?r+=ot:"[object Int32Array]"===a?r+=st:"[object Uint32Array]"===a?r+=lt:"[object Float32Array]"===a?r+=ct:"[object Float64Array]"===a?r+=dt:e(new Error("Failed to get type for BinaryArray"))),e(r+ft(n))}else if("[object Blob]"===a){var i=new FileReader;i.onload=function(){var a=J+t.type+"~"+ft(this.result);e(Q+et+a)},i.readAsArrayBuffer(t)}else try{e(JSON.stringify(t))}catch(s){console.error("Couldn't convert value into a JSON string: ",t),e(null,s)}}function gt(t){if(t.substring(0,Z)!==Q)return JSON.parse(t);var e,a=t.substring(ut),n=t.substring(Z,ut);if(n===et&&Y.test(a)){var r=a.match(Y);e=r[1],a=a.substring(r[0].length)}var i=mt(a);switch(n){case tt:return i;case et:return l([i],{type:e});case at:return new Int8Array(i);case nt:return new Uint8Array(i);case rt:return new Uint8ClampedArray(i);case it:return new Int16Array(i);case ot:return new Uint16Array(i);case st:return new Int32Array(i);case lt:return new Uint32Array(i);case ct:return new Float32Array(i);case dt:return new Float64Array(i);default:throw new Error("Unkown type: "+n)}}var ht={serialize:vt,deserialize:gt,stringToBuffer:mt,bufferToString:ft};function bt(t,e,a,n){t.executeSql("CREATE TABLE IF NOT EXISTS "+e.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],a,n)}function _t(t){var e=this,a={db:null};if(t)for(var n in t)a[n]="string"!==typeof t[n]?t[n].toString():t[n];var r=new c((function(t,n){try{a.db=openDatabase(a.name,String(a.version),a.description,a.size)}catch(r){return n(r)}a.db.transaction((function(r){bt(r,a,(function(){e._dbInfo=a,t()}),(function(t,e){n(e)}))}),n)}));return a.serializer=ht,r}function xt(t,e,a,n,r,i){t.executeSql(a,n,r,(function(t,s){s.code===s.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[e.storeName],(function(t,o){o.rows.length?i(t,s):bt(t,e,(function(){t.executeSql(a,n,r,i)}),i)}),i):i(t,s)}),i)}function wt(t,e){var a=this;t=p(t);var n=new c((function(e,n){a.ready().then((function(){var r=a._dbInfo;r.db.transaction((function(a){xt(a,r,"SELECT * FROM "+r.storeName+" WHERE key = ? LIMIT 1",[t],(function(t,a){var n=a.rows.length?a.rows.item(0).value:null;n&&(n=r.serializer.deserialize(n)),e(n)}),(function(t,e){n(e)}))}))}))["catch"](n)}));return d(n,e),n}function yt(t,e){var a=this,n=new c((function(e,n){a.ready().then((function(){var r=a._dbInfo;r.db.transaction((function(a){xt(a,r,"SELECT * FROM "+r.storeName,[],(function(a,n){for(var i=n.rows,s=i.length,o=0;o<s;o++){var l=i.item(o),c=l.value;if(c&&(c=r.serializer.deserialize(c)),c=t(c,l.key,o+1),void 0!==c)return void e(c)}e()}),(function(t,e){n(e)}))}))}))["catch"](n)}));return d(n,e),n}function kt(t,e,a,n){var r=this;t=p(t);var i=new c((function(i,s){r.ready().then((function(){void 0===e&&(e=null);var o=e,l=r._dbInfo;l.serializer.serialize(e,(function(e,c){c?s(c):l.db.transaction((function(a){xt(a,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[t,e],(function(){i(o)}),(function(t,e){s(e)}))}),(function(e){if(e.code===e.QUOTA_ERR){if(n>0)return void i(kt.apply(r,[t,o,a,n-1]));s(e)}}))}))}))["catch"](s)}));return d(i,a),i}function Ct(t,e,a){return kt.apply(this,[t,e,a,1])}function St(t,e){var a=this;t=p(t);var n=new c((function(e,n){a.ready().then((function(){var r=a._dbInfo;r.db.transaction((function(a){xt(a,r,"DELETE FROM "+r.storeName+" WHERE key = ?",[t],(function(){e()}),(function(t,e){n(e)}))}))}))["catch"](n)}));return d(n,e),n}function $t(t){var e=this,a=new c((function(t,a){e.ready().then((function(){var n=e._dbInfo;n.db.transaction((function(e){xt(e,n,"DELETE FROM "+n.storeName,[],(function(){t()}),(function(t,e){a(e)}))}))}))["catch"](a)}));return d(a,t),a}function jt(t){var e=this,a=new c((function(t,a){e.ready().then((function(){var n=e._dbInfo;n.db.transaction((function(e){xt(e,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],(function(e,a){var n=a.rows.item(0).c;t(n)}),(function(t,e){a(e)}))}))}))["catch"](a)}));return d(a,t),a}function Ot(t,e){var a=this,n=new c((function(e,n){a.ready().then((function(){var r=a._dbInfo;r.db.transaction((function(a){xt(a,r,"SELECT key FROM "+r.storeName+" WHERE id = ? LIMIT 1",[t+1],(function(t,a){var n=a.rows.length?a.rows.item(0).key:null;e(n)}),(function(t,e){n(e)}))}))}))["catch"](n)}));return d(n,e),n}function Rt(t){var e=this,a=new c((function(t,a){e.ready().then((function(){var n=e._dbInfo;n.db.transaction((function(e){xt(e,n,"SELECT key FROM "+n.storeName,[],(function(e,a){for(var n=[],r=0;r<a.rows.length;r++)n.push(a.rows.item(r).key);t(n)}),(function(t,e){a(e)}))}))}))["catch"](a)}));return d(a,t),a}function Mt(t){return new c((function(e,a){t.transaction((function(n){n.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(a,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).name);e({db:t,storeNames:r})}),(function(t,e){a(e)}))}),(function(t){a(t)}))}))}function At(t,e){e=m.apply(this,arguments);var a=this.config();t="function"!==typeof t&&t||{},t.name||(t.name=t.name||a.name,t.storeName=t.storeName||a.storeName);var n,r=this;return n=t.name?new c((function(e){var n;n=t.name===a.name?r._dbInfo.db:openDatabase(t.name,"","",0),t.storeName?e({db:n,storeNames:[t.storeName]}):e(Mt(n))})).then((function(t){return new c((function(e,a){t.db.transaction((function(n){function r(t){return new c((function(e,a){n.executeSql("DROP TABLE IF EXISTS "+t,[],(function(){e()}),(function(t,e){a(e)}))}))}for(var i=[],s=0,o=t.storeNames.length;s<o;s++)i.push(r(t.storeNames[s]));c.all(i).then((function(){e()}))["catch"]((function(t){a(t)}))}),(function(t){a(t)}))}))})):c.reject("Invalid arguments"),d(n,e),n}var It={_driver:"webSQLStorage",_initStorage:_t,_support:G(),iterate:yt,getItem:wt,setItem:Ct,removeItem:St,clear:$t,length:jt,key:Ot,keys:Rt,dropInstance:At};function Nt(){try{return"undefined"!==typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}}function Tt(t,e){var a=t.name+"/";return t.storeName!==e.storeName&&(a+=t.storeName+"/"),a}function zt(){var t="_localforage_support_test";try{return localStorage.setItem(t,!0),localStorage.removeItem(t),!1}catch(e){return!0}}function Dt(){return!zt()||localStorage.length>0}function Ft(t){var e=this,a={};if(t)for(var n in t)a[n]=t[n];return a.keyPrefix=Tt(t,e._defaultConfig),Dt()?(e._dbInfo=a,a.serializer=ht,c.resolve()):c.reject()}function Et(t){var e=this,a=e.ready().then((function(){for(var t=e._dbInfo.keyPrefix,a=localStorage.length-1;a>=0;a--){var n=localStorage.key(a);0===n.indexOf(t)&&localStorage.removeItem(n)}}));return d(a,t),a}function Pt(t,e){var a=this;t=p(t);var n=a.ready().then((function(){var e=a._dbInfo,n=localStorage.getItem(e.keyPrefix+t);return n&&(n=e.serializer.deserialize(n)),n}));return d(n,e),n}function Ht(t,e){var a=this,n=a.ready().then((function(){for(var e=a._dbInfo,n=e.keyPrefix,r=n.length,i=localStorage.length,s=1,o=0;o<i;o++){var l=localStorage.key(o);if(0===l.indexOf(n)){var c=localStorage.getItem(l);if(c&&(c=e.serializer.deserialize(c)),c=t(c,l.substring(r),s++),void 0!==c)return c}}}));return d(n,e),n}function Bt(t,e){var a=this,n=a.ready().then((function(){var e,n=a._dbInfo;try{e=localStorage.key(t)}catch(r){e=null}return e&&(e=e.substring(n.keyPrefix.length)),e}));return d(n,e),n}function Lt(t){var e=this,a=e.ready().then((function(){for(var t=e._dbInfo,a=localStorage.length,n=[],r=0;r<a;r++){var i=localStorage.key(r);0===i.indexOf(t.keyPrefix)&&n.push(i.substring(t.keyPrefix.length))}return n}));return d(a,t),a}function Vt(t){var e=this,a=e.keys().then((function(t){return t.length}));return d(a,t),a}function qt(t,e){var a=this;t=p(t);var n=a.ready().then((function(){var e=a._dbInfo;localStorage.removeItem(e.keyPrefix+t)}));return d(n,e),n}function Ut(t,e,a){var n=this;t=p(t);var r=n.ready().then((function(){void 0===e&&(e=null);var a=e;return new c((function(r,i){var s=n._dbInfo;s.serializer.serialize(e,(function(e,n){if(n)i(n);else try{localStorage.setItem(s.keyPrefix+t,e),r(a)}catch(o){"QuotaExceededError"!==o.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==o.name||i(o),i(o)}}))}))}));return d(r,a),r}function Wt(t,e){if(e=m.apply(this,arguments),t="function"!==typeof t&&t||{},!t.name){var a=this.config();t.name=t.name||a.name,t.storeName=t.storeName||a.storeName}var n,r=this;return n=t.name?new c((function(e){t.storeName?e(Tt(t,r._defaultConfig)):e(t.name+"/")})).then((function(t){for(var e=localStorage.length-1;e>=0;e--){var a=localStorage.key(e);0===a.indexOf(t)&&localStorage.removeItem(a)}})):c.reject("Invalid arguments"),d(n,e),n}var Xt={_driver:"localStorageWrapper",_initStorage:Ft,_support:Nt(),iterate:Ht,getItem:Pt,setItem:Ut,removeItem:qt,clear:Et,length:Vt,key:Bt,keys:Lt,dropInstance:Wt},Gt=function(t,e){return t===e||"number"===typeof t&&"number"===typeof e&&isNaN(t)&&isNaN(e)},Kt=function(t,e){var a=t.length,n=0;while(n<a){if(Gt(t[n],e))return!0;n++}return!1},Jt=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},Yt={},Qt={},Zt={INDEXEDDB:X,WEBSQL:It,LOCALSTORAGE:Xt},te=[Zt.INDEXEDDB._driver,Zt.WEBSQL._driver,Zt.LOCALSTORAGE._driver],ee=["dropInstance"],ae=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ee),ne={description:"",driver:te.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function re(t,e){t[e]=function(){var a=arguments;return t.ready().then((function(){return t[e].apply(t,a)}))}}function ie(){for(var t=1;t<arguments.length;t++){var e=arguments[t];if(e)for(var a in e)e.hasOwnProperty(a)&&(Jt(e[a])?arguments[0][a]=e[a].slice():arguments[0][a]=e[a])}return arguments[0]}var se=function(){function t(e){for(var a in r(this,t),Zt)if(Zt.hasOwnProperty(a)){var n=Zt[a],i=n._driver;this[a]=i,Yt[i]||this.defineDriver(n)}this._defaultConfig=ie({},ne),this._config=ie({},this._defaultConfig,e),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver)["catch"]((function(){}))}return t.prototype.config=function(t){if("object"===("undefined"===typeof t?"undefined":n(t))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var e in t){if("storeName"===e&&(t[e]=t[e].replace(/\W/g,"_")),"version"===e&&"number"!==typeof t[e])return new Error("Database version must be a number.");this._config[e]=t[e]}return!("driver"in t)||!t.driver||this.setDriver(this._config.driver)}return"string"===typeof t?this._config[t]:this._config},t.prototype.defineDriver=function(t,e,a){var n=new c((function(e,a){try{var n=t._driver,r=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver)return void a(r);for(var i=ae.concat("_initStorage"),s=0,o=i.length;s<o;s++){var l=i[s],u=!Kt(ee,l);if((u||t[l])&&"function"!==typeof t[l])return void a(r)}var p=function(){for(var e=function(t){return function(){var e=new Error("Method "+t+" is not implemented by the current driver"),a=c.reject(e);return d(a,arguments[arguments.length-1]),a}},a=0,n=ee.length;a<n;a++){var r=ee[a];t[r]||(t[r]=e(r))}};p();var m=function(a){Yt[n]&&console.info("Redefining LocalForage driver: "+n),Yt[n]=t,Qt[n]=a,e()};"_support"in t?t._support&&"function"===typeof t._support?t._support().then(m,a):m(!!t._support):m(!0)}catch(f){a(f)}}));return u(n,e,a),n},t.prototype.driver=function(){return this._driver||null},t.prototype.getDriver=function(t,e,a){var n=Yt[t]?c.resolve(Yt[t]):c.reject(new Error("Driver not found."));return u(n,e,a),n},t.prototype.getSerializer=function(t){var e=c.resolve(ht);return u(e,t),e},t.prototype.ready=function(t){var e=this,a=e._driverSet.then((function(){return null===e._ready&&(e._ready=e._initDriver()),e._ready}));return u(a,t,t),a},t.prototype.setDriver=function(t,e,a){var n=this;Jt(t)||(t=[t]);var r=this._getSupportedDrivers(t);function i(){n._config.driver=n.driver()}function s(t){return n._extend(t),i(),n._ready=n._initStorage(n._config),n._ready}function o(t){return function(){var e=0;function a(){while(e<t.length){var r=t[e];return e++,n._dbInfo=null,n._ready=null,n.getDriver(r).then(s)["catch"](a)}i();var o=new Error("No available storage method found.");return n._driverSet=c.reject(o),n._driverSet}return a()}}var l=null!==this._driverSet?this._driverSet["catch"]((function(){return c.resolve()})):c.resolve();return this._driverSet=l.then((function(){var t=r[0];return n._dbInfo=null,n._ready=null,n.getDriver(t).then((function(t){n._driver=t._driver,i(),n._wrapLibraryMethodsWithReady(),n._initDriver=o(r)}))}))["catch"]((function(){i();var t=new Error("No available storage method found.");return n._driverSet=c.reject(t),n._driverSet})),u(this._driverSet,e,a),this._driverSet},t.prototype.supports=function(t){return!!Qt[t]},t.prototype._extend=function(t){ie(this,t)},t.prototype._getSupportedDrivers=function(t){for(var e=[],a=0,n=t.length;a<n;a++){var r=t[a];this.supports(r)&&e.push(r)}return e},t.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,e=ae.length;t<e;t++)re(this,ae[t])},t.prototype.createInstance=function(e){return new t(e)},t}(),oe=new se;e.exports=oe},{3:3}]},{},[4])(4)}))}).call(this,a("c8ba"))},ab13:function(t,e,a){var n=a("b622"),r=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(a){try{return e[r]=!1,"/./"[t](e)}catch(n){}}return!1}},ada8:function(t,e,a){var n=a("ed7c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("3f0378e8",n,!0,{sourceMap:!1,shadowMode:!1})},ae30:function(t,e,a){var n=a("e249");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("006203a3",n,!0,{sourceMap:!1,shadowMode:!1})},b123:function(t,e,a){var n=a("7364");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("76e813b8",n,!0,{sourceMap:!1,shadowMode:!1})},b291:function(t,e,a){"use strict";a("d9e7")},b387:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-container",[a("el-header",{staticStyle:{background:"#343a40",height:"48px"}},[a("top-bar")],1),a("el-main",{staticStyle:{padding:"15px"}},[a("keep-alive",[a("router-view",{staticClass:"max-width"})],1)],1)],1)},r=[],i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"topbar topnav max-width"},[a("div",{staticClass:"logo"},[t._v("LOOK")]),!t.diff||t.diff<=0?a("el-menu",{staticClass:"el-menu-demo hidden-sm-and-down",attrs:{mode:"horizontal",router:!0,"default-active":t.activeIndex,"background-color":"#343a40","text-color":"#909399"}},[a("el-menu-item",{attrs:{index:"/validator"}},[t._v(t._s(t.$t("message.validators")))]),a("el-menu-item",{attrs:{index:"/block"}},[t._v(t._s(t.$t("message.blocks")))]),"e-money"!==t.current.chainId?a("el-menu-item",{attrs:{index:"/uptime"}},[t._v(t._s(t.$t("message.uptime")))]):t._e(),"e-money"!==t.current.chainId?a("el-menu-item",{attrs:{index:"/governance"}},[t._v(t._s(t.$t("message.governance")))]):t._e(),a("el-menu-item",{attrs:{index:"/parameter"}},[t._v(t._s(t.$t("message.parameters")))]),"cosmoshub-3"===t.current.chainId?a("el-menu-item",{attrs:{index:"/wallet"}},[t._v(t._s(t.$t("message.wallet")))]):t._e()],1):t._e(),"kava-2"===t.current.chainId?a("KavaMore"):t._e(),a("span",{staticStyle:{flex:"1"}}),a("el-button",{staticStyle:{"margin-right":"20px",background:"#343a40",color:"#fff"},attrs:{round:"",size:"mini"},on:{click:t.goDashboard}},[a("span",{staticClass:"box-base",staticStyle:{display:"inline-block",width:"8px","margin-right":"5px",height:"8px","border-radius":"10px",background:"#52c41a"}}),t._v(" "+t._s(t.current.name)+" "),a("i",{staticClass:"el-icon-refresh",staticStyle:{"margin-left":"5px"}})]),a("LangSwitch")],1)},s=[],o=a("2909"),l=(a("99af"),a("0f67")),c=a("6a70"),d=a("5a0c"),u=a.n(d),p=a("7b5a"),m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dropdown",{on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link flex-center",staticStyle:{color:"#909399",cursor:"pointer","margin-left":"10px","margin-right":"5px"}},[t._v(" "+t._s(t.$t("message.kava_more"))+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"/cdp"}},[t._v("CDP")]),a("el-dropdown-item",{attrs:{command:"/auction",divided:""}},[t._v("Auction")]),a("el-dropdown-item",{attrs:{command:"/bep3",divided:""}},[t._v("BEP3")]),a("el-dropdown-item",{attrs:{command:"/pricefeed",divided:""}},[t._v("Pricefeed")])],1)],1)},f=[],v={methods:{handleCommand:function(t){this.$router.push(t)}}},g=v,h=a("2877"),b=Object(h["a"])(g,m,f,!1,null,null,null),_=b.exports,x={data:function(){return{diff:null,drawer:!1,current:window.chain,chains:[],activeIndex:""}},components:{LangSwitch:p["a"],KavaMore:_},created:function(){var t=window.chain.genesis_time;if(t){var e=u()(t).diff(u()());this.diff=e}this.activeIndex=this.$route.path},methods:{getChains:function(){var t=Object(l["a"])();this.chains=[].concat(Object(o["a"])(t.Mainnet),Object(o["a"])(t.Testnet))},goDashboard:function(){"/dashboard"!==this.$route.path&&this.$router.push("/dashboard")},switchChain:function(t){Object(c["a"])(t)}}},w=x,y=(a("1009"),a("09f51"),a("b291"),Object(h["a"])(w,i,s,!1,null,"7473927a",null)),k=y.exports,C={components:{TopBar:k}},S=C,$=(a("390f"),Object(h["a"])(S,n,r,!1,null,"713f230a",null));e["default"]=$.exports},ba6f:function(t,e,a){"use strict";a("ae30")},bb81:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".list-title[data-v-07c3a3c2]{font-size:18px;font-weight:400;margin-bottom:10px}",""]),t.exports=e},bd76:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("FlipClock",{staticStyle:{"margin-top":"100px"}})],1)},r=[],i=a("edf7"),s={components:{FlipClock:i["a"]}},o=s,l=a("2877"),c=Object(l["a"])(o,n,r,!1,null,null,null);e["default"]=c.exports},c168:function(t,e,a){"use strict";a("d528")},c1a0:function(t,e,a){var n=a("7958");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("ac3d5764",n,!0,{sourceMap:!1,shadowMode:!1})},c24e:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".list-title[data-v-a28a7660]{font-size:18px;font-weight:400;margin-bottom:10px}.info-table[data-v-a28a7660]{table-layout:auto;width:100%;border-collapse:collapse}.info-item[data-v-a28a7660]{text-align:center}.cell-item[data-v-a28a7660]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;color:#999;margin-top:2px}.type-warning[data-v-a28a7660]{color:#faad14}.type-danger[data-v-a28a7660]{color:#ff4d4f}.type-success[data-v-a28a7660]{color:#52c41a}",""]),t.exports=e},c2d5:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".FlipClock{text-align:center}.FlipClock .M-Flipper{margin:0 3px}.FlipClock em{display:inline-block;line-height:102px;font-size:66px;font-style:normal;vertical-align:top}",""]),t.exports=e},c5de:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".block-height[data-v-4b32698d]{font-size:24px}.block-bg[data-v-4b32698d]{margin-top:20px}.block-area[data-v-4b32698d]{border:1px solid #eee;background:#fff;padding:10px}.block-title-bg[data-v-4b32698d]{background:#343a40;color:#fff;display:block;padding:5px 10px;cursor:pointer}.link-line[data-v-4b32698d]{height:1px;width:60px;background:#ddd;position:absolute;top:40px}.text-item-title[data-v-4b32698d]{font-size:14px;color:#343a40}.text-item-content[data-v-4b32698d]{padding:5px 0;color:#98a6ad}.styicky-operation[data-v-4b32698d]{position:fixed;top:70px;left:20px;right:20px;background:#f5f6f8;z-index:20;padding:10px 0}.chain-input-h5 .el-input__inner[data-v-4b32698d]{padding:0 5px}",""]),t.exports=e},c88a:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",[a("div",{staticClass:"flex-center",staticStyle:{"justify-content":"center"}},[a("el-button",{staticStyle:{"font-size":"14px","margin-right":"10px","margin-left":"10px"},attrs:{disabled:t.loading||t.minHeight<=1,icon:"el-icon-arrow-left",circle:""},on:{click:t.nextPage}}),a("el-form",[a("el-input",{staticClass:"chain-input",staticStyle:{"min-width":"100px"},attrs:{disabled:t.loading,type:"number"},on:{blur:t.switchHeight},model:{value:t.minHeight,callback:function(e){t.minHeight=e},expression:"minHeight"}})],1),a("span",{staticStyle:{margin:"0 10px"}},[t._v("-")]),a("el-input",{style:{width:"200px"},attrs:{disabled:!0,type:"number"},model:{value:t.maxHeight,callback:function(e){t.maxHeight=e},expression:"maxHeight"}}),a("el-button",{staticStyle:{"font-size":"14px","margin-left":"10px","margin-right":"10px"},attrs:{disabled:t.loading||t.maxHeight>=t.last_height-1,icon:"el-icon-arrow-right",circle:""},on:{click:t.prevPage}})],1)]),a("div",{staticClass:"block-bg"},[a("el-row",{staticClass:"block-wrap",attrs:{gutter:10}},t._l(t.blocks,(function(e,n){return a("el-col",{key:n,staticClass:"mb-20",attrs:{xs:24,sm:8,md:8,lg:4,xl:4}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"block-area",attrs:{"element-loading-text":"Loading..."}},[a("a",{staticClass:"block-title-bg",attrs:{href:"#/block/"+e.height}},[a("div",{staticClass:"block-height"},[t._v("# "+t._s(e.height))])]),a("div",{staticStyle:{"margin-top":"10px"}},[a("div",{staticClass:"mb-5 flex-center"},[a("div",{staticClass:"flex-1"},[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_lastBlockHash")))]),a("div",{staticClass:"text-item-content",style:{fontSize:"14px"}},[t._v(t._s(t._f("miniHash")(e.last_block_hash)))])]),a("div",{staticStyle:{"text-align":"right"}},[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_hash")))]),a("div",{staticClass:"text-item-content",style:{fontSize:"14px"}},[t._v(t._s(t._f("miniHash")(e.block_hash)))])])]),a("div",{staticClass:"mb-5"},[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_proposer")))]),a("div",{staticClass:"text-item-content"},[t.hexObj[e.proposer_address]?a("a",{attrs:{href:"#/validator/"+t.hexObj[e.proposer_address].operator_address}},[t._v(t._s(t.hexObj[e.proposer_address].moniker))]):a("span",[t._v(t._s(t._f("shortHash")(e.proposer_address)))])])]),a("div",{staticClass:"mb-5"},[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_time")))]),a("div",{staticClass:"text-item-content"},[a("span",{attrs:{title:e.time}},[t._v(t._s(e.time))])])]),a("div",[a("div",{staticClass:"text-item-title"},[t._v(t._s(t.$t("message.block_transactions")))]),a("div",{staticClass:"text-item-content flex-center"},[a("span",{attrs:{title:e.num_txs}},[t._v(t._s(e.total_txs)+"("+t._s("+"+(e.num_txs||0))+")")])]),a("div",t._l(t.blockTxObj[e.height],(function(e,n){return a("a",{key:n,staticStyle:{color:"#98a6ad","font-size":"12px",padding:"10px",border:"1px solid #eee","margin-top":"5px",display:"block"},attrs:{href:"#/tx/"+e.hash}},[a("div",{staticClass:"flex-center"},[a("div",{staticStyle:{width:"6px",height:"6px","border-radius":"10px","margin-right":"5px"},style:{background:e.success?"#52c41a":"#e66"}}),t._v(" "+t._s(t.$t("message.block_txhash"))+": ")]),a("div",{staticClass:"text-overflow"},[t._v(t._s(e.hash))]),a("div",[t._v(t._s(t.$t("message.block_sentby"))+":")]),a("div",[t._v(t._s(t._f("shortHash")(e.sender)))]),e.memo?a("div",{staticClass:"text-overflow"},[t._v(t._s(t.$t("message.block_memo"))+": "+t._s(e.memo))]):t._e(),a("div",{staticStyle:{"margin-top":"5px"}},[a("el-button",{staticClass:"text-overflow",staticStyle:{width:"100%"},attrs:{round:"",type:"primary",size:"mini"}},[t._v(t._s(e.action||"Failed"))])],1)])})),0)])])])])})),1)],1)])},r=[],i=a("5530"),s=a("b85c"),o=a("1da1"),l=(a("96cf"),a("636f")),c={mixins:[l["a"]],created:function(){this.getBlocksLatest()},data:function(){return{loading:!1,page:1,size:6,block_metas:[],blocks:[{},{},{},{},{},{}],blockTxObj:{},last_height:null,maxHeight:null,minHeight:null}},methods:{getBlocksLatest:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,t.getRpcBlockchain(0,0);case 3:a=e.sent,t.loading=!1,t.last_height=a.last_height,n=a.block_metas,t.block_metas=n,t.blocks=t.splitblock_metas(),t.getTxs();case 10:case"end":return e.stop()}}),e)})))()},splitblock_metas:function(){var t=(this.page-1)*this.size,e=t+(this.size-1);if(e>this.block_metas.length-1)return[];for(var a=[],n=t;n<=e;n+=1)a.push(this.block_metas[n]);return this.maxHeight=this.last_height-(this.page-1)*this.size,this.minHeight=this.maxHeight-this.size+1,a.reverse()},prevPage:function(){this.maxHeight+=this.size,this.maxHeight>this.last_height-1&&(this.maxHeight=this.last_height-1),this.switchHeight()},nextPage:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.page+1,!(a<=parseInt(t.block_metas.length/t.size))){e.next=6;break}return t.page=a,t.blocks=t.splitblock_metas(),t.getTxs(),e.abrupt("return");case 6:return t.maxHeight=t.maxHeight-t.size,e.next=9,t.switchHeight();case 9:case"end":return e.stop()}}),e)})))()},getRpcBlockchain:function(t,e){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a.loading=!0,n.next=3,a.$api.fetch("getRpcBlockchain",{minHeight:t,maxHeight:e});case 3:return r=n.sent,a.loading=!1,n.abrupt("return",r);case 6:case"end":return n.stop()}}),n)})))()},switchHeight:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.page=5,t.maxHeight>t.last_height&&(t.maxHeight=t.last_height),t.maxHeight<t.size&&(t.maxHeight=t.size),t.minHeight=t.maxHeight-t.size+1,e.next=6,t.getRpcBlockchain(t.minHeight,t.maxHeight);case 6:a=e.sent,t.blocks=a.block_metas.reverse(),t.getTxs();case 9:case"end":return e.stop()}}),e)})))()},getTxs:function(){var t,e=this,a={},n=Object(s["a"])(this.blocks);try{var r=function(){var n=t.value;n.num_txs>0&&e.$api.fetch("getTxs",{height:n.height}).then((function(t){if(t){var r,o=[],l=t.txs||t||[],c=Object(s["a"])(l);try{for(c.s();!(r=c.n()).done;){var d,u=r.value,p=!!u.logs,m=u.tags||u.events||u.logs&&u.logs[0]&&u.logs[0].events||[],f=u.txhash,v={},g=Object(s["a"])(m);try{for(g.s();!(d=g.n()).done;){var h=d.value;if(h.key){var b=h.key,_=h.value;"action"===b&&(v=Object(i["a"])(Object(i["a"])({},v),{},{height:u.height,success:p,hash:f,action:_,timestamp:u.timestamp})),"sender"===b&&(v.sender=_)}if(h.attributes){var x,w=Object(s["a"])(h.attributes);try{for(w.s();!(x=w.n()).done;){var y=x.value;"action"===y.key&&(v=Object(i["a"])(Object(i["a"])({},v),{},{height:u.height,success:p,hash:f,action:y.value,timestamp:u.timestamp})),"sender"===y.key&&(v.sender=y.value)}}catch(k){w.e(k)}finally{w.f()}}}}catch(k){g.e(k)}finally{g.f()}v.hash=u.txhash,v.memo=u.tx.value.memo,o.push(v)}}catch(k){c.e(k)}finally{c.f()}a[n.height]=o,e.blockTxObj=JSON.parse(JSON.stringify(a))}}))};for(n.s();!(t=n.n()).done;)r()}catch(o){n.e(o)}finally{n.f()}}}},d={mixins:[c]},u=d,p=(a("3e6f"),a("2877")),m=Object(p["a"])(u,n,r,!1,null,"4b32698d",null);e["default"]=m.exports},c8d2:function(t,e,a){var n=a("d039"),r=a("5899"),i="
";t.exports=function(t){return n((function(){return!!r[t]()||i[t]()!=i||r[t].name!==t}))}},ca41:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",["kava-2"===t.current.chainId?a("div",{staticStyle:{"margin-bottom":"10px"}},[a("el-radio-group",{staticClass:"box-base",attrs:{size:"mini"},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[a("el-radio-button",{attrs:{label:"governance"}},[t._v(t._s(t.$t("message.governance")))]),a("el-radio-button",{attrs:{label:"kava"}},[t._v(t._s(t.$t("message.committee")))])],1)],1):t._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:"governance"===t.tab,expression:"tab === 'governance'"},{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"border-eee"},[t._l(t.list,(function(e,n){return a("div",{key:n,staticClass:"bg-white governance-item"},[a("div",{staticClass:"flex-1"},[a("div",{staticClass:"mb-10"},[a("el-link",{attrs:{href:"#/governance/"+e.id+(t.address?"?address="+t.address:""),disabled:"--"===e.id}},["--"!==e.id?a("i",{staticClass:"el-icon-reading mr-10"}):t._e(),t._v(" "+t._s(e.title)+" ")])],1),a("div",{staticClass:"mb-10"},[a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s("id: "+e.id)+" ")]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s(e.proposal_status)+" ")])],1),a("div",{staticClass:"governance-text"},[t._v(t._s(e.description_sub))]),a("div",{staticClass:"governance-foot"},["--"!==e.id?a("el-link",{staticClass:"mr-10",attrs:{href:"#/governance/"+e.id}},[t._v(" "+t._s(t.$t("message.block_detail"))+" "),a("i",{staticClass:"el-icon-arrow-right"})]):t._e(),"DepositPeriod"!==e.proposal_status?a("span",[a("span",{staticClass:"governance-time"},[t._v(t._s(e.voting_start_time))]),a("span",{staticClass:"governance-time"},[t._v(t._s("~"+(e&&e.voting_end_time||"")))])]):a("span",{staticClass:"governance-time"},[t._v(t._s(e&&e.submit_time||""))])],1)]),"VotingPeriod"===e.proposal_status?a("div"):t._e(),"--"!==e.id&&"VotingPeriod"!==e.proposal_status&&"DepositPeriod"!==e.proposal_status?a("RateBar",{staticStyle:{"margin-right":"20px"},attrs:{id:n,data:[{type:"Yes",value:e.yes,bg:"#8be4c1",label:e.yes_percent,line:.5},{type:"Abstain",value:e.abstain,label:e.abstain_percent,bg:"#8cb0fb"},{type:"No",value:e.no,label:e.no_percent,bg:"#eb7f65",line:.334},{type:"No Veto",value:e.no_with_veto,label:e.no_with_veto_percent,bg:"#7585a2"},{type:"Join",value:e.join,label:e.join_percent,bg:"#91d5ff"}]}}):t._e()],1)})),0===t.list.length?a("div",{staticClass:"bg-white p-20"},[a("dingyi-empty")],1):t._e()],2),a("KavaGovernance",{directives:[{name:"show",rawName:"v-show",value:"kava-2"===t.current.chainId&&"kava"===t.tab,expression:"current.chainId === 'kava-2' && tab === 'kava'"}]})],1)},r=[],i=a("61b3"),s=a("d75d"),o=a("edf7"),l=a("d07f"),c={components:{KavaGovernance:l["default"],FlipClock:o["a"],RateBar:s["a"]},computed:{current:function(){return window.chain}},mixins:[i["a"]],data:function(){for(var t=[],e=0;e<5;e+=1)t.push({id:"--",title:"--",description_sub:"--",proposal_status:"--",time:"---"});return{tab:"governance",list:t}}},d=c,u=(a("fd54"),a("2877")),p=Object(u["a"])(d,n,r,!1,null,"0907d56e",null);e["default"]=p.exports},cbe0:function(t,e,a){"use strict";a("e278")},cd3f:function(t,e,a){var n=a("4939");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("5fa47975",n,!0,{sourceMap:!1,shadowMode:!1})},cf45:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));a("ade3"),a("5530"),a("13d5"),a("a9e3"),a("d3b7"),a("901e").BigNumber;function n(t){var e={ATOM:"uatom",MUON:"umuon",LUNA:"uluna",TREE:"seed",NGM:"ungm"};return e[t]?e[t]:t.toLowerCase()}},cf47:function(t,e,a){var n=a("6e17");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("9dc68026",n,!0,{sourceMap:!1,shadowMode:!1})},d07f:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"border-eee"},[t._l(t.list,(function(e,n){return a("div",{key:n,staticClass:"bg-white governance-item"},[a("div",{staticClass:"flex-1"},[a("div",{staticClass:"mb-10"},[a("el-link",{attrs:{href:"#/committee/"+e.id+(t.address?"?address="+t.address:""),disabled:"--"===e.id}},["--"!==e.id?a("i",{staticClass:"el-icon-reading mr-10"}):t._e(),t._v(" "+t._s(e.description)+" ")])],1),a("div",{staticClass:"mb-10"},[a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s("id: "+e.id)+" ")]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s(e.vote_threshold_str)+" ")]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v(" "+t._s(e.proposal_duration_str)+" ")]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v("members: "+t._s(e.members&&e.members.length))]),a("el-tag",{staticClass:"mr-10",attrs:{type:"info",size:"mini"}},[t._v("permissions: "+t._s(e.permissions&&e.permissions.length))])],1),a("div",{staticClass:"governance-text"},[t._v(t._s(e.description))])]),"VotingPeriod"===e.proposal_status?a("div"):t._e()])})),0===t.list.length?a("div",{staticClass:"bg-white p-20"},[a("dingyi-empty")],1):t._e()],2)},r=[],i=a("3901"),s=a("4f4f"),o=a("edf7"),l={components:{FlipClock:o["a"],RateBar:s["a"]},mixins:[i["a"]],data:function(){for(var t=[],e=0;e<5;e+=1)t.push({id:"--",title:"--",description_sub:"--",proposal_status:"--",time:"---"});return{list:t}}},c=l,d=(a("152c"),a("2877")),u=Object(d["a"])(c,n,r,!1,null,"5b3e6a1f",null);e["default"]=u.exports},d47e:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{background:"#fff"}},[a("div",{staticStyle:{"max-width":"500px",margin:"0 auto",padding:"40px 0"}},["form"===t.step?[a("div",{staticStyle:{"font-size":"20px"}},[t._v("Stake")]),a("div",{staticStyle:{color:"#666","margin-bottom":"20px"}},[t._v("From: "+t._s(t.address))]),a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-position":"top"}},[a("el-form-item",{attrs:{label:"Select Validator",prop:"toAddress"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"please select"},model:{value:t.form.toAddress,callback:function(e){t.$set(t.form,"toAddress",e)},expression:"form.toAddress"}},t._l(t.validatorObj,(function(t,e){return a("el-option",{key:e,attrs:{label:t.moniker,value:t.operator_address}})})),1)],1),a("el-form-item",{attrs:{label:"Amount (Max "+t.available+")",prop:"amount"}},[a("el-input",{attrs:{type:"number",min:0},model:{value:t.form.amount,callback:function(e){t.$set(t.form,"amount",e)},expression:"form.amount"}},[a("el-button",{attrs:{slot:"append",loading:t.loading},on:{click:t.setMax},slot:"append"},[t._v("Max")])],1)],1),a("el-form-item",{attrs:{label:"Memo (optional)"}},[a("el-input",{attrs:{placeholder:"memo (optional)"},model:{value:t.form.memo,callback:function(e){t.$set(t.form,"memo",e)},expression:"form.memo"}})],1),a("el-form-item",{attrs:{label:"Ledger Account Index (default 0,0)"}},[a("div",[a("span",{staticStyle:{display:"inline-block",width:"60px"}},[t._v("Account")]),a("el-input-number",{attrs:{size:"mini",min:0},model:{value:t.numAccount,callback:function(e){t.numAccount=e},expression:"numAccount"}}),a("span",{staticStyle:{display:"inline-block",width:"40px","margin-left":"20px"}},[t._v("Index")]),a("el-input-number",{attrs:{size:"mini",min:0},model:{value:t.numIndex,callback:function(e){t.numIndex=e},expression:"numIndex"}})],1),a("div",{staticStyle:{"margin-top":"10px"}},[a("span",{staticStyle:{display:"inline-block",width:"60px"}},[t._v("Gas")]),a("span",[t._v(" "+t._s(t.gasAtom))])]),a("div",[a("span",{staticStyle:{display:"inline-block",width:"60px"}},[t._v("Total")]),a("span",[t._v(" "+t._s(t.subTotal))])])])],1),a("el-button",{staticClass:"box-base",staticStyle:{width:"200px"},attrs:{type:"primary",round:"",loading:t.loading},on:{click:t.sendByLedger}},[t._v("Stake by ledger")]),a("div",{staticClass:"sendsuccess-subtitle",staticStyle:{"text-align":"left","margin-top":"10px"}},[t._v(" * If there are any exceptions, refresh the page and try again. ")])]:t._e(),"load"===t.step?[a("div",{staticClass:"tc",staticStyle:{"margin-top":"40px"}},[a("div",[a("i",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"el-icon-info",staticStyle:{"font-size":"48px",color:"#1890ff"}})]),a("div",{staticClass:"sendsuccess-title"},[t._v(" You can view transaction information and sign. ")]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" Please open ledger and cosmos app. ")]),a("div",[a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{round:""},on:{click:t.goSend}},[t._v("Cancel transaction")])],1)])]:t._e(),"ok"===t.step?[a("div",{staticClass:"tc",staticStyle:{"margin-top":"40px"}},[t._m(0),a("div",{staticClass:"sendsuccess-title"},[t._v("Success!")]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" Block Height: "),a("a",{attrs:{href:t.tx?"#/block/"+t.tx.height:"javascript:void(0)"}},[t._v(" "+t._s(t.tx&&"#"+t.tx.height||"--"))])]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" Tx Hash: "),a("a",{staticStyle:{"font-size":"12px"},attrs:{href:t.tx?"#/tx/"+t.tx.txhash:"javascript:void(0)"}},[t._v(" "+t._s(t.tx&&t.tx.txhash||"--"))])]),a("div",[a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{round:""},on:{click:t.goSend}},[t._v("Send Again")])],1)])]:t._e(),"warn"===t.step?[a("div",{staticClass:"tc",staticStyle:{"margin-top":"40px"}},[t._m(1),a("div",{staticClass:"sendsuccess-title"},[t._v("Please check it later.")]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" Transaction information has not been found. ")]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" Tx Hash: "),a("a",{staticStyle:{"font-size":"12px"},attrs:{href:t.txhash?"#/tx/"+t.txhash:"javascript:void(0)"}},[t._v(" "+t._s(t.txhash||"--"))])]),a("div",[a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{round:"",loading:t.loading},on:{click:t.checkTx}},[t._v("Get Transaction Again")])],1)])]:t._e(),"error"===t.step?[a("div",{staticClass:"tc",staticStyle:{"margin-top":"40px"}},[t._m(2),a("div",{staticClass:"sendsuccess-title"},[t._v("Submission Failed.")]),a("div",{staticClass:"sendsuccess-subtitle"},[t._v(" Please check and modify the following information before resubmitting. ")]),a("div",[a("el-button",{staticClass:"box-base",staticStyle:{width:"200px","margin-top":"20px"},attrs:{round:"",loading:t.loading},on:{click:t.goSend}},[t._v("Send Again")])],1)])]:t._e()],2)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("i",{staticClass:"el-icon-circle-check",staticStyle:{"font-size":"48px",color:"#52c41a"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"font-size":"48px",color:"#faad14"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"48px",color:"#ff4d4f"}})])}],i=a("251c"),s=a("1da1"),o=(a("96cf"),a("a9e3"),a("d9bc")),l=a("cf45"),c=a("e4e9"),d=a("901e"),u=a.n(d),p=a("636f"),m={mixins:[p["a"]],created:function(){var t=this.$route.query.address;t&&(this.address=t,this.initAccount(t),this.getAuthAccounts())},data:function(){return{available:0,noticOk:"",noticeMsg:"",form:{amount:0,toAddress:"",memo:"stake via look.ping.pub 2020"},address:"",account:{account_number:"",sequence:"",coins:[],type:""},step:"form",loading:!1,gas:3575,tx:null,txhash:"",numAccount:0,numIndex:0}},filters:{shortAddress:function(t){return t.substr(0,12)+"..."+t.substr(-12,12)}},computed:{subTotal:function(){if(this.gas){var t=new u.a(Object(o["a"])(Number(this.gas))).plus(this.form.amount);return t}},gasAtom:function(){return Object(o["a"])(Number(this.gas))}},methods:{initAccount:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loading=!0,a.next=3,e.$api.fetch("getAuthAccounts",{address:t});case 3:n=a.sent,e.loading=!1,e.account=n;case 6:case"end":return a.stop()}}),a)})))()},setMax:function(){var t=new u.a(this.available).minus(this.gasAtom);this.form.amount=Number(t)},sendByLedger:function(){this.form.toAddress&&this.form.amount?this.signLedger():this.noticeMsg="Please input form."},signLedger:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n,r,i,d,u,p,m,f,v,g,h,b,_,x;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,a=t.form,n=a.toAddress,r=a.memo,i=a.amount,d=t.account,u=d.account_number,p=d.sequence,m=Object(l["a"])(window.chain.unit),f=[{amount:Object(o["e"])(i),denom:m}],v=t.address,g=t.gas,h={senderAddress:v,validatorAddress:n,amounts:f,memo:r,account_number:u,sequence:p,gas:g,amount:Object(o["e"])(i),account:t.numAccount,index:t.numIndex,denom:m},t.step="load",e.prev=9,e.next=12,Object(c["a"])(h);case 12:b=e.sent,e.next=20;break;case 15:e.prev=15,e.t0=e["catch"](9),t.noticeMsg=e.t0.message,t.loading=!1,t.goSend();case 20:if(b){e.next=22;break}return e.abrupt("return");case 22:return e.next=24,t.$api.fetch("postTxs",{txBroadcast:b});case 24:if(_=e.sent,_.txhash){e.next=28;break}return t.step="error",e.abrupt("return");case 28:x=_.txhash,t.txhash=x,t.noticOk="Successful signature and Transaction submitted!",setTimeout(Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.checkTx();case 2:case"end":return e.stop()}}),e)}))),5e3);case 32:case"end":return e.stop()}}),e,null,[[9,15]])})))()},checkTx:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,t.$api.fetch("getTxsHash",{hash:t.txhash});case 4:a=e.sent,e.next=11;break;case 7:e.prev=7,e.t0=e["catch"](1),console.log(e.t0),a=e.t0;case 11:t.loading=!1,a||(t.step="warn"),a.height&&(t.step="ok",t.tx=a);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})))()},getAuthAccounts:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.address,t.loading=!0,e.next=4,t.$api.fetch("getAuthAccounts",{address:a});case 4:if(n=e.sent,n){e.next=7;break}return e.abrupt("return");case 7:t.available=Number(n.available),t.loading=!1;case 9:case"end":return e.stop()}}),e)})))()},goSend:function(){this.step="form"}}},f={mixins:[m],data:function(){var t=function(t,e,a){if(!e)return a(new Error("Please input to address"));try{i["c"].decode(e),a()}catch(n){a(new Error(n.message))}};return{rules:{toAddress:[{required:!0,validator:t,trigger:"blur"}],amount:[{required:!0,trigger:"blur",message:"please input amount"},{min:0,trigger:"blur",message:"please input amount"}]}}},watch:{noticeMsg:function(t){t&&(this.$message.error(t),this.noticeMsg="")},noticOk:function(t){t&&(this.$message.success(t),this.noticeOk="")}}},v=f,g=(a("6389"),a("2877")),h=Object(g["a"])(v,n,r,!1,null,"5a2dbf64",null);e["default"]=h.exports},d528:function(t,e,a){var n=a("c2d5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("52cdbcb8",n,!0,{sourceMap:!1,shadowMode:!1})},d6aa:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".logo[data-v-7473927a]{font-size:24px;font-weight:500;margin-right:20px;color:#eee}.topbar[data-v-7473927a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:50px;font-size:14px}.topbar a[data-v-7473927a]{color:#999;cursor:pointer;padding:0 15px}.topbar .topbar-active[data-v-7473927a],.topbar a[data-v-7473927a]:hover{color:#333}",""]),t.exports=e},d75d:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex-center",staticStyle:{"align-items":"flex-end","align-self":"flex-end","justify-content":"center"}},t._l(t.data,(function(e,n){return a("div",{key:n,staticClass:"ratebar-item",style:{width:t.barWidth}},[a("div",[t._v(t._s(e.label||e.value))]),a("div",{staticClass:"rateline-line",style:{height:e.value*t.baseHeight+"px",background:e.bg,width:t.lineWidth}}),e.line?a("div",{staticClass:"ratebar-scale",style:{top:"-"+e.line*t.baseHeight+"px"}}):t._e(),a("div",{staticClass:"ratebar-text"},[t._v(t._s("Yes"===e.type?t.$t("message.governance_Yes"):"Abstain"===e.type?t.$t("message.governance_Abstain"):"No"===e.type?t.$t("message.governance_No"):"No Veto"===e.type?t.$t("message.governance_NoVeto"):"Join"===e.type?t.$t("message.governance_Join"):""))])])})),0)},r=[],i={props:{barWidth:{default:"50px"},lineWidth:{default:"20px"},baseHeight:{default:100},data:{default:function(){return[{type:"Yes",value:1,bg:"#52c41a",line:.5},{type:"No",value:.3,bg:"#faad14",line:.334},{type:"Abstain",value:.3,bg:"#e66",line:null},{type:"No Veto",value:.2,bg:"#ddd",line:null}]}}}},s=i,o=(a("3037"),a("2877")),l=Object(o["a"])(s,n,r,!1,null,"2803c5ec",null);e["a"]=l.exports},d786:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"a",(function(){return o}));var n=a("1da1");a("96cf"),a("2ca0"),a("498a"),a("d3b7"),a("3ca3"),a("ddb0");function r(t){if(t.message.trim().startsWith("Device is already open"))throw new Error("Something went wrong connecting to your Ledger. Please refresh your page and try again.");throw t}function i(t){return s.apply(this,arguments)}function s(){return s=Object(n["a"])(regeneratorRuntime.mark((function t(e){var n,r,i,s,o,l,c,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=e.account,r=e.index,i="cosmos",s="cosmos",t.t0=i,t.next="cosmos"===t.t0?6:13;break;case 6:return t.next=8,a.e("chunk-f717d484").then(a.t.bind(null,"3802",7));case 8:return o=t.sent,l=o.default,c=[44,118,n,0,r],d=new l({testModeAllowed:!1},c,s),t.abrupt("return",d);case 13:throw new Error("Doesn't support connecting to the Ledger for this network.");case 14:case"end":return t.stop()}}),t)}))),s.apply(this,arguments)}var o=function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i(e);case 2:return a=t.sent,t.prev=3,t.next=6,a.getCosmosAddress();case 6:return n=t.sent,t.abrupt("return",n);case 10:t.prev=10,t.t0=t["catch"](3),r(t.t0);case 13:return t.prev=13,a&&a.cosmosApp&&a.cosmosApp.transport.close(),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[3,10,13,16]])})));return function(e){return t.apply(this,arguments)}}()},d9e7:function(t,e,a){var n=a("2bee");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("86f3ecea",n,!0,{sourceMap:!1,shadowMode:!1})},db0f:function(t,e,a){var n=a("73ab");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("7ec3f762",n,!0,{sourceMap:!1,shadowMode:!1})},dd96:function(t,e,a){"use strict";a("9f1e")},de9f:function(t,e,a){var n=a("0555");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("dd7d20a4",n,!0,{sourceMap:!1,shadowMode:!1})},e14b:function(t,e,a){var n=a("24df");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("5b573a54",n,!0,{sourceMap:!1,shadowMode:!1})},e249:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".tx-item{margin-bottom:10px}.tx-item-title{font-weight:500;font-size:15px;color:#343a40}.tx-item-val{color:#98a6ad;overflow-wrap:break-word}.datatable-empty{text-align:center;padding:80px 0}.datatable-empty-icon{font-size:64px}.area-title-main{margin-top:20px;border-left:4px solid #343a40;padding:5px 10px}",""]),t.exports=e},e278:function(t,e,a){var n=a("f1e4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("568633df",n,!0,{sourceMap:!1,shadowMode:!1})},e4e9:function(t,e,a){"use strict";a.d(e,"c",(function(){return h})),a.d(e,"b",(function(){return b})),a.d(e,"a",(function(){return x})),a.d(e,"d",(function(){return y}));var n={};a.r(n),a.d(n,"MsgSend",(function(){return l})),a.d(n,"MsgDelegate",(function(){return c})),a.d(n,"MsgUndelegate",(function(){return d})),a.d(n,"MsgRedelegate",(function(){return u})),a.d(n,"MsgSubmitProposal",(function(){return p})),a.d(n,"MsgVote",(function(){return m})),a.d(n,"MsgDeposit",(function(){return f})),a.d(n,"MsgWithdrawDelegationReward",(function(){return v}));var r=a("1da1"),i=(a("a9e3"),a("d3b7"),a("25f0"),a("96cf"),a("2ca0"),a("498a"),a("d786"));function s(t,e,a){return o.apply(this,arguments)}function o(){return o=Object(r["a"])(regeneratorRuntime.mark((function t(e,a,n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("ledger"!==e){t.next=4;break}return a||(a=0),n||(n=0),t.abrupt("return",function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var r,s,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["b"])({account:a,index:n});case 2:return r=t.sent,t.prev=3,t.next=6,r.getPubKey();case 6:return s=t.sent,t.next=9,r.sign(e);case 9:o=t.sent,t.next=17;break;case 12:if(t.prev=12,t.t0=t["catch"](3),!t.t0.message.trim().startsWith("Device is already open")){t.next=16;break}throw new Error("Something went wrong connecting to your Ledger. Please refresh your page and try again.");case 16:throw t.t0;case 17:return r.cosmosApp.transport.close(),t.abrupt("return",{signature:o,publicKey:s});case 19:case"end":return t.stop()}}),t,null,[[3,12]])})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)}))),o.apply(this,arguments)}a("a4d3"),a("e01a"),a("d81d");function l(t,e){var a=e.toAddress,n=e.amounts;return{type:"cosmos-sdk/MsgSend",value:{amount:n,from_address:t,to_address:a}}}function c(t,e){var a=e.validatorAddress,n=e.amount,r=e.denom;return{type:"cosmos-sdk/MsgDelegate",value:{amount:[{amount:n,denom:r}],delegator_address:t,validator_address:a}}}function d(t,e){var a=e.validatorAddress,n=e.amount,r=e.denom;return{type:"cosmos-sdk/MsgUndelegate",value:{amount:g({amount:n,denom:r}),delegator_address:t,validator_address:a}}}function u(t,e){var a=e.validatorSourceAddress,n=e.validatorDestinationAddress,r=e.amount,i=e.denom;return{type:"cosmos-sdk/MsgBeginRedelegate",value:{amount:g({amount:r,denom:i}),delegator_address:t,validator_dst_address:n,validator_src_address:a}}}function p(t,e){var a=e.title,n=e.description,r=e.initialDeposits;return{type:"cosmos-sdk/MsgSubmitProposal",value:{content:{type:"cosmos-sdk/TextProposal",value:{description:n,title:a}},initial_deposit:r.map(g),proposer:t}}}function m(t,e){var a=e.proposalId,n=e.option;return{type:"cosmos-sdk/MsgVote",value:{option:n,proposal_id:a,voter:t}}}function f(t,e){var a=e.proposalId,n=e.amounts;return{type:"cosmos-sdk/MsgDeposit",value:{amount:n.map(g),depositor:t,proposal_id:a}}}function v(t,e){var a=e.validatorAddress;return{type:"cosmos-sdk/MsgWithdrawDelegationReward",value:{delegator_address:t,validator_address:a}}}function g(t){var e=t.amount,a=t.denom;return{amount:String(e),denom:a}}function h(){return n}function b(t){return _.apply(this,arguments)}function _(){return _=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a,n,r,i,s,o,c,d,u,p,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.senderAddress,n=e.toAddress,r=e.memo,i=e.account_number,s=e.sequence,o=e.gas,c=e.amount,d=e.account,u=e.amounts,p=e.index,m=l(a,{toAddress:n,amounts:u}),t.next=4,y({account:d,account_number:i,amount:c,gas:o,index:p,memo:r,sequence:s},m);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)}))),_.apply(this,arguments)}function x(t){return w.apply(this,arguments)}function w(){return w=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a,n,r,i,s,o,l,d,u,p,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.senderAddress,n=e.validatorAddress,r=e.memo,i=e.account_number,s=e.sequence,o=e.gas,l=e.amount,d=e.account,u=e.index,p=e.denom,m=c(a,{validatorAddress:n,amount:l,denom:p}),t.next=4,y({account:d,account_number:i,amount:l,gas:o,index:u,memo:r,sequence:s},m);case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)}))),w.apply(this,arguments)}function y(t,e){return k.apply(this,arguments)}function k(){return k=Object(r["a"])(regeneratorRuntime.mark((function t(e,a){var n,r,i,o,l,c,d,u,p,m,f,v,g,h,b,_;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.account,r=e.account_number,i=e.amount,o=e.gas,l=e.index,c=e.memo,d=e.sequence,u=[a],p={amount:[{amount:o+"",denom:"uatom"}],gas:o+Number(i)+""},m={account_number:r,chain_id:"cosmoshub-3",fee:p,memo:c,msgs:u,sequence:d},t.prev=4,t.next=7,s("ledger",n,l);case 7:f=t.sent,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](4),console.log(t.t0);case 13:if(f){t.next=15;break}return t.abrupt("return");case 15:return t.next=17,f(JSON.stringify(m));case 17:return v=t.sent,g=v.signature,h=v.publicKey,b={signature:g.toString("base64"),account_number:r,sequence:d,pub_key:{type:"tendermint/PubKeySecp256k1",value:h.toString("base64")}},_={tx:{msg:u,fee:p,memo:c,signatures:[b]},mode:"async"},t.abrupt("return",_);case 23:case"end":return t.stop()}}),t,null,[[4,10]])}))),k.apply(this,arguments)}},e5ce:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".governance-item[data-v-5b3e6a1f]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid #eee;padding:20px 20px}.governance-item[data-v-5b3e6a1f]:hover{-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1)}.governance-title[data-v-5b3e6a1f]{cursor:pointer;margin-bottom:12px;color:rgba(0,0,0,.85);font-size:16px;line-height:24px}.governance-title[data-v-5b3e6a1f]:hover{color:#1890ff}.governance-text[data-v-5b3e6a1f]{max-width:900px;line-height:22px;color:rgba(0,0,0,.65)}.governance-foot[data-v-5b3e6a1f]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:16px;color:rgba(0,0,0,.45)}.governance-time[data-v-5b3e6a1f]{color:rgba(0,0,0,.25);font-style:normal}",""]),t.exports=e},e95d:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".uptime-content[data-v-98160f48]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.uptime-block-item[data-v-98160f48]{display:inline-block;width:15px;height:15px;border:1px solid #67c23a;margin-right:2px}.uptime-block-item-active[data-v-98160f48]{background:#c2e7b0}.uptime-username[data-v-98160f48]{color:#343a40}.uptime-username[data-v-98160f48]:hover{color:#1890ff}.styicky-operation[data-v-98160f48]{position:fixed;top:70px;left:20px;right:20px;background:#f5f6f8;z-index:20;padding:10px 10px!important}.h5-p10[data-v-98160f48]{padding:0 10px}",""]),t.exports=e},ea6d:function(t,e,a){var n=a("bb81");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("0cb9f639",n,!0,{sourceMap:!1,shadowMode:!1})},eb97:function(t,e,a){var n=a("d6aa");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("aa252652",n,!0,{sourceMap:!1,shadowMode:!1})},eb9d:function(t,e,a){"use strict";a("7672")},ed7c:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".logo[data-v-5a2dbf64]{width:50px;height:31px;line-height:31px;font-size:24px;font-weight:700;color:#2e3338;margin:16px 24px 16px 0;float:left}.subtotal-item[data-v-5a2dbf64]{padding:5px 0;font-size:18px;font-weight:400;color:#333}.subtotal-item span[data-v-5a2dbf64]{color:#666;font-size:14px;display:inline-block;font-weight:400;width:100px}.subtotal-total[data-v-5a2dbf64]{border-top:1px solid #eee;margin-top:10px;padding-top:10px}.sendsuccess-title[data-v-5a2dbf64]{color:rgba(0,0,0,.85);font-size:24px;line-height:1.8;text-align:center}.sendsuccess-subtitle[data-v-5a2dbf64]{color:rgba(0,0,0,.45);font-size:14px;line-height:1.6;text-align:center}",""]),t.exports=e},edf7:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"FlipClock"},[a("Flipper",{ref:"flipperDay1",attrs:{frontText:"9"}}),a("Flipper",{ref:"flipperDay2"}),a("Flipper",{ref:"flipperDay3"}),a("em",[t._v("-")]),a("Flipper",{ref:"flipperHour1"}),a("Flipper",{ref:"flipperHour2"}),a("em",[t._v(":")]),a("Flipper",{ref:"flipperMinute1"}),a("Flipper",{ref:"flipperMinute2"}),a("em",[t._v(":")]),a("Flipper",{ref:"flipperSecond1"}),a("Flipper",{ref:"flipperSecond2"})],1)},r=[],i=a("5a0c"),s=a.n(i),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"M-Flipper",class:[t.flipType,{go:t.isFlipping}]},[a("div",{staticClass:"digital front",class:t._textClass(t.frontTextFromData)}),a("div",{staticClass:"digital back",class:t._textClass(t.backTextFromData)})])},l=[],c=(a("a9e3"),{name:"FlipClock",data:function(){return{isFlipping:!1,flipType:"down",frontTextFromData:0,backTextFromData:1}},props:{frontText:{type:[Number,String],default:0},backText:{type:[Number,String],default:1},duration:{type:Number,default:600}},methods:{_textClass:function(t){return"number"+t},_flip:function(t,e,a){var n=this;if(this.isFlipping)return!1;this.frontTextFromData=e,this.backTextFromData=a,this.flipType=t,this.isFlipping=!0,setTimeout((function(){n.isFlipping=!1,n.frontTextFromData=a}),this.duration)},flipDown:function(t,e){this._flip("down",t,e)},flipUp:function(t,e){this._flip("up",t,e)},setFront:function(t){this.frontTextFromData=t},setBack:function(t){this.backTextFromData=t}},created:function(){this.frontTextFromData=this.frontText,this.backTextFromData=this.backText}}),d=c,u=(a("4c55"),a("2877")),p=Object(u["a"])(d,o,l,!1,null,null,null),m=p.exports,f={name:"FlipClock",data:function(){return{target:"2020-05-01 10:30:30",timer:null,flipObjs:[]}},components:{Flipper:m},methods:{padLeftZero:function(t){return("00"+t).substr(t.length)},calRange:function(){var t=s()(),e=s()(this.target).diff(t,"s");console.log(e);var a=86400,n=parseInt(e/a),r=e-n*a,i=parseInt(r/60/60),o=r-60*i*60,l=parseInt(o/60),c=o-60*l;console.log(n,i,l,c)},testTimer:function(){var t=this,e=9,a=setInterval((function(){t.$refs.flipperDay1.flipDown(e,e-1),e-=1,0===e&&clearInterval(a)}),1e3)}},mounted:function(){this.calRange(),this.$nextTick((function(){}))}},v=f,g=(a("c168"),Object(u["a"])(v,n,r,!1,null,null,null));e["a"]=g.exports},f02a:function(t,e,a){"use strict";a("7821")},f1e4:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".logo[data-v-15a822b6]{width:50px;height:31px;line-height:31px;font-size:24px;font-weight:700;color:#2e3338;margin:16px 24px 16px 0;float:left}.subtotal-item[data-v-15a822b6]{padding:5px 0;font-size:18px;font-weight:400;color:#333}.subtotal-item span[data-v-15a822b6]{color:#666;font-size:14px;display:inline-block;font-weight:400;width:100px}.subtotal-total[data-v-15a822b6]{border-top:1px solid #eee;margin-top:10px;padding-top:10px}.sendsuccess-title[data-v-15a822b6]{color:rgba(0,0,0,.85);font-size:24px;line-height:1.8;text-align:center}.sendsuccess-subtitle[data-v-15a822b6]{color:rgba(0,0,0,.45);font-size:14px;line-height:1.6;text-align:center}",""]),t.exports=e},f424:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".block-more-title[data-v-dee4b840]{margin-top:20px;border-left:4px solid #343a40;padding:5px 10px}.block-more-wrap[data-v-dee4b840]{padding:20px;margin-top:20px;min-height:300px}.block-text[data-v-dee4b840]{font-size:20px;font-weight:500}.txitem-header[data-v-dee4b840]{border-left:4px solid #343a40;padding:5px 10px}.block-val[data-v-dee4b840]{margin-bottom:10px}",""]),t.exports=e},f6f6:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=this,a=e.$createElement,n=e._self._c||a;return n("div",[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"bg-white box-dark governance-title-panel"},[n("div",{staticClass:"flex-center mb-20"},[n("div",{staticClass:"governance-id-title"},[e._v(e._s(e.item.title))]),n("div",{staticClass:"flex-1"}),e.address?n("el-button",{staticClass:"box-base",staticStyle:{width:"80px"},attrs:{type:"primary",round:""},on:{click:function(){t.$router.push("/wallet-vote?address="+e.address)}}},[e._v(e._s(e.$t("message.governanceid_vote")))]):e._e()],1),n("el-row",[n("el-col",{staticClass:"mb-20",attrs:{span:9,sm:9,xs:24}},[n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_proposalId"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.id))])]),n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_submit_time"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.submit_time))])]),n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_voting_start_time"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.voting_start_time))])])]),n("el-col",{staticClass:"mb-20",attrs:{span:9,sm:9,xs:24}},[n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_proposalType"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.type))])]),n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_deposit_end_time"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.deposit_end_time))])]),n("div",{staticClass:"mb-10"},[n("span",{staticClass:"governance-id-name"},[e._v(e._s(e.$t("message.governanceid_voting_end_time"))+":")]),n("span",{staticClass:"governance-id-val"},[e._v(e._s(e.item.voting_end_time))])])]),n("el-col",{staticClass:"mb-20 hidden-xs-only",attrs:{span:6,sm:6,xs:24}},[n("div",{staticClass:"flex-center",staticStyle:{"justify-content":"flex-end","align-items":"flex-start"}},[n("div",{staticClass:"governance-id-sub"},[n("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.governanceid_total_deposit")))]),n("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.total_deposit))])]),n("div",{staticClass:"governance-id-sub"},[n("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.governanceid_status")))]),n("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.proposal_status))])])])]),n("el-col",{staticClass:"mb-20 hidden-sm-and-up",attrs:{span:6,sm:6,xs:24}},[n("div",{staticClass:"flex-center",staticStyle:{"justify-content":"flex-start","align-items":"flex-start","flex-wrap":"wrap"}},[n("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-right":"40px","padding-left":"0"}},[n("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.governanceid_total_deposit")))]),n("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.total_deposit))])]),n("div",{staticClass:"governance-id-sub",staticStyle:{"text-align":"left","padding-left":"0px"}},[n("div",{staticClass:"governance-id-subtitle"},[e._v(e._s(e.$t("message.governanceid_status")))]),n("div",{staticClass:"governance-id-subvalue"},[e._v(e._s(e.item.proposal_status))])])])])],1),n("div",{staticClass:"flex-center",staticStyle:{"flex-wrap":"wrap"}},[n("div",{staticClass:"governance-tab",class:{"governance-tab-active":"Votes"===e.tab},on:{click:function(){t.tab="Votes"}}},[n("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"text"}},[e._v(" "+e._s(e.$t("message.governanceid_votes"))+" ")])],1),n("div",{staticClass:"governance-tab",class:{"governance-tab-active":"Description"===e.tab},on:{click:function(){t.tab="Description"}}},[n("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"text"}},[e._v(" "+e._s(e.$t("message.governanceid_description"))+" ")])],1)])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:"Description"===e.tab,expression:"tab === 'Description'"}],staticClass:"bg-white box-dark p-20 mt-20",staticStyle:{"white-space":"pre-wrap",color:"#333"}},[e._v(e._s(e.item.description))]),n("div",{directives:[{name:"show",rawName:"v-show",value:"Votes"===e.tab,expression:"tab === 'Votes'"}]},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{md:12,sm:24}},[n("div",{staticClass:"bg-white box-dark mt-20"},[n("div",{staticStyle:{padding:"10px 15px","border-bottom":"1px solid #eee"}},[e._v(e._s(e.$t("message.governanceid_tallyingProcedure")))]),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"tc",staticStyle:{display:"flex","justify-content":"center"}},["--"!==e.item.id?n("RateBar",{staticStyle:{height:"260px","margin-bottom":"20px"},attrs:{id:e.item.id,baseHeight:200,lineWidth:"40px",barWidth:e.barWidth,data:[{type:"Yes",value:e.item.yes,bg:"#8be4c1",label:e.item.yes_percent,line:.5},{type:"Abstain",value:e.item.abstain,label:e.item.abstain_percent,bg:"#8cb0fb"},{type:"No",value:e.item.no,label:e.item.no_percent,bg:"#eb7f65",line:.334},{type:"No Veto",value:e.item.no_with_veto,label:e.item.no_with_veto_percent,bg:"#7585a2"},{type:"Join",value:e.item.join,label:e.item.join_percent,bg:"#91d5ff"}]}}):e._e()],1)])]),n("el-col",{attrs:{md:12,sm:24}},[n("div",{staticClass:"bg-white box-dark mt-20"},[n("div",{staticStyle:{padding:"10px 15px","border-bottom":"1px solid #eee"}},[e._v(e._s(e.$t("message.governanceid_DEPOSITS")))]),n("div",{staticStyle:{padding:"0 10px"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingDeposits,expression:"loadingDeposits"}],staticStyle:{width:"100%"},attrs:{data:e.depositList,height:"280"}},[n("el-table-column",{attrs:{prop:"depositor",label:e.$t("message.governanceid_Depositor")}}),n("el-table-column",{attrs:{prop:"amountCoin_str",label:e.$t("message.governanceid_Amount"),width:"140px"}}),n("dingyi-empty",{attrs:{slot:"empty",loading:e.loadingDeposits},slot:"empty"})],1)],1)])])],1),n("div",{staticClass:"bg-white box-dark mt-20"},[n("div",{staticStyle:{padding:"10px 20px","border-bottom":"1px solid #eee"}},[e._v(e._s(e.$t("message.governanceid_votes")))]),n("div",{staticStyle:{padding:"0 10px"}},[n("el-table",{staticStyle:{width:"100%","min-height":"200px"},attrs:{data:e.voteList}},[n("el-table-column",{attrs:{prop:"voter",label:e.$t("message.governanceid_Voter")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.addressObj[t.row.voter]?n("a",{attrs:{href:"#/validator/"+e.addressObj[t.row.voter].operator_address}},[e._v(e._s(e.addressObj[t.row.voter].moniker))]):n("span",[e._v(" "+e._s(t.row.voter)+" ")])]}}])}),n("el-table-column",{attrs:{prop:"option",label:e.$t("message.governanceid_Option")}}),n("dingyi-empty",{attrs:{slot:"empty",loading:e.loadingVotes},slot:"empty"})],1)],1)])],1)])},r=[],i=a("1da1"),s=(a("96cf"),a("636f")),o={mixins:[s["a"]],computed:{total_deposit:function(){if(!this.item.total_deposit_str)return"--";var t=this.item.total_deposit_str.amount+" "+this.item.total_deposit_str.denom;return t}},data:function(){return{loading:!1,loadingDeposits:!1,loadingVotes:!1,item:{},address:"",depositList:[],voteList:[]}},created:function(){this.fetchTotalBondedTokens()},activated:function(){this.initData()},methods:{back:function(){this.$router.back()},fetchTotalBondedTokens:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.fetch("getStakingPool");case 2:a=e.sent,t.$store.commit("bondedTokensSet",a.bonded_tokens_val),t.initData();case 5:case"end":return e.stop()}}),e)})))()},initData:function(){var t=this.$route.params.id;this.$route.query.address&&(this.address=this.$route.query.address),this.item={},this.init(t),this.getGovProposalsDeposits(t),this.getGovProposalsVotes(t)},getGovProposalsDeposits:function(t){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loadingDeposits=!0,a.next=3,e.$api.fetch("getGovProposalsDeposits",{proposalId:t});case 3:n=a.sent,e.loadingDeposits=!1,e.depositList=n;case 6:case"end":return a.stop()}}),a)})))()},getGovProposalsVotes:function(t){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loadingVotes=!0,a.next=3,e.$api.fetch("getGovProposalsVotes",{proposalId:t});case 3:n=a.sent,e.loadingVotes=!1,e.voteList=n;case 6:case"end":return a.stop()}}),a)})))()},init:function(t){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.loading=!0,a.next=3,e.$api.fetch("getGovProposalsId",{id:t});case 3:n=a.sent,e.loading=!1,e.item=n;case 6:case"end":return a.stop()}}),a)})))()}}},l=a("d75d"),c={props:{barWidth:{default:"90px"}},components:{RateBar:l["a"]},mixins:[o],data:function(){return{tab:"Votes"}}},d=c,u=(a("7cf0"),a("2877")),p=Object(u["a"])(d,n,r,!1,null,"c03c89b8",null);e["default"]=p.exports},f74f:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".list-title[data-v-65c15444]{font-size:18px;font-weight:400;margin-bottom:10px}",""]),t.exports=e},f917:function(t,e,a){var n=a("f74f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("499e").default;r("23ff27a1",n,!0,{sourceMap:!1,shadowMode:!1})},fa32:function(t,e,a){"use strict";a("3a1d")},fd54:function(t,e,a){"use strict";a("e14b")}}]); |