diff --git a/docs/index.html b/docs/index.html index 6c9437a..73b19b7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -Mercurius
\ No newline at end of file +Mercurius
\ No newline at end of file diff --git a/docs/mercurius.0a86cfccab5d4b5f63e3.js b/docs/mercurius.0a86cfccab5d4b5f63e3.js new file mode 100644 index 0000000..f1943be --- /dev/null +++ b/docs/mercurius.0a86cfccab5d4b5f63e3.js @@ -0,0 +1 @@ +!function(t){function e(e){for(var s,r,o=e[0],c=e[1],p=e[2],d=0,h=[];d({showMenu:!1}),computed:{...Object(a.b)({loggedIn:"isLoggedIn",activeGaia:"activeGaiaStore"}),userdata(){return this.loggedIn?this.$store.state.userdata:null},name(){return this.getProfileName(this.userdata,!0)},avatar(){return this.userdata&&this.userdata.profile&&this.userdata.profile.image&&this.userdata.profile.image[0]?this.userdata.profile.image[0].contentUrl:""},hub(){return this.activeGaia?this.activeGaia.server:"{null}"}},methods:{getProfileName:(t,e)=>t?t.username?t.username:t.profile&&t.profile.name?t.profile.name:e?void 0:`ID-${t.address}`:"{null}",logout(){this.showMenu=!1,this.$store.commit("logout")}}}),l=(i(295),i(47)),d=Object(l.a)(p,c,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"navbar-start",staticStyle:{"flex-grow":"1"}},[e("div",{staticClass:"navbar-item",staticStyle:{"flex-grow":"1","justify-content":"center"}})])}],!1,null,null,null);d.options.__file="src/app/app.vue";var h=d.exports,u=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"mercurius-login"}},[i("div",{staticClass:"container",attrs:{id:"login"}},[i("form",[i("b-field",{attrs:{label:"Mnemonic (Keychain Phrase)",type:t.getType(t.fields.mnemonic),message:t.fields.mnemonic&&t.fields.mnemonic.invalid?"Mnemonic: Must be 12 lowercase words":""}},[i("b-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,regex:/^\s*(?:[a-z]+\s){11}[a-z]+\s*$/},expression:"{ required: true, regex: /^\\s*(?:[a-z]+\\s){11}[a-z]+\\s*$/ }"}],attrs:{name:"mnemonic",placeholder:"apple banana orange cherry mango kiwi grape watermelon strawberry lemon keyboard cat",type:"textarea"},model:{value:t.mnemonic,callback:function(e){t.mnemonic="string"==typeof e?e.trim():e},expression:"mnemonic"}})],1)],1),t._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:t.error,expression:"error"}],staticClass:"error has-text-danger"},[t._v(t._s(t.error))]),t._v(" "),i("button",{staticClass:"button is-primary slim",attrs:{disabled:t.errors.any()||!this.mnemonic},on:{click:function(e){return t.login()}}},[t._v("Login")])])])};u._withStripped=!0;var g=i(64),m=i(19),v=i(27),f=s.default.component("mercurius-login",{props:{done:{required:!1,type:Boolean}},data:()=>({error:"",mnemonic:""}),computed:{...Object(a.b)({loggedIn:"isLoggedIn"})},mounted(){this.loggedIn?this.$emit("update:done",!0):this.$emit("update:done",!1)},watch:{loggedIn(t){t||this.$emit("update:done",!1)}},methods:{getType:(t,e)=>t&&(t.dirty||!e&&t.touched)?t.valid?"is-success":"is-danger":"",async initialize(){console.log("Initializing..."),console.log("Initialized!")},login(){if(console.log("Logging in!"),this.$emit("working",!0),!Object(g.validateMnemonic)(this.mnemonic))return console.error(this.error="Invalid keychain phrase entered!"),this.$emit("error",this.error),void this.$emit("working",!1);Object(g.mnemonicToSeed)(this.mnemonic).then(t=>this.$store.commit("login",m.bip32.fromSeed(t))).then(async()=>this.$store.commit("addGaia",await Object(v.connectToGaiaHub)("https://hub.blockstack.org",this.$store.getters.masterKeychain.getIdentityOwnerAddressNode(0).privateKey.toString("hex")))).then(()=>this.finish()).catch(t=>{console.error("Error logging in:",t),this.$emit("error",this.error),this.$emit("working",!1)})},finish(){this.$emit("update:done",!0),this.$emit("working",!1)}}}),y=(i(624),Object(l.a)(f,u,[],!1,null,null,null));y.options.__file="src/components/mercurius-login/mercurius-login.vue";var w=y.exports,b=function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:"mercurius-loading"}})};b._withStripped=!0;var k=s.default.component("mercurius-loading",{data:()=>({}),mounted(){},methods:{}}),_=(i(625),Object(l.a)(k,b,[],!1,null,null,null));_.options.__file="src/components/mercurius-loading/mercurius-loading.vue";var x=_.exports;var P=i(293),S=i(14);var C=i(65);class L{constructor(t){this._node=t instanceof L?t.node:t,this._node.privateKey?this._keyPair=m.ECPair.fromPrivateKey(this._node.privateKey):this._node.publicKey?this._keyPair=m.ECPair.fromPublicKey(this._node.publicKey):this._keyPair=null}static fromBase58(t,e){return new L(C.fromBase58(t,e))}static fromPrivateKey(t,e,i){return new L(C.fromPrivateKey(t,e,i))}static fromPublicKey(t,e,i){return new L(C.fromPublicKey(t,e,i))}static fromSeed(t,e){return new L(C.fromSeed(t,e))}get node(){return this._node}get keyPair(){return this._keyPair}getAddress(){return t=this._node,m.payments.p2pkh({pubkey:t.publicKey}).address;var t}get chainCode(){return this._node.chainCode}get depth(){return this._node.depth}get index(){return this._node.index}get network(){return this._node.network}get parentFingerprint(){return this._node.parentFingerprint}get identifier(){return this._node.identifier}get fingerprint(){return this._node.fingerprint}get privateKey(){return this._node.privateKey}get publicKey(){return this._node.publicKey}isNeutered(){return this._node.isNeutered()}neutered(){return new L(this._node.neutered())}toBase58(){return this._node.toBase58()}toWIF(){return this._node.toWIF()}derive(t){return new L(this._node.derive(t))}deriveHardened(t){return new L(this._node.deriveHardened(t))}derivePath(t){return new L(this._node.derivePath(t))}sign(t){return this._node.sign(t)}verify(t,e){return this._node.verify(t,e)}}function I(t){let e=0;if(0===t.length)return e;for(let i=0;inew R(m.bip32.fromBase58(t._masterKeychain)),isLoggedIn:t=>t._masterKeychain&&t.gaiaStores.length,storeAge:t=>Date.now()-t.storeBDay,activeGaiaStore:t=>t.gaiaStores[t.activeGaiaStore],identity:(t,e)=>e.masterKeychain.getIdentityOwnerAddressNode(0)},mutations:{login(t,e){t._masterKeychain=e.toBase58();const i=new R(e);t.userdata={username:null,profile:null,address:i.getIdentityOwnerAddressNode(0).getAddress()},t.activeGaiaStore=0,t.identityIndex=0},logout(t){t._masterKeychain=null,t.gaiaStores.splice(0),t.activeGaiaStore=0,t.bigListCache=[]},setBigListCache(t,e){t.bigListCache=[...e]},setAppCache(t,e){t.appCache=[...e]},addGaia(t,e){t.gaiaStores.push(e)},removeGaia(t,e){0!==e&&(t.gaiaStores=t.gaiaStores.slice(0,e).concat(t.gaiaStores.slice(e+1)),t.activeGaiaStore===e?t.activeGaiaStore=0:t.gaiaStores[t.activeGaiaStore]||(t.activeGaiaStore=0))},setActiveGaia(t,e){t.gaiaStores[e]&&(t.activeGaiaStore=e)}},actions:{updateIdentity(t,e){},login(t,e){}},plugins:[Object(P.a)()]};i(626),i(627),i(628);var F=i(163),q=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"mercurius-home"}},[i("div",{attrs:{id:"header"}},[i("div",{attrs:{id:"path"}},[i("button",{staticClass:"button is-small is-white folder",staticStyle:{"margin-right":"0.5rem"},attrs:{disabled:t.splitDir.length<=1},on:{click:function(e){return t.goto(t.splitDir.length-2)}}},[i("b-icon",{attrs:{icon:"folder-upload"}})],1),t._v(" "),t._l(t.splitDir,function(e,s){return[i("a",{key:"a-"+s,staticClass:"tag",attrs:{title:e},on:{click:function(e){return t.goto(s)}}},[t._v(t._s(t.annotations[e]||e))]),t._v(" "),s+1({working:!1,progress:0,workingOn:"",dir:"",bigList:[],folders:[],files:[],lastActive:"",lastActiveTime:0,active:{},anyActive:!1,drawing:!1,drawBegin:{x:0,y:0},drawPoints:{x1:0,y1:0,x2:0,y2:0},drawPos:{top:"0px",left:"0px",height:"0px",width:"0px"},contentType:{},annotations:{},apps:[]}),computed:{...Object(a.b)({activeGaia:"activeGaiaStore",masterKeychain:"masterKeychain"}),splitDir(){const t=[];let e="";return this.dir.split("/").forEach(i=>{i?e?t.push(e+i):t.push(i):e+="/"}),[this.activeGaia.server.replace(/https?:\/\//,""),...t]},index(){return{url_prefix:this.activeGaia.url_prefix,entries:this.bigList}}},watch:{activeGaia(){this.refresh()},bigList(){this.populate().catch(t=>this.handleError(t))},dir(){this.active={},this.lastActive="",this.lastActiveTime=0,this.populate().catch(t=>this.handleError(t)),this.$route.path!=="/"+this.dir&&this.$router.replace({path:"/"+this.dir})},$route(){this.$route.path!=="/"+this.dir&&this.bigList.find(t=>t.startsWith(this.$route.path.slice(1)))&&(this.dir=this.$route.path.slice(1))},active(){this.anyActive=this.active&&Object.values(this.active).reduce((t,e)=>t||e,!1)}},mounted(){if(window.addEventListener("mouseup",this.drawEnd),window.addEventListener("mousemove",this.drawContinue),this.$store.state.bigListCache&&this.$store.state.bigListCache.length){if(this.bigList=this.$store.state.bigListCache,this.$store.state.appCache&&this.$store.state.appCache.length){this.apps=this.$store.state.appCache,this.annotations={[this.activeGaia.address]:"User"};for(const t of this.apps)s.default.set(this.annotations,t.address,t.name)}else this.getApps();this.bigList.find(t=>t.startsWith(this.$route.path.slice(1)))&&(this.dir=this.$route.path.slice(1))}else this.$router.replace(""),this.refresh()},destroyed(){window.removeEventListener("mouseup",this.drawEnd),window.removeEventListener("mousemove",this.drawContinue)},methods:{handleError(t){console.error(t),this.$dialog.alert({title:"error",type:"error",message:"Error: "+t.message})},async listBucketFiles(t){const e={Authorization:"bearer "+t.token},i=[];let s;do{const a=t.server+"/list-files/"+t.address,n=await z.a.post(a,{page:s},{headers:e});s=n.data.page?n.data.page:0,i.push(...n.data.entries)}while(s&&await new Promise(t=>setTimeout(()=>t(!0),500)));return i},makeApp(t,e){t.name||(t.name=t.website.replace(/https?:\/\//,""));const i=(e=e||this.masterKeychain.getIdentityOwnerAddressNode(0).appsNode).getAppNode(t.website),a=i.getAddress();return this.annotations[a]?null:(s.default.set(this.annotations,a,t.name),{name:t.name,website:t.website,address:a,privateKey:i.privateKey.toString("hex")})},async getApps(){const t=[];this.apps&&0!==this.apps.length||(this.apps=t),this.workingOn="Getting all available apps",this.annotations={[this.activeGaia.address]:"User"};const e=[];try{const t=(await z.a.get(this.activeGaia.url_prefix+this.activeGaia.address+"/profile.json")).data[0].decodedToken.payload.claim.apps;for(const i in t)t[i]&&e.push({name:i.replace(/https?:\/\//,""),website:i})}catch(t){console.warn("Issue getting profile: ",t)}const i=this.masterKeychain.getIdentityOwnerAddressNode(0).appsNode;let s;try{s=await z.a.get("https://api.app.co/api/apps")}catch(t){this.handleError(t),this.workingOn="",s={data:{apps:[]}}}const a=s.data.apps.filter(t=>!(0!==t.storageNetworkID&&"Gaia"!==t.storageNetwork||0!==t.authenticationID&&"Blockstack"!==t.authentication)).concat(et.apps.map(t=>({name:t.name+"*",website:t.launchLink}))).concat(e).concat(st);for(const e of a){const s=this.makeApp(e,i);s&&t.push(s)}this.apps=t,this.$store.commit("setAppCache",t),this.workingOn=""},async listFilesSingle(t,e,i){try{const s={url_prefix:e.read_url_prefix,address:t.address,token:X(e,t.privateKey,i),server:i},a=await this.listBucketFiles(s);return a.length?a.map(e=>t.address+"/"+e):[]}catch(e){console.error("Error listing files for app "+t.name+"!"),console.error(e)}},async listFiles(){this.progress=0,await this.getApps();const t=(await z.a.get(this.activeGaia.server+"/hub_info")).data,e=this.activeGaia.server,i=[];this.bigList&&0!==this.bigList.length||(this.bigList=i);for(let s=0,a=this.apps[s];ssetTimeout(t,500))}this.workingOn="Getting profile app bucket";const s=await this.listBucketFiles(this.activeGaia);i.push(...s.map(t=>this.activeGaia.address+"/"+t)),this.annotations[this.activeGaia.address]="User",this.workingOn="Finishing up",this.progress=1,this.bigList=i.sort(),this.workingOn=""},async populate(){const t=this.bigList.filter(t=>!this.dir||t.startsWith(this.dir+"/")).map(t=>this.dir?t.slice(this.dir.length+1):t);this.folders.splice(0),this.files.splice(0);for(const e of t)if(/\w\//.test(e)){const t=/^(\/*.+?)\//.exec(e)[1];this.folders.find(e=>e===t)||this.folders.push(t)}else this.files.push(e)},async refresh(){if(!this.working)return this.working=!0,this.$store.commit("setBigListCache",[]),this.$store.commit("setAppCache",[]),this.listFiles().then(()=>{this.working=!1,this.$store.commit("setBigListCache",this.bigList)}).catch(t=>{this.working=!1,this.handleError(t)})},goto(t){t<=0?this.dir="":t>=this.splitDir.length||(this.dir=this.splitDir.slice(1,t+1).join("/").replace(/\/$/,""))},onClick(t,e){if(t.getModifierState("Shift")||t.shiftKey){const i=this.folders.map(t=>"/"+t).concat(this.files),a=i.indexOf(this.lastActive),n=i.indexOf(e),r=i.slice(Math.min(a,n),Math.max(a,n)+1);if(t.getModifierState("Control")||t.ctrlKey)for(const t of r)s.default.set(this.active,t,!0);else this.active=r.reduce((t,e)=>(t[e]=!0,t),{});this.lastActiveTime=0}else t.getModifierState("Control")||t.ctrlKey?(this.active[e]=!this.active[e],this.lastActiveTime=0):(this.active={[e]:!0},Date.now()-this.lastActiveTime<333&&(e.startsWith("/")?this.openFolder(e.slice(1)):this.openFile(e)),this.lastActiveTime=Date.now()),this.lastActive=e},openFolder(t){this.dir?this.dir=(this.dir+"/"+t).replace(/(^\/)|(\/$)/,""):this.dir=t},isDecipherable(t){if("object"!=typeof t)return!1;const e=Object.keys(t);return e.length===it.length&&e.map(t=>it.includes(t)).reduce((t,e)=>t&&e)},async openFile(t,e=!0){const i=this.activeGaia.url_prefix+(this.dir?this.dir+"/":"")+t,s=this.dir.includes("/")?this.splitDir[1]:this.dir||t.split("/")[0];let a,n="";if(s===this.activeGaia.address)n=this.masterKeychain.getIdentityOwnerAddressNode(0).privateKey.toString("hex");else{const t=this.apps.find(t=>t.address===s);t&&(n=t.privateKey)}const r=await z.a.get(i);if(a=n&&this.isDecipherable(r.data)?(t.endsWith(".json")?"application/json,":",")+Object(U.decryptECIES)(n,r.data):"string"==typeof r.data?","+r.data:"application/json,"+JSON.stringify(r.data),!e)return new Blob([a.slice(a.indexOf(",")+1)],{type:a.slice(0,a.indexOf(","))});window.open().location.href="data:"+a},async download(){if(this.working)return;this.working=!0,this.progress=0;const t=[];for(const e in this.active)!0===this.active[e]&&t.push(e.startsWith("/")?e.slice(1):e);let e=[];for(const i of t)e=e.concat(this.bigList.filter(t=>t.startsWith((this.dir?this.dir+"/":"")+i)).map(t=>this.dir.length?t.slice(this.dir.length+1):t));if(1===e.length)return tt.a.saveAs(await this.openFile(e[0],!1),t[0]),this.workingOn="",void(this.working=!1);const i=new Y.a;for(let t=0,s=e[t];tsetTimeout(t,500)),i.file(s,await this.openFile(s,!1));this.progress=1,this.workingOn="Serving the Zip";const s=await i.generateAsync({type:"blob"}),a=1===t.length?this.annotations[t[0]]||t[0]:this.splitDir[this.splitDir.length-1];tt.a.saveAs(s,a.replace("*","")),this.workingOn="",this.working=!1},lookupApp(){this.working||(this.working=!0,this.workingOn="Looking up app...",this.$dialog.prompt({message:"App domain:",inputAttrs:{type:"url",placeholder:"https://helloblockstack.com/"},onConfirm:async t=>{let e,i,s;t.startsWith("http")||(t="https://"+t);try{e=this.makeApp({website:t})}catch(e){return this.$dialog.alert({type:"is-danger",message:'Could not create an app from website "'+t+'"!'}),this.working=!1,void(this.workingOn="")}if(!e)return this.$dialog.alert({type:"is-info",message:"App already listed!"}),this.working=!1,void(this.workingOn="");e&&!this.apps.find(t=>t.address===e.address)&&this.apps.push(e);try{i=(await z.a.get(this.activeGaia.server+"/hub_info")).data}catch(t){return this.$dialog.alert({type:"is-danger",message:'Could not get hub info from active gaia hub "'+this.activeGaia.server+'"!'}),this.working=!1,void(this.workingOn="")}try{s=await this.listFilesSingle(e,i,this.activeGaia.server)}catch(t){return this.$dialog.alert({type:"is-danger",message:'Could not create list files from address "'+e.address+'"!'}),this.working=!1,void(this.workingOn="")}s.filter(t=>!this.bigList.includes(t)).length?(this.bigList=[...this.bigList,...s.filter(t=>!this.bigList.includes(t))].sort(),this.$store.commit("setBigListCache",this.bigList)):s.length?this.$dialog.alert({type:"is-info",message:'No *new* files from "'+e.name+'" to be listed!'}):this.$dialog.alert({type:"is-info",message:'No files from "'+e.name+'" to be listed!'}),this.working=!1,this.workingOn=""},onCancel:()=>{this.working=!1,this.workingOn=""}}))},drawStart(t){0===t.button&&(this.drawing=!0,s.default.set(this.drawBegin,"x",t.x),s.default.set(this.drawBegin,"y",t.y),this.drawPoints={x1:t.x,x2:t.x,y1:t.y,y2:t.y},this.drawPos={top:t.y+"px",left:t.x+"px",height:"0px",width:"0px"})},boxInside:(t,e)=>!(t.x1>e.x2||t.x2e.y2||t.y2{if(t.path!==e.path)if(t.path.length>1){const e=[];let i="";t.path.slice(1).split("/").forEach(t=>{t?i?e.push(i+t):e.push(t):i+="/"}),document.title="Mercurius - "+e.join(" - ")}else document.title="Mercurius";i()});var ct=ot;console.log("Environment:","production"),s.default.use(a.a);const pt=new a.a.Store(T);s.default.use(n.a),s.default.use(o.a);const lt=Date.now()-pt.state.storeBDay;console.log("Store age: "+(lt/6e4).toFixed()+":"+(lt%6e4/1e3).toFixed(3));const dt=new s.default({store:pt,router:ct,el:"#app",data:{loaded:!1,done:!0,working:!1},computed:{...Object(a.b)({loggedIn:"isLoggedIn"})},components:{AppComponent:h,LoadingComponent:x},render(t){return this.loaded?this.loggedIn&&this.done?t(h,{key:"app"}):t("div",{key:"base"},[t("div",{staticStyle:{position:"absolute",zIndex:1024,top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(250,250,250,0.7)",alignItems:"center",justifyContent:"center"},style:{display:this.working?"flex":"none"}},[t(x)]),t("div",{staticStyle:{display:"flex",flexFlow:"column",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",position:"fixed",top:"0",left:"0",height:"100%",width:"100%",backgroundColor:"#fafafa"}},[t("div",{staticStyle:{display:"flex",alignItems:"center",marginBottom:"1rem"}},[t("figure",{staticStyle:{height:"1.5em",width:"1.5em",marginRight:"0.4rem"}},[t("img",{domProps:{src:"assets/images/logo-48.png"}})]),t("h4",{staticClass:"title is-5",staticStyle:{lineHeight:1,flexGrow:1,margin:0}},"Mercurius")]),t(w,{key:"login",props:{done:this.done},on:{working:t=>this.working=Boolean(t),error:t=>{t&&this.$dialog.alert({title:"Error",message:String(t),type:"is-danger"})},showDialog:({type:t,options:e})=>{this.$dialog[t]&&this.$dialog[t](e)},"update:done":t=>this.done=t},staticStyle:{border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0px 0px 5px 1px rgba(0,0,0,0.2)",minWidth:"300px",maxWidth:"480px"}})])]):function(t,e){return t("div",{staticStyle:{display:"flex",flexFlow:"column",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",position:"fixed",top:"0",left:"0",height:"100%",width:"100%",backgroundColor:"#fafafa"}},[t(e)])}(t,x)}});console.log("Initialized Main!"),dt.loaded=!0}}); \ No newline at end of file diff --git a/docs/mercurius.70110183055da3ff3e8c.js b/docs/mercurius.70110183055da3ff3e8c.js deleted file mode 100644 index c42731d..0000000 --- a/docs/mercurius.70110183055da3ff3e8c.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function t(t){for(var a,r,o=t[0],c=t[1],p=t[2],d=0,h=[];d({showMenu:!1}),computed:{...Object(s.b)({loggedIn:"isLoggedIn",activeGaia:"activeGaiaStore"}),userdata(){return this.loggedIn?this.$store.state.userdata:null},name(){return this.getProfileName(this.userdata,!0)},avatar(){return this.userdata&&this.userdata.profile&&this.userdata.profile.image&&this.userdata.profile.image[0]?this.userdata.profile.image[0].contentUrl:""},hub(){return this.activeGaia?this.activeGaia.server:"{null}"}},methods:{getProfileName:(e,t)=>e?e.username?e.username:e.profile&&e.profile.name?e.profile.name:t?void 0:`ID-${e.address}`:"{null}",logout(){this.showMenu=!1,this.$store.commit("logout")}}}),l=(i(295),i(47)),d=Object(l.a)(p,c,[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"navbar-start",staticStyle:{"flex-grow":"1"}},[t("div",{staticClass:"navbar-item",staticStyle:{"flex-grow":"1","justify-content":"center"}})])}],!1,null,null,null);d.options.__file="src/app/app.vue";var h=d.exports,u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"mercurius-login"}},[i("div",{staticClass:"container",attrs:{id:"login"}},[i("form",[i("b-field",{attrs:{label:"Mnemonic (Keychain Phrase)",type:e.getType(e.fields.mnemonic),message:e.fields.mnemonic&&e.fields.mnemonic.invalid?"Mnemonic: Must be 12 lowercase words":""}},[i("b-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,regex:/^\s*(?:[a-z]+\s){11}[a-z]+\s*$/},expression:"{ required: true, regex: /^\\s*(?:[a-z]+\\s){11}[a-z]+\\s*$/ }"}],attrs:{name:"mnemonic",placeholder:"apple banana orange cherry mango kiwi grape watermelon strawberry lemon keyboard cat",type:"textarea"},model:{value:e.mnemonic,callback:function(t){e.mnemonic="string"==typeof t?t.trim():t},expression:"mnemonic"}})],1)],1),e._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"error has-text-danger"},[e._v(e._s(e.error))]),e._v(" "),i("button",{staticClass:"button is-primary slim",attrs:{disabled:e.errors.any()||!this.mnemonic},on:{click:function(t){return e.login()}}},[e._v("Login")])])])};u._withStripped=!0;var g=i(63),m=i(19),v=i(27),f=a.default.component("mercurius-login",{props:{done:{required:!1,type:Boolean}},data:()=>({error:"",mnemonic:""}),computed:{...Object(s.b)({loggedIn:"isLoggedIn"})},mounted(){this.loggedIn?this.$emit("update:done",!0):this.$emit("update:done",!1)},watch:{loggedIn(e){e||this.$emit("update:done",!1)}},methods:{getType:(e,t)=>e&&(e.dirty||!t&&e.touched)?e.valid?"is-success":"is-danger":"",async initialize(){console.log("Initializing..."),console.log("Initialized!")},login(){if(console.log("Logging in!"),this.$emit("working",!0),!Object(g.validateMnemonic)(this.mnemonic))return console.error(this.error="Invalid keychain phrase entered!"),this.$emit("error",this.error),void this.$emit("working",!1);Object(g.mnemonicToSeed)(this.mnemonic).then(e=>this.$store.commit("login",m.bip32.fromSeed(e))).then(async()=>this.$store.commit("addGaia",await Object(v.connectToGaiaHub)("https://hub.blockstack.org",this.$store.getters.masterKeychain.getIdentityOwnerAddressNode(0).privateKey.toString("hex")))).then(()=>this.finish()).catch(e=>{console.error("Error logging in:",e),this.$emit("error",this.error),this.$emit("working",!1)})},finish(){this.$emit("update:done",!0),this.$emit("working",!1)}}}),y=(i(624),Object(l.a)(f,u,[],!1,null,null,null));y.options.__file="src/components/mercurius-login/mercurius-login.vue";var w=y.exports,b=function(){var e=this.$createElement;return(this._self._c||e)("div",{attrs:{id:"mercurius-loading"}})};b._withStripped=!0;var _=a.default.component("mercurius-loading",{data:()=>({}),mounted(){},methods:{}}),k=(i(625),Object(l.a)(_,b,[],!1,null,null,null));k.options.__file="src/components/mercurius-loading/mercurius-loading.vue";var x=k.exports;var P=i(293),S=i(14);var C=i(64);class I{constructor(e){this._node=e instanceof I?e.node:e,this._node.privateKey?this._keyPair=m.ECPair.fromPrivateKey(this._node.privateKey):this._node.publicKey?this._keyPair=m.ECPair.fromPublicKey(this._node.publicKey):this._keyPair=null}static fromBase58(e,t){return new I(C.fromBase58(e,t))}static fromPrivateKey(e,t,i){return new I(C.fromPrivateKey(e,t,i))}static fromPublicKey(e,t,i){return new I(C.fromPublicKey(e,t,i))}static fromSeed(e,t){return new I(C.fromSeed(e,t))}get node(){return this._node}get keyPair(){return this._keyPair}getAddress(){return e=this._node,m.payments.p2pkh({pubkey:e.publicKey}).address;var e}get chainCode(){return this._node.chainCode}get depth(){return this._node.depth}get index(){return this._node.index}get network(){return this._node.network}get parentFingerprint(){return this._node.parentFingerprint}get identifier(){return this._node.identifier}get fingerprint(){return this._node.fingerprint}get privateKey(){return this._node.privateKey}get publicKey(){return this._node.publicKey}isNeutered(){return this._node.isNeutered()}neutered(){return new I(this._node.neutered())}toBase58(){return this._node.toBase58()}toWIF(){return this._node.toWIF()}derive(e){return new I(this._node.derive(e))}deriveHardened(e){return new I(this._node.deriveHardened(e))}derivePath(e){return new I(this._node.derivePath(e))}sign(e){return this._node.sign(e)}verify(e,t){return this._node.verify(e,t)}}function L(e){let t=0;if(0===e.length)return t;for(let i=0;inew R(m.bip32.fromBase58(e._masterKeychain)),isLoggedIn:e=>e._masterKeychain&&e.gaiaStores.length,storeAge:e=>Date.now()-e.storeBDay,activeGaiaStore:e=>e.gaiaStores[e.activeGaiaStore],identity:(e,t)=>t.masterKeychain.getIdentityOwnerAddressNode(0)},mutations:{login(e,t){e._masterKeychain=t.toBase58();const i=new R(t);e.userdata={username:null,profile:null,address:i.getIdentityOwnerAddressNode(0).getAddress()},e.activeGaiaStore=0,e.identityIndex=0},logout(e){e._masterKeychain=null,e.gaiaStores.splice(0),e.activeGaiaStore=0,e.bigListCache=[]},setBigListCache(e,t){e.bigListCache=[...t]},setAppCache(e,t){e.appCache=[...t]},addGaia(e,t){e.gaiaStores.push(t)},removeGaia(e,t){0!==t&&(e.gaiaStores=e.gaiaStores.slice(0,t).concat(e.gaiaStores.slice(t+1)),e.activeGaiaStore===t?e.activeGaiaStore=0:e.gaiaStores[e.activeGaiaStore]||(e.activeGaiaStore=0))},setActiveGaia(e,t){e.gaiaStores[t]&&(e.activeGaiaStore=t)}},actions:{updateIdentity(e,t){},login(e,t){}},plugins:[Object(P.a)()]};i(626),i(627),i(628);var q=i(163),F=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"mercurius-home"}},[i("div",{attrs:{id:"header"}},[i("div",{attrs:{id:"path"}},[i("button",{staticClass:"button is-small is-white folder",staticStyle:{"margin-right":"0.5rem"},attrs:{disabled:e.splitDir.length<=1},on:{click:function(t){return e.goto(e.splitDir.length-2)}}},[i("b-icon",{attrs:{icon:"folder-upload"}})],1),e._v(" "),e._l(e.splitDir,function(t,a){return[i("a",{key:"a-"+a,staticClass:"tag",attrs:{title:t},on:{click:function(t){return e.goto(a)}}},[e._v(e._s(e.annotations[t]||t))]),e._v(" "),a+1({working:!1,progress:0,workingOn:"",dir:"",bigList:[],folders:[],files:[],lastActive:"",lastActiveTime:0,active:{},anyActive:!1,drawing:!1,drawBegin:{x:0,y:0},drawPoints:{x1:0,y1:0,x2:0,y2:0},drawPos:{top:"0px",left:"0px",height:"0px",width:"0px"},contentType:{},annotations:{},apps:[]}),computed:{...Object(s.b)({activeGaia:"activeGaiaStore",masterKeychain:"masterKeychain"}),splitDir(){const e=[];let t="";return this.dir.split("/").forEach(i=>{i?t?e.push(t+i):e.push(i):t+="/"}),[this.activeGaia.server.replace(/https?:\/\//,""),...e]},index(){return{url_prefix:this.activeGaia.url_prefix,entries:this.bigList}}},watch:{activeGaia(){this.refresh()},bigList(){this.populate().catch(e=>this.handleError(e))},dir(){this.active={},this.lastActive="",this.lastActiveTime=0,this.populate().catch(e=>this.handleError(e)),this.$route.path!=="/"+this.dir&&this.$router.replace({path:"/"+this.dir})},$route(){this.$route.path!=="/"+this.dir&&this.bigList.find(e=>e.startsWith(this.$route.path.slice(1)))&&(this.dir=this.$route.path.slice(1))},active(){this.anyActive=this.active&&Object.values(this.active).reduce((e,t)=>e||t,!1)}},mounted(){if(window.addEventListener("mouseup",this.drawEnd),window.addEventListener("mousemove",this.drawContinue),this.$store.state.bigListCache&&this.$store.state.bigListCache.length){if(this.bigList=this.$store.state.bigListCache,this.$store.state.appCache&&this.$store.state.appCache.length){this.apps=this.$store.state.appCache,this.annotations={[this.activeGaia.address]:"User"};for(const e of this.apps)a.default.set(this.annotations,e.address,e.name)}else this.getApps();this.bigList.find(e=>e.startsWith(this.$route.path.slice(1)))&&(this.dir=this.$route.path.slice(1))}else this.$router.replace(""),this.refresh()},destroyed(){window.removeEventListener("mouseup",this.drawEnd),window.removeEventListener("mousemove",this.drawContinue)},methods:{handleError(e){console.error(e),this.$dialog.alert({title:"error",type:"error",message:"Error: "+e.message})},async listBucketFiles(e){const t={Authorization:"bearer "+e.token},i=[];let a;do{let s=e.server+"/list-files/"+e.address;a&&(s+="?page="+a);const n=await z.a.post(s,null,{headers:t});a=n.data.page?n.data.page:0,i.push(...n.data.entries)}while(a&&await new Promise(e=>setTimeout(()=>e(!0),500)));return i},async getApps(){const e=[];this.apps&&0!==this.apps.length||(this.apps=e),this.workingOn="Getting all available apps",this.annotations={[this.activeGaia.address]:"User"};const t=[];try{const e=(await z.a.get(this.activeGaia.url_prefix+this.activeGaia.address+"/profile.json")).data[0].decodedToken.payload.claim.apps;for(const i in e)e[i]&&t.push({name:i.replace(/https?:\/\//,""),website:i})}catch(e){console.warn("Issue getting profile: ",e)}const i=this.masterKeychain.getIdentityOwnerAddressNode(0).appsNode;let s;try{s=await z.a.get("https://api.app.co/api/apps")}catch(e){this.handleError(e),this.workingOn=""}const n=s.data.apps.filter(e=>!(0!==e.storageNetworkID&&"Gaia"!==e.storageNetwork||0!==e.authenticationID&&"Blockstack"!==e.authentication)).concat(te.apps.map(e=>({name:e.name+"*",website:e.launchLink}))).concat(t).concat(ae);for(const t of n){const s=i.getAppNode(t.website);this.annotations[s.getAddress()]||(a.default.set(this.annotations,s.getAddress(),t.name),e.push({name:t.name,website:t.website,address:s.getAddress(),privateKey:s.privateKey.toString("hex")}),this.apps=e,this.$store.commit("setAppCache",e),this.workingOn="")}},async listFiles(){this.progress=0,await this.getApps();const e=(await z.a.get(this.activeGaia.server+"/hub_info")).data,t=this.activeGaia.server,i=[];this.bigList&&0!==this.bigList.length||(this.bigList=i);for(let a=0,s=this.apps[a];as.address+"/"+e)),this.progress+=1/(this.apps.length+1),await new Promise(e=>setTimeout(e,500))}catch(e){console.error("Error listing files for app "+s.name+"!"),console.error(e)}this.workingOn="Getting profile app bucket";const a=await this.listBucketFiles(this.activeGaia);i.push(...a.map(e=>this.activeGaia.address+"/"+e)),this.annotations[this.activeGaia.address]="User",this.workingOn="Finishing up",this.progress=1,this.bigList=i.sort(),this.workingOn=""},async populate(){const e=this.bigList.filter(e=>!this.dir||e.startsWith(this.dir+"/")).map(e=>this.dir?e.slice(this.dir.length+1):e);this.folders.splice(0),this.files.splice(0);for(const t of e)if(/\w\//.test(t)){const e=/^(\/*.+?)\//.exec(t)[1];this.folders.find(t=>t===e)||this.folders.push(e)}else this.files.push(t)},async refresh(){if(!this.working)return this.working=!0,this.$store.commit("setBigListCache",[]),this.$store.commit("setAppCache",[]),this.listFiles().then(()=>{this.working=!1,this.$store.commit("setBigListCache",this.bigList)}).catch(e=>{this.working=!1,this.handleError(e)})},goto(e){e<=0?this.dir="":e>=this.splitDir.length||(this.dir=this.splitDir.slice(1,e+1).join("/").replace(/\/$/,""))},onClick(e,t){if(e.getModifierState("Shift")||e.shiftKey){const i=this.folders.map(e=>"/"+e).concat(this.files),s=i.indexOf(this.lastActive),n=i.indexOf(t),r=i.slice(Math.min(s,n),Math.max(s,n)+1);if(e.getModifierState("Control")||e.ctrlKey)for(const e of r)a.default.set(this.active,e,!0);else this.active=r.reduce((e,t)=>(e[t]=!0,e),{});this.lastActiveTime=0}else e.getModifierState("Control")||e.ctrlKey?(this.active[t]=!this.active[t],this.lastActiveTime=0):(this.active={[t]:!0},Date.now()-this.lastActiveTime<333&&(t.startsWith("/")?this.openFolder(t.slice(1)):this.openFile(t)),this.lastActiveTime=Date.now()),this.lastActive=t},openFolder(e){this.dir?this.dir=(this.dir+"/"+e).replace(/(^\/)|(\/$)/,""):this.dir=e},isDecipherable(e){if("object"!=typeof e)return!1;const t=Object.keys(e);return t.length===ie.length&&t.map(e=>ie.includes(e)).reduce((e,t)=>e&&t)},async openFile(e,t=!0){const i=this.activeGaia.url_prefix+(this.dir?this.dir+"/":"")+e,a=this.dir.includes("/")?this.splitDir[1]:this.dir||e.split("/")[0];let s,n="";if(a===this.activeGaia.address)n=this.masterKeychain.getIdentityOwnerAddressNode(0).privateKey.toString("hex");else{const e=this.apps.find(e=>e.address===a);e&&(n=e.privateKey)}const r=await z.a.get(i);if(s=n&&this.isDecipherable(r.data)?(e.endsWith(".json")?"application/json,":",")+Object(U.decryptECIES)(n,r.data):"string"==typeof r.data?","+r.data:"application/json,"+JSON.stringify(r.data),!t)return new Blob([s.slice(s.indexOf(",")+1)],{type:s.slice(0,s.indexOf(","))});window.open().location.href="data:"+s},async download(){if(this.working)return;this.working=!0,this.progress=0;const e=[];for(const t in this.active)!0===this.active[t]&&e.push(t.startsWith("/")?t.slice(1):t);let t=[];for(const i of e)t=t.concat(this.bigList.filter(e=>e.startsWith((this.dir?this.dir+"/":"")+i)).map(e=>this.dir.length?e.slice(this.dir.length+1):e));if(1===t.length)return ee.a.saveAs(await this.openFile(t[0],!1),e[0]),this.workingOn="",void(this.working=!1);const i=new Y.a;for(let e=0,a=t[e];esetTimeout(e,500)),i.file(a,await this.openFile(a,!1));this.progress=1,this.workingOn="Serving the Zip";const a=await i.generateAsync({type:"blob"}),s=1===e.length?this.annotations[e[0]]||e[0]:this.splitDir[this.splitDir.length-1];ee.a.saveAs(a,s.replace("*","")),this.workingOn="",this.working=!1},drawStart(e){0===e.button&&(this.drawing=!0,a.default.set(this.drawBegin,"x",e.x),a.default.set(this.drawBegin,"y",e.y),this.drawPoints={x1:e.x,x2:e.x,y1:e.y,y2:e.y},this.drawPos={top:e.y+"px",left:e.x+"px",height:"0px",width:"0px"})},boxInside:(e,t)=>!(e.x1>t.x2||e.x2t.y2||e.y2{if(e.path!==t.path)if(e.path.length>1){const t=[];let i="";e.path.slice(1).split("/").forEach(e=>{e?i?t.push(i+e):t.push(e):i+="/"}),document.title="Mercurius - "+t.join(" - ")}else document.title="Mercurius";i()});var ce=oe;console.log("Environment:","production"),a.default.use(s.a);const pe=new s.a.Store(T);a.default.use(n.a),a.default.use(o.a);const le=Date.now()-pe.state.storeBDay;console.log("Store age: "+(le/6e4).toFixed()+":"+(le%6e4/1e3).toFixed(3));const de=new a.default({store:pe,router:ce,el:"#app",data:{loaded:!1,done:!0,working:!1},computed:{...Object(s.b)({loggedIn:"isLoggedIn"})},components:{AppComponent:h,LoadingComponent:x},render(e){return this.loaded?this.loggedIn&&this.done?e(h,{key:"app"}):e("div",{key:"base"},[e("div",{staticStyle:{position:"absolute",zIndex:1024,top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(250,250,250,0.7)",alignItems:"center",justifyContent:"center"},style:{display:this.working?"flex":"none"}},[e(x)]),e("div",{staticStyle:{display:"flex",flexFlow:"column",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",position:"fixed",top:"0",left:"0",height:"100%",width:"100%",backgroundColor:"#fafafa"}},[e("div",{staticStyle:{display:"flex",alignItems:"center",marginBottom:"1rem"}},[e("figure",{staticStyle:{height:"1.5em",width:"1.5em",marginRight:"0.4rem"}},[e("img",{domProps:{src:"assets/images/logo-48.png"}})]),e("h4",{staticClass:"title is-5",staticStyle:{lineHeight:1,flexGrow:1,margin:0}},"Mercurius")]),e(w,{key:"login",props:{done:this.done},on:{working:e=>this.working=Boolean(e),error:e=>{e&&this.$dialog.alert({title:"Error",message:String(e),type:"is-danger"})},showDialog:({type:e,options:t})=>{this.$dialog[e]&&this.$dialog[e](t)},"update:done":e=>this.done=e},staticStyle:{border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0px 0px 5px 1px rgba(0,0,0,0.2)",minWidth:"300px",maxWidth:"480px"}})])]):function(e,t){return e("div",{staticStyle:{display:"flex",flexFlow:"column",flexWrap:"nowrap",alignItems:"center",justifyContent:"center",position:"fixed",top:"0",left:"0",height:"100%",width:"100%",backgroundColor:"#fafafa"}},[e(t)])}(e,x)}});console.log("Initialized Main!"),de.loaded=!0}}); \ No newline at end of file diff --git a/docs/vendors~mercurius.e31d4f49797968e3c856.js b/docs/vendors~mercurius.6189cf2c834f9de0dff9.js similarity index 99% rename from docs/vendors~mercurius.e31d4f49797968e3c856.js rename to docs/vendors~mercurius.6189cf2c834f9de0dff9.js index 23b8433..85e1f61 100644 --- a/docs/vendors~mercurius.e31d4f49797968e3c856.js +++ b/docs/vendors~mercurius.6189cf2c834f9de0dff9.js @@ -11,18 +11,18 @@ var n=r(296),i=r(297),o=r(164);function a(){return Buffer.TYPED_ARRAY_SUPPORT?21 * (c) 2014-2019 Evan You * Released under the MIT License. */ -var n=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function f(e){return"[object RegExp]"===c.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var y=Object.prototype.hasOwnProperty;function _(e,t){return y.call(e,t)}function w(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}var k=/-(\w)/g,S=w(function(e){return e.replace(k,function(e,t){return t?t.toUpperCase():""})}),x=w(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),E=/\B([A-Z])/g,A=w(function(e){return e.replace(E,"-$1").toLowerCase()});var O=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r};function P(e,t){t=t||0;for(var r=e.length-t,n=new Array(r);r--;)n[r]=e[r+t];return n}function T(e,t){for(var r in t)e[r]=t[r];return e}function C(e){for(var t={},r=0;r0,J=Z&&Z.indexOf("edge/")>0,Q=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===G),ee=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),te={}.watch,re=!1;if(K)try{var ne={};Object.defineProperty(ne,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ne)}catch(e){}var ie=function(){return void 0===H&&(H=!K&&!W&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),H},oe=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ue="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ce=j,le=0,fe=function(){this.id=le++,this.subs=[]};fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){b(this.subs,e)},fe.prototype.depend=function(){fe.target&&fe.target.addDep(this)},fe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,r=e.length;t-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===A(e)){var u=$e(String,i.type);(u<0||s0&&(lt((c=e(c,(r||"")+"_"+u))[0])&<(f)&&(n[l]=be(f.text+c[0].text),c.shift()),n.push.apply(n,c)):s(c)?lt(f)?n[l]=be(f.text+c):""!==c&&n.push(be(c)):lt(c)&<(f)?n[l]=be(f.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(r)&&(c.key="__vlist"+r+"_"+u+"__"),n.push(c)));return n}(e):void 0}function lt(e){return o(e)&&o(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var r=Object.create(null),n=ue?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},e)e[u]&&"$"!==u[0]&&(i[u]=mt(t,u,e[u]))}else i={};for(var c in t)c in i||(i[c]=gt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),L(i,"$stable",a),L(i,"$key",s),L(i,"$hasNormal",o),i}function mt(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function gt(e,t){return function(){return e[t]}}function vt(e,t){var r,n,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),n=0,i=e.length;ndocument.createEvent("Event").timeStamp&&(cr=function(){return lr.now()})}function fr(){var e,t;for(ur=cr(),ar=!0,rr.sort(function(e,t){return e.id-t.id}),sr=0;srsr&&rr[r].id>e.id;)r--;rr.splice(r+1,0,e)}else rr.push(e);or||(or=!0,tt(fr))}}(this)},dr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Le(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},dr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},dr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},dr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pr={enumerable:!0,configurable:!0,get:j,set:j};function mr(e,t,r){pr.get=function(){return this[t][r]},pr.set=function(e){this[t][r]=e},Object.defineProperty(e,r,pr)}function gr(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[];e.$parent&&xe(!1);var o=function(o){i.push(o);var a=Re(o,t,r,e);Oe(n,o,a),o in e||mr(e,"_props",o)};for(var a in t)o(a);xe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var r in t)e[r]="function"!=typeof t[r]?j:O(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){de();try{return e.call(t,t)}catch(e){return Le(e,t,"data()"),{}}finally{pe()}}(t,e):t||{})||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);for(;i--;){var o=r[i];0,n&&_(n,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&mr(e,"_data",o))}var a;Ae(t,!0)}(e):Ae(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=ie();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,n||(r[i]=new dr(e,a||j,j,vr)),i in e||br(e,i,o)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Pr(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=Ar(a.componentOptions);s&&!t(s)&&Tr(r,o,n,i)}}}function Tr(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,b(r,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=kr++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ne(Sr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=ht(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,r,n,i){return $t(e,t,r,n,i,!1)},e.$createElement=function(t,r,n,i){return $t(e,t,r,n,i,!0)};var o=r&&r.data;Oe(e,"$attrs",o&&o.attrs||n,null,!0),Oe(e,"$listeners",t._parentListeners||n,null,!0)}(t),tr(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&(xe(!1),Object.keys(t).forEach(function(r){Oe(e,r,t[r])}),xe(!0))}(t),gr(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tr(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(xr),function(e){var t={get:function(){return this._data}},r={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",r),e.prototype.$set=Pe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,r){if(l(t))return wr(this,e,t,r);(r=r||{}).user=!0;var n=new dr(this,e,t,r);if(r.immediate)try{t.call(this,n.value)}catch(e){Le(e,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(xr),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?P(t):t;for(var r=P(arguments,1),n='event handler for "'+e+'"',i=0,o=t.length;iparseInt(this.max)&&Tr(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return U}};Object.defineProperty(e,"config",t),e.util={warn:ce,extend:T,mergeOptions:Ne,defineReactive:Oe},e.set=Pe,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Ae(e),e},e.options=Object.create(null),R.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,T(e.options.components,jr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=P(arguments,1);return r.unshift(this),"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ne(this.options,e),this}}(e),Er(e),function(e){R.forEach(function(t){e[t]=function(e,r){return r?("component"===t&&l(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"==typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}})}(e)}(xr),Object.defineProperty(xr.prototype,"$isServer",{get:ie}),Object.defineProperty(xr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xr,"FunctionalRenderContext",{value:It}),xr.version="2.6.10";var Ir=g("style,class"),Mr=g("input,textarea,option,select,progress"),Dr=g("contenteditable,draggable,spellcheck"),Br=g("events,caret,typing,plaintext-only"),Nr=function(e,t){return $r(t)||"false"===t?"false":"contenteditable"===e&&Br(t)?t:"true"},zr=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rr="http://www.w3.org/1999/xlink",Fr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ur=function(e){return Fr(e)?e.slice(6,e.length):""},$r=function(e){return null==e||!1===e};function Lr(e){for(var t=e.data,r=e,n=e;o(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=qr(n.data,t));for(;o(r=r.parent);)r&&r.data&&(t=qr(t,r.data));return function(e,t){if(o(e)||o(t))return Hr(e,Vr(t));return""}(t.staticClass,t.class)}function qr(e,t){return{staticClass:Hr(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Hr(e,t){return e?t?e+" "+t:e:t||""}function Vr(e){return Array.isArray(e)?function(e){for(var t,r="",n=0,i=e.length;n-1?mn(e,t,r):zr(t)?$r(r)?e.removeAttribute(t):(r="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,r)):Dr(t)?e.setAttribute(t,Nr(t,r)):Fr(t)?$r(r)?e.removeAttributeNS(Rr,Ur(t)):e.setAttributeNS(Rr,t,r):mn(e,t,r)}function mn(e,t,r){if($r(r))e.removeAttribute(t);else{if(Y&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==r&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,r)}}var gn={create:dn,update:dn};function vn(e,t){var r=t.elm,n=t.data,a=e.data;if(!(i(n.staticClass)&&i(n.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Lr(t),u=r._transitionClasses;o(u)&&(s=Hr(s,Vr(u))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var bn,yn={create:vn,update:vn},_n="__r",wn="__c";function kn(e,t,r){var n=bn;return function i(){null!==t.apply(null,arguments)&&En(e,i,r,n)}}var Sn=We&&!(ee&&Number(ee[1])<=53);function xn(e,t,r,n){if(Sn){var i=ur,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}bn.addEventListener(e,t,re?{capture:r,passive:n}:r)}function En(e,t,r,n){(n||bn).removeEventListener(e,t._wrapper||t,r)}function An(e,t){if(!i(e.data.on)||!i(t.data.on)){var r=t.data.on||{},n=e.data.on||{};bn=t.elm,function(e){if(o(e[_n])){var t=Y?"change":"input";e[t]=[].concat(e[_n],e[t]||[]),delete e[_n]}o(e[wn])&&(e.change=[].concat(e[wn],e.change||[]),delete e[wn])}(r),at(r,n,xn,En,kn,t.context),bn=void 0}}var On,Pn={create:An,update:An};function Tn(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var r,n,a=t.elm,s=e.data.domProps||{},u=t.data.domProps||{};for(r in o(u.__ob__)&&(u=t.data.domProps=T({},u)),s)r in u||(a[r]="");for(r in u){if(n=u[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),n===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=n;var c=i(n)?"":String(n);Cn(a,c)&&(a.value=c)}else if("innerHTML"===r&&Gr(a.tagName)&&i(a.innerHTML)){(On=On||document.createElement("div")).innerHTML=""+n+"";for(var l=On.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(n!==s[r])try{a[r]=n}catch(e){}}}}function Cn(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var r=!0;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}(e,t)||function(e,t){var r=e.value,n=e._vModifiers;if(o(n)){if(n.number)return m(r)!==m(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var jn={create:Tn,update:Tn},In=w(function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t});function Mn(e){var t=Dn(e.style);return e.staticStyle?T(e.staticStyle,t):t}function Dn(e){return Array.isArray(e)?C(e):"string"==typeof e?In(e):e}var Bn,Nn=/^--/,zn=/\s*!important$/,Rn=function(e,t,r){if(Nn.test(t))e.style.setProperty(t,r);else if(zn.test(r))e.style.setProperty(A(t),r.replace(zn,""),"important");else{var n=Un(t);if(Array.isArray(r))for(var i=0,o=r.length;i-1?t.split(qn).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}function Vn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(qn).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?e.setAttribute("class",r):e.removeAttribute("class")}}function Kn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,Wn(e.name||"v")),T(t,e),t}return"string"==typeof e?Wn(e):void 0}}var Wn=w(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Gn=K&&!X,Zn="transition",Yn="animation",Xn="transition",Jn="transitionend",Qn="animation",ei="animationend";Gn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Xn="WebkitTransition",Jn="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Qn="WebkitAnimation",ei="webkitAnimationEnd"));var ti=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ri(e){ti(function(){ti(e)})}function ni(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),Hn(e,t))}function ii(e,t){e._transitionClasses&&b(e._transitionClasses,t),Vn(e,t)}function oi(e,t,r){var n=si(e,t),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s=i===Zn?Jn:ei,u=0,c=function(){e.removeEventListener(s,l),r()},l=function(t){t.target===e&&++u>=a&&c()};setTimeout(function(){u0&&(r=Zn,l=a,f=o.length):t===Yn?c>0&&(r=Yn,l=c,f=u.length):f=(r=(l=Math.max(a,c))>0?a>c?Zn:Yn:null)?r===Zn?o.length:u.length:0,{type:r,timeout:l,propCount:f,hasTransform:r===Zn&&ai.test(n[Xn+"Property"])}}function ui(e,t){for(;e.length1}function pi(e,t){!0!==t.data.show&&li(t)}var mi=function(e){var t,r,n={},u=e.modules,c=e.nodeOps;for(t=0;tp?y(e,i(r[v+1])?null:r[v+1].elm,r,d,v,n):d>v&&w(0,t,h,p)}(h,g,v,r,l):o(v)?(o(e.text)&&c.setTextContent(h,""),y(h,null,v,0,v.length-1,r)):o(g)?w(0,g,0,g.length-1):o(e.text)&&c.setTextContent(h,""):e.text!==t.text&&c.setTextContent(h,t.text),o(p)&&o(d=p.hook)&&o(d=d.postpatch)&&d(e,t)}}}function E(e,t,r){if(a(r)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var n=0;n-1,a.selected!==o&&(a.selected=o);else if(D(_i(a),n))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function yi(e,t){return t.every(function(t){return!D(t,e)})}function _i(e){return"_value"in e?e._value:e.value}function wi(e){e.target.composing=!0}function ki(e){e.target.composing&&(e.target.composing=!1,Si(e.target,"input"))}function Si(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function xi(e){return!e.componentInstance||e.data&&e.data.transition?e:xi(e.componentInstance._vnode)}var Ei={model:gi,show:{bind:function(e,t,r){var n=t.value,i=(r=xi(r)).data&&r.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(r.data.show=!0,li(r,function(){e.style.display=o})):e.style.display=n?o:"none"},update:function(e,t,r){var n=t.value;!n!=!t.oldValue&&((r=xi(r)).data&&r.data.transition?(r.data.show=!0,n?li(r,function(){e.style.display=e.__vOriginalDisplay}):fi(r,function(){e.style.display="none"})):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,n,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ai={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Oi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Oi(Kt(t.children)):e}function Pi(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var i=r._parentListeners;for(var o in i)t[S(o)]=i[o];return t}function Ti(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Ci=function(e){return e.tag||Vt(e)},ji=function(e){return"show"===e.name},Ii={name:"transition",props:Ai,abstract:!0,render:function(e){var t=this,r=this.$slots.default;if(r&&(r=r.filter(Ci)).length){0;var n=this.mode;0;var i=r[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Oi(i);if(!o)return i;if(this._leaving)return Ti(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=Pi(this),c=this._vnode,l=Oi(c);if(o.data.directives&&o.data.directives.some(ji)&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!Vt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=T({},u);if("out-in"===n)return this._leaving=!0,st(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Ti(e,i);if("in-out"===n){if(Vt(o))return c;var h,d=function(){h()};st(u,"afterEnter",d),st(u,"enterCancelled",d),st(f,"delayLeave",function(e){h=e})}}return i}}},Mi=T({tag:String,moveClass:String},Ai);function Di(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Bi(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ni(e){var t=e.data.pos,r=e.data.newPos,n=t.left-r.left,i=t.top-r.top;if(n||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete Mi.mode;var zi={Transition:Ii,TransitionGroup:{props:Mi,beforeMount:function(){var e=this,t=this._update;this._update=function(r,n){var i=Jt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,r,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Pi(this),s=0;s-1?Yr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yr[e]=/HTMLUnknownElement/.test(t.toString())},T(xr.options.directives,Ei),T(xr.options.components,zi),xr.prototype.__patch__=K?mi:j,xr.prototype.$mount=function(e,t){return function(e,t,r){var n;return e.$el=t,e.$options.render||(e.$options.render=ve),tr(e,"beforeMount"),n=function(){e._update(e._render(),r)},new dr(e,n,j,{before:function(){e._isMounted&&!e._isDestroyed&&tr(e,"beforeUpdate")}},!0),r=!1,null==e.$vnode&&(e._isMounted=!0,tr(e,"mounted")),e}(this,e=e&&K?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},K&&setTimeout(function(){U.devtools&&oe&&oe.emit("init",xr)},0),t.default=xr}.call(this,r(9),r(66).setImmediate)},function(e,t,r){"use strict";(function(e){!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var Buffer;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{Buffer=r(326).Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=a(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c>>26,f=67108863&u,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var h=c[e],d=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(e);r=(p=p.idivn(d)).isZero()?m+r:u[h-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==Buffer),this.toArrayLike(Buffer,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],_=8191&y,w=y>>>13,k=0|a[4],S=8191&k,x=k>>>13,E=0|a[5],A=8191&E,O=E>>>13,P=0|a[6],T=8191&P,C=P>>>13,j=0|a[7],I=8191&j,M=j>>>13,D=0|a[8],B=8191&D,N=D>>>13,z=0|a[9],R=8191&z,F=z>>>13,U=0|s[0],$=8191&U,L=U>>>13,q=0|s[1],H=8191&q,V=q>>>13,K=0|s[2],W=8191&K,G=K>>>13,Z=0|s[3],Y=8191&Z,X=Z>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(f,$))|0)+((8191&(i=(i=Math.imul(f,L))+Math.imul(h,$)|0))<<13)|0;c=((o=Math.imul(h,L))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,$),i=(i=Math.imul(p,L))+Math.imul(m,$)|0,o=Math.imul(m,L);var ve=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,H)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,$),i=(i=Math.imul(v,L))+Math.imul(b,$)|0,o=Math.imul(b,L),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,V)|0;var be=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(_,$),i=(i=Math.imul(_,L))+Math.imul(w,$)|0,o=Math.imul(w,L),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ye=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(S,$),i=(i=Math.imul(S,L))+Math.imul(x,$)|0,o=Math.imul(x,L),n=n+Math.imul(_,H)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,V)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var _e=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,$),i=(i=Math.imul(A,L))+Math.imul(O,$)|0,o=Math.imul(O,L),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,V)|0,n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var we=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(T,$),i=(i=Math.imul(T,L))+Math.imul(C,$)|0,o=Math.imul(C,L),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var ke=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(I,$),i=(i=Math.imul(I,L))+Math.imul(M,$)|0,o=Math.imul(M,L),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,V)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,X)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Se=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,L))+Math.imul(N,$)|0,o=Math.imul(N,L),n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0;var xe=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,$),i=(i=Math.imul(R,L))+Math.imul(F,$)|0,o=Math.imul(F,L),n=n+Math.imul(B,H)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0;var Ee=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,H),i=(i=Math.imul(R,V))+Math.imul(F,H)|0,o=Math.imul(F,V),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,ue)|0,o=o+Math.imul(w,ce)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0;var Ae=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(R,W),i=(i=Math.imul(R,G))+Math.imul(F,W)|0,o=Math.imul(F,G),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(x,ue)|0,o=o+Math.imul(x,ce)|0,n=n+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(w,fe)|0,o=o+Math.imul(w,he)|0;var Oe=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,Y),i=(i=Math.imul(R,X))+Math.imul(F,Y)|0,o=Math.imul(F,X),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,he)|0;var Pe=(c+(n=n+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(R,Q),i=(i=Math.imul(R,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0;var Te=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(R,re),i=(i=Math.imul(R,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0;var Ce=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(R,oe),i=(i=Math.imul(R,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,n=n+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,he)|0;var je=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(R,ue),i=(i=Math.imul(R,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(B,fe)|0,i=(i=i+Math.imul(B,he)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,he)|0;var Ie=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(R,fe),i=(i=Math.imul(R,he))+Math.imul(F,fe)|0,o=Math.imul(F,he);var Me=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863;var De=(c+(n=Math.imul(R,pe))|0)+((8191&(i=(i=Math.imul(R,me))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=ge,u[1]=ve,u[2]=be,u[3]=ye,u[4]=_e,u[5]=we,u[6]=ke,u[7]=Se,u[8]=xe,u[9]=Ee,u[10]=Ae,u[11]=Oe,u[12]=Pe,u[13]=Te,u[14]=Ce,u[15]=je,u[16]=Ie,u[17]=Me,u[18]=De,0!==c&&(u[19]=c,r.length++),r};function d(e,t,r){return(new p).mulp(e,t,r)}function p(e,t){this.x=e,this.y=t}Math.imul||(h=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):d(this,e,t)},p.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},p.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new w(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function y(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){w.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new b;else if("p192"===e)t=new y;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},w.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},w.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},w.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},w.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},w.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},w.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=a;0!==d.cmp(s);){for(var m=d,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},w.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},w.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,w),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(36)(e))},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(89),i=r(15),o=r(184),a=r(5),s=r(30),u=r(222),c=r(10),l=r(185),f=c.OP_RESERVED;function h(e){return s.Buffer(e)||function(e){return s.Number(e)&&(e===c.OP_0||e>=c.OP_1&&e<=c.OP_16||e===c.OP_1NEGATE)}(e)}function d(e){return s.Array(e)&&e.every(h)}function p(e){return 0===e.length?c.OP_0:1===e.length?e[0]>=1&&e[0]<=16?f+e[0]:129===e[0]?c.OP_1NEGATE:void 0:void 0}function m(e){if(Buffer.isBuffer(e))return e;a(s.Array,e);const t=e.reduce(function(e,t){return Buffer.isBuffer(t)?1===t.length&&void 0!==p(t)?e+1:e+o.encodingLength(t.length)+t.length:e+1},0),r=Buffer.allocUnsafe(t);let n=0;if(e.forEach(function(e){if(Buffer.isBuffer(e)){const t=p(e);if(void 0!==t)return r.writeUInt8(t,n),void(n+=1);n+=o.encode(r,e.length,n),e.copy(r,n),n+=e.length}else r.writeUInt8(e,n),n+=1}),n!==r.length)throw new Error("Could not decode chunks");return r}function g(e){if(s.Array(e))return e;a(s.Buffer,e);const t=[];let r=0;for(;rc.OP_0&&n<=c.OP_PUSHDATA4){const n=o.decode(e,r);if(null===n)return null;if((r+=n.size)+n.number>e.length)return null;const i=e.slice(r,r+n.number);r+=n.number;const a=p(i);void 0!==a?t.push(a):t.push(i)}else t.push(n),r+=1}return t}function v(e){const t=-129&e;return t>0&&t<4}e.exports={compile:m,decompile:g,fromASM:function(asm){return a(s.String,asm),m(asm.split(" ").map(function(e){return void 0!==c[e]?c[e]:(a(s.Hex,e),Buffer.from(e,"hex"))}))},toASM:function(e){return Buffer.isBuffer(e)&&(e=g(e)),e.map(function(e){if(Buffer.isBuffer(e)){const t=p(e);if(void 0===t)return e.toString("hex");e=t}return l[e]}).join(" ")},toStack:function(e){return e=g(e),a(d,e),e.map(function(e){return Buffer.isBuffer(e)?e:e===c.OP_0?Buffer.allocUnsafe(0):u.encode(e-f)})},number:r(222),signature:r(500),isCanonicalPubKey:function(e){return i.isPoint(e)},isCanonicalScriptSignature:function(e){return!!Buffer.isBuffer(e)&&!!v(e[e.length-1])&&n.check(e.slice(0,-1))},isPushOnly:d,isDefinedHashType:v}},function(e,t,r){"use strict";var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e){e.exports={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255}},function(e,t,r){"use strict";var n=r(45),i=r(272),o=r(109),a=r(654),s=r(81);function u(e){return e}function c(e,t){for(var r=0;r1;)try{return l.stringifyByChunk(e,n,r)}catch(e){r=Math.floor(r/2)}return l.stringifyByChar(e)}function h(e,t){for(var r=0;ri;t=0<=i?++n:--n)r[t]=e.readUInt8(t);return r},o=function(e){var t,r,n,i;for(r=new Buffer(e.length),t=n=0,i=e.length;0<=i?ni;t=0<=i?++n:--n)r.writeUInt8(e[t],t);return r},i=function(e){return e>>>24&255|(e>>>16&255)<<8|(e>>>8&255)<<16|(255&e)<<24},t.WordArray=e=function(){function e(e,t){this.words=e||[],this.sigBytes=null!=t?t:4*this.words.length}return e.prototype.concat=function(e){var t,r,n,i,o;if(i=e.words,n=e.sigBytes,this.clamp(),this.sigBytes%4)for(t=o=0;0<=n?on;t=0<=n?++o:--o)r=i[t>>>2]>>>24-t%4*8&255,this.words[this.sigBytes+t>>>2]|=r<<24-(this.sigBytes+t)%4*8;else this.words=this.words.concat(i);return this.sigBytes+=n,this},e.prototype.clamp=function(){return this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this},e.prototype.clone=function(){return new e(this.words.slice(0),this.sigBytes)},e.prototype.to_buffer=function(){var e,t,r,n,i,o,s;for(t=new Buffer(this.sigBytes),r=0,i=0,o=(s=this.words).length;i=4&&(n=a.fixup_uint32(n),t.writeUInt32BE(n,r),r+=4);for(;r>>2]>>>24-r%4*8&255,t.writeUInt8(e,r),r++;return t},e.prototype.endian_reverse=function(){var e,t,r,n,o;for(e=r=0,n=(o=this.words).length;r0?ti;r=t+=n)o.push(new e(this.words.slice(r,r+n)));return o}.call(this)},e.prototype.to_utf8=function(){return this.to_buffer().toString("utf8")},e.prototype.to_hex=function(){return this.to_buffer().toString("hex")},e.prototype.to_ui8a=function(){return n(this.to_buffer())},e.alloc=function(t){return Buffer.isBuffer(t)?e.from_buffer(t):"object"==typeof t&&t instanceof e?t:"string"==typeof t?e.from_hex(t):null},e.from_buffer=function(t){var r,n,i;for(i=[],n=0;t.length-n>=4;)i.push(t.readUInt32BE(n)),n+=4;if(n=4;)i.push(t.readUInt32LE(n)),n+=4;if(ni;n=0<=i?++u:--u)s=this.words[r+n]^e.words[o+n],this.words[r+n]=a.fixup_uint32(s);return this},e.prototype.truncate=function(t){var r;if(!(t<=this.sigBytes))throw new Error("Cannot truncate: "+t+" > "+this.sigBytes);return r=Math.ceil(t/4),new e(this.words.slice(0,r),t)},e.prototype.unshift=function(t){var r;return this.words.length>=t?(r=this.words.splice(0,t),this.sigBytes-=4*t,new e(r)):null},e.prototype.is_scrubbed=function(){var e,t,r;for(e=0,t=(r=this.words).length;e=0)return!1;if((2===t||3===t)&&33===e.length){try{E(e)}catch(e){return!1}return!0}const n=e.slice(33);return 0!==n.compare(o)&&(!(n.compare(s)>=0)&&(4===t&&65===e.length))}function _(e){return 4!==e[0]}function w(e){return!!v(e)&&(e.compare(o)>0&&e.compare(a)<0)}function k(e,t){return void 0===e&&void 0!==t?_(t):void 0===e||e}function S(e){return new t(e)}function x(e){return e.toArrayLike(Buffer,"be",32)}function E(e){return n.curve.decodePoint(e)}function A(e,t){return Buffer.from(e._encode(t))}function O(e,t,r){if(!v(e))throw new TypeError(p);if(!w(t))throw new TypeError(f);if(void 0!==r&&!v(r))throw new TypeError(g);const n=S(t),o=S(e);let a,s;i(e,t,function(e){const t=S(e),r=l.mul(t);return!r.isInfinity()&&0!==(a=r.x.umod(u)).isZero()&&0!==(s=t.invm(u).mul(o.add(n.mul(a))).umod(u)).isZero()},w,r),s.cmp(c)>0&&(s=u.sub(s));const h=Buffer.allocUnsafe(64);return x(a).copy(h,0),x(s).copy(h,32),h}e.exports={isPoint:y,isPointCompressed:function(e){return!!y(e)&&_(e)},isPrivate:w,pointAdd:function(e,t,r){if(!y(e))throw new TypeError(h);if(!y(t))throw new TypeError(h);const n=E(e),i=E(t),o=n.add(i);return o.isInfinity()?null:A(o,k(r,e))},pointAddScalar:function(e,t,r){if(!y(e))throw new TypeError(h);if(!b(t))throw new TypeError(d);const n=k(r,e),i=E(e);if(0===t.compare(o))return A(i,n);const a=S(t),s=l.mul(a),u=i.add(s);return u.isInfinity()?null:A(u,n)},pointCompress:function(e,t){if(!y(e))throw new TypeError(h);const r=E(e);if(r.isInfinity())throw new TypeError(h);return A(r,t)},pointFromScalar:function(e,t){if(!w(e))throw new TypeError(f);const r=S(e),n=l.mul(r);return n.isInfinity()?null:A(n,k(t))},pointMultiply:function(e,t,r){if(!y(e))throw new TypeError(h);if(!b(t))throw new TypeError(d);const n=k(r,e),i=E(e),o=S(t),a=i.mul(o);return a.isInfinity()?null:A(a,n)},privateAdd:function(e,t){if(!w(e))throw new TypeError(f);if(!b(t))throw new TypeError(d);const r=S(e),n=S(t),i=x(r.add(n).umod(u));return w(i)?i:null},privateSub:function(e,t){if(!w(e))throw new TypeError(f);if(!b(t))throw new TypeError(d);const r=S(e),n=S(t),i=x(r.sub(n).umod(u));return w(i)?i:null},sign:function(e,t){return O(e,t)},signWithEntropy:function(e,t,r){return O(e,t,r)},verify:function(e,t,r){if(!v(e))throw new TypeError(p);if(!y(t))throw new TypeError(h);if(!function(e){const t=e.slice(0,32),r=e.slice(32,64);return Buffer.isBuffer(e)&&64===e.length&&t.compare(a)<0&&r.compare(a)<0}(r))throw new TypeError(m);const n=E(t),i=S(r.slice(0,32)),o=S(r.slice(32,64));if(i.gtn(0)<=0)return!1;if(o.gtn(0)<=0)return!1;const s=S(e),c=o.invm(u),f=s.mul(c).umod(u),d=i.mul(c).umod(u),g=l.mulAdd(f,n,d);return!g.isInfinity()&&g.x.umod(u).eq(i)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s;for(t.const=r(151),a=0,s=(i=[r(259),r(611)]).length;a1)for(var r=1;ro||e<0?(t=Math.abs(e)%o,e<0?o-t:t):e},t.scrub_buffer=function(e){var t,r;for(r=e.length>>2,t=0;ti;t=0<=i?++n:--n)r.writeUInt8(e.readUInt8(t),t);return r},t.scrub_vec=function(e){var t,r,n;for(t=r=0,n=e.length;0<=n?rn;t=0<=n?++r:--r)e[t]=0;return!1},t.default_delay=n=function(t,r,n){var o,a;o=i.findDeferral(arguments),function(t){null!=e?function(t){a=new i.Deferrals(t,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/util.iced"}),e(a.defer({lineno:45})),a._fulfill()}(t):function(e){a=new i.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/util.iced"}),setTimeout(a.defer({lineno:47}),1),a._fulfill()}(t)}(function(){return n()})},t.buffer_cmp_ule=function(e,t){var r,n,i,o,a,s;for(i=o=0,r=e.length,n=t.length;in-o)return 1;if(n-o>r-i)return-1;for(;i0))return e();d=Math.min(h,f),v(l,l+d),o(l),_=new i.Deferrals(function(){return r(l+=d)},{parent:y,filename:"/Users/max/src/keybase/triplesec/src/util.iced",funcname:"bulk"}),u(l,g,_.defer({lineno:105})),_._fulfill()})(e)}(function(){return o(g),m=c(),a(m)})}}).call(this)}).call(this,r(0).Buffer,r(66).setImmediate)},function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitcoin={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},t.regtest={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bcrt",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239},t.testnet={messagePrefix:"Bitcoin Signed Message:\n",bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239}},function(e,t,r){"use strict";e.exports={bitcoin:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},regtest:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"bcrt",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239},testnet:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239}}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(529)),i=r(38),o=r(39),a=r(32);t.BLOCKSTACK_HANDLER="blockstack",t.nextYear=function(){return new Date((new Date).setFullYear((new Date).getFullYear()+1))},t.nextMonth=function(){return new Date((new Date).setMonth((new Date).getMonth()+1))},t.nextHour=function(){return new Date((new Date).setHours((new Date).getHours()+1))},t.updateQueryStringParameter=function(e,t,r){const n=new RegExp(`([?&])${t}=.*?(&|$)`,"i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(n)?e.replace(n,`$1${t}=${r}$2`):`${e}${i}${t}=${r}`},t.isLaterVersion=function(e,t){void 0===e&&(e="0.0.0"),void 0===t&&(t="0.0.0");const r=e.split(".").map(e=>parseInt(e,10)),n=t.split(".").map(e=>parseInt(e,10));for(let i=0;i=e.length&&n.push(0),r[i]{const r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:3&r|8).toString(16)})},t.isSameOriginAbsoluteUrl=function(e,t){const r=n.default.parse(e),i=n.default.parse(t),o=0|parseInt(r.port||"0",10)||("https:"===r.protocol?443:80),a=0|parseInt(i.port||"0",10)||("https:"===i.protocol?443:80),s={scheme:r.protocol===i.protocol,hostname:r.hostname===i.hostname,port:o===a,absolute:(e.includes("http://")||e.includes("https://"))&&(t.includes("http://")||t.includes("https://"))};return s.scheme&&s.hostname&&s.port&&s.absolute},t.checkWindowAPI=function(e,t){if("undefined"==typeof window||!window[t]){const r=`\`${e}\` uses the \`window.${t}\` API which is `+" not available in the current environment.";throw a.Logger.error(r),new Error(r)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(190));t.default=i,function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(190))},function(e,t,r){"use strict";(function(t,n){var i=65536,o=4294967295;var Buffer=r(2).Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>o)throw new RangeError("requested too many random bytes");var r=Buffer.allocUnsafe(e);if(e>0)if(e>i)for(var s=0;s=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t;return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";const n=r(5),i=Math.pow(2,31)-1;function o(e){return n.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}o.toJSON=function(){return"BIP32 derivation path"};const a=21e14;const s=n.quacksLike("Point"),u=n.compile({messagePrefix:n.oneOf(n.Buffer,n.String),bip32:{public:n.UInt32,private:n.UInt32},pubKeyHash:n.UInt8,scriptHash:n.UInt8,wif:n.UInt8}),c={BIP32Path:o,Buffer256bit:n.BufferN(32),ECPoint:s,Hash160bit:n.BufferN(20),Hash256bit:n.BufferN(32),Network:u,Satoshi:function(e){return n.UInt53(e)&&e<=a},UInt31:function(e){return n.UInt32(e)&&e<=i}};for(var l in n)c[l]=n[l];e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODES={MISSING_PARAMETER:"missing_parameter",REMOTE_SERVICE_ERROR:"remote_service_error",INVALID_STATE:"invalid_state",NO_SESSION_DATA:"no_session_data",UNKNOWN:"unknown"},Object.freeze(t.ERROR_CODES);class n extends Error{constructor(e){super(e.message),this.message=e.message,this.code=e.code,this.parameter=e.parameter?e.parameter:null}toString(){return`${super.toString()}\n code: ${this.code} param: ${this.parameter?this.parameter:"n/a"}`}}t.BlockstackError=n;t.FileNotFound=class extends n{constructor(e){super({message:e,code:"file_not_found"}),this.name="FileNotFound"}};t.InvalidParameterError=class extends n{constructor(e,t=""){super({code:"missing_parameter",message:t,parameter:""}),this.name="MissingParametersError"}};t.MissingParameterError=class extends n{constructor(e,r=""){super({code:t.ERROR_CODES.MISSING_PARAMETER,message:r,parameter:e}),this.name="MissingParametersError"}};t.RemoteServiceError=class extends n{constructor(e,r=""){super({code:t.ERROR_CODES.REMOTE_SERVICE_ERROR,message:r}),this.response=e}};t.InvalidDIDError=class extends n{constructor(e=""){super({code:"invalid_did_error",message:e}),this.name="InvalidDIDError"}};t.NotEnoughFundsError=class extends n{constructor(e){const t=`Not enough UTXOs to fund. Left to fund: ${e}`;super({code:"not_enough_error",message:t}),this.leftToFund=e,this.name="NotEnoughFundsError",this.message=t}};t.InvalidAmountError=class extends n{constructor(e,t){const r=`Not enough coin to fund fees transaction fees. Fees would be ${e},`+` specified spend is ${t}`;super({code:"invalid_amount_error",message:r}),this.specifiedAmount=t,this.fees=e,this.name="InvalidAmountError",this.message=r}};t.LoginFailedError=class extends n{constructor(e){const t=`Failed to login: ${e}`;super({code:"login_failed",message:t}),this.message=t,this.name="LoginFailedError"}};t.SignatureVerificationError=class extends n{constructor(e){const t=`Failed to verify signature: ${e}`;super({code:"signature_verification_failure",message:t}),this.message=t,this.name="SignatureVerificationError"}};t.InvalidStateError=class extends n{constructor(e){super({code:t.ERROR_CODES.INVALID_STATE,message:e}),this.message=e,this.name="InvalidStateError"}};t.NoSessionDataError=class extends n{constructor(e){super({code:t.ERROR_CODES.INVALID_STATE,message:e}),this.message=e,this.name="NoSessionDataError"}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(39),i=["debug","info","warn","error","none"],o={},a={};for(let e=0;e0?ls;u=l+=f)this._doProcessBlock(n,u);c=n.splice(0,s),t.sigBytes-=o}return new a(c,o)},e.prototype.copy_to=function(e){return e._data=this._data.clone(),e._nDataBytes=this._nDataBytes},e.prototype.clone=function(){var t;return t=new e,this.copy_to(t),t},e}(),i=function(e){function t(){t.__super__.constructor.call(this)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.prototype.reset=function(){return t.__super__.reset.call(this),this._doReset(),this},t.prototype.update=function(e){return this._append(e),this._process(),this},t.prototype.finalize=function(e){return e&&this._append(e),this._doFinalize()},t.prototype.bufhash=function(e){var t,r,n;return r=a.from_buffer(e),t=(n=this.finalize(r)).to_buffer(),r.scrub(),n.scrub(),t},t}(),t.BlockCipher=e=function(){function e(e){}return e.prototype.encryptBlock=function(e,t){},e}(),o=function(){function e(){}return e.prototype.encryptBlock=function(e,t){var r,n;return null==t&&(t=0),n=this.get_pad(),r=Math.min(e.words.length-t,this.bsiw),e.xor(n,{dst_offset:t,n_words:r}),n.scrub(),this.bsiw},e.prototype.encrypt=function(e){var t,r,n,i;for(t=r=0,n=e.words.length,i=this.bsiw;i>0?rn;t=r+=i)this.encryptBlock(e,t);return e},e.prototype.bulk_encrypt=function(e,t){var r,n,i,o,a,u;return n=e.input,i=e.progress_hook,a=e.what,o={update:(u=this,function(e,t){var r,i,o,a;for(a=[],r=i=e,o=u.bsiw;o>0?it;r=i+=o)a.push(u.encryptBlock(n,r));return a}),finalize:function(){return n},default_n:1024*this.bsiw},r={progress_hook:i,cb:t,what:a},s.bulk(n.sigBytes,o,r)},e}(),t.BlockCipher=e,t.Hasher=i,t.BufferedBlockAlgorithm=n,t.StreamCipher=o}).call(this)},function(e,t,r){"use strict";(function(e){r.d(t,"b",function(){return _});var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}var o=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"==typeof r?r():r)||{}},a={namespaced:{configurable:!0}};a.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(e,t){this._children[e]=t},o.prototype.removeChild=function(e){delete this._children[e]},o.prototype.getChild=function(e){return this._children[e]},o.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},o.prototype.forEachChild=function(e){i(this._children,e)},o.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},o.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},o.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(o.prototype,a);var s=function(e){this.register([],e,!1)};s.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},s.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")},"")},s.prototype.update=function(e){!function e(t,r,n){0;r.update(n);if(n.modules)for(var i in n.modules){if(!r.getChild(i))return void 0;e(t.concat(i),r.getChild(i),n.modules[i])}}([],this.root,e)},s.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var a=new o(t,r);0===e.length?this.root=a:this.get(e.slice(0,-1)).addChild(e[e.length-1],a);t.modules&&i(t.modules,function(t,i){n.register(e.concat(i),t,r)})},s.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];t.getChild(r).runtime&&t.removeChild(r)};var u;var c=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&v(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u;var o=this,a=this.dispatch,c=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,r){return c.call(o,e,t,r)},this.strict=i;var l=this._modules.root.state;p(this,l,[],this._modules.root),d(this,l),r.forEach(function(e){return e(t)}),(void 0!==e.devtools?e.devtools:u.config.devtools)&&function(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,t){n.emit("vuex:mutation",e,t)}))}(this)},l={state:{configurable:!0}};function f(e,t){return t.indexOf(e)<0&&t.push(e),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;p(e,r,[],e._modules.root,!0),d(e,r,t)}function d(e,t,r){var n=e._vm;e.getters={};var o=e._wrappedGetters,a={};i(o,function(t,r){a[r]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})});var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:a}),u.config.silent=s,e.strict&&function(e){e._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(e),n&&(r&&e._withCommit(function(){n._data.$$state=null}),u.nextTick(function(){return n.$destroy()}))}function p(e,t,r,n,i){var o=!r.length,a=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[a]=n),!o&&!i){var s=m(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit(function(){u.set(s,c,n.state)})}var l=n.context=function(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var o=g(r,n,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=t+u),e.dispatch(u,a)},commit:n?e.commit:function(r,n,i){var o=g(r,n,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=t+u),e.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){var r={},n=t.length;return Object.keys(e.getters).forEach(function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}}),r}(e,t)}},state:{get:function(){return m(e.state,r)}}}),i}(e,a,r);n.forEachMutation(function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push(function(t){r.call(e,n.state,t)})}(e,a+r,t,l)}),n.forEachAction(function(t,r){var n=t.root?r:a+r,i=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push(function(t,i){var o,a=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t,i);return(o=a)&&"function"==typeof o.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):a})}(e,n,i,l)}),n.forEachGetter(function(t,r){!function(e,t,r,n){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)}}(e,a+r,t,l)}),n.forEachChild(function(n,o){p(e,t,r.concat(o),n,i)})}function m(e,t){return t.length?t.reduce(function(e,t){return e[t]},e):e}function g(e,t,r){var n;return null!==(n=e)&&"object"==typeof n&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function v(e){u&&e===u|| +var n=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function f(e){return"[object RegExp]"===c.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var y=Object.prototype.hasOwnProperty;function _(e,t){return y.call(e,t)}function w(e){var t=Object.create(null);return function(r){return t[r]||(t[r]=e(r))}}var k=/-(\w)/g,S=w(function(e){return e.replace(k,function(e,t){return t?t.toUpperCase():""})}),x=w(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),E=/\B([A-Z])/g,A=w(function(e){return e.replace(E,"-$1").toLowerCase()});var O=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r};function P(e,t){t=t||0;for(var r=e.length-t,n=new Array(r);r--;)n[r]=e[r+t];return n}function T(e,t){for(var r in t)e[r]=t[r];return e}function C(e){for(var t={},r=0;r0,J=Z&&Z.indexOf("edge/")>0,Q=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===G),ee=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),te={}.watch,re=!1;if(K)try{var ne={};Object.defineProperty(ne,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ne)}catch(e){}var ie=function(){return void 0===H&&(H=!K&&!W&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),H},oe=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ue="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ce=j,le=0,fe=function(){this.id=le++,this.subs=[]};fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){b(this.subs,e)},fe.prototype.depend=function(){fe.target&&fe.target.addDep(this)},fe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,r=e.length;t-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===A(e)){var u=$e(String,i.type);(u<0||s0&&(lt((c=e(c,(r||"")+"_"+u))[0])&<(f)&&(n[l]=be(f.text+c[0].text),c.shift()),n.push.apply(n,c)):s(c)?lt(f)?n[l]=be(f.text+c):""!==c&&n.push(be(c)):lt(c)&<(f)?n[l]=be(f.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(r)&&(c.key="__vlist"+r+"_"+u+"__"),n.push(c)));return n}(e):void 0}function lt(e){return o(e)&&o(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var r=Object.create(null),n=ue?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},e)e[u]&&"$"!==u[0]&&(i[u]=mt(t,u,e[u]))}else i={};for(var c in t)c in i||(i[c]=gt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),L(i,"$stable",a),L(i,"$key",s),L(i,"$hasNormal",o),i}function mt(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ct(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function gt(e,t){return function(){return e[t]}}function vt(e,t){var r,n,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),n=0,i=e.length;ndocument.createEvent("Event").timeStamp&&(cr=function(){return lr.now()})}function fr(){var e,t;for(ur=cr(),ar=!0,rr.sort(function(e,t){return e.id-t.id}),sr=0;srsr&&rr[r].id>e.id;)r--;rr.splice(r+1,0,e)}else rr.push(e);or||(or=!0,tt(fr))}}(this)},dr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Le(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},dr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},dr.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},dr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pr={enumerable:!0,configurable:!0,get:j,set:j};function mr(e,t,r){pr.get=function(){return this[t][r]},pr.set=function(e){this[t][r]=e},Object.defineProperty(e,r,pr)}function gr(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[];e.$parent&&xe(!1);var o=function(o){i.push(o);var a=Re(o,t,r,e);Oe(n,o,a),o in e||mr(e,"_props",o)};for(var a in t)o(a);xe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var r in t)e[r]="function"!=typeof t[r]?j:O(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){de();try{return e.call(t,t)}catch(e){return Le(e,t,"data()"),{}}finally{pe()}}(t,e):t||{})||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);for(;i--;){var o=r[i];0,n&&_(n,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&mr(e,"_data",o))}var a;Ae(t,!0)}(e):Ae(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=ie();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,n||(r[i]=new dr(e,a||j,j,vr)),i in e||br(e,i,o)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Pr(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=Ar(a.componentOptions);s&&!t(s)&&Tr(r,o,n,i)}}}function Tr(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,b(r,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=kr++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ne(Sr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Yt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=ht(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,r,n,i){return $t(e,t,r,n,i,!1)},e.$createElement=function(t,r,n,i){return $t(e,t,r,n,i,!0)};var o=r&&r.data;Oe(e,"$attrs",o&&o.attrs||n,null,!0),Oe(e,"$listeners",t._parentListeners||n,null,!0)}(t),tr(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&(xe(!1),Object.keys(t).forEach(function(r){Oe(e,r,t[r])}),xe(!0))}(t),gr(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tr(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(xr),function(e){var t={get:function(){return this._data}},r={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",r),e.prototype.$set=Pe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,r){if(l(t))return wr(this,e,t,r);(r=r||{}).user=!0;var n=new dr(this,e,t,r);if(r.immediate)try{t.call(this,n.value)}catch(e){Le(e,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(xr),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?P(t):t;for(var r=P(arguments,1),n='event handler for "'+e+'"',i=0,o=t.length;iparseInt(this.max)&&Tr(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return U}};Object.defineProperty(e,"config",t),e.util={warn:ce,extend:T,mergeOptions:Ne,defineReactive:Oe},e.set=Pe,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Ae(e),e},e.options=Object.create(null),R.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,T(e.options.components,jr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=P(arguments,1);return r.unshift(this),"function"==typeof e.install?e.install.apply(e,r):"function"==typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ne(this.options,e),this}}(e),Er(e),function(e){R.forEach(function(t){e[t]=function(e,r){return r?("component"===t&&l(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"==typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}})}(e)}(xr),Object.defineProperty(xr.prototype,"$isServer",{get:ie}),Object.defineProperty(xr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xr,"FunctionalRenderContext",{value:It}),xr.version="2.6.10";var Ir=g("style,class"),Mr=g("input,textarea,option,select,progress"),Dr=g("contenteditable,draggable,spellcheck"),Br=g("events,caret,typing,plaintext-only"),Nr=function(e,t){return $r(t)||"false"===t?"false":"contenteditable"===e&&Br(t)?t:"true"},zr=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rr="http://www.w3.org/1999/xlink",Fr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ur=function(e){return Fr(e)?e.slice(6,e.length):""},$r=function(e){return null==e||!1===e};function Lr(e){for(var t=e.data,r=e,n=e;o(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=qr(n.data,t));for(;o(r=r.parent);)r&&r.data&&(t=qr(t,r.data));return function(e,t){if(o(e)||o(t))return Hr(e,Vr(t));return""}(t.staticClass,t.class)}function qr(e,t){return{staticClass:Hr(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Hr(e,t){return e?t?e+" "+t:e:t||""}function Vr(e){return Array.isArray(e)?function(e){for(var t,r="",n=0,i=e.length;n-1?mn(e,t,r):zr(t)?$r(r)?e.removeAttribute(t):(r="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,r)):Dr(t)?e.setAttribute(t,Nr(t,r)):Fr(t)?$r(r)?e.removeAttributeNS(Rr,Ur(t)):e.setAttributeNS(Rr,t,r):mn(e,t,r)}function mn(e,t,r){if($r(r))e.removeAttribute(t);else{if(Y&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==r&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,r)}}var gn={create:dn,update:dn};function vn(e,t){var r=t.elm,n=t.data,a=e.data;if(!(i(n.staticClass)&&i(n.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Lr(t),u=r._transitionClasses;o(u)&&(s=Hr(s,Vr(u))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var bn,yn={create:vn,update:vn},_n="__r",wn="__c";function kn(e,t,r){var n=bn;return function i(){null!==t.apply(null,arguments)&&En(e,i,r,n)}}var Sn=We&&!(ee&&Number(ee[1])<=53);function xn(e,t,r,n){if(Sn){var i=ur,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}bn.addEventListener(e,t,re?{capture:r,passive:n}:r)}function En(e,t,r,n){(n||bn).removeEventListener(e,t._wrapper||t,r)}function An(e,t){if(!i(e.data.on)||!i(t.data.on)){var r=t.data.on||{},n=e.data.on||{};bn=t.elm,function(e){if(o(e[_n])){var t=Y?"change":"input";e[t]=[].concat(e[_n],e[t]||[]),delete e[_n]}o(e[wn])&&(e.change=[].concat(e[wn],e.change||[]),delete e[wn])}(r),at(r,n,xn,En,kn,t.context),bn=void 0}}var On,Pn={create:An,update:An};function Tn(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var r,n,a=t.elm,s=e.data.domProps||{},u=t.data.domProps||{};for(r in o(u.__ob__)&&(u=t.data.domProps=T({},u)),s)r in u||(a[r]="");for(r in u){if(n=u[r],"textContent"===r||"innerHTML"===r){if(t.children&&(t.children.length=0),n===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=n;var c=i(n)?"":String(n);Cn(a,c)&&(a.value=c)}else if("innerHTML"===r&&Gr(a.tagName)&&i(a.innerHTML)){(On=On||document.createElement("div")).innerHTML=""+n+"";for(var l=On.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(n!==s[r])try{a[r]=n}catch(e){}}}}function Cn(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var r=!0;try{r=document.activeElement!==e}catch(e){}return r&&e.value!==t}(e,t)||function(e,t){var r=e.value,n=e._vModifiers;if(o(n)){if(n.number)return m(r)!==m(t);if(n.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var jn={create:Tn,update:Tn},In=w(function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t});function Mn(e){var t=Dn(e.style);return e.staticStyle?T(e.staticStyle,t):t}function Dn(e){return Array.isArray(e)?C(e):"string"==typeof e?In(e):e}var Bn,Nn=/^--/,zn=/\s*!important$/,Rn=function(e,t,r){if(Nn.test(t))e.style.setProperty(t,r);else if(zn.test(r))e.style.setProperty(A(t),r.replace(zn,""),"important");else{var n=Un(t);if(Array.isArray(r))for(var i=0,o=r.length;i-1?t.split(qn).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var r=" "+(e.getAttribute("class")||"")+" ";r.indexOf(" "+t+" ")<0&&e.setAttribute("class",(r+t).trim())}}function Vn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(qn).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var r=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?e.setAttribute("class",r):e.removeAttribute("class")}}function Kn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,Wn(e.name||"v")),T(t,e),t}return"string"==typeof e?Wn(e):void 0}}var Wn=w(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Gn=K&&!X,Zn="transition",Yn="animation",Xn="transition",Jn="transitionend",Qn="animation",ei="animationend";Gn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Xn="WebkitTransition",Jn="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Qn="WebkitAnimation",ei="webkitAnimationEnd"));var ti=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ri(e){ti(function(){ti(e)})}function ni(e,t){var r=e._transitionClasses||(e._transitionClasses=[]);r.indexOf(t)<0&&(r.push(t),Hn(e,t))}function ii(e,t){e._transitionClasses&&b(e._transitionClasses,t),Vn(e,t)}function oi(e,t,r){var n=si(e,t),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s=i===Zn?Jn:ei,u=0,c=function(){e.removeEventListener(s,l),r()},l=function(t){t.target===e&&++u>=a&&c()};setTimeout(function(){u0&&(r=Zn,l=a,f=o.length):t===Yn?c>0&&(r=Yn,l=c,f=u.length):f=(r=(l=Math.max(a,c))>0?a>c?Zn:Yn:null)?r===Zn?o.length:u.length:0,{type:r,timeout:l,propCount:f,hasTransform:r===Zn&&ai.test(n[Xn+"Property"])}}function ui(e,t){for(;e.length1}function pi(e,t){!0!==t.data.show&&li(t)}var mi=function(e){var t,r,n={},u=e.modules,c=e.nodeOps;for(t=0;tp?y(e,i(r[v+1])?null:r[v+1].elm,r,d,v,n):d>v&&w(0,t,h,p)}(h,g,v,r,l):o(v)?(o(e.text)&&c.setTextContent(h,""),y(h,null,v,0,v.length-1,r)):o(g)?w(0,g,0,g.length-1):o(e.text)&&c.setTextContent(h,""):e.text!==t.text&&c.setTextContent(h,t.text),o(p)&&o(d=p.hook)&&o(d=d.postpatch)&&d(e,t)}}}function E(e,t,r){if(a(r)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var n=0;n-1,a.selected!==o&&(a.selected=o);else if(D(_i(a),n))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function yi(e,t){return t.every(function(t){return!D(t,e)})}function _i(e){return"_value"in e?e._value:e.value}function wi(e){e.target.composing=!0}function ki(e){e.target.composing&&(e.target.composing=!1,Si(e.target,"input"))}function Si(e,t){var r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function xi(e){return!e.componentInstance||e.data&&e.data.transition?e:xi(e.componentInstance._vnode)}var Ei={model:gi,show:{bind:function(e,t,r){var n=t.value,i=(r=xi(r)).data&&r.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(r.data.show=!0,li(r,function(){e.style.display=o})):e.style.display=n?o:"none"},update:function(e,t,r){var n=t.value;!n!=!t.oldValue&&((r=xi(r)).data&&r.data.transition?(r.data.show=!0,n?li(r,function(){e.style.display=e.__vOriginalDisplay}):fi(r,function(){e.style.display="none"})):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,n,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ai={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Oi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Oi(Kt(t.children)):e}function Pi(e){var t={},r=e.$options;for(var n in r.propsData)t[n]=e[n];var i=r._parentListeners;for(var o in i)t[S(o)]=i[o];return t}function Ti(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Ci=function(e){return e.tag||Vt(e)},ji=function(e){return"show"===e.name},Ii={name:"transition",props:Ai,abstract:!0,render:function(e){var t=this,r=this.$slots.default;if(r&&(r=r.filter(Ci)).length){0;var n=this.mode;0;var i=r[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Oi(i);if(!o)return i;if(this._leaving)return Ti(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=Pi(this),c=this._vnode,l=Oi(c);if(o.data.directives&&o.data.directives.some(ji)&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!Vt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=T({},u);if("out-in"===n)return this._leaving=!0,st(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Ti(e,i);if("in-out"===n){if(Vt(o))return c;var h,d=function(){h()};st(u,"afterEnter",d),st(u,"enterCancelled",d),st(f,"delayLeave",function(e){h=e})}}return i}}},Mi=T({tag:String,moveClass:String},Ai);function Di(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Bi(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ni(e){var t=e.data.pos,r=e.data.newPos,n=t.left-r.left,i=t.top-r.top;if(n||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete Mi.mode;var zi={Transition:Ii,TransitionGroup:{props:Mi,beforeMount:function(){var e=this,t=this._update;this._update=function(r,n){var i=Jt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,r,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Pi(this),s=0;s-1?Yr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yr[e]=/HTMLUnknownElement/.test(t.toString())},T(xr.options.directives,Ei),T(xr.options.components,zi),xr.prototype.__patch__=K?mi:j,xr.prototype.$mount=function(e,t){return function(e,t,r){var n;return e.$el=t,e.$options.render||(e.$options.render=ve),tr(e,"beforeMount"),n=function(){e._update(e._render(),r)},new dr(e,n,j,{before:function(){e._isMounted&&!e._isDestroyed&&tr(e,"beforeUpdate")}},!0),r=!1,null==e.$vnode&&(e._isMounted=!0,tr(e,"mounted")),e}(this,e=e&&K?function(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}(e):void 0,t)},K&&setTimeout(function(){U.devtools&&oe&&oe.emit("init",xr)},0),t.default=xr}.call(this,r(9),r(66).setImmediate)},function(e,t,r){"use strict";(function(e){!function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var Buffer;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{Buffer=r(326).Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function s(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=a(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,u=Math.min(o,o-a)+r,c=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c>>26,f=67108863&u,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-f.length]+f+r:f+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var h=c[e],d=l[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(e);r=(p=p.idivn(d)).isZero()?m+r:u[h-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==Buffer),this.toArrayLike(Buffer,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,g=0|a[2],v=8191&g,b=g>>>13,y=0|a[3],_=8191&y,w=y>>>13,k=0|a[4],S=8191&k,x=k>>>13,E=0|a[5],A=8191&E,O=E>>>13,P=0|a[6],T=8191&P,C=P>>>13,j=0|a[7],I=8191&j,M=j>>>13,D=0|a[8],B=8191&D,N=D>>>13,z=0|a[9],R=8191&z,F=z>>>13,U=0|s[0],$=8191&U,L=U>>>13,q=0|s[1],H=8191&q,V=q>>>13,K=0|s[2],W=8191&K,G=K>>>13,Z=0|s[3],Y=8191&Z,X=Z>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(f,$))|0)+((8191&(i=(i=Math.imul(f,L))+Math.imul(h,$)|0))<<13)|0;c=((o=Math.imul(h,L))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,$),i=(i=Math.imul(p,L))+Math.imul(m,$)|0,o=Math.imul(m,L);var ve=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,H)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,$),i=(i=Math.imul(v,L))+Math.imul(b,$)|0,o=Math.imul(b,L),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,V)|0;var be=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(_,$),i=(i=Math.imul(_,L))+Math.imul(w,$)|0,o=Math.imul(w,L),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ye=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(S,$),i=(i=Math.imul(S,L))+Math.imul(x,$)|0,o=Math.imul(x,L),n=n+Math.imul(_,H)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,H)|0,o=o+Math.imul(w,V)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,X)|0;var _e=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,$),i=(i=Math.imul(A,L))+Math.imul(O,$)|0,o=Math.imul(O,L),n=n+Math.imul(S,H)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,V)|0,n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,G)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var we=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(T,$),i=(i=Math.imul(T,L))+Math.imul(C,$)|0,o=Math.imul(C,L),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,X)|0)+Math.imul(w,Y)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var ke=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(I,$),i=(i=Math.imul(I,L))+Math.imul(M,$)|0,o=Math.imul(M,L),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,V)|0)+Math.imul(C,H)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,G)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,X)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Se=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,L))+Math.imul(N,$)|0,o=Math.imul(N,L),n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0;var xe=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,$),i=(i=Math.imul(R,L))+Math.imul(F,$)|0,o=Math.imul(F,L),n=n+Math.imul(B,H)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0;var Ee=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,H),i=(i=Math.imul(R,V))+Math.imul(F,H)|0,o=Math.imul(F,V),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,X)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(w,ue)|0,o=o+Math.imul(w,ce)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0;var Ae=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(R,W),i=(i=Math.imul(R,G))+Math.imul(F,W)|0,o=Math.imul(F,G),n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(x,ue)|0,o=o+Math.imul(x,ce)|0,n=n+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(w,fe)|0,o=o+Math.imul(w,he)|0;var Oe=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,Y),i=(i=Math.imul(R,X))+Math.imul(F,Y)|0,o=Math.imul(F,X),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,he)|0;var Pe=(c+(n=n+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(R,Q),i=(i=Math.imul(R,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0;var Te=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(R,re),i=(i=Math.imul(R,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0;var Ce=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(R,oe),i=(i=Math.imul(R,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,n=n+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,he)|0;var je=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(R,ue),i=(i=Math.imul(R,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(B,fe)|0,i=(i=i+Math.imul(B,he)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,he)|0;var Ie=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(M,pe)|0))<<13)|0;c=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(R,fe),i=(i=Math.imul(R,he))+Math.imul(F,fe)|0,o=Math.imul(F,he);var Me=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863;var De=(c+(n=Math.imul(R,pe))|0)+((8191&(i=(i=Math.imul(R,me))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=ge,u[1]=ve,u[2]=be,u[3]=ye,u[4]=_e,u[5]=we,u[6]=ke,u[7]=Se,u[8]=xe,u[9]=Ee,u[10]=Ae,u[11]=Oe,u[12]=Pe,u[13]=Te,u[14]=Ce,u[15]=je,u[16]=Ie,u[17]=Me,u[18]=De,0!==c&&(u[19]=c,r.length++),r};function d(e,t,r){return(new p).mulp(e,t,r)}function p(e,t){this.x=e,this.y=t}Math.imul||(h=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):d(this,e,t)},p.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},p.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new w(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function y(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function w(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){w.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(v,g),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new b;else if("p192"===e)t=new y;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},w.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},w.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},w.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},w.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},w.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},w.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},w.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},w.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},w.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},w.prototype.isqr=function(e){return this.imul(e,e.clone())},w.prototype.sqr=function(e){return this.mul(e,e)},w.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=a;0!==d.cmp(s);){for(var m=d,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var f=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},w.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},w.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,w),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(36)(e))},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(89),i=r(15),o=r(184),a=r(5),s=r(30),u=r(222),c=r(10),l=r(185),f=c.OP_RESERVED;function h(e){return s.Buffer(e)||function(e){return s.Number(e)&&(e===c.OP_0||e>=c.OP_1&&e<=c.OP_16||e===c.OP_1NEGATE)}(e)}function d(e){return s.Array(e)&&e.every(h)}function p(e){return 0===e.length?c.OP_0:1===e.length?e[0]>=1&&e[0]<=16?f+e[0]:129===e[0]?c.OP_1NEGATE:void 0:void 0}function m(e){if(Buffer.isBuffer(e))return e;a(s.Array,e);const t=e.reduce(function(e,t){return Buffer.isBuffer(t)?1===t.length&&void 0!==p(t)?e+1:e+o.encodingLength(t.length)+t.length:e+1},0),r=Buffer.allocUnsafe(t);let n=0;if(e.forEach(function(e){if(Buffer.isBuffer(e)){const t=p(e);if(void 0!==t)return r.writeUInt8(t,n),void(n+=1);n+=o.encode(r,e.length,n),e.copy(r,n),n+=e.length}else r.writeUInt8(e,n),n+=1}),n!==r.length)throw new Error("Could not decode chunks");return r}function g(e){if(s.Array(e))return e;a(s.Buffer,e);const t=[];let r=0;for(;rc.OP_0&&n<=c.OP_PUSHDATA4){const n=o.decode(e,r);if(null===n)return null;if((r+=n.size)+n.number>e.length)return null;const i=e.slice(r,r+n.number);r+=n.number;const a=p(i);void 0!==a?t.push(a):t.push(i)}else t.push(n),r+=1}return t}function v(e){const t=-129&e;return t>0&&t<4}e.exports={compile:m,decompile:g,fromASM:function(asm){return a(s.String,asm),m(asm.split(" ").map(function(e){return void 0!==c[e]?c[e]:(a(s.Hex,e),Buffer.from(e,"hex"))}))},toASM:function(e){return Buffer.isBuffer(e)&&(e=g(e)),e.map(function(e){if(Buffer.isBuffer(e)){const t=p(e);if(void 0===t)return e.toString("hex");e=t}return l[e]}).join(" ")},toStack:function(e){return e=g(e),a(d,e),e.map(function(e){return Buffer.isBuffer(e)?e:e===c.OP_0?Buffer.allocUnsafe(0):u.encode(e-f)})},number:r(222),signature:r(500),isCanonicalPubKey:function(e){return i.isPoint(e)},isCanonicalScriptSignature:function(e){return!!Buffer.isBuffer(e)&&!!v(e[e.length-1])&&n.check(e.slice(0,-1))},isPushOnly:d,isDefinedHashType:v}},function(e,t,r){"use strict";var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e){e.exports={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255}},function(e,t,r){"use strict";var n=r(45),i=r(272),o=r(109),a=r(654),s=r(81);function u(e){return e}function c(e,t){for(var r=0;r1;)try{return l.stringifyByChunk(e,n,r)}catch(e){r=Math.floor(r/2)}return l.stringifyByChar(e)}function h(e,t){for(var r=0;ri;t=0<=i?++n:--n)r[t]=e.readUInt8(t);return r},o=function(e){var t,r,n,i;for(r=new Buffer(e.length),t=n=0,i=e.length;0<=i?ni;t=0<=i?++n:--n)r.writeUInt8(e[t],t);return r},i=function(e){return e>>>24&255|(e>>>16&255)<<8|(e>>>8&255)<<16|(255&e)<<24},t.WordArray=e=function(){function e(e,t){this.words=e||[],this.sigBytes=null!=t?t:4*this.words.length}return e.prototype.concat=function(e){var t,r,n,i,o;if(i=e.words,n=e.sigBytes,this.clamp(),this.sigBytes%4)for(t=o=0;0<=n?on;t=0<=n?++o:--o)r=i[t>>>2]>>>24-t%4*8&255,this.words[this.sigBytes+t>>>2]|=r<<24-(this.sigBytes+t)%4*8;else this.words=this.words.concat(i);return this.sigBytes+=n,this},e.prototype.clamp=function(){return this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this},e.prototype.clone=function(){return new e(this.words.slice(0),this.sigBytes)},e.prototype.to_buffer=function(){var e,t,r,n,i,o,s;for(t=new Buffer(this.sigBytes),r=0,i=0,o=(s=this.words).length;i=4&&(n=a.fixup_uint32(n),t.writeUInt32BE(n,r),r+=4);for(;r>>2]>>>24-r%4*8&255,t.writeUInt8(e,r),r++;return t},e.prototype.endian_reverse=function(){var e,t,r,n,o;for(e=r=0,n=(o=this.words).length;r0?ti;r=t+=n)o.push(new e(this.words.slice(r,r+n)));return o}.call(this)},e.prototype.to_utf8=function(){return this.to_buffer().toString("utf8")},e.prototype.to_hex=function(){return this.to_buffer().toString("hex")},e.prototype.to_ui8a=function(){return n(this.to_buffer())},e.alloc=function(t){return Buffer.isBuffer(t)?e.from_buffer(t):"object"==typeof t&&t instanceof e?t:"string"==typeof t?e.from_hex(t):null},e.from_buffer=function(t){var r,n,i;for(i=[],n=0;t.length-n>=4;)i.push(t.readUInt32BE(n)),n+=4;if(n=4;)i.push(t.readUInt32LE(n)),n+=4;if(ni;n=0<=i?++u:--u)s=this.words[r+n]^e.words[o+n],this.words[r+n]=a.fixup_uint32(s);return this},e.prototype.truncate=function(t){var r;if(!(t<=this.sigBytes))throw new Error("Cannot truncate: "+t+" > "+this.sigBytes);return r=Math.ceil(t/4),new e(this.words.slice(0,r),t)},e.prototype.unshift=function(t){var r;return this.words.length>=t?(r=this.words.splice(0,t),this.sigBytes-=4*t,new e(r)):null},e.prototype.is_scrubbed=function(){var e,t,r;for(e=0,t=(r=this.words).length;e=0)return!1;if((2===t||3===t)&&33===e.length){try{E(e)}catch(e){return!1}return!0}const n=e.slice(33);return 0!==n.compare(o)&&(!(n.compare(s)>=0)&&(4===t&&65===e.length))}function _(e){return 4!==e[0]}function w(e){return!!v(e)&&(e.compare(o)>0&&e.compare(a)<0)}function k(e,t){return void 0===e&&void 0!==t?_(t):void 0===e||e}function S(e){return new t(e)}function x(e){return e.toArrayLike(Buffer,"be",32)}function E(e){return n.curve.decodePoint(e)}function A(e,t){return Buffer.from(e._encode(t))}function O(e,t,r){if(!v(e))throw new TypeError(p);if(!w(t))throw new TypeError(f);if(void 0!==r&&!v(r))throw new TypeError(g);const n=S(t),o=S(e);let a,s;i(e,t,function(e){const t=S(e),r=l.mul(t);return!r.isInfinity()&&0!==(a=r.x.umod(u)).isZero()&&0!==(s=t.invm(u).mul(o.add(n.mul(a))).umod(u)).isZero()},w,r),s.cmp(c)>0&&(s=u.sub(s));const h=Buffer.allocUnsafe(64);return x(a).copy(h,0),x(s).copy(h,32),h}e.exports={isPoint:y,isPointCompressed:function(e){return!!y(e)&&_(e)},isPrivate:w,pointAdd:function(e,t,r){if(!y(e))throw new TypeError(h);if(!y(t))throw new TypeError(h);const n=E(e),i=E(t),o=n.add(i);return o.isInfinity()?null:A(o,k(r,e))},pointAddScalar:function(e,t,r){if(!y(e))throw new TypeError(h);if(!b(t))throw new TypeError(d);const n=k(r,e),i=E(e);if(0===t.compare(o))return A(i,n);const a=S(t),s=l.mul(a),u=i.add(s);return u.isInfinity()?null:A(u,n)},pointCompress:function(e,t){if(!y(e))throw new TypeError(h);const r=E(e);if(r.isInfinity())throw new TypeError(h);return A(r,t)},pointFromScalar:function(e,t){if(!w(e))throw new TypeError(f);const r=S(e),n=l.mul(r);return n.isInfinity()?null:A(n,k(t))},pointMultiply:function(e,t,r){if(!y(e))throw new TypeError(h);if(!b(t))throw new TypeError(d);const n=k(r,e),i=E(e),o=S(t),a=i.mul(o);return a.isInfinity()?null:A(a,n)},privateAdd:function(e,t){if(!w(e))throw new TypeError(f);if(!b(t))throw new TypeError(d);const r=S(e),n=S(t),i=x(r.add(n).umod(u));return w(i)?i:null},privateSub:function(e,t){if(!w(e))throw new TypeError(f);if(!b(t))throw new TypeError(d);const r=S(e),n=S(t),i=x(r.sub(n).umod(u));return w(i)?i:null},sign:function(e,t){return O(e,t)},signWithEntropy:function(e,t,r){return O(e,t,r)},verify:function(e,t,r){if(!v(e))throw new TypeError(p);if(!y(t))throw new TypeError(h);if(!function(e){const t=e.slice(0,32),r=e.slice(32,64);return Buffer.isBuffer(e)&&64===e.length&&t.compare(a)<0&&r.compare(a)<0}(r))throw new TypeError(m);const n=E(t),i=S(r.slice(0,32)),o=S(r.slice(32,64));if(i.gtn(0)<=0)return!1;if(o.gtn(0)<=0)return!1;const s=S(e),c=o.invm(u),f=s.mul(c).umod(u),d=i.mul(c).umod(u),g=l.mulAdd(f,n,d);return!g.isInfinity()&&g.x.umod(u).eq(i)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s;for(t.const=r(151),a=0,s=(i=[r(259),r(611)]).length;a1)for(var r=1;ro||e<0?(t=Math.abs(e)%o,e<0?o-t:t):e},t.scrub_buffer=function(e){var t,r;for(r=e.length>>2,t=0;ti;t=0<=i?++n:--n)r.writeUInt8(e.readUInt8(t),t);return r},t.scrub_vec=function(e){var t,r,n;for(t=r=0,n=e.length;0<=n?rn;t=0<=n?++r:--r)e[t]=0;return!1},t.default_delay=n=function(t,r,n){var o,a;o=i.findDeferral(arguments),function(t){null!=e?function(t){a=new i.Deferrals(t,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/util.iced"}),e(a.defer({lineno:45})),a._fulfill()}(t):function(e){a=new i.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/util.iced"}),setTimeout(a.defer({lineno:47}),1),a._fulfill()}(t)}(function(){return n()})},t.buffer_cmp_ule=function(e,t){var r,n,i,o,a,s;for(i=o=0,r=e.length,n=t.length;in-o)return 1;if(n-o>r-i)return-1;for(;i0))return e();d=Math.min(h,f),v(l,l+d),o(l),_=new i.Deferrals(function(){return r(l+=d)},{parent:y,filename:"/Users/max/src/keybase/triplesec/src/util.iced",funcname:"bulk"}),u(l,g,_.defer({lineno:105})),_._fulfill()})(e)}(function(){return o(g),m=c(),a(m)})}}).call(this)}).call(this,r(0).Buffer,r(66).setImmediate)},function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bitcoin={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},t.regtest={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bcrt",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239},t.testnet={messagePrefix:"Bitcoin Signed Message:\n",bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239}},function(e,t,r){"use strict";e.exports={bitcoin:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},regtest:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"bcrt",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239},testnet:{messagePrefix:"Bitcoin Signed Message:\n",bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239}}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(529)),i=r(38),o=r(39),a=r(32);t.BLOCKSTACK_HANDLER="blockstack",t.nextYear=function(){return new Date((new Date).setFullYear((new Date).getFullYear()+1))},t.nextMonth=function(){return new Date((new Date).setMonth((new Date).getMonth()+1))},t.nextHour=function(){return new Date((new Date).setHours((new Date).getHours()+1))},t.updateQueryStringParameter=function(e,t,r){const n=new RegExp(`([?&])${t}=.*?(&|$)`,"i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(n)?e.replace(n,`$1${t}=${r}$2`):`${e}${i}${t}=${r}`},t.isLaterVersion=function(e,t){void 0===e&&(e="0.0.0"),void 0===t&&(t="0.0.0");const r=e.split(".").map(e=>parseInt(e,10)),n=t.split(".").map(e=>parseInt(e,10));for(let i=0;i=e.length&&n.push(0),r[i]{const r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:3&r|8).toString(16)})},t.isSameOriginAbsoluteUrl=function(e,t){const r=n.default.parse(e),i=n.default.parse(t),o=0|parseInt(r.port||"0",10)||("https:"===r.protocol?443:80),a=0|parseInt(i.port||"0",10)||("https:"===i.protocol?443:80),s={scheme:r.protocol===i.protocol,hostname:r.hostname===i.hostname,port:o===a,absolute:(e.includes("http://")||e.includes("https://"))&&(t.includes("http://")||t.includes("https://"))};return s.scheme&&s.hostname&&s.port&&s.absolute},t.checkWindowAPI=function(e,t){if("undefined"==typeof window||!window[t]){const r=`\`${e}\` uses the \`window.${t}\` API which is `+" not available in the current environment.";throw a.Logger.error(r),new Error(r)}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(190));t.default=i,function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(190))},function(e,t,r){"use strict";(function(t,n){var i=65536,o=4294967295;var Buffer=r(2).Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>o)throw new RangeError("requested too many random bytes");var r=Buffer.allocUnsafe(e);if(e>0)if(e>i)for(var s=0;s=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t;return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";const n=r(5),i=Math.pow(2,31)-1;function o(e){return n.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}o.toJSON=function(){return"BIP32 derivation path"};const a=21e14;const s=n.quacksLike("Point"),u=n.compile({messagePrefix:n.oneOf(n.Buffer,n.String),bip32:{public:n.UInt32,private:n.UInt32},pubKeyHash:n.UInt8,scriptHash:n.UInt8,wif:n.UInt8}),c={BIP32Path:o,Buffer256bit:n.BufferN(32),ECPoint:s,Hash160bit:n.BufferN(20),Hash256bit:n.BufferN(32),Network:u,Satoshi:function(e){return n.UInt53(e)&&e<=a},UInt31:function(e){return n.UInt32(e)&&e<=i}};for(var l in n)c[l]=n[l];e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODES={MISSING_PARAMETER:"missing_parameter",REMOTE_SERVICE_ERROR:"remote_service_error",INVALID_STATE:"invalid_state",NO_SESSION_DATA:"no_session_data",UNKNOWN:"unknown"},Object.freeze(t.ERROR_CODES);class n extends Error{constructor(e){super(e.message),this.message=e.message,this.code=e.code,this.parameter=e.parameter?e.parameter:null}toString(){return`${super.toString()}\n code: ${this.code} param: ${this.parameter?this.parameter:"n/a"}`}}t.BlockstackError=n;t.FileNotFound=class extends n{constructor(e){super({message:e,code:"file_not_found"}),this.name="FileNotFound"}};t.InvalidParameterError=class extends n{constructor(e,t=""){super({code:"missing_parameter",message:t,parameter:""}),this.name="MissingParametersError"}};t.MissingParameterError=class extends n{constructor(e,r=""){super({code:t.ERROR_CODES.MISSING_PARAMETER,message:r,parameter:e}),this.name="MissingParametersError"}};t.RemoteServiceError=class extends n{constructor(e,r=""){super({code:t.ERROR_CODES.REMOTE_SERVICE_ERROR,message:r}),this.response=e}};t.InvalidDIDError=class extends n{constructor(e=""){super({code:"invalid_did_error",message:e}),this.name="InvalidDIDError"}};t.NotEnoughFundsError=class extends n{constructor(e){const t=`Not enough UTXOs to fund. Left to fund: ${e}`;super({code:"not_enough_error",message:t}),this.leftToFund=e,this.name="NotEnoughFundsError",this.message=t}};t.InvalidAmountError=class extends n{constructor(e,t){const r=`Not enough coin to fund fees transaction fees. Fees would be ${e},`+` specified spend is ${t}`;super({code:"invalid_amount_error",message:r}),this.specifiedAmount=t,this.fees=e,this.name="InvalidAmountError",this.message=r}};t.LoginFailedError=class extends n{constructor(e){const t=`Failed to login: ${e}`;super({code:"login_failed",message:t}),this.message=t,this.name="LoginFailedError"}};t.SignatureVerificationError=class extends n{constructor(e){const t=`Failed to verify signature: ${e}`;super({code:"signature_verification_failure",message:t}),this.message=t,this.name="SignatureVerificationError"}};t.InvalidStateError=class extends n{constructor(e){super({code:t.ERROR_CODES.INVALID_STATE,message:e}),this.message=e,this.name="InvalidStateError"}};t.NoSessionDataError=class extends n{constructor(e){super({code:t.ERROR_CODES.INVALID_STATE,message:e}),this.message=e,this.name="NoSessionDataError"}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(39),i=["debug","info","warn","error","none"],o={},a={};for(let e=0;e0?ls;u=l+=f)this._doProcessBlock(n,u);c=n.splice(0,s),t.sigBytes-=o}return new a(c,o)},e.prototype.copy_to=function(e){return e._data=this._data.clone(),e._nDataBytes=this._nDataBytes},e.prototype.clone=function(){var t;return t=new e,this.copy_to(t),t},e}(),i=function(e){function t(){t.__super__.constructor.call(this)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.prototype.reset=function(){return t.__super__.reset.call(this),this._doReset(),this},t.prototype.update=function(e){return this._append(e),this._process(),this},t.prototype.finalize=function(e){return e&&this._append(e),this._doFinalize()},t.prototype.bufhash=function(e){var t,r,n;return r=a.from_buffer(e),t=(n=this.finalize(r)).to_buffer(),r.scrub(),n.scrub(),t},t}(),t.BlockCipher=e=function(){function e(e){}return e.prototype.encryptBlock=function(e,t){},e}(),o=function(){function e(){}return e.prototype.encryptBlock=function(e,t){var r,n;return null==t&&(t=0),n=this.get_pad(),r=Math.min(e.words.length-t,this.bsiw),e.xor(n,{dst_offset:t,n_words:r}),n.scrub(),this.bsiw},e.prototype.encrypt=function(e){var t,r,n,i;for(t=r=0,n=e.words.length,i=this.bsiw;i>0?rn;t=r+=i)this.encryptBlock(e,t);return e},e.prototype.bulk_encrypt=function(e,t){var r,n,i,o,a,u;return n=e.input,i=e.progress_hook,a=e.what,o={update:(u=this,function(e,t){var r,i,o,a;for(a=[],r=i=e,o=u.bsiw;o>0?it;r=i+=o)a.push(u.encryptBlock(n,r));return a}),finalize:function(){return n},default_n:1024*this.bsiw},r={progress_hook:i,cb:t,what:a},s.bulk(n.sigBytes,o,r)},e}(),t.BlockCipher=e,t.Hasher=i,t.BufferedBlockAlgorithm=n,t.StreamCipher=o}).call(this)},function(e,t,r){"use strict";(function(e){r.d(t,"b",function(){return _});var n=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}var o=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"==typeof r?r():r)||{}},a={namespaced:{configurable:!0}};a.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(e,t){this._children[e]=t},o.prototype.removeChild=function(e){delete this._children[e]},o.prototype.getChild=function(e){return this._children[e]},o.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},o.prototype.forEachChild=function(e){i(this._children,e)},o.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},o.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},o.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(o.prototype,a);var s=function(e){this.register([],e,!1)};s.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},s.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")},"")},s.prototype.update=function(e){!function e(t,r,n){0;r.update(n);if(n.modules)for(var i in n.modules){if(!r.getChild(i))return void 0;e(t.concat(i),r.getChild(i),n.modules[i])}}([],this.root,e)},s.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var a=new o(t,r);0===e.length?this.root=a:this.get(e.slice(0,-1)).addChild(e[e.length-1],a);t.modules&&i(t.modules,function(t,i){n.register(e.concat(i),t,r)})},s.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];t.getChild(r).runtime&&t.removeChild(r)};var u;var c=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&v(window.Vue);var r=e.plugins;void 0===r&&(r=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u;var o=this,a=this.dispatch,c=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,r){return c.call(o,e,t,r)},this.strict=i;var l=this._modules.root.state;p(this,l,[],this._modules.root),d(this,l),r.forEach(function(e){return e(t)}),(void 0!==e.devtools?e.devtools:u.config.devtools)&&function(e){n&&(e._devtoolHook=n,n.emit("vuex:init",e),n.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(e,t){n.emit("vuex:mutation",e,t)}))}(this)},l={state:{configurable:!0}};function f(e,t){return t.indexOf(e)<0&&t.push(e),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;p(e,r,[],e._modules.root,!0),d(e,r,t)}function d(e,t,r){var n=e._vm;e.getters={};var o=e._wrappedGetters,a={};i(o,function(t,r){a[r]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})});var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:a}),u.config.silent=s,e.strict&&function(e){e._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(e),n&&(r&&e._withCommit(function(){n._data.$$state=null}),u.nextTick(function(){return n.$destroy()}))}function p(e,t,r,n,i){var o=!r.length,a=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[a]=n),!o&&!i){var s=m(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit(function(){u.set(s,c,n.state)})}var l=n.context=function(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var o=g(r,n,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=t+u),e.dispatch(u,a)},commit:n?e.commit:function(r,n,i){var o=g(r,n,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=t+u),e.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){var r={},n=t.length;return Object.keys(e.getters).forEach(function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}}),r}(e,t)}},state:{get:function(){return m(e.state,r)}}}),i}(e,a,r);n.forEachMutation(function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push(function(t){r.call(e,n.state,t)})}(e,a+r,t,l)}),n.forEachAction(function(t,r){var n=t.root?r:a+r,i=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push(function(t,i){var o,a=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t,i);return(o=a)&&"function"==typeof o.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):a})}(e,n,i,l)}),n.forEachGetter(function(t,r){!function(e,t,r,n){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)}}(e,a+r,t,l)}),n.forEachChild(function(n,o){p(e,t,r.concat(o),n,i)})}function m(e,t){return t.length?t.reduce(function(e,t){return e[t]},e):e}function g(e,t,r){var n;return null!==(n=e)&&"object"==typeof n&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}function v(e){u&&e===u|| /** * vuex v3.1.1 * (c) 2019 Evan You * @license MIT */ -function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,t.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u=e)}l.state.get=function(){return this._vm._data.$$state},l.state.set=function(e){0},c.prototype.commit=function(e,t,r){var n=this,i=g(e,t,r),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(e){e(a)})}),this._subscribers.forEach(function(e){return e(s,n.state)}))},c.prototype.dispatch=function(e,t){var r=this,n=g(e,t),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter(function(e){return e.before}).forEach(function(e){return e.before(a,r.state)})}catch(e){0}return(s.length>1?Promise.all(s.map(function(e){return e(o)})):s[0](o)).then(function(e){try{r._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(a,r.state)})}catch(e){0}return e})}},c.prototype.subscribe=function(e){return f(e,this._subscribers)},c.prototype.subscribeAction=function(e){return f("function"==typeof e?{before:e}:e,this._actionSubscribers)},c.prototype.watch=function(e,t,r){var n=this;return this._watcherVM.$watch(function(){return e(n.state,n.getters)},t,r)},c.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})},c.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),p(this,this.state,e,this._modules.get(e),r.preserveState),d(this,this.state)},c.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var r=m(t.state,e.slice(0,-1));u.delete(r,e[e.length-1])}),h(this)},c.prototype.hotUpdate=function(e){this._modules.update(e),h(this,!0)},c.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(c.prototype,l);var b=S(function(e,t){var r={};return k(t).forEach(function(t){var n=t.key,i=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=x(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof i?i.call(this,t,r):t[i]},r[n].vuex=!0}),r}),y=S(function(e,t){var r={};return k(t).forEach(function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=x(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}}),r}),_=S(function(e,t){var r={};return k(t).forEach(function(t){var n=t.key,i=t.val;i=e+i,r[n]=function(){if(!e||x(this.$store,"mapGetters",e))return this.$store.getters[i]},r[n].vuex=!0}),r}),w=S(function(e,t){var r={};return k(t).forEach(function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=x(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}}),r});function k(e){return Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}})}function S(e){return function(t,r){return"string"!=typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function x(e,t,r){return e._modulesNamespaceMap[r]}var E={Store:c,install:v,version:"3.1.1",mapState:b,mapMutations:y,mapGetters:_,mapActions:w,createNamespacedHelpers:function(e){return{mapState:b.bind(null,e),mapGetters:_.bind(null,e),mapMutations:y.bind(null,e),mapActions:w.bind(null,e)}}};t.a=E}).call(this,r(9))},function(e,t,r){"use strict";var n=r(21),i=r(323);e.exports=i(function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()})},function(e,t,r){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5),i=Math.pow(2,31)-1;function o(e){return n.String(e)&&!!e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}t.UInt31=function(e){return n.UInt32(e)&&e<=i},t.BIP32Path=o,o.toJSON=()=>"BIP32 derivation path";const a=21e14;t.Satoshi=function(e){return n.UInt53(e)&&e<=a},t.ECPoint=n.quacksLike("Point"),t.Network=n.compile({messagePrefix:n.oneOf(n.Buffer,n.String),bip32:{public:n.UInt32,private:n.UInt32},pubKeyHash:n.UInt8,scriptHash:n.UInt8,wif:n.UInt8}),t.Buffer256bit=n.BufferN(32),t.Hash160bit=n.BufferN(20),t.Hash256bit=n.BufferN(32),t.Number=n.Number,t.Array=n.Array,t.Boolean=n.Boolean,t.String=n.String,t.Buffer=n.Buffer,t.Hex=n.Hex,t.maybe=n.maybe,t.tuple=n.tuple,t.UInt8=n.UInt8,t.UInt32=n.UInt32,t.Function=n.Function,t.BufferN=n.BufferN,t.Null=n.Null,t.oneOf=n.oneOf},function(e,t,r){"use strict";const n=r(8);e.exports={Block:r(501),ECPair:r(223),Transaction:r(136),TransactionBuilder:r(503),address:r(224),bip32:r(227),crypto:r(43),networks:r(25),opcodes:r(10),payments:r(137),script:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={network:r(228).network.defaults.MAINNET_DEFAULT,logLevel:"debug"};t.config=n},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(82).Transform,i=r(85).StringDecoder;function o(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(o,n),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=Buffer.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||Buffer.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21);function i(e){try{return n("rmd160").update(e).digest()}catch(t){return n("ripemd160").update(e).digest()}}function o(e){return n("sha256").update(e).digest()}t.ripemd160=i,t.sha1=function(e){return n("sha1").update(e).digest()},t.sha256=o,t.hash160=function(e){return i(o(e))},t.hash256=function(e){return o(o(e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(380);Object.defineProperty(t,"TokenSigner",{enumerable:!0,get:function(){return n.TokenSigner}}),Object.defineProperty(t,"createUnsecuredToken",{enumerable:!0,get:function(){return n.createUnsecuredToken}});var i=r(498);Object.defineProperty(t,"TokenVerifier",{enumerable:!0,get:function(){return i.TokenVerifier}});var o=r(499);Object.defineProperty(t,"decodeToken",{enumerable:!0,get:function(){return o.decodeToken}});var a=r(98);Object.defineProperty(t,"MissingParametersError",{enumerable:!0,get:function(){return a.MissingParametersError}}),Object.defineProperty(t,"InvalidTokenError",{enumerable:!0,get:function(){return a.InvalidTokenError}});var s=r(127);Object.defineProperty(t,"SECP256K1Client",{enumerable:!0,get:function(){return s.SECP256K1Client}}),Object.defineProperty(t,"cryptoClients",{enumerable:!0,get:function(){return s.cryptoClients}})},function(e,t,r){"use strict";const n=r(21);function i(e){try{return n("rmd160").update(e).digest()}catch(t){return n("ripemd160").update(e).digest()}}function o(e){return n("sha256").update(e).digest()}e.exports={hash160:function(e){return i(o(e))},hash256:function(e){return o(o(e))},ripemd160:i,sha1:function(e){return n("sha1").update(e).digest()},sha256:o}},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(38),n=r(42),i=r(26);function o(t,r){const o=n.decodeToken(t),a=o.payload;if(!a.hasOwnProperty("subject"))throw new Error("Token doesn't have a subject");if(!a.subject.hasOwnProperty("publicKey"))throw new Error("Token doesn't have a subject public key");if(!a.hasOwnProperty("issuer"))throw new Error("Token doesn't have an issuer");if(!a.issuer.hasOwnProperty("publicKey"))throw new Error("Token doesn't have an issuer public key");if(!a.hasOwnProperty("claim"))throw new Error("Token doesn't have a claim");const s=a.issuer.publicKey,u=Buffer.from(s,"hex"),c=e.ECPair.fromPublicKey(u,{compressed:!0}),l=i.ecPairToAddress(c),f=e.ECPair.fromPublicKey(u,{compressed:!1}),h=i.ecPairToAddress(f);if(r===s);else if(r===l);else if(r!==h)throw new Error("Token issuer public key does not match the verifying value");const d=new n.TokenVerifier(o.header.alg,s);if(!d)throw new Error("Invalid token verifier");if(!d.verify(t))throw new Error("Token verification failed");return o}t.signProfileToken=function(e,t,r,o,a="ES256K",s=new Date,u=i.nextYear()){if("ES256K"!==a)throw new Error("Signing algorithm not supported");const c=n.SECP256K1Client.derivePublicKey(t);r||(r={publicKey:c}),o||(o={publicKey:c});const l=new n.TokenSigner(a,t),f={jti:i.makeUUID4(),iat:s.toISOString(),exp:u.toISOString(),subject:r,issuer:o,claim:e};return l.sign(f)},t.wrapProfileToken=function(e){return{token:e,decodedToken:n.decodeToken(e)}},t.verifyProfileToken=o,t.extractProfile=function(e,t=null){let r,i={};(r=t?o(e,t):n.decodeToken(e)).hasOwnProperty("payload")&&r.payload.hasOwnProperty("claim")&&(i=r.payload.claim);return i}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer=void 0!==Buffer,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var e=new ArrayBuffer(0);try{t.blob=0===new Blob([e],{type:"application/zip"}).size}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(e),t.blob=0===n.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!r(271).Readable}catch(e){t.nodestream=!1}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(e[n]=r[n])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;ovoid 0!==t?t:t=e()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";e.exports={prop:function(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){let e=r.call(this);return this[t]=e,e},set:function(e){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:e,writable:!0})}})},value:function(e){let t;return function(){return void 0!==t?t:t=e()}}}},function(e,t,r){"use strict";var n=e.exports;[r(551),r(555),r(556),r(557),r(558),r(559)].forEach(function(e){Object.keys(e).forEach(function(t){n[t]=e[t].bind(n)})})},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;u=r(13),o=u.X64Word,a=u.X64WordArray,n=r(33).Hasher,e=function(){function e(){this.K=this.convert([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]),this.I=new a(this.convert([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])),this.W=function(){var e,t;for(t=[],e=0;e<80;++e)t.push(new o(0,0));return t}()}return e.convert=function(e){var t,r,n,i;for(i=[],t=r=0,n=e.length;r>>1|(te=Q.low)<<31)^(ee>>>8|te<<24)^ee>>>7,J=(te>>>1|ee<<31)^(te>>>8|ee<<24)^(te>>>7|ee<<25),re=((oe=(ie=C[fe-2]).high)>>>19|(ae=ie.low)<<13)^(oe<<3|ae>>>29)^oe>>>6,ne=(ae>>>19|oe<<13)^(ae<<3|oe>>>29)^(ae>>>6|oe<<26),B=(B=(B=X+(D=C[fe-7]).high+((N=J+D.low)>>>0>>0?1:0))+re+((N+=ne)>>>0>>0?1:0))+(I=C[fe-16]).high+((N+=M=I.low)>>>0>>0?1:0),j.high=B,j.low=N),L=W&Z^~W&se,q=G&Y^~G&ue,he=z&F^z&$^F&$,de=R&U^R&H^U&H,pe=(z>>>28|R<<4)^(z<<30|R>>>2)^(z<<25|R>>>7),me=(R>>>28|z<<4)^(R<<30|z>>>2)^(R<<25|z>>>7),ge=ce+((W>>>14|G<<18)^(W>>>18|G<<14)^(W<<23|G>>>9))+((ve=le+((G>>>14|W<<18)^(G>>>18|W<<14)^(G<<23|W>>>9)))>>>0>>0?1:0),ce=se,le=ue,se=Z,ue=Y,Z=W,Y=G,W=V+(ge=(ge=(ge=ge+L+((ve+=q)>>>0>>0?1:0))+(P=s.K[fe]).high+((ve+=T=P.low)>>>0>>0?1:0))+B+((ve+=N)>>>0>>0?1:0))+((G=K+ve|0)>>>0>>0?1:0)|0,V=$,K=H,$=F,H=U,F=z,U=R,z=ge+(pe+he+((be=me+de)>>>0>>0?1:0))+((R=ve+be|0)>>>0>>0?1:0)|0;return o=n.low=o+R,n.high=i+z+(o>>>0>>0?1:0),c=a.low=c+U,a.high=u+F+(c>>>0>>0?1:0),h=l.low=h+H,l.high=f+$+(h>>>0>>0?1:0),m=d.low=m+K,d.high=p+V+(m>>>0>>0?1:0),b=g.low=b+G,g.high=v+W+(b>>>0>>0?1:0),w=y.low=w+Y,y.high=_+Z+(w>>>0>>0?1:0),x=k.low=x+ue,k.high=S+se+(x>>>0>>0?1:0),O=E.low=O+le,E.high=A+ce+(O>>>0>>0?1:0)},t.prototype._doFinalize=function(){var e,t,r;return e=this._data.words,r=8*this._nDataBytes,e[(t=8*this._data.sigBytes)>>>5]|=128<<24-t%32,e[30+(t+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(t+128>>>10<<5)]=r,this._data.sigBytes=4*e.length,this._process(),this._hash.toX32()},t.prototype.copy_to=function(e){return t.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(),t.transform=function(e){var t;return t=(new i).finalize(e),e.scrub(),t}}).call(this)},function(e,t,r){"use strict";var Buffer=r(2).Buffer;function n(e,t){this._block=Buffer.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=Buffer.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t,r){"use strict";for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",i={},o=0;o>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function u(e){for(var t=1,r=0;r126)throw new Error("Invalid prefix ("+e+")");t=s(t)^n>>5}for(t=s(t),r=0;r=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<=t)throw new Error("Excess padding");if(i<t)throw new TypeError("Exceeds length limit");var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)throw new Error("Mixed-case string "+e);var o=(e=r).lastIndexOf("1");if(-1===o)throw new Error("No separator character for "+e);if(0===o)throw new Error("Missing prefix for "+e);var a=e.slice(0,o),c=e.slice(o+1);if(c.length<6)throw new Error("Data too short");for(var l=u(a),f=[],h=0;h=c.length||f.push(p)}if(1!==l)throw new Error("Invalid checksum for "+e);return{prefix:a,words:f}},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");for(var i=u(e=e.toLowerCase()),o=e+"1",a=0;a>5!=0)throw new Error("Non 5-bit word");i=s(i)^c,o+=n.charAt(c)}for(a=0;a<6;++a)i=s(i);for(i^=1,a=0;a<6;++a){var l=i>>5*(5-a)&31;o+=n.charAt(l)}return o},toWords:function(e){return c(e,8,5,!0)},fromWords:function(e){return c(e,5,8,!1)}}},function(e,t,r){"use strict";e.exports=r(381).default,e.exports.default=e.exports},function(e,t,r){"use strict";const n=t;n.bignum=r(7),n.define=r(428).define,n.base=r(75),n.constants=r(210),n.decoders=r(432),n.encoders=r(434)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(14),n=r(38);function i(t){return t||(t=32),e.randomBytes(t)}t.getEntropy=i,t.makeECPrivateKey=function(){return n.ECPair.makeRandom({rng:i}).privateKey.toString("hex")},t.publicKeyToAddress=function(e){const t=Buffer.from(e,"hex"),r=n.crypto.hash160(t);return n.address.toBase58Check(r,0)},t.getPublicKeyFromPrivate=function(e){return n.ECPair.fromPrivateKey(Buffer.from(e,"hex")).publicKey.toString("hex")}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(126);const n=r(252);t.Service=class{static validateProof(e,t,r=null){let i;return Promise.resolve().then(()=>(i=this.getProofUrl(e),fetch(i))).then(e=>{if(200!==e.status)throw new Error(`Proof url ${i} returned unexpected http status ${e.status}.\n Unable to validate proof.`);return e.text()}).then(i=>{if(this.shouldValidateIdentityInBody()&&e.identifier!==this.getProofIdentity(i))return e;const o=this.getProofStatement(i);return e.valid=n.containsValidProofStatement(o,r)||n.containsValidAddressProofStatement(o,t),e}).catch(t=>(console.error(t),e.valid=!1,e))}static getBaseUrls(){return[]}static getProofIdentity(e){return e}static getProofStatement(e){return e}static shouldValidateIdentityInBody(){return!1}static prefixScheme(e){return e.startsWith("https://")||e.startsWith("http://")?e.startsWith("http://")?e.replace("http://","https://"):e:`https://${e}`}static getProofUrl(e){const t=this.getBaseUrls();let r=e.proof_url.toLowerCase();r=this.prefixScheme(r);for(let n=0;nthis.hasherBlockSizeBytes&&(this.key=this.hasher.finalize(this.key)),this.key.clamp(),this._oKey=this.key.clone(),this._iKey=this.key.clone(),r=n=0,o=this.hasherBlockSize;0<=o?no;r=0<=o?++n:--n)this._oKey.words[r]^=1549556828,this._iKey.words[r]^=909522486;this._oKey.sigBytes=this._iKey.sigBytes=this.hasherBlockSizeBytes,this.reset()}return e.outputSize=64,e.prototype.outputSize=e.outputSize,e.prototype.get_output_size=function(){return this.hasher.output_size},e.prototype.reset=function(){return this.hasher.reset().update(this._iKey)},e.prototype.update=function(e){return this.hasher.update(e),this},e.prototype.finalize=function(e){var t,r,n;return t=this.hasher.finalize(e),this.hasher.reset(),r=this._oKey.clone().concat(t),n=this.hasher.finalize(r),t.scrub(),r.scrub(),n},e.prototype.scrub=function(){return this.key.scrub(),this._iKey.scrub(),this._oKey.scrub()},e}(),s=function(t){var r,n,i,o,a;return o=t.key,i=t.input,n=t.hash_class,a=(r=new e(o,n)).finalize(i.clamp()),r.scrub(),a},o=function(t,r){var n,i,o,s,c,l,f,h,d,p;d=a.findDeferral(arguments),o=t.key,i=t.input,c=t.progress_hook,s=t.klass,h=t.what,s||(s=e),h||(h="hmac_sha512"),n=new s(o),i.clamp(),f={update:function(e,t){return n.update(i.slice(e,t))},finalize:function(){return n.finalize()},default_n:1e3*n.hasherBlockSize},function(e){p=new a.Deferrals(e,{parent:d,filename:"/Users/max/src/keybase/triplesec/src/hmac.iced"}),u.bulk(i.sigBytes,f,{what:h,progress_hook:c,cb:p.defer({assign_fn:function(){return l=arguments[0]},lineno:137})}),p._fulfill()}(function(){return n.scrub(),r(l)})},t.HMAC_SHA256=function(t){function r(e){r.__super__.constructor.call(this,e,n)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r}(),t.HMAC=e,t.sign=s,t.bulk_sign=o}).call(this)},function(e,t,r){"use strict";for(var n=r(11),i=r(45),o=r(109),a=r(23),s=new Array(256),u=0;u<256;u++)s[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;s[254]=s[254]=1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}t.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,a,s=e.length,u=0;for(o=0;o>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t}(e)},t.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,a=e.length,u=new Array(2*a);for(r=0,t=0;t4)u[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&t1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return u.length!==r&&(u.subarray?u=u.subarray(0,r):u.length=r),n.applyFromCharCode(u)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(c,a),c.prototype.processChunk=function(e){var r=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=r;(r=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),r.set(o,this.leftOver.length)}else r=this.leftOver.concat(r);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+s[e[r]]>t?r:t}(r),u=r;a!==r.length&&(i.uint8array?(u=r.subarray(0,a),this.leftOver=r.subarray(a,r.length)):(u=r.slice(0,a),this.leftOver=r.slice(a,r.length))),this.push({data:t.utf8decode(u),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=c,n.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=l},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(21),n=r(86),i=r(28),o=r(176);let a=o._default;const s="Invalid mnemonic",u="Invalid entropy",c="Invalid mnemonic checksum",l="A wordlist is required but a default could not be found.\nPlease explicitly pass a 2048 word array explicitly.";function f(e,t,r){for(;e.lengthf(e.toString(2),"0",8)).join("")}function p(t){const r=8*t.length/32;return d([...e("sha256").update(t).digest()]).slice(0,r)}function m(e){return"mnemonic"+(e||"")}function g(e,t){if(!(t=t||a))throw new Error(l);const r=(e||"").normalize("NFKD").split(" ");if(r.length%3!=0)throw new Error(s);const n=r.map(e=>{const r=t.indexOf(e);if(-1===r)throw new Error(s);return f(r.toString(2),"0",11)}).join(""),i=32*Math.floor(n.length/33),o=n.slice(0,i),d=n.slice(i),m=o.match(/(.{1,8})/g).map(h);if(m.length<16)throw new Error(u);if(m.length>32)throw new Error(u);if(m.length%4!=0)throw new Error(u);const g=Buffer.from(m);if(p(g)!==d)throw new Error(c);return g.toString("hex")}function v(e,t){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"hex")),!(t=t||a))throw new Error(l);if(e.length<16)throw new TypeError(u);if(e.length>32)throw new TypeError(u);if(e.length%4!=0)throw new TypeError(u);const r=(d([...e])+p(e)).match(/(.{1,11})/g).map(e=>{const r=h(e);return t[r]});return"あいこくしん"===t[0]?r.join(" "):r.join(" ")}t.mnemonicToSeedSync=function(e,t){const r=Buffer.from((e||"").normalize("NFKD"),"utf8"),i=Buffer.from(m((t||"").normalize("NFKD")),"utf8");return n.pbkdf2Sync(r,i,2048,64,"sha512")},t.mnemonicToSeed=function(e,t){return new Promise((r,i)=>{try{const o=Buffer.from((e||"").normalize("NFKD"),"utf8"),a=Buffer.from(m((t||"").normalize("NFKD")),"utf8");n.pbkdf2(o,a,2048,64,"sha512",(e,t)=>e?i(e):r(t))}catch(e){return i(e)}})},t.mnemonicToEntropy=g,t.entropyToMnemonic=v,t.generateMnemonic=function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(u);return v((t=t||i)(e/8),r)},t.validateMnemonic=function(e,t){try{g(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){const t=o.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');a=t},t.getDefaultWordlist=function(){if(!a)throw new Error("No Default Wordlist set");return Object.keys(o.wordlists).filter(e=>"JA"!==e&&"EN"!==e&&o.wordlists[e].every((e,t)=>e===a[t]))[0]};var b=r(176);t.wordlists=b.wordlists}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(320);t.fromSeed=n.fromSeed,t.fromBase58=n.fromBase58,t.fromPublicKey=n.fromPublicKey,t.fromPrivateKey=n.fromPrivateKey},function(e,t,r){"use strict";e.exports=r(629)},function(e,t,r){"use strict";(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(294),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(9))},function(e,t,r){"use strict";(function(Buffer){function e(e){return Object.prototype.toString.call(e)}t.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(t){return"[object RegExp]"===e(t)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(t){return"[object Date]"===e(t)},t.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=Buffer.isBuffer}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var Buffer=r(0).Buffer,n=r(3),i=r(165),o=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(e,t){return e<>>32-t}function p(e,t,r,n,i,o,a,s){return d(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return d(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return d(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return d(e+(t&n|r&~n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return d(e+(t^(r|~n))+o+a|0,s)+i|0}n(h,i),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,h=0|this._d,y=0|this._e,_=0|this._a,w=0|this._b,k=0|this._c,S=0|this._d,x=0|this._e,E=0;E<80;E+=1){var A,O;E<16?(A=p(r,n,i,h,y,e[a[E]],l[0],u[E]),O=b(_,w,k,S,x,e[s[E]],f[0],c[E])):E<32?(A=m(r,n,i,h,y,e[a[E]],l[1],u[E]),O=v(_,w,k,S,x,e[s[E]],f[1],c[E])):E<48?(A=g(r,n,i,h,y,e[a[E]],l[2],u[E]),O=g(_,w,k,S,x,e[s[E]],f[2],c[E])):E<64?(A=v(r,n,i,h,y,e[a[E]],l[3],u[E]),O=m(_,w,k,S,x,e[s[E]],f[3],c[E])):(A=b(r,n,i,h,y,e[a[E]],l[4],u[E]),O=p(_,w,k,S,x,e[s[E]],f[4],c[E])),r=y,y=h,h=d(i,10),i=n,n=A,_=x,x=S,S=d(k,10),k=w,w=O}var P=this._b+i+S|0;this._b=this._c+h+x|0,this._c=this._d+y+_|0,this._d=this._e+r+w|0,this._e=this._a+n+k|0,this._a=P},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer.alloc?Buffer.alloc(20):new Buffer(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){"use strict";var n=r(3),i=r(322),o=r(40),Buffer=r(2).Buffer,a=r(175),s=r(68),u=r(118),c=Buffer.alloc(128);function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=Buffer.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new s:u(e)).update(t).digest():t.length=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o)[^>]*$|#([\w\-]*)$)/;t.isHtml=function(e){if("<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3)return!0;var t=a.exec(e);return!(!t||!t[1])}},function(e,t,r){"use strict";e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(e,t,r){"use strict";(function(Buffer){(function(){var e,n,i,o,a,s,u,c,l,f,h,d,p,m={}.hasOwnProperty,g=function(e,t){for(var r in t)m.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};h=r(17),p=r(13),l=p.endian_reverse,u=p.WordArray,n=r(106).Counter,f=r(22).fixup_uint32,s=r(33).StreamCipher,d=r(22),c=function(e,t){var r,n,i,o;for(n=i=0,o=t.length;i>>25)+r|0)<<9|t>>>23)+h|0)<<13|t>>>19)+g|0)<<18|t>>>14,d^=(t=(n^=(t=(s^=(t=(v^=(t=d+n|0)<<7|t>>>25)+d|0)<<9|t>>>23)+v|0)<<13|t>>>19)+s|0)<<18|t>>>14,i^=(t=(p^=(t=(l^=(t=(u^=(t=i+p|0)<<7|t>>>25)+i|0)<<9|t>>>23)+u|0)<<13|t>>>19)+l|0)<<18|t>>>14,c^=(t=(o^=(t=(m^=(t=(f^=(t=c+o|0)<<7|t>>>25)+c|0)<<9|t>>>23)+f|0)<<13|t>>>19)+m|0)<<18|t>>>14,r^=(t=(f^=(t=(l^=(t=(n^=(t=r+f|0)<<7|t>>>25)+r|0)<<9|t>>>23)+n|0)<<13|t>>>19)+l|0)<<18|t>>>14,d^=(t=(h^=(t=(m^=(t=(p^=(t=d+h|0)<<7|t>>>25)+d|0)<<9|t>>>23)+p|0)<<13|t>>>19)+m|0)<<18|t>>>14,i^=(t=(v^=(t=(g^=(t=(o^=(t=i+v|0)<<7|t>>>25)+i|0)<<9|t>>>23)+o|0)<<13|t>>>19)+g|0)<<18|t>>>14,c^=(t=(u^=(t=(s^=(t=(a^=(t=c+u|0)<<7|t>>>25)+c|0)<<9|t>>>23)+a|0)<<13|t>>>19)+s|0)<<18|t>>>14;return[r,n,l,f,h,d,p,m,g,v,i,o,a,s,u,c]},e}(),i=function(e){function t(e,r){var n;if(t.__super__.constructor.call(this,20),this.key=e.clone().endian_reverse(),this.nonce=r.clone().endian_reverse(),(16!==this.key.sigBytes||8!==this.nonce.sigBytes)&&(32!==this.key.sigBytes||8!==(n=this.nonce.sigBytes)&&24!==n))throw new Error("Bad key/nonce lengths");24===this.nonce.sigBytes&&this.xsalsa_setup(),this.input=this.key_iv_setup(this.nonce,this.key),this._reset()}return g(t,o),t.prototype.sigma=u.from_buffer_le(new Buffer("expand 32-byte k")),t.prototype.tau=u.from_buffer_le(new Buffer("expand 16-byte k")),t.blockSize=64,t.prototype.blockSize=t.blockSize,t.keySize=32,t.prototype.keySize=t.keySize,t.ivSize=24,t.prototype.ivSize=t.ivSize,t.prototype.scrub=function(){return this.key.scrub(),this.nonce.scrub(),d.scrub_vec(this.input)},t.prototype.xsalsa_setup=function(){var e;return e=new u(this.nonce.words.slice(0,4)),this.nonce=new u(this.nonce.words.slice(4)),this.key=this.hsalsa20(e,this.key)},t.prototype.hsalsa20=function(e,t){var r,n,i,o;return(i=this.key_iv_setup(e,t))[8]=e.words[2],i[9]=e.words[3],o=this._core(i),n=[0,5,10,15,6,7,8,9],o=function(){var e,t,i;for(i=[],e=0,t=n.length;en;r=0<=n?++e:--e)t.push(this._generateBlock());return t}.call(this),o=(c=[]).concat.apply(c,t)),r=a=0,s=o.length;a0;)this._i===t&&(this._generateBlockBuffer(),this._i=0),r=Math.min(e,t-this._i),n.push(r===t?this._buf:this._buf.slice(this._i,this._i+r)),this._i+=r,e-=r;return Buffer.concat(n)},t.prototype._generateBlockBuffer=function(){var e,t,r,n,i;for(this._buf=new Buffer(this.blockSize),t=n=0,i=(r=this._generateBlock()).length;n0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=p(u,c);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";t.pbkdf2=r(311),t.pbkdf2Sync=r(174)},function(e,t,r){"use strict";var n=t;n.base=r(330),n.short=r(331),n.mont=r(332),n.edwards=r(333)},function(e,t,r){"use strict";(function(Buffer){var t=r(35);function n(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function i(e,t,r){var n=new Buffer(r?34:33);return n.writeUInt8(e,0),t.copy(n,1),r&&(n[33]=1),n}e.exports={decode:function(e,r){return n(t.decode(e),r)},decodeRaw:n,encode:function(e,r,n){return"number"==typeof e?t.encode(i(e,r,n)):t.encode(i(e.version,e.privateKey,e.compressed))},encodeRaw:i}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var Buffer=r(2).Buffer;e.exports={check:function(e){if(e.length<8)return!1;if(e.length>72)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-2)return!1;if(2!==e[2])return!1;var t=e[3];if(0===t)return!1;if(5+t>=e.length)return!1;if(2!==e[4+t])return!1;var r=e[5+t];return!(0===r||6+t+r!==e.length||128&e[4]||t>1&&0===e[4]&&!(128&e[5])||128&e[t+6]||r>1&&0===e[t+6]&&!(128&e[t+7]))},decode:function(e){if(e.length<8)throw new Error("DER sequence length is too short");if(e.length>72)throw new Error("DER sequence length is too long");if(48!==e[0])throw new Error("Expected DER sequence");if(e[1]!==e.length-2)throw new Error("DER sequence length is invalid");if(2!==e[2])throw new Error("Expected DER integer");var t=e[3];if(0===t)throw new Error("R length is zero");if(5+t>=e.length)throw new Error("R length is too long");if(2!==e[4+t])throw new Error("Expected DER integer (2)");var r=e[5+t];if(0===r)throw new Error("S length is zero");if(6+t+r!==e.length)throw new Error("S length is invalid");if(128&e[4])throw new Error("R value is negative");if(t>1&&0===e[4]&&!(128&e[5]))throw new Error("R value excessively padded");if(128&e[t+6])throw new Error("S value is negative");if(r>1&&0===e[t+6]&&!(128&e[t+7]))throw new Error("S value excessively padded");return{r:e.slice(4,4+t),s:e.slice(6+t)}},encode:function(e,t){var r=e.length,n=t.length;if(0===r)throw new Error("R length is zero");if(0===n)throw new Error("S length is zero");if(r>33)throw new Error("R length is too long");if(n>33)throw new Error("S length is too long");if(128&e[0])throw new Error("R value is negative");if(128&t[0])throw new Error("S value is negative");if(r>1&&0===e[0]&&!(128&e[1]))throw new Error("R value excessively padded");if(n>1&&0===t[0]&&!(128&t[1]))throw new Error("S value excessively padded");var i=Buffer.allocUnsafe(6+r+n);return i[0]=48,i[1]=i.length-2,i[2]=2,i[3]=e.length,e.copy(i,4),i[4+r]=2,i[5+r]=t.length,t.copy(i,6+r),i}}},function(e,t,r){"use strict";function n(e,t){if("number"!=typeof e)throw new Error("cannot write a non-number as a number");if(e<0)throw new Error("specified a negative value for writing an unsigned value");if(e>t)throw new Error("RangeError: value out of range");if(Math.floor(e)!==e)throw new Error("value has a fractional component")}Object.defineProperty(t,"__esModule",{value:!0}),t.readUInt64LE=function(e,t){const r=e.readUInt32LE(t);let i=e.readUInt32LE(t+4);return n((i*=4294967296)+r,9007199254740991),i+r},t.writeUInt64LE=function(e,t,r){return n(t,9007199254740991),e.writeInt32LE(-1&t,r),e.writeUInt32LE(Math.floor(t/4294967296),r+4),r+8},t.reverseBuffer=function(e){if(e.length<1)return e;let t=e.length-1,r=0;for(let n=0;nn||e%1!=0)throw new RangeError("value out of range")}function o(e){return i(e),e<253?1:e<=65535?3:e<=4294967295?5:9}e.exports={encode:function e(t,r,n){if(i(t),r||(r=Buffer.allocUnsafe(o(t))),!Buffer.isBuffer(r))throw new TypeError("buffer must be a Buffer instance");return n||(n=0),t<253?(r.writeUInt8(t,n),e.bytes=1):t<=65535?(r.writeUInt8(253,n),r.writeUInt16LE(t,n+1),e.bytes=3):t<=4294967295?(r.writeUInt8(254,n),r.writeUInt32LE(t,n+1),e.bytes=5):(r.writeUInt8(255,n),r.writeUInt32LE(t>>>0,n+1),r.writeUInt32LE(t/4294967296|0,n+5),e.bytes=9),r},decode:function e(t,r){if(!Buffer.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");r||(r=0);var n=t.readUInt8(r);if(n<253)return e.bytes=1,n;if(253===n)return e.bytes=3,t.readUInt16LE(r+1);if(254===n)return e.bytes=5,t.readUInt32LE(r+1);e.bytes=9;var o=t.readUInt32LE(r+1),a=4294967296*t.readUInt32LE(r+5)+o;return i(a),a},encodingLength:o}},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),r(126);const e=r(42),n=r(58),i=r(26),o=r(99),a=r(141),s=r(32),u=r(71),c=r(100),l="1.3.1";function f(e,t){const r=a.encryptECIES(e,t),n=JSON.stringify(r);return Buffer.from(n).toString("hex")}t.generateTransitKey=function(){return n.makeECPrivateKey()},t.makeAuthRequest=function(t,r,a,f=u.DEFAULT_SCOPE,h,d=i.nextMonth().getTime(),p={}){t||(t=(new c.UserSession).generateAndStoreTransitKey());const m=e=>{const t="undefined"!=typeof window&&window.location&&window.location.origin;if(!t){const t=`\`makeAuthRequest\` called without the \`${e}\` param specified but`+" the default value uses `window.location.origin` which is not available in this environment";throw s.Logger.error(t),new Error(t)}return t};r||(r=`${m("redirectURI")}/`),a||(a=`${m("manifestURI")}/manifest.json`),h||(h=m("appDomain"));const g=Object.assign({},p,{jti:i.makeUUID4(),iat:Math.floor((new Date).getTime()/1e3),exp:Math.floor(d/1e3),iss:null,public_keys:[],domain_name:h,manifest_uri:a,redirect_uri:r,version:l,do_not_include_profile:!0,supports_hub_url:!0,scopes:f});s.Logger.info(`blockstack.js: generating v${l} auth request`);const v=e.SECP256K1Client.derivePublicKey(t);g.public_keys=[v];const b=n.publicKeyToAddress(v);return g.iss=o.makeDIDFromAddress(b),new e.TokenSigner("ES256k",t).sign(g)},t.encryptPrivateKey=f,t.decryptPrivateKey=function(e,t){const r=Buffer.from(t,"hex").toString(),n=JSON.parse(r),i=a.decryptECIES(e,n);if("string"!=typeof i)throw new Error("Unable to correctly decrypt private key");return i},t.makeAuthResponse=function(t,r={},a=null,u,c=null,h=null,d=i.nextMonth().getTime(),p=null,m=null,g=null,v=null){const b=e.SECP256K1Client.derivePublicKey(t),y=n.publicKeyToAddress(b);let _=h,w=c,k={};null!=h?(s.Logger.info(`blockstack.js: generating v${l} auth response`),null!=p&&(_=f(p,h),null!=c&&(w=f(p,c))),k={email:u.email?u.email:null,profile_url:u.profileUrl?u.profileUrl:null,hubUrl:m,blockstackAPIUrl:g,associationToken:v,version:l}):s.Logger.info("blockstack.js: generating legacy auth response");const S=Object.assign({},{jti:i.makeUUID4(),iat:Math.floor((new Date).getTime()/1e3),exp:Math.floor(d/1e3),iss:o.makeDIDFromAddress(y),private_key:_,public_keys:[b],profile:r,username:a,core_token:w},k);return new e.TokenSigner("ES256k",t).sign(S)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var Buffer=r(2).Buffer;function n(e){Buffer.isBuffer(e)||(e=Buffer.from(e));for(var t=e.length/4|0,r=new Array(t),n=0;n>>24]^l[p>>>16&255]^f[m>>>8&255]^h[255&g]^t[v++],a=c[p>>>24]^l[m>>>16&255]^f[g>>>8&255]^h[255&d]^t[v++],s=c[m>>>24]^l[g>>>16&255]^f[d>>>8&255]^h[255&p]^t[v++],u=c[g>>>24]^l[d>>>16&255]^f[p>>>8&255]^h[255&m]^t[v++],d=o,p=a,m=s,g=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[v++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&d])^t[v++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^t[v++],u=(n[g>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[v++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var l=e[a],f=e[l],h=e[f],d=257*e[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*f^257*l^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=l^e[e[e[h^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=n(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,u=s.SBOX[u>>>24]<<24|s.SBOX[u>>>16&255]<<16|s.SBOX[u>>>8&255]<<8|s.SBOX[255&u],u^=a[o/t|0]<<24):t>6&&o%t==4&&(u=s.SBOX[u>>>24]<<24|s.SBOX[u>>>16&255]<<16|s.SBOX[u>>>8&255]<<8|s.SBOX[255&u]),i[o]=i[o-t]^u}for(var c=[],l=0;l>>24]]^s.INV_SUB_MIX[1][s.SBOX[h>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[h>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},u.prototype.encryptBlockRaw=function(e){return o(e=n(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=Buffer.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),i=Buffer.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},u.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=u},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(115);e.exports=function(e,t,r,i){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"binary")),t&&(Buffer.isBuffer(t)||(t=Buffer.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,a=Buffer.alloc(o),s=Buffer.alloc(i||0),u=Buffer.alloc(0);o>0||i>0;){var c=new n;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var l=0;if(o>0){var f=a.length-o;l=Math.min(o,u.length),u.copy(a,f,0,l),o-=l}if(l0){var h=s.length-i,d=Math.min(i,u.length-l);u.copy(s,h,l,l+d),i-=d}}return u.fill(0),{key:a,iv:s}}},function(e,t,r){"use strict";var n=r(407),i=r(418),o=r(419),a=r(129),s=r(86),Buffer=r(2).Buffer;function u(e){var t;"object"!=typeof e||Buffer.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=Buffer.from(e));var r,u,c=o(e,t),l=c.tag,f=c.data;switch(l){case"CERTIFICATE":u=n.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=n.PublicKey.decode(f,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=n.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+l);case"ENCRYPTED PRIVATE KEY":f=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,f=s.pbkdf2Sync(t,r,n,l,"sha1"),h=a.createDecipheriv(o,f,u),d=[];return d.push(h.update(c)),d.push(h.final()),Buffer.concat(d)}(f=n.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(r=(u=n.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:n.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=n.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+l);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=n.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+l)}}e.exports=u,u.signature=n.signature},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,i.default)(t);r=String(r);if(!r)return e(t,4)||e(t,6);if("4"===r){if(!o.test(t))return!1;var n=t.split(".").sort(function(e,t){return e-t});return n[3]<=255}if("6"===r){var s=t.split(":"),u=!1,c=e(s[s.length-1],4),l=c?7:8;if(s.length>l)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(s.shift(),s.shift(),u=!0):"::"===t.substr(t.length-2)&&(s.pop(),s.pop(),u=!0);for(var f=0;f0&&f=1:s.length===l}return!1};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,a=/^[0-9A-F]{1,4}$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commaDecimal=t.dotDecimal=t.arabicLocales=t.englishLocales=t.decimal=t.alphanumeric=t.alpha=void 0;var n={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/};t.alpha=n;var i={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/};t.alphanumeric=i;var o={"en-US":".",ar:"٫"};t.decimal=o;var a=["AU","GB","HK","IN","NZ","ZA","ZM"];t.englishLocales=a;for(var s,u=0;u{let c=null;try{(c=n.parseZoneFile(e)).hasOwnProperty("$origin")||(c=null)}catch(e){u(e)}let l=null;if(c&&Object.keys(c).length>0)(l=s(c))?fetch(l).then(e=>e.text()).then(e=>JSON.parse(e)).then(e=>{const n=e,o=i.extractProfile(n[0].token,t);r(o)}).catch(e=>{a.Logger.error(`resolveZoneFileToProfile: error fetching token file ${l}: ${e}`),u(e)}):(a.Logger.debug("Token file url not found. Resolving to blank profile."),r({}));else{let t=null;try{t=JSON.parse(e),t=o.Person.fromLegacyFormat(t).profile()}catch(e){u(e)}r(t)}})}},function(e,t,r){"use strict";e.exports=r(544)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(102)),o=r(44),a=r(239),s=r(101),u={type:"object",properties:{"@context":{type:"string",optional:!0},"@type":{type:"string"}}};class c{constructor(e={}){this._profile=Object.assign({},{"@context":"http://schema.org/"},e)}toJSON(){return Object.assign({},this._profile)}toToken(e){return o.signProfileToken(this.toJSON(),e)}static validateSchema(e,t=!1){return u.strict=t,i.default.validate(u,e)}static fromToken(e,t=null){const r=o.extractProfile(e,t);return new c(r)}static makeZoneFile(e,t){return s.makeProfileZoneFile(e,t)}static validateProofs(e){return a.validateProofs((new c).toJSON(),e)}}t.Profile=c},function(e,t,r){"use strict";(function(Buffer){var n=r(77);(t=e.exports=function(e,r){var n=t.evaluate(e,r),i=t.evaluate("",r)[0];return i.type="root",t.update(n,i),i}).evaluate=function(e,t){return"string"==typeof e||Buffer.isBuffer(e)?n.parseDOM(e,t):e},t.update=function(e,t){Array.isArray(e)||(e=[e]),t?t.children=e:t=null;for(var r=0;r-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?d.call(e):"";return t==o||t==a}(e)}function E(e){return x(e)?g(e):w(e)}function A(e){return e}e.exports=function(e,t){return(S(e)?u:y)(e,"function"==typeof t?t:A)}},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;u=r(17),o=r(13).WordArray,i=r(33).StreamCipher,n=function(){function e(e){var t,r;r=e.value,t=e.len,this._value=null!=r?r.clone():(null==t&&(t=2),new o(function(){var e,r;for(r=[],e=0;0<=t?et;0<=t?++e:--e)r.push(0);return r}()))}return e.prototype.WORD_MAX=4294967295,e.prototype.inc=function(){var t,r;for(t=!0,r=this._value.words.length-1;t&&r>=0;)++this._value.words[r]>e.WORD_MAX?this._value.words[r]=0:t=!1,r--;return this},e.prototype.inc_le=function(){var t,r;for(t=!0,r=0;t&&re.WORD_MAX?this._value.words[r]=0:t=!1,r++;return this},e.prototype.get=function(){return this._value},e.prototype.copy=function(){return this._value.clone()},e}(),e=function(e){function t(e){if(this.block_cipher=e.block_cipher,this.iv=e.iv,t.__super__.constructor.call(this),this.bsiw=this.block_cipher.blockSize/4,this.iv.sigBytes!==this.block_cipher.blockSize)throw new Error("IV is wrong length ("+this.iv.sigBytes+")");this.ctr=new n({value:this.iv})}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,i),t.prototype.scrub=function(){return this.block_cipher.scrub()},t.prototype.get_pad=function(){var e;return e=this.ctr.copy(),this.ctr.inc(),this.block_cipher.encryptBlock(e.words),e},t}(),s=function(t){var r,n,i,o,a;return r=t.block_cipher,o=t.iv,i=t.input,a=(n=new e({block_cipher:r,iv:o})).encrypt(i),n.scrub(),a},a=function(t,r){var n,i,o,a,s,c,l,f,h;f=u.findDeferral(arguments),n=t.block_cipher,a=t.iv,o=t.input,s=t.progress_hook,l=t.what,i=new e({block_cipher:n,iv:a}),function(e){h=new u.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/triplesec/src/ctr.iced"}),i.bulk_encrypt({input:o,progress_hook:s,what:l},h.defer({assign_fn:function(){return c=arguments[0]},lineno:121})),h._fulfill()}(function(){return r(c)})},t.Counter=n,t.Cipher=e,t.encrypt=s,t.bulk_encrypt=a}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c,l,f={}.hasOwnProperty,h=function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};l=r(61),i=l.HMAC,c=l.bulk_sign,a=r(53).SHA512,o=r(155).SHA3,s=r(13).WordArray,e=function(){function e(){this.hasherBlockSize=this.hashers[0].hasherBlockSize,this.hasherBlockSizeBytes=4*this.hasherBlockSize,this.reset()}return e.prototype.reset=function(){var e,t,r;for(e=0,t=(r=this.hashers).length;e>>32-t}function u(e,t,r,n,i,o,a){return s(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return s(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return s(e+(t^r^n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return s(e+(r^(t|~n))+i+o|0,a)+t|0}n(a,i),a.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,a=this._d;r=u(r,n,i,a,e[0],3614090360,7),a=u(a,r,n,i,e[1],3905402710,12),i=u(i,a,r,n,e[2],606105819,17),n=u(n,i,a,r,e[3],3250441966,22),r=u(r,n,i,a,e[4],4118548399,7),a=u(a,r,n,i,e[5],1200080426,12),i=u(i,a,r,n,e[6],2821735955,17),n=u(n,i,a,r,e[7],4249261313,22),r=u(r,n,i,a,e[8],1770035416,7),a=u(a,r,n,i,e[9],2336552879,12),i=u(i,a,r,n,e[10],4294925233,17),n=u(n,i,a,r,e[11],2304563134,22),r=u(r,n,i,a,e[12],1804603682,7),a=u(a,r,n,i,e[13],4254626195,12),i=u(i,a,r,n,e[14],2792965006,17),r=c(r,n=u(n,i,a,r,e[15],1236535329,22),i,a,e[1],4129170786,5),a=c(a,r,n,i,e[6],3225465664,9),i=c(i,a,r,n,e[11],643717713,14),n=c(n,i,a,r,e[0],3921069994,20),r=c(r,n,i,a,e[5],3593408605,5),a=c(a,r,n,i,e[10],38016083,9),i=c(i,a,r,n,e[15],3634488961,14),n=c(n,i,a,r,e[4],3889429448,20),r=c(r,n,i,a,e[9],568446438,5),a=c(a,r,n,i,e[14],3275163606,9),i=c(i,a,r,n,e[3],4107603335,14),n=c(n,i,a,r,e[8],1163531501,20),r=c(r,n,i,a,e[13],2850285829,5),a=c(a,r,n,i,e[2],4243563512,9),i=c(i,a,r,n,e[7],1735328473,14),r=l(r,n=c(n,i,a,r,e[12],2368359562,20),i,a,e[5],4294588738,4),a=l(a,r,n,i,e[8],2272392833,11),i=l(i,a,r,n,e[11],1839030562,16),n=l(n,i,a,r,e[14],4259657740,23),r=l(r,n,i,a,e[1],2763975236,4),a=l(a,r,n,i,e[4],1272893353,11),i=l(i,a,r,n,e[7],4139469664,16),n=l(n,i,a,r,e[10],3200236656,23),r=l(r,n,i,a,e[13],681279174,4),a=l(a,r,n,i,e[0],3936430074,11),i=l(i,a,r,n,e[3],3572445317,16),n=l(n,i,a,r,e[6],76029189,23),r=l(r,n,i,a,e[9],3654602809,4),a=l(a,r,n,i,e[12],3873151461,11),i=l(i,a,r,n,e[15],530742520,16),r=f(r,n=l(n,i,a,r,e[2],3299628645,23),i,a,e[0],4096336452,6),a=f(a,r,n,i,e[7],1126891415,10),i=f(i,a,r,n,e[14],2878612391,15),n=f(n,i,a,r,e[5],4237533241,21),r=f(r,n,i,a,e[12],1700485571,6),a=f(a,r,n,i,e[3],2399980690,10),i=f(i,a,r,n,e[10],4293915773,15),n=f(n,i,a,r,e[1],2240044497,21),r=f(r,n,i,a,e[8],1873313359,6),a=f(a,r,n,i,e[15],4264355552,10),i=f(i,a,r,n,e[6],2734768916,15),n=f(n,i,a,r,e[13],1309151649,21),r=f(r,n,i,a,e[4],4149444226,6),a=f(a,r,n,i,e[11],3174756917,10),i=f(i,a,r,n,e[2],718787259,15),n=f(n,i,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=a},function(e,t,r){"use strict";(t=e.exports=r(166)).Stream=t,t.Readable=t,t.Writable=r(117),t.Duplex=r(48),t.Transform=r(169),t.PassThrough=r(302)},function(e,t,r){"use strict";(function(t,n,i){var o=r(84);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=g;var c=r(67);c.inherits=r(3);var l={deprecate:r(301)},f=r(167),Buffer=r(2).Buffer,h=i.Uint8Array||function(){};var d,p=r(168);function m(){}function g(e,t){s=s||r(48),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,r,n,t,i);else{var a=w(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(y,e,r,a,i):y(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(48),!(d.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function y(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function S(e,t){var r=w(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(v,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):d=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,Buffer.isBuffer(n)||n instanceof h);return s&&!Buffer.isBuffer(e)&&(e=function(e){return Buffer.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=m),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=Buffer.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=p.destroy,v.prototype._undestroy=p.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(20),r(66).setImmediate,r(9))},function(e,t,r){"use strict";(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(307),t.sha1=r(308),t.sha224=r(309),t.sha256=r(170),t.sha384=r(310),t.sha512=r(171)},function(e,t,r){"use strict";var n=t;n.utils=r(29),n.common=r(70),n.sha=r(335),n.ripemd=r(339),n.hmac=r(340),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n={Array:function(e){return null!=e&&e.constructor===Array},Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return null==e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};for(var i in n.Null=n.Nil,n)n[i].toJSON=function(e){return e}.bind(null,i);e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(351);t.embed=n.p2data;const i=r(354);t.p2ms=i.p2ms;const o=r(355);t.p2pk=o.p2pk;const a=r(356);t.p2pkh=a.p2pkh;const s=r(357);t.p2sh=s.p2sh;const u=r(358);t.p2wpkh=u.p2wpkh;const c=r(359);t.p2wsh=c.p2wsh},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(90),n=r(90),i=r(41),o=r(4),a=r(4),s=r(37),u=r(5),c=r(91);function l(e){const t=e.length;return c.encodingLength(t)+t}const f=Buffer.allocUnsafe(0),h=[],d=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),p=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),m=Buffer.from("ffffffffffffffff","hex"),g={script:f,valueBuffer:m};class v{constructor(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}static fromBuffer(t,r){let n=0;function i(e){return n+=e,t.slice(n-e,n)}function o(){const e=t.readUInt32LE(n);return n+=4,e}function a(){const r=e.readUInt64LE(t,n);return n+=8,r}function s(){const e=c.decode(t,n);return n+=c.decode.bytes,e}function u(){return i(s())}function l(){const e=s(),t=[];for(let r=0;r0!==e.witness.length)}weight(){return 3*this.__byteLength(!1)+this.__byteLength(!0)}virtualSize(){return Math.ceil(this.weight()/4)}byteLength(){return this.__byteLength(!0)}clone(){const e=new v;return e.version=this.version,e.locktime=this.locktime,e.ins=this.ins.map(e=>({hash:e.hash,index:e.index,script:e.script,sequence:e.sequence,witness:e.witness})),e.outs=this.outs.map(e=>({script:e.script,value:e.value})),e}hashForSignature(e,t,r){if(u(s.tuple(s.UInt32,s.Buffer,s.Number),arguments),e>=this.ins.length)return p;const n=o.compile(o.decompile(t).filter(e=>e!==a.OPS.OP_CODESEPARATOR)),c=this.clone();if((31&r)===v.SIGHASH_NONE)c.outs=[],c.ins.forEach((t,r)=>{r!==e&&(t.sequence=0)});else if((31&r)===v.SIGHASH_SINGLE){if(e>=this.outs.length)return p;c.outs.length=e+1;for(let t=0;t{r!==e&&(t.sequence=0)})}r&v.SIGHASH_ANYONECANPAY?(c.ins=[c.ins[e]],c.ins[0].script=n):(c.ins.forEach(e=>{e.script=f}),c.ins[e].script=n);const l=Buffer.allocUnsafe(c.__byteLength(!1)+4);return l.writeInt32LE(r,l.length-4),c.__toBuffer(l,0,!1),i.hash256(l)}hashForWitnessV0(t,r,n,o){u(s.tuple(s.UInt32,s.Buffer,s.Satoshi,s.UInt32),arguments);let a=Buffer.from([]),f=0;function h(e){f+=e.copy(a,f)}function p(e){f=a.writeUInt32LE(e,f)}function m(t){f=e.writeUInt64LE(a,t,f)}function g(e){var t;t=e.length,c.encode(t,a,f),f+=c.encode.bytes,h(e)}let b=d,y=d,_=d;if(o&v.SIGHASH_ANYONECANPAY||(a=Buffer.allocUnsafe(36*this.ins.length),f=0,this.ins.forEach(e=>{h(e.hash),p(e.index)}),y=i.hash256(a)),o&v.SIGHASH_ANYONECANPAY||(31&o)===v.SIGHASH_SINGLE||(31&o)===v.SIGHASH_NONE||(a=Buffer.allocUnsafe(4*this.ins.length),f=0,this.ins.forEach(e=>{p(e.sequence)}),_=i.hash256(a)),(31&o)!==v.SIGHASH_SINGLE&&(31&o)!==v.SIGHASH_NONE){const e=this.outs.reduce((e,t)=>e+8+l(t.script),0);a=Buffer.allocUnsafe(e),f=0,this.outs.forEach(e=>{m(e.value),g(e.script)}),b=i.hash256(a)}else if((31&o)===v.SIGHASH_SINGLE&&te+40+l(t.script),0)+this.outs.reduce((e,t)=>e+8+l(t.script),0)+(t?this.ins.reduce((e,t)=>e+function(e){const t=e.length;return c.encodingLength(t)+e.reduce((e,t)=>e+l(t),0)}(t.witness),0):0)}__toBuffer(t,r,n){t||(t=Buffer.allocUnsafe(this.__byteLength(n)));let i=r||0;function o(e){i+=e.copy(t,i)}function a(e){i=t.writeUInt8(e,i)}function s(e){i=t.writeUInt32LE(e,i)}function u(e){c.encode(e,t,i),i+=c.encode.bytes}function l(e){u(e.length),o(e)}var f;f=this.version,i=t.writeInt32LE(f,i);const h=n&&this.hasWitnesses();return h&&(a(v.ADVANCED_TRANSACTION_MARKER),a(v.ADVANCED_TRANSACTION_FLAG)),u(this.ins.length),this.ins.forEach(e=>{o(e.hash),s(e.index),l(e.script),s(e.sequence)}),u(this.outs.length),this.outs.forEach(r=>{!function(e){return void 0!==e.value}(r)?o(r.valueBuffer):function(r){i=e.writeUInt64LE(t,r,i)}(r.value),l(r.script)}),h&&this.ins.forEach(e=>{!function(e){u(e.length),e.forEach(l)}(e.witness)}),s(this.locktime),void 0!==r?t.slice(r,i):t}}v.DEFAULT_SEQUENCE=4294967295,v.SIGHASH_ALL=1,v.SIGHASH_NONE=2,v.SIGHASH_SINGLE=3,v.SIGHASH_ANYONECANPAY=128,v.ADVANCED_TRANSACTION_MARKER=0,v.ADVANCED_TRANSACTION_FLAG=1,t.Transaction=v}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(363);t.input=n;const i=r(364);t.output=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(366);t.input=n;const i=r(367);t.output=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(368);t.input=n;const i=r(369);t.output=i},function(e,t,r){"use strict";!function(e){if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(e){return e&&DataView.prototype.isPrototypeOf(e)},i=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};l.prototype.append=function(e,t){e=s(e),t=u(t);var r=this.map[e];this.map[e]=r?r+","+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=u(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),c(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),c(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var o=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var a=[301,302,303,307,308];b.redirect=function(e,t){if(-1===a.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.Headers=l,e.Request=g,e.Response=b,e.fetch=function(e,r){return new Promise(function(n,i){var o=new g(e,r),a=new XMLHttpRequest;a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new b(i,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&n(e))this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!i(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=p(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=h(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoClients=t.SECP256K1Client=void 0;var n=r(383),i={ES256K:n.SECP256K1Client};t.SECP256K1Client=n.SECP256K1Client,t.cryptoClients=i},function(e,t,r){"use strict";t.utils=r(387),t.Cipher=r(388),t.DES=r(389),t.CBC=r(390),t.EDE=r(391)},function(e,t,r){"use strict";var n=r(392),i=r(400),o=r(196);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){"use strict";var n={ECB:r(393),CBC:r(394),CFB:r(395),CFB8:r(396),CFB1:r(397),OFB:r(398),CTR:r(194),GCM:r(194)},i=r(196);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){"use strict";(function(Buffer){var t=r(7),n=r(28);function i(e,r){var n=function(e){var r=o(e);return{blinder:r.toRed(t.mont(e.modulus)).redPow(new t(e.publicExponent)).fromRed(),unblinder:r.invm(e.modulus)}}(r),i=r.modulus.byteLength(),a=(t.mont(r.modulus),new t(e).mul(n.blinder).umod(r.modulus)),s=a.toRed(t.mont(r.prime1)),u=a.toRed(t.mont(r.prime2)),c=r.coefficient,l=r.prime1,f=r.prime2,h=s.redPow(r.exponent1),d=u.redPow(r.exponent2);h=h.fromRed(),d=d.fromRed();var p=h.isub(d).imul(c).umod(l);return p.imul(f),d.iadd(p),new Buffer(d.imul(n.unblinder).umod(r.modulus).toArray(!1,i))}function o(e){for(var r=e.modulus.byteLength(),i=new t(n(r));i.cmp(e.modulus)>=0||!i.umod(e.prime1)||!i.umod(e.prime2);)i=new t(n(r));return i}e.exports=i,i.getr=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===n(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,i.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));for(var r=e.split("."),o=0;o63)return!1;if(t.require_tld){var s=r.pop();if(!r.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(s))return!1}for(var u,c=0;c=this.ins.length)return m;const o=i.compile(i.decompile(t).filter(function(e){return e!==a.OP_CODESEPARATOR})),c=this.clone();if((31&r)===f.SIGHASH_NONE)c.outs=[],c.ins.forEach(function(t,r){r!==e&&(t.sequence=0)});else if((31&r)===f.SIGHASH_SINGLE){if(e>=this.outs.length)return m;c.outs.length=e+1;for(var l=0;l 32-byte BN for encryption. Failing.")}t.getHexFromBN=c,t.encryptECIES=function(e,t){const r="string"==typeof t,n=Buffer.from(t),o=a.keyFromPublic(e,"hex").getPublic(),l=a.genKeyPair(),f=l.getPublic(),h=c(l.derive(o)),d=u(Buffer.from(h,"hex")),p=i.default.randomBytes(16),m=function(e,t,r){const n=i.default.createCipheriv("aes-256-cbc",t,e);return Buffer.concat([n.update(r),n.final()])}(p,d.encryptionKey,n),g=Buffer.concat([p,Buffer.from(f.encodeCompressed()),m]),v=s(d.hmacKey,g);return{iv:p.toString("hex"),ephemeralPK:f.encodeCompressed("hex"),cipherText:m.toString("hex"),mac:v.toString("hex"),wasString:r}},t.decryptECIES=function(e,t){const r=a.keyFromPrivate(e,"hex"),n=a.keyFromPublic(t.ephemeralPK,"hex").getPublic(),o=r.derive(n),l=u(Buffer.from(c(o),"hex")),f=Buffer.from(t.iv,"hex"),h=Buffer.from(t.cipherText,"hex"),d=Buffer.concat([f,Buffer.from(n.encodeCompressed()),h]),p=s(l.hmacKey,d);if(!function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,r){"use strict";var n=r(59),i=r(552),o={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var r="",i=0;i",e.children&&(r+=s(e.children,t)),a[e.name]&&!t.xmlMode||(r+="")):r+="/>",r}function c(e){return"<"+e.data+">"}function l(e,t){var r=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in o||(r=i.encodeXML(r)),r}function f(e){return""}function h(e){return"\x3c!--"+e.data+"--\x3e"}},function(e,t,r){"use strict";(function(t){var r="Expected a function",n="__lodash_placeholder__",i=1,o=2,a=4,s=8,u=16,c=32,l=64,f=128,h=512,d=1/0,p=9007199254740991,m=1.7976931348623157e308,g=NaN,v=[["ary",f],["bind",i],["bindKey",o],["curry",s],["curryRight",u],["flip",h],["partial",c],["partialRight",l],["rearg",256]],b="[object Function]",y="[object GeneratorFunction]",_="[object Symbol]",w=/^\s+|\s+$/g,k=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,S=/\{\n\/\* \[wrapped with (.+)\] \*/,x=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,O=/^\[object .+?Constructor\]$/,P=/^0o[0-7]+$/i,T=/^(?:0|[1-9]\d*)$/,C=parseInt,j="object"==typeof t&&t&&t.Object===Object&&t,I="object"==typeof self&&self&&self.Object===Object&&self,M=j||I||Function("return this")();function D(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function B(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var i=e.length,o=r+(n?1:-1);for(;n?o--:++o-1}function N(e){return e!=e}function z(e,t){for(var r=-1,i=e.length,o=0,a=[];++r2?F:void 0);function Q(e){return!(!he(e)||function(e){return!!H&&H in e}(e))&&(function(e){var t=he(e)?W.call(e):"";return t==b||t==y}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?G:O).test(function(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ee(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r,n=he(r=e.prototype)?Z(r):{},i=e.apply(n,t);return he(i)?i:n}}function te(e,t,r,n,a,c,l,d,p,m){var g=t&f,v=t&i,b=t&o,y=t&(s|u),_=t&h,w=b?void 0:ee(e);return function i(){for(var o=arguments.length,s=Array(o),u=o;u--;)s[u]=arguments[u];if(y)var f=ie(i),h=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&n++;return n}(s,f);if(n&&(s=function(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,u=t.length,c=Y(o-a,0),l=Array(u+c),f=!n;++s1&&s.reverse(),g&&p1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(k,"{\n/* [wrapped with "+t+"] */\n")}function ue(e,t){return!!(t=null==t?p:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e=0}},icontains:function(e,t){var r=t.toLowerCase();return function(t){return e(t)&&o(t).toLowerCase().indexOf(r)>=0}},"nth-child":function(e,t){var r=h(t);return r===g?r:r===m?b(e):function(t){for(var n=u(t),o=0,a=0;o=0;a--)if(i(n[a])){if(n[a]===t)break;o++}return r(o)&&e(t)}},"nth-of-type":function(e,t){var r=h(t);return r===g?r:r===m?b(e):function(t){for(var n=u(t),o=0,a=0;a=0;a--)if(i(n[a])){if(n[a]===t)break;l(n[a])===l(t)&&o++}return r(o)&&e(t)}},root:function(e){return function(t){return!a(t)&&e(t)}},scope:function(e,t,r,n){return n&&0!==n.length?1===n.length?function(t){return n[0]===t&&e(t)}:function(t){return n.indexOf(t)>=0&&e(t)}:y.root(e)},checkbox:v("type","checkbox"),file:v("type","file"),password:v("type","password"),radio:v("type","radio"),reset:v("type","reset"),image:v("type","image"),submit:v("type","submit")},_={empty:function(e){return!s(e).some(function(e){return i(e)||"text"===e.type})},"first-child":function(e){return function(e){for(var t=0;e&&t=0;r--){if(t[r]===e)return!0;if(i(t[r]))break}return!1},"first-of-type":function(e){for(var t=u(e),r=0;r=0;r--)if(i(t[r])){if(t[r]===e)return!0;if(l(t[r])===l(e))break}return!1},"only-of-type":function(e){for(var t=u(e),r=0,n=t.length;r1&&"scope"!==t)throw new SyntaxError("pseudo-selector :"+t+" requires an argument")}else if(1===e.length)throw new SyntaxError("pseudo-selector :"+t+" doesn't have any arguments")}var k=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;e.exports={compile:function(e,t,r,n){var i=t.name,o=t.data;if(r&&r.strict&&!k.test(i))throw SyntaxError(":"+i+" isn't part of CSS3");if("function"==typeof y[i])return w(y[i],i,o),y[i](e,o,r,n);if("function"==typeof _[i]){var a=_[i];return w(a,i,o),e===m?a:function(t){return a(t,o)&&e(t)}}throw new SyntaxError("unmatched pseudo-class :"+i)},filters:y,pseudos:_}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(38)),i=e(r(68)),o=e(r(7)),a=r(31);t.DUST_MINIMUM=5500,t.hash160=function(e){const t=n.default.crypto.sha256(e);return(new i.default).update(t).digest()},t.hash128=function(e){return Buffer.from(n.default.crypto.sha256(e).slice(0,16))};const s=10,u=41,c=107,l=9,f=25;function h(e,t){return s+e.reduce((e,t)=>e+function(e){return e&&e.script&&e.script.length>0?u+e.script.length:u+c}(t),0)+t.reduce((e,t)=>e+function(e){return e&&e.script&&e.script.length>0?l+e.script.length:l+f}(t),0)}function d(e){return e.__tx}function p(e){return e instanceof n.default.Transaction?e:d(e)}function m(e,t,r){const n=p(e),i=new Array(t);i.fill(null);const o=new Array(r);return o.fill(null),h([].concat(n.ins,i),[].concat(n.outs,o))}t.getTransactionInsideBuilder=d,t.estimateTXBytes=m,t.sumOutputValues=function(e){return p(e).outs.reduce((e,t)=>e+t.value,0)},t.decodeB40=function(e){const t=new o.default(40);return e.split("").reverse().map((e,r)=>new o.default("0123456789abcdefghijklmnopqrstuvwxyz-_.+".indexOf(e)).mul(t.pow(new o.default(r)))).reduce((e,t)=>e.add(t),new o.default(0)).toString(16,2)},t.addUTXOsToFund=function e(t,r,n,i,o=!0){if(0===r.length)throw new a.NotEnoughFundsError(n);const s=i*(m(t,1,0)-m(t,0,0));let u=n;o&&(u+=s);const c=r.filter(e=>e.value>=u);if(c.length>0){c.sort((e,t)=>e.value-t.value);const e=c[0];let r=e.value-n;return o&&(r-=s),t.addInput(e.tx_hash,e.tx_output_n),r}{r.sort((e,t)=>t.value-e.value);const u=r[0];if(s>=u.value)throw new a.NotEnoughFundsError(n);t.addInput(u.tx_hash,u.tx_output_n);let c=n-u.value;return o&&(c+=s),e(t,r.slice(1),c,i,o)}},t.signInputs=function(e,t,r){const n=d(e),i=n.ins.map(()=>t);r&&r.forEach(e=>{i[e.index]=e.signer});let o=Promise.resolve();for(let t=0;ti[t].signTransaction(e,t));return o.then(()=>e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(){e.exports={k:"__iced_k",k_noop:"__iced_k_noop",param:"__iced_p_",ns:"iced",runtime:"runtime",Deferrals:"Deferrals",deferrals:"__iced_deferrals",fulfill:"_fulfill",b_while:"_break",t_while:"_while",c_while:"_continue",n_while:"_next",n_arg:"__iced_next_arg",defer_method:"defer",slot:"__slot",assign_fn:"assign_fn",autocb:"autocb",retslot:"ret",trace:"__iced_trace",passed_deferral:"__iced_passed_deferral",findDeferral:"findDeferral",lineno:"lineno",parent:"parent",filename:"filename",funcname:"funcname",catchExceptions:"catchExceptions",runtime_modes:["node","inline","window","none","browserify","interp"],trampoline:"trampoline",context:"context",defer_arg:"__iced_defer_"}}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s={}.hasOwnProperty;n=r(33).BlockCipher,a=r(22).scrub_vec,o=function(){function e(){this.SBOX=[],this.INV_SBOX=[],this.SUB_MIX=function(){var e,t;for(t=[],e=0;e<4;++e)t.push([]);return t}(),this.INV_SUB_MIX=function(){var e,t;for(t=[],e=0;e<4;++e)t.push([]);return t}(),this.init(),this.RCON=[0,1,2,4,8,16,32,64,128,27,54]}return e.prototype.init=function(){var e,t,r,n,i,o,a,s,u,c;for(e=function(){var e,r;for(r=[],t=e=0;e<256;t=++e)t<128?r.push(t<<1):r.push(t<<1^283);return r}(),i=0,u=0,t=c=0;c<256;t=++c)r=(r=u^u<<1^u<<2^u<<3^u<<4)>>>8^255&r^99,this.SBOX[i]=r,this.INV_SBOX[r]=i,s=e[a=e[o=e[i]]],n=257*e[r]^16843008*r,this.SUB_MIX[0][i]=n<<24|n>>>8,this.SUB_MIX[1][i]=n<<16|n>>>16,this.SUB_MIX[2][i]=n<<8|n>>>24,this.SUB_MIX[3][i]=n,n=16843009*s^65537*a^257*o^16843008*i,this.INV_SUB_MIX[0][r]=n<<24|n>>>8,this.INV_SUB_MIX[1][r]=n<<16|n>>>16,this.INV_SUB_MIX[2][r]=n<<8|n>>>24,this.INV_SUB_MIX[3][r]=n,0===i?i=u=1:(i=o^e[e[e[s^o]]],u^=e[e[u]]);return!0},e}(),i=new o,e=function(e){function t(e){this._key=e.clone(),this._doReset()}return function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.keySize=32,t.prototype.keySize=t.keySize,t.ivSize=t.blockSize,t.prototype.ivSize=t.ivSize,t.prototype._doReset=function(){var e,t,r,n,o,a,s,u;for(r=this._key.words,t=this._key.sigBytes/4,this._nRounds=t+6,o=4*(this._nRounds+1),this._keySchedule=[],n=s=0;0<=o?so;n=0<=o?++s:--s)this._keySchedule[n]=n>>24,a=i.SBOX[a>>>24]<<24|i.SBOX[a>>>16&255]<<16|i.SBOX[a>>>8&255]<<8|i.SBOX[255&a],a^=i.RCON[n/t|0]<<24):t>6&&n%t==4&&(a=i.SBOX[a>>>24]<<24|i.SBOX[a>>>16&255]<<16|i.SBOX[a>>>8&255]<<8|i.SBOX[255&a]),this._keySchedule[n-t]^a);for(this._invKeySchedule=[],e=u=0;0<=o?uo;e=0<=o?++u:--u)n=o-e,a=this._keySchedule[n-(e%4?0:4)],this._invKeySchedule[e]=e<4||n<=4?a:i.INV_SUB_MIX[0][i.SBOX[a>>>24]]^i.INV_SUB_MIX[1][i.SBOX[a>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[a>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[255&a]];return!0},t.prototype.encryptBlock=function(e,t){return null==t&&(t=0),this._doCryptBlock(e,t,this._keySchedule,i.SUB_MIX,i.SBOX)},t.prototype.decryptBlock=function(e,t){var r,n;return null==t&&(t=0),r=[e[t+3],e[t+1]],e[t+1]=r[0],e[t+3]=r[1],this._doCryptBlock(e,t,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX),n=[e[t+3],e[t+1]],e[t+1]=n[0],e[t+3]=n[1],n},t.prototype.scrub=function(){return a(this._keySchedule),a(this._invKeySchedule),this._key.scrub()},t.prototype._doCryptBlock=function(e,t,r,n,i){var o,a,s,u,c,l,f,h,d,p,m;for(a=e[t]^r[0],s=e[t+1]^r[1],u=e[t+2]^r[2],c=e[t+3]^r[3],o=4,p=1,m=this._nRounds;1<=m?pm;1<=m?++p:--p)l=n[0][a>>>24]^n[1][s>>>16&255]^n[2][u>>>8&255]^n[3][255&c]^r[o++],f=n[0][s>>>24]^n[1][u>>>16&255]^n[2][c>>>8&255]^n[3][255&a]^r[o++],h=n[0][u>>>24]^n[1][c>>>16&255]^n[2][a>>>8&255]^n[3][255&s]^r[o++],d=n[0][c>>>24]^n[1][a>>>16&255]^n[2][s>>>8&255]^n[3][255&u]^r[o++],a=l,s=f,u=h,c=d;return l=(i[a>>>24]<<24|i[s>>>16&255]<<16|i[u>>>8&255]<<8|i[255&c])^r[o++],f=(i[s>>>24]<<24|i[u>>>16&255]<<16|i[c>>>8&255]<<8|i[255&a])^r[o++],h=(i[u>>>24]<<24|i[c>>>16&255]<<16|i[a>>>8&255]<<8|i[255&s])^r[o++],d=(i[c>>>24]<<24|i[a>>>16&255]<<16|i[s>>>8&255]<<8|i[255&u])^r[o++],e[t]=l,e[t+1]=f,e[t+2]=h,e[t+3]=d},t}(),t.AES=e}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a={}.hasOwnProperty;e=r(33).BlockCipher,o=r(22).scrub_vec,i=function(){return function(){this.P=[[169,103,179,232,4,253,163,118,154,146,128,120,228,221,209,56,13,198,53,152,24,247,236,108,67,117,55,38,250,19,148,72,242,208,139,48,132,84,223,35,25,91,61,89,243,174,162,130,99,1,131,46,217,81,155,124,166,235,165,190,22,12,227,97,192,140,58,245,115,44,37,11,187,78,137,107,83,106,180,241,225,230,189,69,226,244,182,102,204,149,3,86,212,28,30,215,251,195,142,181,233,207,191,186,234,119,57,175,51,201,98,113,129,121,9,173,36,205,249,216,229,197,185,77,68,8,134,231,161,29,170,237,6,112,178,210,65,123,160,17,49,194,39,144,32,246,96,255,150,92,177,171,158,156,82,27,95,147,10,239,145,133,73,238,45,79,143,59,71,135,109,70,214,62,105,100,42,206,203,47,252,151,5,122,172,127,213,26,75,14,167,90,40,20,63,41,136,60,76,2,184,218,176,23,85,31,138,125,87,199,141,116,183,196,159,114,126,21,34,18,88,7,153,52,110,80,222,104,101,188,219,248,200,168,43,64,220,254,50,164,202,16,33,240,211,93,15,0,111,157,54,66,74,94,193,224],[117,243,198,244,219,123,251,200,74,211,230,107,69,125,232,75,214,50,216,253,55,113,241,225,48,15,248,27,135,250,6,63,94,186,174,91,138,0,188,157,109,193,177,14,128,93,210,213,160,132,7,20,181,144,44,163,178,115,76,84,146,116,54,81,56,176,189,90,252,96,98,150,108,66,247,16,124,40,39,140,19,149,156,199,36,70,59,112,202,227,133,203,17,208,147,184,166,131,32,255,159,119,195,204,3,111,8,191,64,231,43,226,121,12,170,130,65,58,234,185,228,154,164,151,126,218,122,23,102,148,161,29,61,240,222,179,11,114,167,28,239,209,83,62,143,51,38,95,236,118,42,73,129,136,238,33,196,26,235,217,197,57,153,205,173,49,139,1,24,35,221,31,78,45,249,72,79,242,101,142,120,92,88,25,141,229,152,87,103,127,5,100,175,99,182,254,245,183,60,165,206,233,104,68,224,77,67,105,41,46,172,21,89,168,10,158,110,71,223,52,53,106,207,220,34,201,192,155,137,212,237,171,18,162,13,82,187,2,47,169,215,97,30,180,80,4,246,194,22,37,134,86,85,9,190,145]],this.P_00=1,this.P_01=0,this.P_02=0,this.P_03=1,this.P_04=1,this.P_10=0,this.P_11=0,this.P_12=1,this.P_13=1,this.P_14=0,this.P_20=1,this.P_21=1,this.P_22=0,this.P_23=0,this.P_24=0,this.P_30=0,this.P_31=1,this.P_32=1,this.P_33=0,this.P_34=1,this.GF256_FDBK=361,this.GF256_FDBK_2=this.GF256_FDBK/2,this.GF256_FDBK_4=this.GF256_FDBK/4,this.RS_GF_FDBK=333,this.SK_STEP=33686018,this.SK_BUMP=16843009,this.SK_ROTL=9}}(),n=new i,t.TwoFish=function(t){function r(e){this._key=e.clone(),this.gMDS0=[],this.gMDS1=[],this.gMDS2=[],this.gMDS3=[],this.gSubKeys=[],this.gSBox=[],this.k64Cnt=0,this._doReset()}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.keySize=32,r.prototype.keySize=r.keySize,r.ivSize=r.blockSize,r.prototype.ivSize=r.ivSize,r.prototype.getByte=function(e,t){return e>>>8*t&255},r.prototype.switchEndianness=function(e){return(255&e)<<24|(e>>8&255)<<16|(e>>16&255)<<8|e>>24&255},r.prototype.LFSR1=function(e){return e>>1^(0!=(1&e)?n.GF256_FDBK_2:0)},r.prototype.LFSR2=function(e){return e>>2^(0!=(2&e)?n.GF256_FDBK_2:0)^(0!=(1&e)?n.GF256_FDBK_4:0)},r.prototype.Mx_X=function(e){return e^this.LFSR2(e)},r.prototype.Mx_Y=function(e){return e^this.LFSR1(e)^this.LFSR2(e)},r.prototype.RS_rem=function(e){var t,r,i;return r=255&((t=e>>>24&255)<<1^(0!=(128&t)?n.RS_GF_FDBK:0)),e<<8^(i=t>>>1^(0!=(1&t)?n.RS_GF_FDBK>>>1:0)^r)<<24^r<<16^i<<8^t},r.prototype.RS_MDS_Encode=function(e,t){var r,n,i;for(r=t,n=0;n<4;++n)r=this.RS_rem(r);for(r^=e,i=0;i<4;++i)r=this.RS_rem(r);return r},r.prototype.F32=function(e,t){var r,i,o,a,s,u,c,l,f;return r=this.getByte(e,0),i=this.getByte(e,1),o=this.getByte(e,2),a=this.getByte(e,3),s=t[0],u=t[1],c=t[2],l=t[3],1===(f=3&this.k64Cnt)?this.gMDS0[255&n.P[n.P_01][r]^this.getByte(s,0)]^this.gMDS1[255&n.P[n.P_11][i]^this.getByte(s,1)]^this.gMDS2[255&n.P[n.P_21][o]^this.getByte(s,2)]^this.gMDS3[255&n.P[n.P_31][a]^this.getByte(s,3)]:(0===f&&(r=255&n.P[n.P_04][r]^this.getByte(l,0),i=255&n.P[n.P_14][i]^this.getByte(l,1),o=255&n.P[n.P_24][o]^this.getByte(l,2),a=255&n.P[n.P_34][a]^this.getByte(l,3)),(0===f||3===f)&&(r=255&n.P[n.P_03][r]^this.getByte(c,0),i=255&n.P[n.P_13][i]^this.getByte(c,1),o=255&n.P[n.P_23][o]^this.getByte(c,2),a=255&n.P[n.P_33][a]^this.getByte(c,3)),this.gMDS0[255&n.P[n.P_01][255&n.P[n.P_02][r]^this.getByte(u,0)]^this.getByte(s,0)]^this.gMDS1[255&n.P[n.P_11][255&n.P[n.P_12][i]^this.getByte(u,1)]^this.getByte(s,1)]^this.gMDS2[255&n.P[n.P_21][255&n.P[n.P_22][o]^this.getByte(u,2)]^this.getByte(s,2)]^this.gMDS3[255&n.P[n.P_31][255&n.P[n.P_32][a]^this.getByte(u,3)]^this.getByte(s,3)])},r.prototype.Fe32_0=function(e){return this.gSBox[0+2*(255&e)]^this.gSBox[1+2*(e>>>8&255)]^this.gSBox[512+2*(e>>>16&255)]^this.gSBox[513+2*(e>>>24&255)]},r.prototype.Fe32_3=function(e){return this.gSBox[0+2*(e>>>24&255)]^this.gSBox[1+2*(255&e)]^this.gSBox[512+2*(e>>>8&255)]^this.gSBox[513+2*(e>>>16&255)]},r.prototype._doReset=function(){var e,t,r,i,o,a,s,u,c,l,f,h,d,p,m,g,v,b,y,_,w,k,S,x,E,A,O;if(d=[],p=[],w=[],g=[],v=[],b=[],this.k64Cnt=this._key.words.length/2,this.k64Cnt<1)throw"Key size less than 64 bits";if(this.k64Cnt>4)throw"Key size larger than 256 bits";for(s=k=0;k<256;s=++k)u=255&n.P[0][s],g[0]=u,v[0]=255&this.Mx_X(u),b[0]=255&this.Mx_Y(u),u=255&n.P[1][s],g[1]=u,v[1]=255&this.Mx_X(u),b[1]=255&this.Mx_Y(u),this.gMDS0[s]=g[n.P_00]|v[n.P_00]<<8|b[n.P_00]<<16|b[n.P_00]<<24,this.gMDS1[s]=b[n.P_10]|b[n.P_10]<<8|v[n.P_10]<<16|g[n.P_10]<<24,this.gMDS2[s]=v[n.P_20]|b[n.P_20]<<8|g[n.P_20]<<16|b[n.P_20]<<24,this.gMDS3[s]=v[n.P_30]|g[n.P_30]<<8|b[n.P_30]<<16|v[n.P_30]<<24;for(s=S=0,A=this.k64Cnt;0<=A?SA;s=0<=A?++S:--S)y=2*s,d[s]=this.switchEndianness(this._key.words[y]),p[s]=this.switchEndianness(this._key.words[y+1]),w[this.k64Cnt-1-s]=this.RS_MDS_Encode(d[s],p[s]);for(s=x=0,20;x<20;s=++x)_=s*n.SK_STEP,e=this.F32(_,d),e+=t=(t=this.F32(_+n.SK_BUMP,p))<<8|t>>>24,this.gSubKeys[2*s]=e,e+=t,this.gSubKeys[2*s+1]=e<>>32-n.SK_ROTL;for(c=w[0],l=w[1],f=w[2],h=w[3],this.gSBox=[],O=[],s=E=0;E<256;s=++E)r=i=o=a=s,1===(m=3&this.k64Cnt)?(this.gSBox[2*s]=this.gMDS0[255&n.P[n.P_01][r]^this.getByte(c,0)],this.gSBox[2*s+1]=this.gMDS1[255&n.P[n.P_11][i]^this.getByte(c,1)],this.gSBox[2*s+512]=this.gMDS2[255&n.P[n.P_21][o]^this.getByte(c,2)],O.push(this.gSBox[2*s+513]=this.gMDS3[255&n.P[n.P_31][a]^this.getByte(c,3)])):(0===m&&(r=255&n.P[n.P_04][r]^this.getByte(h,0),i=255&n.P[n.P_14][i]^this.getByte(h,1),o=255&n.P[n.P_24][o]^this.getByte(h,2),a=255&n.P[n.P_34][a]^this.getByte(h,3)),0!==m&&3!==m||(r=255&n.P[n.P_03][r]^this.getByte(f,0),i=255&n.P[n.P_13][i]^this.getByte(f,1),o=255&n.P[n.P_23][o]^this.getByte(f,2),a=255&n.P[n.P_33][a]^this.getByte(f,3)),this.gSBox[2*s]=this.gMDS0[255&n.P[n.P_01][255&n.P[n.P_02][r]^this.getByte(l,0)]^this.getByte(c,0)],this.gSBox[2*s+1]=this.gMDS1[255&n.P[n.P_11][255&n.P[n.P_12][i]^this.getByte(l,1)]^this.getByte(c,1)],this.gSBox[2*s+512]=this.gMDS2[255&n.P[n.P_21][255&n.P[n.P_22][o]^this.getByte(l,2)]^this.getByte(c,2)],O.push(this.gSBox[2*s+513]=this.gMDS3[255&n.P[n.P_31][255&n.P[n.P_32][a]^this.getByte(l,3)]^this.getByte(c,3)]));return O},r.prototype.scrub=function(){return o(this.gSubKeys),o(this.gSBox),this._key.scrub()},r.prototype.decryptBlock=function(e,t){var r,n,i,o,a,s,u,c;for(null==t&&(t=0),s=this.switchEndianness(e[t])^this.gSubKeys[4],u=this.switchEndianness(e[t+1])^this.gSubKeys[5],o=this.switchEndianness(e[t+2])^this.gSubKeys[6],a=this.switchEndianness(e[t+3])^this.gSubKeys[7],r=39,c=0;c<16;c+=2)a^=(n=this.Fe32_0(s))+2*(i=this.Fe32_3(u))+this.gSubKeys[r--],o=(o<<1|o>>>31)^n+i+this.gSubKeys[r--],a=a>>>1|a<<31,u^=(n=this.Fe32_0(o))+2*(i=this.Fe32_3(a))+this.gSubKeys[r--],s=(s<<1|s>>>31)^n+i+this.gSubKeys[r--],u=u>>>1|u<<31;return e[t]=this.switchEndianness(o^this.gSubKeys[0]),e[t+1]=this.switchEndianness(a^this.gSubKeys[1]),e[t+2]=this.switchEndianness(s^this.gSubKeys[2]),e[t+3]=this.switchEndianness(u^this.gSubKeys[3])},r.prototype.encryptBlock=function(e,t){var r,n,i,o,a,s,u,c;for(null==t&&(t=0),o=this.switchEndianness(e[t])^this.gSubKeys[0],a=this.switchEndianness(e[t+1])^this.gSubKeys[1],s=this.switchEndianness(e[t+2])^this.gSubKeys[2],u=this.switchEndianness(e[t+3])^this.gSubKeys[3],r=8,c=0;c<16;c+=2)s=(s^=(n=this.Fe32_0(o))+(i=this.Fe32_3(a))+this.gSubKeys[r++])>>>1|s<<31,u=(u<<1|u>>>31)^n+2*i+this.gSubKeys[r++],o=(o^=(n=this.Fe32_0(s))+(i=this.Fe32_3(u))+this.gSubKeys[r++])>>>1|o<<31,a=(a<<1|a>>>31)^n+2*i+this.gSubKeys[r++];return e[t]=this.switchEndianness(s^this.gSubKeys[4]),e[t+1]=this.switchEndianness(u^this.gSubKeys[5]),e[t+2]=this.switchEndianness(o^this.gSubKeys[6]),e[t+3]=this.switchEndianness(a^this.gSubKeys[7])},r}()}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u={}.hasOwnProperty;o=r(13).WordArray,n=r(33).Hasher,e=function(){function e(){this.H=[],this.K=[],this.W=[],this.init()}return e.prototype.isPrime=function(e){var t,r,n;if(2===e||3===e||5===e||7===e)return!0;if(1===e||4===e||6===e||8===e||9===e)return!1;for(r=Math.ceil(Math.sqrt(e)),t=n=2;2<=r?n<=r:n>=r;t=2<=r?++n:--n)if(e%t==0)return!1;return!0},e.prototype.getFractionalBits=function(e){return 4294967296*(e-(0|e))|0},e.prototype.init=function(){var e,t,r;for(e=2,t=0,r=[];t<64;)this.isPrime(e)&&(t<8&&(this.H[t]=this.getFractionalBits(Math.pow(e,.5))),this.K[t]=this.getFractionalBits(Math.pow(e,1/3)),t++),r.push(e++);return r},e}(),a=new e,i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.output_size=32,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=new o(a.H.slice(0))},t.prototype.get_output_size=function(){return this.output_size},t.prototype._doProcessBlock=function(e,t){var r,n,i,o,s,u,c,l,f,h,d,p,m,g,v,b,y,_,w,k;for(r=this._hash.words,i=a.W,n=a.K,o=r[0],s=r[1],u=r[2],c=r[3],l=r[4],f=r[5],h=r[6],v=r[7],b=k=0;k<64;b=++k)b<16?i[b]=0|e[t+b]:(d=((p=i[b-15])<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=((g=i[b-2])<<15|g>>>17)^(g<<13|g>>>19)^g>>>10,i[b]=d+i[b-7]+m+i[b-16]),y=o&s^o&u^s&u,_=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),w=v+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&f^~l&h)+n[b]+i[b],v=h,h=f,f=l,l=c+w|0,c=u,u=s,s=o,o=w+(_+y)|0;return r[0]=r[0]+o|0,r[1]=r[1]+s|0,r[2]=r[2]+u|0,r[3]=r[3]+c|0,r[4]=r[4]+l|0,r[5]=r[5]+f|0,r[6]=r[6]+h|0,r[7]=r[7]+v|0},t.prototype._doFinalize=function(){var e,t,r,n;return t=(e=this._data).words,n=8*this._nDataBytes,t[(r=8*e.sigBytes)>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},t.prototype.scrub=function(){return this._hash.scrub()},t.prototype.copy_to=function(e){return t.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(),s=function(e){var t;return t=(new i).finalize(e),e.scrub(),t},t.SHA256=i,t.transform=s}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;u=r(13),o=u.WordArray,a=u.X64Word,u.X64WordArray,n=r(33).Hasher,e=function(){function e(){this.RHO_OFFSETS=[],this.PI_INDEXES=[],this.ROUND_CONSTANTS=[],this.T=[],this.compute_rho_offsets(),this.compute_pi_indexes(),this.compute_round_constants(),this.make_reusables()}return e.prototype.compute_rho_offsets=function(){var e,t,r,n,i,o;for(r=1,n=0,o=[],t=i=0;i<24;t=++i)this.RHO_OFFSETS[r+5*n]=(t+1)*(t+2)/2%64,e=(2*r+3*n)%5,r=n%5,o.push(n=e);return o},e.prototype.compute_pi_indexes=function(){var e,t,r,n;for(n=[],e=r=0;r<5;e=++r)n.push(function(){var r,n;for(n=[],t=r=0;r<5;t=++r)n.push(this.PI_INDEXES[e+5*t]=t+(2*e+3*t)%5*5);return n}.call(this));return n},e.prototype.compute_round_constants=function(){var e,t,r,n,i,o,s,u,c;for(e=1,c=[],r=s=0;s<24;r=++s){for(o=0,i=0,n=u=0;u<7;n=++u)1&e&&((t=(1<w;g=0<=w?++j:--j)n=16711935&((n=e[t+2*g])<<8|n>>>24)|4278255360&(n<<24|n>>>8),i=16711935&((i=e[t+2*g+1])<<8|i>>>24)|4278255360&(i<<24|i>>>8),(v=E[g]).high^=i,v.low^=n;for(U=[],S=I=0;I<24;S=++I){for(T=M=0;M<5;T=++M){for(P=O=0,C=D=0;D<5;C=++D)P^=(v=E[T+5*C]).high,O^=v.low;(c=r.T[T]).high=P,c.low=O}for(T=B=0;B<5;T=++B)for(m=r.T[(T+4)%5],d=(l=r.T[(T+1)%5]).high,h=l.low,P=m.high^(d<<1|h>>>31),O=m.low^(h<<1|d>>>31),C=N=0;N<5;C=++N)(v=E[T+5*C]).high^=P,v.low^=O;for(b=z=1;z<25;b=++z)_=(v=E[b]).high,y=v.low,(k=r.RHO_OFFSETS[b])<32?(P=_<>>32-k,O=y<>>32-k):(P=y<>>64-k,O=_<>>64-k),(u=r.T[r.PI_INDEXES[b]]).high=P,u.low=O;for(o=r.T[0],A=E[0],o.high=A.high,o.low=A.low,T=R=0;R<5;T=++R)for(C=F=0;F<5;C=++F)v=E[b=T+5*C],a=r.T[b],f=r.T[(T+1)%5+5*C],p=r.T[(T+2)%5+5*C],v.high=a.high^~f.high&p.high,v.low=a.low^~f.low&p.low;v=E[0],x=r.ROUND_CONSTANTS[S],v.high^=x.high,U.push(v.low^=x.low)}return U},t.prototype._doFinalize=function(){var e,t,r,n,i,a,s,u,c,l,f,h,d;for(r=(t=this._data).words,8*this._nDataBytes,c=8*t.sigBytes,e=32*this.blockSize,r[c>>>5]|=1<<24-c%32,r[(Math.ceil((c+1)/e)*e>>>5)-1]|=128,t.sigBytes=4*r.length,this._process(),h=this._state,f=(l=this.outputLength/8)/8,n=[],i=d=0;0<=f?df;i=0<=f?++d:--d)u=16711935&((u=(a=h[i]).high)<<8|u>>>24)|4278255360&(u<<24|u>>>8),s=16711935&((s=a.low)<<8|s>>>24)|4278255360&(s<<24|s>>>8),n.push(s),n.push(u);return new o(n,l)},t.prototype.copy_to=function(e){var r;return t.__super__.copy_to.call(this,e),e._state=function(){var e,t,n,i;for(i=[],e=0,t=(n=this._state).length;e1,(r=function(t){var n;if(n=function(){return o.trampoline(function(){return v?s+=1:s-=1,r(t)})},!0===v&&s>c||!1===v&&s>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var o=i,a=n+r;e^=-1;for(var s=n;s>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var o=i,a=n+r;e^=-1;for(var s=n;s>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},function(e,t,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(141);t.encryptECIES=n.encryptECIES,t.decryptECIES=n.decryptECIES,t.signECDSA=n.signECDSA,t.verifyECDSA=n.verifyECDSA,t.getHexFromBN=n.getHexFromBN;var i=r(257);t.encryptMnemonic=i.encryptMnemonic,t.decryptMnemonic=i.decryptMnemonic},function(e,t,r){"use strict";(function(r){var n,i,o;i=[],void 0===(o="function"==typeof(n=function(){function t(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){a(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype?function(e,r,a){var s=o.URL||o.webkitURL,u=document.createElement("a");r=r||e.name||"download",u.download=r,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?i(u):n(u.href)?t(e,r,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(u.href)},4e4),setTimeout(function(){i(u)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),r);else if(n(e))t(e,r,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){i(a)})}}:function(e,r,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,r,n);var a="application/octet-stream"===e.type,s=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var l=o.URL||o.webkitURL,f=l.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){l.revokeObjectURL(f)},4e4)}});o.saveAs=a.saveAs=a,e.exports=a})?n.apply(t,i):n)||(e.exports=o)}).call(this,r(9))},function(e,t,r){"use strict"; +function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,t.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u=e)}l.state.get=function(){return this._vm._data.$$state},l.state.set=function(e){0},c.prototype.commit=function(e,t,r){var n=this,i=g(e,t,r),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(e){e(a)})}),this._subscribers.forEach(function(e){return e(s,n.state)}))},c.prototype.dispatch=function(e,t){var r=this,n=g(e,t),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter(function(e){return e.before}).forEach(function(e){return e.before(a,r.state)})}catch(e){0}return(s.length>1?Promise.all(s.map(function(e){return e(o)})):s[0](o)).then(function(e){try{r._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(a,r.state)})}catch(e){0}return e})}},c.prototype.subscribe=function(e){return f(e,this._subscribers)},c.prototype.subscribeAction=function(e){return f("function"==typeof e?{before:e}:e,this._actionSubscribers)},c.prototype.watch=function(e,t,r){var n=this;return this._watcherVM.$watch(function(){return e(n.state,n.getters)},t,r)},c.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})},c.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),p(this,this.state,e,this._modules.get(e),r.preserveState),d(this,this.state)},c.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var r=m(t.state,e.slice(0,-1));u.delete(r,e[e.length-1])}),h(this)},c.prototype.hotUpdate=function(e){this._modules.update(e),h(this,!0)},c.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(c.prototype,l);var b=S(function(e,t){var r={};return k(t).forEach(function(t){var n=t.key,i=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=x(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof i?i.call(this,t,r):t[i]},r[n].vuex=!0}),r}),y=S(function(e,t){var r={};return k(t).forEach(function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=x(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}}),r}),_=S(function(e,t){var r={};return k(t).forEach(function(t){var n=t.key,i=t.val;i=e+i,r[n]=function(){if(!e||x(this.$store,"mapGetters",e))return this.$store.getters[i]},r[n].vuex=!0}),r}),w=S(function(e,t){var r={};return k(t).forEach(function(t){var n=t.key,i=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=x(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}}),r});function k(e){return Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}})}function S(e){return function(t,r){return"string"!=typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function x(e,t,r){return e._modulesNamespaceMap[r]}var E={Store:c,install:v,version:"3.1.1",mapState:b,mapMutations:y,mapGetters:_,mapActions:w,createNamespacedHelpers:function(e){return{mapState:b.bind(null,e),mapGetters:_.bind(null,e),mapMutations:y.bind(null,e),mapActions:w.bind(null,e)}}};t.a=E}).call(this,r(9))},function(e,t,r){"use strict";var n=r(21),i=r(323);e.exports=i(function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()})},function(e,t,r){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5),i=Math.pow(2,31)-1;function o(e){return n.String(e)&&!!e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}t.UInt31=function(e){return n.UInt32(e)&&e<=i},t.BIP32Path=o,o.toJSON=()=>"BIP32 derivation path";const a=21e14;t.Satoshi=function(e){return n.UInt53(e)&&e<=a},t.ECPoint=n.quacksLike("Point"),t.Network=n.compile({messagePrefix:n.oneOf(n.Buffer,n.String),bip32:{public:n.UInt32,private:n.UInt32},pubKeyHash:n.UInt8,scriptHash:n.UInt8,wif:n.UInt8}),t.Buffer256bit=n.BufferN(32),t.Hash160bit=n.BufferN(20),t.Hash256bit=n.BufferN(32),t.Number=n.Number,t.Array=n.Array,t.Boolean=n.Boolean,t.String=n.String,t.Buffer=n.Buffer,t.Hex=n.Hex,t.maybe=n.maybe,t.tuple=n.tuple,t.UInt8=n.UInt8,t.UInt32=n.UInt32,t.Function=n.Function,t.BufferN=n.BufferN,t.Null=n.Null,t.oneOf=n.oneOf},function(e,t,r){"use strict";const n=r(8);e.exports={Block:r(501),ECPair:r(223),Transaction:r(136),TransactionBuilder:r(503),address:r(224),bip32:r(227),crypto:r(43),networks:r(25),opcodes:r(10),payments:r(137),script:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={network:r(228).network.defaults.MAINNET_DEFAULT,logLevel:"debug"};t.config=n},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(82).Transform,i=r(85).StringDecoder;function o(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3)(o,n),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=Buffer.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||Buffer.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21);function i(e){try{return n("rmd160").update(e).digest()}catch(t){return n("ripemd160").update(e).digest()}}function o(e){return n("sha256").update(e).digest()}t.ripemd160=i,t.sha1=function(e){return n("sha1").update(e).digest()},t.sha256=o,t.hash160=function(e){return i(o(e))},t.hash256=function(e){return o(o(e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(380);Object.defineProperty(t,"TokenSigner",{enumerable:!0,get:function(){return n.TokenSigner}}),Object.defineProperty(t,"createUnsecuredToken",{enumerable:!0,get:function(){return n.createUnsecuredToken}});var i=r(498);Object.defineProperty(t,"TokenVerifier",{enumerable:!0,get:function(){return i.TokenVerifier}});var o=r(499);Object.defineProperty(t,"decodeToken",{enumerable:!0,get:function(){return o.decodeToken}});var a=r(98);Object.defineProperty(t,"MissingParametersError",{enumerable:!0,get:function(){return a.MissingParametersError}}),Object.defineProperty(t,"InvalidTokenError",{enumerable:!0,get:function(){return a.InvalidTokenError}});var s=r(127);Object.defineProperty(t,"SECP256K1Client",{enumerable:!0,get:function(){return s.SECP256K1Client}}),Object.defineProperty(t,"cryptoClients",{enumerable:!0,get:function(){return s.cryptoClients}})},function(e,t,r){"use strict";const n=r(21);function i(e){try{return n("rmd160").update(e).digest()}catch(t){return n("ripemd160").update(e).digest()}}function o(e){return n("sha256").update(e).digest()}e.exports={hash160:function(e){return i(o(e))},hash256:function(e){return o(o(e))},ripemd160:i,sha1:function(e){return n("sha1").update(e).digest()},sha256:o}},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(38),n=r(42),i=r(26);function o(t,r){const o=n.decodeToken(t),a=o.payload;if(!a.hasOwnProperty("subject"))throw new Error("Token doesn't have a subject");if(!a.subject.hasOwnProperty("publicKey"))throw new Error("Token doesn't have a subject public key");if(!a.hasOwnProperty("issuer"))throw new Error("Token doesn't have an issuer");if(!a.issuer.hasOwnProperty("publicKey"))throw new Error("Token doesn't have an issuer public key");if(!a.hasOwnProperty("claim"))throw new Error("Token doesn't have a claim");const s=a.issuer.publicKey,u=Buffer.from(s,"hex"),c=e.ECPair.fromPublicKey(u,{compressed:!0}),l=i.ecPairToAddress(c),f=e.ECPair.fromPublicKey(u,{compressed:!1}),h=i.ecPairToAddress(f);if(r===s);else if(r===l);else if(r!==h)throw new Error("Token issuer public key does not match the verifying value");const d=new n.TokenVerifier(o.header.alg,s);if(!d)throw new Error("Invalid token verifier");if(!d.verify(t))throw new Error("Token verification failed");return o}t.signProfileToken=function(e,t,r,o,a="ES256K",s=new Date,u=i.nextYear()){if("ES256K"!==a)throw new Error("Signing algorithm not supported");const c=n.SECP256K1Client.derivePublicKey(t);r||(r={publicKey:c}),o||(o={publicKey:c});const l=new n.TokenSigner(a,t),f={jti:i.makeUUID4(),iat:s.toISOString(),exp:u.toISOString(),subject:r,issuer:o,claim:e};return l.sign(f)},t.wrapProfileToken=function(e){return{token:e,decodedToken:n.decodeToken(e)}},t.verifyProfileToken=o,t.extractProfile=function(e,t=null){let r,i={};(r=t?o(e,t):n.decodeToken(e)).hasOwnProperty("payload")&&r.payload.hasOwnProperty("claim")&&(i=r.payload.claim);return i}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer=void 0!==Buffer,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var e=new ArrayBuffer(0);try{t.blob=0===new Blob([e],{type:"application/zip"}).size}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(e),t.blob=0===n.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!r(271).Readable}catch(e){t.nodestream=!1}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(e[n]=r[n])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;ovoid 0!==t?t:t=e()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";e.exports={prop:function(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){let e=r.call(this);return this[t]=e,e},set:function(e){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:e,writable:!0})}})},value:function(e){let t;return function(){return void 0!==t?t:t=e()}}}},function(e,t,r){"use strict";var n=e.exports;[r(551),r(555),r(556),r(557),r(558),r(559)].forEach(function(e){Object.keys(e).forEach(function(t){n[t]=e[t].bind(n)})})},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;u=r(13),o=u.X64Word,a=u.X64WordArray,n=r(33).Hasher,e=function(){function e(){this.K=this.convert([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]),this.I=new a(this.convert([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])),this.W=function(){var e,t;for(t=[],e=0;e<80;++e)t.push(new o(0,0));return t}()}return e.convert=function(e){var t,r,n,i;for(i=[],t=r=0,n=e.length;r>>1|(te=Q.low)<<31)^(ee>>>8|te<<24)^ee>>>7,J=(te>>>1|ee<<31)^(te>>>8|ee<<24)^(te>>>7|ee<<25),re=((oe=(ie=C[fe-2]).high)>>>19|(ae=ie.low)<<13)^(oe<<3|ae>>>29)^oe>>>6,ne=(ae>>>19|oe<<13)^(ae<<3|oe>>>29)^(ae>>>6|oe<<26),B=(B=(B=X+(D=C[fe-7]).high+((N=J+D.low)>>>0>>0?1:0))+re+((N+=ne)>>>0>>0?1:0))+(I=C[fe-16]).high+((N+=M=I.low)>>>0>>0?1:0),j.high=B,j.low=N),L=W&Z^~W&se,q=G&Y^~G&ue,he=z&F^z&$^F&$,de=R&U^R&H^U&H,pe=(z>>>28|R<<4)^(z<<30|R>>>2)^(z<<25|R>>>7),me=(R>>>28|z<<4)^(R<<30|z>>>2)^(R<<25|z>>>7),ge=ce+((W>>>14|G<<18)^(W>>>18|G<<14)^(W<<23|G>>>9))+((ve=le+((G>>>14|W<<18)^(G>>>18|W<<14)^(G<<23|W>>>9)))>>>0>>0?1:0),ce=se,le=ue,se=Z,ue=Y,Z=W,Y=G,W=V+(ge=(ge=(ge=ge+L+((ve+=q)>>>0>>0?1:0))+(P=s.K[fe]).high+((ve+=T=P.low)>>>0>>0?1:0))+B+((ve+=N)>>>0>>0?1:0))+((G=K+ve|0)>>>0>>0?1:0)|0,V=$,K=H,$=F,H=U,F=z,U=R,z=ge+(pe+he+((be=me+de)>>>0>>0?1:0))+((R=ve+be|0)>>>0>>0?1:0)|0;return o=n.low=o+R,n.high=i+z+(o>>>0>>0?1:0),c=a.low=c+U,a.high=u+F+(c>>>0>>0?1:0),h=l.low=h+H,l.high=f+$+(h>>>0>>0?1:0),m=d.low=m+K,d.high=p+V+(m>>>0>>0?1:0),b=g.low=b+G,g.high=v+W+(b>>>0>>0?1:0),w=y.low=w+Y,y.high=_+Z+(w>>>0>>0?1:0),x=k.low=x+ue,k.high=S+se+(x>>>0>>0?1:0),O=E.low=O+le,E.high=A+ce+(O>>>0>>0?1:0)},t.prototype._doFinalize=function(){var e,t,r;return e=this._data.words,r=8*this._nDataBytes,e[(t=8*this._data.sigBytes)>>>5]|=128<<24-t%32,e[30+(t+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(t+128>>>10<<5)]=r,this._data.sigBytes=4*e.length,this._process(),this._hash.toX32()},t.prototype.copy_to=function(e){return t.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(),t.transform=function(e){var t;return t=(new i).finalize(e),e.scrub(),t}}).call(this)},function(e,t,r){"use strict";e.exports=r(629)},function(e,t,r){"use strict";var Buffer=r(2).Buffer;function n(e,t){this._block=Buffer.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=Buffer.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t,r){"use strict";for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",i={},o=0;o>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function u(e){for(var t=1,r=0;r126)throw new Error("Invalid prefix ("+e+")");t=s(t)^n>>5}for(t=s(t),r=0;r=r;)o-=r,s.push(i>>o&a);if(n)o>0&&s.push(i<=t)throw new Error("Excess padding");if(i<t)throw new TypeError("Exceeds length limit");var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)throw new Error("Mixed-case string "+e);var o=(e=r).lastIndexOf("1");if(-1===o)throw new Error("No separator character for "+e);if(0===o)throw new Error("Missing prefix for "+e);var a=e.slice(0,o),c=e.slice(o+1);if(c.length<6)throw new Error("Data too short");for(var l=u(a),f=[],h=0;h=c.length||f.push(p)}if(1!==l)throw new Error("Invalid checksum for "+e);return{prefix:a,words:f}},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");for(var i=u(e=e.toLowerCase()),o=e+"1",a=0;a>5!=0)throw new Error("Non 5-bit word");i=s(i)^c,o+=n.charAt(c)}for(a=0;a<6;++a)i=s(i);for(i^=1,a=0;a<6;++a){var l=i>>5*(5-a)&31;o+=n.charAt(l)}return o},toWords:function(e){return c(e,8,5,!0)},fromWords:function(e){return c(e,5,8,!1)}}},function(e,t,r){"use strict";e.exports=r(381).default,e.exports.default=e.exports},function(e,t,r){"use strict";const n=t;n.bignum=r(7),n.define=r(428).define,n.base=r(75),n.constants=r(210),n.decoders=r(432),n.encoders=r(434)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(14),n=r(38);function i(t){return t||(t=32),e.randomBytes(t)}t.getEntropy=i,t.makeECPrivateKey=function(){return n.ECPair.makeRandom({rng:i}).privateKey.toString("hex")},t.publicKeyToAddress=function(e){const t=Buffer.from(e,"hex"),r=n.crypto.hash160(t);return n.address.toBase58Check(r,0)},t.getPublicKeyFromPrivate=function(e){return n.ECPair.fromPrivateKey(Buffer.from(e,"hex")).publicKey.toString("hex")}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(126);const n=r(252);t.Service=class{static validateProof(e,t,r=null){let i;return Promise.resolve().then(()=>(i=this.getProofUrl(e),fetch(i))).then(e=>{if(200!==e.status)throw new Error(`Proof url ${i} returned unexpected http status ${e.status}.\n Unable to validate proof.`);return e.text()}).then(i=>{if(this.shouldValidateIdentityInBody()&&e.identifier!==this.getProofIdentity(i))return e;const o=this.getProofStatement(i);return e.valid=n.containsValidProofStatement(o,r)||n.containsValidAddressProofStatement(o,t),e}).catch(t=>(console.error(t),e.valid=!1,e))}static getBaseUrls(){return[]}static getProofIdentity(e){return e}static getProofStatement(e){return e}static shouldValidateIdentityInBody(){return!1}static prefixScheme(e){return e.startsWith("https://")||e.startsWith("http://")?e.startsWith("http://")?e.replace("http://","https://"):e:`https://${e}`}static getProofUrl(e){const t=this.getBaseUrls();let r=e.proof_url.toLowerCase();r=this.prefixScheme(r);for(let n=0;nthis.hasherBlockSizeBytes&&(this.key=this.hasher.finalize(this.key)),this.key.clamp(),this._oKey=this.key.clone(),this._iKey=this.key.clone(),r=n=0,o=this.hasherBlockSize;0<=o?no;r=0<=o?++n:--n)this._oKey.words[r]^=1549556828,this._iKey.words[r]^=909522486;this._oKey.sigBytes=this._iKey.sigBytes=this.hasherBlockSizeBytes,this.reset()}return e.outputSize=64,e.prototype.outputSize=e.outputSize,e.prototype.get_output_size=function(){return this.hasher.output_size},e.prototype.reset=function(){return this.hasher.reset().update(this._iKey)},e.prototype.update=function(e){return this.hasher.update(e),this},e.prototype.finalize=function(e){var t,r,n;return t=this.hasher.finalize(e),this.hasher.reset(),r=this._oKey.clone().concat(t),n=this.hasher.finalize(r),t.scrub(),r.scrub(),n},e.prototype.scrub=function(){return this.key.scrub(),this._iKey.scrub(),this._oKey.scrub()},e}(),s=function(t){var r,n,i,o,a;return o=t.key,i=t.input,n=t.hash_class,a=(r=new e(o,n)).finalize(i.clamp()),r.scrub(),a},o=function(t,r){var n,i,o,s,c,l,f,h,d,p;d=a.findDeferral(arguments),o=t.key,i=t.input,c=t.progress_hook,s=t.klass,h=t.what,s||(s=e),h||(h="hmac_sha512"),n=new s(o),i.clamp(),f={update:function(e,t){return n.update(i.slice(e,t))},finalize:function(){return n.finalize()},default_n:1e3*n.hasherBlockSize},function(e){p=new a.Deferrals(e,{parent:d,filename:"/Users/max/src/keybase/triplesec/src/hmac.iced"}),u.bulk(i.sigBytes,f,{what:h,progress_hook:c,cb:p.defer({assign_fn:function(){return l=arguments[0]},lineno:137})}),p._fulfill()}(function(){return n.scrub(),r(l)})},t.HMAC_SHA256=function(t){function r(e){r.__super__.constructor.call(this,e,n)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r}(),t.HMAC=e,t.sign=s,t.bulk_sign=o}).call(this)},function(e,t,r){"use strict";for(var n=r(11),i=r(45),o=r(109),a=r(23),s=new Array(256),u=0;u<256;u++)s[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;s[254]=s[254]=1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}t.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,a,s=e.length,u=0;for(o=0;o>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t}(e)},t.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,a=e.length,u=new Array(2*a);for(r=0,t=0;t4)u[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&t1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return u.length!==r&&(u.subarray?u=u.subarray(0,r):u.length=r),n.applyFromCharCode(u)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(c,a),c.prototype.processChunk=function(e){var r=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=r;(r=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),r.set(o,this.leftOver.length)}else r=this.leftOver.concat(r);this.leftOver=null}var a=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+s[e[r]]>t?r:t}(r),u=r;a!==r.length&&(i.uint8array?(u=r.subarray(0,a),this.leftOver=r.subarray(a,r.length)):(u=r.slice(0,a),this.leftOver=r.slice(a,r.length))),this.push({data:t.utf8decode(u),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=c,n.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=l},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(21),n=r(86),i=r(28),o=r(176);let a=o._default;const s="Invalid mnemonic",u="Invalid entropy",c="Invalid mnemonic checksum",l="A wordlist is required but a default could not be found.\nPlease explicitly pass a 2048 word array explicitly.";function f(e,t,r){for(;e.lengthf(e.toString(2),"0",8)).join("")}function p(t){const r=8*t.length/32;return d([...e("sha256").update(t).digest()]).slice(0,r)}function m(e){return"mnemonic"+(e||"")}function g(e,t){if(!(t=t||a))throw new Error(l);const r=(e||"").normalize("NFKD").split(" ");if(r.length%3!=0)throw new Error(s);const n=r.map(e=>{const r=t.indexOf(e);if(-1===r)throw new Error(s);return f(r.toString(2),"0",11)}).join(""),i=32*Math.floor(n.length/33),o=n.slice(0,i),d=n.slice(i),m=o.match(/(.{1,8})/g).map(h);if(m.length<16)throw new Error(u);if(m.length>32)throw new Error(u);if(m.length%4!=0)throw new Error(u);const g=Buffer.from(m);if(p(g)!==d)throw new Error(c);return g.toString("hex")}function v(e,t){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"hex")),!(t=t||a))throw new Error(l);if(e.length<16)throw new TypeError(u);if(e.length>32)throw new TypeError(u);if(e.length%4!=0)throw new TypeError(u);const r=(d([...e])+p(e)).match(/(.{1,11})/g).map(e=>{const r=h(e);return t[r]});return"あいこくしん"===t[0]?r.join(" "):r.join(" ")}t.mnemonicToSeedSync=function(e,t){const r=Buffer.from((e||"").normalize("NFKD"),"utf8"),i=Buffer.from(m((t||"").normalize("NFKD")),"utf8");return n.pbkdf2Sync(r,i,2048,64,"sha512")},t.mnemonicToSeed=function(e,t){return new Promise((r,i)=>{try{const o=Buffer.from((e||"").normalize("NFKD"),"utf8"),a=Buffer.from(m((t||"").normalize("NFKD")),"utf8");n.pbkdf2(o,a,2048,64,"sha512",(e,t)=>e?i(e):r(t))}catch(e){return i(e)}})},t.mnemonicToEntropy=g,t.entropyToMnemonic=v,t.generateMnemonic=function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(u);return v((t=t||i)(e/8),r)},t.validateMnemonic=function(e,t){try{g(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){const t=o.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');a=t},t.getDefaultWordlist=function(){if(!a)throw new Error("No Default Wordlist set");return Object.keys(o.wordlists).filter(e=>"JA"!==e&&"EN"!==e&&o.wordlists[e].every((e,t)=>e===a[t]))[0]};var b=r(176);t.wordlists=b.wordlists}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(320);t.fromSeed=n.fromSeed,t.fromBase58=n.fromBase58,t.fromPublicKey=n.fromPublicKey,t.fromPrivateKey=n.fromPrivateKey},function(e,t,r){"use strict";(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(294),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(9))},function(e,t,r){"use strict";(function(Buffer){function e(e){return Object.prototype.toString.call(e)}t.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(t){return"[object RegExp]"===e(t)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(t){return"[object Date]"===e(t)},t.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=Buffer.isBuffer}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var Buffer=r(0).Buffer,n=r(3),i=r(165),o=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(e,t){return e<>>32-t}function p(e,t,r,n,i,o,a,s){return d(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return d(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return d(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return d(e+(t&n|r&~n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return d(e+(t^(r|~n))+o+a|0,s)+i|0}n(h,i),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,h=0|this._d,y=0|this._e,_=0|this._a,w=0|this._b,k=0|this._c,S=0|this._d,x=0|this._e,E=0;E<80;E+=1){var A,O;E<16?(A=p(r,n,i,h,y,e[a[E]],l[0],u[E]),O=b(_,w,k,S,x,e[s[E]],f[0],c[E])):E<32?(A=m(r,n,i,h,y,e[a[E]],l[1],u[E]),O=v(_,w,k,S,x,e[s[E]],f[1],c[E])):E<48?(A=g(r,n,i,h,y,e[a[E]],l[2],u[E]),O=g(_,w,k,S,x,e[s[E]],f[2],c[E])):E<64?(A=v(r,n,i,h,y,e[a[E]],l[3],u[E]),O=m(_,w,k,S,x,e[s[E]],f[3],c[E])):(A=b(r,n,i,h,y,e[a[E]],l[4],u[E]),O=p(_,w,k,S,x,e[s[E]],f[4],c[E])),r=y,y=h,h=d(i,10),i=n,n=A,_=x,x=S,S=d(k,10),k=w,w=O}var P=this._b+i+S|0;this._b=this._c+h+x|0,this._c=this._d+y+_|0,this._d=this._e+r+w|0,this._e=this._a+n+k|0,this._a=P},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer.alloc?Buffer.alloc(20):new Buffer(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){"use strict";var n=r(3),i=r(322),o=r(40),Buffer=r(2).Buffer,a=r(175),s=r(68),u=r(118),c=Buffer.alloc(128);function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=Buffer.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new s:u(e)).update(t).digest():t.length=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o)[^>]*$|#([\w\-]*)$)/;t.isHtml=function(e){if("<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3)return!0;var t=a.exec(e);return!(!t||!t[1])}},function(e,t,r){"use strict";e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(e,t,r){"use strict";(function(Buffer){(function(){var e,n,i,o,a,s,u,c,l,f,h,d,p,m={}.hasOwnProperty,g=function(e,t){for(var r in t)m.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};h=r(17),p=r(13),l=p.endian_reverse,u=p.WordArray,n=r(106).Counter,f=r(22).fixup_uint32,s=r(33).StreamCipher,d=r(22),c=function(e,t){var r,n,i,o;for(n=i=0,o=t.length;i>>25)+r|0)<<9|t>>>23)+h|0)<<13|t>>>19)+g|0)<<18|t>>>14,d^=(t=(n^=(t=(s^=(t=(v^=(t=d+n|0)<<7|t>>>25)+d|0)<<9|t>>>23)+v|0)<<13|t>>>19)+s|0)<<18|t>>>14,i^=(t=(p^=(t=(l^=(t=(u^=(t=i+p|0)<<7|t>>>25)+i|0)<<9|t>>>23)+u|0)<<13|t>>>19)+l|0)<<18|t>>>14,c^=(t=(o^=(t=(m^=(t=(f^=(t=c+o|0)<<7|t>>>25)+c|0)<<9|t>>>23)+f|0)<<13|t>>>19)+m|0)<<18|t>>>14,r^=(t=(f^=(t=(l^=(t=(n^=(t=r+f|0)<<7|t>>>25)+r|0)<<9|t>>>23)+n|0)<<13|t>>>19)+l|0)<<18|t>>>14,d^=(t=(h^=(t=(m^=(t=(p^=(t=d+h|0)<<7|t>>>25)+d|0)<<9|t>>>23)+p|0)<<13|t>>>19)+m|0)<<18|t>>>14,i^=(t=(v^=(t=(g^=(t=(o^=(t=i+v|0)<<7|t>>>25)+i|0)<<9|t>>>23)+o|0)<<13|t>>>19)+g|0)<<18|t>>>14,c^=(t=(u^=(t=(s^=(t=(a^=(t=c+u|0)<<7|t>>>25)+c|0)<<9|t>>>23)+a|0)<<13|t>>>19)+s|0)<<18|t>>>14;return[r,n,l,f,h,d,p,m,g,v,i,o,a,s,u,c]},e}(),i=function(e){function t(e,r){var n;if(t.__super__.constructor.call(this,20),this.key=e.clone().endian_reverse(),this.nonce=r.clone().endian_reverse(),(16!==this.key.sigBytes||8!==this.nonce.sigBytes)&&(32!==this.key.sigBytes||8!==(n=this.nonce.sigBytes)&&24!==n))throw new Error("Bad key/nonce lengths");24===this.nonce.sigBytes&&this.xsalsa_setup(),this.input=this.key_iv_setup(this.nonce,this.key),this._reset()}return g(t,o),t.prototype.sigma=u.from_buffer_le(new Buffer("expand 32-byte k")),t.prototype.tau=u.from_buffer_le(new Buffer("expand 16-byte k")),t.blockSize=64,t.prototype.blockSize=t.blockSize,t.keySize=32,t.prototype.keySize=t.keySize,t.ivSize=24,t.prototype.ivSize=t.ivSize,t.prototype.scrub=function(){return this.key.scrub(),this.nonce.scrub(),d.scrub_vec(this.input)},t.prototype.xsalsa_setup=function(){var e;return e=new u(this.nonce.words.slice(0,4)),this.nonce=new u(this.nonce.words.slice(4)),this.key=this.hsalsa20(e,this.key)},t.prototype.hsalsa20=function(e,t){var r,n,i,o;return(i=this.key_iv_setup(e,t))[8]=e.words[2],i[9]=e.words[3],o=this._core(i),n=[0,5,10,15,6,7,8,9],o=function(){var e,t,i;for(i=[],e=0,t=n.length;en;r=0<=n?++e:--e)t.push(this._generateBlock());return t}.call(this),o=(c=[]).concat.apply(c,t)),r=a=0,s=o.length;a0;)this._i===t&&(this._generateBlockBuffer(),this._i=0),r=Math.min(e,t-this._i),n.push(r===t?this._buf:this._buf.slice(this._i,this._i+r)),this._i+=r,e-=r;return Buffer.concat(n)},t.prototype._generateBlockBuffer=function(){var e,t,r,n,i;for(this._buf=new Buffer(this.blockSize),t=n=0,i=(r=this._generateBlock()).length;n0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=p(u,c);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;a>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";t.pbkdf2=r(311),t.pbkdf2Sync=r(174)},function(e,t,r){"use strict";var n=t;n.base=r(330),n.short=r(331),n.mont=r(332),n.edwards=r(333)},function(e,t,r){"use strict";(function(Buffer){var t=r(35);function n(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function i(e,t,r){var n=new Buffer(r?34:33);return n.writeUInt8(e,0),t.copy(n,1),r&&(n[33]=1),n}e.exports={decode:function(e,r){return n(t.decode(e),r)},decodeRaw:n,encode:function(e,r,n){return"number"==typeof e?t.encode(i(e,r,n)):t.encode(i(e.version,e.privateKey,e.compressed))},encodeRaw:i}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var Buffer=r(2).Buffer;e.exports={check:function(e){if(e.length<8)return!1;if(e.length>72)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-2)return!1;if(2!==e[2])return!1;var t=e[3];if(0===t)return!1;if(5+t>=e.length)return!1;if(2!==e[4+t])return!1;var r=e[5+t];return!(0===r||6+t+r!==e.length||128&e[4]||t>1&&0===e[4]&&!(128&e[5])||128&e[t+6]||r>1&&0===e[t+6]&&!(128&e[t+7]))},decode:function(e){if(e.length<8)throw new Error("DER sequence length is too short");if(e.length>72)throw new Error("DER sequence length is too long");if(48!==e[0])throw new Error("Expected DER sequence");if(e[1]!==e.length-2)throw new Error("DER sequence length is invalid");if(2!==e[2])throw new Error("Expected DER integer");var t=e[3];if(0===t)throw new Error("R length is zero");if(5+t>=e.length)throw new Error("R length is too long");if(2!==e[4+t])throw new Error("Expected DER integer (2)");var r=e[5+t];if(0===r)throw new Error("S length is zero");if(6+t+r!==e.length)throw new Error("S length is invalid");if(128&e[4])throw new Error("R value is negative");if(t>1&&0===e[4]&&!(128&e[5]))throw new Error("R value excessively padded");if(128&e[t+6])throw new Error("S value is negative");if(r>1&&0===e[t+6]&&!(128&e[t+7]))throw new Error("S value excessively padded");return{r:e.slice(4,4+t),s:e.slice(6+t)}},encode:function(e,t){var r=e.length,n=t.length;if(0===r)throw new Error("R length is zero");if(0===n)throw new Error("S length is zero");if(r>33)throw new Error("R length is too long");if(n>33)throw new Error("S length is too long");if(128&e[0])throw new Error("R value is negative");if(128&t[0])throw new Error("S value is negative");if(r>1&&0===e[0]&&!(128&e[1]))throw new Error("R value excessively padded");if(n>1&&0===t[0]&&!(128&t[1]))throw new Error("S value excessively padded");var i=Buffer.allocUnsafe(6+r+n);return i[0]=48,i[1]=i.length-2,i[2]=2,i[3]=e.length,e.copy(i,4),i[4+r]=2,i[5+r]=t.length,t.copy(i,6+r),i}}},function(e,t,r){"use strict";function n(e,t){if("number"!=typeof e)throw new Error("cannot write a non-number as a number");if(e<0)throw new Error("specified a negative value for writing an unsigned value");if(e>t)throw new Error("RangeError: value out of range");if(Math.floor(e)!==e)throw new Error("value has a fractional component")}Object.defineProperty(t,"__esModule",{value:!0}),t.readUInt64LE=function(e,t){const r=e.readUInt32LE(t);let i=e.readUInt32LE(t+4);return n((i*=4294967296)+r,9007199254740991),i+r},t.writeUInt64LE=function(e,t,r){return n(t,9007199254740991),e.writeInt32LE(-1&t,r),e.writeUInt32LE(Math.floor(t/4294967296),r+4),r+8},t.reverseBuffer=function(e){if(e.length<1)return e;let t=e.length-1,r=0;for(let n=0;nn||e%1!=0)throw new RangeError("value out of range")}function o(e){return i(e),e<253?1:e<=65535?3:e<=4294967295?5:9}e.exports={encode:function e(t,r,n){if(i(t),r||(r=Buffer.allocUnsafe(o(t))),!Buffer.isBuffer(r))throw new TypeError("buffer must be a Buffer instance");return n||(n=0),t<253?(r.writeUInt8(t,n),e.bytes=1):t<=65535?(r.writeUInt8(253,n),r.writeUInt16LE(t,n+1),e.bytes=3):t<=4294967295?(r.writeUInt8(254,n),r.writeUInt32LE(t,n+1),e.bytes=5):(r.writeUInt8(255,n),r.writeUInt32LE(t>>>0,n+1),r.writeUInt32LE(t/4294967296|0,n+5),e.bytes=9),r},decode:function e(t,r){if(!Buffer.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");r||(r=0);var n=t.readUInt8(r);if(n<253)return e.bytes=1,n;if(253===n)return e.bytes=3,t.readUInt16LE(r+1);if(254===n)return e.bytes=5,t.readUInt32LE(r+1);e.bytes=9;var o=t.readUInt32LE(r+1),a=4294967296*t.readUInt32LE(r+5)+o;return i(a),a},encodingLength:o}},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),r(126);const e=r(42),n=r(59),i=r(26),o=r(99),a=r(141),s=r(32),u=r(71),c=r(100),l="1.3.1";function f(e,t){const r=a.encryptECIES(e,t),n=JSON.stringify(r);return Buffer.from(n).toString("hex")}t.generateTransitKey=function(){return n.makeECPrivateKey()},t.makeAuthRequest=function(t,r,a,f=u.DEFAULT_SCOPE,h,d=i.nextMonth().getTime(),p={}){t||(t=(new c.UserSession).generateAndStoreTransitKey());const m=e=>{const t="undefined"!=typeof window&&window.location&&window.location.origin;if(!t){const t=`\`makeAuthRequest\` called without the \`${e}\` param specified but`+" the default value uses `window.location.origin` which is not available in this environment";throw s.Logger.error(t),new Error(t)}return t};r||(r=`${m("redirectURI")}/`),a||(a=`${m("manifestURI")}/manifest.json`),h||(h=m("appDomain"));const g=Object.assign({},p,{jti:i.makeUUID4(),iat:Math.floor((new Date).getTime()/1e3),exp:Math.floor(d/1e3),iss:null,public_keys:[],domain_name:h,manifest_uri:a,redirect_uri:r,version:l,do_not_include_profile:!0,supports_hub_url:!0,scopes:f});s.Logger.info(`blockstack.js: generating v${l} auth request`);const v=e.SECP256K1Client.derivePublicKey(t);g.public_keys=[v];const b=n.publicKeyToAddress(v);return g.iss=o.makeDIDFromAddress(b),new e.TokenSigner("ES256k",t).sign(g)},t.encryptPrivateKey=f,t.decryptPrivateKey=function(e,t){const r=Buffer.from(t,"hex").toString(),n=JSON.parse(r),i=a.decryptECIES(e,n);if("string"!=typeof i)throw new Error("Unable to correctly decrypt private key");return i},t.makeAuthResponse=function(t,r={},a=null,u,c=null,h=null,d=i.nextMonth().getTime(),p=null,m=null,g=null,v=null){const b=e.SECP256K1Client.derivePublicKey(t),y=n.publicKeyToAddress(b);let _=h,w=c,k={};null!=h?(s.Logger.info(`blockstack.js: generating v${l} auth response`),null!=p&&(_=f(p,h),null!=c&&(w=f(p,c))),k={email:u.email?u.email:null,profile_url:u.profileUrl?u.profileUrl:null,hubUrl:m,blockstackAPIUrl:g,associationToken:v,version:l}):s.Logger.info("blockstack.js: generating legacy auth response");const S=Object.assign({},{jti:i.makeUUID4(),iat:Math.floor((new Date).getTime()/1e3),exp:Math.floor(d/1e3),iss:o.makeDIDFromAddress(y),private_key:_,public_keys:[b],profile:r,username:a,core_token:w},k);return new e.TokenSigner("ES256k",t).sign(S)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var Buffer=r(2).Buffer;function n(e){Buffer.isBuffer(e)||(e=Buffer.from(e));for(var t=e.length/4|0,r=new Array(t),n=0;n>>24]^l[p>>>16&255]^f[m>>>8&255]^h[255&g]^t[v++],a=c[p>>>24]^l[m>>>16&255]^f[g>>>8&255]^h[255&d]^t[v++],s=c[m>>>24]^l[g>>>16&255]^f[d>>>8&255]^h[255&p]^t[v++],u=c[g>>>24]^l[d>>>16&255]^f[p>>>8&255]^h[255&m]^t[v++],d=o,p=a,m=s,g=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[v++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&d])^t[v++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^t[v++],u=(n[g>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[v++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var l=e[a],f=e[l],h=e[f],d=257*e[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*f^257*l^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=l^e[e[e[h^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=n(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,u=s.SBOX[u>>>24]<<24|s.SBOX[u>>>16&255]<<16|s.SBOX[u>>>8&255]<<8|s.SBOX[255&u],u^=a[o/t|0]<<24):t>6&&o%t==4&&(u=s.SBOX[u>>>24]<<24|s.SBOX[u>>>16&255]<<16|s.SBOX[u>>>8&255]<<8|s.SBOX[255&u]),i[o]=i[o-t]^u}for(var c=[],l=0;l>>24]]^s.INV_SUB_MIX[1][s.SBOX[h>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[h>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},u.prototype.encryptBlockRaw=function(e){return o(e=n(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=Buffer.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),i=Buffer.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},u.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=u},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(115);e.exports=function(e,t,r,i){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"binary")),t&&(Buffer.isBuffer(t)||(t=Buffer.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,a=Buffer.alloc(o),s=Buffer.alloc(i||0),u=Buffer.alloc(0);o>0||i>0;){var c=new n;c.update(u),c.update(e),t&&c.update(t),u=c.digest();var l=0;if(o>0){var f=a.length-o;l=Math.min(o,u.length),u.copy(a,f,0,l),o-=l}if(l0){var h=s.length-i,d=Math.min(i,u.length-l);u.copy(s,h,l,l+d),i-=d}}return u.fill(0),{key:a,iv:s}}},function(e,t,r){"use strict";var n=r(407),i=r(418),o=r(419),a=r(129),s=r(86),Buffer=r(2).Buffer;function u(e){var t;"object"!=typeof e||Buffer.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=Buffer.from(e));var r,u,c=o(e,t),l=c.tag,f=c.data;switch(l){case"CERTIFICATE":u=n.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=n.PublicKey.decode(f,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=n.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+l);case"ENCRYPTED PRIVATE KEY":f=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,f=s.pbkdf2Sync(t,r,n,l,"sha1"),h=a.createDecipheriv(o,f,u),d=[];return d.push(h.update(c)),d.push(h.final()),Buffer.concat(d)}(f=n.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(r=(u=n.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:n.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=n.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+l);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=n.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw new Error("unknown key type "+l)}}e.exports=u,u.signature=n.signature},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,i.default)(t);r=String(r);if(!r)return e(t,4)||e(t,6);if("4"===r){if(!o.test(t))return!1;var n=t.split(".").sort(function(e,t){return e-t});return n[3]<=255}if("6"===r){var s=t.split(":"),u=!1,c=e(s[s.length-1],4),l=c?7:8;if(s.length>l)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(s.shift(),s.shift(),u=!0):"::"===t.substr(t.length-2)&&(s.pop(),s.pop(),u=!0);for(var f=0;f0&&f=1:s.length===l}return!1};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,a=/^[0-9A-F]{1,4}$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commaDecimal=t.dotDecimal=t.arabicLocales=t.englishLocales=t.decimal=t.alphanumeric=t.alpha=void 0;var n={"en-US":/^[A-Z]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ω]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/};t.alpha=n;var i={"en-US":/^[0-9A-Z]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/};t.alphanumeric=i;var o={"en-US":".",ar:"٫"};t.decimal=o;var a=["AU","GB","HK","IN","NZ","ZA","ZM"];t.englishLocales=a;for(var s,u=0;u{let c=null;try{(c=n.parseZoneFile(e)).hasOwnProperty("$origin")||(c=null)}catch(e){u(e)}let l=null;if(c&&Object.keys(c).length>0)(l=s(c))?fetch(l).then(e=>e.text()).then(e=>JSON.parse(e)).then(e=>{const n=e,o=i.extractProfile(n[0].token,t);r(o)}).catch(e=>{a.Logger.error(`resolveZoneFileToProfile: error fetching token file ${l}: ${e}`),u(e)}):(a.Logger.debug("Token file url not found. Resolving to blank profile."),r({}));else{let t=null;try{t=JSON.parse(e),t=o.Person.fromLegacyFormat(t).profile()}catch(e){u(e)}r(t)}})}},function(e,t,r){"use strict";e.exports=r(544)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(102)),o=r(44),a=r(239),s=r(101),u={type:"object",properties:{"@context":{type:"string",optional:!0},"@type":{type:"string"}}};class c{constructor(e={}){this._profile=Object.assign({},{"@context":"http://schema.org/"},e)}toJSON(){return Object.assign({},this._profile)}toToken(e){return o.signProfileToken(this.toJSON(),e)}static validateSchema(e,t=!1){return u.strict=t,i.default.validate(u,e)}static fromToken(e,t=null){const r=o.extractProfile(e,t);return new c(r)}static makeZoneFile(e,t){return s.makeProfileZoneFile(e,t)}static validateProofs(e){return a.validateProofs((new c).toJSON(),e)}}t.Profile=c},function(e,t,r){"use strict";(function(Buffer){var n=r(77);(t=e.exports=function(e,r){var n=t.evaluate(e,r),i=t.evaluate("",r)[0];return i.type="root",t.update(n,i),i}).evaluate=function(e,t){return"string"==typeof e||Buffer.isBuffer(e)?n.parseDOM(e,t):e},t.update=function(e,t){Array.isArray(e)||(e=[e]),t?t.children=e:t=null;for(var r=0;r-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?d.call(e):"";return t==o||t==a}(e)}function E(e){return x(e)?g(e):w(e)}function A(e){return e}e.exports=function(e,t){return(S(e)?u:y)(e,"function"==typeof t?t:A)}},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;u=r(17),o=r(13).WordArray,i=r(33).StreamCipher,n=function(){function e(e){var t,r;r=e.value,t=e.len,this._value=null!=r?r.clone():(null==t&&(t=2),new o(function(){var e,r;for(r=[],e=0;0<=t?et;0<=t?++e:--e)r.push(0);return r}()))}return e.prototype.WORD_MAX=4294967295,e.prototype.inc=function(){var t,r;for(t=!0,r=this._value.words.length-1;t&&r>=0;)++this._value.words[r]>e.WORD_MAX?this._value.words[r]=0:t=!1,r--;return this},e.prototype.inc_le=function(){var t,r;for(t=!0,r=0;t&&re.WORD_MAX?this._value.words[r]=0:t=!1,r++;return this},e.prototype.get=function(){return this._value},e.prototype.copy=function(){return this._value.clone()},e}(),e=function(e){function t(e){if(this.block_cipher=e.block_cipher,this.iv=e.iv,t.__super__.constructor.call(this),this.bsiw=this.block_cipher.blockSize/4,this.iv.sigBytes!==this.block_cipher.blockSize)throw new Error("IV is wrong length ("+this.iv.sigBytes+")");this.ctr=new n({value:this.iv})}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,i),t.prototype.scrub=function(){return this.block_cipher.scrub()},t.prototype.get_pad=function(){var e;return e=this.ctr.copy(),this.ctr.inc(),this.block_cipher.encryptBlock(e.words),e},t}(),s=function(t){var r,n,i,o,a;return r=t.block_cipher,o=t.iv,i=t.input,a=(n=new e({block_cipher:r,iv:o})).encrypt(i),n.scrub(),a},a=function(t,r){var n,i,o,a,s,c,l,f,h;f=u.findDeferral(arguments),n=t.block_cipher,a=t.iv,o=t.input,s=t.progress_hook,l=t.what,i=new e({block_cipher:n,iv:a}),function(e){h=new u.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/triplesec/src/ctr.iced"}),i.bulk_encrypt({input:o,progress_hook:s,what:l},h.defer({assign_fn:function(){return c=arguments[0]},lineno:121})),h._fulfill()}(function(){return r(c)})},t.Counter=n,t.Cipher=e,t.encrypt=s,t.bulk_encrypt=a}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c,l,f={}.hasOwnProperty,h=function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};l=r(62),i=l.HMAC,c=l.bulk_sign,a=r(53).SHA512,o=r(155).SHA3,s=r(13).WordArray,e=function(){function e(){this.hasherBlockSize=this.hashers[0].hasherBlockSize,this.hasherBlockSizeBytes=4*this.hasherBlockSize,this.reset()}return e.prototype.reset=function(){var e,t,r;for(e=0,t=(r=this.hashers).length;e>>32-t}function u(e,t,r,n,i,o,a){return s(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return s(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return s(e+(t^r^n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return s(e+(r^(t|~n))+i+o|0,a)+t|0}n(a,i),a.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,a=this._d;r=u(r,n,i,a,e[0],3614090360,7),a=u(a,r,n,i,e[1],3905402710,12),i=u(i,a,r,n,e[2],606105819,17),n=u(n,i,a,r,e[3],3250441966,22),r=u(r,n,i,a,e[4],4118548399,7),a=u(a,r,n,i,e[5],1200080426,12),i=u(i,a,r,n,e[6],2821735955,17),n=u(n,i,a,r,e[7],4249261313,22),r=u(r,n,i,a,e[8],1770035416,7),a=u(a,r,n,i,e[9],2336552879,12),i=u(i,a,r,n,e[10],4294925233,17),n=u(n,i,a,r,e[11],2304563134,22),r=u(r,n,i,a,e[12],1804603682,7),a=u(a,r,n,i,e[13],4254626195,12),i=u(i,a,r,n,e[14],2792965006,17),r=c(r,n=u(n,i,a,r,e[15],1236535329,22),i,a,e[1],4129170786,5),a=c(a,r,n,i,e[6],3225465664,9),i=c(i,a,r,n,e[11],643717713,14),n=c(n,i,a,r,e[0],3921069994,20),r=c(r,n,i,a,e[5],3593408605,5),a=c(a,r,n,i,e[10],38016083,9),i=c(i,a,r,n,e[15],3634488961,14),n=c(n,i,a,r,e[4],3889429448,20),r=c(r,n,i,a,e[9],568446438,5),a=c(a,r,n,i,e[14],3275163606,9),i=c(i,a,r,n,e[3],4107603335,14),n=c(n,i,a,r,e[8],1163531501,20),r=c(r,n,i,a,e[13],2850285829,5),a=c(a,r,n,i,e[2],4243563512,9),i=c(i,a,r,n,e[7],1735328473,14),r=l(r,n=c(n,i,a,r,e[12],2368359562,20),i,a,e[5],4294588738,4),a=l(a,r,n,i,e[8],2272392833,11),i=l(i,a,r,n,e[11],1839030562,16),n=l(n,i,a,r,e[14],4259657740,23),r=l(r,n,i,a,e[1],2763975236,4),a=l(a,r,n,i,e[4],1272893353,11),i=l(i,a,r,n,e[7],4139469664,16),n=l(n,i,a,r,e[10],3200236656,23),r=l(r,n,i,a,e[13],681279174,4),a=l(a,r,n,i,e[0],3936430074,11),i=l(i,a,r,n,e[3],3572445317,16),n=l(n,i,a,r,e[6],76029189,23),r=l(r,n,i,a,e[9],3654602809,4),a=l(a,r,n,i,e[12],3873151461,11),i=l(i,a,r,n,e[15],530742520,16),r=f(r,n=l(n,i,a,r,e[2],3299628645,23),i,a,e[0],4096336452,6),a=f(a,r,n,i,e[7],1126891415,10),i=f(i,a,r,n,e[14],2878612391,15),n=f(n,i,a,r,e[5],4237533241,21),r=f(r,n,i,a,e[12],1700485571,6),a=f(a,r,n,i,e[3],2399980690,10),i=f(i,a,r,n,e[10],4293915773,15),n=f(n,i,a,r,e[1],2240044497,21),r=f(r,n,i,a,e[8],1873313359,6),a=f(a,r,n,i,e[15],4264355552,10),i=f(i,a,r,n,e[6],2734768916,15),n=f(n,i,a,r,e[13],1309151649,21),r=f(r,n,i,a,e[4],4149444226,6),a=f(a,r,n,i,e[11],3174756917,10),i=f(i,a,r,n,e[2],718787259,15),n=f(n,i,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=a},function(e,t,r){"use strict";(t=e.exports=r(166)).Stream=t,t.Readable=t,t.Writable=r(117),t.Duplex=r(48),t.Transform=r(169),t.PassThrough=r(302)},function(e,t,r){"use strict";(function(t,n,i){var o=r(84);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;v.WritableState=g;var c=r(67);c.inherits=r(3);var l={deprecate:r(301)},f=r(167),Buffer=r(2).Buffer,h=i.Uint8Array||function(){};var d,p=r(168);function m(){}function g(e,t){s=s||r(48),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,r,n,t,i);else{var a=w(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(y,e,r,a,i):y(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||r(48),!(d.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function y(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function S(e,t){var r=w(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(v,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):d=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,Buffer.isBuffer(n)||n instanceof h);return s&&!Buffer.isBuffer(e)&&(e=function(e){return Buffer.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=m),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=Buffer.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=p.destroy,v.prototype._undestroy=p.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(20),r(66).setImmediate,r(9))},function(e,t,r){"use strict";(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(307),t.sha1=r(308),t.sha224=r(309),t.sha256=r(170),t.sha384=r(310),t.sha512=r(171)},function(e,t,r){"use strict";var n=t;n.utils=r(29),n.common=r(70),n.sha=r(335),n.ripemd=r(339),n.hmac=r(340),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n={Array:function(e){return null!=e&&e.constructor===Array},Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return null==e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};for(var i in n.Null=n.Nil,n)n[i].toJSON=function(e){return e}.bind(null,i);e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(351);t.embed=n.p2data;const i=r(354);t.p2ms=i.p2ms;const o=r(355);t.p2pk=o.p2pk;const a=r(356);t.p2pkh=a.p2pkh;const s=r(357);t.p2sh=s.p2sh;const u=r(358);t.p2wpkh=u.p2wpkh;const c=r(359);t.p2wsh=c.p2wsh},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(90),n=r(90),i=r(41),o=r(4),a=r(4),s=r(37),u=r(5),c=r(91);function l(e){const t=e.length;return c.encodingLength(t)+t}const f=Buffer.allocUnsafe(0),h=[],d=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),p=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),m=Buffer.from("ffffffffffffffff","hex"),g={script:f,valueBuffer:m};class v{constructor(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}static fromBuffer(t,r){let n=0;function i(e){return n+=e,t.slice(n-e,n)}function o(){const e=t.readUInt32LE(n);return n+=4,e}function a(){const r=e.readUInt64LE(t,n);return n+=8,r}function s(){const e=c.decode(t,n);return n+=c.decode.bytes,e}function u(){return i(s())}function l(){const e=s(),t=[];for(let r=0;r0!==e.witness.length)}weight(){return 3*this.__byteLength(!1)+this.__byteLength(!0)}virtualSize(){return Math.ceil(this.weight()/4)}byteLength(){return this.__byteLength(!0)}clone(){const e=new v;return e.version=this.version,e.locktime=this.locktime,e.ins=this.ins.map(e=>({hash:e.hash,index:e.index,script:e.script,sequence:e.sequence,witness:e.witness})),e.outs=this.outs.map(e=>({script:e.script,value:e.value})),e}hashForSignature(e,t,r){if(u(s.tuple(s.UInt32,s.Buffer,s.Number),arguments),e>=this.ins.length)return p;const n=o.compile(o.decompile(t).filter(e=>e!==a.OPS.OP_CODESEPARATOR)),c=this.clone();if((31&r)===v.SIGHASH_NONE)c.outs=[],c.ins.forEach((t,r)=>{r!==e&&(t.sequence=0)});else if((31&r)===v.SIGHASH_SINGLE){if(e>=this.outs.length)return p;c.outs.length=e+1;for(let t=0;t{r!==e&&(t.sequence=0)})}r&v.SIGHASH_ANYONECANPAY?(c.ins=[c.ins[e]],c.ins[0].script=n):(c.ins.forEach(e=>{e.script=f}),c.ins[e].script=n);const l=Buffer.allocUnsafe(c.__byteLength(!1)+4);return l.writeInt32LE(r,l.length-4),c.__toBuffer(l,0,!1),i.hash256(l)}hashForWitnessV0(t,r,n,o){u(s.tuple(s.UInt32,s.Buffer,s.Satoshi,s.UInt32),arguments);let a=Buffer.from([]),f=0;function h(e){f+=e.copy(a,f)}function p(e){f=a.writeUInt32LE(e,f)}function m(t){f=e.writeUInt64LE(a,t,f)}function g(e){var t;t=e.length,c.encode(t,a,f),f+=c.encode.bytes,h(e)}let b=d,y=d,_=d;if(o&v.SIGHASH_ANYONECANPAY||(a=Buffer.allocUnsafe(36*this.ins.length),f=0,this.ins.forEach(e=>{h(e.hash),p(e.index)}),y=i.hash256(a)),o&v.SIGHASH_ANYONECANPAY||(31&o)===v.SIGHASH_SINGLE||(31&o)===v.SIGHASH_NONE||(a=Buffer.allocUnsafe(4*this.ins.length),f=0,this.ins.forEach(e=>{p(e.sequence)}),_=i.hash256(a)),(31&o)!==v.SIGHASH_SINGLE&&(31&o)!==v.SIGHASH_NONE){const e=this.outs.reduce((e,t)=>e+8+l(t.script),0);a=Buffer.allocUnsafe(e),f=0,this.outs.forEach(e=>{m(e.value),g(e.script)}),b=i.hash256(a)}else if((31&o)===v.SIGHASH_SINGLE&&te+40+l(t.script),0)+this.outs.reduce((e,t)=>e+8+l(t.script),0)+(t?this.ins.reduce((e,t)=>e+function(e){const t=e.length;return c.encodingLength(t)+e.reduce((e,t)=>e+l(t),0)}(t.witness),0):0)}__toBuffer(t,r,n){t||(t=Buffer.allocUnsafe(this.__byteLength(n)));let i=r||0;function o(e){i+=e.copy(t,i)}function a(e){i=t.writeUInt8(e,i)}function s(e){i=t.writeUInt32LE(e,i)}function u(e){c.encode(e,t,i),i+=c.encode.bytes}function l(e){u(e.length),o(e)}var f;f=this.version,i=t.writeInt32LE(f,i);const h=n&&this.hasWitnesses();return h&&(a(v.ADVANCED_TRANSACTION_MARKER),a(v.ADVANCED_TRANSACTION_FLAG)),u(this.ins.length),this.ins.forEach(e=>{o(e.hash),s(e.index),l(e.script),s(e.sequence)}),u(this.outs.length),this.outs.forEach(r=>{!function(e){return void 0!==e.value}(r)?o(r.valueBuffer):function(r){i=e.writeUInt64LE(t,r,i)}(r.value),l(r.script)}),h&&this.ins.forEach(e=>{!function(e){u(e.length),e.forEach(l)}(e.witness)}),s(this.locktime),void 0!==r?t.slice(r,i):t}}v.DEFAULT_SEQUENCE=4294967295,v.SIGHASH_ALL=1,v.SIGHASH_NONE=2,v.SIGHASH_SINGLE=3,v.SIGHASH_ANYONECANPAY=128,v.ADVANCED_TRANSACTION_MARKER=0,v.ADVANCED_TRANSACTION_FLAG=1,t.Transaction=v}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(363);t.input=n;const i=r(364);t.output=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(366);t.input=n;const i=r(367);t.output=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(368);t.input=n;const i=r(369);t.output=i},function(e,t,r){"use strict";!function(e){if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(e){return e&&DataView.prototype.isPrototypeOf(e)},i=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};l.prototype.append=function(e,t){e=s(e),t=u(t);var r=this.map[e];this.map[e]=r?r+","+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=u(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),c(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),c(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var o=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var a=[301,302,303,307,308];b.redirect=function(e,t){if(-1===a.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.Headers=l,e.Request=g,e.Response=b,e.fetch=function(e,r){return new Promise(function(n,i){var o=new g(e,r),a=new XMLHttpRequest;a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new b(i,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&n(e))this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!i(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=p(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=h(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cryptoClients=t.SECP256K1Client=void 0;var n=r(383),i={ES256K:n.SECP256K1Client};t.SECP256K1Client=n.SECP256K1Client,t.cryptoClients=i},function(e,t,r){"use strict";t.utils=r(387),t.Cipher=r(388),t.DES=r(389),t.CBC=r(390),t.EDE=r(391)},function(e,t,r){"use strict";var n=r(392),i=r(400),o=r(196);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){"use strict";var n={ECB:r(393),CBC:r(394),CFB:r(395),CFB8:r(396),CFB1:r(397),OFB:r(398),CTR:r(194),GCM:r(194)},i=r(196);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){"use strict";(function(Buffer){var t=r(7),n=r(28);function i(e,r){var n=function(e){var r=o(e);return{blinder:r.toRed(t.mont(e.modulus)).redPow(new t(e.publicExponent)).fromRed(),unblinder:r.invm(e.modulus)}}(r),i=r.modulus.byteLength(),a=(t.mont(r.modulus),new t(e).mul(n.blinder).umod(r.modulus)),s=a.toRed(t.mont(r.prime1)),u=a.toRed(t.mont(r.prime2)),c=r.coefficient,l=r.prime1,f=r.prime2,h=s.redPow(r.exponent1),d=u.redPow(r.exponent2);h=h.fromRed(),d=d.fromRed();var p=h.isub(d).imul(c).umod(l);return p.imul(f),d.iadd(p),new Buffer(d.imul(n.unblinder).umod(r.modulus).toArray(!1,i))}function o(e){for(var r=e.modulus.byteLength(),i=new t(n(r));i.cmp(e.modulus)>=0||!i.umod(e.prime1)||!i.umod(e.prime2);)i=new t(n(r));return i}e.exports=i,i.getr=o}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===n(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,i.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));for(var r=e.split("."),o=0;o63)return!1;if(t.require_tld){var s=r.pop();if(!r.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(s))return!1}for(var u,c=0;c=this.ins.length)return m;const o=i.compile(i.decompile(t).filter(function(e){return e!==a.OP_CODESEPARATOR})),c=this.clone();if((31&r)===f.SIGHASH_NONE)c.outs=[],c.ins.forEach(function(t,r){r!==e&&(t.sequence=0)});else if((31&r)===f.SIGHASH_SINGLE){if(e>=this.outs.length)return m;c.outs.length=e+1;for(var l=0;l 32-byte BN for encryption. Failing.")}t.getHexFromBN=c,t.encryptECIES=function(e,t){const r="string"==typeof t,n=Buffer.from(t),o=a.keyFromPublic(e,"hex").getPublic(),l=a.genKeyPair(),f=l.getPublic(),h=c(l.derive(o)),d=u(Buffer.from(h,"hex")),p=i.default.randomBytes(16),m=function(e,t,r){const n=i.default.createCipheriv("aes-256-cbc",t,e);return Buffer.concat([n.update(r),n.final()])}(p,d.encryptionKey,n),g=Buffer.concat([p,Buffer.from(f.encodeCompressed()),m]),v=s(d.hmacKey,g);return{iv:p.toString("hex"),ephemeralPK:f.encodeCompressed("hex"),cipherText:m.toString("hex"),mac:v.toString("hex"),wasString:r}},t.decryptECIES=function(e,t){const r=a.keyFromPrivate(e,"hex"),n=a.keyFromPublic(t.ephemeralPK,"hex").getPublic(),o=r.derive(n),l=u(Buffer.from(c(o),"hex")),f=Buffer.from(t.iv,"hex"),h=Buffer.from(t.cipherText,"hex"),d=Buffer.concat([f,Buffer.from(n.encodeCompressed()),h]),p=s(l.hmacKey,d);if(!function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,r){"use strict";var n=r(60),i=r(552),o={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var r="",i=0;i",e.children&&(r+=s(e.children,t)),a[e.name]&&!t.xmlMode||(r+="")):r+="/>",r}function c(e){return"<"+e.data+">"}function l(e,t){var r=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in o||(r=i.encodeXML(r)),r}function f(e){return""}function h(e){return"\x3c!--"+e.data+"--\x3e"}},function(e,t,r){"use strict";(function(t){var r="Expected a function",n="__lodash_placeholder__",i=1,o=2,a=4,s=8,u=16,c=32,l=64,f=128,h=512,d=1/0,p=9007199254740991,m=1.7976931348623157e308,g=NaN,v=[["ary",f],["bind",i],["bindKey",o],["curry",s],["curryRight",u],["flip",h],["partial",c],["partialRight",l],["rearg",256]],b="[object Function]",y="[object GeneratorFunction]",_="[object Symbol]",w=/^\s+|\s+$/g,k=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,S=/\{\n\/\* \[wrapped with (.+)\] \*/,x=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,O=/^\[object .+?Constructor\]$/,P=/^0o[0-7]+$/i,T=/^(?:0|[1-9]\d*)$/,C=parseInt,j="object"==typeof t&&t&&t.Object===Object&&t,I="object"==typeof self&&self&&self.Object===Object&&self,M=j||I||Function("return this")();function D(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function B(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var i=e.length,o=r+(n?1:-1);for(;n?o--:++o-1}function N(e){return e!=e}function z(e,t){for(var r=-1,i=e.length,o=0,a=[];++r2?F:void 0);function Q(e){return!(!he(e)||function(e){return!!H&&H in e}(e))&&(function(e){var t=he(e)?W.call(e):"";return t==b||t==y}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?G:O).test(function(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ee(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r,n=he(r=e.prototype)?Z(r):{},i=e.apply(n,t);return he(i)?i:n}}function te(e,t,r,n,a,c,l,d,p,m){var g=t&f,v=t&i,b=t&o,y=t&(s|u),_=t&h,w=b?void 0:ee(e);return function i(){for(var o=arguments.length,s=Array(o),u=o;u--;)s[u]=arguments[u];if(y)var f=ie(i),h=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&n++;return n}(s,f);if(n&&(s=function(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,u=t.length,c=Y(o-a,0),l=Array(u+c),f=!n;++s1&&s.reverse(),g&&p1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(k,"{\n/* [wrapped with "+t+"] */\n")}function ue(e,t){return!!(t=null==t?p:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e=0}},icontains:function(e,t){var r=t.toLowerCase();return function(t){return e(t)&&o(t).toLowerCase().indexOf(r)>=0}},"nth-child":function(e,t){var r=h(t);return r===g?r:r===m?b(e):function(t){for(var n=u(t),o=0,a=0;o=0;a--)if(i(n[a])){if(n[a]===t)break;o++}return r(o)&&e(t)}},"nth-of-type":function(e,t){var r=h(t);return r===g?r:r===m?b(e):function(t){for(var n=u(t),o=0,a=0;a=0;a--)if(i(n[a])){if(n[a]===t)break;l(n[a])===l(t)&&o++}return r(o)&&e(t)}},root:function(e){return function(t){return!a(t)&&e(t)}},scope:function(e,t,r,n){return n&&0!==n.length?1===n.length?function(t){return n[0]===t&&e(t)}:function(t){return n.indexOf(t)>=0&&e(t)}:y.root(e)},checkbox:v("type","checkbox"),file:v("type","file"),password:v("type","password"),radio:v("type","radio"),reset:v("type","reset"),image:v("type","image"),submit:v("type","submit")},_={empty:function(e){return!s(e).some(function(e){return i(e)||"text"===e.type})},"first-child":function(e){return function(e){for(var t=0;e&&t=0;r--){if(t[r]===e)return!0;if(i(t[r]))break}return!1},"first-of-type":function(e){for(var t=u(e),r=0;r=0;r--)if(i(t[r])){if(t[r]===e)return!0;if(l(t[r])===l(e))break}return!1},"only-of-type":function(e){for(var t=u(e),r=0,n=t.length;r1&&"scope"!==t)throw new SyntaxError("pseudo-selector :"+t+" requires an argument")}else if(1===e.length)throw new SyntaxError("pseudo-selector :"+t+" doesn't have any arguments")}var k=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;e.exports={compile:function(e,t,r,n){var i=t.name,o=t.data;if(r&&r.strict&&!k.test(i))throw SyntaxError(":"+i+" isn't part of CSS3");if("function"==typeof y[i])return w(y[i],i,o),y[i](e,o,r,n);if("function"==typeof _[i]){var a=_[i];return w(a,i,o),e===m?a:function(t){return a(t,o)&&e(t)}}throw new SyntaxError("unmatched pseudo-class :"+i)},filters:y,pseudos:_}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(38)),i=e(r(68)),o=e(r(7)),a=r(31);t.DUST_MINIMUM=5500,t.hash160=function(e){const t=n.default.crypto.sha256(e);return(new i.default).update(t).digest()},t.hash128=function(e){return Buffer.from(n.default.crypto.sha256(e).slice(0,16))};const s=10,u=41,c=107,l=9,f=25;function h(e,t){return s+e.reduce((e,t)=>e+function(e){return e&&e.script&&e.script.length>0?u+e.script.length:u+c}(t),0)+t.reduce((e,t)=>e+function(e){return e&&e.script&&e.script.length>0?l+e.script.length:l+f}(t),0)}function d(e){return e.__tx}function p(e){return e instanceof n.default.Transaction?e:d(e)}function m(e,t,r){const n=p(e),i=new Array(t);i.fill(null);const o=new Array(r);return o.fill(null),h([].concat(n.ins,i),[].concat(n.outs,o))}t.getTransactionInsideBuilder=d,t.estimateTXBytes=m,t.sumOutputValues=function(e){return p(e).outs.reduce((e,t)=>e+t.value,0)},t.decodeB40=function(e){const t=new o.default(40);return e.split("").reverse().map((e,r)=>new o.default("0123456789abcdefghijklmnopqrstuvwxyz-_.+".indexOf(e)).mul(t.pow(new o.default(r)))).reduce((e,t)=>e.add(t),new o.default(0)).toString(16,2)},t.addUTXOsToFund=function e(t,r,n,i,o=!0){if(0===r.length)throw new a.NotEnoughFundsError(n);const s=i*(m(t,1,0)-m(t,0,0));let u=n;o&&(u+=s);const c=r.filter(e=>e.value>=u);if(c.length>0){c.sort((e,t)=>e.value-t.value);const e=c[0];let r=e.value-n;return o&&(r-=s),t.addInput(e.tx_hash,e.tx_output_n),r}{r.sort((e,t)=>t.value-e.value);const u=r[0];if(s>=u.value)throw new a.NotEnoughFundsError(n);t.addInput(u.tx_hash,u.tx_output_n);let c=n-u.value;return o&&(c+=s),e(t,r.slice(1),c,i,o)}},t.signInputs=function(e,t,r){const n=d(e),i=n.ins.map(()=>t);r&&r.forEach(e=>{i[e.index]=e.signer});let o=Promise.resolve();for(let t=0;ti[t].signTransaction(e,t));return o.then(()=>e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(){e.exports={k:"__iced_k",k_noop:"__iced_k_noop",param:"__iced_p_",ns:"iced",runtime:"runtime",Deferrals:"Deferrals",deferrals:"__iced_deferrals",fulfill:"_fulfill",b_while:"_break",t_while:"_while",c_while:"_continue",n_while:"_next",n_arg:"__iced_next_arg",defer_method:"defer",slot:"__slot",assign_fn:"assign_fn",autocb:"autocb",retslot:"ret",trace:"__iced_trace",passed_deferral:"__iced_passed_deferral",findDeferral:"findDeferral",lineno:"lineno",parent:"parent",filename:"filename",funcname:"funcname",catchExceptions:"catchExceptions",runtime_modes:["node","inline","window","none","browserify","interp"],trampoline:"trampoline",context:"context",defer_arg:"__iced_defer_"}}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s={}.hasOwnProperty;n=r(33).BlockCipher,a=r(22).scrub_vec,o=function(){function e(){this.SBOX=[],this.INV_SBOX=[],this.SUB_MIX=function(){var e,t;for(t=[],e=0;e<4;++e)t.push([]);return t}(),this.INV_SUB_MIX=function(){var e,t;for(t=[],e=0;e<4;++e)t.push([]);return t}(),this.init(),this.RCON=[0,1,2,4,8,16,32,64,128,27,54]}return e.prototype.init=function(){var e,t,r,n,i,o,a,s,u,c;for(e=function(){var e,r;for(r=[],t=e=0;e<256;t=++e)t<128?r.push(t<<1):r.push(t<<1^283);return r}(),i=0,u=0,t=c=0;c<256;t=++c)r=(r=u^u<<1^u<<2^u<<3^u<<4)>>>8^255&r^99,this.SBOX[i]=r,this.INV_SBOX[r]=i,s=e[a=e[o=e[i]]],n=257*e[r]^16843008*r,this.SUB_MIX[0][i]=n<<24|n>>>8,this.SUB_MIX[1][i]=n<<16|n>>>16,this.SUB_MIX[2][i]=n<<8|n>>>24,this.SUB_MIX[3][i]=n,n=16843009*s^65537*a^257*o^16843008*i,this.INV_SUB_MIX[0][r]=n<<24|n>>>8,this.INV_SUB_MIX[1][r]=n<<16|n>>>16,this.INV_SUB_MIX[2][r]=n<<8|n>>>24,this.INV_SUB_MIX[3][r]=n,0===i?i=u=1:(i=o^e[e[e[s^o]]],u^=e[e[u]]);return!0},e}(),i=new o,e=function(e){function t(e){this._key=e.clone(),this._doReset()}return function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.keySize=32,t.prototype.keySize=t.keySize,t.ivSize=t.blockSize,t.prototype.ivSize=t.ivSize,t.prototype._doReset=function(){var e,t,r,n,o,a,s,u;for(r=this._key.words,t=this._key.sigBytes/4,this._nRounds=t+6,o=4*(this._nRounds+1),this._keySchedule=[],n=s=0;0<=o?so;n=0<=o?++s:--s)this._keySchedule[n]=n>>24,a=i.SBOX[a>>>24]<<24|i.SBOX[a>>>16&255]<<16|i.SBOX[a>>>8&255]<<8|i.SBOX[255&a],a^=i.RCON[n/t|0]<<24):t>6&&n%t==4&&(a=i.SBOX[a>>>24]<<24|i.SBOX[a>>>16&255]<<16|i.SBOX[a>>>8&255]<<8|i.SBOX[255&a]),this._keySchedule[n-t]^a);for(this._invKeySchedule=[],e=u=0;0<=o?uo;e=0<=o?++u:--u)n=o-e,a=this._keySchedule[n-(e%4?0:4)],this._invKeySchedule[e]=e<4||n<=4?a:i.INV_SUB_MIX[0][i.SBOX[a>>>24]]^i.INV_SUB_MIX[1][i.SBOX[a>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[a>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[255&a]];return!0},t.prototype.encryptBlock=function(e,t){return null==t&&(t=0),this._doCryptBlock(e,t,this._keySchedule,i.SUB_MIX,i.SBOX)},t.prototype.decryptBlock=function(e,t){var r,n;return null==t&&(t=0),r=[e[t+3],e[t+1]],e[t+1]=r[0],e[t+3]=r[1],this._doCryptBlock(e,t,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX),n=[e[t+3],e[t+1]],e[t+1]=n[0],e[t+3]=n[1],n},t.prototype.scrub=function(){return a(this._keySchedule),a(this._invKeySchedule),this._key.scrub()},t.prototype._doCryptBlock=function(e,t,r,n,i){var o,a,s,u,c,l,f,h,d,p,m;for(a=e[t]^r[0],s=e[t+1]^r[1],u=e[t+2]^r[2],c=e[t+3]^r[3],o=4,p=1,m=this._nRounds;1<=m?pm;1<=m?++p:--p)l=n[0][a>>>24]^n[1][s>>>16&255]^n[2][u>>>8&255]^n[3][255&c]^r[o++],f=n[0][s>>>24]^n[1][u>>>16&255]^n[2][c>>>8&255]^n[3][255&a]^r[o++],h=n[0][u>>>24]^n[1][c>>>16&255]^n[2][a>>>8&255]^n[3][255&s]^r[o++],d=n[0][c>>>24]^n[1][a>>>16&255]^n[2][s>>>8&255]^n[3][255&u]^r[o++],a=l,s=f,u=h,c=d;return l=(i[a>>>24]<<24|i[s>>>16&255]<<16|i[u>>>8&255]<<8|i[255&c])^r[o++],f=(i[s>>>24]<<24|i[u>>>16&255]<<16|i[c>>>8&255]<<8|i[255&a])^r[o++],h=(i[u>>>24]<<24|i[c>>>16&255]<<16|i[a>>>8&255]<<8|i[255&s])^r[o++],d=(i[c>>>24]<<24|i[a>>>16&255]<<16|i[s>>>8&255]<<8|i[255&u])^r[o++],e[t]=l,e[t+1]=f,e[t+2]=h,e[t+3]=d},t}(),t.AES=e}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a={}.hasOwnProperty;e=r(33).BlockCipher,o=r(22).scrub_vec,i=function(){return function(){this.P=[[169,103,179,232,4,253,163,118,154,146,128,120,228,221,209,56,13,198,53,152,24,247,236,108,67,117,55,38,250,19,148,72,242,208,139,48,132,84,223,35,25,91,61,89,243,174,162,130,99,1,131,46,217,81,155,124,166,235,165,190,22,12,227,97,192,140,58,245,115,44,37,11,187,78,137,107,83,106,180,241,225,230,189,69,226,244,182,102,204,149,3,86,212,28,30,215,251,195,142,181,233,207,191,186,234,119,57,175,51,201,98,113,129,121,9,173,36,205,249,216,229,197,185,77,68,8,134,231,161,29,170,237,6,112,178,210,65,123,160,17,49,194,39,144,32,246,96,255,150,92,177,171,158,156,82,27,95,147,10,239,145,133,73,238,45,79,143,59,71,135,109,70,214,62,105,100,42,206,203,47,252,151,5,122,172,127,213,26,75,14,167,90,40,20,63,41,136,60,76,2,184,218,176,23,85,31,138,125,87,199,141,116,183,196,159,114,126,21,34,18,88,7,153,52,110,80,222,104,101,188,219,248,200,168,43,64,220,254,50,164,202,16,33,240,211,93,15,0,111,157,54,66,74,94,193,224],[117,243,198,244,219,123,251,200,74,211,230,107,69,125,232,75,214,50,216,253,55,113,241,225,48,15,248,27,135,250,6,63,94,186,174,91,138,0,188,157,109,193,177,14,128,93,210,213,160,132,7,20,181,144,44,163,178,115,76,84,146,116,54,81,56,176,189,90,252,96,98,150,108,66,247,16,124,40,39,140,19,149,156,199,36,70,59,112,202,227,133,203,17,208,147,184,166,131,32,255,159,119,195,204,3,111,8,191,64,231,43,226,121,12,170,130,65,58,234,185,228,154,164,151,126,218,122,23,102,148,161,29,61,240,222,179,11,114,167,28,239,209,83,62,143,51,38,95,236,118,42,73,129,136,238,33,196,26,235,217,197,57,153,205,173,49,139,1,24,35,221,31,78,45,249,72,79,242,101,142,120,92,88,25,141,229,152,87,103,127,5,100,175,99,182,254,245,183,60,165,206,233,104,68,224,77,67,105,41,46,172,21,89,168,10,158,110,71,223,52,53,106,207,220,34,201,192,155,137,212,237,171,18,162,13,82,187,2,47,169,215,97,30,180,80,4,246,194,22,37,134,86,85,9,190,145]],this.P_00=1,this.P_01=0,this.P_02=0,this.P_03=1,this.P_04=1,this.P_10=0,this.P_11=0,this.P_12=1,this.P_13=1,this.P_14=0,this.P_20=1,this.P_21=1,this.P_22=0,this.P_23=0,this.P_24=0,this.P_30=0,this.P_31=1,this.P_32=1,this.P_33=0,this.P_34=1,this.GF256_FDBK=361,this.GF256_FDBK_2=this.GF256_FDBK/2,this.GF256_FDBK_4=this.GF256_FDBK/4,this.RS_GF_FDBK=333,this.SK_STEP=33686018,this.SK_BUMP=16843009,this.SK_ROTL=9}}(),n=new i,t.TwoFish=function(t){function r(e){this._key=e.clone(),this.gMDS0=[],this.gMDS1=[],this.gMDS2=[],this.gMDS3=[],this.gSubKeys=[],this.gSBox=[],this.k64Cnt=0,this._doReset()}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.keySize=32,r.prototype.keySize=r.keySize,r.ivSize=r.blockSize,r.prototype.ivSize=r.ivSize,r.prototype.getByte=function(e,t){return e>>>8*t&255},r.prototype.switchEndianness=function(e){return(255&e)<<24|(e>>8&255)<<16|(e>>16&255)<<8|e>>24&255},r.prototype.LFSR1=function(e){return e>>1^(0!=(1&e)?n.GF256_FDBK_2:0)},r.prototype.LFSR2=function(e){return e>>2^(0!=(2&e)?n.GF256_FDBK_2:0)^(0!=(1&e)?n.GF256_FDBK_4:0)},r.prototype.Mx_X=function(e){return e^this.LFSR2(e)},r.prototype.Mx_Y=function(e){return e^this.LFSR1(e)^this.LFSR2(e)},r.prototype.RS_rem=function(e){var t,r,i;return r=255&((t=e>>>24&255)<<1^(0!=(128&t)?n.RS_GF_FDBK:0)),e<<8^(i=t>>>1^(0!=(1&t)?n.RS_GF_FDBK>>>1:0)^r)<<24^r<<16^i<<8^t},r.prototype.RS_MDS_Encode=function(e,t){var r,n,i;for(r=t,n=0;n<4;++n)r=this.RS_rem(r);for(r^=e,i=0;i<4;++i)r=this.RS_rem(r);return r},r.prototype.F32=function(e,t){var r,i,o,a,s,u,c,l,f;return r=this.getByte(e,0),i=this.getByte(e,1),o=this.getByte(e,2),a=this.getByte(e,3),s=t[0],u=t[1],c=t[2],l=t[3],1===(f=3&this.k64Cnt)?this.gMDS0[255&n.P[n.P_01][r]^this.getByte(s,0)]^this.gMDS1[255&n.P[n.P_11][i]^this.getByte(s,1)]^this.gMDS2[255&n.P[n.P_21][o]^this.getByte(s,2)]^this.gMDS3[255&n.P[n.P_31][a]^this.getByte(s,3)]:(0===f&&(r=255&n.P[n.P_04][r]^this.getByte(l,0),i=255&n.P[n.P_14][i]^this.getByte(l,1),o=255&n.P[n.P_24][o]^this.getByte(l,2),a=255&n.P[n.P_34][a]^this.getByte(l,3)),(0===f||3===f)&&(r=255&n.P[n.P_03][r]^this.getByte(c,0),i=255&n.P[n.P_13][i]^this.getByte(c,1),o=255&n.P[n.P_23][o]^this.getByte(c,2),a=255&n.P[n.P_33][a]^this.getByte(c,3)),this.gMDS0[255&n.P[n.P_01][255&n.P[n.P_02][r]^this.getByte(u,0)]^this.getByte(s,0)]^this.gMDS1[255&n.P[n.P_11][255&n.P[n.P_12][i]^this.getByte(u,1)]^this.getByte(s,1)]^this.gMDS2[255&n.P[n.P_21][255&n.P[n.P_22][o]^this.getByte(u,2)]^this.getByte(s,2)]^this.gMDS3[255&n.P[n.P_31][255&n.P[n.P_32][a]^this.getByte(u,3)]^this.getByte(s,3)])},r.prototype.Fe32_0=function(e){return this.gSBox[0+2*(255&e)]^this.gSBox[1+2*(e>>>8&255)]^this.gSBox[512+2*(e>>>16&255)]^this.gSBox[513+2*(e>>>24&255)]},r.prototype.Fe32_3=function(e){return this.gSBox[0+2*(e>>>24&255)]^this.gSBox[1+2*(255&e)]^this.gSBox[512+2*(e>>>8&255)]^this.gSBox[513+2*(e>>>16&255)]},r.prototype._doReset=function(){var e,t,r,i,o,a,s,u,c,l,f,h,d,p,m,g,v,b,y,_,w,k,S,x,E,A,O;if(d=[],p=[],w=[],g=[],v=[],b=[],this.k64Cnt=this._key.words.length/2,this.k64Cnt<1)throw"Key size less than 64 bits";if(this.k64Cnt>4)throw"Key size larger than 256 bits";for(s=k=0;k<256;s=++k)u=255&n.P[0][s],g[0]=u,v[0]=255&this.Mx_X(u),b[0]=255&this.Mx_Y(u),u=255&n.P[1][s],g[1]=u,v[1]=255&this.Mx_X(u),b[1]=255&this.Mx_Y(u),this.gMDS0[s]=g[n.P_00]|v[n.P_00]<<8|b[n.P_00]<<16|b[n.P_00]<<24,this.gMDS1[s]=b[n.P_10]|b[n.P_10]<<8|v[n.P_10]<<16|g[n.P_10]<<24,this.gMDS2[s]=v[n.P_20]|b[n.P_20]<<8|g[n.P_20]<<16|b[n.P_20]<<24,this.gMDS3[s]=v[n.P_30]|g[n.P_30]<<8|b[n.P_30]<<16|v[n.P_30]<<24;for(s=S=0,A=this.k64Cnt;0<=A?SA;s=0<=A?++S:--S)y=2*s,d[s]=this.switchEndianness(this._key.words[y]),p[s]=this.switchEndianness(this._key.words[y+1]),w[this.k64Cnt-1-s]=this.RS_MDS_Encode(d[s],p[s]);for(s=x=0,20;x<20;s=++x)_=s*n.SK_STEP,e=this.F32(_,d),e+=t=(t=this.F32(_+n.SK_BUMP,p))<<8|t>>>24,this.gSubKeys[2*s]=e,e+=t,this.gSubKeys[2*s+1]=e<>>32-n.SK_ROTL;for(c=w[0],l=w[1],f=w[2],h=w[3],this.gSBox=[],O=[],s=E=0;E<256;s=++E)r=i=o=a=s,1===(m=3&this.k64Cnt)?(this.gSBox[2*s]=this.gMDS0[255&n.P[n.P_01][r]^this.getByte(c,0)],this.gSBox[2*s+1]=this.gMDS1[255&n.P[n.P_11][i]^this.getByte(c,1)],this.gSBox[2*s+512]=this.gMDS2[255&n.P[n.P_21][o]^this.getByte(c,2)],O.push(this.gSBox[2*s+513]=this.gMDS3[255&n.P[n.P_31][a]^this.getByte(c,3)])):(0===m&&(r=255&n.P[n.P_04][r]^this.getByte(h,0),i=255&n.P[n.P_14][i]^this.getByte(h,1),o=255&n.P[n.P_24][o]^this.getByte(h,2),a=255&n.P[n.P_34][a]^this.getByte(h,3)),0!==m&&3!==m||(r=255&n.P[n.P_03][r]^this.getByte(f,0),i=255&n.P[n.P_13][i]^this.getByte(f,1),o=255&n.P[n.P_23][o]^this.getByte(f,2),a=255&n.P[n.P_33][a]^this.getByte(f,3)),this.gSBox[2*s]=this.gMDS0[255&n.P[n.P_01][255&n.P[n.P_02][r]^this.getByte(l,0)]^this.getByte(c,0)],this.gSBox[2*s+1]=this.gMDS1[255&n.P[n.P_11][255&n.P[n.P_12][i]^this.getByte(l,1)]^this.getByte(c,1)],this.gSBox[2*s+512]=this.gMDS2[255&n.P[n.P_21][255&n.P[n.P_22][o]^this.getByte(l,2)]^this.getByte(c,2)],O.push(this.gSBox[2*s+513]=this.gMDS3[255&n.P[n.P_31][255&n.P[n.P_32][a]^this.getByte(l,3)]^this.getByte(c,3)]));return O},r.prototype.scrub=function(){return o(this.gSubKeys),o(this.gSBox),this._key.scrub()},r.prototype.decryptBlock=function(e,t){var r,n,i,o,a,s,u,c;for(null==t&&(t=0),s=this.switchEndianness(e[t])^this.gSubKeys[4],u=this.switchEndianness(e[t+1])^this.gSubKeys[5],o=this.switchEndianness(e[t+2])^this.gSubKeys[6],a=this.switchEndianness(e[t+3])^this.gSubKeys[7],r=39,c=0;c<16;c+=2)a^=(n=this.Fe32_0(s))+2*(i=this.Fe32_3(u))+this.gSubKeys[r--],o=(o<<1|o>>>31)^n+i+this.gSubKeys[r--],a=a>>>1|a<<31,u^=(n=this.Fe32_0(o))+2*(i=this.Fe32_3(a))+this.gSubKeys[r--],s=(s<<1|s>>>31)^n+i+this.gSubKeys[r--],u=u>>>1|u<<31;return e[t]=this.switchEndianness(o^this.gSubKeys[0]),e[t+1]=this.switchEndianness(a^this.gSubKeys[1]),e[t+2]=this.switchEndianness(s^this.gSubKeys[2]),e[t+3]=this.switchEndianness(u^this.gSubKeys[3])},r.prototype.encryptBlock=function(e,t){var r,n,i,o,a,s,u,c;for(null==t&&(t=0),o=this.switchEndianness(e[t])^this.gSubKeys[0],a=this.switchEndianness(e[t+1])^this.gSubKeys[1],s=this.switchEndianness(e[t+2])^this.gSubKeys[2],u=this.switchEndianness(e[t+3])^this.gSubKeys[3],r=8,c=0;c<16;c+=2)s=(s^=(n=this.Fe32_0(o))+(i=this.Fe32_3(a))+this.gSubKeys[r++])>>>1|s<<31,u=(u<<1|u>>>31)^n+2*i+this.gSubKeys[r++],o=(o^=(n=this.Fe32_0(s))+(i=this.Fe32_3(u))+this.gSubKeys[r++])>>>1|o<<31,a=(a<<1|a>>>31)^n+2*i+this.gSubKeys[r++];return e[t]=this.switchEndianness(s^this.gSubKeys[4]),e[t+1]=this.switchEndianness(u^this.gSubKeys[5]),e[t+2]=this.switchEndianness(o^this.gSubKeys[6]),e[t+3]=this.switchEndianness(a^this.gSubKeys[7])},r}()}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u={}.hasOwnProperty;o=r(13).WordArray,n=r(33).Hasher,e=function(){function e(){this.H=[],this.K=[],this.W=[],this.init()}return e.prototype.isPrime=function(e){var t,r,n;if(2===e||3===e||5===e||7===e)return!0;if(1===e||4===e||6===e||8===e||9===e)return!1;for(r=Math.ceil(Math.sqrt(e)),t=n=2;2<=r?n<=r:n>=r;t=2<=r?++n:--n)if(e%t==0)return!1;return!0},e.prototype.getFractionalBits=function(e){return 4294967296*(e-(0|e))|0},e.prototype.init=function(){var e,t,r;for(e=2,t=0,r=[];t<64;)this.isPrime(e)&&(t<8&&(this.H[t]=this.getFractionalBits(Math.pow(e,.5))),this.K[t]=this.getFractionalBits(Math.pow(e,1/3)),t++),r.push(e++);return r},e}(),a=new e,i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.output_size=32,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=new o(a.H.slice(0))},t.prototype.get_output_size=function(){return this.output_size},t.prototype._doProcessBlock=function(e,t){var r,n,i,o,s,u,c,l,f,h,d,p,m,g,v,b,y,_,w,k;for(r=this._hash.words,i=a.W,n=a.K,o=r[0],s=r[1],u=r[2],c=r[3],l=r[4],f=r[5],h=r[6],v=r[7],b=k=0;k<64;b=++k)b<16?i[b]=0|e[t+b]:(d=((p=i[b-15])<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=((g=i[b-2])<<15|g>>>17)^(g<<13|g>>>19)^g>>>10,i[b]=d+i[b-7]+m+i[b-16]),y=o&s^o&u^s&u,_=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),w=v+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&f^~l&h)+n[b]+i[b],v=h,h=f,f=l,l=c+w|0,c=u,u=s,s=o,o=w+(_+y)|0;return r[0]=r[0]+o|0,r[1]=r[1]+s|0,r[2]=r[2]+u|0,r[3]=r[3]+c|0,r[4]=r[4]+l|0,r[5]=r[5]+f|0,r[6]=r[6]+h|0,r[7]=r[7]+v|0},t.prototype._doFinalize=function(){var e,t,r,n;return t=(e=this._data).words,n=8*this._nDataBytes,t[(r=8*e.sigBytes)>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},t.prototype.scrub=function(){return this._hash.scrub()},t.prototype.copy_to=function(e){return t.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(),s=function(e){var t;return t=(new i).finalize(e),e.scrub(),t},t.SHA256=i,t.transform=s}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;u=r(13),o=u.WordArray,a=u.X64Word,u.X64WordArray,n=r(33).Hasher,e=function(){function e(){this.RHO_OFFSETS=[],this.PI_INDEXES=[],this.ROUND_CONSTANTS=[],this.T=[],this.compute_rho_offsets(),this.compute_pi_indexes(),this.compute_round_constants(),this.make_reusables()}return e.prototype.compute_rho_offsets=function(){var e,t,r,n,i,o;for(r=1,n=0,o=[],t=i=0;i<24;t=++i)this.RHO_OFFSETS[r+5*n]=(t+1)*(t+2)/2%64,e=(2*r+3*n)%5,r=n%5,o.push(n=e);return o},e.prototype.compute_pi_indexes=function(){var e,t,r,n;for(n=[],e=r=0;r<5;e=++r)n.push(function(){var r,n;for(n=[],t=r=0;r<5;t=++r)n.push(this.PI_INDEXES[e+5*t]=t+(2*e+3*t)%5*5);return n}.call(this));return n},e.prototype.compute_round_constants=function(){var e,t,r,n,i,o,s,u,c;for(e=1,c=[],r=s=0;s<24;r=++s){for(o=0,i=0,n=u=0;u<7;n=++u)1&e&&((t=(1<w;g=0<=w?++j:--j)n=16711935&((n=e[t+2*g])<<8|n>>>24)|4278255360&(n<<24|n>>>8),i=16711935&((i=e[t+2*g+1])<<8|i>>>24)|4278255360&(i<<24|i>>>8),(v=E[g]).high^=i,v.low^=n;for(U=[],S=I=0;I<24;S=++I){for(T=M=0;M<5;T=++M){for(P=O=0,C=D=0;D<5;C=++D)P^=(v=E[T+5*C]).high,O^=v.low;(c=r.T[T]).high=P,c.low=O}for(T=B=0;B<5;T=++B)for(m=r.T[(T+4)%5],d=(l=r.T[(T+1)%5]).high,h=l.low,P=m.high^(d<<1|h>>>31),O=m.low^(h<<1|d>>>31),C=N=0;N<5;C=++N)(v=E[T+5*C]).high^=P,v.low^=O;for(b=z=1;z<25;b=++z)_=(v=E[b]).high,y=v.low,(k=r.RHO_OFFSETS[b])<32?(P=_<>>32-k,O=y<>>32-k):(P=y<>>64-k,O=_<>>64-k),(u=r.T[r.PI_INDEXES[b]]).high=P,u.low=O;for(o=r.T[0],A=E[0],o.high=A.high,o.low=A.low,T=R=0;R<5;T=++R)for(C=F=0;F<5;C=++F)v=E[b=T+5*C],a=r.T[b],f=r.T[(T+1)%5+5*C],p=r.T[(T+2)%5+5*C],v.high=a.high^~f.high&p.high,v.low=a.low^~f.low&p.low;v=E[0],x=r.ROUND_CONSTANTS[S],v.high^=x.high,U.push(v.low^=x.low)}return U},t.prototype._doFinalize=function(){var e,t,r,n,i,a,s,u,c,l,f,h,d;for(r=(t=this._data).words,8*this._nDataBytes,c=8*t.sigBytes,e=32*this.blockSize,r[c>>>5]|=1<<24-c%32,r[(Math.ceil((c+1)/e)*e>>>5)-1]|=128,t.sigBytes=4*r.length,this._process(),h=this._state,f=(l=this.outputLength/8)/8,n=[],i=d=0;0<=f?df;i=0<=f?++d:--d)u=16711935&((u=(a=h[i]).high)<<8|u>>>24)|4278255360&(u<<24|u>>>8),s=16711935&((s=a.low)<<8|s>>>24)|4278255360&(s<<24|s>>>8),n.push(s),n.push(u);return new o(n,l)},t.prototype.copy_to=function(e){var r;return t.__super__.copy_to.call(this,e),e._state=function(){var e,t,n,i;for(i=[],e=0,t=(n=this._state).length;e1,(r=function(t){var n;if(n=function(){return o.trampoline(function(){return v?s+=1:s-=1,r(t)})},!0===v&&s>c||!1===v&&s>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var o=i,a=n+r;e^=-1;for(var s=n;s>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var o=i,a=n+r;e^=-1;for(var s=n;s>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},function(e,t,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(141);t.encryptECIES=n.encryptECIES,t.decryptECIES=n.decryptECIES,t.signECDSA=n.signECDSA,t.verifyECDSA=n.verifyECDSA,t.getHexFromBN=n.getHexFromBN;var i=r(257);t.encryptMnemonic=i.encryptMnemonic,t.decryptMnemonic=i.decryptMnemonic},function(e,t,r){"use strict";(function(r){var n,i,o;i=[],void 0===(o="function"==typeof(n=function(){function t(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){a(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype?function(e,r,a){var s=o.URL||o.webkitURL,u=document.createElement("a");r=r||e.name||"download",u.download=r,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?i(u):n(u.href)?t(e,r,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(u.href)},4e4),setTimeout(function(){i(u)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),r);else if(n(e))t(e,r,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){i(a)})}}:function(e,r,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,r,n);var a="application/octet-stream"===e.type,s=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var l=o.URL||o.webkitURL,f=l.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){l.revokeObjectURL(f)},4e4)}});o.saveAs=a.saveAs=a,e.exports=a})?n.apply(t,i):n)||(e.exports=o)}).call(this,r(9))},function(e,t,r){"use strict"; /*! * vue-router v3.0.6 * (c) 2019 Evan You * @license MIT - */function n(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function i(e,t){for(var r in t)e[r]=t[r];return e}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var r=t.props,n=t.children,o=t.parent,a=t.data;a.routerView=!0;for(var s=o.$createElement,u=r.name,c=o.$route,l=o._routerViewCache||(o._routerViewCache={}),f=0,h=!1;o&&o._routerRoot!==o;){var d=o.$vnode&&o.$vnode.data;d&&(d.routerView&&f++,d.keepAlive&&o._inactive&&(h=!0)),o=o.$parent}if(a.routerViewDepth=f,h)return s(l[u],a,n);var p=c.matched[f];if(!p)return l[u]=null,s();var m=l[u]=p.components[u];a.registerRouteInstance=function(e,t){var r=p.instances[u];(t&&r!==e||!t&&r===e)&&(p.instances[u]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){p.instances[u]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==p.instances[u]&&(p.instances[u]=e.componentInstance)};var g=a.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(c,p.props&&p.props[u]);if(g){g=a.props=i({},g);var v=a.attrs=a.attrs||{};for(var b in g)m.props&&b in m.props||(v[b]=g[b],delete g[b])}return s(m,a,n)}};var a=/[!'()*]/g,s=function(e){return"%"+e.charCodeAt(0).toString(16)},u=/%2C/g,c=function(e){return encodeURIComponent(e).replace(a,s).replace(u,",")},l=decodeURIComponent;function f(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var r=e.replace(/\+/g," ").split("="),n=l(r.shift()),i=r.length>0?l(r.join("=")):null;void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}),t):t}function h(e){var t=e?Object.keys(e).map(function(t){var r=e[t];if(void 0===r)return"";if(null===r)return c(t);if(Array.isArray(r)){var n=[];return r.forEach(function(e){void 0!==e&&(null===e?n.push(c(t)):n.push(c(t)+"="+c(e)))}),n.join("&")}return c(t)+"="+c(r)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}var d=/\/?$/;function p(e,t,r,n){var i=n&&n.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:b(t,i),matched:e?v(e):[]};return r&&(a.redirectedFrom=b(r,i)),Object.freeze(a)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"==typeof e){var t={};for(var r in e)t[r]=m(e[r]);return t}return e}var g=p(null,{path:"/"});function v(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function b(e,t){var r=e.path,n=e.query;void 0===n&&(n={});var i=e.hash;return void 0===i&&(i=""),(r||"/")+(t||h)(n)+i}function y(e,t){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(d,"")===t.path.replace(d,"")&&e.hash===t.hash&&_(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&_(e.query,t.query)&&_(e.params,t.params)))}function _(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(function(r){var n=e[r],i=t[r];return"object"==typeof n&&"object"==typeof i?_(n,i):String(n)===String(i)})}var w,k=[String,Object],S=[String,Array],x={name:"RouterLink",props:{to:{type:k,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:S,default:"click"}},render:function(e){var t=this,r=this.$router,n=this.$route,o=r.resolve(this.to,n,this.append),a=o.location,s=o.route,u=o.href,c={},l=r.options.linkActiveClass,f=r.options.linkExactActiveClass,h=null==l?"router-link-active":l,m=null==f?"router-link-exact-active":f,g=null==this.activeClass?h:this.activeClass,v=null==this.exactActiveClass?m:this.exactActiveClass,b=a.path?p(null,a,null,r):s;c[v]=y(n,b),c[g]=this.exact?c[v]:function(e,t){return 0===e.path.replace(d,"/").indexOf(t.path.replace(d,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var r in t)if(!(r in e))return!1;return!0}(e.query,t.query)}(n,b);var _=function(e){E(e)&&(t.replace?r.replace(a):r.push(a))},w={click:E};Array.isArray(this.event)?this.event.forEach(function(e){w[e]=_}):w[this.event]=_;var k={class:c};if("a"===this.tag)k.on=w,k.attrs={href:u};else{var S=function e(t){if(t)for(var r,n=0;n=0&&(t=e.slice(n),e=e.slice(0,n));var i=e.indexOf("?");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{path:e,query:r,hash:t}}(o.path||""),c=t&&t.path||"/",l=u.path?O(u.path,c,r||o.append):c,h=function(e,t,r){void 0===t&&(t={});var n,i=r||f;try{n=i(e||"")}catch(e){n={}}for(var o in t)n[o]=t[o];return n}(u.query,o.query,n&&n.options.parseQuery),d=o.hash||u.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:l,query:h,hash:d}}function Y(e,t){var r=W(e),n=r.pathList,i=r.pathMap,o=r.nameMap;function a(e,r,a){var s=Z(e,r,!1,t),c=s.name;if(c){var l=o[c];if(!l)return u(null,s);var f=l.regex.keys.filter(function(e){return!e.optional}).map(function(e){return e.name});if("object"!=typeof s.params&&(s.params={}),r&&"object"==typeof r.params)for(var h in r.params)!(h in s.params)&&f.indexOf(h)>-1&&(s.params[h]=r.params[h]);if(l)return s.path=K(l.path,s.params),u(l,s,a)}else if(s.path){s.params={};for(var d=0;d=e.length?r():e[i]?t(e[i],function(){n(i+1)}):n(i+1)};n(0)}function me(e){return function(t,r,i){var o=!1,a=0,s=null;ge(e,function(e,t,r,u){if("function"==typeof e&&void 0===e.cid){o=!0,a++;var c,l=ye(function(t){var n;((n=t).__esModule||be&&"Module"===n[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:w.extend(t),r.components[u]=t,--a<=0&&i()}),f=ye(function(e){var t="Failed to resolve async component "+u+": "+e;s||(s=n(e)?e:new Error(t),i(s))});try{c=e(l,f)}catch(e){f(e)}if(c)if("function"==typeof c.then)c.then(l,f);else{var h=c.component;h&&"function"==typeof h.then&&h.then(l,f)}}}),o||i()}}function ge(e,t){return ve(e.map(function(e){return Object.keys(e.components).map(function(r){return t(e.components[r],e.instances[r],e,r)})}))}function ve(e){return Array.prototype.concat.apply([],e)}var be="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function ye(e){var t=!1;return function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];if(!t)return t=!0,e.apply(this,r)}}var _e=function(e,t){this.router=e,this.base=function(e){if(!e)if(A){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function we(e,t,r,n){var i=ge(e,function(e,n,i,o){var a=function(e,t){"function"!=typeof e&&(e=w.extend(e));return e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map(function(e){return r(e,n,i,o)}):r(a,n,i,o)});return ve(n?i.reverse():i)}function ke(e,t){if(t)return function(){return e.apply(t,arguments)}}_e.prototype.listen=function(e){this.cb=e},_e.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},_e.prototype.onError=function(e){this.errorCbs.push(e)},_e.prototype.transitionTo=function(e,t,r){var n=this,i=this.router.match(e,this.current);this.confirmTransition(i,function(){n.updateRoute(i),t&&t(i),n.ensureURL(),n.ready||(n.ready=!0,n.readyCbs.forEach(function(e){e(i)}))},function(e){r&&r(e),e&&!n.ready&&(n.ready=!0,n.readyErrorCbs.forEach(function(t){t(e)}))})},_e.prototype.confirmTransition=function(e,t,r){var i=this,o=this.current,a=function(e){n(e)&&(i.errorCbs.length?i.errorCbs.forEach(function(t){t(e)}):console.error(e)),r&&r(e)};if(y(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),a();var s=function(e,t){var r,n=Math.max(e.length,t.length);for(r=0;r-1?decodeURI(e.slice(0,n))+e.slice(n):decodeURI(e)}else r>-1&&(e=decodeURI(e.slice(0,r))+e.slice(r));return e}function Pe(e){var t=window.location.href,r=t.indexOf("#");return(r>=0?t.slice(0,r):t)+"#"+e}function Te(e){se?he(Pe(e)):window.location.hash=e}function Ce(e){se?de(Pe(e)):window.location.replace(Pe(e))}var je=function(e){function t(t,r){e.call(this,t,r),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,r){var n=this;this.transitionTo(e,function(e){n.stack=n.stack.slice(0,n.index+1).concat(e),n.index++,t&&t(e)},r)},t.prototype.replace=function(e,t,r){var n=this;this.transitionTo(e,function(e){n.stack=n.stack.slice(0,n.index).concat(e),t&&t(e)},r)},t.prototype.go=function(e){var t=this,r=this.index+e;if(!(r<0||r>=this.stack.length)){var n=this.stack[r];this.confirmTransition(n,function(){t.index=r,t.updateRoute(n)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(_e),Ie=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Y(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!se&&!1!==e.fallback,this.fallback&&(t="hash"),A||(t="abstract"),this.mode=t,t){case"history":this.history=new Se(this,e.base);break;case"hash":this.history=new Ee(this,e.base,this.fallback);break;case"abstract":this.history=new je(this,e.base);break;default:0}},Me={currentRoute:{configurable:!0}};function De(e,t){return e.push(t),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}Ie.prototype.match=function(e,t,r){return this.matcher.match(e,t,r)},Me.currentRoute.get=function(){return this.history&&this.history.current},Ie.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var r=t.apps.indexOf(e);r>-1&&t.apps.splice(r,1),t.app===e&&(t.app=t.apps[0]||null)}),!this.app){this.app=e;var r=this.history;if(r instanceof Se)r.transitionTo(r.getCurrentLocation());else if(r instanceof Ee){var n=function(){r.setupListeners()};r.transitionTo(r.getCurrentLocation(),n,n)}r.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},Ie.prototype.beforeEach=function(e){return De(this.beforeHooks,e)},Ie.prototype.beforeResolve=function(e){return De(this.resolveHooks,e)},Ie.prototype.afterEach=function(e){return De(this.afterHooks,e)},Ie.prototype.onReady=function(e,t){this.history.onReady(e,t)},Ie.prototype.onError=function(e){this.history.onError(e)},Ie.prototype.push=function(e,t,r){this.history.push(e,t,r)},Ie.prototype.replace=function(e,t,r){this.history.replace(e,t,r)},Ie.prototype.go=function(e){this.history.go(e)},Ie.prototype.back=function(){this.go(-1)},Ie.prototype.forward=function(){this.go(1)},Ie.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},Ie.prototype.resolve=function(e,t,r){var n=Z(e,t=t||this.history.current,r,this),i=this.match(n,t),o=i.redirectedFrom||i.fullPath;return{location:n,route:i,href:function(e,t,r){var n="hash"===r?"#"+t:t;return e?P(e+"/"+n):n}(this.history.base,o,this.mode),normalizedTo:n,resolved:i}},Ie.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ie.prototype,Me),Ie.install=function e(t){if(!e.installed||w!==t){e.installed=!0,w=t;var r=function(e){return void 0!==e},n=function(e,t){var n=e.$options._parentVnode;r(n)&&r(n=n.data)&&r(n=n.registerRouteInstance)&&n(e,t)};t.mixin({beforeCreate:function(){r(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",o),t.component("RouterLink",x);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Ie.version="3.0.6",A&&window.Vue&&window.Vue.use(Ie),t.a=Ie},function(e,t,r){"use strict";var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(82).Transform;function i(e){n.call(this),this._block=Buffer.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3)(i,n),i.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e,t){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");Buffer.isBuffer(e)||(e=Buffer.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(e,t,r){"use strict";(function(t,n){var i=r(84);e.exports=b;var o,a=r(164);b.ReadableState=v;r(83).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(167),Buffer=r(2).Buffer,c=t.Uint8Array||function(){};var l=r(67);l.inherits=r(3);var f=r(298),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p=r(299),m=r(168);l.inherits(b,u);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(48));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(85).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||r(48),!(this instanceof b))return new b(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function y(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,a)):(i||(o=function(e,t){var r;n=t,Buffer.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===Buffer.prototype||(t=function(e){return Buffer.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):E(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=w?e=w:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),T(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(A,e,t))}function A(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=Buffer.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function j(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e0?C(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:y;function c(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",v),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",g),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",f);var d=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==M(o.pipes,e))&&!d&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){h("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",b),y()}function b(){h("onfinish"),e.removeListener("close",v),y()}function y(){h("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",v),e.once("finish",b),e.emit("pipe",r),o.flowing||(h("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(s,i),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,d=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)r[v]=e.readInt32BE(4*v);for(;v<64;++v)r[v]=0|(((t=r[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[v-7]+h(r[v-15])+r[v-16];for(var b=0;b<64;++b){var y=g+f(d)+u(d,p,m)+o[b]+r[b]|0,_=l(n)+c(n,i,a)|0;g=m,m=p,p=d,d=s+y|0,s=a,a=i,i=n,n=y+_|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},function(e,t,r){"use strict";var n=r(3),i=r(54),Buffer=r(2).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function s(){this.init(),this._w=a,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}n(s,i),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,v=0|this._fh,b=0|this._gh,y=0|this._hh,_=0|this._al,w=0|this._bl,k=0|this._cl,S=0|this._dl,x=0|this._el,E=0|this._fl,A=0|this._gl,O=0|this._hl,P=0;P<32;P+=2)t[P]=e.readInt32BE(4*P),t[P+1]=e.readInt32BE(4*P+4);for(;P<160;P+=2){var T=t[P-30],C=t[P-30+1],j=h(T,C),I=d(C,T),M=p(T=t[P-4],C=t[P-4+1]),D=m(C,T),B=t[P-14],N=t[P-14+1],z=t[P-32],R=t[P-32+1],F=I+N|0,U=j+B+g(F,I)|0;U=(U=U+M+g(F=F+D|0,D)|0)+z+g(F=F+R|0,R)|0,t[P]=U,t[P+1]=F}for(var $=0;$<160;$+=2){U=t[$],F=t[$+1];var L=c(r,n,i),q=c(_,w,k),H=l(r,_),V=l(_,r),K=f(s,x),W=f(x,s),G=o[$],Z=o[$+1],Y=u(s,v,b),X=u(x,E,A),J=O+W|0,Q=y+K+g(J,O)|0;Q=(Q=(Q=Q+Y+g(J=J+X|0,X)|0)+G+g(J=J+Z|0,Z)|0)+U+g(J=J+F|0,F)|0;var ee=V+q|0,te=H+L+g(ee,V)|0;y=b,O=A,b=v,A=E,v=s,E=x,s=a+Q+g(x=S+J|0,S)|0,a=i,S=k,i=n,k=w,n=r,w=_,r=Q+te+g(_=J+ee|0,J)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+k|0,this._dl=this._dl+S|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+A|0,this._hl=this._hl+O|0,this._ah=this._ah+r+g(this._al,_)|0,this._bh=this._bh+n+g(this._bl,w)|0,this._ch=this._ch+i+g(this._cl,k)|0,this._dh=this._dh+a+g(this._dl,S)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+v+g(this._fl,E)|0,this._gh=this._gh+b+g(this._gl,A)|0,this._hh=this._hh+y+g(this._hl,O)|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=s},function(e,t,r){"use strict";(function(Buffer){var t=Math.pow(2,30)-1;function r(e,t){if("string"!=typeof e&&!Buffer.isBuffer(e))throw new TypeError(t+" must be a buffer or string")}e.exports=function(e,n,i,o){if(r(e,"Password"),r(n,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0||o>t||o!=o)throw new TypeError("Bad key length")}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(20))},function(e,t,r){"use strict";var n=r(175),i=r(68),o=r(118),a=r(172),s=r(173),Buffer=r(2).Buffer,u=Buffer.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(29),i=r(70),o=r(179),a=r(16),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n21)throw new TypeError(e+" is too long");return{version:t.readUInt8(0),hash:t.slice(1)}}function l(e){const t=a.decode(e),r=a.fromWords(t.words.slice(1));return{version:t.words[0],prefix:t.prefix,data:Buffer.from(r)}}t.fromBase58Check=c,t.fromBech32=l,t.toBase58Check=function(e,t){u(o.tuple(o.Hash160bit,o.UInt8),arguments);const r=Buffer.allocUnsafe(21);return r.writeUInt8(t,0),e.copy(r,1),s.encode(r)},t.toBech32=function(e,t,r){const n=a.toWords(e);return n.unshift(t),a.encode(r,n)},t.fromOutputScript=function(t,r){r=r||e.bitcoin;try{return n.p2pkh({output:t,network:r}).address}catch(e){}try{return n.p2sh({output:t,network:r}).address}catch(e){}try{return n.p2wpkh({output:t,network:r}).address}catch(e){}try{return n.p2wsh({output:t,network:r}).address}catch(e){}throw new Error(i.toASM(t)+" has no matching Address")},t.toOutputScript=function(t,r){let i,o;r=r||e.bitcoin;try{i=c(t)}catch(e){}if(i){if(i.version===r.pubKeyHash)return n.p2pkh({hash:i.hash}).output;if(i.version===r.scriptHash)return n.p2sh({hash:i.hash}).output}else{try{o=l(t)}catch(e){}if(o){if(o.prefix!==r.bech32)throw new Error(t+" has an invalid prefix");if(0===o.version){if(20===o.data.length)return n.p2wpkh({hash:o.data}).output;if(32===o.data.length)return n.p2wsh({hash:o.data}).output}}}throw new Error(t+" has no matching Script")}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=r(10);function i(e){return ee.length)return null;r=e.readUInt8(t+1),i=2}else if(o===n.OP_PUSHDATA2){if(t+3>e.length)return null;r=e.readUInt16LE(t+1),i=3}else{if(t+5>e.length)return null;if(o!==n.OP_PUSHDATA4)throw new Error("Unexpected opcode");r=e.readUInt32LE(t+1),i=5}return{opcode:o,number:r,size:i}}}},function(e,t,r){"use strict";var n=r(10),i={};for(var o in n){i[n[o]]=o}e.exports=i},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(24),n=r(37),i=r(15),o=r(28),a=r(5),s=r(88),u=a.maybe(a.compile({compressed:n.maybe(n.Boolean),network:n.maybe(n.Network)}));class ECPair{constructor(t,r,n){this.__D=t,this.__Q=r,void 0===n&&(n={}),this.compressed=void 0===n.compressed||n.compressed,this.network=n.network||e.bitcoin,void 0!==r&&(this.__Q=i.pointCompress(r,this.compressed))}get privateKey(){return this.__D}get publicKey(){return this.__Q||(this.__Q=i.pointFromScalar(this.__D,this.compressed)),this.__Q}toWIF(){if(!this.__D)throw new Error("Missing private key");return s.encode(this.network.wif,this.__D,this.compressed)}sign(e,t=!1){if(!this.__D)throw new Error("Missing private key");if(!1===t)return i.sign(e,this.__D);{let t=i.sign(e,this.__D);const r=Buffer.alloc(32,0);let n=0;for(;t[0]>127;)n++,r.writeUIntLE(n,0,6),t=i.signWithEntropy(e,this.__D,r);return t}}verify(e,t){return i.verify(e,this.publicKey,t)}}function c(e,t){if(a(n.Buffer256bit,e),!i.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return a(u,t),new ECPair(e,void 0,t)}t.fromPrivateKey=c,t.fromPublicKey=function(e,t){return a(i.isPoint,e),a(u,t),new ECPair(void 0,e,t)},t.fromWIF=function(t,r){const i=s.decode(t),o=i.version;if(n.Array(r)){if(!(r=r.filter(e=>o===e.wif).pop()))throw new Error("Unknown network version")}else if(r=r||e.bitcoin,o!==r.wif)throw new Error("Invalid network version");return c(i.privateKey,{compressed:i.compressed,network:r})},t.makeRandom=function(e){a(u,e),void 0===e&&(e={});const t=e.rng||o;let r;do{r=t(32),a(n.Buffer256bit,r)}while(!i.isPrivate(r));return c(r,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){e.exports=function(e,t){if(!Array.isArray(e))throw TypeError("Expected values Array");if("function"!=typeof t)throw TypeError("Expected digest Function");for(var r=e.length,n=e.concat();r>1;){for(var i=0,o=0;o"Witness pubKeyHash output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){const t=n.compile(e);return 34===t.length&&t[0]===i.OPS.OP_0&&32===t[1]}t.check=o,o.toJSON=()=>"Witness scriptHash output"},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0});const i=r(191);try{i.protocolEchoReplyDetection()}catch(e){console.error(`Error performing global protocol echo reply detection: ${e}`)}n(r(379)),n(r(592)),n(r(233));var o=r(99);t.makeDIDFromAddress=o.makeDIDFromAddress,t.makeDIDFromPublicKey=o.makeDIDFromPublicKey,t.getDIDType=o.getDIDType,t.getAddressFromDID=o.getAddressFromDID;var a=r(58);t.getEntropy=a.getEntropy,t.makeECPrivateKey=a.makeECPrivateKey,t.publicKeyToAddress=a.publicKeyToAddress,t.getPublicKeyFromPrivate=a.getPublicKeyFromPrivate;var s=r(26);t.nextYear=s.nextYear,t.nextMonth=s.nextMonth,t.nextHour=s.nextHour,t.makeUUID4=s.makeUUID4,t.updateQueryStringParameter=s.updateQueryStringParameter,t.isLaterVersion=s.isLaterVersion,t.isSameOriginAbsoluteUrl=s.isSameOriginAbsoluteUrl,t.hexStringToECPair=s.hexStringToECPair,t.ecPairToHexString=s.ecPairToHexString,t.ecPairToAddress=s.ecPairToAddress;var u=r(597);t.transactions=u.transactions,t.safety=u.safety,t.PubkeyHashSigner=u.PubkeyHashSigner,t.addUTXOsToFund=u.addUTXOsToFund,t.estimateTXBytes=u.estimateTXBytes;var c=r(600);t.BlockstackWallet=c.BlockstackWallet;var l=r(228);t.network=l.network;var f=r(42);t.decodeToken=f.decodeToken;var h=r(39);t.config=h.config;var d=r(161);t.encryptMnemonic=d.encryptMnemonic,t.decryptMnemonic=d.decryptMnemonic;var p=r(100);t.UserSession=p.UserSession},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="_blockstackDidCheckEchoReply",i="echoReply",o="authContinuation";t.protocolEchoReplyDetection=function(){if("object"!=typeof window||!window.location||!window.localStorage)return!1;const e=window[n];if("boolean"==typeof e)return e;const t=new window.URLSearchParams(window.location.search),r=t.get(i);if(r){window[n]=!0;const e=`echo-reply-${r}`;return window.localStorage.setItem(e,"success"),window.setTimeout(()=>{const e=t.get(o);window.location.href=e},10),!0}return!1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(71);t.AppConfig=class{constructor(e=n.DEFAULT_SCOPE.slice(),t=window.location.origin,r="",i="/manifest.json",o=null,a=n.DEFAULT_BLOCKSTACK_HOST){this.appDomain=t,this.scopes=e,this.redirectPath=r,this.manifestPath=i,this.coreNode=o||n.DEFAULT_CORE_NODE,this.authenticatorURL=a}redirectURI(){return`${this.appDomain}${this.redirectPath}`}manifestURI(){return`${this.appDomain}${this.manifestPath}`}}},function(e){e.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},function(e,t,r){"use strict";var n=r(72),Buffer=r(2).Buffer,i=r(195);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),i=e._cache.length;e._cache=Buffer.concat([e._cache,Buffer.allocUnsafe(16*r)]);for(var a=0;ae;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(c))for(;r.mod(l).cmp(f);)r.iadd(d)}else for(;r.mod(o).cmp(h);)r.iadd(d);if(g(p=r.shrn(1))&&g(r)&&v(p)&&v(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){"use strict";var n=r(7),i=r(178);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),l=s.toRed(o);t>0;t--){var f=this._randrange(new n(2),s);r&&r(f);var h=f.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var d=1;d0;t--){var l=this._randrange(new n(2),a),f=e.gcd(l);if(0!==f.cmpn(1))return f;var h=l.toRed(i).redPow(u);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var d=1;d>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(i=new Buffer(2))[0]=o,i[1]=n.length,this._createEncoderBuffer([i,n]);for(var s=1,u=n.length;u>=256;u>>=8)s++;(i=new Buffer(2+s))[0]=o,i[1]=128|s;u=1+s;for(var c=n.length;c>0;u--,c>>=8)i[u]=255&c;return this._createEncoderBuffer([i,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new Buffer(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(n=0;n=128;o>>=7)i++}var a=new Buffer(i),s=a.length-1;for(n=e.length-1;n>=0;n--){o=e[n];for(a[s--]=127&o;(o>>=7)>0;)a[s--]=128|127&o}return this._createEncoderBuffer(a)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!Buffer.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new Buffer(r)}if(Buffer.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new Buffer(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var o=e;o>=256;o>>=8)n++;for(o=(i=new Array(n)).length-1;o>=0;o--)i[o]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new Buffer(i))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n>6],i=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function f(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;const i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(let t=0;t=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128){const e=new Buffer(2);return e[0]=i,e[1]=n.length,this._createEncoderBuffer([e,n])}let o=1;for(let e=n.length;e>=256;e>>=8)o++;const s=new Buffer(2+o);s[0]=i,s[1]=128|o;for(let e=1+o,t=n.length;t>0;e--,t>>=8)s[e]=255&t;return this._createEncoderBuffer([s,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=new Buffer(2*e.length);for(let r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let t=0;t=128;r>>=7)n++}const i=new Buffer(n);let o=i.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(i[o--]=127&r;(r>>=7)>0;)i[o--]=128|127&r}return this._createEncoderBuffer(i)},u.prototype._encodeTime=function(e,t){let r;const n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!Buffer.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=new Buffer(t)}if(Buffer.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=new Buffer(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;const n=new Array(r);for(let t=n.length-1;t>=0;t--)n[t]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(new Buffer(n))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){const n=this._baseState;let i;if(null===n.default)return!1;const o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i=r&&(void 0===n||a<=n)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);var r=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?o:a,n=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||et.gt;return r.test(e)&&n&&s&&u&&c};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)},t.fullWidth=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.fullWidth=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)},t.halfWidth=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.halfWidth=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);var r=t?new RegExp("^[".concat(t,"]+"),"g"):/^\s+/g;return e.replace(r,"")};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);for(var r=t?new RegExp("[".concat(t,"]")):/\s/,n=e.length-1;n>=0&&r.test(e[n]);n--);return nt)throw new TypeError("Script number overflow");if(r&&0==(127&e[n-1])&&(n<=1||0==(128&e[n-2])))throw new Error("Non-minimally encoded script number");if(5===n){const t=e.readUInt32LE(0),r=e.readUInt8(4);return 128&r?-(4294967296*(-129&r)+t):4294967296*r+t}let i=0;for(var o=0;o2147483647?5:e>8388607?4:e>32767?3:e>127?2:e>0?1:0}(t),n=Buffer.allocUnsafe(r),i=e<0;for(var o=0;o>=8;return 128&n[r-1]?n.writeUInt8(i?128:0,r-1):i&&(n[r-1]|=128),n}}},function(e,t,r){"use strict";const n=r(15),i=r(28),o=r(5),a=r(30),s=r(88),u=r(25),c=o.maybe(o.compile({compressed:a.maybe(a.Boolean),network:a.maybe(a.Network)}));function ECPair(e,t,r){r=r||{},this.compressed=void 0===r.compressed||r.compressed,this.network=r.network||u.bitcoin,this.__d=e||null,this.__Q=null,t&&(this.__Q=n.pointCompress(t,this.compressed))}function l(e,t){if(o(a.Buffer256bit,e),!n.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return o(c,t),new ECPair(e,null,t)}Object.defineProperty(ECPair.prototype,"privateKey",{enumerable:!1,get:function(){return this.__d}}),Object.defineProperty(ECPair.prototype,"publicKey",{get:function(){return this.__Q||(this.__Q=n.pointFromScalar(this.__d,this.compressed)),this.__Q}}),ECPair.prototype.toWIF=function(){if(!this.__d)throw new Error("Missing private key");return s.encode(this.network.wif,this.__d,this.compressed)},ECPair.prototype.sign=function(e){if(!this.__d)throw new Error("Missing private key");return n.sign(e,this.__d)},ECPair.prototype.verify=function(e,t){return n.verify(e,this.publicKey,t)},e.exports={makeRandom:function(e){o(c,e);const t=(e=e||{}).rng||i;let r;do{r=t(32),o(a.Buffer256bit,r)}while(!n.isPrivate(r));return l(r,e)},fromPrivateKey:l,fromPublicKey:function(e,t){return o(n.isPoint,e),o(c,t),new ECPair(null,e,t)},fromWIF:function(e,t){const r=s.decode(e),n=r.version;if(a.Array(t)){if(!(t=t.filter(function(e){return n===e.wif}).pop()))throw new Error("Unknown network version")}else if(t=t||u.bitcoin,n!==t.wif)throw new Error("Invalid network version");return l(r.privateKey,{compressed:r.compressed,network:t})}}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(55),i=r(35),o=r(8),a=r(25),s=r(5),u=r(30),c=r(137);function l(e){const t=i.decode(e);if(t.length<21)throw new TypeError(e+" is too short");if(t.length>21)throw new TypeError(e+" is too long");return{version:t.readUInt8(0),hash:t.slice(1)}}function f(e){const t=n.decode(e),r=n.fromWords(t.words.slice(1));return{version:t.words[0],prefix:t.prefix,data:Buffer.from(r)}}e.exports={fromBase58Check:l,fromBech32:f,fromOutputScript:function(e,t){t=t||a.bitcoin;try{return c.p2pkh({output:e,network:t}).address}catch(e){}try{return c.p2sh({output:e,network:t}).address}catch(e){}try{return c.p2wpkh({output:e,network:t}).address}catch(e){}try{return c.p2wsh({output:e,network:t}).address}catch(e){}throw new Error(o.toASM(e)+" has no matching Address")},toBase58Check:function(e,t){s(u.tuple(u.Hash160bit,u.UInt8),arguments);const r=Buffer.allocUnsafe(21);return r.writeUInt8(t,0),e.copy(r,1),i.encode(r)},toBech32:function(e,t,r){const i=n.toWords(e);return i.unshift(t),n.encode(r,i)},toOutputScript:function(e,t){let r;t=t||a.bitcoin;try{r=l(e)}catch(e){}if(r){if(r.version===t.pubKeyHash)return c.p2pkh({hash:r.hash}).output;if(r.version===t.scriptHash)return c.p2sh({hash:r.hash}).output}else{try{r=f(e)}catch(e){}if(r){if(r.prefix!==t.bech32)throw new Error(e+" has an invalid prefix");if(0===r.version){if(20===r.data.length)return c.p2wpkh({hash:r.data}).output;if(32===r.data.length)return c.p2wsh({hash:r.data}).output}}}throw new Error(e+" has no matching Script")}}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return 22===t.length&&t[0]===i.OP_0&&20===t[1]}o.toJSON=function(){return"Witness pubKeyHash output"},e.exports={check:o}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return 34===t.length&&t[0]===i.OP_0&&32===t[1]}o.toJSON=function(){return"Witness scriptHash output"},e.exports={check:o}},function(e,t,r){"use strict";let Buffer=r(2).Buffer,n=r(35),i=r(528),o=r(15),a=r(5),s=r(88),u=a.BufferN(32),c=a.compile({wif:a.UInt8,bip32:{public:a.UInt32,private:a.UInt32}}),l={wif:128,bip32:{public:76067358,private:76066276}};function f(e,t,r,n){a(c,n),this.__d=e||null,this.__Q=t||null,this.chainCode=r,this.depth=0,this.index=0,this.network=n,this.parentFingerprint=0}Object.defineProperty(f.prototype,"identifier",{get:function(){return i.hash160(this.publicKey)}}),Object.defineProperty(f.prototype,"fingerprint",{get:function(){return this.identifier.slice(0,4)}}),Object.defineProperty(f.prototype,"privateKey",{enumerable:!1,get:function(){return this.__d}}),Object.defineProperty(f.prototype,"publicKey",{get:function(){return this.__Q||(this.__Q=o.pointFromScalar(this.__d,this.compressed)),this.__Q}}),f.prototype.isNeutered=function(){return null===this.__d},f.prototype.neutered=function(){let e=g(this.publicKey,this.chainCode,this.network);return e.depth=this.depth,e.index=this.index,e.parentFingerprint=this.parentFingerprint,e},f.prototype.toBase58=function(){let e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,r=Buffer.allocUnsafe(78);return r.writeUInt32BE(t,0),r.writeUInt8(this.depth,4),r.writeUInt32BE(this.parentFingerprint,5),r.writeUInt32BE(this.index,9),this.chainCode.copy(r,13),this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46)),n.encode(r)},f.prototype.toWIF=function(){if(!this.privateKey)throw new TypeError("Missing private key");return s.encode(this.network.wif,this.privateKey,!0)};f.prototype.derive=function(e){a(a.UInt32,e);let t=e>=2147483648,r=Buffer.allocUnsafe(37);if(t){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");r[0]=0,this.privateKey.copy(r,1),r.writeUInt32BE(e,33)}else this.publicKey.copy(r,0),r.writeUInt32BE(e,33);let n,s=i.hmacSHA512(this.chainCode,r),u=s.slice(0,32),c=s.slice(32);if(!o.isPrivate(u))return this.derive(e+1);if(this.isNeutered()){let t=o.pointAddScalar(this.publicKey,u,!0);if(null===t)return this.derive(e+1);n=g(t,c,this.network)}else{let t=o.privateAdd(this.privateKey,u);if(null==t)return this.derive(e+1);n=m(t,c,this.network)}return n.depth=this.depth+1,n.index=e,n.parentFingerprint=this.fingerprint.readUInt32BE(0),n};let h=Math.pow(2,31)-1;function d(e){return a.UInt32(e)&&e<=h}function p(e){return a.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function m(e,t,r){if(a({privateKey:u,chainCode:u},{privateKey:e,chainCode:t}),r=r||l,!o.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new f(e,null,t,r)}function g(e,t,r){if(a({publicKey:a.BufferN(33),chainCode:u},{publicKey:e,chainCode:t}),r=r||l,!o.isPoint(e))throw new TypeError("Point is not on the curve");return new f(null,e,t,r)}f.prototype.deriveHardened=function(e){return a(d,e),this.derive(e+2147483648)},f.prototype.derivePath=function(e){a(p,e);let t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce(function(e,t){let r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))},this)},f.prototype.sign=function(e){return o.sign(e,this.privateKey)},f.prototype.verify=function(e,t){return o.verify(e,this.publicKey,t)},e.exports={fromBase58:function(e,t){let r=n.decode(e);if(78!==r.length)throw new TypeError("Invalid buffer length");t=t||l;let i=r.readUInt32BE(0);if(i!==t.bip32.private&&i!==t.bip32.public)throw new TypeError("Invalid network version");let o=r[4],a=r.readUInt32BE(5);if(0===o&&0!==a)throw new TypeError("Invalid parent fingerprint");let s=r.readUInt32BE(9);if(0===o&&0!==s)throw new TypeError("Invalid index");let u,c=r.slice(13,45);if(i===t.bip32.private){if(0!==r.readUInt8(45))throw new TypeError("Invalid private key");u=m(r.slice(46,78),c,t)}else u=g(r.slice(45,78),c,t);return u.depth=o,u.index=s,u.parentFingerprint=a,u},fromPrivateKey:m,fromPublicKey:g,fromSeed:function(e,t){if(a(a.Buffer,e),e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError("Seed should be at most 512 bits");t=t||l;let r=i.hmacSHA512("Bitcoin seed",e);return m(r.slice(0,32),r.slice(32),t)}}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(38)),i=e(r(535)),o=e(r(7)),a=e(r(68)),s=r(31),u=r(32),c=r(39),l=1e8,f="zone-file",h="registration",d="transaction";class p{broadcastTransaction(e){return Promise.reject(new Error(`Not implemented, broadcastTransaction(${e})`))}getBlockHeight(){return Promise.reject(new Error("Not implemented, getBlockHeight()"))}getTransactionInfo(e){return Promise.reject(new Error(`Not implemented, getTransactionInfo(${e})`))}getNetworkedUTXOs(e){return Promise.reject(new Error(`Not implemented, getNetworkedUTXOs(${e})`))}}t.BitcoinNetwork=p;class m{constructor(e,t,r,i=n.default.networks.bitcoin){this.blockstackAPIUrl=e,this.broadcastServiceUrl=t,this.layer1=i,this.btc=r,this.DUST_MINIMUM=5500,this.includeUtxoMap={},this.excludeUtxoSet=[],this.MAGIC_BYTES="id"}coerceAddress(e){const{hash:t,version:r}=n.default.address.fromBase58Check(e),i=[n.default.networks.bitcoin.scriptHash,n.default.networks.testnet.scriptHash],o=[n.default.networks.bitcoin.pubKeyHash,n.default.networks.testnet.pubKeyHash];let a;if(i.indexOf(r)>=0)a=this.layer1.scriptHash;else{if(!(o.indexOf(r)>=0))throw new Error(`Unrecognized address version number ${r} in ${e}`);a=this.layer1.pubKeyHash}return n.default.address.toBase58Check(t,a)}getDefaultBurnAddress(){return this.coerceAddress("1111111111111111111114oLvT2")}getNamePriceV1(e){return fetch(`${this.blockstackAPIUrl}/v1/prices/names/${e}`).then(t=>{if(!t.ok)throw new Error(`Failed to query name price for ${e}`);return t}).then(e=>e.json()).then(e=>e.name_price).then(t=>{if(!t||!t.satoshis)throw new Error(`Failed to get price for ${e}. Does the namespace exist?`);return t.satoshis{if(!t.ok)throw new Error(`Failed to query name price for ${e}`);return t}).then(e=>e.json()).then(t=>{if(!t||!t.satoshis)throw new Error(`Failed to get price for ${e}`);return t.satoshis{if(200!==e.status)throw new Error("The upstream node does not handle the /v2/ price namespace");return e}).then(e=>e.json()).then(e=>e.name_price).then(t=>{if(!t)throw new Error(`Failed to get price for ${e}. Does the namespace exist?`);const r={units:t.units,amount:new o.default(t.amount)};if("BTC"===t.units){const e=new o.default(String(this.DUST_MINIMUM));r.amount.ucmp(e)<0&&(r.amount=e)}return r})}getNamespacePriceV2(e){return fetch(`${this.blockstackAPIUrl}/v2/prices/namespaces/${e}`).then(e=>{if(200!==e.status)throw new Error("The upstream node does not handle the /v2/ price namespace");return e}).then(e=>e.json()).then(t=>{if(!t)throw new Error(`Failed to get price for ${e}`);const r={units:t.units,amount:new o.default(t.amount)};if("BTC"===t.units){const e=new o.default(String(this.DUST_MINIMUM));r.amount.ucmp(e)<0&&(r.amount=e)}return r})}getNamePrice(e){return Promise.resolve().then(()=>this.getNamePriceV2(e)).catch(()=>this.getNamePriceV1(e))}getNamespacePrice(e){return Promise.resolve().then(()=>this.getNamespacePriceV2(e)).catch(()=>this.getNamespacePriceV1(e))}getGracePeriod(e){return Promise.resolve(5e3)}getNamesOwned(e){const t=this.coerceAddress(e);return fetch(`${this.blockstackAPIUrl}/v1/addresses/bitcoin/${t}`).then(e=>e.json()).then(e=>e.names)}getNamespaceBurnAddress(e){return Promise.all([fetch(`${this.blockstackAPIUrl}/v1/namespaces/${e}`),this.getBlockHeight()]).then(([t,r])=>{if(404===t.status)throw new Error(`No such namespace '${e}'`);return Promise.all([t.json(),r])}).then(([e,t])=>{let r=this.getDefaultBurnAddress();return 2===e.version&&e.reveal_block+52595>=t&&(r=e.address),r}).then(e=>this.coerceAddress(e))}getNameInfo(e){u.Logger.debug(this.blockstackAPIUrl);const t=`${this.blockstackAPIUrl}/v1/names/${e}`;return fetch(t).then(e=>{if(404===e.status)throw new Error("Name not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>(u.Logger.debug(`nameInfo: ${JSON.stringify(e)}`),e.address?Object.assign({},e,{address:this.coerceAddress(e.address)}):e))}getNamespaceInfo(e){return fetch(`${this.blockstackAPIUrl}/v1/namespaces/${e}`).then(e=>{if(404===e.status)throw new Error("Namespace not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>e.address&&e.recipient_address?Object.assign({},e,{address:this.coerceAddress(e.address),recipient_address:this.coerceAddress(e.recipient_address)}):e)}getZonefile(e){return fetch(`${this.blockstackAPIUrl}/v1/zonefiles/${e}`).then(t=>{if(200===t.status)return t.text().then(t=>{const r=n.default.crypto.sha256(Buffer.from(t)),i=(new a.default).update(r).digest("hex");if(i!==e)throw new Error(`Zone file contents hash to ${i}, not ${e}`);return t});throw new Error(`Bad response status: ${t.status}`)})}getAccountStatus(e,t){return fetch(`${this.blockstackAPIUrl}/v1/accounts/${e}/${t}/status`).then(e=>{if(404===e.status)throw new Error("Account not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{return Object.assign({},e,{address:this.coerceAddress(e.address),debit_value:new o.default(String(e.debit_value)),credit_value:new o.default(String(e.credit_value))})})}getAccountHistoryPage(e,t){const r=`${this.blockstackAPIUrl}/v1/accounts/${e}/history?page=${t}`;return fetch(r).then(e=>{if(404===e.status)throw new Error("Account not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get account history page: ${e.error}`);return e.map(e=>(e.address=this.coerceAddress(e.address),e.debit_value=new o.default(String(e.debit_value)),e.credit_value=new o.default(String(e.credit_value)),e))})}getAccountAt(e,t){const r=`${this.blockstackAPIUrl}/v1/accounts/${e}/history/${t}`;return fetch(r).then(e=>{if(404===e.status)throw new Error("Account not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get historic account state: ${e.error}`);return e.map(e=>(e.address=this.coerceAddress(e.address),e.debit_value=new o.default(String(e.debit_value)),e.credit_value=new o.default(String(e.credit_value)),e))})}getAccountTokens(e){return fetch(`${this.blockstackAPIUrl}/v1/accounts/${e}/tokens`).then(e=>{if(404===e.status)throw new Error("Account not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get token list: ${e.error}`);return e})}getAccountBalance(e,t){return fetch(`${this.blockstackAPIUrl}/v1/accounts/${e}/${t}/balance`).then(e=>{if(404===e.status)return Promise.resolve().then(()=>new o.default("0"));if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get account balance: ${e.error}`);let t="0";return e&&e.balance&&(t=e.balance),new o.default(t)})}broadcastServiceFetchHelper(e,t){const r={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)},n=`${this.broadcastServiceUrl}/v1/broadcast/${e}`;return fetch(n,r).then(e=>{if(e.ok)return e.json();throw new s.RemoteServiceError(e)})}broadcastTransaction(e,t=null,r=6){if(!e){const e=new s.MissingParameterError("transaction");return Promise.reject(e)}if(!r&&0!==r){const e=new s.MissingParameterError("confirmations");return Promise.reject(e)}if(null===t)return this.btc.broadcastTransaction(e);{const n=d,i={transaction:e,transactionToWatch:t,confirmations:r};return this.broadcastServiceFetchHelper(n,i)}}broadcastZoneFile(e,t=null){if(!e)return Promise.reject(new s.MissingParameterError("zoneFile"));if(t){const r={zoneFile:e,transactionToWatch:t},n=f;return this.broadcastServiceFetchHelper(n,r)}{const t={zonefile:e};return fetch(`${this.blockstackAPIUrl}/v1/zonefile/`,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).then(e=>{return e.json().then(t=>{if(t.hasOwnProperty("error"))throw new s.RemoteServiceError(e);return t.servers})})}}broadcastNameRegistration(e,t,r){if(!e){const e=new s.MissingParameterError("preorderTransaction");return Promise.reject(e)}if(!t){const e=new s.MissingParameterError("registerTransaction");return Promise.reject(e)}if(!r){const e=new s.MissingParameterError("zoneFile");return Promise.reject(e)}const n={preorderTransaction:e,registerTransaction:t,zoneFile:r},i=h;return this.broadcastServiceFetchHelper(i,n)}getFeeRate(){return fetch("https://bitcoinfees.earn.com/api/v1/fees/recommended").then(e=>e.json()).then(e=>Math.floor(e.fastestFee))}countDustOutputs(){throw new Error("Not implemented.")}getUTXOs(e){return this.getNetworkedUTXOs(e).then(t=>{let r=t.concat();this.includeUtxoMap.hasOwnProperty(e)&&(r=t.concat(this.includeUtxoMap[e]));const n=this.excludeUtxoSet;return r=r.filter(e=>{return!n.reduce((t,r)=>t||r.tx_hash===e.tx_hash&&r.tx_output_n===e.tx_output_n,!1)})})}modifyUTXOSetFrom(e){const t=n.default.Transaction.fromHex(e),r=this.excludeUtxoSet.concat();t.ins.forEach(e=>{const t=Buffer.from(e.hash);t.reverse(),r.push({tx_hash:t.toString("hex"),tx_output_n:e.index})}),this.excludeUtxoSet=r;const i=Buffer.from(t.getHash().reverse()).toString("hex");t.outs.forEach((e,t)=>{if(function(e){try{return n.default.payments.embed({output:e},{validate:!0}),!0}catch(e){return!1}}(e.script))return;const r=n.default.address.fromOutputScript(e.script,this.layer1);let o=[];this.includeUtxoMap.hasOwnProperty(r)&&(o=o.concat(this.includeUtxoMap[r])),o.push({tx_hash:i,confirmations:0,value:e.value,tx_output_n:t}),this.includeUtxoMap[r]=o})}resetUTXOs(e){delete this.includeUtxoMap[e],this.excludeUtxoSet=[]}getConsensusHash(){return fetch(`${this.blockstackAPIUrl}/v1/blockchains/bitcoin/consensus`).then(e=>e.json()).then(e=>e.consensus_hash)}getTransactionInfo(e){return this.btc.getTransactionInfo(e)}getBlockHeight(){return this.btc.getBlockHeight()}getNetworkedUTXOs(e){return this.btc.getNetworkedUTXOs(e)}}t.BlockstackNetwork=m;class g extends m{constructor(e,t,r){super(e,t,r,n.default.networks.testnet)}getFeeRate(){return Promise.resolve(Math.floor(1e-5*l))}}t.LocalRegtest=g;class v extends p{constructor(e,t){super(),this.bitcoindUrl=e,this.bitcoindCredentials=t,this.importedBefore={}}broadcastTransaction(e){const t={jsonrpc:"1.0",method:"sendrawtransaction",params:[e]},r={Authorization:`Basic ${Buffer.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString("base64")}`};return fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(t),headers:r}).then(e=>e.json()).then(e=>e.result)}getBlockHeight(){const e={Authorization:`Basic ${Buffer.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString("base64")}`};return fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify({jsonrpc:"1.0",method:"getblockcount"}),headers:e}).then(e=>e.json()).then(e=>e.result)}getTransactionInfo(e){const t={jsonrpc:"1.0",method:"gettransaction",params:[e]},r=Buffer.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString("base64"),n={Authorization:`Basic ${r}`};return fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(t),headers:n}).then(e=>e.json()).then(e=>e.result).then(e=>e.blockhash).then(e=>{const t={jsonrpc:"1.0",method:"getblockheader",params:[e]};return n.Authorization=`Basic ${r}`,fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(t),headers:n})}).then(e=>e.json()).then(e=>{if(e&&e.result)return{block_height:e.result.height};throw new Error("Unconfirmed transaction")})}getNetworkedUTXOs(e){const t={jsonrpc:"1.0",method:"importaddress",params:[e]},r={jsonrpc:"1.0",method:"listunspent",params:[0,9999999,[e]]},n={Authorization:`Basic ${Buffer.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString("base64")}`};return(this.importedBefore[e]?Promise.resolve():fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(t),headers:n}).then(()=>{this.importedBefore[e]=!0})).then(()=>fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(r),headers:n})).then(e=>e.json()).then(e=>e.result).then(e=>e.map(e=>({value:Math.round(e.amount*l),confirmations:e.confirmations,tx_hash:e.txid,tx_output_n:e.vout})))}}t.BitcoindAPI=v;class b extends p{constructor(e="https://utxo.technofractal.com/"){super(),this.apiUrl=e}broadcastTransaction(e){const t={rawtx:e};return fetch(`${this.apiUrl}/tx/send`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>e.json())}getBlockHeight(){return fetch(`${this.apiUrl}/status`).then(e=>e.json()).then(e=>e.blocks)}getTransactionInfo(e){return fetch(`${this.apiUrl}/tx/${e}`).then(e=>e.json()).then(e=>{if(e.error)throw new Error(`Error finding transaction: ${e.error}`);return fetch(`${this.apiUrl}/block/${e.blockHash}`)}).then(e=>e.json()).then(e=>({block_height:e.height}))}getNetworkedUTXOs(e){return fetch(`${this.apiUrl}/addr/${e}/utxo`).then(e=>e.json()).then(e=>e.map(e=>({value:e.satoshis,confirmations:e.confirmations,tx_hash:e.txid,tx_output_n:e.vout})))}}t.InsightClient=b;class y extends p{constructor(e="https://blockchain.info"){super(),this.utxoProviderUrl=e}getBlockHeight(){return fetch(`${this.utxoProviderUrl}/latestblock?cors=true`).then(e=>e.json()).then(e=>e.height)}getNetworkedUTXOs(e){return fetch(`${this.utxoProviderUrl}/unspent?format=json&active=${e}&cors=true`).then(e=>500===e.status?(u.Logger.debug("UTXO provider 500 usually means no UTXOs: returning []"),{unspent_outputs:[]}):e.json()).then(e=>e.unspent_outputs).then(e=>e.map(e=>{return{value:e.value,tx_output_n:e.tx_output_n,confirmations:e.confirmations,tx_hash:e.tx_hash_big_endian}}))}getTransactionInfo(e){return fetch(`${this.utxoProviderUrl}/rawtx/${e}?cors=true`).then(t=>{if(200===t.status)return t.json();throw new Error(`Could not lookup transaction info for '${e}'. Server error.`)}).then(e=>({block_height:e.block_height}))}broadcastTransaction(e){const t=new i.default;return t.append("tx",e),fetch(`${this.utxoProviderUrl}/pushtx?cors=true`,{method:"POST",body:t}).then(t=>{return t.text().then(r=>{if(r.toLowerCase().indexOf("transaction submitted")>=0){return Buffer.from(n.default.Transaction.fromHex(e).getHash().reverse()).toString("hex")}throw new s.RemoteServiceError(t,`Broadcast transaction failed with message: ${r}`)})})}}t.BlockchainInfoApi=y;const _=new g("http://localhost:16268","http://localhost:16269",new v("http://localhost:18332/",{username:"blockstack",password:"blockstacksystem"})),w=new m("https://core.blockstack.org","https://broadcast.blockstack.org",new y);t.getNameInfo=function(e){return c.config.network.getNameInfo(e)},t.network={BlockstackNetwork:m,LocalRegtest:g,BlockchainInfoApi:y,BitcoindAPI:v,InsightClient:b,defaults:{LOCAL_REGTEST:_,MAINNET_DEFAULT:w}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(r(230)),a=r(42),s=r(231),u=r(26),c=r(99),l=r(31),f=r(92),h=r(71),d=r(44),p=r(100),m=r(39),g=r(32),v=r(191),b=r(541),y={"@type":"Person","@context":"http://schema.org"};function _(){u.checkWindowAPI("getAuthResponseToken","location");const e=o.default.parse(window.location.search);return e.authResponse?e.authResponse:""}function w(e,t=h.DEFAULT_BLOCKSTACK_HOST){const r=`${t}?authRequest=${e=e||f.makeAuthRequest()}`;if(u.checkWindowAPI("redirectToSignInWithAuthRequest","navigator"),u.checkWindowAPI("redirectToSignInWithAuthRequest","location"),/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(window.navigator.userAgent))return g.Logger.info("detected mobile OS, sending to https"),void(window.location.href=r);b.launchCustomProtocol(e,function(){g.Logger.info("protocol handler detected")},function(){g.Logger.warn("protocol handler not detected"),window.location.href=r})}t.isUserSignedIn=function(){return console.warn("DEPRECATION WARNING: The static isUserSignedIn() function will be deprecated in the next major release of blockstack.js. Create an instance of UserSession and call the instance method isUserSignedIn()."),(new p.UserSession).isUserSignedIn()},t.redirectToSignIn=function(e,t,r){console.warn("DEPRECATION WARNING: The static redirectToSignIn() function will be deprecated in the next major release of blockstack.js. Create an instance of UserSession and call the instance method redirectToSignIn()."),w(f.makeAuthRequest(null,e,t,r))},t.isSignInPending=function(){try{if(v.protocolEchoReplyDetection())return g.Logger.info("protocolEchoReply detected from isSignInPending call, the page is about to redirect."),!0}catch(e){g.Logger.error(`Error checking for protocol echo reply isSignInPending: ${e}`)}return!!_()},t.getAuthResponseToken=_,t.loadUserData=function(){return console.warn("DEPRECATION WARNING: The static loadUserData() function will be deprecated in the next major release of blockstack.js. Create an instance of UserSession and call the instance method loadUserData()."),(new p.UserSession).loadUserData()},t.signUserOut=function(e,t){if((t||new p.UserSession).store.deleteSessionData(),e){if("undefined"==typeof window){const t="`signUserOut` called with `redirectURL` specified"+` ("${e}")`+" but `window.location.href` is not available in this environment";throw g.Logger.error(t),new Error(t)}window.location.href=e}},t.redirectToSignInWithAuthRequest=w,t.handlePendingSignIn=function(e="",t=_(),r,i){return n(this,void 0,void 0,function*(){try{if(v.protocolEchoReplyDetection()){const e="handlePendingSignIn called while protocolEchoReply was detected, and the page is about to redirect. This function will resolve with an error after several seconds, if the page was not redirected for some reason.";return g.Logger.info(e),new Promise((t,r)=>{setTimeout(()=>{g.Logger.error("Page should have redirected by now. handlePendingSignIn will now throw."),r(e)},3e3)})}}catch(e){g.Logger.error(`Error checking for protocol echo reply handlePendingSignIn: ${e}`)}if(i||(i=new p.UserSession),r||(r=i.store.getSessionData().transitKey),!e){const r=a.decodeToken(t).payload;u.isLaterVersion(r.version,"1.3.0")&&null!==r.blockstackAPIUrl&&void 0!==r.blockstackAPIUrl&&(g.Logger.info(`Overriding ${m.config.network.blockstackAPIUrl} `+`with ${r.blockstackAPIUrl}`),m.config.network.blockstackAPIUrl=r.blockstackAPIUrl),e=`${m.config.network.blockstackAPIUrl}${h.NAME_LOOKUP_PATH}`}if(!(yield s.verifyAuthResponse(t,e)))throw new l.LoginFailedError("Invalid authentication response.");const n=a.decodeToken(t).payload;let o=n.private_key,b=n.core_token;if(u.isLaterVersion(n.version,"1.1.0")){if(void 0===r||null==r)throw new l.LoginFailedError("Authenticating with protocol > 1.1.0 requires transit key, and none found.");if(void 0!==n.private_key&&null!==n.private_key)try{o=f.decryptPrivateKey(r,n.private_key)}catch(e){g.Logger.warn("Failed decryption of appPrivateKey, will try to use as given");try{u.hexStringToECPair(n.private_key)}catch(e){throw new l.LoginFailedError("Failed decrypting appPrivateKey. Usually means that the transit key has changed during login.")}}if(null!=b)try{b=f.decryptPrivateKey(r,b)}catch(e){g.Logger.info("Failed decryption of coreSessionToken, will try to use as given")}}let _,w=h.BLOCKSTACK_DEFAULT_GAIA_HUB_URL;u.isLaterVersion(n.version,"1.2.0")&&null!==n.hubUrl&&void 0!==n.hubUrl&&(w=n.hubUrl),u.isLaterVersion(n.version,"1.3.0")&&null!==n.associationToken&&void 0!==n.associationToken&&(_=n.associationToken);const k={username:n.username,profile:n.profile,email:n.email,decentralizedID:n.iss,identityAddress:c.getAddressFromDID(n.iss),appPrivateKey:o,coreSessionToken:b,authResponseToken:t,hubUrl:w,gaiaAssociationToken:_},S=n.profile_url;if(!k.profile&&S){const e=yield fetch(S);if(e.ok){const t=yield e.text(),r=JSON.parse(t),n=d.extractProfile(r[0].token);k.profile=n}else k.profile=Object.assign({},y)}else k.profile=n.profile;const x=i.store.getSessionData();return x.userData=k,i.store.setSessionData(x),k})}},function(e,t,r){"use strict";const n=r(538),i=r(539),o=r(540);function a(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function s(e,t){return t.decode?i(e):e}function u(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function c(e){const t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function l(e,t){const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":return(e,t,r)=>{const n="string"==typeof t&&t.split("").indexOf(",")>-1?t.split(","):t;r[e]=n};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1},t)),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const i of e.split("&")){let[e,a]=o(i.replace(/\+/g," "),"=");a=void 0===a?null:s(a,t),t.parseNumbers&&!Number.isNaN(Number(a))&&(a=Number(a)),r(s(e,t),a,n)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=c,t.parse=l,t.stringify=(e,t)=>{if(!e)return"";const r=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n?r:null===n?[...r,[a(t,e),"[",i,"]"].join("")]:[...r,[a(t,e),"[",a(i,e),"]=",a(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n?r:null===n?[...r,[a(t,e),"[]"].join("")]:[...r,[a(t,e),"[]=",a(n,e)].join("")];case"comma":return t=>(r,n,i)=>null==n||0===n.length?r:0===i?[[a(t,e),"=",a(n,e)].join("")]:[[r,a(n,e)].join(",")];default:return t=>(r,n)=>void 0===n?r:null===n?[...r,a(t,e)]:[...r,[a(t,e),"=",a(n,e)].join("")]}}(t=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},t)),n=Object.keys(e);return!1!==t.sort&&n.sort(t.sort),n.map(n=>{const i=e[n];return void 0===i?"":null===i?a(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):a(n,t)+"="+a(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>({url:u(e).split("?")[0]||"",query:l(c(e),t)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42),i=r(99),o=r(58),a=r(26),s=r(232);function u(e){const t=n.decodeToken(e).payload.public_keys;if(1!==t.length)throw new Error("Multiple public keys are not supported");{const r=t[0];try{return!!new n.TokenVerifier("ES256k",r).verify(e)}catch(e){return!1}}}function c(e){const t=n.decodeToken(e).payload,r=t.public_keys,a=i.getAddressFromDID(t.iss);if(1!==r.length)throw new Error("Multiple public keys are not supported");if(o.publicKeyToAddress(r[0])===a)return!0;return!1}function l(e,t){return Promise.resolve().then(()=>{const r=n.decodeToken(e).payload;if(!r.username)return!0;if(null===r.username)return!0;if(null===t)return!1;const o=r.username,a=`${t.replace(/\/$/,"")}/${o}`;return fetch(a).then(e=>e.text()).then(e=>{const t=JSON.parse(e);if(t.hasOwnProperty("address")){return t.address===i.getAddressFromDID(r.iss)}return!1})}).catch(()=>!1)}function f(e){const t=n.decodeToken(e).payload;if(t.iat){if("number"!=typeof t.iat)return!1;const e=new Date(1e3*t.iat);return!((new Date).getTime()e.getTime())}return!0}function d(e){const t=n.decodeToken(e).payload;return a.isSameOriginAbsoluteUrl(t.domain_name,t.manifest_uri)}function p(e){const t=n.decodeToken(e).payload;return a.isSameOriginAbsoluteUrl(t.domain_name,t.redirect_uri)}function m(e){return Promise.resolve().then(()=>{if("none"===n.decodeToken(e).header.alg)throw new Error("Token must be signed in order to be verified")}).then(()=>Promise.all([h(e),f(e),u(e),c(e),d(e),p(e)])).then(e=>!!e.every(Boolean))}t.doSignaturesMatchPublicKeys=u,t.doPublicKeysMatchIssuer=c,t.doPublicKeysMatchUsername=l,t.isIssuanceDateValid=f,t.isExpirationDateValid=h,t.isManifestUriValid=d,t.isRedirectUriValid=p,t.verifyAuthRequest=m,t.verifyAuthRequestAndLoadManifest=function(e){return Promise.resolve().then(()=>m(e).then(t=>t?s.fetchAppManifest(e):Promise.reject()))},t.verifyAuthResponse=function(e,t){return Promise.all([h(e),f(e),u(e),c(e),l(e,t)]).then(e=>!!e.every(Boolean))}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(230)),o=r(42),a=r(26),s=r(32);t.getAuthRequestFromURL=function(){a.checkWindowAPI("getAuthRequestFromURL","location");const e=i.default.parse(window.location.search);return e.authRequest?e.authRequest.split(`${a.BLOCKSTACK_HANDLER}:`).join(""):null},t.fetchAppManifest=function(e){return new Promise((t,r)=>{if(e){const n=o.decodeToken(e).payload.manifest_uri;try{s.Logger.debug(`Fetching manifest from ${n}`),fetch(n).then(e=>e.text()).then(e=>JSON.parse(e)).then(e=>{t(Object.assign({},e,{manifestURI:n}))}).catch(e=>{s.Logger.debug(e.stack),r("Could not fetch manifest.json")})}catch(e){s.Logger.debug(e.stack),r("Could not fetch manifest.json")}}else r("Invalid auth request")})},t.redirectUserToApp=function(e,t){let r=o.decodeToken(e).payload.redirect_uri;if(s.Logger.debug(r),!r)throw new Error("Invalid redirect URI");r=a.updateQueryStringParameter(r,"authResponse",t),a.checkWindowAPI("redirectUserToApp","location"),window.location.href=r}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const i=r(234);t.connectToGaiaHub=i.connectToGaiaHub,t.uploadToGaiaHub=i.uploadToGaiaHub,t.BLOCKSTACK_GAIA_HUB_LABEL=i.BLOCKSTACK_GAIA_HUB_LABEL;const o=r(141),a=r(58),s=r(235),u=r(31),c=r(32),l=r(100),f=".sig";function h(e,t,r,i){return n(this,void 0,void 0,function*(){const n=yield s.lookupProfile(t,i);let o=null;if(n.hasOwnProperty("apps")&&n.apps.hasOwnProperty(r)){o=`${n.apps[r].replace(/\/?(\?|#|$)/,"/$1")}${e}`}return o})}function d(e,t,r){const n=Object.assign({},t);if(!n.publicKey){const e=(r||new l.UserSession).loadUserData().appPrivateKey;n.publicKey=a.getPublicKeyFromPrivate(e)}const i=o.encryptECIES(n.publicKey,e);return JSON.stringify(i)}function p(e,t,r,o){return n(this,void 0,void 0,function*(){const n=m({app:e,username:t},o);let a;if(t)a=yield h("/",n.username,n.app,r);else{o||(o=new l.UserSession);const e=yield o.getOrSetLocalGaiaHubConnection();a=yield i.getFullReadUrl("/",e)}const s=a.match(/([13][a-km-zA-HJ-NP-Z0-9]{26,35})/);if(!s)throw new Error("Failed to parse gaia address");return s[s.length-1]})}function m(e,t){const r=Object.assign({},e);if(r.username&&!r.app){const e=(t||new l.UserSession).appConfig;if(!e)throw new u.InvalidStateError("Missing AppConfig");r.app=e.appDomain}return r}function g(e,t,r){return n(this,void 0,void 0,function*(){const n=m(t,r);let o;if(n.username)o=yield h(e,n.username,n.app,n.zoneFileLookupURL);else{const t=yield(r||new l.UserSession).getOrSetLocalGaiaHubConnection();o=yield i.getFullReadUrl(e,t)}if(o)return o;throw new Error("Missing readURL")})}function v(e,t,r,n,i,o){return Promise.resolve().then(()=>{return g(e,{app:t,username:r,zoneFileLookupURL:n},o)}).then(e=>fetch(e)).then(t=>{if(200!==t.status){if(404===t.status)return c.Logger.debug(`getFile ${e} returned 404, returning null`),null;throw new Error(`getFile ${e} failed with HTTP status ${t.status}`)}const r=t.headers.get("Content-Type");return i||null===r||r.startsWith("text")||"application/json"===r?t.text():t.arrayBuffer()})}t.getUserAppFileUrl=h,t.encryptContent=d,t.decryptContent=function(e,t,r){const n=Object.assign({},t);n.privateKey||(n.privateKey=(r||new l.UserSession).loadUserData().appPrivateKey);try{const t=JSON.parse(e);return o.decryptECIES(n.privateKey,t)}catch(e){throw e instanceof SyntaxError?new Error("Failed to parse encrypted content JSON. The content may not be encrypted. If using getFile, try passing { decrypt: false }."):e}},t.getFileUrl=g,t.getFile=function(e,t,r){const n={decrypt:!0,verify:!1,username:null,app:"undefined"!=typeof window?window.location.origin:void 0,zoneFileLookupURL:null},i=Object.assign({},n,t);return r||(r=new l.UserSession),i.verify&&!i.decrypt?function(e,t,r){return Promise.all([v(e,t.app,t.username,t.zoneFileLookupURL,!1,r),v(`${e}${f}`,t.app,t.username,t.zoneFileLookupURL,!0,r),p(t.app,t.username,t.zoneFileLookupURL,r)]).then(([t,r,n])=>{if(!t)return t;if(!n)throw new u.SignatureVerificationError("Failed to get gaia address for verification of: "+`${e}`);if(!r||"string"!=typeof r)throw new u.SignatureVerificationError("Failed to obtain signature for file: "+`${e} -- looked in ${e}${f}`);let i,s;try{const t=JSON.parse(r);i=t.signature,s=t.publicKey}catch(t){throw t instanceof SyntaxError?new Error("Failed to parse signature content JSON "+`(path: ${e}${f})`+" The content may be corrupted."):t}const c=a.publicKeyToAddress(s);if(n!==c)throw new u.SignatureVerificationError(`Signer pubkey address (${c}) doesn't`+` match gaia address (${n})`);if(o.verifyECDSA(t,s,i))return t;throw new u.SignatureVerificationError("Contents do not match ECDSA signature: "+`path: ${e}, signature: ${e}${f}`)})}(e,i,r):v(e,i.app,i.username,i.zoneFileLookupURL,!!i.decrypt,r).then(t=>{if(null===t)return t;if(i.decrypt&&!i.verify){if("string"!=typeof t)throw new Error("Expected to get back a string for the cipherText");return r.decryptContent(t)}if(i.decrypt&&i.verify){if("string"!=typeof t)throw new Error("Expected to get back a string for the cipherText");return function(e,t,r,n,i,s){const c=e.loadUserData().appPrivateKey,l=a.getPublicKeyFromPrivate(c);let f;if(i)f=p(n,i,s,e);else{const e=a.publicKeyToAddress(l);f=Promise.resolve(e)}return f.then(n=>{if(!n)throw new u.SignatureVerificationError("Failed to get gaia address for verification of: "+`${t}`);let i;try{i=JSON.parse(r)}catch(e){throw e instanceof SyntaxError?new Error("Failed to parse encrypted, signed content JSON. The content may not be encrypted. If using getFile, try passing { verify: false, decrypt: false }."):e}const s=i.signature,c=i.publicKey,l=i.cipherText,f=a.publicKeyToAddress(c);if(c&&l&&s){if(f!==n)throw new u.SignatureVerificationError(`Signer pubkey address (${f}) doesn't`+` match gaia address (${n})`);if(o.verifyECDSA(l,c,s))return e.decryptContent(l);throw new u.SignatureVerificationError("Contents do not match ECDSA signature in file:"+` ${t}`)}throw new u.SignatureVerificationError("Failed to get signature verification data from file:"+` ${t}`)})}(r,e,t,i.app,i.username,i.zoneFileLookupURL)}if(i.verify||i.decrypt)throw new Error("Should be unreachable.");return t})},t.putFile=function(e,t,r,s){return n(this,void 0,void 0,function*(){const n=Object.assign({},{encrypt:!0,sign:!1,contentType:""},r);let{contentType:u}=n;u||(u="string"==typeof t?"text/plain; charset=utf-8":"application/octet-stream"),s||(s=new l.UserSession);let c="",h="";if(n.sign&&(c="string"==typeof n.sign?n.sign:s.loadUserData().appPrivateKey),n.encrypt&&("string"==typeof n.encrypt?h=n.encrypt:(c||(c=s.loadUserData().appPrivateKey),h=a.getPublicKeyFromPrivate(c))),!n.encrypt&&n.sign){const r=o.signECDSA(c,t),n=JSON.stringify(r),a=yield s.getOrSetLocalGaiaHubConnection();try{return(yield Promise.all([i.uploadToGaiaHub(e,t,a,u),i.uploadToGaiaHub(`${e}${f}`,n,a,"application/json")]))[0]}catch(r){const o=yield s.setLocalGaiaHubConnection();return(yield Promise.all([i.uploadToGaiaHub(e,t,o,u),i.uploadToGaiaHub(`${e}${f}`,n,o,"application/json")]))[0]}}if(n.encrypt&&!n.sign)t=d(t,{publicKey:h}),u="application/json";else if(n.encrypt&&n.sign){const e=d(t,{publicKey:h}),r=o.signECDSA(c,e),n={signature:r.signature,publicKey:r.publicKey,cipherText:e};t=JSON.stringify(n),u="application/json"}const p=yield s.getOrSetLocalGaiaHubConnection();try{return yield i.uploadToGaiaHub(e,t,p,u)}catch(r){const n=yield s.setLocalGaiaHubConnection();return yield i.uploadToGaiaHub(e,t,n,u)}})},t.deleteFile=function(e,t,r){return n(this,void 0,void 0,function*(){r||(r=new l.UserSession);const n=yield r.getOrSetLocalGaiaHubConnection();if(Object.assign({},t).wasSigned)try{yield i.deleteFromGaiaHub(e,n),yield i.deleteFromGaiaHub(`${e}${f}`,n)}catch(t){const o=yield r.setLocalGaiaHubConnection();yield i.deleteFromGaiaHub(e,o),yield i.deleteFromGaiaHub(`${e}${f}`,n)}else try{yield i.deleteFromGaiaHub(e,n)}catch(t){const n=yield r.setLocalGaiaHubConnection();yield i.deleteFromGaiaHub(e,n)}})},t.getAppBucketUrl=function(e,t){return i.getBucketUrl(e,t)},t.listFiles=function(e,t){return function e(t,r,i,o,a,s){return n(this,void 0,void 0,function*(){if(o>65536)throw new Error("Too many entries to list");let n;r=r||(yield t.getOrSetLocalGaiaHubConnection());try{const a=JSON.stringify({page:i}),u={method:"POST",headers:{"Content-Type":"application/json","Content-Length":`${a.length}`,Authorization:`bearer ${r.token}`},body:a};if(!(n=yield fetch(`${r.server}/list-files/${r.address}`,u)).ok)throw new Error(`listFiles failed with HTTP status ${n.status}`)}catch(r){if(0===o){const r=yield t.setLocalGaiaHubConnection();return e(t,r,i,o+1,0,s)}throw r}const u=yield n.text(),c=JSON.parse(u),l=c.entries,f=c.page;if(null==l)throw new Error("Bad listFiles response: no entries");for(let e=0;e0?e(t,r,f,o+1,a+l.length,s):a+l.length})}(t=t||new l.UserSession,null,null,0,0,e)}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(38)),o=n(r(14)),a=r(42),s=r(26),u=r(58),c=r(32),l=r(31);function f(e,t,r,n){const c=e.challenge_text,l=e.latest_auth_version&&parseInt(e.latest_auth_version.slice(1),10)>=1,f=u.getPublicKeyFromPrivate(t);if(!l)return function(e,t){let r;try{r=JSON.parse(e)}catch(e){throw new Error("Failed in parsing legacy challenge text from the gaia hub.")}if("gaiahub"===r[0]&&"blockstack_storage_please_sign"===r[3]){const r=s.hexStringToECPair(t+(64===t.length?"01":"")),n=i.default.crypto.sha256(Buffer.from(e)),o=r.sign(n),a=i.default.script.signature.encode(o,i.default.Transaction.SIGHASH_NONE).toString("hex").slice(0,-2),c=u.getPublicKeyFromPrivate(t);return Buffer.from(JSON.stringify({publickey:c,signature:a})).toString("base64")}throw new Error("Failed to connect to legacy gaia hub. If you operate this hub, please update.")}(c,t);const h={gaiaChallenge:c,hubUrl:r,iss:f,salt:o.default.randomBytes(16).toString("hex"),associationToken:n};return`v1:${new a.TokenSigner("ES256K",t).sign(h)}`}t.BLOCKSTACK_GAIA_HUB_LABEL="blockstack-gaia-hub-config",t.uploadToGaiaHub=function(t,r,n,i="application/octet-stream"){return e(this,void 0,void 0,function*(){c.Logger.debug(`uploadToGaiaHub: uploading ${t} to ${n.server}`);const e=yield fetch(`${n.server}/store/${n.address}/${t}`,{method:"POST",headers:{"Content-Type":i,Authorization:`bearer ${n.token}`},body:r});if(!e.ok)throw new Error("Error when uploading to Gaia hub");const o=yield e.text();return JSON.parse(o).publicURL})},t.deleteFromGaiaHub=function(t,r){return e(this,void 0,void 0,function*(){c.Logger.debug(`deleteFromGaiaHub: deleting ${t} from ${r.server}`);const e=yield fetch(`${r.server}/delete/${r.address}/${t}`,{method:"DELETE",headers:{Authorization:`bearer ${r.token}`}});if(!e.ok){let t="";try{t=yield e.text()}catch(e){c.Logger.debug(`Error getting bad http response text: ${e}`)}const r="Error deleting file from Gaia hub: "+`${e.status} ${e.statusText}: ${t}`;throw c.Logger.error(r),404===e.status?new l.FileNotFound(r):new Error(r)}})},t.getFullReadUrl=function(e,t){return Promise.resolve(`${t.url_prefix}${t.address}/${e}`)},t.connectToGaiaHub=function(t,r,n){return e(this,void 0,void 0,function*(){c.Logger.debug(`connectToGaiaHub: ${t}/hub_info`);const e=yield fetch(`${t}/hub_info`),i=yield e.json(),o=i.read_url_prefix,a=f(i,r,t,n);return{url_prefix:o,address:s.ecPairToAddress(s.hexStringToECPair(r+(64===r.length?"01":""))),token:a,server:t}})},t.getBucketUrl=function(t,r){return e(this,void 0,void 0,function*(){const e=i.default.ECPair.fromPrivateKey(Buffer.from(r,"hex")),n=yield fetch(`${t}/hub_info`),o=yield n.text();return`${JSON.parse(o).read_url_prefix}${s.ecPairToAddress(e)}/`})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(101),i=r(39);t.lookupProfile=function(e,t){if(!e)return Promise.reject();let r;if(t){const n=`${t.replace(/\/$/,"")}/${e}`;r=fetch(n).then(e=>e.json())}else r=i.config.network.getNameInfo(e);return r.then(e=>{if(e.hasOwnProperty("zonefile")&&e.hasOwnProperty("address"))return n.resolveZoneFileToProfile(e.zonefile,e.address);throw new Error("Invalid zonefile lookup response: did not contain `address` or `zonefile` field")})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"makeZoneFile",{enumerable:!0,get:function(){return n.makeZoneFile}}),Object.defineProperty(t,"parseZoneFile",{enumerable:!0,get:function(){return i.parseZoneFile}}),Object.defineProperty(t,"ZoneFile",{enumerable:!0,get:function(){return o.ZoneFile}});var n=r(237),i=r(238),o=r(543)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeZoneFile=function(e,t=(0,n.getZoneFileTemplate)()){return t=function(e,t){let r="";return void 0!==e&&(r+="$ORIGIN "+e),t.replace("{$origin}",r)}(e.$origin,t),t=function(e,t){let r="";return void 0!==e&&(r+="$TTL "+e),t.replace("{$ttl}",r)}(e.$ttl,t),t=function(e,t){let r=t;if(void 0!==e){e.name=e.name||"@",e.ttl=e.ttl||"";for(const t in e){const n=e[t];r=r.replace("{"+t+"}",n+"\t")}}return r}(e.soa,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tNS\t"+t.host+"\n";return t.replace("{ns}",r)}(e.ns,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tA\t"+t.ip+"\n";return t.replace("{a}",r)}(e.a,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tAAAA\t"+t.ip+"\n";return t.replace("{aaaa}",r)}(e.aaaa,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tCNAME\t"+t.alias+"\n";return t.replace("{cname}",r)}(e.cname,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tMX\t"+t.preference+"\t"+t.host+"\n";return t.replace("{mx}",r)}(e.mx,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tPTR\t"+t.host+"\n";return t.replace("{ptr}",r)}(e.ptr,t),t=function(e,t){let r="";if(e)for(const t of e){r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tTXT\t";const e=t.txt;"string"==typeof e?r+='"'+e+'"':e instanceof Array&&(r+=e.map(function(e){return'"'+e+'"'}).join(" ")),r+="\n"}return t.replace("{txt}",r)}(e.txt,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tSRV\t"+t.priority+"\t",r+=t.weight+"\t",r+=t.port+"\t",r+=t.target+"\n";return t.replace("{srv}",r)}(e.srv,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tSPF\t"+t.data+"\n";return t.replace("{spf}",r)}(e.spf,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tURI\t"+t.priority+"\t",r+=t.weight+"\t",r+='"'+t.target+'"\n';return t.replace("{uri}",r)}(e.uri,t),(t=function(e,t){t=(t=t.replace("{zone}",e.$origin||!!e.soa&&e.soa.name||"")).replace("{datetime}",(new Date).toISOString());const r=Math.round(Date.now()/1e3);return t.replace("{time}",`${r}`)}(e,t)).replace(/\n{2,}/gim,"\n\n")};var n=r(542)},function(e,t,r){"use strict";function n(e){const t={},r=e.trim().split(/\s+/g),n=r.length;return t.name=r[0],t.minimum=parseInt(r[n-1],10),t.expire=parseInt(r[n-2],10),t.retry=parseInt(r[n-3],10),t.refresh=parseInt(r[n-4],10),t.serial=parseInt(r[n-5],10),t.rname=r[n-6],t.mname=r[n-7],isNaN(r[1])||(t.ttl=parseInt(r[1],10)),t}function i(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],host:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function o(e,t){const r=e.trim().split(/\s+/g),n=e.trim().toUpperCase().split(/\s+/g),i=r.length,o={name:r[0],ip:r[i-1]};return 0===n.lastIndexOf("A")&&(t.length?o.name=t[t.length-1].name:o.name="@"),isNaN(r[1])||(o.ttl=parseInt(r[1],10)),o}function a(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],ip:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function s(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],alias:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function u(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],preference:parseInt(t[r-2],10),host:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function c(e){const t=e.trim().match(/[^\s\"']+|\"[^\"]*\"|'[^']*'/g);if(!t)throw new Error("Failure to tokenize TXT record");const r=t.length,n=t.indexOf("TXT");function i(e){return e.indexOf('"')>-1&&(e=e.split('"')[1]),e.indexOf('"')>-1&&(e=e.split('"')[1]),e}let o;o=r-n-1>1?t.slice(n+1).map(i):i(t[r-1]);const a={name:t[0],txt:o};return isNaN(t[1])||(a.ttl=parseInt(t[1],10)),a}function l(e,t,r){const n=e.trim().split(/\s+/g);0===e.trim().toUpperCase().split(/\s+/g).lastIndexOf("PTR")&&t[t.length-1]&&n.unshift(t[t.length-1].name);const i=n.length,o={name:n[0],fullname:n[0]+"."+r,host:n[i-1]};return isNaN(n[1])||(o.ttl=parseInt(n[1],10)),o}function f(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],target:t[r-1],priority:parseInt(t[r-4],10),weight:parseInt(t[r-3],10),port:parseInt(t[r-2],10)};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function h(e){const t=e.trim().split(/\s+/g),r={name:t[0],data:""};let n=t.length;for(;n-- >4;)r.data=t[n]+" "+r.data.trim();return isNaN(t[1])||(r.ttl=parseInt(t[1],10)),r}function d(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],target:t[r-1].replace(/"/g,""),priority:parseInt(t[r-3],10),weight:parseInt(t[r-2],10)};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}Object.defineProperty(t,"__esModule",{value:!0}),t.parseZoneFile=function(e){return function(e){const t={},r=e.split("\n");for(const e of r){if(!e||!e.trim())continue;const r=e.toUpperCase();/\s+TXT\s+/.test(r)?(t.txt=t.txt||[],t.txt.push(c(e))):0===r.indexOf("$ORIGIN")?t.$origin=e.split(/\s+/g)[1]:0===r.indexOf("$TTL")?t.$ttl=parseInt(e.split(/\s+/g)[1],10):/\s+SOA\s+/.test(r)?t.soa=n(e):/\s+NS\s+/.test(r)?(t.ns=t.ns||[],t.ns.push(i(e))):/\s+A\s+/.test(r)?(t.a=t.a||[],t.a.push(o(e,t.a))):/\s+AAAA\s+/.test(r)?(t.aaaa=t.aaaa||[],t.aaaa.push(a(e))):/\s+CNAME\s+/.test(r)?(t.cname=t.cname||[],t.cname.push(s(e))):/\s+MX\s+/.test(r)?(t.mx=t.mx||[],t.mx.push(u(e))):/\s+PTR\s+/.test(r)?(t.ptr=t.ptr||[],t.ptr.push(l(e,t.ptr,t.$origin))):/\s+SRV\s+/.test(r)?(t.srv=t.srv||[],t.srv.push(f(e))):/\s+SPF\s+/.test(r)?(t.spf=t.spf||[],t.spf.push(h(e))):/\s+URI\s+/.test(r)&&(t.uri=t.uri||[],t.uri.push(d(e)))}return t}(e=function(e){const t=[],r=/\([\s\S]*?\)/gim;let n=r.exec(e);for(;null!==n;){const i=n[0].replace(/\s+/gm," ");t.push({match:n,replacement:i}),n=r.exec(e)}const i=e.split("");for(const e of t){const{match:t,replacement:r}=e;i.splice(t.index,t[0].length,r)}return i.join("").replace(/\(|\)/gim," ")}(e=function(e){return e.replace(/(^|[^\\]);.*/g,function(e,t){return t||""})}(e)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(546);t.validateProofs=function(e,t,r=null){if(!e)throw new Error("Profile must not be null");let i=[];const o=[];return e.hasOwnProperty("account")?((i=e.account).forEach(e=>{if(e.hasOwnProperty("service")&&!n.profileServices.hasOwnProperty(e.service))return;if(!e.hasOwnProperty("proofType")||"http"!==e.proofType||!e.hasOwnProperty("proofUrl"))return;const i={service:e.service,proof_url:e.proofUrl,identifier:e.identifier,valid:!1};o.push(n.profileServices[e.service].validateProof(i,t,r))}),Promise.all(o)):Promise.resolve([])}},function(e,t,r){"use strict";var n=r(241),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},o={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s={__proto__:null,math:!0,svg:!0},u={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0,foreignObject:!0,desc:!0,title:!0},c=/\s|\//;function l(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this._foreignContext=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(n=this._options.Tokenizer),this._tokenizer=new n(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}r(3)(l,r(83).EventEmitter),l.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},l.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},l.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in o)for(var t;(t=this._stack[this._stack.length-1])in o[e];this.onclosetag(t));!this._options.xmlMode&&e in a||(this._stack.push(e),e in s?this._foreignContext.push(!0):e in u&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},l.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in a&&this._cbs.onclosetag(this._tagname),this._tagname=""},l.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(e in s||e in u)&&this._foreignContext.pop(),!this._stack.length||e in a&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},l.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},l.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},l.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},l.prototype.onattribdata=function(e){this._attribvalue+=e},l.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},l.prototype._getInstructionName=function(e){var t=e.search(c),r=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(r=r.toLowerCase()),r},l.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},l.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},l.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},l.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},l.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},l.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},l.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},l.prototype.parseComplete=function(e){this.reset(),this.end(e)},l.prototype.write=function(e){this._tokenizer.write(e)},l.prototype.end=function(e){this._tokenizer.end(e)},l.prototype.pause=function(){this._tokenizer.pause()},l.prototype.resume=function(){this._tokenizer.resume()},l.prototype.parseChunk=l.prototype.write,l.prototype.done=l.prototype.end,e.exports=l},function(e,t,r){"use strict";e.exports=ge;var n=r(242),i=r(144),o=r(243),a=r(145),s=0,u=s++,c=s++,l=s++,f=s++,h=s++,d=s++,p=s++,m=s++,g=s++,v=s++,b=s++,y=s++,_=s++,w=s++,k=s++,S=s++,x=s++,E=s++,A=s++,O=s++,P=s++,T=s++,C=s++,j=s++,I=s++,M=s++,D=s++,B=s++,N=s++,z=s++,R=s++,F=s++,U=s++,$=s++,L=s++,q=s++,H=s++,V=s++,K=s++,W=s++,G=s++,Z=s++,Y=s++,X=s++,J=s++,Q=s++,ee=s++,te=s++,re=s++,ne=s++,ie=s++,oe=s++,ae=s++,se=s++,ue=s++,ce=0,le=ce++,fe=ce++,he=ce++;function de(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function pe(e,t,r){var n=e.toLowerCase();return e===n?function(e){e===n?this._state=t:(this._state=r,this._index--)}:function(i){i===n||i===e?this._state=t:(this._state=r,this._index--)}}function me(e,t){var r=e.toLowerCase();return function(n){n===r||n===e?this._state=t:(this._state=l,this._index--)}}function ge(e,t){this._state=u,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=u,this._special=le,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}ge.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=c,this._sectionStart=this._index):this._decodeEntities&&this._special===le&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=u,this._state=ie,this._sectionStart=this._index)},ge.prototype._stateBeforeTagName=function(e){"/"===e?this._state=h:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==le||de(e)?this._state=u:"!"===e?(this._state=k,this._sectionStart=this._index+1):"?"===e?(this._state=x,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?l:R,this._sectionStart=this._index)},ge.prototype._stateInTagName=function(e){("/"===e||">"===e||de(e))&&(this._emitToken("onopentagname"),this._state=m,this._index--)},ge.prototype._stateBeforeCloseingTagName=function(e){de(e)||(">"===e?this._state=u:this._special!==le?"s"===e||"S"===e?this._state=F:(this._state=u,this._index--):(this._state=d,this._sectionStart=this._index))},ge.prototype._stateInCloseingTagName=function(e){(">"===e||de(e))&&(this._emitToken("onclosetag"),this._state=p,this._index--)},ge.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=u,this._sectionStart=this._index+1)},ge.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=u,this._sectionStart=this._index+1):"/"===e?this._state=f:de(e)||(this._state=g,this._sectionStart=this._index)},ge.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=u,this._sectionStart=this._index+1):de(e)||(this._state=m,this._index--)},ge.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||de(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=v,this._index--)},ge.prototype._stateAfterAttributeName=function(e){"="===e?this._state=b:"/"===e||">"===e?(this._cbs.onattribend(),this._state=m,this._index--):de(e)||(this._cbs.onattribend(),this._state=g,this._sectionStart=this._index)},ge.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=y,this._sectionStart=this._index+1):"'"===e?(this._state=_,this._sectionStart=this._index+1):de(e)||(this._state=w,this._sectionStart=this._index,this._index--)},ge.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ie,this._sectionStart=this._index)},ge.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ie,this._sectionStart=this._index)},ge.prototype._stateInAttributeValueNoQuotes=function(e){de(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ie,this._sectionStart=this._index)},ge.prototype._stateBeforeDeclaration=function(e){this._state="["===e?T:"-"===e?E:S},ge.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ge.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ge.prototype._stateBeforeComment=function(e){"-"===e?(this._state=A,this._sectionStart=this._index+1):this._state=S},ge.prototype._stateInComment=function(e){"-"===e&&(this._state=O)},ge.prototype._stateAfterComment1=function(e){this._state="-"===e?P:A},ge.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):"-"!==e&&(this._state=A)},ge.prototype._stateBeforeCdata1=pe("C",C,S),ge.prototype._stateBeforeCdata2=pe("D",j,S),ge.prototype._stateBeforeCdata3=pe("A",I,S),ge.prototype._stateBeforeCdata4=pe("T",M,S),ge.prototype._stateBeforeCdata5=pe("A",D,S),ge.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=B,this._sectionStart=this._index+1):(this._state=S,this._index--)},ge.prototype._stateInCdata=function(e){"]"===e&&(this._state=N)},ge.prototype._stateAfterCdata1=function(e){this._state="]"===e?z:B},ge.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):"]"!==e&&(this._state=B)},ge.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=U:"t"===e||"T"===e?this._state=Y:(this._state=l,this._index--)},ge.prototype._stateBeforeSpecialEnd=function(e){this._special!==fe||"c"!==e&&"C"!==e?this._special!==he||"t"!==e&&"T"!==e?this._state=u:this._state=ee:this._state=V},ge.prototype._stateBeforeScript1=me("R",$),ge.prototype._stateBeforeScript2=me("I",L),ge.prototype._stateBeforeScript3=me("P",q),ge.prototype._stateBeforeScript4=me("T",H),ge.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||de(e))&&(this._special=fe),this._state=l,this._index--},ge.prototype._stateAfterScript1=pe("R",K,u),ge.prototype._stateAfterScript2=pe("I",W,u),ge.prototype._stateAfterScript3=pe("P",G,u),ge.prototype._stateAfterScript4=pe("T",Z,u),ge.prototype._stateAfterScript5=function(e){">"===e||de(e)?(this._special=le,this._state=d,this._sectionStart=this._index-6,this._index--):this._state=u},ge.prototype._stateBeforeStyle1=me("Y",X),ge.prototype._stateBeforeStyle2=me("L",J),ge.prototype._stateBeforeStyle3=me("E",Q),ge.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||de(e))&&(this._special=he),this._state=l,this._index--},ge.prototype._stateAfterStyle1=pe("Y",te,u),ge.prototype._stateAfterStyle2=pe("L",re,u),ge.prototype._stateAfterStyle3=pe("E",ne,u),ge.prototype._stateAfterStyle4=function(e){">"===e||de(e)?(this._special=le,this._state=d,this._sectionStart=this._index-5,this._index--):this._state=u},ge.prototype._stateBeforeEntity=pe("#",oe,ae),ge.prototype._stateBeforeNumericEntity=pe("X",ue,se),ge.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(t=6);t>=2;){var r=this._buffer.substr(e,t);if(o.hasOwnProperty(r))return this._emitPartial(o[r]),void(this._sectionStart+=t+1);t--}},ge.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==u?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},ge.prototype._decodeNumericEntity=function(e,t){var r=this._sectionStart+e;if(r!==this._index){var i=this._buffer.substring(r,this._index),o=parseInt(i,t);this._emitPartial(n(o)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},ge.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},ge.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},ge.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===u?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},ge.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},ge.prototype._parse=function(){for(;this._index=55296&&e<=57343||e>1114111)return"�";e in n&&(e=n[e]);var t="";e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e);return t+=String.fromCharCode(e)}},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t,r){"use strict";var n=r(59),i=/\s+/g,o=r(245),a=r(549);function s(e,t,r){"object"==typeof e?(r=t,t=e,e=null):"function"==typeof t&&(r=t,t=u),this._callback=e,this._options=t||u,this._elementCB=r,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var u={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};s.prototype.onparserinit=function(e){this._parser=e},s.prototype.onreset=function(){s.call(this,this._callback,this._options,this._elementCB)},s.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},s.prototype._handleCallback=s.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},s.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&e&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},s.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;for(var r in t="tag"===e.type?Object.create(a):Object.create(o),e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},s.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],r=t?t.children:this.dom,n=r[r.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),n?(e.prev=n,n.next=e):e.prev=null,r.push(e),e.parent=t||null},s.prototype.onopentag=function(e,t){var r={type:"script"===e?n.Script:"style"===e?n.Style:n.Tag,name:e,attribs:t,children:[]},i=this._createDomElement(r);this._addDomElement(i),this._tagStack.push(i)},s.prototype.ontext=function(e){var t,r=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===n.Text)r?t.data=(t.data+e).replace(i," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===n.Text)r?t.data=(t.data+e).replace(i," "):t.data+=e;else{r&&(e=e.replace(i," "));var o=this._createDomElement({data:e,type:n.Text});this._addDomElement(o)}},s.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===n.Comment)t.data+=e;else{var r={data:e,type:n.Comment},i=this._createDomElement(r);this._addDomElement(i),this._tagStack.push(i)}},s.prototype.oncdatastart=function(){var e={children:[{data:"",type:n.Text}],type:n.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},s.prototype.oncommentend=s.prototype.oncdataend=function(){this._tagStack.pop()},s.prototype.onprocessinginstruction=function(e,t){var r=this._createDomElement({name:e,data:t,type:n.Directive});this._addDomElement(r)},e.exports=s},function(e,t,r){"use strict";var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return o[this.type]||o.element}},i={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},o={element:1,text:3,cdata:4,comment:8};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,r){"use strict";e.exports=a;var n=r(240),i=r(561).Writable,o=r(85).StringDecoder,Buffer=r(0).Buffer;function a(e,t){var r=this._parser=new n(e,t),a=this._decoder=new o;i.call(this,{decodeStrings:!1}),this.once("finish",function(){r.end(a.end())})}r(3)(a,i),a.prototype._write=function(e,t,r){e instanceof Buffer&&(e=this._decoder.write(e)),this._parser.write(e),r()}},function(e,t,r){"use strict";var n=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s=/^(?:0|[1-9]\d*)$/;var u=Object.prototype,c=u.hasOwnProperty,l=u.toString,f=u.propertyIsEnumerable,h=Math.max;function d(e,t){var r=b(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&y(e)}(e)&&c.call(e,"callee")&&(!f.call(e,"callee")||l.call(e)==i)}(e)?function(e,t){for(var r=-1,n=Array(e);++r-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=_(e)?l.call(e):"";return t==o||t==a}(e)}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var w,k,S,x=(w=function(e,t){!function(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=w.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!_(r))return!1;var n=typeof t;return!!("number"==n?y(r)&&g(t,r.length):"string"==n&&t in r)&&v(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=S(e)?f.call(e):"";return t==o||t==a}(e)}function S(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var x,E=(x=function(e,t,r,n){!function(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=x.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!S(r))return!1;var n=typeof t;return!!("number"==n?k(r)&&y(t,r.length):"string"==n&&t in r)&&_(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r=0&&e(t)}},not:function(e,t){var r=t.name,n=t.value;return""===n?function(t){return!!o(t,r)&&e(t)}:t.ignoreCase?(n=n.toLowerCase(),function(t){var i=o(t,r);return null!=i&&i.toLowerCase()!==n&&e(t)}):function(t){return o(t,r)!==n&&e(t)}}};e.exports={compile:function(e,t,r){if(r&&r.strict&&(t.ignoreCase||"not"===t.action))throw SyntaxError("Unsupported attribute selector");return u[t.action](e,t)},rules:u}},function(e){e.exports={universal:50,tag:30,attribute:1,pseudo:0,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containsValidProofStatement=function(e,t=null){if(!t)return!1;if(e=e.toLowerCase(),t.split(".").length<2)throw new Error("Please provide the fully qualified Blockstack name.");let r=null;t.endsWith(".id")&&(r=t.split(".id")[0]);const n=null!=r?[`verifying myself: my bitcoin username is +${r}`,`verifying myself: my bitcoin username is ${r}`,`verifying myself: my openname is ${r}`,`verifying that +${r} is my bitcoin username`,`verifying that ${r} is my bitcoin username`,`verifying that ${r} is my openname`,`verifying that +${r} is my openname`,`verifying i am +${r} on my passcard`,`verifying that +${r} is my blockchain id`,`verifying that "${t}" is my blockstack id`,`verifying that ${t} is my blockstack id`,`verifying that "${t}" is my blockstack id`]:[`verifying that "${t}" is my blockstack id`,`verifying that ${t} is my blockstack id`,`verifying that "${t}" is my blockstack id`];for(let t=0;t0&&e.auth[0]&&e.auth[0].publicKeychain&&i.push({"@type":"Account",role:"key",service:"bip32",identifier:e.auth[0].publicKeychain}),e.pgp&&e.pgp.url&&i.push({"@type":"Account",role:"key",service:"pgp",identifier:e.pgp.fingerprint,contentUrl:e.pgp.url}),t.account=i}return t}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(38)),i=e(r(7)),o=r(150),a=r(39);function s(e){return"number"==typeof e?{units:"BTC",amount:new i.default(String(e))}:{units:e.units,amount:e.amount}}function u(){const e=new n.default.TransactionBuilder(a.config.network.layer1);return e.setVersion(1),e}function c(e){const t=`${a.config.network.MAGIC_BYTES}${e}`;if(3!==t.length)throw new Error("Runtime error: invalid MAGIC_BYTES");return t}function l(e,t,r=null,i=null){let a;if(i&&!r&&(r="0000000000000000000000000000000000000000"),r){if(40!==r.length)throw new Error("Value hash length incorrect. Expecting 20-bytes, hex-encoded");if(i&&16!==i.length)throw new Error("Burn field length incorrect. Expecting 8-bytes, hex-encoded");const t=i?65:57;(a=Buffer.alloc(t,0)).write(e,0,37,"ascii"),a.write(r,37,20,"hex"),i&&a.write(i,57,8,"hex")}else a=Buffer.from(e,"ascii");const s=Buffer.concat([Buffer.from(c(":"),"ascii"),a]),l=n.default.payments.embed({data:[s]}).output,f=u();return f.addOutput(l,0),f.addOutput(t,o.DUST_MINIMUM),f.buildIncomplete()}t.BlockstackNamespace=class{constructor(e){if(e.length>19)throw new Error("Namespace ID too long (19 chars max)");if(!e.match("[0123456789abcdefghijklmnopqrstuvwxyz_-]+"))throw new Error("Namespace ID can only use characters 0123456789abcdefghijklmnopqrstuvwxyz-_");this.namespaceID=e,this.version=-1,this.lifetime=-1,this.coeff=-1,this.base=-1,this.buckets=[-1],this.nonalphaDiscount=-1,this.noVowelDiscount=-1}check(){try{return this.setVersion(this.version),this.setLifetime(this.lifetime),this.setCoeff(this.coeff),this.setBase(this.base),this.setBuckets(this.buckets),this.setNonalphaDiscount(this.nonalphaDiscount),this.setNoVowelDiscount(this.noVowelDiscount),!0}catch(e){return!1}}setVersion(e){if(e<0||e>Math.pow(2,16)-1)throw new Error("Invalid version: must be a 16-bit number");this.version=e}setLifetime(e){if(e<0||e>Math.pow(2,32)-1)throw new Error("Invalid lifetime: must be a 32-bit number");this.lifetime=e}setCoeff(e){if(e<0||e>255)throw new Error("Invalid coeff: must be an 8-bit number");this.coeff=e}setBase(e){if(e<0||e>255)throw new Error("Invalid base: must be an 8-bit number");this.base=e}setBuckets(e){if(16!==e.length)throw new Error("Invalid buckets: must have 16 entries");for(let t=0;t15)throw new Error("Invalid buckets: must be 4-bit numbers");this.buckets=e.slice(0)}setNonalphaDiscount(e){if(e<=0||e>15)throw new Error("Invalid nonalphaDiscount: must be a positive 4-bit number");this.nonalphaDiscount=e}setNoVowelDiscount(e){if(e<=0||e>15)throw new Error("Invalid noVowelDiscount: must be a positive 4-bit number");this.noVowelDiscount=e}toHexPayload(){return`00000000${this.lifetime.toString(16)}`.slice(-8)+`00${this.coeff.toString(16)}`.slice(-2)+`00${this.base.toString(16)}`.slice(-2)+this.buckets.map(e=>e.toString(16)).reduce((e,t)=>e+t,"")+(this.nonalphaDiscount.toString(16)+this.noVowelDiscount.toString(16))+`0000${this.version.toString(16)}`.slice(-4)+Buffer.from(this.namespaceID).toString("hex")}},t.makePreorderSkeleton=function(e,t,r,i,l,f=null){const h=s(l),d=a.config.network,p=[Buffer.from(o.decodeB40(e),"hex"),n.default.address.toOutputScript(r,d.layer1)];if(f){const e=Buffer.from(f,"ascii");p.push(e)}const m=Buffer.concat(p),g=o.hash160(m),v="BTC"===h.units?39:66,b=Buffer.alloc(v);if(b.write(c("?"),0,3,"ascii"),g.copy(b,3),b.write(t,23,16,"hex"),"BTC"!==h.units){const t=h.amount.toString(16,2);if(t.length>16)throw new Error(`Cannot preorder '${e}': cannot fit price into 8 bytes`);const r=`0000000000000000${t}`.slice(-16);b.write(r,39,8,"hex"),b.write(h.units,47,h.units.length,"ascii")}const y=n.default.payments.embed({data:[b]}).output,_=u();if(_.addOutput(y,0),_.addOutput(r,o.DUST_MINIMUM),"BTC"===h.units){const e=h.amount.toNumber();_.addOutput(i,e)}else _.addOutput(i,o.DUST_MINIMUM);return _.buildIncomplete()},t.makeRegisterSkeleton=l,t.makeRenewalSkeleton=function(e,t,r,i,u,c=null){const f=s(u),h=a.config.network,d="BTC"===f.units?null:f.amount,p="BTC"===f.units?f.amount.toNumber():o.DUST_MINIMUM;let m=null;if(d){const t=d.toString(16,2);if(t.length>16)throw new Error(`Cannot renew '${e}': cannot fit price into 8 bytes`);m=`0000000000000000${t}`.slice(-16)}const g=l(e,t,c,m),v=n.default.TransactionBuilder.fromTransaction(g,h.layer1);return v.addOutput(r,o.DUST_MINIMUM),v.addOutput(i,p),v.buildIncomplete()},t.makeTransferSkeleton=function(e,t,r,i=!1){const a=Buffer.alloc(36);let s="~";i&&(s=">"),a.write(c(">"),0,3,"ascii"),a.write(s,3,1,"ascii"),o.hash128(Buffer.from(e,"ascii")).copy(a,4),a.write(t,20,16,"hex");const l=n.default.payments.embed({data:[a]}).output,f=u();return f.addOutput(l,0),f.addOutput(r,o.DUST_MINIMUM),f.buildIncomplete()},t.makeUpdateSkeleton=function(e,t,r){const i=Buffer.alloc(39),a=Buffer.from(e,"ascii"),s=Buffer.from(t,"ascii"),l=o.hash128(Buffer.concat([a,s]));i.write(c("+"),0,3,"ascii"),l.copy(i,3),i.write(r,19,20,"hex");const f=n.default.payments.embed({data:[i]}).output,h=u();return h.addOutput(f,0),h.buildIncomplete()},t.makeRevokeSkeleton=function(e){const t=Buffer.alloc(3),r=Buffer.from(e,"ascii");t.write(c("~"),0,3,"ascii");const i=Buffer.concat([t,r]),o=n.default.payments.embed({data:[i]}).output,a=u();return a.addOutput(o,0),a.buildIncomplete()},t.makeNamespacePreorderSkeleton=function(e,t,r,i,l){const f=s(l);if("BTC"!==f.units&&"STACKS"!==f.units)throw new Error(`Invalid burnUnits ${f.units}`);const h=a.config.network,d=h.getDefaultBurnAddress(),p=[Buffer.from(o.decodeB40(e),"hex"),n.default.address.toOutputScript(r,h.layer1),Buffer.from(i,"ascii")],m=Buffer.concat(p),g=o.hash160(m);let v=o.DUST_MINIMUM,b=39;"STACKS"===f.units?b=47:v=f.amount.toNumber();const y=Buffer.alloc(b);if(y.write(c("*"),0,3,"ascii"),g.copy(y,3),y.write(t,23,16,"hex"),"STACKS"===f.units){const e=`0000000000000000${f.amount.toString(16,2)}`.slice(-16);y.write(e,39,8,"hex")}const _=n.default.payments.embed({data:[y]}).output,w=u();return w.addOutput(_,0),w.addOutput(r,o.DUST_MINIMUM),w.addOutput(d,v),w.buildIncomplete()},t.makeNamespaceRevealSkeleton=function(e,t){const r=e.toHexPayload(),i=Buffer.alloc(3+r.length/2);i.write(c("&"),0,3,"ascii"),i.write(r,3,r.length/2,"hex");const a=n.default.payments.embed({data:[i]}).output,s=u();return s.addOutput(a,0),s.addOutput(t,o.DUST_MINIMUM),s.buildIncomplete()},t.makeNamespaceReadySkeleton=function(e){const t=Buffer.alloc(3+e.length+1);t.write(c("!"),0,3,"ascii"),t.write(`.${e}`,3,e.length+1,"ascii");const r=n.default.payments.embed({data:[t]}).output,i=u();return i.addOutput(r,0),i.buildIncomplete()},t.makeNameImportSkeleton=function(e,t,r){if(40!==r.length)throw new Error("Invalid zonefile hash: must be 20 bytes hex-encoded");const i=a.config.network,s=Buffer.alloc(3+e.length);s.write(c(";"),0,3,"ascii"),s.write(e,3,e.length,"ascii");const l=n.default.payments.embed({data:[s]}).output,f=u(),h=n.default.address.toBase58Check(Buffer.from(r,"hex"),i.layer1.pubKeyHash);return f.addOutput(l,0),f.addOutput(t,o.DUST_MINIMUM),f.addOutput(h,o.DUST_MINIMUM),f.buildIncomplete()},t.makeAnnounceSkeleton=function(e){if(40!==e.length)throw new Error("Invalid message hash: must be 20 bytes hex-encoded");const t=Buffer.alloc(3+e.length/2);t.write(c("#"),0,3,"ascii"),t.write(e,3,e.length/2,"hex");const r=n.default.payments.embed({data:[t]}).output,i=u();return i.addOutput(r,0),i.buildIncomplete()},t.makeTokenTransferSkeleton=function(e,t,r,i,a){if(a.length>34)throw new Error("Invalid scratch area: must be no more than 34 bytes");const s=Buffer.alloc(46+a.length),l=`00000000000000000000000000000000000000${Buffer.from(r).toString("hex")}`.slice(-38),f=i.toString(16,2);if(f.length>16)throw new Error(`Cannot send tokens: cannot fit ${i.toString()} into 8 bytes`);const h=`0000000000000000${f}`.slice(-16);s.write(c("$"),0,3,"ascii"),s.write(t,3,t.length/2,"hex"),s.write(l,19,l.length/2,"hex"),s.write(h,38,h.length/2,"hex"),s.write(a,46,a.length,"ascii");const d=n.default.payments.embed({data:[s]}).output,p=u();return p.addOutput(d,0),p.addOutput(e,o.DUST_MINIMUM),p.buildIncomplete()}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(26);class i{constructor(e){this.ecPair=e}static fromHexString(e){return new i(n.hexStringToECPair(e))}signerVersion(){return 1}getAddress(){return Promise.resolve().then(()=>n.ecPairToAddress(this.ecPair))}signTransaction(e,t){return Promise.resolve().then(()=>{e.sign(t,this.ecPair)})}}t.PubkeyHashSigner=i},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(21),i=r(86),o=i.pbkdf2Sync,a=i.pbkdf2,s=r(28),u=r(601),c=r(602),l=r(603),f=r(604),h=r(605),d=r(606),p=r(607),m=r(608),g=r(609),v=f,b="Invalid mnemonic",y="Invalid entropy",_="Invalid mnemonic checksum";function w(e,t,r){for(;e.length32)throw new Error(y);if(s.length%4!=0)throw new Error(y);var c=Buffer.from(s);if(x(c)!==a)throw new Error(_);return c.toString("hex")}function T(e,t){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"hex")),t=t||v,e.length<16)throw new TypeError(y);if(e.length>32)throw new TypeError(y);if(e.length%4!=0)throw new TypeError(y);var r=(S([].slice.call(e))+x(e)).match(/(.{1,11})/g).map(function(e){var r=k(e);return t[r]});return t===p?r.join(" "):r.join(" ")}e.exports={mnemonicToSeed:A,mnemonicToSeedAsync:O,mnemonicToSeedHex:function(e,t){return A(e,t).toString("hex")},mnemonicToSeedHexAsync:function(e,t){return O(e,t).then(function(e){return e.toString("hex")})},mnemonicToEntropy:P,entropyToMnemonic:T,generateMnemonic:function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(y);return T((t=t||s)(e/8),r)},validateMnemonic:function(e,t){try{P(e,t)}catch(e){return!1}return!0},wordlists:{EN:f,JA:p,chinese_simplified:c,chinese_traditional:l,english:f,french:h,italian:d,japanese:p,korean:m,spanish:g}}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(14)),i=e(r(256)),o=e(r(610));t.encryptMnemonic=function(e,t){return Promise.resolve().then(()=>{if(!i.default.validateMnemonic(e))throw new Error("Not a valid bip39 nmemonic");const r=Buffer.from(i.default.mnemonicToEntropy(e),"hex"),o=n.default.randomBytes(16),a=n.default.pbkdf2Sync(t,o,1e5,48,"sha512"),s=a.slice(0,16),u=a.slice(16,32),c=a.slice(32,48),l=n.default.createCipheriv("aes-128-cbc",s,c);let f=l.update(r).toString("hex");f+=l.final().toString("hex");const h=Buffer.concat([o,Buffer.from(f,"hex")]),d=n.default.createHmac("sha256",u);d.write(h);const p=d.digest();return Buffer.concat([o,p,Buffer.from(f,"hex")])})};class a extends Error{}t.decryptMnemonic=function(e,t){const r=Buffer.isBuffer(e)?e:Buffer.from(e,"hex");return function(e,t){return Promise.resolve().then(()=>{const r=e.slice(0,16),o=e.slice(16,48),s=e.slice(48),u=Buffer.concat([r,s]),c=n.default.pbkdf2Sync(t,r,1e5,48,"sha512"),l=c.slice(0,16),f=c.slice(16,32),h=c.slice(32,48),d=n.default.createDecipheriv("aes-128-cbc",l,h);let p=d.update(s).toString("hex");p+=d.final().toString("hex");const m=n.default.createHmac("sha256",f);m.write(u);const g=m.digest();if(n.default.createHash("sha256").update(o).digest().toString("hex")!==n.default.createHash("sha256").update(g).digest().toString("hex"))throw new a("Wrong password (HMAC mismatch)");const v=i.default.entropyToMnemonic(p);if(!i.default.validateMnemonic(v))throw new a("Wrong password (invalid plaintext)");return v})}(r,t).catch(e=>{if(e instanceof a)throw e;return function(e,t){return new Promise((r,n)=>{o.default.decrypt({key:Buffer.from(t),data:e},(e,t)=>{e?n(e):r(t)})})}(r,t).then(e=>e.toString())})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c,l,f,h,d,p,m,g,v,b,y,_,w,k={}.hasOwnProperty;g=r(17),h=r(13).WordArray,y=r(80),e=r(152).AES,l=r(153).TwoFish,p=r(106),d=(w=r(107)).XOR,o=w.Concat,r(53).SHA512,u=r(156).PBKDF2,c=r(260).Scrypt,_=r(22),b=r(261),v=r(262).make_esc,s=r(61).HMAC_SHA256,f={1:{header:[479516638,1],salt_size:8,xsalsa20_rev:!0,kdf:{klass:u,opts:{c:1024,klass:d}},hmac_key_size:96,version:1},2:{header:[479516638,2],salt_size:16,xsalsa20_rev:!0,kdf:{klass:c,opts:{c:64,klass:d,N:12,r:8,p:1}},hmac_key_size:96,version:2},3:{header:[479516638,3],salt_size:16,xsalsa20_rev:!1,kdf:{klass:c,opts:{c:1,klass:s,N:15,r:8,p:1}},hmac_key_size:96,version:3}},t.CURRENT_VERSION=i=3,n=function(){function t(e){var t,r;if(t=e.key,r=e.version,this.version=f[null!=r?r:i],null==this.version)throw new Error("unknown version: "+r);this.set_key(t),this.derived_keys={}}return t.prototype.kdf=function(t,r){var n,i,o,a,s,u,c,f,d,p,m,v,b,_,w,k,S;w=g.findDeferral(arguments),b=t.salt,a=t.extra_keymaterial,m=t.progress_hook,(S=this,function(e){k=new g.Deferrals(e,{parent:w,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.kdf"}),S._check_scrubbed(S.key,"in KDF",r,k.defer({lineno:97})),k._fulfill()})(function(t){return function(){_=b.to_hex(),c=t.key.clone(),k=new g.Deferrals(function(){!function(r){if(null!=(f=t.derived_keys[_]))return r();for(u in t._kdf=new t.version.kdf.klass(t.version.kdf.opts),d={hmac:t.version.hmac_key_size,aes:e.keySize,twofish:l.keySize,salsa20:y.Salsa20.keySize},p=["hmac","aes","twofish","salsa20"],i=a||0,d)i+=d[u];n={dkLen:i,key:c,progress_hook:m,salt:b},function(e){k=new g.Deferrals(e,{parent:w,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.kdf"}),t._kdf.run(n,k.defer({assign_fn:function(){return v=arguments[0]},lineno:124})),k._fulfill()}(function(){var e,n;for(f={},s=0,e=0,n=p.length;e")+" ("+e[n.filename]+":"+(e[n.lineno]+1)+")"},c=function(e){return"undefined"!=typeof console&&null!==console?console.error("ICED warning: "+e):void 0},t.trampoline=u=function(t){return s(500)?null!=(null!=e?e.nextTick:void 0)?e.nextTick(t):setTimeout(t):t()},t.Deferrals=function(){function e(e,t){this.trace=t,this.continuation=e,this.count=1,this.ret=null}return e.prototype._call=function(e){var t;return this.continuation?(l=e,t=this.continuation,this.continuation=null,t(this.ret)):c("Entered dead await at "+h(e))},e.prototype._fulfill=function(e,t){if(!(--this.count>0))return u((r=this,function(){return r._call(t)}));var r},e.prototype.defer=function(e){return this.count++,this,o(this,e,null,this.trace)},e}(),t.findDeferral=function(e){var t,r,i;for(r=0,i=e.length;ro;n=0<=o?++i:--i)s(r,e,n,1),this.salsa20_8(r),a(t,r,n,0,1);for(n=0;n(n=4294967295)?new Error("asked for too much data"):this.r*this.p>=1<<30?new Error("r & p are too big"):(this.r>n/128/this.p||this.r>n/256||this.N>n/128/this.r)&&new Error("N is too big"),a=new Int32Array(64*this.r),i=new Int32Array(32*this.r*this.N),l=function(e){return e.what+=" (pass 1)","function"==typeof p?p(e):void 0},(w=this,function(e){b=new f.Deferrals(e,{parent:v,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),w.pbkdf2({key:c.clone(),salt:g,dkLen:128*w.r*w.p,c:w.c0,progress_hook:l},b.defer({assign_fn:function(){return r=arguments[0]},lineno:214})),b._fulfill()})(function(e){return function(){var n;r=new Int32Array(r.words),m(r),l=function(t){return function(r){return"function"==typeof p?p({i:r+t*e.N*2,what:"scrypt",total:e.p*e.N*2}):void 0}},u=0,0,y=e.p,_=y>0,(n=function(t){var o,s;if(o=t,s=function(){return f.trampoline(function(){return _?u+=1:u-=1,n(t)})},!0===_&&u>=e.p||!1===_&&u<=e.p)return o();!function(t){b=new f.Deferrals(t,{parent:v,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),e.smix({B:r.subarray(32*e.r*u),V:i,XY:a,progress_hook:l(u)},b.defer({lineno:221})),b._fulfill()}(s)})(function(){m(r),l=function(e){return e.what+=" (pass 2)","function"==typeof p?p(e):void 0},b=new f.Deferrals(function(){return d(a),d(i),d(r),c.scrub(),t(h)},{parent:v,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),e.pbkdf2({key:c,salt:o.from_i32a(r),dkLen:s,c:e.c1,progress_hook:l},b.defer({assign_fn:function(){return h=arguments[0]},lineno:229})),b._fulfill()})}}(this))},t}(),p=function(e,t){var r,n,o,a,s,u,c,l,h,d,p,m,g,v,b;v=f.findDeferral(arguments),c=e.key,m=e.salt,p=e.r,r=e.N,h=e.p,o=e.c0,a=e.c1,n=e.c,l=e.klass,d=e.progress_hook,s=e.dkLen,u=new i({r:p,N:r,p:h,c:n,c0:o,c1:a,klass:l}),function(e){b=new f.Deferrals(e,{parent:v,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced"}),u.run({key:c,salt:m,progress_hook:d,dkLen:s},b.defer({assign_fn:function(){return g=arguments[0]},lineno:259})),b._fulfill()}(function(){return t(g)})},t.Scrypt=i,t.scrypt=p,t.v_endian_reverse=m}).call(this)},function(e,t,r){"use strict";(function(Buffer){(function(){var e,n,i,o,a,s,u,c,l,f,h,d,p,m,g,v,b;if(u=r(17),function(){},l=r(612),e=r(614).ADRBG,i=r(13).WordArray,o=r(107).XOR,d=r(22),p=null,a=function(e){var t;return t=new Uint8Array(e),p(t),new Buffer(t)},null!=(p=null!=(c="undefined"!=typeof window&&null!==window&&null!=(v=window.crypto)?v.getRandomValues:void 0)?c.bind(window.crypto):null!=(c="undefined"!=typeof window&&null!==window&&null!=(b=window.msCrypto)?b.getRandomValues:void 0)?c.bind(window.msCrypto):null))m=a;else try{null!=(h=r(14).rng)&&(m=h)}catch(e){e}f=function(e){if(null==m)throw new Error('No rng found; tried requiring "crypto" and window.crypto');return m(e)},n=function(){function t(){var t;this.meg=new l.Generator,this.adrbg=new e((t=this,function(e,r){return t.gen_seed(e,r)}),o.sign)}return t.prototype.now_to_buffer=function(){var e,t,r,n;return r=(t=Date.now())%1e3,n=Math.floor(t/1e3),(e=new Buffer(8)).writeUInt32BE(n,0),e.writeUInt32BE(r,4),e},t.prototype.gen_seed=function(e,t){var r,n,o,a,s,c,l,h,p;l=u.findDeferral(arguments),a=e/8,(n=[]).push(this.now_to_buffer()),(p=this,function(t){h=new u.Deferrals(t,{parent:l,filename:"/Users/max/src/keybase/triplesec/src/prng.iced",funcname:"PRNG.gen_seed"}),p.meg.generate(e,h.defer({assign_fn:function(){return c=arguments[0]},lineno:83})),h._fulfill()})(function(e){return function(){var u,l;for(n.push(e.now_to_buffer()),n.push(new Buffer(c)),n.push(f(a)),n.push(e.now_to_buffer()),o=Buffer.concat(n),s=i.from_buffer(o),d.scrub_buffer(o),u=0,l=n.length;u=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){u.headers[e]={}}),n.forEach(["post","put","patch"],function(e){u.headers[e]=n.merge(o)}),e.exports=u}).call(this,r(20))},function(e,t,r){"use strict";var n=r(18),i=r(636),o=r(264),a=r(638),s=r(639),u=r(268);e.exports=function(e){return new Promise(function(t,c){var l=e.data,f=e.headers;n.isFormData(l)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",p=e.auth.password||"";f.Authorization="Basic "+btoa(d+":"+p)}if(h.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,c,n),h=null}},h.onabort=function(){h&&(c(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){c(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var m=r(640),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in h&&n.forEach(f,function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)}),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),c(e),h=null)}),void 0===l&&(l=null),h.send(l)})}},function(e,t,r){"use strict";var n=r(637);e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}},function(e,t,r){"use strict";var n=r(18);e.exports=function(e,t){t=t||{};var r={};return n.forEach(["url","method","params","data"],function(e){void 0!==t[e]&&(r[e]=t[e])}),n.forEach(["headers","auth","proxy"],function(i){n.isObject(t[i])?r[i]=n.deepMerge(e[i],t[i]):void 0!==t[i]?r[i]=t[i]:n.isObject(e[i])?r[i]=n.deepMerge(e[i]):void 0!==e[i]&&(r[i]=e[i])}),n.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])}),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){"use strict";e.exports=r(82)},function(e,t,r){"use strict";var n=r(11),i=r(45),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){for(var t,r,i,a,s,u,c,l=[],f=0,h=e.length,d=h,p="string"!==n.getTypeOf(e);f>2,s=(3&t)<<4|r>>4,u=d>1?(15&r)<<2|i>>6:64,c=d>2?63&i:64,l.push(o.charAt(a)+o.charAt(s)+o.charAt(u)+o.charAt(c));return l.join("")},t.decode=function(e){var t,r,n,a,s,u,c=0,l=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&h--,e.charAt(e.length-2)===o.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);c>4,r=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(u=o.indexOf(e.charAt(c++))),f[l++]=t,64!==s&&(f[l++]=r),64!==u&&(f[l++]=n);return f}},function(e,t,r){"use strict";(function(Buffer){var t=r(11),n=r(657),i=r(23),o=r(272),a=r(45),s=r(81),u=null;if(a.nodestream)try{u=r(658)}catch(e){}function c(e,r){return new s.Promise(function(n,i){var a=[],s=e._internalType,u=e._outputType,c=e._mimeType;e.on("data",function(e,t){a.push(e),r&&r(t)}).on("error",function(e){a=[],i(e)}).on("end",function(){try{var e=function(e,r,n){switch(e){case"blob":return t.newBlob(t.transformTo("arraybuffer",r),n);case"base64":return o.encode(r);default:return t.transformTo(e,r)}}(u,function(e,t){var r,n=0,i=null,o=0;for(r=0;r=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},function(e,t,r){"use strict";var n=r(11),i=r(23);function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},e.exports=o},function(e,t,r){"use strict";var n=r(23),i=r(159);function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r(11).inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},e.exports=o},function(e,t,r){"use strict";var n=r(23);t.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},t.DEFLATE=r(661)},function(e,t,r){"use strict";e.exports=function(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(e,t,r){"use strict";var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t,r,i){var o=n,a=i+r;e^=-1;for(var s=i;s>>8^o[255&(e^t[s])];return-1^e}},function(e,t,r){"use strict";var n=r(46),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},t.buf2binstring=function(e){return u(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r4)c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r1?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return u(c,n)},t.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+a[e[r]]>t?r:t}},function(e,t,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,r){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,r){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},function(e,t,r){"use strict";var n=r(11),i=r(45),o=r(286),a=r(675),s=r(676),u=r(288);e.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new u(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new a(e)}},function(e,t,r){"use strict";var n=r(287);function i(e){n.call(this,e);for(var t=0;t=0;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,r){"use strict";var n=r(11);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},e.exports=i},function(e,t,r){"use strict";var n=r(286);function i(e){n.call(this,e)}r(11).inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,r){"use strict"; + */function n(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function i(e,t){for(var r in t)e[r]=t[r];return e}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var r=t.props,n=t.children,o=t.parent,a=t.data;a.routerView=!0;for(var s=o.$createElement,u=r.name,c=o.$route,l=o._routerViewCache||(o._routerViewCache={}),f=0,h=!1;o&&o._routerRoot!==o;){var d=o.$vnode&&o.$vnode.data;d&&(d.routerView&&f++,d.keepAlive&&o._inactive&&(h=!0)),o=o.$parent}if(a.routerViewDepth=f,h)return s(l[u],a,n);var p=c.matched[f];if(!p)return l[u]=null,s();var m=l[u]=p.components[u];a.registerRouteInstance=function(e,t){var r=p.instances[u];(t&&r!==e||!t&&r===e)&&(p.instances[u]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){p.instances[u]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==p.instances[u]&&(p.instances[u]=e.componentInstance)};var g=a.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(c,p.props&&p.props[u]);if(g){g=a.props=i({},g);var v=a.attrs=a.attrs||{};for(var b in g)m.props&&b in m.props||(v[b]=g[b],delete g[b])}return s(m,a,n)}};var a=/[!'()*]/g,s=function(e){return"%"+e.charCodeAt(0).toString(16)},u=/%2C/g,c=function(e){return encodeURIComponent(e).replace(a,s).replace(u,",")},l=decodeURIComponent;function f(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var r=e.replace(/\+/g," ").split("="),n=l(r.shift()),i=r.length>0?l(r.join("=")):null;void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}),t):t}function h(e){var t=e?Object.keys(e).map(function(t){var r=e[t];if(void 0===r)return"";if(null===r)return c(t);if(Array.isArray(r)){var n=[];return r.forEach(function(e){void 0!==e&&(null===e?n.push(c(t)):n.push(c(t)+"="+c(e)))}),n.join("&")}return c(t)+"="+c(r)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}var d=/\/?$/;function p(e,t,r,n){var i=n&&n.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:b(t,i),matched:e?v(e):[]};return r&&(a.redirectedFrom=b(r,i)),Object.freeze(a)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"==typeof e){var t={};for(var r in e)t[r]=m(e[r]);return t}return e}var g=p(null,{path:"/"});function v(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function b(e,t){var r=e.path,n=e.query;void 0===n&&(n={});var i=e.hash;return void 0===i&&(i=""),(r||"/")+(t||h)(n)+i}function y(e,t){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(d,"")===t.path.replace(d,"")&&e.hash===t.hash&&_(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&_(e.query,t.query)&&_(e.params,t.params)))}function _(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(function(r){var n=e[r],i=t[r];return"object"==typeof n&&"object"==typeof i?_(n,i):String(n)===String(i)})}var w,k=[String,Object],S=[String,Array],x={name:"RouterLink",props:{to:{type:k,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:S,default:"click"}},render:function(e){var t=this,r=this.$router,n=this.$route,o=r.resolve(this.to,n,this.append),a=o.location,s=o.route,u=o.href,c={},l=r.options.linkActiveClass,f=r.options.linkExactActiveClass,h=null==l?"router-link-active":l,m=null==f?"router-link-exact-active":f,g=null==this.activeClass?h:this.activeClass,v=null==this.exactActiveClass?m:this.exactActiveClass,b=a.path?p(null,a,null,r):s;c[v]=y(n,b),c[g]=this.exact?c[v]:function(e,t){return 0===e.path.replace(d,"/").indexOf(t.path.replace(d,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var r in t)if(!(r in e))return!1;return!0}(e.query,t.query)}(n,b);var _=function(e){E(e)&&(t.replace?r.replace(a):r.push(a))},w={click:E};Array.isArray(this.event)?this.event.forEach(function(e){w[e]=_}):w[this.event]=_;var k={class:c};if("a"===this.tag)k.on=w,k.attrs={href:u};else{var S=function e(t){if(t)for(var r,n=0;n=0&&(t=e.slice(n),e=e.slice(0,n));var i=e.indexOf("?");return i>=0&&(r=e.slice(i+1),e=e.slice(0,i)),{path:e,query:r,hash:t}}(o.path||""),c=t&&t.path||"/",l=u.path?O(u.path,c,r||o.append):c,h=function(e,t,r){void 0===t&&(t={});var n,i=r||f;try{n=i(e||"")}catch(e){n={}}for(var o in t)n[o]=t[o];return n}(u.query,o.query,n&&n.options.parseQuery),d=o.hash||u.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:l,query:h,hash:d}}function Y(e,t){var r=W(e),n=r.pathList,i=r.pathMap,o=r.nameMap;function a(e,r,a){var s=Z(e,r,!1,t),c=s.name;if(c){var l=o[c];if(!l)return u(null,s);var f=l.regex.keys.filter(function(e){return!e.optional}).map(function(e){return e.name});if("object"!=typeof s.params&&(s.params={}),r&&"object"==typeof r.params)for(var h in r.params)!(h in s.params)&&f.indexOf(h)>-1&&(s.params[h]=r.params[h]);if(l)return s.path=K(l.path,s.params),u(l,s,a)}else if(s.path){s.params={};for(var d=0;d=e.length?r():e[i]?t(e[i],function(){n(i+1)}):n(i+1)};n(0)}function me(e){return function(t,r,i){var o=!1,a=0,s=null;ge(e,function(e,t,r,u){if("function"==typeof e&&void 0===e.cid){o=!0,a++;var c,l=ye(function(t){var n;((n=t).__esModule||be&&"Module"===n[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:w.extend(t),r.components[u]=t,--a<=0&&i()}),f=ye(function(e){var t="Failed to resolve async component "+u+": "+e;s||(s=n(e)?e:new Error(t),i(s))});try{c=e(l,f)}catch(e){f(e)}if(c)if("function"==typeof c.then)c.then(l,f);else{var h=c.component;h&&"function"==typeof h.then&&h.then(l,f)}}}),o||i()}}function ge(e,t){return ve(e.map(function(e){return Object.keys(e.components).map(function(r){return t(e.components[r],e.instances[r],e,r)})}))}function ve(e){return Array.prototype.concat.apply([],e)}var be="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function ye(e){var t=!1;return function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];if(!t)return t=!0,e.apply(this,r)}}var _e=function(e,t){this.router=e,this.base=function(e){if(!e)if(A){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function we(e,t,r,n){var i=ge(e,function(e,n,i,o){var a=function(e,t){"function"!=typeof e&&(e=w.extend(e));return e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map(function(e){return r(e,n,i,o)}):r(a,n,i,o)});return ve(n?i.reverse():i)}function ke(e,t){if(t)return function(){return e.apply(t,arguments)}}_e.prototype.listen=function(e){this.cb=e},_e.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},_e.prototype.onError=function(e){this.errorCbs.push(e)},_e.prototype.transitionTo=function(e,t,r){var n=this,i=this.router.match(e,this.current);this.confirmTransition(i,function(){n.updateRoute(i),t&&t(i),n.ensureURL(),n.ready||(n.ready=!0,n.readyCbs.forEach(function(e){e(i)}))},function(e){r&&r(e),e&&!n.ready&&(n.ready=!0,n.readyErrorCbs.forEach(function(t){t(e)}))})},_e.prototype.confirmTransition=function(e,t,r){var i=this,o=this.current,a=function(e){n(e)&&(i.errorCbs.length?i.errorCbs.forEach(function(t){t(e)}):console.error(e)),r&&r(e)};if(y(e,o)&&e.matched.length===o.matched.length)return this.ensureURL(),a();var s=function(e,t){var r,n=Math.max(e.length,t.length);for(r=0;r-1?decodeURI(e.slice(0,n))+e.slice(n):decodeURI(e)}else r>-1&&(e=decodeURI(e.slice(0,r))+e.slice(r));return e}function Pe(e){var t=window.location.href,r=t.indexOf("#");return(r>=0?t.slice(0,r):t)+"#"+e}function Te(e){se?he(Pe(e)):window.location.hash=e}function Ce(e){se?de(Pe(e)):window.location.replace(Pe(e))}var je=function(e){function t(t,r){e.call(this,t,r),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,r){var n=this;this.transitionTo(e,function(e){n.stack=n.stack.slice(0,n.index+1).concat(e),n.index++,t&&t(e)},r)},t.prototype.replace=function(e,t,r){var n=this;this.transitionTo(e,function(e){n.stack=n.stack.slice(0,n.index).concat(e),t&&t(e)},r)},t.prototype.go=function(e){var t=this,r=this.index+e;if(!(r<0||r>=this.stack.length)){var n=this.stack[r];this.confirmTransition(n,function(){t.index=r,t.updateRoute(n)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(_e),Ie=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Y(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!se&&!1!==e.fallback,this.fallback&&(t="hash"),A||(t="abstract"),this.mode=t,t){case"history":this.history=new Se(this,e.base);break;case"hash":this.history=new Ee(this,e.base,this.fallback);break;case"abstract":this.history=new je(this,e.base);break;default:0}},Me={currentRoute:{configurable:!0}};function De(e,t){return e.push(t),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}Ie.prototype.match=function(e,t,r){return this.matcher.match(e,t,r)},Me.currentRoute.get=function(){return this.history&&this.history.current},Ie.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var r=t.apps.indexOf(e);r>-1&&t.apps.splice(r,1),t.app===e&&(t.app=t.apps[0]||null)}),!this.app){this.app=e;var r=this.history;if(r instanceof Se)r.transitionTo(r.getCurrentLocation());else if(r instanceof Ee){var n=function(){r.setupListeners()};r.transitionTo(r.getCurrentLocation(),n,n)}r.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},Ie.prototype.beforeEach=function(e){return De(this.beforeHooks,e)},Ie.prototype.beforeResolve=function(e){return De(this.resolveHooks,e)},Ie.prototype.afterEach=function(e){return De(this.afterHooks,e)},Ie.prototype.onReady=function(e,t){this.history.onReady(e,t)},Ie.prototype.onError=function(e){this.history.onError(e)},Ie.prototype.push=function(e,t,r){this.history.push(e,t,r)},Ie.prototype.replace=function(e,t,r){this.history.replace(e,t,r)},Ie.prototype.go=function(e){this.history.go(e)},Ie.prototype.back=function(){this.go(-1)},Ie.prototype.forward=function(){this.go(1)},Ie.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},Ie.prototype.resolve=function(e,t,r){var n=Z(e,t=t||this.history.current,r,this),i=this.match(n,t),o=i.redirectedFrom||i.fullPath;return{location:n,route:i,href:function(e,t,r){var n="hash"===r?"#"+t:t;return e?P(e+"/"+n):n}(this.history.base,o,this.mode),normalizedTo:n,resolved:i}},Ie.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ie.prototype,Me),Ie.install=function e(t){if(!e.installed||w!==t){e.installed=!0,w=t;var r=function(e){return void 0!==e},n=function(e,t){var n=e.$options._parentVnode;r(n)&&r(n=n.data)&&r(n=n.registerRouteInstance)&&n(e,t)};t.mixin({beforeCreate:function(){r(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",o),t.component("RouterLink",x);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Ie.version="3.0.6",A&&window.Vue&&window.Vue.use(Ie),t.a=Ie},function(e,t,r){"use strict";var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(82).Transform;function i(e){n.call(this),this._block=Buffer.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3)(i,n),i.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e,t){if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");Buffer.isBuffer(e)||(e=Buffer.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(e,t,r){"use strict";(function(t,n){var i=r(84);e.exports=b;var o,a=r(164);b.ReadableState=v;r(83).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r(167),Buffer=r(2).Buffer,c=t.Uint8Array||function(){};var l=r(67);l.inherits=r(3);var f=r(298),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p=r(299),m=r(168);l.inherits(b,u);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(o=o||r(48));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(85).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||r(48),!(this instanceof b))return new b(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function y(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,a)):(i||(o=function(e,t){var r;n=t,Buffer.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===Buffer.prototype||(t=function(e){return Buffer.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):E(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=w?e=w:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),T(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(A,e,t))}function A(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=Buffer.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function j(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e0?C(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:y;function c(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",v),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",g),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",f);var d=!1;var p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==M(o.pipes,e))&&!d&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){h("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",b),y()}function b(){h("onfinish"),e.removeListener("close",v),y()}function y(){h("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",v),e.once("finish",b),e.emit("pipe",r),o.flowing||(h("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(s,i),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,d=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)r[v]=e.readInt32BE(4*v);for(;v<64;++v)r[v]=0|(((t=r[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[v-7]+h(r[v-15])+r[v-16];for(var b=0;b<64;++b){var y=g+f(d)+u(d,p,m)+o[b]+r[b]|0,_=l(n)+c(n,i,a)|0;g=m,m=p,p=d,d=s+y|0,s=a,a=i,i=n,n=y+_|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=s},function(e,t,r){"use strict";var n=r(3),i=r(55),Buffer=r(2).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function s(){this.init(),this._w=a,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0>>0?1:0}n(s,i),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,v=0|this._fh,b=0|this._gh,y=0|this._hh,_=0|this._al,w=0|this._bl,k=0|this._cl,S=0|this._dl,x=0|this._el,E=0|this._fl,A=0|this._gl,O=0|this._hl,P=0;P<32;P+=2)t[P]=e.readInt32BE(4*P),t[P+1]=e.readInt32BE(4*P+4);for(;P<160;P+=2){var T=t[P-30],C=t[P-30+1],j=h(T,C),I=d(C,T),M=p(T=t[P-4],C=t[P-4+1]),D=m(C,T),B=t[P-14],N=t[P-14+1],z=t[P-32],R=t[P-32+1],F=I+N|0,U=j+B+g(F,I)|0;U=(U=U+M+g(F=F+D|0,D)|0)+z+g(F=F+R|0,R)|0,t[P]=U,t[P+1]=F}for(var $=0;$<160;$+=2){U=t[$],F=t[$+1];var L=c(r,n,i),q=c(_,w,k),H=l(r,_),V=l(_,r),K=f(s,x),W=f(x,s),G=o[$],Z=o[$+1],Y=u(s,v,b),X=u(x,E,A),J=O+W|0,Q=y+K+g(J,O)|0;Q=(Q=(Q=Q+Y+g(J=J+X|0,X)|0)+G+g(J=J+Z|0,Z)|0)+U+g(J=J+F|0,F)|0;var ee=V+q|0,te=H+L+g(ee,V)|0;y=b,O=A,b=v,A=E,v=s,E=x,s=a+Q+g(x=S+J|0,S)|0,a=i,S=k,i=n,k=w,n=r,w=_,r=Q+te+g(_=J+ee|0,J)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+k|0,this._dl=this._dl+S|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+A|0,this._hl=this._hl+O|0,this._ah=this._ah+r+g(this._al,_)|0,this._bh=this._bh+n+g(this._bl,w)|0,this._ch=this._ch+i+g(this._cl,k)|0,this._dh=this._dh+a+g(this._dl,S)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+v+g(this._fl,E)|0,this._gh=this._gh+b+g(this._gl,A)|0,this._hh=this._hh+y+g(this._hl,O)|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=s},function(e,t,r){"use strict";(function(Buffer){var t=Math.pow(2,30)-1;function r(e,t){if("string"!=typeof e&&!Buffer.isBuffer(e))throw new TypeError(t+" must be a buffer or string")}e.exports=function(e,n,i,o){if(r(e,"Password"),r(n,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0||o>t||o!=o)throw new TypeError("Bad key length")}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(20))},function(e,t,r){"use strict";var n=r(175),i=r(68),o=r(118),a=r(172),s=r(173),Buffer=r(2).Buffer,u=Buffer.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(29),i=r(70),o=r(179),a=r(16),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n21)throw new TypeError(e+" is too long");return{version:t.readUInt8(0),hash:t.slice(1)}}function l(e){const t=a.decode(e),r=a.fromWords(t.words.slice(1));return{version:t.words[0],prefix:t.prefix,data:Buffer.from(r)}}t.fromBase58Check=c,t.fromBech32=l,t.toBase58Check=function(e,t){u(o.tuple(o.Hash160bit,o.UInt8),arguments);const r=Buffer.allocUnsafe(21);return r.writeUInt8(t,0),e.copy(r,1),s.encode(r)},t.toBech32=function(e,t,r){const n=a.toWords(e);return n.unshift(t),a.encode(r,n)},t.fromOutputScript=function(t,r){r=r||e.bitcoin;try{return n.p2pkh({output:t,network:r}).address}catch(e){}try{return n.p2sh({output:t,network:r}).address}catch(e){}try{return n.p2wpkh({output:t,network:r}).address}catch(e){}try{return n.p2wsh({output:t,network:r}).address}catch(e){}throw new Error(i.toASM(t)+" has no matching Address")},t.toOutputScript=function(t,r){let i,o;r=r||e.bitcoin;try{i=c(t)}catch(e){}if(i){if(i.version===r.pubKeyHash)return n.p2pkh({hash:i.hash}).output;if(i.version===r.scriptHash)return n.p2sh({hash:i.hash}).output}else{try{o=l(t)}catch(e){}if(o){if(o.prefix!==r.bech32)throw new Error(t+" has an invalid prefix");if(0===o.version){if(20===o.data.length)return n.p2wpkh({hash:o.data}).output;if(32===o.data.length)return n.p2wsh({hash:o.data}).output}}}throw new Error(t+" has no matching Script")}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=r(10);function i(e){return ee.length)return null;r=e.readUInt8(t+1),i=2}else if(o===n.OP_PUSHDATA2){if(t+3>e.length)return null;r=e.readUInt16LE(t+1),i=3}else{if(t+5>e.length)return null;if(o!==n.OP_PUSHDATA4)throw new Error("Unexpected opcode");r=e.readUInt32LE(t+1),i=5}return{opcode:o,number:r,size:i}}}},function(e,t,r){"use strict";var n=r(10),i={};for(var o in n){i[n[o]]=o}e.exports=i},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(24),n=r(37),i=r(15),o=r(28),a=r(5),s=r(88),u=a.maybe(a.compile({compressed:n.maybe(n.Boolean),network:n.maybe(n.Network)}));class ECPair{constructor(t,r,n){this.__D=t,this.__Q=r,void 0===n&&(n={}),this.compressed=void 0===n.compressed||n.compressed,this.network=n.network||e.bitcoin,void 0!==r&&(this.__Q=i.pointCompress(r,this.compressed))}get privateKey(){return this.__D}get publicKey(){return this.__Q||(this.__Q=i.pointFromScalar(this.__D,this.compressed)),this.__Q}toWIF(){if(!this.__D)throw new Error("Missing private key");return s.encode(this.network.wif,this.__D,this.compressed)}sign(e,t=!1){if(!this.__D)throw new Error("Missing private key");if(!1===t)return i.sign(e,this.__D);{let t=i.sign(e,this.__D);const r=Buffer.alloc(32,0);let n=0;for(;t[0]>127;)n++,r.writeUIntLE(n,0,6),t=i.signWithEntropy(e,this.__D,r);return t}}verify(e,t){return i.verify(e,this.publicKey,t)}}function c(e,t){if(a(n.Buffer256bit,e),!i.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return a(u,t),new ECPair(e,void 0,t)}t.fromPrivateKey=c,t.fromPublicKey=function(e,t){return a(i.isPoint,e),a(u,t),new ECPair(void 0,e,t)},t.fromWIF=function(t,r){const i=s.decode(t),o=i.version;if(n.Array(r)){if(!(r=r.filter(e=>o===e.wif).pop()))throw new Error("Unknown network version")}else if(r=r||e.bitcoin,o!==r.wif)throw new Error("Invalid network version");return c(i.privateKey,{compressed:i.compressed,network:r})},t.makeRandom=function(e){a(u,e),void 0===e&&(e={});const t=e.rng||o;let r;do{r=t(32),a(n.Buffer256bit,r)}while(!i.isPrivate(r));return c(r,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){e.exports=function(e,t){if(!Array.isArray(e))throw TypeError("Expected values Array");if("function"!=typeof t)throw TypeError("Expected digest Function");for(var r=e.length,n=e.concat();r>1;){for(var i=0,o=0;o"Witness pubKeyHash output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){const t=n.compile(e);return 34===t.length&&t[0]===i.OPS.OP_0&&32===t[1]}t.check=o,o.toJSON=()=>"Witness scriptHash output"},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0});const i=r(191);try{i.protocolEchoReplyDetection()}catch(e){console.error(`Error performing global protocol echo reply detection: ${e}`)}n(r(379)),n(r(592)),n(r(233));var o=r(99);t.makeDIDFromAddress=o.makeDIDFromAddress,t.makeDIDFromPublicKey=o.makeDIDFromPublicKey,t.getDIDType=o.getDIDType,t.getAddressFromDID=o.getAddressFromDID;var a=r(59);t.getEntropy=a.getEntropy,t.makeECPrivateKey=a.makeECPrivateKey,t.publicKeyToAddress=a.publicKeyToAddress,t.getPublicKeyFromPrivate=a.getPublicKeyFromPrivate;var s=r(26);t.nextYear=s.nextYear,t.nextMonth=s.nextMonth,t.nextHour=s.nextHour,t.makeUUID4=s.makeUUID4,t.updateQueryStringParameter=s.updateQueryStringParameter,t.isLaterVersion=s.isLaterVersion,t.isSameOriginAbsoluteUrl=s.isSameOriginAbsoluteUrl,t.hexStringToECPair=s.hexStringToECPair,t.ecPairToHexString=s.ecPairToHexString,t.ecPairToAddress=s.ecPairToAddress;var u=r(597);t.transactions=u.transactions,t.safety=u.safety,t.PubkeyHashSigner=u.PubkeyHashSigner,t.addUTXOsToFund=u.addUTXOsToFund,t.estimateTXBytes=u.estimateTXBytes;var c=r(600);t.BlockstackWallet=c.BlockstackWallet;var l=r(228);t.network=l.network;var f=r(42);t.decodeToken=f.decodeToken;var h=r(39);t.config=h.config;var d=r(161);t.encryptMnemonic=d.encryptMnemonic,t.decryptMnemonic=d.decryptMnemonic;var p=r(100);t.UserSession=p.UserSession},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="_blockstackDidCheckEchoReply",i="echoReply",o="authContinuation";t.protocolEchoReplyDetection=function(){if("object"!=typeof window||!window.location||!window.localStorage)return!1;const e=window[n];if("boolean"==typeof e)return e;const t=new window.URLSearchParams(window.location.search),r=t.get(i);if(r){window[n]=!0;const e=`echo-reply-${r}`;return window.localStorage.setItem(e,"success"),window.setTimeout(()=>{const e=t.get(o);window.location.href=e},10),!0}return!1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(71);t.AppConfig=class{constructor(e=n.DEFAULT_SCOPE.slice(),t=window.location.origin,r="",i="/manifest.json",o=null,a=n.DEFAULT_BLOCKSTACK_HOST){this.appDomain=t,this.scopes=e,this.redirectPath=r,this.manifestPath=i,this.coreNode=o||n.DEFAULT_CORE_NODE,this.authenticatorURL=a}redirectURI(){return`${this.appDomain}${this.redirectPath}`}manifestURI(){return`${this.appDomain}${this.manifestPath}`}}},function(e){e.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},function(e,t,r){"use strict";var n=r(72),Buffer=r(2).Buffer,i=r(195);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),i=e._cache.length;e._cache=Buffer.concat([e._cache,Buffer.allocUnsafe(16*r)]);for(var a=0;ae;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(c))for(;r.mod(l).cmp(f);)r.iadd(d)}else for(;r.mod(o).cmp(h);)r.iadd(d);if(g(p=r.shrn(1))&&g(r)&&v(p)&&v(r)&&a.test(p)&&a.test(r))return r}}},function(e,t,r){"use strict";var n=r(7),i=r(178);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),l=s.toRed(o);t>0;t--){var f=this._randrange(new n(2),s);r&&r(f);var h=f.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var d=1;d0;t--){var l=this._randrange(new n(2),a),f=e.gcd(l);if(0!==f.cmpn(1))return f;var h=l.toRed(i).redPow(u);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var d=1;d>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(i=new Buffer(2))[0]=o,i[1]=n.length,this._createEncoderBuffer([i,n]);for(var s=1,u=n.length;u>=256;u>>=8)s++;(i=new Buffer(2+s))[0]=o,i[1]=128|s;u=1+s;for(var c=n.length;c>0;u--,c>>=8)i[u]=255&c;return this._createEncoderBuffer([i,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new Buffer(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(n=0;n=128;o>>=7)i++}var a=new Buffer(i),s=a.length-1;for(n=e.length-1;n>=0;n--){o=e[n];for(a[s--]=127&o;(o>>=7)>0;)a[s--]=128|127&o}return this._createEncoderBuffer(a)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!Buffer.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new Buffer(r)}if(Buffer.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new Buffer(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var o=e;o>=256;o>>=8)n++;for(o=(i=new Array(n)).length-1;o>=0;o--)i[o]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new Buffer(i))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n>6],i=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function f(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;const i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(let t=0;t=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128){const e=new Buffer(2);return e[0]=i,e[1]=n.length,this._createEncoderBuffer([e,n])}let o=1;for(let e=n.length;e>=256;e>>=8)o++;const s=new Buffer(2+o);s[0]=i,s[1]=128|o;for(let e=1+o,t=n.length;t>0;e--,t>>=8)s[e]=255&t;return this._createEncoderBuffer([s,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=new Buffer(2*e.length);for(let r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let t=0;t=128;r>>=7)n++}const i=new Buffer(n);let o=i.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(i[o--]=127&r;(r>>=7)>0;)i[o--]=128|127&r}return this._createEncoderBuffer(i)},u.prototype._encodeTime=function(e,t){let r;const n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!Buffer.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=new Buffer(t)}if(Buffer.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=new Buffer(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;const n=new Array(r);for(let t=n.length-1;t>=0;t--)n[t]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(new Buffer(n))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){const n=this._baseState;let i;if(null===n.default)return!1;const o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i=r&&(void 0===n||a<=n)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);var r=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?o:a,n=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||et.gt;return r.test(e)&&n&&s&&u&&c};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,a=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)},t.fullWidth=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.fullWidth=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)},t.halfWidth=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.halfWidth=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);var r=t?new RegExp("^[".concat(t,"]+"),"g"):/^\s+/g;return e.replace(r,"")};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);for(var r=t?new RegExp("[".concat(t,"]")):/\s/,n=e.length-1;n>=0&&r.test(e[n]);n--);return nt)throw new TypeError("Script number overflow");if(r&&0==(127&e[n-1])&&(n<=1||0==(128&e[n-2])))throw new Error("Non-minimally encoded script number");if(5===n){const t=e.readUInt32LE(0),r=e.readUInt8(4);return 128&r?-(4294967296*(-129&r)+t):4294967296*r+t}let i=0;for(var o=0;o2147483647?5:e>8388607?4:e>32767?3:e>127?2:e>0?1:0}(t),n=Buffer.allocUnsafe(r),i=e<0;for(var o=0;o>=8;return 128&n[r-1]?n.writeUInt8(i?128:0,r-1):i&&(n[r-1]|=128),n}}},function(e,t,r){"use strict";const n=r(15),i=r(28),o=r(5),a=r(30),s=r(88),u=r(25),c=o.maybe(o.compile({compressed:a.maybe(a.Boolean),network:a.maybe(a.Network)}));function ECPair(e,t,r){r=r||{},this.compressed=void 0===r.compressed||r.compressed,this.network=r.network||u.bitcoin,this.__d=e||null,this.__Q=null,t&&(this.__Q=n.pointCompress(t,this.compressed))}function l(e,t){if(o(a.Buffer256bit,e),!n.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return o(c,t),new ECPair(e,null,t)}Object.defineProperty(ECPair.prototype,"privateKey",{enumerable:!1,get:function(){return this.__d}}),Object.defineProperty(ECPair.prototype,"publicKey",{get:function(){return this.__Q||(this.__Q=n.pointFromScalar(this.__d,this.compressed)),this.__Q}}),ECPair.prototype.toWIF=function(){if(!this.__d)throw new Error("Missing private key");return s.encode(this.network.wif,this.__d,this.compressed)},ECPair.prototype.sign=function(e){if(!this.__d)throw new Error("Missing private key");return n.sign(e,this.__d)},ECPair.prototype.verify=function(e,t){return n.verify(e,this.publicKey,t)},e.exports={makeRandom:function(e){o(c,e);const t=(e=e||{}).rng||i;let r;do{r=t(32),o(a.Buffer256bit,r)}while(!n.isPrivate(r));return l(r,e)},fromPrivateKey:l,fromPublicKey:function(e,t){return o(n.isPoint,e),o(c,t),new ECPair(null,e,t)},fromWIF:function(e,t){const r=s.decode(e),n=r.version;if(a.Array(t)){if(!(t=t.filter(function(e){return n===e.wif}).pop()))throw new Error("Unknown network version")}else if(t=t||u.bitcoin,n!==t.wif)throw new Error("Invalid network version");return l(r.privateKey,{compressed:r.compressed,network:t})}}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(56),i=r(35),o=r(8),a=r(25),s=r(5),u=r(30),c=r(137);function l(e){const t=i.decode(e);if(t.length<21)throw new TypeError(e+" is too short");if(t.length>21)throw new TypeError(e+" is too long");return{version:t.readUInt8(0),hash:t.slice(1)}}function f(e){const t=n.decode(e),r=n.fromWords(t.words.slice(1));return{version:t.words[0],prefix:t.prefix,data:Buffer.from(r)}}e.exports={fromBase58Check:l,fromBech32:f,fromOutputScript:function(e,t){t=t||a.bitcoin;try{return c.p2pkh({output:e,network:t}).address}catch(e){}try{return c.p2sh({output:e,network:t}).address}catch(e){}try{return c.p2wpkh({output:e,network:t}).address}catch(e){}try{return c.p2wsh({output:e,network:t}).address}catch(e){}throw new Error(o.toASM(e)+" has no matching Address")},toBase58Check:function(e,t){s(u.tuple(u.Hash160bit,u.UInt8),arguments);const r=Buffer.allocUnsafe(21);return r.writeUInt8(t,0),e.copy(r,1),i.encode(r)},toBech32:function(e,t,r){const i=n.toWords(e);return i.unshift(t),n.encode(r,i)},toOutputScript:function(e,t){let r;t=t||a.bitcoin;try{r=l(e)}catch(e){}if(r){if(r.version===t.pubKeyHash)return c.p2pkh({hash:r.hash}).output;if(r.version===t.scriptHash)return c.p2sh({hash:r.hash}).output}else{try{r=f(e)}catch(e){}if(r){if(r.prefix!==t.bech32)throw new Error(e+" has an invalid prefix");if(0===r.version){if(20===r.data.length)return c.p2wpkh({hash:r.data}).output;if(32===r.data.length)return c.p2wsh({hash:r.data}).output}}}throw new Error(e+" has no matching Script")}}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return 22===t.length&&t[0]===i.OP_0&&20===t[1]}o.toJSON=function(){return"Witness pubKeyHash output"},e.exports={check:o}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return 34===t.length&&t[0]===i.OP_0&&32===t[1]}o.toJSON=function(){return"Witness scriptHash output"},e.exports={check:o}},function(e,t,r){"use strict";let Buffer=r(2).Buffer,n=r(35),i=r(528),o=r(15),a=r(5),s=r(88),u=a.BufferN(32),c=a.compile({wif:a.UInt8,bip32:{public:a.UInt32,private:a.UInt32}}),l={wif:128,bip32:{public:76067358,private:76066276}};function f(e,t,r,n){a(c,n),this.__d=e||null,this.__Q=t||null,this.chainCode=r,this.depth=0,this.index=0,this.network=n,this.parentFingerprint=0}Object.defineProperty(f.prototype,"identifier",{get:function(){return i.hash160(this.publicKey)}}),Object.defineProperty(f.prototype,"fingerprint",{get:function(){return this.identifier.slice(0,4)}}),Object.defineProperty(f.prototype,"privateKey",{enumerable:!1,get:function(){return this.__d}}),Object.defineProperty(f.prototype,"publicKey",{get:function(){return this.__Q||(this.__Q=o.pointFromScalar(this.__d,this.compressed)),this.__Q}}),f.prototype.isNeutered=function(){return null===this.__d},f.prototype.neutered=function(){let e=g(this.publicKey,this.chainCode,this.network);return e.depth=this.depth,e.index=this.index,e.parentFingerprint=this.parentFingerprint,e},f.prototype.toBase58=function(){let e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,r=Buffer.allocUnsafe(78);return r.writeUInt32BE(t,0),r.writeUInt8(this.depth,4),r.writeUInt32BE(this.parentFingerprint,5),r.writeUInt32BE(this.index,9),this.chainCode.copy(r,13),this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46)),n.encode(r)},f.prototype.toWIF=function(){if(!this.privateKey)throw new TypeError("Missing private key");return s.encode(this.network.wif,this.privateKey,!0)};f.prototype.derive=function(e){a(a.UInt32,e);let t=e>=2147483648,r=Buffer.allocUnsafe(37);if(t){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");r[0]=0,this.privateKey.copy(r,1),r.writeUInt32BE(e,33)}else this.publicKey.copy(r,0),r.writeUInt32BE(e,33);let n,s=i.hmacSHA512(this.chainCode,r),u=s.slice(0,32),c=s.slice(32);if(!o.isPrivate(u))return this.derive(e+1);if(this.isNeutered()){let t=o.pointAddScalar(this.publicKey,u,!0);if(null===t)return this.derive(e+1);n=g(t,c,this.network)}else{let t=o.privateAdd(this.privateKey,u);if(null==t)return this.derive(e+1);n=m(t,c,this.network)}return n.depth=this.depth+1,n.index=e,n.parentFingerprint=this.fingerprint.readUInt32BE(0),n};let h=Math.pow(2,31)-1;function d(e){return a.UInt32(e)&&e<=h}function p(e){return a.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function m(e,t,r){if(a({privateKey:u,chainCode:u},{privateKey:e,chainCode:t}),r=r||l,!o.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new f(e,null,t,r)}function g(e,t,r){if(a({publicKey:a.BufferN(33),chainCode:u},{publicKey:e,chainCode:t}),r=r||l,!o.isPoint(e))throw new TypeError("Point is not on the curve");return new f(null,e,t,r)}f.prototype.deriveHardened=function(e){return a(d,e),this.derive(e+2147483648)},f.prototype.derivePath=function(e){a(p,e);let t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce(function(e,t){let r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))},this)},f.prototype.sign=function(e){return o.sign(e,this.privateKey)},f.prototype.verify=function(e,t){return o.verify(e,this.publicKey,t)},e.exports={fromBase58:function(e,t){let r=n.decode(e);if(78!==r.length)throw new TypeError("Invalid buffer length");t=t||l;let i=r.readUInt32BE(0);if(i!==t.bip32.private&&i!==t.bip32.public)throw new TypeError("Invalid network version");let o=r[4],a=r.readUInt32BE(5);if(0===o&&0!==a)throw new TypeError("Invalid parent fingerprint");let s=r.readUInt32BE(9);if(0===o&&0!==s)throw new TypeError("Invalid index");let u,c=r.slice(13,45);if(i===t.bip32.private){if(0!==r.readUInt8(45))throw new TypeError("Invalid private key");u=m(r.slice(46,78),c,t)}else u=g(r.slice(45,78),c,t);return u.depth=o,u.index=s,u.parentFingerprint=a,u},fromPrivateKey:m,fromPublicKey:g,fromSeed:function(e,t){if(a(a.Buffer,e),e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError("Seed should be at most 512 bits");t=t||l;let r=i.hmacSHA512("Bitcoin seed",e);return m(r.slice(0,32),r.slice(32),t)}}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(38)),i=e(r(535)),o=e(r(7)),a=e(r(68)),s=r(31),u=r(32),c=r(39),l=1e8,f="zone-file",h="registration",d="transaction";class p{broadcastTransaction(e){return Promise.reject(new Error(`Not implemented, broadcastTransaction(${e})`))}getBlockHeight(){return Promise.reject(new Error("Not implemented, getBlockHeight()"))}getTransactionInfo(e){return Promise.reject(new Error(`Not implemented, getTransactionInfo(${e})`))}getNetworkedUTXOs(e){return Promise.reject(new Error(`Not implemented, getNetworkedUTXOs(${e})`))}}t.BitcoinNetwork=p;class m{constructor(e,t,r,i=n.default.networks.bitcoin){this.blockstackAPIUrl=e,this.broadcastServiceUrl=t,this.layer1=i,this.btc=r,this.DUST_MINIMUM=5500,this.includeUtxoMap={},this.excludeUtxoSet=[],this.MAGIC_BYTES="id"}coerceAddress(e){const{hash:t,version:r}=n.default.address.fromBase58Check(e),i=[n.default.networks.bitcoin.scriptHash,n.default.networks.testnet.scriptHash],o=[n.default.networks.bitcoin.pubKeyHash,n.default.networks.testnet.pubKeyHash];let a;if(i.indexOf(r)>=0)a=this.layer1.scriptHash;else{if(!(o.indexOf(r)>=0))throw new Error(`Unrecognized address version number ${r} in ${e}`);a=this.layer1.pubKeyHash}return n.default.address.toBase58Check(t,a)}getDefaultBurnAddress(){return this.coerceAddress("1111111111111111111114oLvT2")}getNamePriceV1(e){return fetch(`${this.blockstackAPIUrl}/v1/prices/names/${e}`).then(t=>{if(!t.ok)throw new Error(`Failed to query name price for ${e}`);return t}).then(e=>e.json()).then(e=>e.name_price).then(t=>{if(!t||!t.satoshis)throw new Error(`Failed to get price for ${e}. Does the namespace exist?`);return t.satoshis{if(!t.ok)throw new Error(`Failed to query name price for ${e}`);return t}).then(e=>e.json()).then(t=>{if(!t||!t.satoshis)throw new Error(`Failed to get price for ${e}`);return t.satoshis{if(200!==e.status)throw new Error("The upstream node does not handle the /v2/ price namespace");return e}).then(e=>e.json()).then(e=>e.name_price).then(t=>{if(!t)throw new Error(`Failed to get price for ${e}. Does the namespace exist?`);const r={units:t.units,amount:new o.default(t.amount)};if("BTC"===t.units){const e=new o.default(String(this.DUST_MINIMUM));r.amount.ucmp(e)<0&&(r.amount=e)}return r})}getNamespacePriceV2(e){return fetch(`${this.blockstackAPIUrl}/v2/prices/namespaces/${e}`).then(e=>{if(200!==e.status)throw new Error("The upstream node does not handle the /v2/ price namespace");return e}).then(e=>e.json()).then(t=>{if(!t)throw new Error(`Failed to get price for ${e}`);const r={units:t.units,amount:new o.default(t.amount)};if("BTC"===t.units){const e=new o.default(String(this.DUST_MINIMUM));r.amount.ucmp(e)<0&&(r.amount=e)}return r})}getNamePrice(e){return Promise.resolve().then(()=>this.getNamePriceV2(e)).catch(()=>this.getNamePriceV1(e))}getNamespacePrice(e){return Promise.resolve().then(()=>this.getNamespacePriceV2(e)).catch(()=>this.getNamespacePriceV1(e))}getGracePeriod(e){return Promise.resolve(5e3)}getNamesOwned(e){const t=this.coerceAddress(e);return fetch(`${this.blockstackAPIUrl}/v1/addresses/bitcoin/${t}`).then(e=>e.json()).then(e=>e.names)}getNamespaceBurnAddress(e){return Promise.all([fetch(`${this.blockstackAPIUrl}/v1/namespaces/${e}`),this.getBlockHeight()]).then(([t,r])=>{if(404===t.status)throw new Error(`No such namespace '${e}'`);return Promise.all([t.json(),r])}).then(([e,t])=>{let r=this.getDefaultBurnAddress();return 2===e.version&&e.reveal_block+52595>=t&&(r=e.address),r}).then(e=>this.coerceAddress(e))}getNameInfo(e){u.Logger.debug(this.blockstackAPIUrl);const t=`${this.blockstackAPIUrl}/v1/names/${e}`;return fetch(t).then(e=>{if(404===e.status)throw new Error("Name not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>(u.Logger.debug(`nameInfo: ${JSON.stringify(e)}`),e.address?Object.assign({},e,{address:this.coerceAddress(e.address)}):e))}getNamespaceInfo(e){return fetch(`${this.blockstackAPIUrl}/v1/namespaces/${e}`).then(e=>{if(404===e.status)throw new Error("Namespace not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>e.address&&e.recipient_address?Object.assign({},e,{address:this.coerceAddress(e.address),recipient_address:this.coerceAddress(e.recipient_address)}):e)}getZonefile(e){return fetch(`${this.blockstackAPIUrl}/v1/zonefiles/${e}`).then(t=>{if(200===t.status)return t.text().then(t=>{const r=n.default.crypto.sha256(Buffer.from(t)),i=(new a.default).update(r).digest("hex");if(i!==e)throw new Error(`Zone file contents hash to ${i}, not ${e}`);return t});throw new Error(`Bad response status: ${t.status}`)})}getAccountStatus(e,t){return fetch(`${this.blockstackAPIUrl}/v1/accounts/${e}/${t}/status`).then(e=>{if(404===e.status)throw new Error("Account not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{return Object.assign({},e,{address:this.coerceAddress(e.address),debit_value:new o.default(String(e.debit_value)),credit_value:new o.default(String(e.credit_value))})})}getAccountHistoryPage(e,t){const r=`${this.blockstackAPIUrl}/v1/accounts/${e}/history?page=${t}`;return fetch(r).then(e=>{if(404===e.status)throw new Error("Account not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get account history page: ${e.error}`);return e.map(e=>(e.address=this.coerceAddress(e.address),e.debit_value=new o.default(String(e.debit_value)),e.credit_value=new o.default(String(e.credit_value)),e))})}getAccountAt(e,t){const r=`${this.blockstackAPIUrl}/v1/accounts/${e}/history/${t}`;return fetch(r).then(e=>{if(404===e.status)throw new Error("Account not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get historic account state: ${e.error}`);return e.map(e=>(e.address=this.coerceAddress(e.address),e.debit_value=new o.default(String(e.debit_value)),e.credit_value=new o.default(String(e.credit_value)),e))})}getAccountTokens(e){return fetch(`${this.blockstackAPIUrl}/v1/accounts/${e}/tokens`).then(e=>{if(404===e.status)throw new Error("Account not found");if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get token list: ${e.error}`);return e})}getAccountBalance(e,t){return fetch(`${this.blockstackAPIUrl}/v1/accounts/${e}/${t}/balance`).then(e=>{if(404===e.status)return Promise.resolve().then(()=>new o.default("0"));if(200!==e.status)throw new Error(`Bad response status: ${e.status}`);return e.json()}).then(e=>{if(e.error)throw new Error(`Unable to get account balance: ${e.error}`);let t="0";return e&&e.balance&&(t=e.balance),new o.default(t)})}broadcastServiceFetchHelper(e,t){const r={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)},n=`${this.broadcastServiceUrl}/v1/broadcast/${e}`;return fetch(n,r).then(e=>{if(e.ok)return e.json();throw new s.RemoteServiceError(e)})}broadcastTransaction(e,t=null,r=6){if(!e){const e=new s.MissingParameterError("transaction");return Promise.reject(e)}if(!r&&0!==r){const e=new s.MissingParameterError("confirmations");return Promise.reject(e)}if(null===t)return this.btc.broadcastTransaction(e);{const n=d,i={transaction:e,transactionToWatch:t,confirmations:r};return this.broadcastServiceFetchHelper(n,i)}}broadcastZoneFile(e,t=null){if(!e)return Promise.reject(new s.MissingParameterError("zoneFile"));if(t){const r={zoneFile:e,transactionToWatch:t},n=f;return this.broadcastServiceFetchHelper(n,r)}{const t={zonefile:e};return fetch(`${this.blockstackAPIUrl}/v1/zonefile/`,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).then(e=>{return e.json().then(t=>{if(t.hasOwnProperty("error"))throw new s.RemoteServiceError(e);return t.servers})})}}broadcastNameRegistration(e,t,r){if(!e){const e=new s.MissingParameterError("preorderTransaction");return Promise.reject(e)}if(!t){const e=new s.MissingParameterError("registerTransaction");return Promise.reject(e)}if(!r){const e=new s.MissingParameterError("zoneFile");return Promise.reject(e)}const n={preorderTransaction:e,registerTransaction:t,zoneFile:r},i=h;return this.broadcastServiceFetchHelper(i,n)}getFeeRate(){return fetch("https://bitcoinfees.earn.com/api/v1/fees/recommended").then(e=>e.json()).then(e=>Math.floor(e.fastestFee))}countDustOutputs(){throw new Error("Not implemented.")}getUTXOs(e){return this.getNetworkedUTXOs(e).then(t=>{let r=t.concat();this.includeUtxoMap.hasOwnProperty(e)&&(r=t.concat(this.includeUtxoMap[e]));const n=this.excludeUtxoSet;return r=r.filter(e=>{return!n.reduce((t,r)=>t||r.tx_hash===e.tx_hash&&r.tx_output_n===e.tx_output_n,!1)})})}modifyUTXOSetFrom(e){const t=n.default.Transaction.fromHex(e),r=this.excludeUtxoSet.concat();t.ins.forEach(e=>{const t=Buffer.from(e.hash);t.reverse(),r.push({tx_hash:t.toString("hex"),tx_output_n:e.index})}),this.excludeUtxoSet=r;const i=Buffer.from(t.getHash().reverse()).toString("hex");t.outs.forEach((e,t)=>{if(function(e){try{return n.default.payments.embed({output:e},{validate:!0}),!0}catch(e){return!1}}(e.script))return;const r=n.default.address.fromOutputScript(e.script,this.layer1);let o=[];this.includeUtxoMap.hasOwnProperty(r)&&(o=o.concat(this.includeUtxoMap[r])),o.push({tx_hash:i,confirmations:0,value:e.value,tx_output_n:t}),this.includeUtxoMap[r]=o})}resetUTXOs(e){delete this.includeUtxoMap[e],this.excludeUtxoSet=[]}getConsensusHash(){return fetch(`${this.blockstackAPIUrl}/v1/blockchains/bitcoin/consensus`).then(e=>e.json()).then(e=>e.consensus_hash)}getTransactionInfo(e){return this.btc.getTransactionInfo(e)}getBlockHeight(){return this.btc.getBlockHeight()}getNetworkedUTXOs(e){return this.btc.getNetworkedUTXOs(e)}}t.BlockstackNetwork=m;class g extends m{constructor(e,t,r){super(e,t,r,n.default.networks.testnet)}getFeeRate(){return Promise.resolve(Math.floor(1e-5*l))}}t.LocalRegtest=g;class v extends p{constructor(e,t){super(),this.bitcoindUrl=e,this.bitcoindCredentials=t,this.importedBefore={}}broadcastTransaction(e){const t={jsonrpc:"1.0",method:"sendrawtransaction",params:[e]},r={Authorization:`Basic ${Buffer.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString("base64")}`};return fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(t),headers:r}).then(e=>e.json()).then(e=>e.result)}getBlockHeight(){const e={Authorization:`Basic ${Buffer.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString("base64")}`};return fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify({jsonrpc:"1.0",method:"getblockcount"}),headers:e}).then(e=>e.json()).then(e=>e.result)}getTransactionInfo(e){const t={jsonrpc:"1.0",method:"gettransaction",params:[e]},r=Buffer.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString("base64"),n={Authorization:`Basic ${r}`};return fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(t),headers:n}).then(e=>e.json()).then(e=>e.result).then(e=>e.blockhash).then(e=>{const t={jsonrpc:"1.0",method:"getblockheader",params:[e]};return n.Authorization=`Basic ${r}`,fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(t),headers:n})}).then(e=>e.json()).then(e=>{if(e&&e.result)return{block_height:e.result.height};throw new Error("Unconfirmed transaction")})}getNetworkedUTXOs(e){const t={jsonrpc:"1.0",method:"importaddress",params:[e]},r={jsonrpc:"1.0",method:"listunspent",params:[0,9999999,[e]]},n={Authorization:`Basic ${Buffer.from(`${this.bitcoindCredentials.username}:${this.bitcoindCredentials.password}`).toString("base64")}`};return(this.importedBefore[e]?Promise.resolve():fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(t),headers:n}).then(()=>{this.importedBefore[e]=!0})).then(()=>fetch(this.bitcoindUrl,{method:"POST",body:JSON.stringify(r),headers:n})).then(e=>e.json()).then(e=>e.result).then(e=>e.map(e=>({value:Math.round(e.amount*l),confirmations:e.confirmations,tx_hash:e.txid,tx_output_n:e.vout})))}}t.BitcoindAPI=v;class b extends p{constructor(e="https://utxo.technofractal.com/"){super(),this.apiUrl=e}broadcastTransaction(e){const t={rawtx:e};return fetch(`${this.apiUrl}/tx/send`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>e.json())}getBlockHeight(){return fetch(`${this.apiUrl}/status`).then(e=>e.json()).then(e=>e.blocks)}getTransactionInfo(e){return fetch(`${this.apiUrl}/tx/${e}`).then(e=>e.json()).then(e=>{if(e.error)throw new Error(`Error finding transaction: ${e.error}`);return fetch(`${this.apiUrl}/block/${e.blockHash}`)}).then(e=>e.json()).then(e=>({block_height:e.height}))}getNetworkedUTXOs(e){return fetch(`${this.apiUrl}/addr/${e}/utxo`).then(e=>e.json()).then(e=>e.map(e=>({value:e.satoshis,confirmations:e.confirmations,tx_hash:e.txid,tx_output_n:e.vout})))}}t.InsightClient=b;class y extends p{constructor(e="https://blockchain.info"){super(),this.utxoProviderUrl=e}getBlockHeight(){return fetch(`${this.utxoProviderUrl}/latestblock?cors=true`).then(e=>e.json()).then(e=>e.height)}getNetworkedUTXOs(e){return fetch(`${this.utxoProviderUrl}/unspent?format=json&active=${e}&cors=true`).then(e=>500===e.status?(u.Logger.debug("UTXO provider 500 usually means no UTXOs: returning []"),{unspent_outputs:[]}):e.json()).then(e=>e.unspent_outputs).then(e=>e.map(e=>{return{value:e.value,tx_output_n:e.tx_output_n,confirmations:e.confirmations,tx_hash:e.tx_hash_big_endian}}))}getTransactionInfo(e){return fetch(`${this.utxoProviderUrl}/rawtx/${e}?cors=true`).then(t=>{if(200===t.status)return t.json();throw new Error(`Could not lookup transaction info for '${e}'. Server error.`)}).then(e=>({block_height:e.block_height}))}broadcastTransaction(e){const t=new i.default;return t.append("tx",e),fetch(`${this.utxoProviderUrl}/pushtx?cors=true`,{method:"POST",body:t}).then(t=>{return t.text().then(r=>{if(r.toLowerCase().indexOf("transaction submitted")>=0){return Buffer.from(n.default.Transaction.fromHex(e).getHash().reverse()).toString("hex")}throw new s.RemoteServiceError(t,`Broadcast transaction failed with message: ${r}`)})})}}t.BlockchainInfoApi=y;const _=new g("http://localhost:16268","http://localhost:16269",new v("http://localhost:18332/",{username:"blockstack",password:"blockstacksystem"})),w=new m("https://core.blockstack.org","https://broadcast.blockstack.org",new y);t.getNameInfo=function(e){return c.config.network.getNameInfo(e)},t.network={BlockstackNetwork:m,LocalRegtest:g,BlockchainInfoApi:y,BitcoindAPI:v,InsightClient:b,defaults:{LOCAL_REGTEST:_,MAINNET_DEFAULT:w}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(r(230)),a=r(42),s=r(231),u=r(26),c=r(99),l=r(31),f=r(92),h=r(71),d=r(44),p=r(100),m=r(39),g=r(32),v=r(191),b=r(541),y={"@type":"Person","@context":"http://schema.org"};function _(){u.checkWindowAPI("getAuthResponseToken","location");const e=o.default.parse(window.location.search);return e.authResponse?e.authResponse:""}function w(e,t=h.DEFAULT_BLOCKSTACK_HOST){const r=`${t}?authRequest=${e=e||f.makeAuthRequest()}`;if(u.checkWindowAPI("redirectToSignInWithAuthRequest","navigator"),u.checkWindowAPI("redirectToSignInWithAuthRequest","location"),/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(window.navigator.userAgent))return g.Logger.info("detected mobile OS, sending to https"),void(window.location.href=r);b.launchCustomProtocol(e,function(){g.Logger.info("protocol handler detected")},function(){g.Logger.warn("protocol handler not detected"),window.location.href=r})}t.isUserSignedIn=function(){return console.warn("DEPRECATION WARNING: The static isUserSignedIn() function will be deprecated in the next major release of blockstack.js. Create an instance of UserSession and call the instance method isUserSignedIn()."),(new p.UserSession).isUserSignedIn()},t.redirectToSignIn=function(e,t,r){console.warn("DEPRECATION WARNING: The static redirectToSignIn() function will be deprecated in the next major release of blockstack.js. Create an instance of UserSession and call the instance method redirectToSignIn()."),w(f.makeAuthRequest(null,e,t,r))},t.isSignInPending=function(){try{if(v.protocolEchoReplyDetection())return g.Logger.info("protocolEchoReply detected from isSignInPending call, the page is about to redirect."),!0}catch(e){g.Logger.error(`Error checking for protocol echo reply isSignInPending: ${e}`)}return!!_()},t.getAuthResponseToken=_,t.loadUserData=function(){return console.warn("DEPRECATION WARNING: The static loadUserData() function will be deprecated in the next major release of blockstack.js. Create an instance of UserSession and call the instance method loadUserData()."),(new p.UserSession).loadUserData()},t.signUserOut=function(e,t){if((t||new p.UserSession).store.deleteSessionData(),e){if("undefined"==typeof window){const t="`signUserOut` called with `redirectURL` specified"+` ("${e}")`+" but `window.location.href` is not available in this environment";throw g.Logger.error(t),new Error(t)}window.location.href=e}},t.redirectToSignInWithAuthRequest=w,t.handlePendingSignIn=function(e="",t=_(),r,i){return n(this,void 0,void 0,function*(){try{if(v.protocolEchoReplyDetection()){const e="handlePendingSignIn called while protocolEchoReply was detected, and the page is about to redirect. This function will resolve with an error after several seconds, if the page was not redirected for some reason.";return g.Logger.info(e),new Promise((t,r)=>{setTimeout(()=>{g.Logger.error("Page should have redirected by now. handlePendingSignIn will now throw."),r(e)},3e3)})}}catch(e){g.Logger.error(`Error checking for protocol echo reply handlePendingSignIn: ${e}`)}if(i||(i=new p.UserSession),r||(r=i.store.getSessionData().transitKey),!e){const r=a.decodeToken(t).payload;u.isLaterVersion(r.version,"1.3.0")&&null!==r.blockstackAPIUrl&&void 0!==r.blockstackAPIUrl&&(g.Logger.info(`Overriding ${m.config.network.blockstackAPIUrl} `+`with ${r.blockstackAPIUrl}`),m.config.network.blockstackAPIUrl=r.blockstackAPIUrl),e=`${m.config.network.blockstackAPIUrl}${h.NAME_LOOKUP_PATH}`}if(!(yield s.verifyAuthResponse(t,e)))throw new l.LoginFailedError("Invalid authentication response.");const n=a.decodeToken(t).payload;let o=n.private_key,b=n.core_token;if(u.isLaterVersion(n.version,"1.1.0")){if(void 0===r||null==r)throw new l.LoginFailedError("Authenticating with protocol > 1.1.0 requires transit key, and none found.");if(void 0!==n.private_key&&null!==n.private_key)try{o=f.decryptPrivateKey(r,n.private_key)}catch(e){g.Logger.warn("Failed decryption of appPrivateKey, will try to use as given");try{u.hexStringToECPair(n.private_key)}catch(e){throw new l.LoginFailedError("Failed decrypting appPrivateKey. Usually means that the transit key has changed during login.")}}if(null!=b)try{b=f.decryptPrivateKey(r,b)}catch(e){g.Logger.info("Failed decryption of coreSessionToken, will try to use as given")}}let _,w=h.BLOCKSTACK_DEFAULT_GAIA_HUB_URL;u.isLaterVersion(n.version,"1.2.0")&&null!==n.hubUrl&&void 0!==n.hubUrl&&(w=n.hubUrl),u.isLaterVersion(n.version,"1.3.0")&&null!==n.associationToken&&void 0!==n.associationToken&&(_=n.associationToken);const k={username:n.username,profile:n.profile,email:n.email,decentralizedID:n.iss,identityAddress:c.getAddressFromDID(n.iss),appPrivateKey:o,coreSessionToken:b,authResponseToken:t,hubUrl:w,gaiaAssociationToken:_},S=n.profile_url;if(!k.profile&&S){const e=yield fetch(S);if(e.ok){const t=yield e.text(),r=JSON.parse(t),n=d.extractProfile(r[0].token);k.profile=n}else k.profile=Object.assign({},y)}else k.profile=n.profile;const x=i.store.getSessionData();return x.userData=k,i.store.setSessionData(x),k})}},function(e,t,r){"use strict";const n=r(538),i=r(539),o=r(540);function a(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function s(e,t){return t.decode?i(e):e}function u(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function c(e){const t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function l(e,t){const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":return(e,t,r)=>{const n="string"==typeof t&&t.split("").indexOf(",")>-1?t.split(","):t;r[e]=n};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1},t)),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const i of e.split("&")){let[e,a]=o(i.replace(/\+/g," "),"=");a=void 0===a?null:s(a,t),t.parseNumbers&&!Number.isNaN(Number(a))&&(a=Number(a)),r(s(e,t),a,n)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=c,t.parse=l,t.stringify=(e,t)=>{if(!e)return"";const r=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n?r:null===n?[...r,[a(t,e),"[",i,"]"].join("")]:[...r,[a(t,e),"[",a(i,e),"]=",a(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n?r:null===n?[...r,[a(t,e),"[]"].join("")]:[...r,[a(t,e),"[]=",a(n,e)].join("")];case"comma":return t=>(r,n,i)=>null==n||0===n.length?r:0===i?[[a(t,e),"=",a(n,e)].join("")]:[[r,a(n,e)].join(",")];default:return t=>(r,n)=>void 0===n?r:null===n?[...r,a(t,e)]:[...r,[a(t,e),"=",a(n,e)].join("")]}}(t=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},t)),n=Object.keys(e);return!1!==t.sort&&n.sort(t.sort),n.map(n=>{const i=e[n];return void 0===i?"":null===i?a(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):a(n,t)+"="+a(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>({url:u(e).split("?")[0]||"",query:l(c(e),t)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42),i=r(99),o=r(59),a=r(26),s=r(232);function u(e){const t=n.decodeToken(e).payload.public_keys;if(1!==t.length)throw new Error("Multiple public keys are not supported");{const r=t[0];try{return!!new n.TokenVerifier("ES256k",r).verify(e)}catch(e){return!1}}}function c(e){const t=n.decodeToken(e).payload,r=t.public_keys,a=i.getAddressFromDID(t.iss);if(1!==r.length)throw new Error("Multiple public keys are not supported");if(o.publicKeyToAddress(r[0])===a)return!0;return!1}function l(e,t){return Promise.resolve().then(()=>{const r=n.decodeToken(e).payload;if(!r.username)return!0;if(null===r.username)return!0;if(null===t)return!1;const o=r.username,a=`${t.replace(/\/$/,"")}/${o}`;return fetch(a).then(e=>e.text()).then(e=>{const t=JSON.parse(e);if(t.hasOwnProperty("address")){return t.address===i.getAddressFromDID(r.iss)}return!1})}).catch(()=>!1)}function f(e){const t=n.decodeToken(e).payload;if(t.iat){if("number"!=typeof t.iat)return!1;const e=new Date(1e3*t.iat);return!((new Date).getTime()e.getTime())}return!0}function d(e){const t=n.decodeToken(e).payload;return a.isSameOriginAbsoluteUrl(t.domain_name,t.manifest_uri)}function p(e){const t=n.decodeToken(e).payload;return a.isSameOriginAbsoluteUrl(t.domain_name,t.redirect_uri)}function m(e){return Promise.resolve().then(()=>{if("none"===n.decodeToken(e).header.alg)throw new Error("Token must be signed in order to be verified")}).then(()=>Promise.all([h(e),f(e),u(e),c(e),d(e),p(e)])).then(e=>!!e.every(Boolean))}t.doSignaturesMatchPublicKeys=u,t.doPublicKeysMatchIssuer=c,t.doPublicKeysMatchUsername=l,t.isIssuanceDateValid=f,t.isExpirationDateValid=h,t.isManifestUriValid=d,t.isRedirectUriValid=p,t.verifyAuthRequest=m,t.verifyAuthRequestAndLoadManifest=function(e){return Promise.resolve().then(()=>m(e).then(t=>t?s.fetchAppManifest(e):Promise.reject()))},t.verifyAuthResponse=function(e,t){return Promise.all([h(e),f(e),u(e),c(e),l(e,t)]).then(e=>!!e.every(Boolean))}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(230)),o=r(42),a=r(26),s=r(32);t.getAuthRequestFromURL=function(){a.checkWindowAPI("getAuthRequestFromURL","location");const e=i.default.parse(window.location.search);return e.authRequest?e.authRequest.split(`${a.BLOCKSTACK_HANDLER}:`).join(""):null},t.fetchAppManifest=function(e){return new Promise((t,r)=>{if(e){const n=o.decodeToken(e).payload.manifest_uri;try{s.Logger.debug(`Fetching manifest from ${n}`),fetch(n).then(e=>e.text()).then(e=>JSON.parse(e)).then(e=>{t(Object.assign({},e,{manifestURI:n}))}).catch(e=>{s.Logger.debug(e.stack),r("Could not fetch manifest.json")})}catch(e){s.Logger.debug(e.stack),r("Could not fetch manifest.json")}}else r("Invalid auth request")})},t.redirectUserToApp=function(e,t){let r=o.decodeToken(e).payload.redirect_uri;if(s.Logger.debug(r),!r)throw new Error("Invalid redirect URI");r=a.updateQueryStringParameter(r,"authResponse",t),a.checkWindowAPI("redirectUserToApp","location"),window.location.href=r}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0});const i=r(234);t.connectToGaiaHub=i.connectToGaiaHub,t.uploadToGaiaHub=i.uploadToGaiaHub,t.BLOCKSTACK_GAIA_HUB_LABEL=i.BLOCKSTACK_GAIA_HUB_LABEL;const o=r(141),a=r(59),s=r(235),u=r(31),c=r(32),l=r(100),f=".sig";function h(e,t,r,i){return n(this,void 0,void 0,function*(){const n=yield s.lookupProfile(t,i);let o=null;if(n.hasOwnProperty("apps")&&n.apps.hasOwnProperty(r)){o=`${n.apps[r].replace(/\/?(\?|#|$)/,"/$1")}${e}`}return o})}function d(e,t,r){const n=Object.assign({},t);if(!n.publicKey){const e=(r||new l.UserSession).loadUserData().appPrivateKey;n.publicKey=a.getPublicKeyFromPrivate(e)}const i=o.encryptECIES(n.publicKey,e);return JSON.stringify(i)}function p(e,t,r,o){return n(this,void 0,void 0,function*(){const n=m({app:e,username:t},o);let a;if(t)a=yield h("/",n.username,n.app,r);else{o||(o=new l.UserSession);const e=yield o.getOrSetLocalGaiaHubConnection();a=yield i.getFullReadUrl("/",e)}const s=a.match(/([13][a-km-zA-HJ-NP-Z0-9]{26,35})/);if(!s)throw new Error("Failed to parse gaia address");return s[s.length-1]})}function m(e,t){const r=Object.assign({},e);if(r.username&&!r.app){const e=(t||new l.UserSession).appConfig;if(!e)throw new u.InvalidStateError("Missing AppConfig");r.app=e.appDomain}return r}function g(e,t,r){return n(this,void 0,void 0,function*(){const n=m(t,r);let o;if(n.username)o=yield h(e,n.username,n.app,n.zoneFileLookupURL);else{const t=yield(r||new l.UserSession).getOrSetLocalGaiaHubConnection();o=yield i.getFullReadUrl(e,t)}if(o)return o;throw new Error("Missing readURL")})}function v(e,t,r,n,i,o){return Promise.resolve().then(()=>{return g(e,{app:t,username:r,zoneFileLookupURL:n},o)}).then(e=>fetch(e)).then(t=>{if(200!==t.status){if(404===t.status)return c.Logger.debug(`getFile ${e} returned 404, returning null`),null;throw new Error(`getFile ${e} failed with HTTP status ${t.status}`)}const r=t.headers.get("Content-Type");return i||null===r||r.startsWith("text")||"application/json"===r?t.text():t.arrayBuffer()})}t.getUserAppFileUrl=h,t.encryptContent=d,t.decryptContent=function(e,t,r){const n=Object.assign({},t);n.privateKey||(n.privateKey=(r||new l.UserSession).loadUserData().appPrivateKey);try{const t=JSON.parse(e);return o.decryptECIES(n.privateKey,t)}catch(e){throw e instanceof SyntaxError?new Error("Failed to parse encrypted content JSON. The content may not be encrypted. If using getFile, try passing { decrypt: false }."):e}},t.getFileUrl=g,t.getFile=function(e,t,r){const n={decrypt:!0,verify:!1,username:null,app:"undefined"!=typeof window?window.location.origin:void 0,zoneFileLookupURL:null},i=Object.assign({},n,t);return r||(r=new l.UserSession),i.verify&&!i.decrypt?function(e,t,r){return Promise.all([v(e,t.app,t.username,t.zoneFileLookupURL,!1,r),v(`${e}${f}`,t.app,t.username,t.zoneFileLookupURL,!0,r),p(t.app,t.username,t.zoneFileLookupURL,r)]).then(([t,r,n])=>{if(!t)return t;if(!n)throw new u.SignatureVerificationError("Failed to get gaia address for verification of: "+`${e}`);if(!r||"string"!=typeof r)throw new u.SignatureVerificationError("Failed to obtain signature for file: "+`${e} -- looked in ${e}${f}`);let i,s;try{const t=JSON.parse(r);i=t.signature,s=t.publicKey}catch(t){throw t instanceof SyntaxError?new Error("Failed to parse signature content JSON "+`(path: ${e}${f})`+" The content may be corrupted."):t}const c=a.publicKeyToAddress(s);if(n!==c)throw new u.SignatureVerificationError(`Signer pubkey address (${c}) doesn't`+` match gaia address (${n})`);if(o.verifyECDSA(t,s,i))return t;throw new u.SignatureVerificationError("Contents do not match ECDSA signature: "+`path: ${e}, signature: ${e}${f}`)})}(e,i,r):v(e,i.app,i.username,i.zoneFileLookupURL,!!i.decrypt,r).then(t=>{if(null===t)return t;if(i.decrypt&&!i.verify){if("string"!=typeof t)throw new Error("Expected to get back a string for the cipherText");return r.decryptContent(t)}if(i.decrypt&&i.verify){if("string"!=typeof t)throw new Error("Expected to get back a string for the cipherText");return function(e,t,r,n,i,s){const c=e.loadUserData().appPrivateKey,l=a.getPublicKeyFromPrivate(c);let f;if(i)f=p(n,i,s,e);else{const e=a.publicKeyToAddress(l);f=Promise.resolve(e)}return f.then(n=>{if(!n)throw new u.SignatureVerificationError("Failed to get gaia address for verification of: "+`${t}`);let i;try{i=JSON.parse(r)}catch(e){throw e instanceof SyntaxError?new Error("Failed to parse encrypted, signed content JSON. The content may not be encrypted. If using getFile, try passing { verify: false, decrypt: false }."):e}const s=i.signature,c=i.publicKey,l=i.cipherText,f=a.publicKeyToAddress(c);if(c&&l&&s){if(f!==n)throw new u.SignatureVerificationError(`Signer pubkey address (${f}) doesn't`+` match gaia address (${n})`);if(o.verifyECDSA(l,c,s))return e.decryptContent(l);throw new u.SignatureVerificationError("Contents do not match ECDSA signature in file:"+` ${t}`)}throw new u.SignatureVerificationError("Failed to get signature verification data from file:"+` ${t}`)})}(r,e,t,i.app,i.username,i.zoneFileLookupURL)}if(i.verify||i.decrypt)throw new Error("Should be unreachable.");return t})},t.putFile=function(e,t,r,s){return n(this,void 0,void 0,function*(){const n=Object.assign({},{encrypt:!0,sign:!1,contentType:""},r);let{contentType:u}=n;u||(u="string"==typeof t?"text/plain; charset=utf-8":"application/octet-stream"),s||(s=new l.UserSession);let c="",h="";if(n.sign&&(c="string"==typeof n.sign?n.sign:s.loadUserData().appPrivateKey),n.encrypt&&("string"==typeof n.encrypt?h=n.encrypt:(c||(c=s.loadUserData().appPrivateKey),h=a.getPublicKeyFromPrivate(c))),!n.encrypt&&n.sign){const r=o.signECDSA(c,t),n=JSON.stringify(r),a=yield s.getOrSetLocalGaiaHubConnection();try{return(yield Promise.all([i.uploadToGaiaHub(e,t,a,u),i.uploadToGaiaHub(`${e}${f}`,n,a,"application/json")]))[0]}catch(r){const o=yield s.setLocalGaiaHubConnection();return(yield Promise.all([i.uploadToGaiaHub(e,t,o,u),i.uploadToGaiaHub(`${e}${f}`,n,o,"application/json")]))[0]}}if(n.encrypt&&!n.sign)t=d(t,{publicKey:h}),u="application/json";else if(n.encrypt&&n.sign){const e=d(t,{publicKey:h}),r=o.signECDSA(c,e),n={signature:r.signature,publicKey:r.publicKey,cipherText:e};t=JSON.stringify(n),u="application/json"}const p=yield s.getOrSetLocalGaiaHubConnection();try{return yield i.uploadToGaiaHub(e,t,p,u)}catch(r){const n=yield s.setLocalGaiaHubConnection();return yield i.uploadToGaiaHub(e,t,n,u)}})},t.deleteFile=function(e,t,r){return n(this,void 0,void 0,function*(){r||(r=new l.UserSession);const n=yield r.getOrSetLocalGaiaHubConnection();if(Object.assign({},t).wasSigned)try{yield i.deleteFromGaiaHub(e,n),yield i.deleteFromGaiaHub(`${e}${f}`,n)}catch(t){const o=yield r.setLocalGaiaHubConnection();yield i.deleteFromGaiaHub(e,o),yield i.deleteFromGaiaHub(`${e}${f}`,n)}else try{yield i.deleteFromGaiaHub(e,n)}catch(t){const n=yield r.setLocalGaiaHubConnection();yield i.deleteFromGaiaHub(e,n)}})},t.getAppBucketUrl=function(e,t){return i.getBucketUrl(e,t)},t.listFiles=function(e,t){return function e(t,r,i,o,a,s){return n(this,void 0,void 0,function*(){if(o>65536)throw new Error("Too many entries to list");let n;r=r||(yield t.getOrSetLocalGaiaHubConnection());try{const a=JSON.stringify({page:i}),u={method:"POST",headers:{"Content-Type":"application/json","Content-Length":`${a.length}`,Authorization:`bearer ${r.token}`},body:a};if(!(n=yield fetch(`${r.server}/list-files/${r.address}`,u)).ok)throw new Error(`listFiles failed with HTTP status ${n.status}`)}catch(r){if(0===o){const r=yield t.setLocalGaiaHubConnection();return e(t,r,i,o+1,0,s)}throw r}const u=yield n.text(),c=JSON.parse(u),l=c.entries,f=c.page;if(null==l)throw new Error("Bad listFiles response: no entries");for(let e=0;e0?e(t,r,f,o+1,a+l.length,s):a+l.length})}(t=t||new l.UserSession,null,null,0,0,e)}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(38)),o=n(r(14)),a=r(42),s=r(26),u=r(59),c=r(32),l=r(31);function f(e,t,r,n){const c=e.challenge_text,l=e.latest_auth_version&&parseInt(e.latest_auth_version.slice(1),10)>=1,f=u.getPublicKeyFromPrivate(t);if(!l)return function(e,t){let r;try{r=JSON.parse(e)}catch(e){throw new Error("Failed in parsing legacy challenge text from the gaia hub.")}if("gaiahub"===r[0]&&"blockstack_storage_please_sign"===r[3]){const r=s.hexStringToECPair(t+(64===t.length?"01":"")),n=i.default.crypto.sha256(Buffer.from(e)),o=r.sign(n),a=i.default.script.signature.encode(o,i.default.Transaction.SIGHASH_NONE).toString("hex").slice(0,-2),c=u.getPublicKeyFromPrivate(t);return Buffer.from(JSON.stringify({publickey:c,signature:a})).toString("base64")}throw new Error("Failed to connect to legacy gaia hub. If you operate this hub, please update.")}(c,t);const h={gaiaChallenge:c,hubUrl:r,iss:f,salt:o.default.randomBytes(16).toString("hex"),associationToken:n};return`v1:${new a.TokenSigner("ES256K",t).sign(h)}`}t.BLOCKSTACK_GAIA_HUB_LABEL="blockstack-gaia-hub-config",t.uploadToGaiaHub=function(t,r,n,i="application/octet-stream"){return e(this,void 0,void 0,function*(){c.Logger.debug(`uploadToGaiaHub: uploading ${t} to ${n.server}`);const e=yield fetch(`${n.server}/store/${n.address}/${t}`,{method:"POST",headers:{"Content-Type":i,Authorization:`bearer ${n.token}`},body:r});if(!e.ok)throw new Error("Error when uploading to Gaia hub");const o=yield e.text();return JSON.parse(o).publicURL})},t.deleteFromGaiaHub=function(t,r){return e(this,void 0,void 0,function*(){c.Logger.debug(`deleteFromGaiaHub: deleting ${t} from ${r.server}`);const e=yield fetch(`${r.server}/delete/${r.address}/${t}`,{method:"DELETE",headers:{Authorization:`bearer ${r.token}`}});if(!e.ok){let t="";try{t=yield e.text()}catch(e){c.Logger.debug(`Error getting bad http response text: ${e}`)}const r="Error deleting file from Gaia hub: "+`${e.status} ${e.statusText}: ${t}`;throw c.Logger.error(r),404===e.status?new l.FileNotFound(r):new Error(r)}})},t.getFullReadUrl=function(e,t){return Promise.resolve(`${t.url_prefix}${t.address}/${e}`)},t.connectToGaiaHub=function(t,r,n){return e(this,void 0,void 0,function*(){c.Logger.debug(`connectToGaiaHub: ${t}/hub_info`);const e=yield fetch(`${t}/hub_info`),i=yield e.json(),o=i.read_url_prefix,a=f(i,r,t,n);return{url_prefix:o,address:s.ecPairToAddress(s.hexStringToECPair(r+(64===r.length?"01":""))),token:a,server:t}})},t.getBucketUrl=function(t,r){return e(this,void 0,void 0,function*(){const e=i.default.ECPair.fromPrivateKey(Buffer.from(r,"hex")),n=yield fetch(`${t}/hub_info`),o=yield n.text();return`${JSON.parse(o).read_url_prefix}${s.ecPairToAddress(e)}/`})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(101),i=r(39);t.lookupProfile=function(e,t){if(!e)return Promise.reject();let r;if(t){const n=`${t.replace(/\/$/,"")}/${e}`;r=fetch(n).then(e=>e.json())}else r=i.config.network.getNameInfo(e);return r.then(e=>{if(e.hasOwnProperty("zonefile")&&e.hasOwnProperty("address"))return n.resolveZoneFileToProfile(e.zonefile,e.address);throw new Error("Invalid zonefile lookup response: did not contain `address` or `zonefile` field")})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"makeZoneFile",{enumerable:!0,get:function(){return n.makeZoneFile}}),Object.defineProperty(t,"parseZoneFile",{enumerable:!0,get:function(){return i.parseZoneFile}}),Object.defineProperty(t,"ZoneFile",{enumerable:!0,get:function(){return o.ZoneFile}});var n=r(237),i=r(238),o=r(543)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeZoneFile=function(e,t=(0,n.getZoneFileTemplate)()){return t=function(e,t){let r="";return void 0!==e&&(r+="$ORIGIN "+e),t.replace("{$origin}",r)}(e.$origin,t),t=function(e,t){let r="";return void 0!==e&&(r+="$TTL "+e),t.replace("{$ttl}",r)}(e.$ttl,t),t=function(e,t){let r=t;if(void 0!==e){e.name=e.name||"@",e.ttl=e.ttl||"";for(const t in e){const n=e[t];r=r.replace("{"+t+"}",n+"\t")}}return r}(e.soa,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tNS\t"+t.host+"\n";return t.replace("{ns}",r)}(e.ns,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tA\t"+t.ip+"\n";return t.replace("{a}",r)}(e.a,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tAAAA\t"+t.ip+"\n";return t.replace("{aaaa}",r)}(e.aaaa,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tCNAME\t"+t.alias+"\n";return t.replace("{cname}",r)}(e.cname,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tMX\t"+t.preference+"\t"+t.host+"\n";return t.replace("{mx}",r)}(e.mx,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tPTR\t"+t.host+"\n";return t.replace("{ptr}",r)}(e.ptr,t),t=function(e,t){let r="";if(e)for(const t of e){r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tTXT\t";const e=t.txt;"string"==typeof e?r+='"'+e+'"':e instanceof Array&&(r+=e.map(function(e){return'"'+e+'"'}).join(" ")),r+="\n"}return t.replace("{txt}",r)}(e.txt,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tSRV\t"+t.priority+"\t",r+=t.weight+"\t",r+=t.port+"\t",r+=t.target+"\n";return t.replace("{srv}",r)}(e.srv,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tSPF\t"+t.data+"\n";return t.replace("{spf}",r)}(e.spf,t),t=function(e,t){let r="";if(e)for(const t of e)r+=(t.name||"@")+"\t",t.ttl&&(r+=t.ttl+"\t"),r+="IN\tURI\t"+t.priority+"\t",r+=t.weight+"\t",r+='"'+t.target+'"\n';return t.replace("{uri}",r)}(e.uri,t),(t=function(e,t){t=(t=t.replace("{zone}",e.$origin||!!e.soa&&e.soa.name||"")).replace("{datetime}",(new Date).toISOString());const r=Math.round(Date.now()/1e3);return t.replace("{time}",`${r}`)}(e,t)).replace(/\n{2,}/gim,"\n\n")};var n=r(542)},function(e,t,r){"use strict";function n(e){const t={},r=e.trim().split(/\s+/g),n=r.length;return t.name=r[0],t.minimum=parseInt(r[n-1],10),t.expire=parseInt(r[n-2],10),t.retry=parseInt(r[n-3],10),t.refresh=parseInt(r[n-4],10),t.serial=parseInt(r[n-5],10),t.rname=r[n-6],t.mname=r[n-7],isNaN(r[1])||(t.ttl=parseInt(r[1],10)),t}function i(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],host:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function o(e,t){const r=e.trim().split(/\s+/g),n=e.trim().toUpperCase().split(/\s+/g),i=r.length,o={name:r[0],ip:r[i-1]};return 0===n.lastIndexOf("A")&&(t.length?o.name=t[t.length-1].name:o.name="@"),isNaN(r[1])||(o.ttl=parseInt(r[1],10)),o}function a(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],ip:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function s(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],alias:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function u(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],preference:parseInt(t[r-2],10),host:t[r-1]};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function c(e){const t=e.trim().match(/[^\s\"']+|\"[^\"]*\"|'[^']*'/g);if(!t)throw new Error("Failure to tokenize TXT record");const r=t.length,n=t.indexOf("TXT");function i(e){return e.indexOf('"')>-1&&(e=e.split('"')[1]),e.indexOf('"')>-1&&(e=e.split('"')[1]),e}let o;o=r-n-1>1?t.slice(n+1).map(i):i(t[r-1]);const a={name:t[0],txt:o};return isNaN(t[1])||(a.ttl=parseInt(t[1],10)),a}function l(e,t,r){const n=e.trim().split(/\s+/g);0===e.trim().toUpperCase().split(/\s+/g).lastIndexOf("PTR")&&t[t.length-1]&&n.unshift(t[t.length-1].name);const i=n.length,o={name:n[0],fullname:n[0]+"."+r,host:n[i-1]};return isNaN(n[1])||(o.ttl=parseInt(n[1],10)),o}function f(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],target:t[r-1],priority:parseInt(t[r-4],10),weight:parseInt(t[r-3],10),port:parseInt(t[r-2],10)};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}function h(e){const t=e.trim().split(/\s+/g),r={name:t[0],data:""};let n=t.length;for(;n-- >4;)r.data=t[n]+" "+r.data.trim();return isNaN(t[1])||(r.ttl=parseInt(t[1],10)),r}function d(e){const t=e.trim().split(/\s+/g),r=t.length,n={name:t[0],target:t[r-1].replace(/"/g,""),priority:parseInt(t[r-3],10),weight:parseInt(t[r-2],10)};return isNaN(t[1])||(n.ttl=parseInt(t[1],10)),n}Object.defineProperty(t,"__esModule",{value:!0}),t.parseZoneFile=function(e){return function(e){const t={},r=e.split("\n");for(const e of r){if(!e||!e.trim())continue;const r=e.toUpperCase();/\s+TXT\s+/.test(r)?(t.txt=t.txt||[],t.txt.push(c(e))):0===r.indexOf("$ORIGIN")?t.$origin=e.split(/\s+/g)[1]:0===r.indexOf("$TTL")?t.$ttl=parseInt(e.split(/\s+/g)[1],10):/\s+SOA\s+/.test(r)?t.soa=n(e):/\s+NS\s+/.test(r)?(t.ns=t.ns||[],t.ns.push(i(e))):/\s+A\s+/.test(r)?(t.a=t.a||[],t.a.push(o(e,t.a))):/\s+AAAA\s+/.test(r)?(t.aaaa=t.aaaa||[],t.aaaa.push(a(e))):/\s+CNAME\s+/.test(r)?(t.cname=t.cname||[],t.cname.push(s(e))):/\s+MX\s+/.test(r)?(t.mx=t.mx||[],t.mx.push(u(e))):/\s+PTR\s+/.test(r)?(t.ptr=t.ptr||[],t.ptr.push(l(e,t.ptr,t.$origin))):/\s+SRV\s+/.test(r)?(t.srv=t.srv||[],t.srv.push(f(e))):/\s+SPF\s+/.test(r)?(t.spf=t.spf||[],t.spf.push(h(e))):/\s+URI\s+/.test(r)&&(t.uri=t.uri||[],t.uri.push(d(e)))}return t}(e=function(e){const t=[],r=/\([\s\S]*?\)/gim;let n=r.exec(e);for(;null!==n;){const i=n[0].replace(/\s+/gm," ");t.push({match:n,replacement:i}),n=r.exec(e)}const i=e.split("");for(const e of t){const{match:t,replacement:r}=e;i.splice(t.index,t[0].length,r)}return i.join("").replace(/\(|\)/gim," ")}(e=function(e){return e.replace(/(^|[^\\]);.*/g,function(e,t){return t||""})}(e)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(546);t.validateProofs=function(e,t,r=null){if(!e)throw new Error("Profile must not be null");let i=[];const o=[];return e.hasOwnProperty("account")?((i=e.account).forEach(e=>{if(e.hasOwnProperty("service")&&!n.profileServices.hasOwnProperty(e.service))return;if(!e.hasOwnProperty("proofType")||"http"!==e.proofType||!e.hasOwnProperty("proofUrl"))return;const i={service:e.service,proof_url:e.proofUrl,identifier:e.identifier,valid:!1};o.push(n.profileServices[e.service].validateProof(i,t,r))}),Promise.all(o)):Promise.resolve([])}},function(e,t,r){"use strict";var n=r(241),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},o={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s={__proto__:null,math:!0,svg:!0},u={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0,foreignObject:!0,desc:!0,title:!0},c=/\s|\//;function l(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this._foreignContext=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(n=this._options.Tokenizer),this._tokenizer=new n(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}r(3)(l,r(83).EventEmitter),l.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},l.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},l.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in o)for(var t;(t=this._stack[this._stack.length-1])in o[e];this.onclosetag(t));!this._options.xmlMode&&e in a||(this._stack.push(e),e in s?this._foreignContext.push(!0):e in u&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},l.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in a&&this._cbs.onclosetag(this._tagname),this._tagname=""},l.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(e in s||e in u)&&this._foreignContext.pop(),!this._stack.length||e in a&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},l.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},l.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},l.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},l.prototype.onattribdata=function(e){this._attribvalue+=e},l.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},l.prototype._getInstructionName=function(e){var t=e.search(c),r=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(r=r.toLowerCase()),r},l.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},l.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},l.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},l.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},l.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},l.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},l.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},l.prototype.parseComplete=function(e){this.reset(),this.end(e)},l.prototype.write=function(e){this._tokenizer.write(e)},l.prototype.end=function(e){this._tokenizer.end(e)},l.prototype.pause=function(){this._tokenizer.pause()},l.prototype.resume=function(){this._tokenizer.resume()},l.prototype.parseChunk=l.prototype.write,l.prototype.done=l.prototype.end,e.exports=l},function(e,t,r){"use strict";e.exports=ge;var n=r(242),i=r(144),o=r(243),a=r(145),s=0,u=s++,c=s++,l=s++,f=s++,h=s++,d=s++,p=s++,m=s++,g=s++,v=s++,b=s++,y=s++,_=s++,w=s++,k=s++,S=s++,x=s++,E=s++,A=s++,O=s++,P=s++,T=s++,C=s++,j=s++,I=s++,M=s++,D=s++,B=s++,N=s++,z=s++,R=s++,F=s++,U=s++,$=s++,L=s++,q=s++,H=s++,V=s++,K=s++,W=s++,G=s++,Z=s++,Y=s++,X=s++,J=s++,Q=s++,ee=s++,te=s++,re=s++,ne=s++,ie=s++,oe=s++,ae=s++,se=s++,ue=s++,ce=0,le=ce++,fe=ce++,he=ce++;function de(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function pe(e,t,r){var n=e.toLowerCase();return e===n?function(e){e===n?this._state=t:(this._state=r,this._index--)}:function(i){i===n||i===e?this._state=t:(this._state=r,this._index--)}}function me(e,t){var r=e.toLowerCase();return function(n){n===r||n===e?this._state=t:(this._state=l,this._index--)}}function ge(e,t){this._state=u,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=u,this._special=le,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}ge.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=c,this._sectionStart=this._index):this._decodeEntities&&this._special===le&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=u,this._state=ie,this._sectionStart=this._index)},ge.prototype._stateBeforeTagName=function(e){"/"===e?this._state=h:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==le||de(e)?this._state=u:"!"===e?(this._state=k,this._sectionStart=this._index+1):"?"===e?(this._state=x,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?l:R,this._sectionStart=this._index)},ge.prototype._stateInTagName=function(e){("/"===e||">"===e||de(e))&&(this._emitToken("onopentagname"),this._state=m,this._index--)},ge.prototype._stateBeforeCloseingTagName=function(e){de(e)||(">"===e?this._state=u:this._special!==le?"s"===e||"S"===e?this._state=F:(this._state=u,this._index--):(this._state=d,this._sectionStart=this._index))},ge.prototype._stateInCloseingTagName=function(e){(">"===e||de(e))&&(this._emitToken("onclosetag"),this._state=p,this._index--)},ge.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=u,this._sectionStart=this._index+1)},ge.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=u,this._sectionStart=this._index+1):"/"===e?this._state=f:de(e)||(this._state=g,this._sectionStart=this._index)},ge.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=u,this._sectionStart=this._index+1):de(e)||(this._state=m,this._index--)},ge.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||de(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=v,this._index--)},ge.prototype._stateAfterAttributeName=function(e){"="===e?this._state=b:"/"===e||">"===e?(this._cbs.onattribend(),this._state=m,this._index--):de(e)||(this._cbs.onattribend(),this._state=g,this._sectionStart=this._index)},ge.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=y,this._sectionStart=this._index+1):"'"===e?(this._state=_,this._sectionStart=this._index+1):de(e)||(this._state=w,this._sectionStart=this._index,this._index--)},ge.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ie,this._sectionStart=this._index)},ge.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ie,this._sectionStart=this._index)},ge.prototype._stateInAttributeValueNoQuotes=function(e){de(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ie,this._sectionStart=this._index)},ge.prototype._stateBeforeDeclaration=function(e){this._state="["===e?T:"-"===e?E:S},ge.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ge.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ge.prototype._stateBeforeComment=function(e){"-"===e?(this._state=A,this._sectionStart=this._index+1):this._state=S},ge.prototype._stateInComment=function(e){"-"===e&&(this._state=O)},ge.prototype._stateAfterComment1=function(e){this._state="-"===e?P:A},ge.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):"-"!==e&&(this._state=A)},ge.prototype._stateBeforeCdata1=pe("C",C,S),ge.prototype._stateBeforeCdata2=pe("D",j,S),ge.prototype._stateBeforeCdata3=pe("A",I,S),ge.prototype._stateBeforeCdata4=pe("T",M,S),ge.prototype._stateBeforeCdata5=pe("A",D,S),ge.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=B,this._sectionStart=this._index+1):(this._state=S,this._index--)},ge.prototype._stateInCdata=function(e){"]"===e&&(this._state=N)},ge.prototype._stateAfterCdata1=function(e){this._state="]"===e?z:B},ge.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):"]"!==e&&(this._state=B)},ge.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=U:"t"===e||"T"===e?this._state=Y:(this._state=l,this._index--)},ge.prototype._stateBeforeSpecialEnd=function(e){this._special!==fe||"c"!==e&&"C"!==e?this._special!==he||"t"!==e&&"T"!==e?this._state=u:this._state=ee:this._state=V},ge.prototype._stateBeforeScript1=me("R",$),ge.prototype._stateBeforeScript2=me("I",L),ge.prototype._stateBeforeScript3=me("P",q),ge.prototype._stateBeforeScript4=me("T",H),ge.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||de(e))&&(this._special=fe),this._state=l,this._index--},ge.prototype._stateAfterScript1=pe("R",K,u),ge.prototype._stateAfterScript2=pe("I",W,u),ge.prototype._stateAfterScript3=pe("P",G,u),ge.prototype._stateAfterScript4=pe("T",Z,u),ge.prototype._stateAfterScript5=function(e){">"===e||de(e)?(this._special=le,this._state=d,this._sectionStart=this._index-6,this._index--):this._state=u},ge.prototype._stateBeforeStyle1=me("Y",X),ge.prototype._stateBeforeStyle2=me("L",J),ge.prototype._stateBeforeStyle3=me("E",Q),ge.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||de(e))&&(this._special=he),this._state=l,this._index--},ge.prototype._stateAfterStyle1=pe("Y",te,u),ge.prototype._stateAfterStyle2=pe("L",re,u),ge.prototype._stateAfterStyle3=pe("E",ne,u),ge.prototype._stateAfterStyle4=function(e){">"===e||de(e)?(this._special=le,this._state=d,this._sectionStart=this._index-5,this._index--):this._state=u},ge.prototype._stateBeforeEntity=pe("#",oe,ae),ge.prototype._stateBeforeNumericEntity=pe("X",ue,se),ge.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(t=6);t>=2;){var r=this._buffer.substr(e,t);if(o.hasOwnProperty(r))return this._emitPartial(o[r]),void(this._sectionStart+=t+1);t--}},ge.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==u?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},ge.prototype._decodeNumericEntity=function(e,t){var r=this._sectionStart+e;if(r!==this._index){var i=this._buffer.substring(r,this._index),o=parseInt(i,t);this._emitPartial(n(o)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},ge.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},ge.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},ge.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===u?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},ge.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},ge.prototype._parse=function(){for(;this._index=55296&&e<=57343||e>1114111)return"�";e in n&&(e=n[e]);var t="";e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e);return t+=String.fromCharCode(e)}},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t,r){"use strict";var n=r(60),i=/\s+/g,o=r(245),a=r(549);function s(e,t,r){"object"==typeof e?(r=t,t=e,e=null):"function"==typeof t&&(r=t,t=u),this._callback=e,this._options=t||u,this._elementCB=r,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var u={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};s.prototype.onparserinit=function(e){this._parser=e},s.prototype.onreset=function(){s.call(this,this._callback,this._options,this._elementCB)},s.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},s.prototype._handleCallback=s.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},s.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&e&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},s.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;for(var r in t="tag"===e.type?Object.create(a):Object.create(o),e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},s.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],r=t?t.children:this.dom,n=r[r.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),n?(e.prev=n,n.next=e):e.prev=null,r.push(e),e.parent=t||null},s.prototype.onopentag=function(e,t){var r={type:"script"===e?n.Script:"style"===e?n.Style:n.Tag,name:e,attribs:t,children:[]},i=this._createDomElement(r);this._addDomElement(i),this._tagStack.push(i)},s.prototype.ontext=function(e){var t,r=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===n.Text)r?t.data=(t.data+e).replace(i," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===n.Text)r?t.data=(t.data+e).replace(i," "):t.data+=e;else{r&&(e=e.replace(i," "));var o=this._createDomElement({data:e,type:n.Text});this._addDomElement(o)}},s.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===n.Comment)t.data+=e;else{var r={data:e,type:n.Comment},i=this._createDomElement(r);this._addDomElement(i),this._tagStack.push(i)}},s.prototype.oncdatastart=function(){var e={children:[{data:"",type:n.Text}],type:n.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},s.prototype.oncommentend=s.prototype.oncdataend=function(){this._tagStack.pop()},s.prototype.onprocessinginstruction=function(e,t){var r=this._createDomElement({name:e,data:t,type:n.Directive});this._addDomElement(r)},e.exports=s},function(e,t,r){"use strict";var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return o[this.type]||o.element}},i={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},o={element:1,text:3,cdata:4,comment:8};Object.keys(i).forEach(function(e){var t=i[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,r){"use strict";e.exports=a;var n=r(240),i=r(561).Writable,o=r(85).StringDecoder,Buffer=r(0).Buffer;function a(e,t){var r=this._parser=new n(e,t),a=this._decoder=new o;i.call(this,{decodeStrings:!1}),this.once("finish",function(){r.end(a.end())})}r(3)(a,i),a.prototype._write=function(e,t,r){e instanceof Buffer&&(e=this._decoder.write(e)),this._parser.write(e),r()}},function(e,t,r){"use strict";var n=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s=/^(?:0|[1-9]\d*)$/;var u=Object.prototype,c=u.hasOwnProperty,l=u.toString,f=u.propertyIsEnumerable,h=Math.max;function d(e,t){var r=b(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&y(e)}(e)&&c.call(e,"callee")&&(!f.call(e,"callee")||l.call(e)==i)}(e)?function(e,t){for(var r=-1,n=Array(e);++r-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=_(e)?l.call(e):"";return t==o||t==a}(e)}function _(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var w,k,S,x=(w=function(e,t){!function(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=w.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!_(r))return!1;var n=typeof t;return!!("number"==n?y(r)&&g(t,r.length):"string"==n&&t in r)&&v(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r-1&&e%1==0&&e-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=S(e)?f.call(e):"";return t==o||t==a}(e)}function S(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var x,E=(x=function(e,t,r,n){!function(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=x.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!S(r))return!1;var n=typeof t;return!!("number"==n?k(r)&&y(t,r.length):"string"==n&&t in r)&&_(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r=0&&e(t)}},not:function(e,t){var r=t.name,n=t.value;return""===n?function(t){return!!o(t,r)&&e(t)}:t.ignoreCase?(n=n.toLowerCase(),function(t){var i=o(t,r);return null!=i&&i.toLowerCase()!==n&&e(t)}):function(t){return o(t,r)!==n&&e(t)}}};e.exports={compile:function(e,t,r){if(r&&r.strict&&(t.ignoreCase||"not"===t.action))throw SyntaxError("Unsupported attribute selector");return u[t.action](e,t)},rules:u}},function(e){e.exports={universal:50,tag:30,attribute:1,pseudo:0,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containsValidProofStatement=function(e,t=null){if(!t)return!1;if(e=e.toLowerCase(),t.split(".").length<2)throw new Error("Please provide the fully qualified Blockstack name.");let r=null;t.endsWith(".id")&&(r=t.split(".id")[0]);const n=null!=r?[`verifying myself: my bitcoin username is +${r}`,`verifying myself: my bitcoin username is ${r}`,`verifying myself: my openname is ${r}`,`verifying that +${r} is my bitcoin username`,`verifying that ${r} is my bitcoin username`,`verifying that ${r} is my openname`,`verifying that +${r} is my openname`,`verifying i am +${r} on my passcard`,`verifying that +${r} is my blockchain id`,`verifying that "${t}" is my blockstack id`,`verifying that ${t} is my blockstack id`,`verifying that "${t}" is my blockstack id`]:[`verifying that "${t}" is my blockstack id`,`verifying that ${t} is my blockstack id`,`verifying that "${t}" is my blockstack id`];for(let t=0;t0&&e.auth[0]&&e.auth[0].publicKeychain&&i.push({"@type":"Account",role:"key",service:"bip32",identifier:e.auth[0].publicKeychain}),e.pgp&&e.pgp.url&&i.push({"@type":"Account",role:"key",service:"pgp",identifier:e.pgp.fingerprint,contentUrl:e.pgp.url}),t.account=i}return t}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(38)),i=e(r(7)),o=r(150),a=r(39);function s(e){return"number"==typeof e?{units:"BTC",amount:new i.default(String(e))}:{units:e.units,amount:e.amount}}function u(){const e=new n.default.TransactionBuilder(a.config.network.layer1);return e.setVersion(1),e}function c(e){const t=`${a.config.network.MAGIC_BYTES}${e}`;if(3!==t.length)throw new Error("Runtime error: invalid MAGIC_BYTES");return t}function l(e,t,r=null,i=null){let a;if(i&&!r&&(r="0000000000000000000000000000000000000000"),r){if(40!==r.length)throw new Error("Value hash length incorrect. Expecting 20-bytes, hex-encoded");if(i&&16!==i.length)throw new Error("Burn field length incorrect. Expecting 8-bytes, hex-encoded");const t=i?65:57;(a=Buffer.alloc(t,0)).write(e,0,37,"ascii"),a.write(r,37,20,"hex"),i&&a.write(i,57,8,"hex")}else a=Buffer.from(e,"ascii");const s=Buffer.concat([Buffer.from(c(":"),"ascii"),a]),l=n.default.payments.embed({data:[s]}).output,f=u();return f.addOutput(l,0),f.addOutput(t,o.DUST_MINIMUM),f.buildIncomplete()}t.BlockstackNamespace=class{constructor(e){if(e.length>19)throw new Error("Namespace ID too long (19 chars max)");if(!e.match("[0123456789abcdefghijklmnopqrstuvwxyz_-]+"))throw new Error("Namespace ID can only use characters 0123456789abcdefghijklmnopqrstuvwxyz-_");this.namespaceID=e,this.version=-1,this.lifetime=-1,this.coeff=-1,this.base=-1,this.buckets=[-1],this.nonalphaDiscount=-1,this.noVowelDiscount=-1}check(){try{return this.setVersion(this.version),this.setLifetime(this.lifetime),this.setCoeff(this.coeff),this.setBase(this.base),this.setBuckets(this.buckets),this.setNonalphaDiscount(this.nonalphaDiscount),this.setNoVowelDiscount(this.noVowelDiscount),!0}catch(e){return!1}}setVersion(e){if(e<0||e>Math.pow(2,16)-1)throw new Error("Invalid version: must be a 16-bit number");this.version=e}setLifetime(e){if(e<0||e>Math.pow(2,32)-1)throw new Error("Invalid lifetime: must be a 32-bit number");this.lifetime=e}setCoeff(e){if(e<0||e>255)throw new Error("Invalid coeff: must be an 8-bit number");this.coeff=e}setBase(e){if(e<0||e>255)throw new Error("Invalid base: must be an 8-bit number");this.base=e}setBuckets(e){if(16!==e.length)throw new Error("Invalid buckets: must have 16 entries");for(let t=0;t15)throw new Error("Invalid buckets: must be 4-bit numbers");this.buckets=e.slice(0)}setNonalphaDiscount(e){if(e<=0||e>15)throw new Error("Invalid nonalphaDiscount: must be a positive 4-bit number");this.nonalphaDiscount=e}setNoVowelDiscount(e){if(e<=0||e>15)throw new Error("Invalid noVowelDiscount: must be a positive 4-bit number");this.noVowelDiscount=e}toHexPayload(){return`00000000${this.lifetime.toString(16)}`.slice(-8)+`00${this.coeff.toString(16)}`.slice(-2)+`00${this.base.toString(16)}`.slice(-2)+this.buckets.map(e=>e.toString(16)).reduce((e,t)=>e+t,"")+(this.nonalphaDiscount.toString(16)+this.noVowelDiscount.toString(16))+`0000${this.version.toString(16)}`.slice(-4)+Buffer.from(this.namespaceID).toString("hex")}},t.makePreorderSkeleton=function(e,t,r,i,l,f=null){const h=s(l),d=a.config.network,p=[Buffer.from(o.decodeB40(e),"hex"),n.default.address.toOutputScript(r,d.layer1)];if(f){const e=Buffer.from(f,"ascii");p.push(e)}const m=Buffer.concat(p),g=o.hash160(m),v="BTC"===h.units?39:66,b=Buffer.alloc(v);if(b.write(c("?"),0,3,"ascii"),g.copy(b,3),b.write(t,23,16,"hex"),"BTC"!==h.units){const t=h.amount.toString(16,2);if(t.length>16)throw new Error(`Cannot preorder '${e}': cannot fit price into 8 bytes`);const r=`0000000000000000${t}`.slice(-16);b.write(r,39,8,"hex"),b.write(h.units,47,h.units.length,"ascii")}const y=n.default.payments.embed({data:[b]}).output,_=u();if(_.addOutput(y,0),_.addOutput(r,o.DUST_MINIMUM),"BTC"===h.units){const e=h.amount.toNumber();_.addOutput(i,e)}else _.addOutput(i,o.DUST_MINIMUM);return _.buildIncomplete()},t.makeRegisterSkeleton=l,t.makeRenewalSkeleton=function(e,t,r,i,u,c=null){const f=s(u),h=a.config.network,d="BTC"===f.units?null:f.amount,p="BTC"===f.units?f.amount.toNumber():o.DUST_MINIMUM;let m=null;if(d){const t=d.toString(16,2);if(t.length>16)throw new Error(`Cannot renew '${e}': cannot fit price into 8 bytes`);m=`0000000000000000${t}`.slice(-16)}const g=l(e,t,c,m),v=n.default.TransactionBuilder.fromTransaction(g,h.layer1);return v.addOutput(r,o.DUST_MINIMUM),v.addOutput(i,p),v.buildIncomplete()},t.makeTransferSkeleton=function(e,t,r,i=!1){const a=Buffer.alloc(36);let s="~";i&&(s=">"),a.write(c(">"),0,3,"ascii"),a.write(s,3,1,"ascii"),o.hash128(Buffer.from(e,"ascii")).copy(a,4),a.write(t,20,16,"hex");const l=n.default.payments.embed({data:[a]}).output,f=u();return f.addOutput(l,0),f.addOutput(r,o.DUST_MINIMUM),f.buildIncomplete()},t.makeUpdateSkeleton=function(e,t,r){const i=Buffer.alloc(39),a=Buffer.from(e,"ascii"),s=Buffer.from(t,"ascii"),l=o.hash128(Buffer.concat([a,s]));i.write(c("+"),0,3,"ascii"),l.copy(i,3),i.write(r,19,20,"hex");const f=n.default.payments.embed({data:[i]}).output,h=u();return h.addOutput(f,0),h.buildIncomplete()},t.makeRevokeSkeleton=function(e){const t=Buffer.alloc(3),r=Buffer.from(e,"ascii");t.write(c("~"),0,3,"ascii");const i=Buffer.concat([t,r]),o=n.default.payments.embed({data:[i]}).output,a=u();return a.addOutput(o,0),a.buildIncomplete()},t.makeNamespacePreorderSkeleton=function(e,t,r,i,l){const f=s(l);if("BTC"!==f.units&&"STACKS"!==f.units)throw new Error(`Invalid burnUnits ${f.units}`);const h=a.config.network,d=h.getDefaultBurnAddress(),p=[Buffer.from(o.decodeB40(e),"hex"),n.default.address.toOutputScript(r,h.layer1),Buffer.from(i,"ascii")],m=Buffer.concat(p),g=o.hash160(m);let v=o.DUST_MINIMUM,b=39;"STACKS"===f.units?b=47:v=f.amount.toNumber();const y=Buffer.alloc(b);if(y.write(c("*"),0,3,"ascii"),g.copy(y,3),y.write(t,23,16,"hex"),"STACKS"===f.units){const e=`0000000000000000${f.amount.toString(16,2)}`.slice(-16);y.write(e,39,8,"hex")}const _=n.default.payments.embed({data:[y]}).output,w=u();return w.addOutput(_,0),w.addOutput(r,o.DUST_MINIMUM),w.addOutput(d,v),w.buildIncomplete()},t.makeNamespaceRevealSkeleton=function(e,t){const r=e.toHexPayload(),i=Buffer.alloc(3+r.length/2);i.write(c("&"),0,3,"ascii"),i.write(r,3,r.length/2,"hex");const a=n.default.payments.embed({data:[i]}).output,s=u();return s.addOutput(a,0),s.addOutput(t,o.DUST_MINIMUM),s.buildIncomplete()},t.makeNamespaceReadySkeleton=function(e){const t=Buffer.alloc(3+e.length+1);t.write(c("!"),0,3,"ascii"),t.write(`.${e}`,3,e.length+1,"ascii");const r=n.default.payments.embed({data:[t]}).output,i=u();return i.addOutput(r,0),i.buildIncomplete()},t.makeNameImportSkeleton=function(e,t,r){if(40!==r.length)throw new Error("Invalid zonefile hash: must be 20 bytes hex-encoded");const i=a.config.network,s=Buffer.alloc(3+e.length);s.write(c(";"),0,3,"ascii"),s.write(e,3,e.length,"ascii");const l=n.default.payments.embed({data:[s]}).output,f=u(),h=n.default.address.toBase58Check(Buffer.from(r,"hex"),i.layer1.pubKeyHash);return f.addOutput(l,0),f.addOutput(t,o.DUST_MINIMUM),f.addOutput(h,o.DUST_MINIMUM),f.buildIncomplete()},t.makeAnnounceSkeleton=function(e){if(40!==e.length)throw new Error("Invalid message hash: must be 20 bytes hex-encoded");const t=Buffer.alloc(3+e.length/2);t.write(c("#"),0,3,"ascii"),t.write(e,3,e.length/2,"hex");const r=n.default.payments.embed({data:[t]}).output,i=u();return i.addOutput(r,0),i.buildIncomplete()},t.makeTokenTransferSkeleton=function(e,t,r,i,a){if(a.length>34)throw new Error("Invalid scratch area: must be no more than 34 bytes");const s=Buffer.alloc(46+a.length),l=`00000000000000000000000000000000000000${Buffer.from(r).toString("hex")}`.slice(-38),f=i.toString(16,2);if(f.length>16)throw new Error(`Cannot send tokens: cannot fit ${i.toString()} into 8 bytes`);const h=`0000000000000000${f}`.slice(-16);s.write(c("$"),0,3,"ascii"),s.write(t,3,t.length/2,"hex"),s.write(l,19,l.length/2,"hex"),s.write(h,38,h.length/2,"hex"),s.write(a,46,a.length,"ascii");const d=n.default.payments.embed({data:[s]}).output,p=u();return p.addOutput(d,0),p.addOutput(e,o.DUST_MINIMUM),p.buildIncomplete()}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(26);class i{constructor(e){this.ecPair=e}static fromHexString(e){return new i(n.hexStringToECPair(e))}signerVersion(){return 1}getAddress(){return Promise.resolve().then(()=>n.ecPairToAddress(this.ecPair))}signTransaction(e,t){return Promise.resolve().then(()=>{e.sign(t,this.ecPair)})}}t.PubkeyHashSigner=i},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(21),i=r(86),o=i.pbkdf2Sync,a=i.pbkdf2,s=r(28),u=r(601),c=r(602),l=r(603),f=r(604),h=r(605),d=r(606),p=r(607),m=r(608),g=r(609),v=f,b="Invalid mnemonic",y="Invalid entropy",_="Invalid mnemonic checksum";function w(e,t,r){for(;e.length32)throw new Error(y);if(s.length%4!=0)throw new Error(y);var c=Buffer.from(s);if(x(c)!==a)throw new Error(_);return c.toString("hex")}function T(e,t){if(Buffer.isBuffer(e)||(e=Buffer.from(e,"hex")),t=t||v,e.length<16)throw new TypeError(y);if(e.length>32)throw new TypeError(y);if(e.length%4!=0)throw new TypeError(y);var r=(S([].slice.call(e))+x(e)).match(/(.{1,11})/g).map(function(e){var r=k(e);return t[r]});return t===p?r.join(" "):r.join(" ")}e.exports={mnemonicToSeed:A,mnemonicToSeedAsync:O,mnemonicToSeedHex:function(e,t){return A(e,t).toString("hex")},mnemonicToSeedHexAsync:function(e,t){return O(e,t).then(function(e){return e.toString("hex")})},mnemonicToEntropy:P,entropyToMnemonic:T,generateMnemonic:function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(y);return T((t=t||s)(e/8),r)},validateMnemonic:function(e,t){try{P(e,t)}catch(e){return!1}return!0},wordlists:{EN:f,JA:p,chinese_simplified:c,chinese_traditional:l,english:f,french:h,italian:d,japanese:p,korean:m,spanish:g}}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(14)),i=e(r(256)),o=e(r(610));t.encryptMnemonic=function(e,t){return Promise.resolve().then(()=>{if(!i.default.validateMnemonic(e))throw new Error("Not a valid bip39 nmemonic");const r=Buffer.from(i.default.mnemonicToEntropy(e),"hex"),o=n.default.randomBytes(16),a=n.default.pbkdf2Sync(t,o,1e5,48,"sha512"),s=a.slice(0,16),u=a.slice(16,32),c=a.slice(32,48),l=n.default.createCipheriv("aes-128-cbc",s,c);let f=l.update(r).toString("hex");f+=l.final().toString("hex");const h=Buffer.concat([o,Buffer.from(f,"hex")]),d=n.default.createHmac("sha256",u);d.write(h);const p=d.digest();return Buffer.concat([o,p,Buffer.from(f,"hex")])})};class a extends Error{}t.decryptMnemonic=function(e,t){const r=Buffer.isBuffer(e)?e:Buffer.from(e,"hex");return function(e,t){return Promise.resolve().then(()=>{const r=e.slice(0,16),o=e.slice(16,48),s=e.slice(48),u=Buffer.concat([r,s]),c=n.default.pbkdf2Sync(t,r,1e5,48,"sha512"),l=c.slice(0,16),f=c.slice(16,32),h=c.slice(32,48),d=n.default.createDecipheriv("aes-128-cbc",l,h);let p=d.update(s).toString("hex");p+=d.final().toString("hex");const m=n.default.createHmac("sha256",f);m.write(u);const g=m.digest();if(n.default.createHash("sha256").update(o).digest().toString("hex")!==n.default.createHash("sha256").update(g).digest().toString("hex"))throw new a("Wrong password (HMAC mismatch)");const v=i.default.entropyToMnemonic(p);if(!i.default.validateMnemonic(v))throw new a("Wrong password (invalid plaintext)");return v})}(r,t).catch(e=>{if(e instanceof a)throw e;return function(e,t){return new Promise((r,n)=>{o.default.decrypt({key:Buffer.from(t),data:e},(e,t)=>{e?n(e):r(t)})})}(r,t).then(e=>e.toString())})}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c,l,f,h,d,p,m,g,v,b,y,_,w,k={}.hasOwnProperty;g=r(17),h=r(13).WordArray,y=r(80),e=r(152).AES,l=r(153).TwoFish,p=r(106),d=(w=r(107)).XOR,o=w.Concat,r(53).SHA512,u=r(156).PBKDF2,c=r(260).Scrypt,_=r(22),b=r(261),v=r(262).make_esc,s=r(62).HMAC_SHA256,f={1:{header:[479516638,1],salt_size:8,xsalsa20_rev:!0,kdf:{klass:u,opts:{c:1024,klass:d}},hmac_key_size:96,version:1},2:{header:[479516638,2],salt_size:16,xsalsa20_rev:!0,kdf:{klass:c,opts:{c:64,klass:d,N:12,r:8,p:1}},hmac_key_size:96,version:2},3:{header:[479516638,3],salt_size:16,xsalsa20_rev:!1,kdf:{klass:c,opts:{c:1,klass:s,N:15,r:8,p:1}},hmac_key_size:96,version:3}},t.CURRENT_VERSION=i=3,n=function(){function t(e){var t,r;if(t=e.key,r=e.version,this.version=f[null!=r?r:i],null==this.version)throw new Error("unknown version: "+r);this.set_key(t),this.derived_keys={}}return t.prototype.kdf=function(t,r){var n,i,o,a,s,u,c,f,d,p,m,v,b,_,w,k,S;w=g.findDeferral(arguments),b=t.salt,a=t.extra_keymaterial,m=t.progress_hook,(S=this,function(e){k=new g.Deferrals(e,{parent:w,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.kdf"}),S._check_scrubbed(S.key,"in KDF",r,k.defer({lineno:97})),k._fulfill()})(function(t){return function(){_=b.to_hex(),c=t.key.clone(),k=new g.Deferrals(function(){!function(r){if(null!=(f=t.derived_keys[_]))return r();for(u in t._kdf=new t.version.kdf.klass(t.version.kdf.opts),d={hmac:t.version.hmac_key_size,aes:e.keySize,twofish:l.keySize,salsa20:y.Salsa20.keySize},p=["hmac","aes","twofish","salsa20"],i=a||0,d)i+=d[u];n={dkLen:i,key:c,progress_hook:m,salt:b},function(e){k=new g.Deferrals(e,{parent:w,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.kdf"}),t._kdf.run(n,k.defer({assign_fn:function(){return v=arguments[0]},lineno:124})),k._fulfill()}(function(){var e,n;for(f={},s=0,e=0,n=p.length;e")+" ("+e[n.filename]+":"+(e[n.lineno]+1)+")"},c=function(e){return"undefined"!=typeof console&&null!==console?console.error("ICED warning: "+e):void 0},t.trampoline=u=function(t){return s(500)?null!=(null!=e?e.nextTick:void 0)?e.nextTick(t):setTimeout(t):t()},t.Deferrals=function(){function e(e,t){this.trace=t,this.continuation=e,this.count=1,this.ret=null}return e.prototype._call=function(e){var t;return this.continuation?(l=e,t=this.continuation,this.continuation=null,t(this.ret)):c("Entered dead await at "+h(e))},e.prototype._fulfill=function(e,t){if(!(--this.count>0))return u((r=this,function(){return r._call(t)}));var r},e.prototype.defer=function(e){return this.count++,this,o(this,e,null,this.trace)},e}(),t.findDeferral=function(e){var t,r,i;for(r=0,i=e.length;ro;n=0<=o?++i:--i)s(r,e,n,1),this.salsa20_8(r),a(t,r,n,0,1);for(n=0;n(n=4294967295)?new Error("asked for too much data"):this.r*this.p>=1<<30?new Error("r & p are too big"):(this.r>n/128/this.p||this.r>n/256||this.N>n/128/this.r)&&new Error("N is too big"),a=new Int32Array(64*this.r),i=new Int32Array(32*this.r*this.N),l=function(e){return e.what+=" (pass 1)","function"==typeof p?p(e):void 0},(w=this,function(e){b=new f.Deferrals(e,{parent:v,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),w.pbkdf2({key:c.clone(),salt:g,dkLen:128*w.r*w.p,c:w.c0,progress_hook:l},b.defer({assign_fn:function(){return r=arguments[0]},lineno:214})),b._fulfill()})(function(e){return function(){var n;r=new Int32Array(r.words),m(r),l=function(t){return function(r){return"function"==typeof p?p({i:r+t*e.N*2,what:"scrypt",total:e.p*e.N*2}):void 0}},u=0,0,y=e.p,_=y>0,(n=function(t){var o,s;if(o=t,s=function(){return f.trampoline(function(){return _?u+=1:u-=1,n(t)})},!0===_&&u>=e.p||!1===_&&u<=e.p)return o();!function(t){b=new f.Deferrals(t,{parent:v,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),e.smix({B:r.subarray(32*e.r*u),V:i,XY:a,progress_hook:l(u)},b.defer({lineno:221})),b._fulfill()}(s)})(function(){m(r),l=function(e){return e.what+=" (pass 2)","function"==typeof p?p(e):void 0},b=new f.Deferrals(function(){return d(a),d(i),d(r),c.scrub(),t(h)},{parent:v,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),e.pbkdf2({key:c,salt:o.from_i32a(r),dkLen:s,c:e.c1,progress_hook:l},b.defer({assign_fn:function(){return h=arguments[0]},lineno:229})),b._fulfill()})}}(this))},t}(),p=function(e,t){var r,n,o,a,s,u,c,l,h,d,p,m,g,v,b;v=f.findDeferral(arguments),c=e.key,m=e.salt,p=e.r,r=e.N,h=e.p,o=e.c0,a=e.c1,n=e.c,l=e.klass,d=e.progress_hook,s=e.dkLen,u=new i({r:p,N:r,p:h,c:n,c0:o,c1:a,klass:l}),function(e){b=new f.Deferrals(e,{parent:v,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced"}),u.run({key:c,salt:m,progress_hook:d,dkLen:s},b.defer({assign_fn:function(){return g=arguments[0]},lineno:259})),b._fulfill()}(function(){return t(g)})},t.Scrypt=i,t.scrypt=p,t.v_endian_reverse=m}).call(this)},function(e,t,r){"use strict";(function(Buffer){(function(){var e,n,i,o,a,s,u,c,l,f,h,d,p,m,g,v,b;if(u=r(17),function(){},l=r(612),e=r(614).ADRBG,i=r(13).WordArray,o=r(107).XOR,d=r(22),p=null,a=function(e){var t;return t=new Uint8Array(e),p(t),new Buffer(t)},null!=(p=null!=(c="undefined"!=typeof window&&null!==window&&null!=(v=window.crypto)?v.getRandomValues:void 0)?c.bind(window.crypto):null!=(c="undefined"!=typeof window&&null!==window&&null!=(b=window.msCrypto)?b.getRandomValues:void 0)?c.bind(window.msCrypto):null))m=a;else try{null!=(h=r(14).rng)&&(m=h)}catch(e){e}f=function(e){if(null==m)throw new Error('No rng found; tried requiring "crypto" and window.crypto');return m(e)},n=function(){function t(){var t;this.meg=new l.Generator,this.adrbg=new e((t=this,function(e,r){return t.gen_seed(e,r)}),o.sign)}return t.prototype.now_to_buffer=function(){var e,t,r,n;return r=(t=Date.now())%1e3,n=Math.floor(t/1e3),(e=new Buffer(8)).writeUInt32BE(n,0),e.writeUInt32BE(r,4),e},t.prototype.gen_seed=function(e,t){var r,n,o,a,s,c,l,h,p;l=u.findDeferral(arguments),a=e/8,(n=[]).push(this.now_to_buffer()),(p=this,function(t){h=new u.Deferrals(t,{parent:l,filename:"/Users/max/src/keybase/triplesec/src/prng.iced",funcname:"PRNG.gen_seed"}),p.meg.generate(e,h.defer({assign_fn:function(){return c=arguments[0]},lineno:83})),h._fulfill()})(function(e){return function(){var u,l;for(n.push(e.now_to_buffer()),n.push(new Buffer(c)),n.push(f(a)),n.push(e.now_to_buffer()),o=Buffer.concat(n),s=i.from_buffer(o),d.scrub_buffer(o),u=0,l=n.length;u=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){u.headers[e]={}}),n.forEach(["post","put","patch"],function(e){u.headers[e]=n.merge(o)}),e.exports=u}).call(this,r(20))},function(e,t,r){"use strict";var n=r(18),i=r(636),o=r(264),a=r(638),s=r(639),u=r(268);e.exports=function(e){return new Promise(function(t,c){var l=e.data,f=e.headers;n.isFormData(l)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",p=e.auth.password||"";f.Authorization="Basic "+btoa(d+":"+p)}if(h.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,c,n),h=null}},h.onabort=function(){h&&(c(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){c(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var m=r(640),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in h&&n.forEach(f,function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)}),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),c(e),h=null)}),void 0===l&&(l=null),h.send(l)})}},function(e,t,r){"use strict";var n=r(637);e.exports=function(e,t,r,i,o){var a=new Error(e);return n(a,t,r,i,o)}},function(e,t,r){"use strict";var n=r(18);e.exports=function(e,t){t=t||{};var r={};return n.forEach(["url","method","params","data"],function(e){void 0!==t[e]&&(r[e]=t[e])}),n.forEach(["headers","auth","proxy"],function(i){n.isObject(t[i])?r[i]=n.deepMerge(e[i],t[i]):void 0!==t[i]?r[i]=t[i]:n.isObject(e[i])?r[i]=n.deepMerge(e[i]):void 0!==e[i]&&(r[i]=e[i])}),n.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(n){void 0!==t[n]?r[n]=t[n]:void 0!==e[n]&&(r[n]=e[n])}),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){"use strict";e.exports=r(82)},function(e,t,r){"use strict";var n=r(11),i=r(45),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){for(var t,r,i,a,s,u,c,l=[],f=0,h=e.length,d=h,p="string"!==n.getTypeOf(e);f>2,s=(3&t)<<4|r>>4,u=d>1?(15&r)<<2|i>>6:64,c=d>2?63&i:64,l.push(o.charAt(a)+o.charAt(s)+o.charAt(u)+o.charAt(c));return l.join("")},t.decode=function(e){var t,r,n,a,s,u,c=0,l=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&h--,e.charAt(e.length-2)===o.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);c>4,r=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(u=o.indexOf(e.charAt(c++))),f[l++]=t,64!==s&&(f[l++]=r),64!==u&&(f[l++]=n);return f}},function(e,t,r){"use strict";(function(Buffer){var t=r(11),n=r(657),i=r(23),o=r(272),a=r(45),s=r(81),u=null;if(a.nodestream)try{u=r(658)}catch(e){}function c(e,r){return new s.Promise(function(n,i){var a=[],s=e._internalType,u=e._outputType,c=e._mimeType;e.on("data",function(e,t){a.push(e),r&&r(t)}).on("error",function(e){a=[],i(e)}).on("end",function(){try{var e=function(e,r,n){switch(e){case"blob":return t.newBlob(t.transformTo("arraybuffer",r),n);case"base64":return o.encode(r);default:return t.transformTo(e,r)}}(u,function(e,t){var r,n=0,i=null,o=0;for(r=0;r=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},function(e,t,r){"use strict";var n=r(11),i=r(23);function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},e.exports=o},function(e,t,r){"use strict";var n=r(23),i=r(159);function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r(11).inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},e.exports=o},function(e,t,r){"use strict";var n=r(23);t.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},t.DEFLATE=r(661)},function(e,t,r){"use strict";e.exports=function(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(e,t,r){"use strict";var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t,r,i){var o=n,a=i+r;e^=-1;for(var s=i;s>>8^o[255&(e^t[s])];return-1^e}},function(e,t,r){"use strict";var n=r(46),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},t.buf2binstring=function(e){return u(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r4)c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r1?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return u(c,n)},t.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+a[e[r]]>t?r:t}},function(e,t,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,r){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,r){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},function(e,t,r){"use strict";var n=r(11),i=r(45),o=r(286),a=r(675),s=r(676),u=r(288);e.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new u(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new a(e)}},function(e,t,r){"use strict";var n=r(287);function i(e){n.call(this,e);for(var t=0;t=0;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,r){"use strict";var n=r(11);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},e.exports=i},function(e,t,r){"use strict";var n=r(286);function i(e){n.call(this,e)}r(11).inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,r){"use strict"; /** * vee-validate v2.2.11 * (c) 2019 Abdelrahman Awad @@ -38,7 +38,7 @@ var n;"undefined"!=typeof self&&self,n=function(e){return function(e){var t={};f * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",h=1,d=2,p=4,m=1,g=2,v=1,b=2,y=4,_=8,w=16,k=32,S=64,x=128,E=256,A=512,O=30,P="...",T=800,C=16,j=1,I=2,M=1/0,D=9007199254740991,B=1.7976931348623157e308,N=NaN,z=4294967295,R=z-1,F=z>>>1,U=[["ary",x],["bind",v],["bindKey",b],["curry",_],["curryRight",w],["flip",A],["partial",k],["partialRight",S],["rearg",E]],$="[object Arguments]",L="[object Array]",q="[object AsyncFunction]",H="[object Boolean]",V="[object Date]",K="[object DOMException]",W="[object Error]",G="[object Function]",Z="[object GeneratorFunction]",Y="[object Map]",X="[object Number]",J="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",fe="[object Float64Array]",he="[object Int8Array]",de="[object Int16Array]",pe="[object Int32Array]",me="[object Uint8Array]",ge="[object Uint8ClampedArray]",ve="[object Uint16Array]",be="[object Uint32Array]",ye=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,xe=RegExp(ke.source),Ee=RegExp(Se.source),Ae=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(Ie.source),De=/^\s+|\s+$/g,Be=/^\s+/,Ne=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Re=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$e=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,He=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+Je+"]",nt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:"+ot+"|"+at+")",dt="(?:"+ft+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",mt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ut,ct,lt].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),gt="(?:"+[it,ct,lt].join("|")+")"+mt,vt="(?:"+[ut+rt+"?",rt,ct,lt,et].join("|")+")",bt=RegExp("['’]","g"),yt=RegExp(rt,"g"),_t=RegExp(st+"(?="+st+")|"+vt+mt,"g"),wt=RegExp([ft+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+ht,"$"].join("|")+")",ft+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,gt].join("|"),"g"),kt=RegExp("[\\u200d\\ud800-\\udfff"+Je+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Et=-1,At={};At[le]=At[fe]=At[he]=At[de]=At[pe]=At[me]=At[ge]=At[ve]=At[be]=!0,At[$]=At[L]=At[ue]=At[H]=At[ce]=At[V]=At[W]=At[G]=At[Y]=At[X]=At[Q]=At[te]=At[re]=At[ne]=At[ae]=!1;var Ot={};Ot[$]=Ot[L]=Ot[ue]=Ot[ce]=Ot[H]=Ot[V]=Ot[le]=Ot[fe]=Ot[he]=Ot[de]=Ot[pe]=Ot[Y]=Ot[X]=Ot[Q]=Ot[te]=Ot[re]=Ot[ne]=Ot[ie]=Ot[me]=Ot[ge]=Ot[ve]=Ot[be]=!0,Ot[W]=Ot[G]=Ot[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Ct=parseInt,jt="object"==typeof e&&e&&e.Object===Object&&e,It="object"==typeof self&&self&&self.Object===Object&&self,Mt=jt||It||Function("return this")(),Dt=t&&!t.nodeType&&t,Bt=Dt&&"object"==typeof n&&n&&!n.nodeType&&n,Nt=Bt&&Bt.exports===Dt,zt=Nt&&jt.process,Rt=function(){try{var e=Bt&&Bt.require&&Bt.require("util").types;return e||zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Ft=Rt&&Rt.isArrayBuffer,Ut=Rt&&Rt.isDate,$t=Rt&&Rt.isMap,Lt=Rt&&Rt.isRegExp,qt=Rt&&Rt.isSet,Ht=Rt&&Rt.isTypedArray;function Vt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Kt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function Jt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function _r(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var wr=hr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kr=hr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Sr(e){return"\\"+Pt[e]}function xr(e){return kt.test(e)}function Er(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Or(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var Mr=function e(t){var r,n=(t=null==t?Mt:Mr.defaults(Mt.Object(),t,Mr.pick(Mt,xt))).Array,i=t.Date,Je=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,it=t.TypeError,ot=n.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ct=at.toString,lt=st.hasOwnProperty,ft=0,ht=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",dt=st.toString,pt=ct.call(tt),mt=Mt._,gt=rt("^"+ct.call(lt).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=Nt?t.Buffer:o,vt=t.Symbol,_t=t.Uint8Array,kt=Buffer?Buffer.allocUnsafe:o,Pt=Ar(tt.getPrototypeOf,tt),jt=tt.create,It=st.propertyIsEnumerable,Dt=ot.splice,Bt=vt?vt.isConcatSpreadable:o,zt=vt?vt.iterator:o,Rt=vt?vt.toStringTag:o,ir=function(){try{var e=Ro(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),hr=t.clearTimeout!==Mt.clearTimeout&&t.clearTimeout,Dr=i&&i.now!==Mt.Date.now&&i.now,Br=t.setTimeout!==Mt.setTimeout&&t.setTimeout,Nr=et.ceil,zr=et.floor,Rr=tt.getOwnPropertySymbols,Fr=Buffer?Buffer.isBuffer:o,Ur=t.isFinite,$r=ot.join,Lr=Ar(tt.keys,tt),qr=et.max,Hr=et.min,Vr=i.now,Kr=t.parseInt,Wr=et.random,Gr=ot.reverse,Zr=Ro(t,"DataView"),Yr=Ro(t,"Map"),Xr=Ro(t,"Promise"),Jr=Ro(t,"Set"),Qr=Ro(t,"WeakMap"),en=Ro(tt,"create"),tn=Qr&&new Qr,rn={},nn=la(Zr),on=la(Yr),an=la(Xr),sn=la(Jr),un=la(Qr),cn=vt?vt.prototype:o,ln=cn?cn.valueOf:o,fn=cn?cn.toString:o;function hn(e){if(Os(e)&&!gs(e)&&!(e instanceof gn)){if(e instanceof mn)return e;if(lt.call(e,"__wrapped__"))return fa(e)}return new mn(e)}var dn=function(){function e(){}return function(t){if(!As(t))return{};if(jt)return jt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function pn(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function vn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Dn(e,t,r,n,i,a){var s,u=t&h,c=t&d,l=t&p;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!As(e))return e;var f=gs(e);if(f){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&<.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return to(e,s)}else{var m=$o(e),g=m==G||m==Z;if(_s(e))return Zi(e,u);if(m==Q||m==$||g&&!i){if(s=c||g?{}:qo(e),!u)return c?function(e,t){return ro(e,Uo(e),t)}(e,function(e,t){return e&&ro(t,iu(t),e)}(s,e)):function(e,t){return ro(e,Fo(e),t)}(e,Cn(s,e))}else{if(!Ot[m])return i?e:{};s=function(e,t,r){var n,i=e.constructor;switch(t){case ue:return Yi(e);case H:case V:return new i(+e);case ce:return function(e,t){var r=t?Yi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case le:case fe:case he:case de:case pe:case me:case ge:case ve:case be:return Xi(e,r);case Y:return new i;case X:case ne:return new i(e);case te:return function(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new i;case ie:return n=e,ln?tt(ln.call(n)):{}}}(e,m,u)}}a||(a=new wn);var v=a.get(e);if(v)return v;if(a.set(e,s),Is(e))return e.forEach(function(n){s.add(Dn(n,t,r,n,e,a))}),s;if(Ps(e))return e.forEach(function(n,i){s.set(i,Dn(n,t,r,i,e,a))}),s;var b=f?o:(l?c?jo:Co:c?iu:nu)(e);return Wt(b||e,function(n,i){b&&(n=e[i=n]),On(s,i,Dn(n,t,r,i,e,a))}),s}function Bn(e,t,r){var n=r.length;if(null==e)return!n;for(e=tt(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Nn(e,t,r){if("function"!=typeof e)throw new it(u);return na(function(){e.apply(o,r)},t)}function zn(e,t,r,n){var i=-1,o=Xt,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;r&&(t=Qt(t,gr(r))),n?(o=Jt,s=!1):t.length>=a&&(o=br,s=!1,t=new _n(t));e:for(;++i-1},bn.prototype.set=function(e,t){var r=this.__data__,n=Pn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},yn.prototype.clear=function(){this.size=0,this.__data__={hash:new vn,map:new(Yr||bn),string:new vn}},yn.prototype.delete=function(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t},yn.prototype.get=function(e){return No(this,e).get(e)},yn.prototype.has=function(e){return No(this,e).has(e)},yn.prototype.set=function(e,t){var r=No(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},_n.prototype.add=_n.prototype.push=function(e){return this.__data__.set(e,c),this},_n.prototype.has=function(e){return this.__data__.has(e)},wn.prototype.clear=function(){this.__data__=new bn,this.size=0},wn.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},wn.prototype.get=function(e){return this.__data__.get(e)},wn.prototype.has=function(e){return this.__data__.has(e)},wn.prototype.set=function(e,t){var r=this.__data__;if(r instanceof bn){var n=r.__data__;if(!Yr||n.length0&&r(s)?t>1?qn(s,t-1,r,n,i):er(i,s):n||(i[i.length]=s)}return i}var Hn=ao(),Vn=ao(!0);function Kn(e,t){return e&&Hn(e,t,nu)}function Wn(e,t){return e&&Vn(e,t,nu)}function Gn(e,t){return Yt(t,function(t){return Ss(e[t])})}function Zn(e,t){for(var r=0,n=(t=Vi(t,e)).length;null!=e&&rt}function Qn(e,t){return null!=e&<.call(e,t)}function ei(e,t){return null!=e&&t in tt(e)}function ti(e,t,r){for(var i=r?Jt:Xt,a=e[0].length,s=e.length,u=s,c=n(s),l=1/0,f=[];u--;){var h=e[u];u&&t&&(h=Qt(h,gr(t))),l=Hr(h.length,l),c[u]=!r&&(t||a>=120&&h.length>=120)?new _n(u&&h):o}h=e[0];var d=-1,p=c[0];e:for(;++d=s)return u;var c=r[n];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,r)})}function vi(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Dt.call(s,u,1),Dt.call(e,u,1);return e}function yi(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Vo(i)?Dt.call(e,i,1):zi(e,i)}}return e}function _i(e,t){return e+zr(Wr()*(t-e+1))}function wi(e,t){var r="";if(!e||t<1||t>D)return r;do{t%2&&(r+=e),(t=zr(t/2))&&(e+=e)}while(t);return r}function ki(e,t){return ia(Qo(e,t,Tu),e+"")}function Si(e){return Sn(hu(e))}function xi(e,t){var r=hu(e);return sa(r,Mn(t,0,r.length))}function Ei(e,t,r,n){if(!As(e))return e;for(var i=-1,a=(t=Vi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!Ds(a)&&(r?a<=t:a=a){var l=t?null:ko(e);if(l)return Pr(l);s=!1,i=br,c=new _n}else c=t?[]:u;e:for(;++n=n?e:Ti(e,t,r)}var Gi=hr||function(e){return Mt.clearTimeout(e)};function Zi(e,t){if(t)return e.slice();var r=e.length,n=kt?kt(r):new e.constructor(r);return e.copy(n),n}function Yi(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Xi(e,t){var r=t?Yi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ji(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=Ds(e),s=t!==o,u=null===t,c=t==t,l=Ds(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||n&&s&&c||!r&&c||!i)return 1;if(!n&&!a&&!l&&e1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Ko(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++n-1?i[a?t[s]:s]:o}}function fo(e){return To(function(t){var r=t.length,n=r,i=mn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Mo(a))var s=new mn([],!0)}for(n=s?n:r;++n1&&_.reverse(),h&&lu))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var f=-1,h=!0,d=r&g?new _n:o;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Wt(U,function(r){var n="_."+r[0];t&r[1]&&!Xt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Re);return t?t[1].split(Fe):[]}(n),r)))}function aa(e){var t=0,r=0;return function(){var n=Vr(),i=C-(n-r);if(r=n,i>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(o,arguments)}}function sa(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,ja(e,r)});function Ra(e){var t=hn(e);return t.__chain__=!0,t}function Fa(e,t){return t(e)}var Ua=To(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return In(t,e)};return!(t>1||this.__actions__.length)&&n instanceof gn&&Vo(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:Fa,args:[i],thisArg:o}),new mn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var $a=no(function(e,t,r){lt.call(e,r)?++e[r]:jn(e,r,1)});var La=lo(ma),qa=lo(ga);function Ha(e,t){return(gs(e)?Wt:Rn)(e,Bo(t,3))}function Va(e,t){return(gs(e)?Gt:Fn)(e,Bo(t,3))}var Ka=no(function(e,t,r){lt.call(e,r)?e[r].push(t):jn(e,r,[t])});var Wa=ki(function(e,t,r){var i=-1,o="function"==typeof t,a=bs(e)?n(e.length):[];return Rn(e,function(e){a[++i]=o?Vt(t,e,r):ri(e,t,r)}),a}),Ga=no(function(e,t,r){jn(e,r,t)});function Za(e,t){return(gs(e)?Qt:fi)(e,Bo(t,3))}var Ya=no(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var Xa=ki(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Ko(e,t[0],t[1])?t=[]:r>2&&Ko(t[0],t[1],t[2])&&(t=[t[0]]),gi(e,qn(t,1),[])}),Ja=Dr||function(){return Mt.Date.now()};function Qa(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,xo(e,x,o,o,o,o,t)}function es(e,t){var r;if("function"!=typeof t)throw new it(u);return e=Us(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var ts=ki(function(e,t,r){var n=v;if(r.length){var i=Or(r,Do(ts));n|=k}return xo(e,n,t,r,i)}),rs=ki(function(e,t,r){var n=v|b;if(r.length){var i=Or(r,Do(rs));n|=k}return xo(t,n,e,r,i)});function ns(e,t,r){var n,i,a,s,c,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new it(u);function m(t){var r=n,a=i;return n=i=o,f=t,s=e.apply(a,r)}function g(e){var r=e-l;return l===o||r>=t||r<0||d&&e-f>=a}function v(){var e=Ja();if(g(e))return b(e);c=na(v,function(e){var r=t-(e-l);return d?Hr(r,a-(e-f)):r}(e))}function b(e){return c=o,p&&n?m(e):(n=i=o,s)}function y(){var e=Ja(),r=g(e);if(n=arguments,i=this,l=e,r){if(c===o)return function(e){return f=e,c=na(v,t),h?m(e):s}(l);if(d)return c=na(v,t),m(l)}return c===o&&(c=na(v,t)),s}return t=Ls(t)||0,As(r)&&(h=!!r.leading,a=(d="maxWait"in r)?qr(Ls(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){c!==o&&Gi(c),f=0,n=l=i=c=o},y.flush=function(){return c===o?s:b(Ja())},y}var is=ki(function(e,t){return Nn(e,1,t)}),os=ki(function(e,t,r){return Nn(e,Ls(t)||0,r)});function as(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(as.Cache||yn),r}function ss(e){if("function"!=typeof e)throw new it(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}as.Cache=yn;var us=Ki(function(e,t){var r=(t=1==t.length&&gs(t[0])?Qt(t[0],gr(Bo())):Qt(qn(t,1),gr(Bo()))).length;return ki(function(n){for(var i=-1,o=Hr(n.length,r);++i=t}),ms=ni(function(){return arguments}())?ni:function(e){return Os(e)&<.call(e,"callee")&&!It.call(e,"callee")},gs=n.isArray,vs=Ft?gr(Ft):function(e){return Os(e)&&Xn(e)==ue};function bs(e){return null!=e&&Es(e.length)&&!Ss(e)}function ys(e){return Os(e)&&bs(e)}var _s=Fr||Lu,ws=Ut?gr(Ut):function(e){return Os(e)&&Xn(e)==V};function ks(e){if(!Os(e))return!1;var t=Xn(e);return t==W||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!Cs(e)}function Ss(e){if(!As(e))return!1;var t=Xn(e);return t==G||t==Z||t==q||t==ee}function xs(e){return"number"==typeof e&&e==Us(e)}function Es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=D}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Os(e){return null!=e&&"object"==typeof e}var Ps=$t?gr($t):function(e){return Os(e)&&$o(e)==Y};function Ts(e){return"number"==typeof e||Os(e)&&Xn(e)==X}function Cs(e){if(!Os(e)||Xn(e)!=Q)return!1;var t=Pt(e);if(null===t)return!0;var r=lt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ct.call(r)==pt}var js=Lt?gr(Lt):function(e){return Os(e)&&Xn(e)==te};var Is=qt?gr(qt):function(e){return Os(e)&&$o(e)==re};function Ms(e){return"string"==typeof e||!gs(e)&&Os(e)&&Xn(e)==ne}function Ds(e){return"symbol"==typeof e||Os(e)&&Xn(e)==ie}var Bs=Ht?gr(Ht):function(e){return Os(e)&&Es(e.length)&&!!At[Xn(e)]};var Ns=yo(li),zs=yo(function(e,t){return e<=t});function Rs(e){if(!e)return[];if(bs(e))return Ms(e)?jr(e):to(e);if(zt&&e[zt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[zt]());var t=$o(e);return(t==Y?Er:t==re?Pr:hu)(e)}function Fs(e){return e?(e=Ls(e))===M||e===-M?(e<0?-1:1)*B:e==e?e:0:0===e?e:0}function Us(e){var t=Fs(e),r=t%1;return t==t?r?t-r:t:0}function $s(e){return e?Mn(Us(e),0,z):0}function Ls(e){if("number"==typeof e)return e;if(Ds(e))return N;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(De,"");var r=Ve.test(e);return r||We.test(e)?Ct(e.slice(2),r?2:8):He.test(e)?N:+e}function qs(e){return ro(e,iu(e))}function Hs(e){return null==e?"":Bi(e)}var Vs=io(function(e,t){if(Yo(t)||bs(t))ro(t,nu(t),e);else for(var r in t)lt.call(t,r)&&On(e,r,t[r])}),Ks=io(function(e,t){ro(t,iu(t),e)}),Ws=io(function(e,t,r,n){ro(t,iu(t),e,n)}),Gs=io(function(e,t,r,n){ro(t,nu(t),e,n)}),Zs=To(In);var Ys=ki(function(e,t){e=tt(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&Ko(t[0],t[1],i)&&(n=1);++r1),t}),ro(e,jo(e),r),n&&(r=Dn(r,h|d|p,Oo));for(var i=t.length;i--;)zi(r,t[i]);return r});var uu=To(function(e,t){return null==e?{}:function(e,t){return vi(e,t,function(t,r){return Qs(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Qt(jo(e),function(e){return[e]});return t=Bo(t),vi(e,r,function(e,r){return t(e,r[0])})}var lu=So(nu),fu=So(iu);function hu(e){return null==e?[]:vr(e,nu(e))}var du=uo(function(e,t,r){return t=t.toLowerCase(),e+(r?pu(t):t)});function pu(e){return ku(Hs(e).toLowerCase())}function mu(e){return(e=Hs(e))&&e.replace(Ze,wr).replace(yt,"")}var gu=uo(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=uo(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),bu=so("toLowerCase");var yu=uo(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var _u=uo(function(e,t,r){return e+(r?" ":"")+ku(t)});var wu=uo(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),ku=so("toUpperCase");function Su(e,t,r){return e=Hs(e),(t=r?o:t)===o?function(e){return St.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var xu=ki(function(e,t){try{return Vt(e,o,t)}catch(e){return ks(e)?e:new Je(e)}}),Eu=To(function(e,t){return Wt(t,function(t){t=ca(t),jn(e,t,ts(e[t],e))}),e});function Au(e){return function(){return e}}var Ou=fo(),Pu=fo(!0);function Tu(e){return e}function Cu(e){return si("function"==typeof e?e:Dn(e,h))}var ju=ki(function(e,t){return function(r){return ri(r,e,t)}}),Iu=ki(function(e,t){return function(r){return ri(e,r,t)}});function Mu(e,t,r){var n=nu(t),i=Gn(t,n);null!=r||As(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Gn(t,nu(t)));var o=!(As(r)&&"chain"in r&&!r.chain),a=Ss(e);return Wt(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=to(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})}),e}function Du(){}var Bu=go(Qt),Nu=go(Zt),zu=go(nr);function Ru(e){return Wo(e)?fr(ca(e)):function(e){return function(t){return Zn(t,e)}}(e)}var Fu=bo(),Uu=bo(!0);function $u(){return[]}function Lu(){return!1}var qu=mo(function(e,t){return e+t},0),Hu=wo("ceil"),Vu=mo(function(e,t){return e/t},1),Ku=wo("floor");var Wu,Gu=mo(function(e,t){return e*t},1),Zu=wo("round"),Yu=mo(function(e,t){return e-t},0);return hn.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Us(e),function(){if(--e<1)return t.apply(this,arguments)}},hn.ary=Qa,hn.assign=Vs,hn.assignIn=Ks,hn.assignInWith=Ws,hn.assignWith=Gs,hn.at=Zs,hn.before=es,hn.bind=ts,hn.bindAll=Eu,hn.bindKey=rs,hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},hn.chain=Ra,hn.chunk=function(e,t,r){t=(r?Ko(e,t,r):t===o)?1:qr(Us(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(Nr(i/t));ai?0:i+r),(n=n===o||n>i?i:Us(n))<0&&(n+=i),n=r>n?0:$s(n);r>>0)?(e=Hs(e))&&("string"==typeof t||null!=t&&!js(t))&&!(t=Bi(t))&&xr(e)?Wi(jr(e),0,r):e.split(t,r):[]},hn.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:qr(Us(t),0),ki(function(r){var n=r[t],i=Wi(r,0,t);return n&&er(i,n),Vt(e,this,i)})},hn.tail=function(e){var t=null==e?0:e.length;return t?Ti(e,1,t):[]},hn.take=function(e,t,r){return e&&e.length?Ti(e,0,(t=r||t===o?1:Us(t))<0?0:t):[]},hn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Ti(e,(t=n-(t=r||t===o?1:Us(t)))<0?0:t,n):[]},hn.takeRightWhile=function(e,t){return e&&e.length?Fi(e,Bo(t,3),!1,!0):[]},hn.takeWhile=function(e,t){return e&&e.length?Fi(e,Bo(t,3)):[]},hn.tap=function(e,t){return t(e),e},hn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new it(u);return As(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ns(e,t,{leading:n,maxWait:t,trailing:i})},hn.thru=Fa,hn.toArray=Rs,hn.toPairs=lu,hn.toPairsIn=fu,hn.toPath=function(e){return gs(e)?Qt(e,ca):Ds(e)?[e]:to(ua(Hs(e)))},hn.toPlainObject=qs,hn.transform=function(e,t,r){var n=gs(e),i=n||_s(e)||Bs(e);if(t=Bo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:As(e)&&Ss(o)?dn(Pt(e)):{}}return(i?Wt:Kn)(e,function(e,n,i){return t(r,e,n,i)}),r},hn.unary=function(e){return Qa(e,1)},hn.union=Oa,hn.unionBy=Pa,hn.unionWith=Ta,hn.uniq=function(e){return e&&e.length?Ni(e):[]},hn.uniqBy=function(e,t){return e&&e.length?Ni(e,Bo(t,2)):[]},hn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ni(e,o,t):[]},hn.unset=function(e,t){return null==e||zi(e,t)},hn.unzip=Ca,hn.unzipWith=ja,hn.update=function(e,t,r){return null==e?e:Ri(e,t,Hi(r))},hn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Ri(e,t,Hi(r),n)},hn.values=hu,hn.valuesIn=function(e){return null==e?[]:vr(e,iu(e))},hn.without=Ia,hn.words=Su,hn.wrap=function(e,t){return cs(Hi(t),e)},hn.xor=Ma,hn.xorBy=Da,hn.xorWith=Ba,hn.zip=Na,hn.zipObject=function(e,t){return Li(e||[],t||[],On)},hn.zipObjectDeep=function(e,t){return Li(e||[],t||[],Ei)},hn.zipWith=za,hn.entries=lu,hn.entriesIn=fu,hn.extend=Ks,hn.extendWith=Ws,Mu(hn,hn),hn.add=qu,hn.attempt=xu,hn.camelCase=du,hn.capitalize=pu,hn.ceil=Hu,hn.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Ls(r))==r?r:0),t!==o&&(t=(t=Ls(t))==t?t:0),Mn(Ls(e),t,r)},hn.clone=function(e){return Dn(e,p)},hn.cloneDeep=function(e){return Dn(e,h|p)},hn.cloneDeepWith=function(e,t){return Dn(e,h|p,t="function"==typeof t?t:o)},hn.cloneWith=function(e,t){return Dn(e,p,t="function"==typeof t?t:o)},hn.conformsTo=function(e,t){return null==t||Bn(e,t,nu(t))},hn.deburr=mu,hn.defaultTo=function(e,t){return null==e||e!=e?t:e},hn.divide=Vu,hn.endsWith=function(e,t,r){e=Hs(e),t=Bi(t);var n=e.length,i=r=r===o?n:Mn(Us(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},hn.eq=hs,hn.escape=function(e){return(e=Hs(e))&&Ee.test(e)?e.replace(Se,kr):e},hn.escapeRegExp=function(e){return(e=Hs(e))&&Me.test(e)?e.replace(Ie,"\\$&"):e},hn.every=function(e,t,r){var n=gs(e)?Zt:Un;return r&&Ko(e,t,r)&&(t=o),n(e,Bo(t,3))},hn.find=La,hn.findIndex=ma,hn.findKey=function(e,t){return or(e,Bo(t,3),Kn)},hn.findLast=qa,hn.findLastIndex=ga,hn.findLastKey=function(e,t){return or(e,Bo(t,3),Wn)},hn.floor=Ku,hn.forEach=Ha,hn.forEachRight=Va,hn.forIn=function(e,t){return null==e?e:Hn(e,Bo(t,3),iu)},hn.forInRight=function(e,t){return null==e?e:Vn(e,Bo(t,3),iu)},hn.forOwn=function(e,t){return e&&Kn(e,Bo(t,3))},hn.forOwnRight=function(e,t){return e&&Wn(e,Bo(t,3))},hn.get=Js,hn.gt=ds,hn.gte=ps,hn.has=function(e,t){return null!=e&&Lo(e,t,Qn)},hn.hasIn=Qs,hn.head=ba,hn.identity=Tu,hn.includes=function(e,t,r,n){e=bs(e)?e:hu(e),r=r&&!n?Us(r):0;var i=e.length;return r<0&&(r=qr(i+r,0)),Ms(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sr(e,t,r)>-1},hn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Us(r);return i<0&&(i=qr(n+i,0)),sr(e,t,i)},hn.inRange=function(e,t,r){return t=Fs(t),r===o?(r=t,t=0):r=Fs(r),function(e,t,r){return e>=Hr(t,r)&&e=-D&&e<=D},hn.isSet=Is,hn.isString=Ms,hn.isSymbol=Ds,hn.isTypedArray=Bs,hn.isUndefined=function(e){return e===o},hn.isWeakMap=function(e){return Os(e)&&$o(e)==ae},hn.isWeakSet=function(e){return Os(e)&&Xn(e)==se},hn.join=function(e,t){return null==e?"":$r.call(e,t)},hn.kebabCase=gu,hn.last=ka,hn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=Us(r))<0?qr(n+i,0):Hr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):ar(e,cr,i,!0)},hn.lowerCase=vu,hn.lowerFirst=bu,hn.lt=Ns,hn.lte=zs,hn.max=function(e){return e&&e.length?$n(e,Tu,Jn):o},hn.maxBy=function(e,t){return e&&e.length?$n(e,Bo(t,2),Jn):o},hn.mean=function(e){return lr(e,Tu)},hn.meanBy=function(e,t){return lr(e,Bo(t,2))},hn.min=function(e){return e&&e.length?$n(e,Tu,li):o},hn.minBy=function(e,t){return e&&e.length?$n(e,Bo(t,2),li):o},hn.stubArray=$u,hn.stubFalse=Lu,hn.stubObject=function(){return{}},hn.stubString=function(){return""},hn.stubTrue=function(){return!0},hn.multiply=Gu,hn.nth=function(e,t){return e&&e.length?mi(e,Us(t)):o},hn.noConflict=function(){return Mt._===this&&(Mt._=mt),this},hn.noop=Du,hn.now=Ja,hn.pad=function(e,t,r){e=Hs(e);var n=(t=Us(t))?Cr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return vo(zr(i),r)+e+vo(Nr(i),r)},hn.padEnd=function(e,t,r){e=Hs(e);var n=(t=Us(t))?Cr(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Wr();return Hr(e+i*(t-e+Tt("1e-"+((i+"").length-1))),t)}return _i(e,t)},hn.reduce=function(e,t,r){var n=gs(e)?tr:dr,i=arguments.length<3;return n(e,Bo(t,4),r,i,Rn)},hn.reduceRight=function(e,t,r){var n=gs(e)?rr:dr,i=arguments.length<3;return n(e,Bo(t,4),r,i,Fn)},hn.repeat=function(e,t,r){return t=(r?Ko(e,t,r):t===o)?1:Us(t),wi(Hs(e),t)},hn.replace=function(){var e=arguments,t=Hs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hn.result=function(e,t,r){var n=-1,i=(t=Vi(t,e)).length;for(i||(i=1,e=o);++nD)return[];var r=z,n=Hr(e,z);t=Bo(t),e-=z;for(var i=mr(n,t);++r=a)return e;var u=r-Cr(n);if(u<1)return n;var c=s?Wi(s,0,u).join(""):e.slice(0,u);if(i===o)return c+n;if(s&&(u+=c.length-u),js(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=rt(i.source,Hs(qe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var h=l.index;c=c.slice(0,h===o?u:h)}}else if(e.indexOf(Bi(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+n},hn.unescape=function(e){return(e=Hs(e))&&xe.test(e)?e.replace(ke,Ir):e},hn.uniqueId=function(e){var t=++ft;return Hs(e)+t},hn.upperCase=wu,hn.upperFirst=ku,hn.each=Ha,hn.eachRight=Va,hn.first=ba,Mu(hn,(Wu={},Kn(hn,function(e,t){lt.call(hn.prototype,t)||(Wu[t]=e)}),Wu),{chain:!1}),hn.VERSION="4.17.11",Wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hn[e].placeholder=hn}),Wt(["drop","take"],function(e,t){gn.prototype[e]=function(r){r=r===o?1:qr(Us(r),0);var n=this.__filtered__&&!t?new gn(this):this.clone();return n.__filtered__?n.__takeCount__=Hr(r,n.__takeCount__):n.__views__.push({size:Hr(r,z),type:e+(n.__dir__<0?"Right":"")}),n},gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Wt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==j||3==r;gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Bo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Wt(["head","last"],function(e,t){var r="take"+(t?"Right":"");gn.prototype[e]=function(){return this[r](1).value()[0]}}),Wt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");gn.prototype[e]=function(){return this.__filtered__?new gn(this):this[r](1)}}),gn.prototype.compact=function(){return this.filter(Tu)},gn.prototype.find=function(e){return this.filter(e).head()},gn.prototype.findLast=function(e){return this.reverse().find(e)},gn.prototype.invokeMap=ki(function(e,t){return"function"==typeof e?new gn(this):this.map(function(r){return ri(r,e,t)})}),gn.prototype.reject=function(e){return this.filter(ss(Bo(e)))},gn.prototype.slice=function(e,t){e=Us(e);var r=this;return r.__filtered__&&(e>0||t<0)?new gn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Us(t))<0?r.dropRight(-t):r.take(t-e)),r)},gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gn.prototype.toArray=function(){return this.take(z)},Kn(gn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=hn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(hn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof gn,c=s[0],l=u||gs(t),f=function(e){var t=i.apply(hn,er([e],s));return n&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,m=u&&!d;if(!a&&l){t=m?t:new gn(this);var g=e.apply(t,s);return g.__actions__.push({func:Fa,args:[f],thisArg:o}),new mn(g,h)}return p&&m?e.apply(this,s):(g=this.thru(f),p?n?g.value()[0]:g.value():g)})}),Wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);hn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(gs(i)?i:[],e)}return this[r](function(r){return t.apply(gs(r)?r:[],e)})}}),Kn(gn.prototype,function(e,t){var r=hn[t];if(r){var n=r.name+"";(rn[n]||(rn[n]=[])).push({name:t,func:r})}}),rn[ho(o,b).name]=[{name:"wrapper",func:o}],gn.prototype.clone=function(){var e=new gn(this.__wrapped__);return e.__actions__=to(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=to(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=to(this.__views__),e},gn.prototype.reverse=function(){if(this.__filtered__){var e=new gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=gs(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},hn.prototype.plant=function(e){for(var t,r=this;r instanceof pn;){var n=fa(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gn){var t=e;return this.__actions__.length&&(t=new gn(this)),(t=t.reverse()).__actions__.push({func:Fa,args:[Aa],thisArg:o}),new mn(t,this.__chain__)}return this.thru(Aa)},hn.prototype.toJSON=hn.prototype.valueOf=hn.prototype.value=function(){return Ui(this.__wrapped__,this.__actions__)},hn.prototype.first=hn.prototype.head,zt&&(hn.prototype[zt]=function(){return this}),hn}();Mt._=Mr,(i=function(){return Mr}.call(t,r,t,n))===o||(n.exports=i)}).call(this)}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}n.prototype=r(653),n.prototype.loadAsync=r(673),n.support=r(45),n.defaults=r(274),n.version="3.2.0",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=r(81),e.exports=n},function(e,t,r){"use strict";var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function a(e,t,r){return e.concat(t).map(function(e){return o(e,r)})}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=o(e[t],r)}),Object.keys(t).forEach(function(i){r.isMergeableObject(t[i])&&e[i]?n[i]=s(e[i],t[i],r):n[i]=o(t[i],r)}),n}(e,t,r):o(t,r)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})};var u=s;function c(e,t,r){return void 0===(e=(t.split?t.split("."):t).reduce(function(e,t){return e&&e[t]},e))?r:e}t.a=function(e,t,r){function n(e,t,r){try{return(r=t.getItem(e))&&void 0!==r?JSON.parse(r):void 0}catch(e){}}if(t=(e=e||{}).storage||window&&window.localStorage,r=e.key||"vuex",!function(e){try{return e.setItem("@@",1),e.removeItem("@@"),!0}catch(e){}return!1}(t))throw new Error("Invalid storage instance given");return function(i){var o=c(e,"getState",n)(r,t);"object"==typeof o&&null!==o&&i.replaceState(u(i.state,o,{arrayMerge:e.arrayMerger||function(e,t){return t},clone:!1})),(e.subscriber||function(e){return function(t){return e.subscribe(t)}})(i)(function(n,i){(e.filter||function(){return!0})(n)&&(e.setState||function(e,t,r){return r.setItem(e,JSON.stringify(t))})(r,(e.reducer||function(e,t){return 0===t.length?e:t.reduce(function(t,r){return function(e,t,r,n){return(t=t.split?t.split("."):t).slice(0,-1).reduce(function(e,t){return e[t]=e[t]||{}},e)[t.pop()]=r,e}(t,r,c(e,r))},{})})(i,e.paths||[]),t)})}}},function(e,t,r){"use strict";(function(e,t){!function(e,r){if(!e.setImmediate){var n,i,o,a,s,u=1,c={},l=!1,f=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,n=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r0?n-4:n,f=0;f>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(f)]<<2|i[e.charCodeAt(f+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(f)]<<10|i[e.charCodeAt(f+1)]<<4|i[e.charCodeAt(f+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t,r){"use strict";t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*m}},,function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(300);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return Buffer.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,i=Buffer.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,t.copy(r,n),a+=o.data.length,o=o.next;return i},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},,function(e,t,r){"use strict";(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(9))},function(e,t,r){"use strict";e.exports=o;var n=r(169),i=r(67);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(3),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";e.exports=r(117)},function(e,t,r){"use strict";e.exports=r(48)},function(e,t,r){"use strict";e.exports=r(116).Transform},function(e,t,r){"use strict";e.exports=r(116).PassThrough},function(e,t,r){"use strict";var n=r(3),i=r(54),Buffer=r(2).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,l=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var h=0;h<80;++h){var d=~~(h/20),p=0|((t=n)<<5|t>>>27)+c(d,i,a,s)+l+r[h]+o[d];l=s,s=a,a=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,r){"use strict";var n=r(3),i=r(54),Buffer=r(2).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,f=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31;for(var d=0;d<80;++d){var p=~~(d/20),m=u(n)+l(p,i,a,s)+f+r[d]+o[p]|0;f=s,s=a,a=c(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,r){"use strict";var n=r(3),i=r(170),o=r(54),Buffer=r(2).Buffer,a=new Array(64);function s(){this.init(),this._w=a,o.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=Buffer.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=s},function(e,t,r){"use strict";var n=r(3),i=r(171),o=r(54),Buffer=r(2).Buffer,a=new Array(160);function s(){this.init(),this._w=a,o.call(this,128,112)}n(s,i),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=Buffer.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=s},function(e,t,r){"use strict";(function(t,n){var i,o=r(172),a=r(173),s=r(174),Buffer=r(2).Buffer,u=t.crypto&&t.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function f(e,t,r,n,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return Buffer.from(e)})}e.exports=function(e,r,h,d,p,m){"function"==typeof p&&(m=p,p=void 0);var g=c[(p=p||"sha1").toLowerCase()];if(!g||"function"!=typeof t.Promise)return n.nextTick(function(){var t;try{t=s(e,r,h,d,p)}catch(e){return m(e)}m(null,t)});if(o(e,r,h,d),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");Buffer.isBuffer(e)||(e=Buffer.from(e,a)),Buffer.isBuffer(r)||(r=Buffer.from(r,a)),function(e,t){e.then(function(e){n.nextTick(function(){t(null,e)})},function(e){n.nextTick(function(){t(e)})})}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==l[e])return l[e];var r=f(i=i||Buffer.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return l[e]=r,r}(g).then(function(t){return t?f(e,r,h,d,g):s(e,r,h,d,p)}),m)}}).call(this,r(9),r(20))},function(e){e.exports=["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]},function(e){e.exports=["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]},function(e){e.exports=["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]},function(e){e.exports=["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]},function(e){e.exports=["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]},function(e){e.exports=["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]},function(e){e.exports=["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]},function(e){e.exports=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(321),n=r(35),i=r(15),o=r(5),a=r(88),s=o.BufferN(32),u=o.compile({wif:o.UInt8,bip32:{public:o.UInt32,private:o.UInt32}}),c={wif:128,bip32:{public:76067358,private:76066276}},l=2147483648,f=Math.pow(2,31)-1;function h(e){return o.String(e)&&null!==e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function d(e){return o.UInt32(e)&&e<=f}class p{constructor(e,t,r,n,i=0,a=0,s=0){this.__D=e,this.__Q=t,this.chainCode=r,this.network=n,this.__DEPTH=i,this.__INDEX=a,this.__PARENT_FINGERPRINT=s,o(u,n)}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return void 0===this.__Q&&(this.__Q=i.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return e.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}isNeutered(){return void 0===this.__D}neutered(){return v(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,r=Buffer.allocUnsafe(78);return r.writeUInt32BE(t,0),r.writeUInt8(this.depth,4),r.writeUInt32BE(this.parentFingerprint,5),r.writeUInt32BE(this.index,9),this.chainCode.copy(r,13),this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46)),n.encode(r)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return a.encode(this.network.wif,this.privateKey,!0)}derive(t){o(o.UInt32,t);const r=t>=l,n=Buffer.allocUnsafe(37);if(r){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");n[0]=0,this.privateKey.copy(n,1),n.writeUInt32BE(t,33)}else this.publicKey.copy(n,0),n.writeUInt32BE(t,33);const a=e.hmacSHA512(this.chainCode,n),s=a.slice(0,32),u=a.slice(32);if(!i.isPrivate(s))return this.derive(t+1);let c;if(this.isNeutered()){const e=i.pointAddScalar(this.publicKey,s,!0);if(null===e)return this.derive(t+1);c=v(e,u,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}else{const e=i.privateAdd(this.privateKey,s);if(null==e)return this.derive(t+1);c=g(e,u,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}return c}deriveHardened(e){return o(d,e),this.derive(e+l)}derivePath(e){o(h,e);let t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce((e,t)=>{let r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))},this)}sign(e,t=!1){if(!this.privateKey)throw new Error("Missing private key");if(!1===t)return i.sign(e,this.privateKey);{let t=i.sign(e,this.privateKey);const r=Buffer.alloc(32,0);let n=0;for(;t[0]>127;)n++,r.writeUIntLE(n,0,6),t=i.signWithEntropy(e,this.privateKey,r);return t}}verify(e,t){return i.verify(e,this.publicKey,t)}}function m(e,t,r){return g(e,t,r)}function g(e,t,r,n,a,u){if(o({privateKey:s,chainCode:s},{privateKey:e,chainCode:t}),r=r||c,!i.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new p(e,void 0,t,r,n,a,u)}function v(e,t,r,n,a,u){if(o({publicKey:o.BufferN(33),chainCode:s},{publicKey:e,chainCode:t}),r=r||c,!i.isPoint(e))throw new TypeError("Point is not on the curve");return new p(void 0,e,t,r,n,a,u)}t.fromBase58=function(e,t){const r=n.decode(e);if(78!==r.length)throw new TypeError("Invalid buffer length");t=t||c;const i=r.readUInt32BE(0);if(i!==t.bip32.private&&i!==t.bip32.public)throw new TypeError("Invalid network version");const o=r[4],a=r.readUInt32BE(5);if(0===o&&0!==a)throw new TypeError("Invalid parent fingerprint");const s=r.readUInt32BE(9);if(0===o&&0!==s)throw new TypeError("Invalid index");const u=r.slice(13,45);let l;if(i===t.bip32.private){if(0!==r.readUInt8(45))throw new TypeError("Invalid private key");l=g(r.slice(46,78),u,t,o,s,a)}else l=v(r.slice(45,78),u,t,o,s,a);return l},t.fromPrivateKey=m,t.fromPublicKey=function(e,t,r){return v(e,t,r)},t.fromSeed=function(t,r){if(o(o.Buffer,t),t.length<16)throw new TypeError("Seed should be at least 128 bits");if(t.length>64)throw new TypeError("Seed should be at most 512 bits");r=r||c;const n=e.hmacSHA512(Buffer.from("Bitcoin seed","utf8"),t);return m(n.slice(0,32),n.slice(32),r)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21),i=r(69);t.hash160=function(e){const t=n("sha256").update(e).digest();try{return n("rmd160").update(t).digest()}catch(e){return n("ripemd160").update(t).digest()}},t.hmacSHA512=function(e,t){return i("sha512",e).update(t).digest()}},function(e,t,r){"use strict";var n=r(3),Buffer=r(2).Buffer,i=r(40),o=Buffer.alloc(128),a=64;function s(e,t){i.call(this,"digest"),"string"==typeof t&&(t=Buffer.from(t)),this._alg=e,this._key=t,t.length>a?t=e(t):t.length=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);t.fill(255);for(let r=0;r>>0,c=new Uint8Array(u);for(;e[o];){let n=t[e.charCodeAt(o)];if(255===n)return;let i=0;for(let e=u-1;(0!==n||i>>0,c[e]=n%256>>>0,n=n/256>>>0;if(0!==n)throw new Error("Non-zero carry");s=i,o++}if(" "===e[o])return;let l=u-s;for(;l!==u&&0===c[l];)l++;const f=Buffer.allocUnsafe(a+(u-l));f.fill(0,0,a);let h=a;for(;l!==u;)f[h++]=c[l++];return f}return{encode:function(t){if(!Buffer.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";let i=0,a=0,s=0;const u=t.length;for(;s!==u&&0===t[s];)s++,i++;const c=(u-s)*o+1>>>0,l=new Uint8Array(c);for(;s!==u;){let e=t[s],n=0;for(let t=c-1;(0!==e||n>>0,l[t]=e%r>>>0,e=e/r>>>0;if(0!==e)throw new Error("Non-zero carry");a=n,s++}let f=c-a;for(;f!==c&&0===l[f];)f++;let h=n.repeat(i);for(;f=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,c=t.andln(3)+i&3;3===u&&(u=-1),3===c&&(c=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==c?u:-u,r[0].push(o),a=0==(1&c)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?c:-c,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},,function(e,t,r){"use strict";var n=r(7),i=r(12).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)c=(c<<1)+n[t];a.push(c)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(u=0;u=0;c--){for(t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,u=u.dblp(t),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,l=0,f=0;f=1;f-=2){var d=f-1,p=f;if(1===s[d]&&1===s[p]){var m=[t[d],null,null,t[p]];0===t[d].y.cmp(t[p].y)?(m[1]=t[d].add(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg())):0===t[d].y.cmp(t[p].y.redNeg())?(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].add(t[p].neg())):(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[d],r[p]);l=Math.max(v[0].length,l),c[d]=new Array(l),c[p]=new Array(l);for(var b=0;b=0;f--){for(var S=0;f>=0;){var x=!0;for(b=0;b=0&&S++,w=w.dblp(S),f<0)break;for(b=0;b0?E=u[b][A-1>>1]:A<0&&(E=u[b][-A-1>>1].neg()),w="affine"===E.type?w.mixedAdd(E):w.add(E))}}for(f=0;f=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},Point.prototype.isInfinity=function(){return this.inf},Point.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Point.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Point.prototype.getX=function(){return this.x.fromRed()},Point.prototype.getY=function(){return this.y.fromRed()},Point.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Point.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Point.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Point.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Point.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},Point.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(l,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),h=u.redSqr().redIAdd(l).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(f,h,d)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(87),i=r(7),o=r(3),a=n.base,s=r(12).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function Point(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(Point,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new Point(this,e,t)},u.prototype.pointFromJSON=function(e){return Point.fromJSON(this,e)},Point.prototype.precompute=function(){},Point.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Point.fromJSON=function(e,t){return new Point(e,t[0],t[1]||e.one)},Point.prototype.inspect=function(){return this.isInfinity()?"":""},Point.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Point.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},Point.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},Point.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},Point.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},Point.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(87),i=r(12),o=r(7),a=r(3),s=n.base,u=i.utils.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function Point(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,s),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(Point,s.BasePoint),c.prototype.pointFromJSON=function(e){return Point.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new Point(this,e,t,r,n)},Point.fromJSON=function(e,t){return new Point(e,t[0],t[1],t[2])},Point.prototype.inspect=function(){return this.isInfinity()?"":""},Point.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Point.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(u,c,f,l)},Point.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(c.redSub(o)),r=a.redMul(u)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=c.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(c)).redMul(u),t=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(u)}return this.curve.point(e,t,r)},Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),l=s.redMul(u),f=o.redMul(u),h=a.redMul(s);return this.curve.point(c,l,h,f)},Point.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(u).redMul(l);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(f,t,r)},Point.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Point.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Point.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},Point.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},Point.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Point.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},Point.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},Point.prototype.toP=Point.prototype.normalize,Point.prototype.mixedAdd=Point.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(119),a=r(12),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(341)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(336),t.sha224=r(337),t.sha256=r(180),t.sha384=r(338),t.sha512=r(181)},function(e,t,r){"use strict";var n=r(29),i=r(70),o=r(179),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,l),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},c.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},c.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),h=0;;h++){var d=o.k?o.k(h):new n(l.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(f)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=d.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),b^=1),new u({r:g,s:v,recoveryParam:b})}}}}}},c.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),l=c.mul(e).umod(this.n),f=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},c.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),c=t.r,l=t.s,f=1&r,h=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");c=h?this.curve.pointFromX(c.add(this.curve.n),f):this.curve.pointFromX(c,f);var d=t.r.invm(o),p=o.sub(s).mul(d).umod(o),m=l.mul(d).umod(o);return this.g.mulAdd(p,c,m)},c.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(119),i=r(177),o=r(16);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(7),i=r(12).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var c=u(e,r);if(e.length!==c+r.place)return!1;var l=e.slice(r.place,c+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===l[0]&&128&l[1]&&(l=l.slice(1)),this.r=new n(a),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(119),i=r(12),o=i.utils,a=o.assert,s=o.parseBytes,u=r(347),c=r(348);function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t>24===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},Int53:function(e){return"number"==typeof e&&e>=-f&&e<=f&&Math.floor(e)===e},Range:function(e,r,n){function i(t,i){return n(t,i)&&t>e&&t>>0===e},UInt53:function(e){return"number"==typeof e&&e>=0&&e<=f&&Math.floor(e)===e}};for(var d in h)h[d].toJSON=function(e){return e}.bind(null,d);e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS;t.p2data=function(e,t){if(!e.data&&!e.output)throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),a({network:a.maybe(a.Object),output:a.maybe(a.Buffer),data:a.maybe(a.arrayOf(a.Buffer))},e);const r={network:e.network||n.bitcoin};if(o.prop(r,"output",()=>{if(e.data)return i.compile([s.OP_RETURN].concat(e.data))}),o.prop(r,"data",()=>{if(e.output)return i.decompile(e.output).slice(1)}),t.validate&&e.output){const t=i.decompile(e.output);if(t[0]!==s.OP_RETURN)throw new TypeError("Output is invalid");if(!t.slice(1).every(a.Buffer))throw new TypeError("Output is invalid");if(e.data&&!function(e,t){return e.length===t.length&&e.every((e,r)=>e.equals(t[r]))}(e.data,r.data))throw new TypeError("Data mismatch")}return Object.assign(r,e)}},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(e,t,r){t=t||4,r=void 0===r||r;const n=e.length;if(0===n)return 0;if(n>t)throw new TypeError("Script number overflow");if(r&&0==(127&e[n-1])&&(n<=1||0==(128&e[n-2])))throw new Error("Non-minimally encoded script number");if(5===n){const t=e.readUInt32LE(0),r=e.readUInt8(4);return 128&r?-(4294967296*(-129&r)+t):4294967296*r+t}let i=0;for(let t=0;t2147483647?5:n>8388607?4:n>32767?3:n>127?2:n>0?1:0;var n;const i=Buffer.allocUnsafe(r),o=e<0;for(let e=0;e>=8;return 128&i[r-1]?i.writeUInt8(o?128:0,r-1):o&&(i[r-1]|=128),i}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(37),n=r(89),i=r(5),o=Buffer.alloc(1,0);function a(e){let t=0;for(;0===e[t];)++t;return t===e.length?o:128&(e=e.slice(t))[0]?Buffer.concat([o,e],1+e.length):e}function s(e){0===e[0]&&(e=e.slice(1));const t=Buffer.alloc(32,0),r=Math.max(0,32-e.length);return e.copy(t,r),t}t.decode=function(e){const t=e.readUInt8(e.length-1),r=-129&t;if(r<=0||r>=4)throw new Error("Invalid hashType "+t);const i=n.decode(e.slice(0,-1)),o=s(i.r),a=s(i.s);return{signature:Buffer.concat([o,a],64),hashType:t}},t.encode=function(t,r){i({signature:e.BufferN(64),hashType:e.UInt8},{signature:t,hashType:r});const o=-129&r;if(o<=0||o>=4)throw new Error("Invalid hashType "+r);const s=Buffer.allocUnsafe(1);s.writeUInt8(r,0);const u=a(t.slice(0,32)),c=a(t.slice(32,64));return Buffer.concat([n.encode(u,c),s])}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(24),i=r(4),o=r(49),a=i.OPS,s=r(5),u=r(15),c=a.OP_RESERVED;function l(e,t){return e.length===t.length&&e.every((e,r)=>e.equals(t[r]))}t.p2ms=function(e,t){if(!(e.input||e.output||e.pubkeys&&void 0!==e.m||e.signatures))throw new TypeError("Not enough data");function r(e){return i.isCanonicalScriptSignature(e)||void 0!==(t.allowIncomplete&&e===a.OP_0)}t=Object.assign({validate:!0},t||{}),s({network:s.maybe(s.Object),m:s.maybe(s.Number),n:s.maybe(s.Number),output:s.maybe(s.Buffer),pubkeys:s.maybe(s.arrayOf(u.isPoint)),signatures:s.maybe(s.arrayOf(r)),input:s.maybe(s.Buffer)},e);const f={network:e.network||n.bitcoin};let h=[],d=!1;function p(e){d||(d=!0,h=i.decompile(e),f.m=h[0]-c,f.n=h[h.length-2]-c,f.pubkeys=h.slice(1,-2))}if(o.prop(f,"output",()=>{if(e.m&&f.n&&e.pubkeys)return i.compile([].concat(c+e.m,e.pubkeys,c+f.n,a.OP_CHECKMULTISIG))}),o.prop(f,"m",()=>{if(f.output)return p(f.output),f.m}),o.prop(f,"n",()=>{if(f.pubkeys)return f.pubkeys.length}),o.prop(f,"pubkeys",()=>{if(e.output)return p(e.output),f.pubkeys}),o.prop(f,"signatures",()=>{if(e.input)return i.decompile(e.input).slice(1)}),o.prop(f,"input",()=>{if(e.signatures)return i.compile([a.OP_0].concat(e.signatures))}),o.prop(f,"witness",()=>{if(f.input)return[]}),t.validate){if(e.output){if(p(e.output),!s.Number(h[0]))throw new TypeError("Output is invalid");if(!s.Number(h[h.length-2]))throw new TypeError("Output is invalid");if(h[h.length-1]!==a.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(f.m<=0||f.n>16||f.m>f.n||f.n!==h.length-3)throw new TypeError("Output is invalid");if(!f.pubkeys.every(e=>u.isPoint(e)))throw new TypeError("Output is invalid");if(void 0!==e.m&&e.m!==f.m)throw new TypeError("m mismatch");if(void 0!==e.n&&e.n!==f.n)throw new TypeError("n mismatch");if(e.pubkeys&&!l(e.pubkeys,f.pubkeys))throw new TypeError("Pubkeys mismatch")}if(e.pubkeys){if(void 0!==e.n&&e.n!==e.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(f.n=e.pubkeys.length,f.nf.m)throw new TypeError("Too many signatures provided")}if(e.input){if(e.input[0]!==a.OP_0)throw new TypeError("Input is invalid");if(0===f.signatures.length||!f.signatures.every(r))throw new TypeError("Input has invalid signature(s)");if(e.signatures&&!l(e.signatures,f.signatures))throw new TypeError("Signature mismatch");if(void 0!==e.m&&e.m!==e.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(f,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(15);t.p2pk=function(e,t){if(!(e.input||e.output||e.pubkey||e.input||e.signature))throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),a({network:a.maybe(a.Object),output:a.maybe(a.Buffer),pubkey:a.maybe(u.isPoint),signature:a.maybe(i.isCanonicalScriptSignature),input:a.maybe(a.Buffer)},e);const r=o.value(()=>i.decompile(e.input)),c={network:e.network||n.bitcoin};if(o.prop(c,"output",()=>{if(e.pubkey)return i.compile([e.pubkey,s.OP_CHECKSIG])}),o.prop(c,"pubkey",()=>{if(e.output)return e.output.slice(1,-1)}),o.prop(c,"signature",()=>{if(e.input)return r()[0]}),o.prop(c,"input",()=>{if(e.signature)return i.compile([e.signature])}),o.prop(c,"witness",()=>{if(c.input)return[]}),t.validate){if(e.output){if(e.output[e.output.length-1]!==s.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!u.isPoint(c.pubkey))throw new TypeError("Output pubkey is invalid");if(e.pubkey&&!e.pubkey.equals(c.pubkey))throw new TypeError("Pubkey mismatch")}if(e.signature&&e.input&&!e.input.equals(c.input))throw new TypeError("Signature mismatch");if(e.input){if(1!==r().length)throw new TypeError("Input is invalid");if(!i.isCanonicalScriptSignature(c.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(c,e)}},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(41),n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(15),c=r(35);t.p2pkh=function(t,r){if(!(t.address||t.hash||t.output||t.pubkey||t.input))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),a({network:a.maybe(a.Object),address:a.maybe(a.String),hash:a.maybe(a.BufferN(20)),output:a.maybe(a.BufferN(25)),pubkey:a.maybe(u.isPoint),signature:a.maybe(i.isCanonicalScriptSignature),input:a.maybe(a.Buffer)},t);const l=o.value(()=>{const e=c.decode(t.address);return{version:e.readUInt8(0),hash:e.slice(1)}}),f=o.value(()=>i.decompile(t.input)),h=t.network||n.bitcoin,d={network:h};if(o.prop(d,"address",()=>{if(!d.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(h.pubKeyHash,0),d.hash.copy(e,1),c.encode(e)}),o.prop(d,"hash",()=>t.output?t.output.slice(3,23):t.address?l().hash:t.pubkey||d.pubkey?e.hash160(t.pubkey||d.pubkey):void 0),o.prop(d,"output",()=>{if(d.hash)return i.compile([s.OP_DUP,s.OP_HASH160,d.hash,s.OP_EQUALVERIFY,s.OP_CHECKSIG])}),o.prop(d,"pubkey",()=>{if(t.input)return f()[1]}),o.prop(d,"signature",()=>{if(t.input)return f()[0]}),o.prop(d,"input",()=>{if(t.pubkey&&t.signature)return i.compile([t.signature,t.pubkey])}),o.prop(d,"witness",()=>{if(d.input)return[]}),r.validate){let r=Buffer.from([]);if(t.address){if(l().version!==h.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(20!==l().hash.length)throw new TypeError("Invalid address");r=l().hash}if(t.hash){if(r.length>0&&!r.equals(t.hash))throw new TypeError("Hash mismatch");r=t.hash}if(t.output){if(25!==t.output.length||t.output[0]!==s.OP_DUP||t.output[1]!==s.OP_HASH160||20!==t.output[2]||t.output[23]!==s.OP_EQUALVERIFY||t.output[24]!==s.OP_CHECKSIG)throw new TypeError("Output is invalid");const e=t.output.slice(3,23);if(r.length>0&&!r.equals(e))throw new TypeError("Hash mismatch");r=e}if(t.pubkey){const n=e.hash160(t.pubkey);if(r.length>0&&!r.equals(n))throw new TypeError("Hash mismatch");r=n}if(t.input){const n=f();if(2!==n.length)throw new TypeError("Input is invalid");if(!i.isCanonicalScriptSignature(n[0]))throw new TypeError("Input has invalid signature");if(!u.isPoint(n[1]))throw new TypeError("Input has invalid pubkey");if(t.signature&&!t.signature.equals(n[0]))throw new TypeError("Signature mismatch");if(t.pubkey&&!t.pubkey.equals(n[1]))throw new TypeError("Pubkey mismatch");const o=e.hash160(n[1]);if(r.length>0&&!r.equals(o))throw new TypeError("Hash mismatch")}}return Object.assign(d,t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(41),n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(35);t.p2sh=function(t,r){if(!(t.address||t.hash||t.output||t.redeem||t.input))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),a({network:a.maybe(a.Object),address:a.maybe(a.String),hash:a.maybe(a.BufferN(20)),output:a.maybe(a.BufferN(23)),redeem:a.maybe({network:a.maybe(a.Object),output:a.maybe(a.Buffer),input:a.maybe(a.Buffer),witness:a.maybe(a.arrayOf(a.Buffer))}),input:a.maybe(a.Buffer),witness:a.maybe(a.arrayOf(a.Buffer))},t);let c=t.network;c||(c=t.redeem&&t.redeem.network||n.bitcoin);const l={network:c},f=o.value(()=>{const e=u.decode(t.address);return{version:e.readUInt8(0),hash:e.slice(1)}}),h=o.value(()=>i.decompile(t.input)),d=o.value(()=>{const e=h();return{network:c,output:e[e.length-1],input:i.compile(e.slice(0,-1)),witness:t.witness||[]}});if(o.prop(l,"address",()=>{if(!l.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(l.network.scriptHash,0),l.hash.copy(e,1),u.encode(e)}),o.prop(l,"hash",()=>t.output?t.output.slice(2,22):t.address?f().hash:l.redeem&&l.redeem.output?e.hash160(l.redeem.output):void 0),o.prop(l,"output",()=>{if(l.hash)return i.compile([s.OP_HASH160,l.hash,s.OP_EQUAL])}),o.prop(l,"redeem",()=>{if(t.input)return d()}),o.prop(l,"input",()=>{if(t.redeem&&t.redeem.input&&t.redeem.output)return i.compile([].concat(i.decompile(t.redeem.input),t.redeem.output))}),o.prop(l,"witness",()=>l.redeem&&l.redeem.witness?l.redeem.witness:l.input?[]:void 0),r.validate){let r=Buffer.from([]);if(t.address){if(f().version!==c.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(20!==f().hash.length)throw new TypeError("Invalid address");r=f().hash}if(t.hash){if(r.length>0&&!r.equals(t.hash))throw new TypeError("Hash mismatch");r=t.hash}if(t.output){if(23!==t.output.length||t.output[0]!==s.OP_HASH160||20!==t.output[1]||t.output[22]!==s.OP_EQUAL)throw new TypeError("Output is invalid");const e=t.output.slice(2,22);if(r.length>0&&!r.equals(e))throw new TypeError("Hash mismatch");r=e}const n=t=>{if(t.output){const n=i.decompile(t.output);if(!n||n.length<1)throw new TypeError("Redeem.output too short");const o=e.hash160(t.output);if(r.length>0&&!r.equals(o))throw new TypeError("Hash mismatch");r=o}if(t.input){const e=t.input.length>0,r=t.witness&&t.witness.length>0;if(!e&&!r)throw new TypeError("Empty input");if(e&&r)throw new TypeError("Input and witness provided");if(e){const e=i.decompile(t.input);if(!i.isPushOnly(e))throw new TypeError("Non push-only scriptSig")}}};if(t.input){const e=h();if(!e||e.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(d().output))throw new TypeError("Input is invalid");n(d())}if(t.redeem){if(t.redeem.network&&t.redeem.network!==c)throw new TypeError("Network mismatch");if(t.input){const e=d();if(t.redeem.output&&!t.redeem.output.equals(e.output))throw new TypeError("Redeem.output mismatch");if(t.redeem.input&&!t.redeem.input.equals(e.input))throw new TypeError("Redeem.input mismatch")}n(t.redeem)}if(t.witness&&t.redeem&&t.redeem.witness&&!function(e,t){return e.length===t.length&&e.every((e,r)=>e.equals(t[r]))}(t.redeem.witness,t.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(l,t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(41),n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(15),c=r(55),l=Buffer.alloc(0);t.p2wpkh=function(t,r){if(!(t.address||t.hash||t.output||t.pubkey||t.witness))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),a({address:a.maybe(a.String),hash:a.maybe(a.BufferN(20)),input:a.maybe(a.BufferN(0)),network:a.maybe(a.Object),output:a.maybe(a.BufferN(22)),pubkey:a.maybe(u.isPoint),signature:a.maybe(i.isCanonicalScriptSignature),witness:a.maybe(a.arrayOf(a.Buffer))},t);const f=o.value(()=>{const e=c.decode(t.address),r=e.words.shift(),n=c.fromWords(e.words);return{version:r,prefix:e.prefix,data:Buffer.from(n)}}),h=t.network||n.bitcoin,d={network:h};if(o.prop(d,"address",()=>{if(!d.hash)return;const e=c.toWords(d.hash);return e.unshift(0),c.encode(h.bech32,e)}),o.prop(d,"hash",()=>t.output?t.output.slice(2,22):t.address?f().data:t.pubkey||d.pubkey?e.hash160(t.pubkey||d.pubkey):void 0),o.prop(d,"output",()=>{if(d.hash)return i.compile([s.OP_0,d.hash])}),o.prop(d,"pubkey",()=>t.pubkey?t.pubkey:t.witness?t.witness[1]:void 0),o.prop(d,"signature",()=>{if(t.witness)return t.witness[0]}),o.prop(d,"input",()=>{if(d.witness)return l}),o.prop(d,"witness",()=>{if(t.pubkey&&t.signature)return[t.signature,t.pubkey]}),r.validate){let r=Buffer.from([]);if(t.address){if(h&&h.bech32!==f().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(0!==f().version)throw new TypeError("Invalid address version");if(20!==f().data.length)throw new TypeError("Invalid address data");r=f().data}if(t.hash){if(r.length>0&&!r.equals(t.hash))throw new TypeError("Hash mismatch");r=t.hash}if(t.output){if(22!==t.output.length||t.output[0]!==s.OP_0||20!==t.output[1])throw new TypeError("Output is invalid");if(r.length>0&&!r.equals(t.output.slice(2)))throw new TypeError("Hash mismatch");r=t.output.slice(2)}if(t.pubkey){const n=e.hash160(t.pubkey);if(r.length>0&&!r.equals(n))throw new TypeError("Hash mismatch");r=n}if(t.witness){if(2!==t.witness.length)throw new TypeError("Witness is invalid");if(!i.isCanonicalScriptSignature(t.witness[0]))throw new TypeError("Witness has invalid signature");if(!u.isPoint(t.witness[1]))throw new TypeError("Witness has invalid pubkey");if(t.signature&&!t.signature.equals(t.witness[0]))throw new TypeError("Signature mismatch");if(t.pubkey&&!t.pubkey.equals(t.witness[1]))throw new TypeError("Pubkey mismatch");const n=e.hash160(t.witness[1]);if(r.length>0&&!r.equals(n))throw new TypeError("Hash mismatch")}}return Object.assign(d,t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(41),n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(55),c=Buffer.alloc(0);t.p2wsh=function(t,r){if(!(t.address||t.hash||t.output||t.redeem||t.witness))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),a({network:a.maybe(a.Object),address:a.maybe(a.String),hash:a.maybe(a.BufferN(32)),output:a.maybe(a.BufferN(34)),redeem:a.maybe({input:a.maybe(a.Buffer),network:a.maybe(a.Object),output:a.maybe(a.Buffer),witness:a.maybe(a.arrayOf(a.Buffer))}),input:a.maybe(a.BufferN(0)),witness:a.maybe(a.arrayOf(a.Buffer))},t);const l=o.value(()=>{const e=u.decode(t.address),r=e.words.shift(),n=u.fromWords(e.words);return{version:r,prefix:e.prefix,data:Buffer.from(n)}}),f=o.value(()=>i.decompile(t.redeem.input));let h=t.network;h||(h=t.redeem&&t.redeem.network||n.bitcoin);const d={network:h};if(o.prop(d,"address",()=>{if(!d.hash)return;const e=u.toWords(d.hash);return e.unshift(0),u.encode(h.bech32,e)}),o.prop(d,"hash",()=>t.output?t.output.slice(2):t.address?l().data:d.redeem&&d.redeem.output?e.sha256(d.redeem.output):void 0),o.prop(d,"output",()=>{if(d.hash)return i.compile([s.OP_0,d.hash])}),o.prop(d,"redeem",()=>{if(t.witness)return{output:t.witness[t.witness.length-1],input:c,witness:t.witness.slice(0,-1)}}),o.prop(d,"input",()=>{if(d.witness)return c}),o.prop(d,"witness",()=>{if(t.redeem&&t.redeem.input&&t.redeem.input.length>0&&t.redeem.output&&t.redeem.output.length>0){const e=i.toStack(f());return d.redeem=Object.assign({witness:e},t.redeem),d.redeem.input=c,[].concat(e,t.redeem.output)}if(t.redeem&&t.redeem.output&&t.redeem.witness)return[].concat(t.redeem.witness,t.redeem.output)}),r.validate){let r=Buffer.from([]);if(t.address){if(l().prefix!==h.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(0!==l().version)throw new TypeError("Invalid address version");if(32!==l().data.length)throw new TypeError("Invalid address data");r=l().data}if(t.hash){if(r.length>0&&!r.equals(t.hash))throw new TypeError("Hash mismatch");r=t.hash}if(t.output){if(34!==t.output.length||t.output[0]!==s.OP_0||32!==t.output[1])throw new TypeError("Output is invalid");const e=t.output.slice(2);if(r.length>0&&!r.equals(e))throw new TypeError("Hash mismatch");r=e}if(t.redeem){if(t.redeem.network&&t.redeem.network!==h)throw new TypeError("Network mismatch");if(t.redeem.input&&t.redeem.input.length>0&&t.redeem.witness&&t.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(t.redeem.output){if(0===i.decompile(t.redeem.output).length)throw new TypeError("Redeem.output is invalid");const n=e.sha256(t.redeem.output);if(r.length>0&&!r.equals(n))throw new TypeError("Hash mismatch");r=n}if(t.redeem.input&&!i.isPushOnly(f()))throw new TypeError("Non push-only scriptSig");if(t.witness&&t.redeem.witness&&!function(e,t){return e.length===t.length&&e.every((e,r)=>e.equals(t[r]))}(t.witness,t.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch")}if(t.witness&&t.redeem&&t.redeem.output&&!t.redeem.output.equals(t.witness[t.witness.length-1]))throw new TypeError("Witness and redeem.output mismatch")}return Object.assign(d,t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(90),n=r(41),i=r(122),o=r(37),a=r(187),s=r(5),u=r(91),c=new TypeError("Cannot compute merkle root for zero transactions"),l=new TypeError("Cannot compute witness commit for non-segwit block");class f{constructor(){this.version=1,this.prevHash=void 0,this.merkleRoot=void 0,this.timestamp=0,this.witnessCommit=void 0,this.bits=0,this.nonce=0,this.transactions=void 0}static fromBuffer(e){if(e.length<80)throw new Error("Buffer too small (< 80 bytes)");let t=0;const r=r=>(t+=r,e.slice(t-r,t)),n=()=>{const r=e.readUInt32LE(t);return t+=4,r},o=new f;if(o.version=(()=>{const r=e.readInt32LE(t);return t+=4,r})(),o.prevHash=r(32),o.merkleRoot=r(32),o.timestamp=n(),o.bits=n(),o.nonce=n(),80===e.length)return o;const a=()=>{const r=i.Transaction.fromBuffer(e.slice(t),!0);return t+=r.byteLength(),r},s=(()=>{const r=u.decode(e,t);return t+=u.decode.bytes,r})();o.transactions=[];for(let e=0;e>24)-3,r=8388607&e,n=Buffer.alloc(32,0);return n.writeUIntBE(r,29-t,3),n}static calculateMerkleRoot(e,t){if(s([{getHash:o.Function}],e),0===e.length)throw c;if(t&&!h(e))throw l;const r=e.map(e=>e.getHash(t)),i=a(r,n.hash256);return t?n.hash256(Buffer.concat([i,e[0].ins[0].witness[0]])):i}getWitnessCommit(){if(!h(this.transactions))return null;const e=this.transactions[0].outs.filter(e=>e.script.slice(0,6).equals(Buffer.from("6a24aa21a9ed","hex"))).map(e=>e.script.slice(6,38));if(0===e.length)return null;const t=e[e.length-1];return t instanceof Buffer&&32===t.length?t:null}hasWitnessCommit(){return this.witnessCommit instanceof Buffer&&32===this.witnessCommit.length||null!==this.getWitnessCommit()}hasWitness(){return(e=this.transactions)instanceof Array&&e.some(e=>"object"==typeof e&&e.ins instanceof Array&&e.ins.some(e=>"object"==typeof e&&e.witness instanceof Array&&e.witness.length>0));var e}byteLength(e){return e||!this.transactions?80:80+u.encodingLength(this.transactions.length)+this.transactions.reduce((e,t)=>e+t.byteLength(),0)}getHash(){return n.hash256(this.toBuffer(!0))}getId(){return e.reverseBuffer(this.getHash()).toString("hex")}getUTCDate(){const e=new Date(0);return e.setUTCSeconds(this.timestamp),e}toBuffer(e){const t=Buffer.allocUnsafe(this.byteLength(e));let r=0;const n=e=>{e.copy(t,r),r+=e.length},i=e=>{t.writeUInt32LE(e,r),r+=4};var o;return o=this.version,t.writeInt32LE(o,r),r+=4,n(this.prevHash),n(this.merkleRoot),i(this.timestamp),i(this.bits),i(this.nonce),e||!this.transactions?t:(u.encode(this.transactions.length,t,r),r+=u.encode.bytes,this.transactions.forEach(e=>{const n=e.byteLength();e.toBuffer(t,r),r+=n}),t)}toHex(e){return this.toBuffer(e).toString("hex")}checkTxRoots(){const e=this.hasWitnessCommit();return!(!e&&this.hasWitness())&&(this.__checkMerkleRoot()&&(!e||this.__checkWitnessCommit()))}checkProofOfWork(){const t=e.reverseBuffer(this.getHash()),r=f.calculateTarget(this.bits);return t.compare(r)<=0}__checkMerkleRoot(){if(!this.transactions)throw c;const e=f.calculateMerkleRoot(this.transactions);return 0===this.merkleRoot.compare(e)}__checkWitnessCommit(){if(!this.transactions)throw c;if(!this.hasWitnessCommit())throw l;const e=f.calculateMerkleRoot(this.transactions,!0);return 0===this.witnessCommit.compare(e)}}function h(e){return e instanceof Array&&e[0]&&e[0].ins&&e[0].ins instanceof Array&&e[0].ins[0]&&e[0].ins[0].witness&&e[0].ins[0].witness instanceof Array&&e[0].ins[0].witness.length>0}t.Block=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(183),n=r(90),i=r(362),o=r(41),ECPair=r(186),a=r(24),s=r(121),u=r(4),c=r(4),l=r(122),f=r(37),h=r(5),d=i.types;class p{constructor(e=a.bitcoin,t=2500){this.network=e,this.maximumFeeRate=t,this.__PREV_TX_SET={},this.__INPUTS=[],this.__TX=new l.Transaction,this.__TX.version=2,this.__USE_LOW_R=!1}static fromTransaction(e,t){const r=new p(t);return r.setVersion(e.version),r.setLockTime(e.locktime),e.outs.forEach(e=>{r.addOutput(e.script,e.value)}),e.ins.forEach(e=>{r.__addInputUnsafe(e.hash,e.index,{sequence:e.sequence,script:e.script,witness:e.witness})}),r.__INPUTS.forEach((t,r)=>{!function(e,t,r){if(e.redeemScriptType!==d.P2MS||!e.redeemScript)return;if(e.pubkeys.length===e.signatures.length)return;const n=e.signatures.concat();e.signatures=e.pubkeys.map(i=>{const o=ECPair.fromPublicKey(i);let a;return n.some((i,s)=>{if(!i)return!1;const c=u.signature.decode(i),l=t.hashForSignature(r,e.redeemScript,c.hashType);return!!o.verify(l,c.signature)&&(n[s]=void 0,a=i,!0)}),a})}(t,e,r)}),r}setLowR(e){return h(h.maybe(h.Boolean),e),void 0===e&&(e=!0),this.__USE_LOW_R=e,e}setLockTime(e){if(h(f.UInt32,e),this.__INPUTS.some(e=>!!e.signatures&&e.signatures.some(e=>void 0!==e)))throw new Error("No, this would invalidate signatures");this.__TX.locktime=e}setVersion(e){h(f.UInt32,e),this.__TX.version=e}addInput(e,t,r,i){if(!this.__canModifyInputs())throw new Error("No, this would invalidate signatures");let o;if("string"==typeof(a=e)||a instanceof String)e=n.reverseBuffer(Buffer.from(e,"hex"));else if(function(e){return e instanceof l.Transaction}(e)){const r=e.outs[t];i=r.script,o=r.value,e=e.getHash(!1)}var a;return this.__addInputUnsafe(e,t,{sequence:r,prevOutScript:i,value:o})}addOutput(t,r){if(!this.__canModifyOutputs())throw new Error("No, this would invalidate signatures");return"string"==typeof t&&(t=e.toOutputScript(t,this.network)),this.__TX.addOutput(t,r)}build(){return this.__build(!1)}buildIncomplete(){return this.__build(!0)}sign(e,t,r,n,i,o){if(t.network&&t.network!==this.network)throw new TypeError("Inconsistent network");if(!this.__INPUTS[e])throw new Error("No input at index: "+e);if(n=n||l.Transaction.SIGHASH_ALL,this.__needsOutputs(n))throw new Error("Transaction needs outputs");const a=this.__INPUTS[e];if(void 0!==a.redeemScript&&r&&!a.redeemScript.equals(r))throw new Error("Inconsistent redeemScript");const c=t.publicKey||t.getPublicKey();if(!g(a)){if(void 0!==i){if(void 0!==a.value&&a.value!==i)throw new Error("Input did not match witnessValue");h(f.Satoshi,i),a.value=i}if(!g(a)){const e=function(e,t,r,n){if(r&&n){const i=s.p2wsh({redeem:{output:n}}),o=s.p2wsh({output:r}),a=s.p2sh({redeem:{output:r}}),c=s.p2sh({redeem:i});if(!i.hash.equals(o.hash))throw new Error("Witness script inconsistent with prevOutScript");if(!a.hash.equals(c.hash))throw new Error("Redeem script inconsistent with prevOutScript");const l=m(i.redeem.output,t);if(!l.pubkeys)throw new Error(l.type+" not supported as witnessScript ("+u.toASM(n)+")");e.signatures&&e.signatures.some(e=>void 0!==e)&&(l.signatures=e.signatures);const f=n;if(l.type===d.P2WPKH)throw new Error("P2SH(P2WSH(P2WPKH)) is a consensus failure");return{redeemScript:r,redeemScriptType:d.P2WSH,witnessScript:n,witnessScriptType:l.type,prevOutType:d.P2SH,prevOutScript:a.output,hasWitness:!0,signScript:f,signType:l.type,pubkeys:l.pubkeys,signatures:l.signatures,maxSignatures:l.maxSignatures}}if(r){const n=s.p2sh({redeem:{output:r}});if(e.prevOutScript){let t;try{t=s.p2sh({output:e.prevOutScript})}catch(e){throw new Error("PrevOutScript must be P2SH")}if(!n.hash.equals(t.hash))throw new Error("Redeem script inconsistent with prevOutScript")}const i=m(n.redeem.output,t);if(!i.pubkeys)throw new Error(i.type+" not supported as redeemScript ("+u.toASM(r)+")");e.signatures&&e.signatures.some(e=>void 0!==e)&&(i.signatures=e.signatures);let o=r;return i.type===d.P2WPKH&&(o=s.p2pkh({pubkey:i.pubkeys[0]}).output),{redeemScript:r,redeemScriptType:i.type,prevOutType:d.P2SH,prevOutScript:n.output,hasWitness:i.type===d.P2WPKH,signScript:o,signType:i.type,pubkeys:i.pubkeys,signatures:i.signatures,maxSignatures:i.maxSignatures}}if(n){const r=s.p2wsh({redeem:{output:n}});if(e.prevOutScript){const t=s.p2wsh({output:e.prevOutScript});if(!r.hash.equals(t.hash))throw new Error("Witness script inconsistent with prevOutScript")}const i=m(r.redeem.output,t);if(!i.pubkeys)throw new Error(i.type+" not supported as witnessScript ("+u.toASM(n)+")");e.signatures&&e.signatures.some(e=>void 0!==e)&&(i.signatures=e.signatures);const o=n;if(i.type===d.P2WPKH)throw new Error("P2WSH(P2WPKH) is a consensus failure");return{witnessScript:n,witnessScriptType:i.type,prevOutType:d.P2WSH,prevOutScript:r.output,hasWitness:!0,signScript:o,signType:i.type,pubkeys:i.pubkeys,signatures:i.signatures,maxSignatures:i.maxSignatures}}if(e.prevOutType&&e.prevOutScript){if(e.prevOutType===d.P2SH)throw new Error("PrevOutScript is "+e.prevOutType+", requires redeemScript");if(e.prevOutType===d.P2WSH)throw new Error("PrevOutScript is "+e.prevOutType+", requires witnessScript");if(!e.prevOutScript)throw new Error("PrevOutScript is missing");const r=m(e.prevOutScript,t);if(!r.pubkeys)throw new Error(r.type+" not supported ("+u.toASM(e.prevOutScript)+")");e.signatures&&e.signatures.some(e=>void 0!==e)&&(r.signatures=e.signatures);let n=e.prevOutScript;return r.type===d.P2WPKH&&(n=s.p2pkh({pubkey:r.pubkeys[0]}).output),{prevOutType:r.type,prevOutScript:e.prevOutScript,hasWitness:r.type===d.P2WPKH,signScript:n,signType:r.type,pubkeys:r.pubkeys,signatures:r.signatures,maxSignatures:r.maxSignatures}}const i=s.p2pkh({pubkey:t}).output;return{prevOutType:d.P2PKH,prevOutScript:i,hasWitness:!1,signScript:i,signType:d.P2PKH,pubkeys:[t],signatures:[void 0]}}(a,c,r,o);Object.assign(a,e)}if(!g(a))throw Error(a.prevOutType+" not supported")}let p;if(p=a.hasWitness?this.__TX.hashForWitnessV0(e,a.signScript,a.value,n):this.__TX.hashForSignature(e,a.signScript,n),!a.pubkeys.some((e,r)=>{if(!c.equals(e))return!1;if(a.signatures[r])throw new Error("Signature already exists");if(33!==c.length&&a.hasWitness)throw new Error("BIP143 rejects uncompressed public keys in P2WPKH or P2WSH");const i=t.sign(p,this.__USE_LOW_R);return a.signatures[r]=u.signature.encode(i,n),!0}))throw new Error("Key pair cannot sign for this input")}__addInputUnsafe(e,t,r){if(l.Transaction.isCoinbaseHash(e))throw new Error("coinbase inputs not supported");const n=e.toString("hex")+":"+t;if(void 0!==this.__PREV_TX_SET[n])throw new Error("Duplicate TxOut: "+n);let o={};if(void 0!==r.script&&(o=function e(t,r,n,o){if(0===t.length&&0===r.length)return{};if(!n){let e=i.input(t,!0),o=i.witness(r,!0);e===d.NONSTANDARD&&(e=void 0),o===d.NONSTANDARD&&(o=void 0),n=e||o}switch(n){case d.P2WPKH:{const{output:e,pubkey:t,signature:n}=s.p2wpkh({witness:r});return{prevOutScript:e,prevOutType:d.P2WPKH,pubkeys:[t],signatures:[n]}}case d.P2PKH:{const{output:e,pubkey:r,signature:n}=s.p2pkh({input:t});return{prevOutScript:e,prevOutType:d.P2PKH,pubkeys:[r],signatures:[n]}}case d.P2PK:{const{signature:e}=s.p2pk({input:t});return{prevOutType:d.P2PK,pubkeys:[void 0],signatures:[e]}}case d.P2MS:{const{m:e,pubkeys:r,signatures:n}=s.p2ms({input:t,output:o},{allowIncomplete:!0});return{prevOutType:d.P2MS,pubkeys:r,signatures:n,maxSignatures:e}}}if(n===d.P2SH){const{output:n,redeem:o}=s.p2sh({input:t,witness:r}),a=i.output(o.output),u=e(o.input,o.witness,a,o.output);return u.prevOutType?{prevOutScript:n,prevOutType:d.P2SH,redeemScript:o.output,redeemScriptType:u.prevOutType,witnessScript:u.witnessScript,witnessScriptType:u.witnessScriptType,pubkeys:u.pubkeys,signatures:u.signatures}:{}}if(n===d.P2WSH){const{output:n,redeem:o}=s.p2wsh({input:t,witness:r}),a=i.output(o.output);let c;return(c=a===d.P2WPKH?e(o.input,o.witness,a):e(u.compile(o.witness),[],a,o.output)).prevOutType?{prevOutScript:n,prevOutType:d.P2WSH,witnessScript:o.output,witnessScriptType:c.prevOutType,pubkeys:c.pubkeys,signatures:c.signatures}:{}}return{prevOutType:d.NONSTANDARD,prevOutScript:t}}(r.script,r.witness||[])),void 0!==r.value&&(o.value=r.value),!o.prevOutScript&&r.prevOutScript){let e;if(!o.pubkeys&&!o.signatures){const t=m(r.prevOutScript);t.pubkeys&&(o.pubkeys=t.pubkeys,o.signatures=t.signatures),e=t.type}o.prevOutScript=r.prevOutScript,o.prevOutType=e||i.output(r.prevOutScript)}const a=this.__TX.addInput(e,t,r.sequence,r.scriptSig);return this.__INPUTS[a]=o,this.__PREV_TX_SET[n]=!0,a}__build(e){if(!e){if(!this.__TX.ins.length)throw new Error("Transaction has no inputs");if(!this.__TX.outs.length)throw new Error("Transaction has no outputs")}const t=this.__TX.clone();if(this.__INPUTS.forEach((r,n)=>{if(!r.prevOutType&&!e)throw new Error("Transaction is not complete");const i=function e(t,r,n){const i=r.pubkeys||[];let o=r.signatures||[];switch(t){case d.P2PKH:if(0===i.length)break;if(0===o.length)break;return s.p2pkh({pubkey:i[0],signature:o[0]});case d.P2WPKH:if(0===i.length)break;if(0===o.length)break;return s.p2wpkh({pubkey:i[0],signature:o[0]});case d.P2PK:if(0===i.length)break;if(0===o.length)break;return s.p2pk({signature:o[0]});case d.P2MS:{const e=r.maxSignatures;o=n?o.map(e=>e||c.OPS.OP_0):o.filter(e=>e);const t=!n||e===o.length;return s.p2ms({m:e,pubkeys:i,signatures:o},{allowIncomplete:n,validate:t})}case d.P2SH:{const t=e(r.redeemScriptType,r,n);if(!t)return;return s.p2sh({redeem:{output:t.output||r.redeemScript,input:t.input,witness:t.witness}})}case d.P2WSH:{const t=e(r.witnessScriptType,r,n);if(!t)return;return s.p2wsh({redeem:{output:r.witnessScript,input:t.input,witness:t.witness}})}}}(r.prevOutType,r,e);if(i)t.setInputScript(n,i.input),t.setWitness(n,i.witness);else{if(!e&&r.prevOutType===d.NONSTANDARD)throw new Error("Unknown input type");if(!e)throw new Error("Not enough information")}}),!e&&this.__overMaximumFees(t.virtualSize()))throw new Error("Transaction has absurd fees");return t}__canModifyInputs(){return this.__INPUTS.every(e=>!e.signatures||e.signatures.every(e=>{if(!e)return!0;return 0!=(v(e)&l.Transaction.SIGHASH_ANYONECANPAY)}))}__needsOutputs(e){return e===l.Transaction.SIGHASH_ALL?0===this.__TX.outs.length:0===this.__TX.outs.length&&this.__INPUTS.some(e=>!!e.signatures&&e.signatures.some(e=>{if(!e)return!1;return!(v(e)&l.Transaction.SIGHASH_NONE)}))}__canModifyOutputs(){const e=this.__TX.ins.length,t=this.__TX.outs.length;return this.__INPUTS.every(r=>void 0===r.signatures||r.signatures.every(r=>{if(!r)return!0;const n=31&v(r);return n===l.Transaction.SIGHASH_NONE||n===l.Transaction.SIGHASH_SINGLE&&e<=t}))}__overMaximumFees(e){return(this.__INPUTS.reduce((e,t)=>e+(t.value>>>0),0)-this.__TX.outs.reduce((e,t)=>e+t.value,0))/e>this.maximumFeeRate}}function m(e,t){h(f.Buffer,e);const r=i.output(e);switch(r){case d.P2PKH:{if(!t)return{type:r};const n=s.p2pkh({output:e}).hash,i=o.hash160(t);return n.equals(i)?{type:r,pubkeys:[t],signatures:[void 0]}:{type:r}}case d.P2WPKH:{if(!t)return{type:r};const n=s.p2wpkh({output:e}).hash,i=o.hash160(t);return n.equals(i)?{type:r,pubkeys:[t],signatures:[void 0]}:{type:r}}case d.P2PK:return{type:r,pubkeys:[s.p2pk({output:e}).pubkey],signatures:[void 0]};case d.P2MS:{const t=s.p2ms({output:e});return{type:r,pubkeys:t.pubkeys,signatures:t.pubkeys.map(()=>void 0),maxSignatures:t.m}}}return{type:r}}function g(e){return void 0!==e.signScript&&void 0!==e.signType&&void 0!==e.pubkeys&&void 0!==e.signatures&&e.signatures.length===e.pubkeys.length&&e.pubkeys.length>0&&(!1===e.hasWitness||void 0!==e.value)}function v(e){return e.readUInt8(e.length-1)}t.TransactionBuilder=p}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(123),o=r(365),a=r(124),s=r(125),u=r(370),c=r(373),l=r(375),f=r(377),h={P2MS:"multisig",NONSTANDARD:"nonstandard",NULLDATA:"nulldata",P2PK:"pubkey",P2PKH:"pubkeyhash",P2SH:"scripthash",P2WPKH:"witnesspubkeyhash",P2WSH:"witnessscripthash",WITNESS_COMMITMENT:"witnesscommitment"};t.types=h,t.output=function(e){if(l.output.check(e))return h.P2WPKH;if(f.output.check(e))return h.P2WSH;if(s.output.check(e))return h.P2PKH;if(u.output.check(e))return h.P2SH;const t=n.decompile(e);if(!t)throw new TypeError("Invalid script");return i.output.check(t)?h.P2MS:a.output.check(t)?h.P2PK:c.output.check(t)?h.WITNESS_COMMITMENT:o.output.check(t)?h.NULLDATA:h.NONSTANDARD},t.input=function(e,t){const r=n.decompile(e);if(!r)throw new TypeError("Invalid script");return s.input.check(r)?h.P2PKH:u.input.check(r,t)?h.P2SH:i.input.check(r,t)?h.P2MS:a.input.check(r)?h.P2PK:h.NONSTANDARD},t.witness=function(e,t){const r=n.decompile(e);if(!r)throw new TypeError("Invalid script");return l.input.check(r)?h.P2WPKH:f.input.check(r,t)?h.P2WSH:h.NONSTANDARD}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){return e===i.OPS.OP_0||n.isCanonicalScriptSignature(e)}function a(e,t){const r=n.decompile(e);return!(r.length<2)&&(r[0]===i.OPS.OP_0&&(t?r.slice(1).every(o):r.slice(1).every(n.isCanonicalScriptSignature)))}t.check=a,a.toJSON=()=>"multisig input"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4),o=r(37),a=i.OPS.OP_RESERVED;function s(e,t){const r=n.decompile(e);if(r.length<4)return!1;if(r[r.length-1]!==i.OPS.OP_CHECKMULTISIG)return!1;if(!o.Number(r[0]))return!1;if(!o.Number(r[r.length-2]))return!1;const s=r[0]-a,u=r[r.length-2]-a;return!(s<=0)&&(!(u>16)&&(!(s>u)&&(u===r.length-3&&(!!t||r.slice(1,-2).every(n.isCanonicalPubKey)))))}t.check=s,s.toJSON=()=>"multi-sig output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=n.OPS;function o(e){const t=n.compile(e);return t.length>1&&t[0]===i.OP_RETURN}t.check=o,o.toJSON=()=>"null data output";const a={check:o};t.output=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);function i(e){const t=n.decompile(e);return 1===t.length&&n.isCanonicalScriptSignature(t[0])}t.check=i,i.toJSON=()=>"pubKey input"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalPubKey(t[0])&&t[1]===i.OPS.OP_CHECKSIG}t.check=o,o.toJSON=()=>"pubKey output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);function i(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalScriptSignature(t[0])&&n.isCanonicalPubKey(t[1])}t.check=i,i.toJSON=()=>"pubKeyHash input"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){const t=n.compile(e);return 25===t.length&&t[0]===i.OPS.OP_DUP&&t[1]===i.OPS.OP_HASH160&&20===t[2]&&t[23]===i.OPS.OP_EQUALVERIFY&&t[24]===i.OPS.OP_CHECKSIG}t.check=o,o.toJSON=()=>"pubKeyHash output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(371);t.input=n;const i=r(372);t.output=i},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(4),n=r(123),i=r(124),o=r(125),a=r(188),s=r(189);function u(t,r){const u=e.decompile(t);if(u.length<1)return!1;const c=u[u.length-1];if(!Buffer.isBuffer(c))return!1;const l=e.decompile(e.compile(u.slice(0,-1))),f=e.decompile(c);return!!f&&(!!e.isPushOnly(l)&&(1===u.length?s.check(f)||a.check(f):!(!o.input.check(l)||!o.output.check(f))||(!(!n.input.check(l,r)||!n.output.check(f))||!(!i.input.check(l)||!i.output.check(f)))))}t.check=u,u.toJSON=()=>"scriptHash input"}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){const t=n.compile(e);return 23===t.length&&t[0]===i.OPS.OP_HASH160&&20===t[1]&&t[22]===i.OPS.OP_EQUAL}t.check=o,o.toJSON=()=>"scriptHash output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(374);t.output=n},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(4),n=r(4),i=r(37),o=r(5),a=Buffer.from("aa21a9ed","hex");function s(t){const r=e.compile(t);return r.length>37&&r[0]===n.OPS.OP_RETURN&&36===r[1]&&r.slice(2,6).equals(a)}t.check=s,s.toJSON=()=>"Witness commitment output",t.encode=function(t){o(i.Hash256bit,t);const r=Buffer.allocUnsafe(36);return a.copy(r,0),t.copy(r,4),e.compile([n.OPS.OP_RETURN,r])},t.decode=function(t){return o(s,t),e.decompile(t)[1].slice(4,36)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(376);t.input=n;const i=r(188);t.output=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);function i(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalScriptSignature(t[0])&&(r=t[1],n.isCanonicalPubKey(r)&&33===r.length);var r}t.check=i,i.toJSON=()=>"witnessPubKeyHash input"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(378);t.input=n;const i=r(189);t.output=i},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(4),n=r(5),i=r(123),o=r(124),a=r(125);function s(t,r){if(n(n.Array,t),t.length<1)return!1;const s=t[t.length-1];if(!Buffer.isBuffer(s))return!1;const u=e.decompile(s);if(!u||0===u.length)return!1;const c=e.compile(t.slice(0,-1));return!(!a.input.check(c)||!a.output.check(u))||(!(!i.input.check(c,r)||!i.output.check(u))||!(!o.input.check(c)||!o.output.check(u)))}t.check=s,s.toJSON=()=>"witnessScriptHash input"}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(192);t.AppConfig=n.AppConfig;var i=r(92);t.makeAuthResponse=i.makeAuthResponse;var o=r(232);t.getAuthRequestFromURL=o.getAuthRequestFromURL,t.fetchAppManifest=o.fetchAppManifest,t.redirectUserToApp=o.redirectUserToApp;var a=r(591);t.makeCoreSessionRequest=a.makeCoreSessionRequest,t.sendCoreSessionRequest=a.sendCoreSessionRequest,t.getCoreSession=a.getCoreSession;var s=r(231);t.verifyAuthRequest=s.verifyAuthRequest,t.verifyAuthResponse=s.verifyAuthResponse,t.isExpirationDateValid=s.isExpirationDateValid,t.isIssuanceDateValid=s.isIssuanceDateValid,t.doPublicKeysMatchUsername=s.doPublicKeysMatchUsername,t.doPublicKeysMatchIssuer=s.doPublicKeysMatchIssuer,t.doSignaturesMatchPublicKeys=s.doSignaturesMatchPublicKeys,t.isManifestUriValid=s.isManifestUriValid,t.isRedirectUriValid=s.isRedirectUriValid,t.verifyAuthRequestAndLoadManifest=s.verifyAuthRequestAndLoadManifest;var u=r(229);t.isUserSignedIn=u.isUserSignedIn,t.redirectToSignIn=u.redirectToSignIn,t.redirectToSignInWithAuthRequest=u.redirectToSignInWithAuthRequest,t.isSignInPending=u.isSignInPending,t.handlePendingSignIn=u.handlePendingSignIn,t.loadUserData=u.loadUserData,t.signUserOut=u.signUserOut;var c=r(92);t.makeAuthRequest=c.makeAuthRequest},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenSigner=void 0;var n=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t={typ:this.tokenType,alg:this.cryptoClient.algorithmName};return Object.assign({},t,e)}},{key:"sign",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.header(r),i=c(e,n),o=this.cryptoClient.createHash(i),s=this.cryptoClient.signHash(o,this.rawPrivateKey);return t?{header:[a.default.encode(JSON.stringify(n))],payload:JSON.stringify(e),signature:[s]}:[i,s].join(".")}}]),e}();t.TokenSigner=l},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});var e=r(382);function n(e,t){return void 0===t&&(t="utf8"),Buffer.isBuffer(e)?o(e.toString("base64")):o(Buffer.from(e,t).toString("base64"))}function i(t){return t=t.toString(),e.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function o(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var a=n;a.encode=n,a.decode=function(e,t){return void 0===t&&(t="utf8"),Buffer.from(i(e),"base64").toString(t)},a.toBase64=i,a.fromBase64=o,a.toBuffer=function(e){return Buffer.from(i(e),"base64")},t.default=a}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.length,r=t%4;if(!r)return e;var n=t,i=4-r,o=t+i,a=Buffer.alloc(o);for(a.write(e);i--;)a.write("=",n++);return a.toString()}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),t.SECP256K1Client=void 0;var e,n=function(){function e(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:"jose";if(!t||!r)throw new l.MissingParametersError("a signing input hash and private key are all required");var i=e.loadPrivateKey(r).sign(t),o=Buffer.from(i.toDER());if("der"===n)return o.toString("hex");if("jose"===n)return(0,c.derToJose)(o,"ES256");throw Error("Invalid signature format")}},{key:"loadSignature",value:function(e){return(0,c.joseToDer)(e,"ES256")}},{key:"verifyHash",value:function(t,r,n){if(!(t&&r&&n))throw new l.MissingParametersError("a signing input hash, der signature, and public key are all required");return e.loadPublicKey(n).verify(t,r)}}]),e}();f.algorithmName="ES256K",f.ec=new i.ec("secp256k1"),f.keyEncoder=new s.default({curveParameters:[1,3,132,0,10],privatePEMOptions:{label:"EC PRIVATE KEY"},publicPEMOptions:{label:"PUBLIC KEY"},curve:f.ec})}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports=r(193)},function(e,t,r){"use strict";var n=r(386),i=r(129),o=r(130),a=r(401),s=r(94);function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=u,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(e,t,r){"use strict";var n=r(40),i=r(128),o=r(3),Buffer=r(2).Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function s(e){n.call(this);var t,r=e.mode.toLowerCase(),i=a[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;Buffer.isBuffer(o)||(o=Buffer.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=Buffer.concat([o,o.slice(0,8)]));var s=e.iv;Buffer.isBuffer(s)||(s=Buffer.from(s)),this._des=i.create({key:o,iv:s,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=s,o(s,n),s.prototype._update=function(e){return Buffer.from(this._des.update(e))},s.prototype._final=function(){return Buffer.from(this._des.final())}},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},c.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=h}a.rip(s,o,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],l=e.keys[u+1];a.expand(o,e.tmp,0),c^=e.tmp[0],l^=e.tmp[1];var f=a.substitute(c,l),h=o;o=(s^a.permute(f))>>>0,s=h}a.rip(o,s,n,i)}},function(e,t,r){"use strict";var n=r(16),i=r(3),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=Buffer.allocUnsafe(e),r=-1;++r>a%8,e._prev=i(e._prev,r?n:o);return s}function i(e,t){var r=e.length,n=-1,i=Buffer.allocUnsafe(e.length);for(e=Buffer.concat([e,Buffer.from([t])]);++n>7;return i}t.encrypt=function(e,t,r){for(var i=t.length,o=Buffer.allocUnsafe(i),a=-1;++a>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=Buffer.alloc(16,0),this.cache=Buffer.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=i(o)},o.prototype.update=function(e){var t;for(this.cache=Buffer.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(Buffer.concat([this.cache,n],16)),this.ghash(i([0,e,0,t])),this.state},e.exports=o},function(e,t,r){"use strict";var n=r(197),Buffer=r(2).Buffer,i=r(130),o=r(198),a=r(40),s=r(93),u=r(94);function c(e,t,r){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new s.AES(t),this._prev=Buffer.from(r),this._mode=e,this._autopadding=!0}function l(){this.cache=Buffer.allocUnsafe(0)}function f(e,t,r){var a=i[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=Buffer.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=Buffer.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new o(a.module,t,r,!0):"auth"===a.type?new n(a.module,t,r,!0):new c(a.module,t,r)}r(3)(c,a),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return Buffer.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return f(e,n.key,n.iv)},t.createDecipheriv=f},function(e,t,r){"use strict";t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){"use strict";(function(Buffer){var e=r(199),n=r(403),i=r(404);var o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new Buffer(n[e].prime,"hex"),r=new Buffer(n[e].gen,"hex");return new i(t,r)},t.createDiffieHellman=t.DiffieHellman=function t(r,n,a,s){return Buffer.isBuffer(n)||void 0===o[n]?t(r,"binary",n,a):(n=n||"binary",s=s||"binary",a=a||new Buffer([2]),Buffer.isBuffer(a)||(a=new Buffer(a,s)),"number"==typeof r?new i(e(r,a),a,!0):(Buffer.isBuffer(r)||(r=new Buffer(r,n)),new i(r,a,!0)))}}).call(this,r(0).Buffer)},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){"use strict";(function(Buffer){var t=r(7),n=new(r(200)),i=new t(24),o=new t(11),a=new t(10),s=new t(3),u=new t(7),c=r(199),l=r(28);function f(e,r){return r=r||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,r)),this._pub=new t(e),this}function h(e,r){return r=r||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,r)),this._priv=new t(e),this}e.exports=p;var d={};function p(e,r,n){this.setGenerator(r),this.__prime=new t(e),this._prime=t.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function m(e,t){var r=new Buffer(e.toArray());return t?r.toString(t):r}Object.defineProperty(p.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),l=[r,e.toString(16)].join("_");if(l in d)return d[l];var f,h=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!n.test(e))return h+=1,h+="02"===r||"05"===r?8:4,d[l]=h,h;switch(n.test(e.shrn(1))||(h+=2),r){case"02":e.mod(i).cmp(o)&&(h+=8);break;case"05":(f=e.mod(a)).cmp(s)&&f.cmp(u)&&(h+=8);break;default:h+=4}return d[l]=h,h}(this.__prime,this.__gen)),this._primeCode}}),p.prototype.generateKeys=function(){return this._priv||(this._priv=new t(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},p.prototype.computeSecret=function(e){var r=(e=(e=new t(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new Buffer(r.toArray()),i=this.getPrime();if(n.length0&&r.ishrn(n),r}function l(e,r,n){var i,o;do{for(i=new Buffer(0);8*i.length=t)throw new Error("invalid sig")}e.exports=function(e,r,s,u,c){var l=i(s);if("ec"===l.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=o[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var a=new n(i),s=r.data.subjectPrivateKey.data;return a.verify(t,e,s)}(e,r,l)}if("dsa"===l.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,r,n){var o=n.data.p,s=n.data.q,u=n.data.g,c=n.data.pub_key,l=i.signature.decode(e,"der"),f=l.s,h=l.r;a(f,s),a(h,s);var d=t.mont(o),p=f.invm(s);return 0===u.toRed(d).redPow(new t(r).mul(p).mod(s)).fromRed().mul(c.toRed(d).redPow(h.mul(p).mod(s)).fromRed()).mod(o).mod(s).cmp(h)}(e,r,l)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");r=Buffer.concat([c,r]);for(var f=l.modulus.byteLength(),h=[1],d=0;r.length+h.length+2r-f-2)throw new Error("message too long");var h=Buffer.alloc(r-n-f-2),d=r-l-1,p=i(l),m=s(Buffer.concat([c,h,Buffer.alloc(1,1),t],d),a(p,d)),g=s(p,a(m,l));return new u(Buffer.concat([Buffer.alloc(1),g,m],r))}(d,t);else if(1===f)h=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?Buffer.alloc(a-o-3,255):function(e){var t,r=Buffer.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?l(h,d):c(h,d)}},function(e,t,r){"use strict";var n=r(95),i=r(206),o=r(207),a=r(7),s=r(131),u=r(21),c=r(208),Buffer=r(2).Buffer;e.exports=function(e,t,r){var l;l=e.padding?e.padding:r?1:4;var f,h=n(e),d=h.modulus.byteLength();if(t.length>d||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=r?c(new a(t),h):s(t,h);var p=Buffer.alloc(d-f.length);if(f=Buffer.concat([p,f],d),4===l)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(Buffer.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),l=o(s,i(c,a)),f=o(c,i(l,r-a-1));if(function(e,t){e=Buffer.from(e),t=Buffer.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,f,r);if(3===l)return f;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(2),a=r(28),Buffer=o.Buffer,s=o.kMaxLength,u=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function f(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>s)throw new RangeError("buffer too small")}function h(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a(r).copy(e,t),e;a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}u&&u.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(Buffer.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return l(r,t.length),f(n,r,t.length),h(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(Buffer.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(r,t.length),void 0===n&&(n=t.length-r);return f(n,r,t.length),h(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(9),r(20))},function(e,t,r){"use strict";e.exports=r(427)},function(e,t,r){"use strict";(function(Buffer){var t=r(57),n=r(7),i=r(12).ec,o=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).objid().optional(),this.key("publicKey").explicit(1).bitstr().optional())}),a=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("curve").objid()),this.key("pub").bitstr())}),s={secp256k1:{curveParameters:[1,3,132,0,10],privatePEMOptions:{label:"EC PRIVATE KEY"},publicPEMOptions:{label:"PUBLIC KEY"},curve:new i("secp256k1")}};function u(e){"string"==typeof e&&(!function(e,t){if(!e)throw new Error(t||"Assertion failed")}(s.hasOwnProperty(e),"Unknown curve "+e),e=s[e]),this.options=e,this.algorithmID=[1,2,840,10045,2,1]}u.ECPrivateKeyASN=o,u.SubjectPublicKeyInfoASN=a,u.prototype.privateKeyObject=function(e,t){var r={version:new n(1),privateKey:new Buffer(e,"hex"),parameters:this.options.curveParameters};return t&&(r.publicKey={unused:0,data:new Buffer(t,"hex")}),r},u.prototype.publicKeyObject=function(e){return{algorithm:{id:this.algorithmID,curve:this.options.curveParameters},pub:{unused:0,data:new Buffer(e,"hex")}}},u.prototype.encodePrivate=function(e,t,r){if("raw"===t){0;var n,i=(n=this.options.curve.keyFromPrivate(e,"hex")).getPublic("hex");n=this.privateKeyObject(e,i)}else if("der"===t){if("buffer"==typeof e);else{if("string"!=typeof e)throw"private key must be a buffer or a string";e=new Buffer(e,"hex")}n=o.decode(e,"der")}else{if("pem"!==t)throw"invalid private key format";n=o.decode(e,"pem",this.options.privatePEMOptions)}if("raw"===r)return n.privateKey.toString("hex");if("der"===r)return o.encode(n,"der").toString("hex");if("pem"===r)return o.encode(n,"pem",this.options.privatePEMOptions);throw"invalid destination format for private key"},u.prototype.encodePublic=function(e,t,r){var n;if("raw"===t)n=this.publicKeyObject(e);else if("der"===t){if("buffer"==typeof e);else{if("string"!=typeof e)throw"public key must be a buffer or a string";e=new Buffer(e,"hex")}n=a.decode(e,"der")}else{if("pem"!==t)throw"invalid public key format";n=a.decode(e,"pem",this.options.publicPEMOptions)}if("raw"===r)return n.pub.data.toString("hex");if("der"===r)return a.encode(n,"der").toString("hex");if("pem"===r)return a.encode(n,"pem",this.options.publicPEMOptions);throw"invalid destination format for public key"},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";const n=r(57),i=r(3);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function r(e){this._initNamed(e,t)}return i(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(e,t,r){"use strict";const n=r(3);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){let t;const r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict";const n=r(75).Reporter,i=r(75).EncoderBuffer,o=r(75).DecoderBuffer,a=r(16),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};l.forEach(function(r){t[r]=e[r]});const r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){const e=this._baseState;u.forEach(function(t){this[t]=function(){const r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){const t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);const n=e[r];t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),s.forEach(function(e){c.prototype[e]=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){a(e);const t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){const t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));let n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(a=this._peekTag(e,n,r.any),e.isError(a))return a}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(n)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){const t=this._decodeTag(e,r.explicit);if(e.isError(t))return t;e=t}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?i=e.raw(t):e=n}if(t&&t.track&&null!==r.tag&&t.track(e.path(),n,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(n,t)}}return r.obj&&a&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){const r=this._baseState;let n=null,i=!1;return Object.keys(r.choice).some(function(o){const a=e.save(),s=r.choice[o];try{const r=s._decode(e,t);if(e.isError(r))return!1;n={type:o,value:r},i=!0}catch(t){return e.restore(a),!1}return!0},this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){const n=this._baseState;if(null!==n.default&&n.default===e)return;const i=this._encodeValue(e,t,r);return void 0===i||this._skipDefault(i,t,r)?void 0:i},c.prototype._encodeValue=function(e,t,r){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);let o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");const n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){const n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},r))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,r=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(e,s,r,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){const r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-.\/:=?]*$/.test(e)}},function(e,t,r){"use strict";const n=r(210);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},function(e,t,r){"use strict";const n=t;n.der=r(211),n.pem=r(433)},function(e,t,r){"use strict";const n=r(3),Buffer=r(0).Buffer,i=r(211);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.decode=function(e,t){const r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,s=-1;for(let e=0;e=0};var n=o(r(1)),i=o(r(133));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,i.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r));return t.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,i.default)(t,c)).require_display_name||t.allow_display_name){var r=e.match(l);if(r)e=r[1];else if(t.require_display_name)return!1}var u=e.split("@"),g=u.pop(),v=u.join("@"),b=g.toLowerCase();if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var y=(v=v.toLowerCase()).split("+")[0];if(!(0,o.default)(y.replace(".",""),{min:6,max:30}))return!1;for(var _=y.split("."),w=0;w<_.length;w++)if(!h.test(_[w]))return!1}if(!(0,o.default)(v,{max:64})||!(0,o.default)(g,{max:254}))return!1;if(!(0,a.default)(g,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(g)){if(!g.startsWith("[")||!g.endsWith("]"))return!1;var k=g.substr(1,g.length-2);if(0===k.length||!(0,s.default)(k))return!1}}if('"'===v[0])return v=v.slice(1,v.length-1),t.allow_utf8_local_part?m.test(v):d.test(v);for(var S=t.allow_utf8_local_part?p:f,x=v.split("."),E=0;E$/i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,h=/^[a-z\d]+$/,d=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||e.length>=2083||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;var r,s,f,h,d,p,m,g;if(t=(0,a.default)(t,u),m=e.split("#"),e=m.shift(),m=e.split("?"),e=m.shift(),(m=e.split("://")).length>1){if(r=m.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;m[0]=e.substr(2)}}if(""===(e=m.join("://")))return!1;if(m=e.split("/"),""===(e=m.shift())&&!t.require_host)return!0;if((m=e.split("@")).length>1){if(t.disallow_auth)return!1;if((s=m.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1}h=m.join("@"),p=null,g=null;var v=h.match(c);v?(f="",g=v[1],p=v[2]||null):(m=h.split(":"),f=m.shift(),m.length&&(p=m.join(":")));if(null!==p&&(d=parseInt(p,10),!/^[0-9]+$/.test(p)||d<=0||d>65535))return!1;if(!((0,o.default)(f)||(0,i.default)(f,t)||g&&(0,o.default)(g,6)))return!1;if(f=f||g,t.host_whitelist&&!l(f,t.host_whitelist))return!1;if(t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var n=s(r(1)),i=s(r(134)),o=s(r(96)),a=s(r(50));function s(e){return e&&e.__esModule?e:{default:e}}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(e,t){for(var r=0;r1&&t[1].startsWith("0"))return!1;return(0,i.default)(t[0],4)&&t[1]<=32&&t[1]>=0};var n=o(r(1)),i=o(r(96));function o(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,2}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),["true","false","1","0"].indexOf(e)>=0};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,i.default)(e),t in o.alpha)return o.alpha[t].test(e);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n},o=r(97);var a=Object.keys(o.alpha);t.locales=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,i.default)(e),t in o.alphanumeric)return o.alphanumeric[t].test(e);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n},o=r(97);var a=Object.keys(o.alphanumeric);t.locales=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),t&&t.no_symbols)return a.test(e);return o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[+-]?([0-9]*[.])?[0-9]+$/,a=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e,{min:0,max:65535})};var n,i=(n=r(215))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e===e.toLowerCase()};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e===e.toUpperCase()};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.fullWidth.test(e)&&a.halfWidth.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n},o=r(216),a=r(217);e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?o.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||"-"===e||"+"===e)return!1;var n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||nt.gt)},t.locales=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n},o=r(97);var a=Object.keys(o.decimal);t.locales=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),(t=(0,n.default)(t,u)).locale in a.decimal)return!(0,o.default)(c,e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"))}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var n=s(r(50)),i=s(r(1)),o=s(r(135)),a=r(97);function s(e){return e&&e.__esModule?e:{default:e}}var u={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},c=["","-","+"];e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),(0,i.default)(e)%parseInt(t,10)==0};var n=o(r(1)),i=o(r(213));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),new RegExp("^[a-f0-9]{".concat(o[t],"}$")).test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^([A-Za-z0-9\-_~+\/]+[=]{0,2})\.([A-Za-z0-9\-_~+\/]+[=]{0,2})(?:\.([A-Za-z0-9\-_~+\/]+[=]{0,2}))?$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(e);try{var t=JSON.parse(e);return!!t&&"object"===o(t)}catch(e){}return!1};var n,i=(n=r(1))&&n.__esModule?n:{default:n};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),0===((t=(0,i.default)(t,a)).ignore_whitespace?e.trim().length:e.length)};var n=o(r(1)),i=o(r(50));function o(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,i.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var a=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],s=e.length-a.length;return s>=r&&(void 0===n||s<=n)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";(0,i.default)(e);var r=o[t];return r&&r.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),(0,i.default)(e)&&24===e.length};var n=o(r(1)),i=o(r(218));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,i.default)(t),o=(0,i.default)(e);return!!(o&&r&&o>r)};var n=o(r(1)),i=o(r(132));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,i.default)(t),o=(0,i.default)(e);return!!(o&&r&&o=0}if("object"===a(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var n=o(r(1)),i=o(r(133));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(e);var t=e.replace(/[- ]+/g,"");if(!o.test(t))return!1;for(var r,n,a,s=0,u=t.length-1;u>=0;u--)r=t.substring(u,u+1),n=parseInt(r,10),s+=a&&(n*=2)>=10?n%10+1:n,a=!a;return!(s%10!=0||!t)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if((0,i.default)(e),t in o)return o[t](e);if("any"===t){for(var r in o)if(o.hasOwnProperty(r)){var n=o[r];if(n(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o={ES:function(e){(0,i.default)(e);var t={X:0,Y:1,Z:2},r=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(r))return!1;var n=r.slice(0,-1).replace(/[X,Y,Z]/g,function(e){return t[e]});return r.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][n%23])}};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,i.default)(e),!o.test(e))return!1;for(var t,r,n=e.replace(/[A-Z]/g,function(e){return parseInt(e,36)}),a=0,s=!0,u=n.length-2;u>=0;u--)t=n.substring(u,u+1),r=parseInt(t,10),a+=s&&(r*=2)>=10?r+1:r,s=!s;return parseInt(e.substr(e.length-1),10)===(1e4-a)%10};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,i.default)(t);r=String(r);if(!r)return e(t,10)||e(t,13);var n=t.replace(/[\s-]+/g,"");var u=0;var c;if("10"===r){if(!o.test(n))return!1;for(c=0;c<9;c++)u+=(c+1)*n.charAt(c);if("X"===n.charAt(9)?u+=100:u+=10*n.charAt(9),u%11==0)return!!n}else if("13"===r){if(!a.test(n))return!1;for(c=0;c<12;c++)u+=s[c%2]*n.charAt(c);if(n.charAt(12)-(10-u%10)%10==0)return!!n}return!1};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^(?:[0-9]{9}X|[0-9]{10})$/,a=/^(?:[0-9]{13})$/,s=[1,3];e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.default)(e);var r=o;if(r=t.require_hyphen?r.replace("?",""):r,!(r=t.case_sensitive?new RegExp(r):new RegExp(r,"i")).test(e))return!1;for(var n=e.replace("-","").toUpperCase(),a=0,s=0;s/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`")};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var r=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,i.default)(e,r)};var n=o(r(1)),i=o(r(221));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);for(var r=e.length-1;r>=0;r--)if(-1===t.indexOf(e[r]))return!1;return!0};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,i.default)(t,o);var r=e.split("@"),n=r.pop(),f=[r.join("@"),n];if(f[1]=f[1].toLowerCase(),"gmail.com"===f[1]||"googlemail.com"===f[1]){if(t.gmail_remove_subaddress&&(f[0]=f[0].split("+")[0]),t.gmail_remove_dots&&(f[0]=f[0].replace(/\.+/g,l)),!f[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]=t.gmail_convert_googlemaildotcom?"gmail.com":f[1]}else if(a.indexOf(f[1])>=0){if(t.icloud_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(f[0]=f[0].toLowerCase())}else if(s.indexOf(f[1])>=0){if(t.outlookdotcom_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(f[0]=f[0].toLowerCase())}else if(u.indexOf(f[1])>=0){if(t.yahoo_remove_subaddress){var h=f[0].split("-");f[0]=h.length>1?h.slice(0,-1).join("-"):h[0]}if(!f[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(f[0]=f[0].toLowerCase())}else c.indexOf(f[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]="yandex.ru"):t.all_lowercase&&(f[0]=f[0].toLowerCase());return f.join("@")};var n,i=(n=r(50))&&n.__esModule?n:{default:n};var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],u=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function l(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),t.derToJose=function(t,r){t=c(t);var n=s(r),i=u((t=e.decode(t,"der")).r,n),o=u(t.s,n);return a=t=(t=Buffer.concat([i,o],i.length+o.length)).toString("base64"),t=a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");var a},t.joseToDer=function(e,t){e=c(e);var r=s(t),o=e.length;if(o!==2*r)throw new TypeError('"'+t+'" signatures must be "'+2*r+'" bytes, saw "'+o+'"');var a=l(e.slice(0,r)),u=l(e.slice(r)),f=2+a.length+1+1+u.length,h=f<128;e=Buffer.alloc((h?2:3)+f);var d=0;e[d++]=32|n,h?e[d++]=f:(e[d++]=129,e[d++]=255&f);return e[d++]=0|i,e[d++]=a.length,a.copy(e,d),d+=a.length,e[d++]=0|i,e[d++]=u.length,u.copy(e,d),e};var e=r(57).define("ECDSASigValue",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),n=16,i=2;function o(e){return(e/8|0)+(e%8==0?0:1)}var a={ES256:o(256),ES384:o(384),ES512:o(512)};function s(e){var t=a[e];if(t)return t;throw new Error('Unknown algorithm "'+e+'"')}function u(e,t){return Buffer.from(e.toString("hex",t),"hex")}function c(e){if(Buffer.isBuffer(e))return Buffer.from(e);if("string"==typeof e)return Buffer.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function l(e){for(var t=0,r=e.length;t=128&&--t<0){var n=e;return(e=Buffer.alloc(1+e.length))[0]=0,n.copy(e,1),e}return 0===t?e:e=e.slice(t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenVerifier=void 0;var n,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var r=0;r=4)throw new Error("Invalid hashType "+t);const i=n.decode(e.slice(0,-1)),o=u(i.r),a=u(i.s);return{signature:Buffer.concat([o,a],64),hashType:t}},encode:function(e,t){i({signature:o.BufferN(64),hashType:o.UInt8},{signature:e,hashType:t});const r=-129&t;if(r<=0||r>=4)throw new Error("Invalid hashType "+t);const a=Buffer.allocUnsafe(1);a.writeUInt8(t,0);const u=s(e.slice(0,32)),c=s(e.slice(32,64));return Buffer.concat([n.encode(u,c),a])}}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(43),i=r(187),o=r(5),a=r(30),s=r(91),u=r(136);function c(){this.version=1,this.prevHash=null,this.merkleRoot=null,this.timestamp=0,this.bits=0,this.nonce=0}c.fromBuffer=function(e){if(e.length<80)throw new Error("Buffer too small (< 80 bytes)");let t=0;function r(r){return t+=r,e.slice(t-r,t)}function n(){const r=e.readUInt32LE(t);return t+=4,r}const i=new c;if(i.version=function(){const r=e.readInt32LE(t);return t+=4,r}(),i.prevHash=r(32),i.merkleRoot=r(32),i.timestamp=n(),i.bits=n(),i.nonce=n(),80===e.length)return i;function o(){const r=u.fromBuffer(e.slice(t),!0);return t+=r.byteLength(),r}const a=function(){const r=s.decode(e,t);return t+=s.decode.bytes,r}();i.transactions=[];for(var l=0;l>24)-3,r=8388607&e,n=Buffer.alloc(32,0);return n.writeUIntBE(r,29-t,3),n},c.calculateMerkleRoot=function(e){if(o([{getHash:a.Function}],e),0===e.length)throw TypeError("Cannot compute merkle root for zero transactions");const t=e.map(function(e){return e.getHash()});return i(t,n.hash256)},c.prototype.checkMerkleRoot=function(){if(!this.transactions)return!1;const e=c.calculateMerkleRoot(this.transactions);return 0===this.merkleRoot.compare(e)},c.prototype.checkProofOfWork=function(){const e=this.getHash().reverse(),t=c.calculateTarget(this.bits);return e.compare(t)<=0},e.exports=c},function(e,t,r){"use strict";function n(e,t){if("number"!=typeof e)throw new Error("cannot write a non-number as a number");if(e<0)throw new Error("specified a negative value for writing an unsigned value");if(e>t)throw new Error("RangeError: value out of range");if(Math.floor(e)!==e)throw new Error("value has a fractional component")}e.exports={readUInt64LE:function(e,t){const r=e.readUInt32LE(t);let i=e.readUInt32LE(t+4);return n((i*=4294967296)+r,9007199254740991),i+r},writeUInt64LE:function(e,t,r){return n(t,9007199254740991),e.writeInt32LE(-1&t,r),e.writeUInt32LE(Math.floor(t/4294967296),r+4),r+8}}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(224),i=r(43),o=r(8),a=r(25),s=r(10),u=r(137),c=r(5),l=r(30),f=r(511),h=f.types,ECPair=r(223),d=r(136);function p(e,t){c(l.Buffer,e);const r=f.output(e);switch(r){case h.P2PKH:{if(!t)return{type:r};const n=u.p2pkh({output:e}).hash,o=i.hash160(t);return n.equals(o)?{type:r,pubkeys:[t],signatures:[void 0]}:{type:r}}case h.P2WPKH:{if(!t)return{type:r};const n=u.p2wpkh({output:e}).hash,o=i.hash160(t);return n.equals(o)?{type:r,pubkeys:[t],signatures:[void 0]}:{type:r}}case h.P2PK:return{type:r,pubkeys:[u.p2pk({output:e}).pubkey],signatures:[void 0]};case h.P2MS:{const t=u.p2ms({output:e});return{type:r,pubkeys:t.pubkeys,signatures:t.pubkeys.map(()=>void 0),maxSignatures:t.m}}}return{type:r}}function m(e,t){this.__prevTxSet={},this.network=e||a.bitcoin,this.maximumFeeRate=t||2500,this.__inputs=[],this.__tx=new d,this.__tx.version=2}function g(e){return void 0!==e.signScript&&void 0!==e.signType&&void 0!==e.pubkeys&&void 0!==e.signatures&&e.signatures.length===e.pubkeys.length&&e.pubkeys.length>0&&(!1===e.hasWitness||void 0!==e.value)}function v(e){return e.readUInt8(e.length-1)}m.prototype.setLockTime=function(e){if(c(l.UInt32,e),this.__inputs.some(function(e){return!!e.signatures&&e.signatures.some(function(e){return e})}))throw new Error("No, this would invalidate signatures");this.__tx.locktime=e},m.prototype.setVersion=function(e){c(l.UInt32,e),this.__tx.version=e},m.fromTransaction=function(e,t){const r=new m(t);return r.setVersion(e.version),r.setLockTime(e.locktime),e.outs.forEach(function(e){r.addOutput(e.script,e.value)}),e.ins.forEach(function(e){r.__addInputUnsafe(e.hash,e.index,{sequence:e.sequence,script:e.script,witness:e.witness})}),r.__inputs.forEach(function(t,r){!function(e,t,r){if(e.redeemScriptType!==h.P2MS||!e.redeemScript)return;if(e.pubkeys.length===e.signatures.length)return;const n=e.signatures.concat();e.signatures=e.pubkeys.map(function(i){const a=ECPair.fromPublicKey(i);let s;return n.some(function(i,u){if(!i)return!1;const c=o.signature.decode(i),l=t.hashForSignature(r,e.redeemScript,c.hashType);return!!a.verify(l,c.signature)&&(n[u]=void 0,s=i,!0)}),s})}(t,e,r)}),r},m.prototype.addInput=function(e,t,r,n){if(!this.__canModifyInputs())throw new Error("No, this would invalidate signatures");let i;if("string"==typeof e)e=Buffer.from(e,"hex").reverse();else if(e instanceof d){const r=e.outs[t];n=r.script,i=r.value,e=e.getHash()}return this.__addInputUnsafe(e,t,{sequence:r,prevOutScript:n,value:i})},m.prototype.__addInputUnsafe=function(e,t,r){if(d.isCoinbaseHash(e))throw new Error("coinbase inputs not supported");const n=e.toString("hex")+":"+t;if(void 0!==this.__prevTxSet[n])throw new Error("Duplicate TxOut: "+n);let i={};if(void 0!==r.script&&(i=function e(t,r,n,i){if(0===t.length&&0===r.length)return{};if(!n){let e=f.input(t,!0),i=f.witness(r,!0);e===h.NONSTANDARD&&(e=void 0),i===h.NONSTANDARD&&(i=void 0),n=e||i}switch(n){case h.P2WPKH:{const{output:e,pubkey:t,signature:n}=u.p2wpkh({witness:r});return{prevOutScript:e,prevOutType:h.P2WPKH,pubkeys:[t],signatures:[n]}}case h.P2PKH:{const{output:e,pubkey:r,signature:n}=u.p2pkh({input:t});return{prevOutScript:e,prevOutType:h.P2PKH,pubkeys:[r],signatures:[n]}}case h.P2PK:{const{signature:e}=u.p2pk({input:t});return{prevOutType:h.P2PK,pubkeys:[void 0],signatures:[e]}}case h.P2MS:{const{m:e,pubkeys:r,signatures:n}=u.p2ms({input:t,output:i},{allowIncomplete:!0});return{prevOutType:h.P2MS,pubkeys:r,signatures:n,maxSignatures:e}}}if(n===h.P2SH){const{output:n,redeem:i}=u.p2sh({input:t,witness:r}),o=f.output(i.output),a=e(i.input,i.witness,o,i.output);return a.prevOutType?{prevOutScript:n,prevOutType:h.P2SH,redeemScript:i.output,redeemScriptType:a.prevOutType,witnessScript:a.witnessScript,witnessScriptType:a.witnessScriptType,pubkeys:a.pubkeys,signatures:a.signatures}:{}}if(n===h.P2WSH){const{output:n,redeem:i}=u.p2wsh({input:t,witness:r}),a=f.output(i.output);let s;return(s=a===h.P2WPKH?e(i.input,i.witness,a):e(o.compile(i.witness),[],a,i.output)).prevOutType?{prevOutScript:n,prevOutType:h.P2WSH,witnessScript:i.output,witnessScriptType:s.prevOutType,pubkeys:s.pubkeys,signatures:s.signatures}:{}}return{prevOutType:h.NONSTANDARD,prevOutScript:t}}(r.script,r.witness||[])),void 0!==r.value&&(i.value=r.value),!i.prevOutScript&&r.prevOutScript){let e;if(!i.pubkeys&&!i.signatures){const t=p(r.prevOutScript);t.pubkeys&&(i.pubkeys=t.pubkeys,i.signatures=t.signatures),e=t.type}i.prevOutScript=r.prevOutScript,i.prevOutType=e||f.output(r.prevOutScript)}const a=this.__tx.addInput(e,t,r.sequence,r.scriptSig);return this.__inputs[a]=i,this.__prevTxSet[n]=!0,a},m.prototype.addOutput=function(e,t){if(!this.__canModifyOutputs())throw new Error("No, this would invalidate signatures");return"string"==typeof e&&(e=n.toOutputScript(e,this.network)),this.__tx.addOutput(e,t)},m.prototype.build=function(){return this.__build(!1)},m.prototype.buildIncomplete=function(){return this.__build(!0)},m.prototype.__build=function(e){if(!e){if(!this.__tx.ins.length)throw new Error("Transaction has no inputs");if(!this.__tx.outs.length)throw new Error("Transaction has no outputs")}const t=this.__tx.clone();if(this.__inputs.forEach(function(r,n){if(!r.prevOutType&&!e)throw new Error("Transaction is not complete");const i=function e(t,r,n){const i=r.pubkeys||[];let o=r.signatures||[];switch(t){case h.P2PKH:if(0===i.length)break;if(0===o.length)break;return u.p2pkh({pubkey:i[0],signature:o[0]});case h.P2WPKH:if(0===i.length)break;if(0===o.length)break;return u.p2wpkh({pubkey:i[0],signature:o[0]});case h.P2PK:if(0===i.length)break;if(0===o.length)break;return u.p2pk({signature:o[0]});case h.P2MS:{const e=r.maxSignatures;o=n?o.map(e=>e||s.OP_0):o.filter(e=>e);const t=!n||e===o.length;return u.p2ms({m:e,pubkeys:i,signatures:o},{allowIncomplete:n,validate:t})}case h.P2SH:{const t=e(r.redeemScriptType,r,n);if(!t)return;return u.p2sh({redeem:{output:t.output||r.redeemScript,input:t.input,witness:t.witness}})}case h.P2WSH:{const t=e(r.witnessScriptType,r,n);if(!t)return;return u.p2wsh({redeem:{output:r.witnessScript,input:t.input,witness:t.witness}})}}}(r.prevOutType,r,e);if(i)t.setInputScript(n,i.input),t.setWitness(n,i.witness);else{if(!e&&r.prevOutType===h.NONSTANDARD)throw new Error("Unknown input type");if(!e)throw new Error("Not enough information")}}),!e&&this.__overMaximumFees(t.virtualSize()))throw new Error("Transaction has absurd fees");return t},m.prototype.sign=function(e,t,r,n,i,a){if(t.network&&t.network!==this.network)throw new TypeError("Inconsistent network");if(!this.__inputs[e])throw new Error("No input at index: "+e);if(n=n||d.SIGHASH_ALL,this.__needsOutputs(n))throw new Error("Transaction needs outputs");const s=this.__inputs[e];if(void 0!==s.redeemScript&&r&&!s.redeemScript.equals(r))throw new Error("Inconsistent redeemScript");const f=t.publicKey||t.getPublicKey();if(!g(s)){if(void 0!==i){if(void 0!==s.value&&s.value!==i)throw new Error("Input didn't match witnessValue");c(l.Satoshi,i),s.value=i}if(!g(s)){const e=function(e,t,r,n){if(r&&n){const i=u.p2wsh({redeem:{output:n}}),a=u.p2wsh({output:r}),s=u.p2sh({redeem:{output:r}}),c=u.p2sh({redeem:i});if(!i.hash.equals(a.hash))throw new Error("Witness script inconsistent with prevOutScript");if(!s.hash.equals(c.hash))throw new Error("Redeem script inconsistent with prevOutScript");const l=p(i.redeem.output,t);if(!l.pubkeys)throw new Error(l.type+" not supported as witnessScript ("+o.toASM(n)+")");e.signatures&&e.signatures.some(e=>e)&&(l.signatures=e.signatures);let f=n;if(l.type===h.P2WPKH)throw new Error("P2SH(P2WSH(P2WPKH)) is a consensus failure");return{redeemScript:r,redeemScriptType:h.P2WSH,witnessScript:n,witnessScriptType:l.type,prevOutType:h.P2SH,prevOutScript:s.output,hasWitness:!0,signScript:f,signType:l.type,pubkeys:l.pubkeys,signatures:l.signatures,maxSignatures:l.maxSignatures}}if(r){const n=u.p2sh({redeem:{output:r}});if(e.prevOutScript){let t;try{t=u.p2sh({output:e.prevOutScript})}catch(e){throw new Error("PrevOutScript must be P2SH")}if(!n.hash.equals(t.hash))throw new Error("Redeem script inconsistent with prevOutScript")}const i=p(n.redeem.output,t);if(!i.pubkeys)throw new Error(i.type+" not supported as redeemScript ("+o.toASM(r)+")");e.signatures&&e.signatures.some(e=>e)&&(i.signatures=e.signatures);let a=r;return i.type===h.P2WPKH&&(a=u.p2pkh({pubkey:i.pubkeys[0]}).output),{redeemScript:r,redeemScriptType:i.type,prevOutType:h.P2SH,prevOutScript:n.output,hasWitness:i.type===h.P2WPKH,signScript:a,signType:i.type,pubkeys:i.pubkeys,signatures:i.signatures,maxSignatures:i.maxSignatures}}if(n){const r=u.p2wsh({redeem:{output:n}});if(e.prevOutScript){const t=u.p2wsh({output:e.prevOutScript});if(!r.hash.equals(t.hash))throw new Error("Witness script inconsistent with prevOutScript")}const i=p(r.redeem.output,t);if(!i.pubkeys)throw new Error(i.type+" not supported as witnessScript ("+o.toASM(n)+")");e.signatures&&e.signatures.some(e=>e)&&(i.signatures=e.signatures);let a=n;if(i.type===h.P2WPKH)throw new Error("P2WSH(P2WPKH) is a consensus failure");return{witnessScript:n,witnessScriptType:i.type,prevOutType:h.P2WSH,prevOutScript:r.output,hasWitness:!0,signScript:a,signType:i.type,pubkeys:i.pubkeys,signatures:i.signatures,maxSignatures:i.maxSignatures}}if(e.prevOutType&&e.prevOutScript){if(e.prevOutType===h.P2SH)throw new Error("PrevOutScript is "+e.prevOutType+", requires redeemScript");if(e.prevOutType===h.P2WSH)throw new Error("PrevOutScript is "+e.prevOutType+", requires witnessScript");if(!e.prevOutScript)throw new Error("PrevOutScript is missing");const r=p(e.prevOutScript,t);if(!r.pubkeys)throw new Error(r.type+" not supported ("+o.toASM(e.prevOutScript)+")");e.signatures&&e.signatures.some(e=>e)&&(r.signatures=e.signatures);let n=e.prevOutScript;return r.type===h.P2WPKH&&(n=u.p2pkh({pubkey:r.pubkeys[0]}).output),{prevOutType:r.type,prevOutScript:e.prevOutScript,hasWitness:r.type===h.P2WPKH,signScript:n,signType:r.type,pubkeys:r.pubkeys,signatures:r.signatures,maxSignatures:r.maxSignatures}}const i=u.p2pkh({pubkey:t}).output;return{prevOutType:h.P2PKH,prevOutScript:i,hasWitness:!1,signScript:i,signType:h.P2PKH,pubkeys:[t],signatures:[void 0]}}(s,f,r,a);Object.assign(s,e)}if(!g(s))throw Error(s.prevOutType+" not supported")}let m;if(m=s.hasWitness?this.__tx.hashForWitnessV0(e,s.signScript,s.value,n):this.__tx.hashForSignature(e,s.signScript,n),!s.pubkeys.some(function(e,r){if(!f.equals(e))return!1;if(s.signatures[r])throw new Error("Signature already exists");if(33!==f.length&&s.hasWitness)throw new Error("BIP143 rejects uncompressed public keys in P2WPKH or P2WSH");const i=t.sign(m);return s.signatures[r]=o.signature.encode(i,n),!0}))throw new Error("Key pair cannot sign for this input")},m.prototype.__canModifyInputs=function(){return this.__inputs.every(function(e){return!e.signatures||e.signatures.every(function(e){if(!e)return!0;return v(e)&d.SIGHASH_ANYONECANPAY})})},m.prototype.__needsOutputs=function(e){return e===d.SIGHASH_ALL?0===this.__tx.outs.length:0===this.__tx.outs.length&&this.__inputs.some(e=>!!e.signatures&&e.signatures.some(e=>{if(!e)return!1;return!(v(e)&d.SIGHASH_NONE)}))},m.prototype.__canModifyOutputs=function(){const e=this.__tx.ins.length,t=this.__tx.outs.length;return this.__inputs.every(function(r){return void 0===r.signatures||r.signatures.every(function(r){if(!r)return!0;const n=31&v(r);return n===d.SIGHASH_NONE||(n===d.SIGHASH_SINGLE?e<=t:void 0)})})},m.prototype.__overMaximumFees=function(e){return(this.__inputs.reduce(function(e,t){return e+(t.value>>>0)},0)-this.__tx.outs.reduce(function(e,t){return e+t.value},0))/e>this.maximumFeeRate},e.exports=m},function(e,t,r){"use strict";const n=r(51),i=r(5),o=r(10),a=r(8),s=r(25).bitcoin;e.exports=function(e,t){if(!e.data&&!e.output)throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),i({network:i.maybe(i.Object),output:i.maybe(i.Buffer),data:i.maybe(i.arrayOf(i.Buffer))},e);const r={network:e.network||s};if(n.prop(r,"output",function(){if(e.data)return a.compile([o.OP_RETURN].concat(e.data))}),n.prop(r,"data",function(){if(e.output)return a.decompile(e.output).slice(1)}),t.validate&&e.output){const t=a.decompile(e.output);if(t[0]!==o.OP_RETURN)throw new TypeError("Output is invalid");if(!t.slice(1).every(i.Buffer))throw new TypeError("Output is invalid");if(e.data&&!function(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t[r])})}(e.data,r.data))throw new TypeError("Data mismatch")}return Object.assign(r,e)}},function(e,t,r){"use strict";const n=r(51),i=r(5),o=r(10),a=r(15),s=r(8),u=r(25).bitcoin,c=o.OP_RESERVED;function l(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t[r])})}e.exports=function(e,t){if(!(e.input||e.output||e.pubkeys&&void 0!==e.m||e.signatures))throw new TypeError("Not enough data");function r(e){return s.isCanonicalScriptSignature(e)||t.allowIncomplete&&e===o.OP_0}t=Object.assign({validate:!0},t||{}),i({network:i.maybe(i.Object),m:i.maybe(i.Number),n:i.maybe(i.Number),output:i.maybe(i.Buffer),pubkeys:i.maybe(i.arrayOf(a.isPoint)),signatures:i.maybe(i.arrayOf(r)),input:i.maybe(i.Buffer)},e);const f={network:e.network||u};let h,d=!1;function p(e){d||(d=!0,h=s.decompile(e),f.m=h[0]-c,f.n=h[h.length-2]-c,f.pubkeys=h.slice(1,-2))}if(n.prop(f,"output",function(){if(e.m&&f.n&&e.pubkeys)return s.compile([].concat(c+e.m,e.pubkeys,c+f.n,o.OP_CHECKMULTISIG))}),n.prop(f,"m",function(){if(f.output)return p(f.output),f.m}),n.prop(f,"n",function(){if(f.pubkeys)return f.pubkeys.length}),n.prop(f,"pubkeys",function(){if(e.output)return p(e.output),f.pubkeys}),n.prop(f,"signatures",function(){if(e.input)return s.decompile(e.input).slice(1)}),n.prop(f,"input",function(){if(e.signatures)return s.compile([o.OP_0].concat(e.signatures))}),n.prop(f,"witness",function(){if(f.input)return[]}),t.validate){if(e.output){if(p(e.output),!i.Number(h[0]))throw new TypeError("Output is invalid");if(!i.Number(h[h.length-2]))throw new TypeError("Output is invalid");if(h[h.length-1]!==o.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(f.m<=0||f.n>16||f.m>f.n||f.n!==h.length-3)throw new TypeError("Output is invalid");if(!f.pubkeys.every(e=>a.isPoint(e)))throw new TypeError("Output is invalid");if(void 0!==e.m&&e.m!==f.m)throw new TypeError("m mismatch");if(void 0!==e.n&&e.n!==f.n)throw new TypeError("n mismatch");if(e.pubkeys&&!l(e.pubkeys,f.pubkeys))throw new TypeError("Pubkeys mismatch")}if(e.pubkeys){if(void 0!==e.n&&e.n!==e.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(f.n=e.pubkeys.length,f.nf.m)throw new TypeError("Too many signatures provided")}if(e.input){if(e.input[0]!==o.OP_0)throw new TypeError("Input is invalid");if(0===f.signatures.length||!f.signatures.every(r))throw new TypeError("Input has invalid signature(s)");if(e.signatures&&!l(e.signatures,f.signatures))throw new TypeError("Signature mismatch");if(void 0!==e.m&&e.m!==e.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(f,e)}},function(e,t,r){"use strict";const n=r(51),i=r(5),o=r(10),a=r(15),s=r(8),u=r(25).bitcoin;e.exports=function(e,t){if(!(e.input||e.output||e.pubkey||e.input||e.signature))throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),i({network:i.maybe(i.Object),output:i.maybe(i.Buffer),pubkey:i.maybe(a.isPoint),signature:i.maybe(s.isCanonicalScriptSignature),input:i.maybe(i.Buffer)},e);const r=n.value(function(){return s.decompile(e.input)}),c={network:e.network||u};if(n.prop(c,"output",function(){if(e.pubkey)return s.compile([e.pubkey,o.OP_CHECKSIG])}),n.prop(c,"pubkey",function(){if(e.output)return e.output.slice(1,-1)}),n.prop(c,"signature",function(){if(e.input)return r()[0]}),n.prop(c,"input",function(){if(e.signature)return s.compile([e.signature])}),n.prop(c,"witness",function(){if(c.input)return[]}),t.validate){if(e.output){if(e.output[e.output.length-1]!==o.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!a.isPoint(c.pubkey))throw new TypeError("Output pubkey is invalid");if(e.pubkey&&!e.pubkey.equals(c.pubkey))throw new TypeError("Pubkey mismatch")}if(e.signature&&e.input&&!e.input.equals(c.input))throw new TypeError("Signature mismatch");if(e.input){if(1!==r().length)throw new TypeError("Input is invalid");if(!s.isCanonicalScriptSignature(c.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(c,e)}},function(e,t,r){"use strict";(function(Buffer){const t=r(51),n=r(5),i=r(10),o=r(15),a=r(43),s=r(8),u=r(25).bitcoin,c=r(35);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.pubkey||e.input))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),n({network:n.maybe(n.Object),address:n.maybe(n.String),hash:n.maybe(n.BufferN(20)),output:n.maybe(n.BufferN(25)),pubkey:n.maybe(o.isPoint),signature:n.maybe(s.isCanonicalScriptSignature),input:n.maybe(n.Buffer)},e);const l=t.value(function(){const t=c.decode(e.address);return{version:t.readUInt8(0),hash:t.slice(1)}}),f=t.value(function(){return s.decompile(e.input)}),h=e.network||u,d={network:h};if(t.prop(d,"address",function(){if(!d.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(h.pubKeyHash,0),d.hash.copy(e,1),c.encode(e)}),t.prop(d,"hash",function(){return e.output?e.output.slice(3,23):e.address?l().hash:e.pubkey||d.pubkey?a.hash160(e.pubkey||d.pubkey):void 0}),t.prop(d,"output",function(){if(d.hash)return s.compile([i.OP_DUP,i.OP_HASH160,d.hash,i.OP_EQUALVERIFY,i.OP_CHECKSIG])}),t.prop(d,"pubkey",function(){if(e.input)return f()[1]}),t.prop(d,"signature",function(){if(e.input)return f()[0]}),t.prop(d,"input",function(){if(e.pubkey&&e.signature)return s.compile([e.signature,e.pubkey])}),t.prop(d,"witness",function(){if(d.input)return[]}),r.validate){let t;if(e.address){if(l().version!==h.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(20!==l().hash.length)throw new TypeError("Invalid address");t=l().hash}if(e.hash){if(t&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(25!==e.output.length||e.output[0]!==i.OP_DUP||e.output[1]!==i.OP_HASH160||20!==e.output[2]||e.output[23]!==i.OP_EQUALVERIFY||e.output[24]!==i.OP_CHECKSIG)throw new TypeError("Output is invalid");const r=e.output.slice(3,23);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.pubkey){const r=a.hash160(e.pubkey);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.input){const r=f();if(2!==r.length)throw new TypeError("Input is invalid");if(!s.isCanonicalScriptSignature(r[0]))throw new TypeError("Input has invalid signature");if(!o.isPoint(r[1]))throw new TypeError("Input has invalid pubkey");if(e.signature&&!e.signature.equals(r[0]))throw new TypeError("Signature mismatch");if(e.pubkey&&!e.pubkey.equals(r[1]))throw new TypeError("Pubkey mismatch");const n=a.hash160(r[1]);if(t&&!t.equals(n))throw new TypeError("Hash mismatch")}}return Object.assign(d,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){const t=r(51),n=r(5),i=r(10),o=r(43),a=r(8),s=r(25).bitcoin,u=r(35);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.redeem||e.input))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),n({network:n.maybe(n.Object),address:n.maybe(n.String),hash:n.maybe(n.BufferN(20)),output:n.maybe(n.BufferN(23)),redeem:n.maybe({network:n.maybe(n.Object),output:n.maybe(n.Buffer),input:n.maybe(n.Buffer),witness:n.maybe(n.arrayOf(n.Buffer))}),input:n.maybe(n.Buffer),witness:n.maybe(n.arrayOf(n.Buffer))},e);let c=e.network;c||(c=e.redeem&&e.redeem.network||s);const l={network:c},f=t.value(function(){const t=u.decode(e.address);return{version:t.readUInt8(0),hash:t.slice(1)}}),h=t.value(function(){return a.decompile(e.input)}),d=t.value(function(){const t=h();return{network:c,output:t[t.length-1],input:a.compile(t.slice(0,-1)),witness:e.witness||[]}});if(t.prop(l,"address",function(){if(!l.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(c.scriptHash,0),l.hash.copy(e,1),u.encode(e)}),t.prop(l,"hash",function(){return e.output?e.output.slice(2,22):e.address?f().hash:l.redeem&&l.redeem.output?o.hash160(l.redeem.output):void 0}),t.prop(l,"output",function(){if(l.hash)return a.compile([i.OP_HASH160,l.hash,i.OP_EQUAL])}),t.prop(l,"redeem",function(){if(e.input)return d()}),t.prop(l,"input",function(){if(e.redeem&&e.redeem.input&&e.redeem.output)return a.compile([].concat(a.decompile(e.redeem.input),e.redeem.output))}),t.prop(l,"witness",function(){return l.redeem&&l.redeem.witness?l.redeem.witness:l.input?[]:void 0}),r.validate){let t;if(e.address){if(f().version!==c.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(20!==f().hash.length)throw new TypeError("Invalid address");t=f().hash}if(e.hash){if(t&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(23!==e.output.length||e.output[0]!==i.OP_HASH160||20!==e.output[1]||e.output[22]!==i.OP_EQUAL)throw new TypeError("Output is invalid");const r=e.output.slice(2,22);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}const r=function(e){if(e.output){const r=a.decompile(e.output);if(!r||r.length<1)throw new TypeError("Redeem.output too short");const n=o.hash160(e.output);if(t&&!t.equals(n))throw new TypeError("Hash mismatch");t=n}if(e.input){const t=e.input.length>0,r=e.witness&&e.witness.length>0;if(!t&&!r)throw new TypeError("Empty input");if(t&&r)throw new TypeError("Input and witness provided");if(t){const t=a.decompile(e.input);if(!a.isPushOnly(t))throw new TypeError("Non push-only scriptSig")}}};if(e.input){const e=h();if(!e||e.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(d().output))throw new TypeError("Input is invalid");r(d())}if(e.redeem){if(e.redeem.network&&e.redeem.network!==c)throw new TypeError("Network mismatch");if(e.input){const t=d();if(e.redeem.output&&!e.redeem.output.equals(t.output))throw new TypeError("Redeem.output mismatch");if(e.redeem.input&&!e.redeem.input.equals(t.input))throw new TypeError("Redeem.input mismatch")}r(e.redeem)}if(e.witness&&e.redeem&&e.redeem.witness&&!function(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t[r])})}(e.redeem.witness,e.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(l,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){const t=r(51),n=r(5),i=r(10),o=r(15),a=r(43),s=r(55),u=r(8),c=r(25).bitcoin,l=Buffer.alloc(0);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.pubkey||e.witness))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),n({address:n.maybe(n.String),hash:n.maybe(n.BufferN(20)),input:n.maybe(n.BufferN(0)),network:n.maybe(n.Object),output:n.maybe(n.BufferN(22)),pubkey:n.maybe(o.isPoint),signature:n.maybe(u.isCanonicalScriptSignature),witness:n.maybe(n.arrayOf(n.Buffer))},e);const f=t.value(function(){const t=s.decode(e.address),r=t.words.shift(),n=s.fromWords(t.words);return{version:r,prefix:t.prefix,data:Buffer.from(n)}}),h=e.network||c,d={network:h};if(t.prop(d,"address",function(){if(!d.hash)return;const e=s.toWords(d.hash);return e.unshift(0),s.encode(h.bech32,e)}),t.prop(d,"hash",function(){return e.output?e.output.slice(2,22):e.address?f().data:e.pubkey||d.pubkey?a.hash160(e.pubkey||d.pubkey):void 0}),t.prop(d,"output",function(){if(d.hash)return u.compile([i.OP_0,d.hash])}),t.prop(d,"pubkey",function(){return e.pubkey?e.pubkey:e.witness?e.witness[1]:void 0}),t.prop(d,"signature",function(){if(e.witness)return e.witness[0]}),t.prop(d,"input",function(){if(d.witness)return l}),t.prop(d,"witness",function(){if(e.pubkey&&e.signature)return[e.signature,e.pubkey]}),r.validate){let t;if(e.address){if(h&&h.bech32!==f().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(0!==f().version)throw new TypeError("Invalid address version");if(20!==f().data.length)throw new TypeError("Invalid address data");t=f().data}if(e.hash){if(t&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(22!==e.output.length||e.output[0]!==i.OP_0||20!==e.output[1])throw new TypeError("Output is invalid");if(t&&!t.equals(e.output.slice(2)))throw new TypeError("Hash mismatch");t=e.output.slice(2)}if(e.pubkey){const r=a.hash160(e.pubkey);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.witness){if(2!==e.witness.length)throw new TypeError("Witness is invalid");if(!u.isCanonicalScriptSignature(e.witness[0]))throw new TypeError("Witness has invalid signature");if(!o.isPoint(e.witness[1]))throw new TypeError("Witness has invalid pubkey");if(e.signature&&!e.signature.equals(e.witness[0]))throw new TypeError("Signature mismatch");if(e.pubkey&&!e.pubkey.equals(e.witness[1]))throw new TypeError("Pubkey mismatch");const r=a.hash160(e.witness[1]);if(t&&!t.equals(r))throw new TypeError("Hash mismatch")}}return Object.assign(d,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){const t=r(51),n=r(5),i=r(10),o=r(55),a=r(43),s=r(8),u=r(25).bitcoin,c=Buffer.alloc(0);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.redeem||e.witness))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),n({network:n.maybe(n.Object),address:n.maybe(n.String),hash:n.maybe(n.BufferN(32)),output:n.maybe(n.BufferN(34)),redeem:n.maybe({input:n.maybe(n.Buffer),network:n.maybe(n.Object),output:n.maybe(n.Buffer),witness:n.maybe(n.arrayOf(n.Buffer))}),input:n.maybe(n.BufferN(0)),witness:n.maybe(n.arrayOf(n.Buffer))},e);const l=t.value(function(){const t=o.decode(e.address),r=t.words.shift(),n=o.fromWords(t.words);return{version:r,prefix:t.prefix,data:Buffer.from(n)}}),f=t.value(function(){return s.decompile(e.redeem.input)});let h=e.network;h||(h=e.redeem&&e.redeem.network||u);const d={network:h};if(t.prop(d,"address",function(){if(!d.hash)return;const e=o.toWords(d.hash);return e.unshift(0),o.encode(h.bech32,e)}),t.prop(d,"hash",function(){return e.output?e.output.slice(2):e.address?l().data:d.redeem&&d.redeem.output?a.sha256(d.redeem.output):void 0}),t.prop(d,"output",function(){if(d.hash)return s.compile([i.OP_0,d.hash])}),t.prop(d,"redeem",function(){if(e.witness)return{output:e.witness[e.witness.length-1],input:c,witness:e.witness.slice(0,-1)}}),t.prop(d,"input",function(){if(d.witness)return c}),t.prop(d,"witness",function(){if(e.redeem&&e.redeem.input&&e.redeem.input.length>0&&e.redeem.output&&e.redeem.output.length>0){const t=s.toStack(f());return d.redeem=Object.assign({witness:t},e.redeem),d.redeem.input=c,[].concat(t,e.redeem.output)}if(e.redeem&&e.redeem.output&&e.redeem.witness)return[].concat(e.redeem.witness,e.redeem.output)}),r.validate){let t;if(e.address){if(l().prefix!==h.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(0!==l().version)throw new TypeError("Invalid address version");if(32!==l().data.length)throw new TypeError("Invalid address data");t=l().data}if(e.hash){if(t&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(34!==e.output.length||e.output[0]!==i.OP_0||32!==e.output[1])throw new TypeError("Output is invalid");const r=e.output.slice(2);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.redeem){if(e.redeem.network&&e.redeem.network!==h)throw new TypeError("Network mismatch");if(e.redeem.input&&e.redeem.input.length>0&&e.redeem.witness&&e.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(e.redeem.output){if(0===s.decompile(e.redeem.output).length)throw new TypeError("Redeem.output is invalid");const r=a.sha256(e.redeem.output);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.redeem.input&&!s.isPushOnly(f()))throw new TypeError("Non push-only scriptSig");if(e.witness&&e.redeem.witness&&!function(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t[r])})}(e.witness,e.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch")}if(e.witness&&e.redeem&&e.redeem.output&&!e.redeem.output.equals(e.witness[e.witness.length-1]))throw new TypeError("Witness and redeem.output mismatch")}return Object.assign(d,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";const n=r(8).decompile,i=r(138),o=r(514),a=r(139),s=r(140),u=r(519),c=r(522),l=r(524),f=r(526),h={P2MS:"multisig",NONSTANDARD:"nonstandard",NULLDATA:"nulldata",P2PK:"pubkey",P2PKH:"pubkeyhash",P2SH:"scripthash",P2WPKH:"witnesspubkeyhash",P2WSH:"witnessscripthash",WITNESS_COMMITMENT:"witnesscommitment"};e.exports={input:function(e,t){const r=n(e);if(!r)throw new TypeError("Invalid script");return s.input.check(r)?h.P2PKH:u.input.check(r,t)?h.P2SH:i.input.check(r,t)?h.P2MS:a.input.check(r)?h.P2PK:h.NONSTANDARD},output:function(e){if(c.output.check(e))return h.P2WPKH;if(l.output.check(e))return h.P2WSH;if(s.output.check(e))return h.P2PKH;if(u.output.check(e))return h.P2SH;const t=n(e);if(!t)throw new TypeError("Invalid script");return i.output.check(t)?h.P2MS:a.output.check(t)?h.P2PK:f.output.check(t)?h.WITNESS_COMMITMENT:o.output.check(t)?h.NULLDATA:h.NONSTANDARD},witness:function(e,t){const r=n(e);if(!r)throw new TypeError("Invalid script");return c.input.check(r)?h.P2WPKH:l.input.check(r,t)?h.P2WSH:h.NONSTANDARD},types:h}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){return e===i.OP_0||n.isCanonicalScriptSignature(e)}function a(e,t){const r=n.decompile(e);return!(r.length<2)&&(r[0]===i.OP_0&&(t?r.slice(1).every(o):r.slice(1).every(n.isCanonicalScriptSignature)))}a.toJSON=function(){return"multisig input"},e.exports={check:a}},function(e,t,r){"use strict";const n=r(8),i=r(30),o=r(10),a=o.OP_RESERVED;function s(e,t){const r=n.decompile(e);if(r.length<4)return!1;if(r[r.length-1]!==o.OP_CHECKMULTISIG)return!1;if(!i.Number(r[0]))return!1;if(!i.Number(r[r.length-2]))return!1;const s=r[0]-a,u=r[r.length-2]-a;return!(s<=0)&&(!(u>16)&&(!(s>u)&&(u===r.length-3&&(!!t||r.slice(1,-2).every(n.isCanonicalPubKey)))))}s.toJSON=function(){return"multi-sig output"},e.exports={check:s}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return t.length>1&&t[0]===i.OP_RETURN}o.toJSON=function(){return"null data output"},e.exports={output:{check:o}}},function(e,t,r){"use strict";const n=r(8);function i(e){const t=n.decompile(e);return 1===t.length&&n.isCanonicalScriptSignature(t[0])}i.toJSON=function(){return"pubKey input"},e.exports={check:i}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalPubKey(t[0])&&t[1]===i.OP_CHECKSIG}o.toJSON=function(){return"pubKey output"},e.exports={check:o}},function(e,t,r){"use strict";const n=r(8);function i(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalScriptSignature(t[0])&&n.isCanonicalPubKey(t[1])}i.toJSON=function(){return"pubKeyHash input"},e.exports={check:i}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return 25===t.length&&t[0]===i.OP_DUP&&t[1]===i.OP_HASH160&&20===t[2]&&t[23]===i.OP_EQUALVERIFY&&t[24]===i.OP_CHECKSIG}o.toJSON=function(){return"pubKeyHash output"},e.exports={check:o}},function(e,t,r){"use strict";e.exports={input:r(520),output:r(521)}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(8),i=r(138),o=r(139),a=r(140),s=r(225),u=r(226);function c(e,t){const r=n.decompile(e);if(r.length<1)return!1;const c=r[r.length-1];if(!Buffer.isBuffer(c))return!1;const l=n.decompile(n.compile(r.slice(0,-1))),f=n.decompile(c);return!!f&&(!!n.isPushOnly(l)&&(1===r.length?u.check(f)||s.check(f):!(!a.input.check(l)||!a.output.check(f))||(!(!i.input.check(l,t)||!i.output.check(f))||!(!o.input.check(l)||!o.output.check(f)))))}c.toJSON=function(){return"scriptHash input"},e.exports={check:c}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return 23===t.length&&t[0]===i.OP_HASH160&&20===t[1]&&t[22]===i.OP_EQUAL}o.toJSON=function(){return"scriptHash output"},e.exports={check:o}},function(e,t,r){"use strict";e.exports={input:r(523),output:r(225)}},function(e,t,r){"use strict";const n=r(8);function i(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalScriptSignature(t[0])&&(r=t[1],n.isCanonicalPubKey(r)&&33===r.length);var r}i.toJSON=function(){return"witnessPubKeyHash input"},e.exports={check:i}},function(e,t,r){"use strict";e.exports={input:r(525),output:r(226)}},function(e,t,r){"use strict";(function(Buffer){const t=r(8),n=r(30),i=r(5),o=r(138),a=r(139),s=r(140);function u(e,r){if(i(n.Array,e),e.length<1)return!1;const u=e[e.length-1];if(!Buffer.isBuffer(u))return!1;const c=t.decompile(u);if(!c||0===c.length)return!1;const l=t.compile(e.slice(0,-1));return!(!s.input.check(l)||!s.output.check(c))||(!(!o.input.check(l,r)||!o.output.check(c))||!(!a.input.check(l)||!a.output.check(c)))}u.toJSON=function(){return"witnessScriptHash input"},e.exports={check:u}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports={output:r(527)}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(8),i=r(30),o=r(5),a=r(10),s=Buffer.from("aa21a9ed","hex");function u(e){const t=n.compile(e);return t.length>37&&t[0]===a.OP_RETURN&&36===t[1]&&t.slice(2,6).equals(s)}u.toJSON=function(){return"Witness commitment output"},e.exports={check:u,decode:function(e){return o(u,e),n.decompile(e)[1].slice(4,36)},encode:function(e){o(i.Hash256bit,e);const t=Buffer.allocUnsafe(36);return s.copy(t,0),e.copy(t,4),n.compile([a.OP_RETURN,t])}}},function(e,t,r){"use strict";let n=r(21),i=r(69);e.exports={hash160:function(e){const t=n("sha256").update(e).digest();try{return n("rmd160").update(t).digest()}catch(e){return n("ripemd160").update(t).digest()}},hmacSHA512:function(e,t){return i("sha512",e).update(t).digest()}}},function(e,t,r){"use strict";var n=r(530),i=r(531);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(532);function y(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?M+="x":M+=I[D];if(!M.match(d)){var N=C.slice(0,O),z=C.slice(O+1),R=I.match(p);R&&(N.push(R[1]),z.unshift(R[2])),z.length&&(y="/"+z.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[k])for(O=0,j=l.length;O0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=S.slice(-1)[0],A=(r.host||e.host||S.length>1)&&("."===E||".."===E)||""===E,O=0,P=S.length;P>=0;P--)"."===(E=S[P])?S.splice(P,1):".."===E?(S.splice(P,1),O++):O&&(S.splice(P,1),O--);if(!w&&!k)for(;O--;O)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var T,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);x&&(r.hostname=r.host=C?"":S.length?S.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(w=w||r.host&&S.length)&&!C&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";(function(e,n){var i; + */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",h=1,d=2,p=4,m=1,g=2,v=1,b=2,y=4,_=8,w=16,k=32,S=64,x=128,E=256,A=512,O=30,P="...",T=800,C=16,j=1,I=2,M=1/0,D=9007199254740991,B=1.7976931348623157e308,N=NaN,z=4294967295,R=z-1,F=z>>>1,U=[["ary",x],["bind",v],["bindKey",b],["curry",_],["curryRight",w],["flip",A],["partial",k],["partialRight",S],["rearg",E]],$="[object Arguments]",L="[object Array]",q="[object AsyncFunction]",H="[object Boolean]",V="[object Date]",K="[object DOMException]",W="[object Error]",G="[object Function]",Z="[object GeneratorFunction]",Y="[object Map]",X="[object Number]",J="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",fe="[object Float64Array]",he="[object Int8Array]",de="[object Int16Array]",pe="[object Int32Array]",me="[object Uint8Array]",ge="[object Uint8ClampedArray]",ve="[object Uint16Array]",be="[object Uint32Array]",ye=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,xe=RegExp(ke.source),Ee=RegExp(Se.source),Ae=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(Ie.source),De=/^\s+|\s+$/g,Be=/^\s+/,Ne=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Re=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$e=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,He=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Ge=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+Je+"]",nt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:"+ot+"|"+at+")",dt="(?:"+ft+"|"+at+")",pt="(?:"+rt+"|"+st+")"+"?",mt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[ut,ct,lt].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),gt="(?:"+[it,ct,lt].join("|")+")"+mt,vt="(?:"+[ut+rt+"?",rt,ct,lt,et].join("|")+")",bt=RegExp("['’]","g"),yt=RegExp(rt,"g"),_t=RegExp(st+"(?="+st+")|"+vt+mt,"g"),wt=RegExp([ft+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+ht,"$"].join("|")+")",ft+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,gt].join("|"),"g"),kt=RegExp("[\\u200d\\ud800-\\udfff"+Je+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Et=-1,At={};At[le]=At[fe]=At[he]=At[de]=At[pe]=At[me]=At[ge]=At[ve]=At[be]=!0,At[$]=At[L]=At[ue]=At[H]=At[ce]=At[V]=At[W]=At[G]=At[Y]=At[X]=At[Q]=At[te]=At[re]=At[ne]=At[ae]=!1;var Ot={};Ot[$]=Ot[L]=Ot[ue]=Ot[ce]=Ot[H]=Ot[V]=Ot[le]=Ot[fe]=Ot[he]=Ot[de]=Ot[pe]=Ot[Y]=Ot[X]=Ot[Q]=Ot[te]=Ot[re]=Ot[ne]=Ot[ie]=Ot[me]=Ot[ge]=Ot[ve]=Ot[be]=!0,Ot[W]=Ot[G]=Ot[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Ct=parseInt,jt="object"==typeof e&&e&&e.Object===Object&&e,It="object"==typeof self&&self&&self.Object===Object&&self,Mt=jt||It||Function("return this")(),Dt=t&&!t.nodeType&&t,Bt=Dt&&"object"==typeof n&&n&&!n.nodeType&&n,Nt=Bt&&Bt.exports===Dt,zt=Nt&&jt.process,Rt=function(){try{var e=Bt&&Bt.require&&Bt.require("util").types;return e||zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Ft=Rt&&Rt.isArrayBuffer,Ut=Rt&&Rt.isDate,$t=Rt&&Rt.isMap,Lt=Rt&&Rt.isRegExp,qt=Rt&&Rt.isSet,Ht=Rt&&Rt.isTypedArray;function Vt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Kt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function Jt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function _r(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var wr=hr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kr=hr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Sr(e){return"\\"+Pt[e]}function xr(e){return kt.test(e)}function Er(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Ar(e,t){return function(r){return e(t(r))}}function Or(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var Mr=function e(t){var r,n=(t=null==t?Mt:Mr.defaults(Mt.Object(),t,Mr.pick(Mt,xt))).Array,i=t.Date,Je=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,it=t.TypeError,ot=n.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ct=at.toString,lt=st.hasOwnProperty,ft=0,ht=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",dt=st.toString,pt=ct.call(tt),mt=Mt._,gt=rt("^"+ct.call(lt).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=Nt?t.Buffer:o,vt=t.Symbol,_t=t.Uint8Array,kt=Buffer?Buffer.allocUnsafe:o,Pt=Ar(tt.getPrototypeOf,tt),jt=tt.create,It=st.propertyIsEnumerable,Dt=ot.splice,Bt=vt?vt.isConcatSpreadable:o,zt=vt?vt.iterator:o,Rt=vt?vt.toStringTag:o,ir=function(){try{var e=Ro(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),hr=t.clearTimeout!==Mt.clearTimeout&&t.clearTimeout,Dr=i&&i.now!==Mt.Date.now&&i.now,Br=t.setTimeout!==Mt.setTimeout&&t.setTimeout,Nr=et.ceil,zr=et.floor,Rr=tt.getOwnPropertySymbols,Fr=Buffer?Buffer.isBuffer:o,Ur=t.isFinite,$r=ot.join,Lr=Ar(tt.keys,tt),qr=et.max,Hr=et.min,Vr=i.now,Kr=t.parseInt,Wr=et.random,Gr=ot.reverse,Zr=Ro(t,"DataView"),Yr=Ro(t,"Map"),Xr=Ro(t,"Promise"),Jr=Ro(t,"Set"),Qr=Ro(t,"WeakMap"),en=Ro(tt,"create"),tn=Qr&&new Qr,rn={},nn=la(Zr),on=la(Yr),an=la(Xr),sn=la(Jr),un=la(Qr),cn=vt?vt.prototype:o,ln=cn?cn.valueOf:o,fn=cn?cn.toString:o;function hn(e){if(Os(e)&&!gs(e)&&!(e instanceof gn)){if(e instanceof mn)return e;if(lt.call(e,"__wrapped__"))return fa(e)}return new mn(e)}var dn=function(){function e(){}return function(t){if(!As(t))return{};if(jt)return jt(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function pn(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function vn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Dn(e,t,r,n,i,a){var s,u=t&h,c=t&d,l=t&p;if(r&&(s=i?r(e,n,i,a):r(e)),s!==o)return s;if(!As(e))return e;var f=gs(e);if(f){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&<.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return to(e,s)}else{var m=$o(e),g=m==G||m==Z;if(_s(e))return Zi(e,u);if(m==Q||m==$||g&&!i){if(s=c||g?{}:qo(e),!u)return c?function(e,t){return ro(e,Uo(e),t)}(e,function(e,t){return e&&ro(t,iu(t),e)}(s,e)):function(e,t){return ro(e,Fo(e),t)}(e,Cn(s,e))}else{if(!Ot[m])return i?e:{};s=function(e,t,r){var n,i=e.constructor;switch(t){case ue:return Yi(e);case H:case V:return new i(+e);case ce:return function(e,t){var r=t?Yi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case le:case fe:case he:case de:case pe:case me:case ge:case ve:case be:return Xi(e,r);case Y:return new i;case X:case ne:return new i(e);case te:return function(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new i;case ie:return n=e,ln?tt(ln.call(n)):{}}}(e,m,u)}}a||(a=new wn);var v=a.get(e);if(v)return v;if(a.set(e,s),Is(e))return e.forEach(function(n){s.add(Dn(n,t,r,n,e,a))}),s;if(Ps(e))return e.forEach(function(n,i){s.set(i,Dn(n,t,r,i,e,a))}),s;var b=f?o:(l?c?jo:Co:c?iu:nu)(e);return Wt(b||e,function(n,i){b&&(n=e[i=n]),On(s,i,Dn(n,t,r,i,e,a))}),s}function Bn(e,t,r){var n=r.length;if(null==e)return!n;for(e=tt(e);n--;){var i=r[n],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Nn(e,t,r){if("function"!=typeof e)throw new it(u);return na(function(){e.apply(o,r)},t)}function zn(e,t,r,n){var i=-1,o=Xt,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;r&&(t=Qt(t,gr(r))),n?(o=Jt,s=!1):t.length>=a&&(o=br,s=!1,t=new _n(t));e:for(;++i-1},bn.prototype.set=function(e,t){var r=this.__data__,n=Pn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},yn.prototype.clear=function(){this.size=0,this.__data__={hash:new vn,map:new(Yr||bn),string:new vn}},yn.prototype.delete=function(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t},yn.prototype.get=function(e){return No(this,e).get(e)},yn.prototype.has=function(e){return No(this,e).has(e)},yn.prototype.set=function(e,t){var r=No(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},_n.prototype.add=_n.prototype.push=function(e){return this.__data__.set(e,c),this},_n.prototype.has=function(e){return this.__data__.has(e)},wn.prototype.clear=function(){this.__data__=new bn,this.size=0},wn.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},wn.prototype.get=function(e){return this.__data__.get(e)},wn.prototype.has=function(e){return this.__data__.has(e)},wn.prototype.set=function(e,t){var r=this.__data__;if(r instanceof bn){var n=r.__data__;if(!Yr||n.length0&&r(s)?t>1?qn(s,t-1,r,n,i):er(i,s):n||(i[i.length]=s)}return i}var Hn=ao(),Vn=ao(!0);function Kn(e,t){return e&&Hn(e,t,nu)}function Wn(e,t){return e&&Vn(e,t,nu)}function Gn(e,t){return Yt(t,function(t){return Ss(e[t])})}function Zn(e,t){for(var r=0,n=(t=Vi(t,e)).length;null!=e&&rt}function Qn(e,t){return null!=e&<.call(e,t)}function ei(e,t){return null!=e&&t in tt(e)}function ti(e,t,r){for(var i=r?Jt:Xt,a=e[0].length,s=e.length,u=s,c=n(s),l=1/0,f=[];u--;){var h=e[u];u&&t&&(h=Qt(h,gr(t))),l=Hr(h.length,l),c[u]=!r&&(t||a>=120&&h.length>=120)?new _n(u&&h):o}h=e[0];var d=-1,p=c[0];e:for(;++d=s)return u;var c=r[n];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,r)})}function vi(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Dt.call(s,u,1),Dt.call(e,u,1);return e}function yi(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Vo(i)?Dt.call(e,i,1):zi(e,i)}}return e}function _i(e,t){return e+zr(Wr()*(t-e+1))}function wi(e,t){var r="";if(!e||t<1||t>D)return r;do{t%2&&(r+=e),(t=zr(t/2))&&(e+=e)}while(t);return r}function ki(e,t){return ia(Qo(e,t,Tu),e+"")}function Si(e){return Sn(hu(e))}function xi(e,t){var r=hu(e);return sa(r,Mn(t,0,r.length))}function Ei(e,t,r,n){if(!As(e))return e;for(var i=-1,a=(t=Vi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!Ds(a)&&(r?a<=t:a=a){var l=t?null:ko(e);if(l)return Pr(l);s=!1,i=br,c=new _n}else c=t?[]:u;e:for(;++n=n?e:Ti(e,t,r)}var Gi=hr||function(e){return Mt.clearTimeout(e)};function Zi(e,t){if(t)return e.slice();var r=e.length,n=kt?kt(r):new e.constructor(r);return e.copy(n),n}function Yi(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Xi(e,t){var r=t?Yi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ji(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=Ds(e),s=t!==o,u=null===t,c=t==t,l=Ds(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||n&&s&&c||!r&&c||!i)return 1;if(!n&&!a&&!l&&e1?r[i-1]:o,s=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Ko(r[0],r[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++n-1?i[a?t[s]:s]:o}}function fo(e){return To(function(t){var r=t.length,n=r,i=mn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Mo(a))var s=new mn([],!0)}for(n=s?n:r;++n1&&_.reverse(),h&&lu))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var f=-1,h=!0,d=r&g?new _n:o;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Wt(U,function(r){var n="_."+r[0];t&r[1]&&!Xt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Re);return t?t[1].split(Fe):[]}(n),r)))}function aa(e){var t=0,r=0;return function(){var n=Vr(),i=C-(n-r);if(r=n,i>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(o,arguments)}}function sa(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,ja(e,r)});function Ra(e){var t=hn(e);return t.__chain__=!0,t}function Fa(e,t){return t(e)}var Ua=To(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return In(t,e)};return!(t>1||this.__actions__.length)&&n instanceof gn&&Vo(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:Fa,args:[i],thisArg:o}),new mn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var $a=no(function(e,t,r){lt.call(e,r)?++e[r]:jn(e,r,1)});var La=lo(ma),qa=lo(ga);function Ha(e,t){return(gs(e)?Wt:Rn)(e,Bo(t,3))}function Va(e,t){return(gs(e)?Gt:Fn)(e,Bo(t,3))}var Ka=no(function(e,t,r){lt.call(e,r)?e[r].push(t):jn(e,r,[t])});var Wa=ki(function(e,t,r){var i=-1,o="function"==typeof t,a=bs(e)?n(e.length):[];return Rn(e,function(e){a[++i]=o?Vt(t,e,r):ri(e,t,r)}),a}),Ga=no(function(e,t,r){jn(e,r,t)});function Za(e,t){return(gs(e)?Qt:fi)(e,Bo(t,3))}var Ya=no(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var Xa=ki(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Ko(e,t[0],t[1])?t=[]:r>2&&Ko(t[0],t[1],t[2])&&(t=[t[0]]),gi(e,qn(t,1),[])}),Ja=Dr||function(){return Mt.Date.now()};function Qa(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,xo(e,x,o,o,o,o,t)}function es(e,t){var r;if("function"!=typeof t)throw new it(u);return e=Us(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var ts=ki(function(e,t,r){var n=v;if(r.length){var i=Or(r,Do(ts));n|=k}return xo(e,n,t,r,i)}),rs=ki(function(e,t,r){var n=v|b;if(r.length){var i=Or(r,Do(rs));n|=k}return xo(t,n,e,r,i)});function ns(e,t,r){var n,i,a,s,c,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new it(u);function m(t){var r=n,a=i;return n=i=o,f=t,s=e.apply(a,r)}function g(e){var r=e-l;return l===o||r>=t||r<0||d&&e-f>=a}function v(){var e=Ja();if(g(e))return b(e);c=na(v,function(e){var r=t-(e-l);return d?Hr(r,a-(e-f)):r}(e))}function b(e){return c=o,p&&n?m(e):(n=i=o,s)}function y(){var e=Ja(),r=g(e);if(n=arguments,i=this,l=e,r){if(c===o)return function(e){return f=e,c=na(v,t),h?m(e):s}(l);if(d)return c=na(v,t),m(l)}return c===o&&(c=na(v,t)),s}return t=Ls(t)||0,As(r)&&(h=!!r.leading,a=(d="maxWait"in r)?qr(Ls(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),y.cancel=function(){c!==o&&Gi(c),f=0,n=l=i=c=o},y.flush=function(){return c===o?s:b(Ja())},y}var is=ki(function(e,t){return Nn(e,1,t)}),os=ki(function(e,t,r){return Nn(e,Ls(t)||0,r)});function as(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(as.Cache||yn),r}function ss(e){if("function"!=typeof e)throw new it(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}as.Cache=yn;var us=Ki(function(e,t){var r=(t=1==t.length&&gs(t[0])?Qt(t[0],gr(Bo())):Qt(qn(t,1),gr(Bo()))).length;return ki(function(n){for(var i=-1,o=Hr(n.length,r);++i=t}),ms=ni(function(){return arguments}())?ni:function(e){return Os(e)&<.call(e,"callee")&&!It.call(e,"callee")},gs=n.isArray,vs=Ft?gr(Ft):function(e){return Os(e)&&Xn(e)==ue};function bs(e){return null!=e&&Es(e.length)&&!Ss(e)}function ys(e){return Os(e)&&bs(e)}var _s=Fr||Lu,ws=Ut?gr(Ut):function(e){return Os(e)&&Xn(e)==V};function ks(e){if(!Os(e))return!1;var t=Xn(e);return t==W||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!Cs(e)}function Ss(e){if(!As(e))return!1;var t=Xn(e);return t==G||t==Z||t==q||t==ee}function xs(e){return"number"==typeof e&&e==Us(e)}function Es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=D}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Os(e){return null!=e&&"object"==typeof e}var Ps=$t?gr($t):function(e){return Os(e)&&$o(e)==Y};function Ts(e){return"number"==typeof e||Os(e)&&Xn(e)==X}function Cs(e){if(!Os(e)||Xn(e)!=Q)return!1;var t=Pt(e);if(null===t)return!0;var r=lt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ct.call(r)==pt}var js=Lt?gr(Lt):function(e){return Os(e)&&Xn(e)==te};var Is=qt?gr(qt):function(e){return Os(e)&&$o(e)==re};function Ms(e){return"string"==typeof e||!gs(e)&&Os(e)&&Xn(e)==ne}function Ds(e){return"symbol"==typeof e||Os(e)&&Xn(e)==ie}var Bs=Ht?gr(Ht):function(e){return Os(e)&&Es(e.length)&&!!At[Xn(e)]};var Ns=yo(li),zs=yo(function(e,t){return e<=t});function Rs(e){if(!e)return[];if(bs(e))return Ms(e)?jr(e):to(e);if(zt&&e[zt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[zt]());var t=$o(e);return(t==Y?Er:t==re?Pr:hu)(e)}function Fs(e){return e?(e=Ls(e))===M||e===-M?(e<0?-1:1)*B:e==e?e:0:0===e?e:0}function Us(e){var t=Fs(e),r=t%1;return t==t?r?t-r:t:0}function $s(e){return e?Mn(Us(e),0,z):0}function Ls(e){if("number"==typeof e)return e;if(Ds(e))return N;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(De,"");var r=Ve.test(e);return r||We.test(e)?Ct(e.slice(2),r?2:8):He.test(e)?N:+e}function qs(e){return ro(e,iu(e))}function Hs(e){return null==e?"":Bi(e)}var Vs=io(function(e,t){if(Yo(t)||bs(t))ro(t,nu(t),e);else for(var r in t)lt.call(t,r)&&On(e,r,t[r])}),Ks=io(function(e,t){ro(t,iu(t),e)}),Ws=io(function(e,t,r,n){ro(t,iu(t),e,n)}),Gs=io(function(e,t,r,n){ro(t,nu(t),e,n)}),Zs=To(In);var Ys=ki(function(e,t){e=tt(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&Ko(t[0],t[1],i)&&(n=1);++r1),t}),ro(e,jo(e),r),n&&(r=Dn(r,h|d|p,Oo));for(var i=t.length;i--;)zi(r,t[i]);return r});var uu=To(function(e,t){return null==e?{}:function(e,t){return vi(e,t,function(t,r){return Qs(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Qt(jo(e),function(e){return[e]});return t=Bo(t),vi(e,r,function(e,r){return t(e,r[0])})}var lu=So(nu),fu=So(iu);function hu(e){return null==e?[]:vr(e,nu(e))}var du=uo(function(e,t,r){return t=t.toLowerCase(),e+(r?pu(t):t)});function pu(e){return ku(Hs(e).toLowerCase())}function mu(e){return(e=Hs(e))&&e.replace(Ze,wr).replace(yt,"")}var gu=uo(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=uo(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),bu=so("toLowerCase");var yu=uo(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var _u=uo(function(e,t,r){return e+(r?" ":"")+ku(t)});var wu=uo(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),ku=so("toUpperCase");function Su(e,t,r){return e=Hs(e),(t=r?o:t)===o?function(e){return St.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(Ue)||[]}(e):e.match(t)||[]}var xu=ki(function(e,t){try{return Vt(e,o,t)}catch(e){return ks(e)?e:new Je(e)}}),Eu=To(function(e,t){return Wt(t,function(t){t=ca(t),jn(e,t,ts(e[t],e))}),e});function Au(e){return function(){return e}}var Ou=fo(),Pu=fo(!0);function Tu(e){return e}function Cu(e){return si("function"==typeof e?e:Dn(e,h))}var ju=ki(function(e,t){return function(r){return ri(r,e,t)}}),Iu=ki(function(e,t){return function(r){return ri(e,r,t)}});function Mu(e,t,r){var n=nu(t),i=Gn(t,n);null!=r||As(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Gn(t,nu(t)));var o=!(As(r)&&"chain"in r&&!r.chain),a=Ss(e);return Wt(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=to(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})}),e}function Du(){}var Bu=go(Qt),Nu=go(Zt),zu=go(nr);function Ru(e){return Wo(e)?fr(ca(e)):function(e){return function(t){return Zn(t,e)}}(e)}var Fu=bo(),Uu=bo(!0);function $u(){return[]}function Lu(){return!1}var qu=mo(function(e,t){return e+t},0),Hu=wo("ceil"),Vu=mo(function(e,t){return e/t},1),Ku=wo("floor");var Wu,Gu=mo(function(e,t){return e*t},1),Zu=wo("round"),Yu=mo(function(e,t){return e-t},0);return hn.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Us(e),function(){if(--e<1)return t.apply(this,arguments)}},hn.ary=Qa,hn.assign=Vs,hn.assignIn=Ks,hn.assignInWith=Ws,hn.assignWith=Gs,hn.at=Zs,hn.before=es,hn.bind=ts,hn.bindAll=Eu,hn.bindKey=rs,hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},hn.chain=Ra,hn.chunk=function(e,t,r){t=(r?Ko(e,t,r):t===o)?1:qr(Us(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(Nr(i/t));ai?0:i+r),(n=n===o||n>i?i:Us(n))<0&&(n+=i),n=r>n?0:$s(n);r>>0)?(e=Hs(e))&&("string"==typeof t||null!=t&&!js(t))&&!(t=Bi(t))&&xr(e)?Wi(jr(e),0,r):e.split(t,r):[]},hn.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:qr(Us(t),0),ki(function(r){var n=r[t],i=Wi(r,0,t);return n&&er(i,n),Vt(e,this,i)})},hn.tail=function(e){var t=null==e?0:e.length;return t?Ti(e,1,t):[]},hn.take=function(e,t,r){return e&&e.length?Ti(e,0,(t=r||t===o?1:Us(t))<0?0:t):[]},hn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Ti(e,(t=n-(t=r||t===o?1:Us(t)))<0?0:t,n):[]},hn.takeRightWhile=function(e,t){return e&&e.length?Fi(e,Bo(t,3),!1,!0):[]},hn.takeWhile=function(e,t){return e&&e.length?Fi(e,Bo(t,3)):[]},hn.tap=function(e,t){return t(e),e},hn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new it(u);return As(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ns(e,t,{leading:n,maxWait:t,trailing:i})},hn.thru=Fa,hn.toArray=Rs,hn.toPairs=lu,hn.toPairsIn=fu,hn.toPath=function(e){return gs(e)?Qt(e,ca):Ds(e)?[e]:to(ua(Hs(e)))},hn.toPlainObject=qs,hn.transform=function(e,t,r){var n=gs(e),i=n||_s(e)||Bs(e);if(t=Bo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:As(e)&&Ss(o)?dn(Pt(e)):{}}return(i?Wt:Kn)(e,function(e,n,i){return t(r,e,n,i)}),r},hn.unary=function(e){return Qa(e,1)},hn.union=Oa,hn.unionBy=Pa,hn.unionWith=Ta,hn.uniq=function(e){return e&&e.length?Ni(e):[]},hn.uniqBy=function(e,t){return e&&e.length?Ni(e,Bo(t,2)):[]},hn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ni(e,o,t):[]},hn.unset=function(e,t){return null==e||zi(e,t)},hn.unzip=Ca,hn.unzipWith=ja,hn.update=function(e,t,r){return null==e?e:Ri(e,t,Hi(r))},hn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Ri(e,t,Hi(r),n)},hn.values=hu,hn.valuesIn=function(e){return null==e?[]:vr(e,iu(e))},hn.without=Ia,hn.words=Su,hn.wrap=function(e,t){return cs(Hi(t),e)},hn.xor=Ma,hn.xorBy=Da,hn.xorWith=Ba,hn.zip=Na,hn.zipObject=function(e,t){return Li(e||[],t||[],On)},hn.zipObjectDeep=function(e,t){return Li(e||[],t||[],Ei)},hn.zipWith=za,hn.entries=lu,hn.entriesIn=fu,hn.extend=Ks,hn.extendWith=Ws,Mu(hn,hn),hn.add=qu,hn.attempt=xu,hn.camelCase=du,hn.capitalize=pu,hn.ceil=Hu,hn.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=Ls(r))==r?r:0),t!==o&&(t=(t=Ls(t))==t?t:0),Mn(Ls(e),t,r)},hn.clone=function(e){return Dn(e,p)},hn.cloneDeep=function(e){return Dn(e,h|p)},hn.cloneDeepWith=function(e,t){return Dn(e,h|p,t="function"==typeof t?t:o)},hn.cloneWith=function(e,t){return Dn(e,p,t="function"==typeof t?t:o)},hn.conformsTo=function(e,t){return null==t||Bn(e,t,nu(t))},hn.deburr=mu,hn.defaultTo=function(e,t){return null==e||e!=e?t:e},hn.divide=Vu,hn.endsWith=function(e,t,r){e=Hs(e),t=Bi(t);var n=e.length,i=r=r===o?n:Mn(Us(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},hn.eq=hs,hn.escape=function(e){return(e=Hs(e))&&Ee.test(e)?e.replace(Se,kr):e},hn.escapeRegExp=function(e){return(e=Hs(e))&&Me.test(e)?e.replace(Ie,"\\$&"):e},hn.every=function(e,t,r){var n=gs(e)?Zt:Un;return r&&Ko(e,t,r)&&(t=o),n(e,Bo(t,3))},hn.find=La,hn.findIndex=ma,hn.findKey=function(e,t){return or(e,Bo(t,3),Kn)},hn.findLast=qa,hn.findLastIndex=ga,hn.findLastKey=function(e,t){return or(e,Bo(t,3),Wn)},hn.floor=Ku,hn.forEach=Ha,hn.forEachRight=Va,hn.forIn=function(e,t){return null==e?e:Hn(e,Bo(t,3),iu)},hn.forInRight=function(e,t){return null==e?e:Vn(e,Bo(t,3),iu)},hn.forOwn=function(e,t){return e&&Kn(e,Bo(t,3))},hn.forOwnRight=function(e,t){return e&&Wn(e,Bo(t,3))},hn.get=Js,hn.gt=ds,hn.gte=ps,hn.has=function(e,t){return null!=e&&Lo(e,t,Qn)},hn.hasIn=Qs,hn.head=ba,hn.identity=Tu,hn.includes=function(e,t,r,n){e=bs(e)?e:hu(e),r=r&&!n?Us(r):0;var i=e.length;return r<0&&(r=qr(i+r,0)),Ms(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sr(e,t,r)>-1},hn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Us(r);return i<0&&(i=qr(n+i,0)),sr(e,t,i)},hn.inRange=function(e,t,r){return t=Fs(t),r===o?(r=t,t=0):r=Fs(r),function(e,t,r){return e>=Hr(t,r)&&e=-D&&e<=D},hn.isSet=Is,hn.isString=Ms,hn.isSymbol=Ds,hn.isTypedArray=Bs,hn.isUndefined=function(e){return e===o},hn.isWeakMap=function(e){return Os(e)&&$o(e)==ae},hn.isWeakSet=function(e){return Os(e)&&Xn(e)==se},hn.join=function(e,t){return null==e?"":$r.call(e,t)},hn.kebabCase=gu,hn.last=ka,hn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=Us(r))<0?qr(n+i,0):Hr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):ar(e,cr,i,!0)},hn.lowerCase=vu,hn.lowerFirst=bu,hn.lt=Ns,hn.lte=zs,hn.max=function(e){return e&&e.length?$n(e,Tu,Jn):o},hn.maxBy=function(e,t){return e&&e.length?$n(e,Bo(t,2),Jn):o},hn.mean=function(e){return lr(e,Tu)},hn.meanBy=function(e,t){return lr(e,Bo(t,2))},hn.min=function(e){return e&&e.length?$n(e,Tu,li):o},hn.minBy=function(e,t){return e&&e.length?$n(e,Bo(t,2),li):o},hn.stubArray=$u,hn.stubFalse=Lu,hn.stubObject=function(){return{}},hn.stubString=function(){return""},hn.stubTrue=function(){return!0},hn.multiply=Gu,hn.nth=function(e,t){return e&&e.length?mi(e,Us(t)):o},hn.noConflict=function(){return Mt._===this&&(Mt._=mt),this},hn.noop=Du,hn.now=Ja,hn.pad=function(e,t,r){e=Hs(e);var n=(t=Us(t))?Cr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return vo(zr(i),r)+e+vo(Nr(i),r)},hn.padEnd=function(e,t,r){e=Hs(e);var n=(t=Us(t))?Cr(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Wr();return Hr(e+i*(t-e+Tt("1e-"+((i+"").length-1))),t)}return _i(e,t)},hn.reduce=function(e,t,r){var n=gs(e)?tr:dr,i=arguments.length<3;return n(e,Bo(t,4),r,i,Rn)},hn.reduceRight=function(e,t,r){var n=gs(e)?rr:dr,i=arguments.length<3;return n(e,Bo(t,4),r,i,Fn)},hn.repeat=function(e,t,r){return t=(r?Ko(e,t,r):t===o)?1:Us(t),wi(Hs(e),t)},hn.replace=function(){var e=arguments,t=Hs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hn.result=function(e,t,r){var n=-1,i=(t=Vi(t,e)).length;for(i||(i=1,e=o);++nD)return[];var r=z,n=Hr(e,z);t=Bo(t),e-=z;for(var i=mr(n,t);++r=a)return e;var u=r-Cr(n);if(u<1)return n;var c=s?Wi(s,0,u).join(""):e.slice(0,u);if(i===o)return c+n;if(s&&(u+=c.length-u),js(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=rt(i.source,Hs(qe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var h=l.index;c=c.slice(0,h===o?u:h)}}else if(e.indexOf(Bi(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+n},hn.unescape=function(e){return(e=Hs(e))&&xe.test(e)?e.replace(ke,Ir):e},hn.uniqueId=function(e){var t=++ft;return Hs(e)+t},hn.upperCase=wu,hn.upperFirst=ku,hn.each=Ha,hn.eachRight=Va,hn.first=ba,Mu(hn,(Wu={},Kn(hn,function(e,t){lt.call(hn.prototype,t)||(Wu[t]=e)}),Wu),{chain:!1}),hn.VERSION="4.17.11",Wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hn[e].placeholder=hn}),Wt(["drop","take"],function(e,t){gn.prototype[e]=function(r){r=r===o?1:qr(Us(r),0);var n=this.__filtered__&&!t?new gn(this):this.clone();return n.__filtered__?n.__takeCount__=Hr(r,n.__takeCount__):n.__views__.push({size:Hr(r,z),type:e+(n.__dir__<0?"Right":"")}),n},gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Wt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==j||3==r;gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Bo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Wt(["head","last"],function(e,t){var r="take"+(t?"Right":"");gn.prototype[e]=function(){return this[r](1).value()[0]}}),Wt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");gn.prototype[e]=function(){return this.__filtered__?new gn(this):this[r](1)}}),gn.prototype.compact=function(){return this.filter(Tu)},gn.prototype.find=function(e){return this.filter(e).head()},gn.prototype.findLast=function(e){return this.reverse().find(e)},gn.prototype.invokeMap=ki(function(e,t){return"function"==typeof e?new gn(this):this.map(function(r){return ri(r,e,t)})}),gn.prototype.reject=function(e){return this.filter(ss(Bo(e)))},gn.prototype.slice=function(e,t){e=Us(e);var r=this;return r.__filtered__&&(e>0||t<0)?new gn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=Us(t))<0?r.dropRight(-t):r.take(t-e)),r)},gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gn.prototype.toArray=function(){return this.take(z)},Kn(gn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=hn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(hn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof gn,c=s[0],l=u||gs(t),f=function(e){var t=i.apply(hn,er([e],s));return n&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,m=u&&!d;if(!a&&l){t=m?t:new gn(this);var g=e.apply(t,s);return g.__actions__.push({func:Fa,args:[f],thisArg:o}),new mn(g,h)}return p&&m?e.apply(this,s):(g=this.thru(f),p?n?g.value()[0]:g.value():g)})}),Wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);hn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(gs(i)?i:[],e)}return this[r](function(r){return t.apply(gs(r)?r:[],e)})}}),Kn(gn.prototype,function(e,t){var r=hn[t];if(r){var n=r.name+"";(rn[n]||(rn[n]=[])).push({name:t,func:r})}}),rn[ho(o,b).name]=[{name:"wrapper",func:o}],gn.prototype.clone=function(){var e=new gn(this.__wrapped__);return e.__actions__=to(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=to(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=to(this.__views__),e},gn.prototype.reverse=function(){if(this.__filtered__){var e=new gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=gs(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},hn.prototype.plant=function(e){for(var t,r=this;r instanceof pn;){var n=fa(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gn){var t=e;return this.__actions__.length&&(t=new gn(this)),(t=t.reverse()).__actions__.push({func:Fa,args:[Aa],thisArg:o}),new mn(t,this.__chain__)}return this.thru(Aa)},hn.prototype.toJSON=hn.prototype.valueOf=hn.prototype.value=function(){return Ui(this.__wrapped__,this.__actions__)},hn.prototype.first=hn.prototype.head,zt&&(hn.prototype[zt]=function(){return this}),hn}();Mt._=Mr,(i=function(){return Mr}.call(t,r,t,n))===o||(n.exports=i)}).call(this)}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}n.prototype=r(653),n.prototype.loadAsync=r(673),n.support=r(45),n.defaults=r(274),n.version="3.2.0",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=r(81),e.exports=n},function(e,t,r){"use strict";var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function a(e,t,r){return e.concat(t).map(function(e){return o(e,r)})}function s(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=o(e[t],r)}),Object.keys(t).forEach(function(i){r.isMergeableObject(t[i])&&e[i]?n[i]=s(e[i],t[i],r):n[i]=o(t[i],r)}),n}(e,t,r):o(t,r)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})};var u=s;function c(e,t,r){return void 0===(e=(t.split?t.split("."):t).reduce(function(e,t){return e&&e[t]},e))?r:e}t.a=function(e,t,r){function n(e,t,r){try{return(r=t.getItem(e))&&void 0!==r?JSON.parse(r):void 0}catch(e){}}if(t=(e=e||{}).storage||window&&window.localStorage,r=e.key||"vuex",!function(e){try{return e.setItem("@@",1),e.removeItem("@@"),!0}catch(e){}return!1}(t))throw new Error("Invalid storage instance given");return function(i){var o=c(e,"getState",n)(r,t);"object"==typeof o&&null!==o&&i.replaceState(u(i.state,o,{arrayMerge:e.arrayMerger||function(e,t){return t},clone:!1})),(e.subscriber||function(e){return function(t){return e.subscribe(t)}})(i)(function(n,i){(e.filter||function(){return!0})(n)&&(e.setState||function(e,t,r){return r.setItem(e,JSON.stringify(t))})(r,(e.reducer||function(e,t){return 0===t.length?e:t.reduce(function(t,r){return function(e,t,r,n){return(t=t.split?t.split("."):t).slice(0,-1).reduce(function(e,t){return e[t]=e[t]||{}},e)[t.pop()]=r,e}(t,r,c(e,r))},{})})(i,e.paths||[]),t)})}}},function(e,t,r){"use strict";(function(e,t){!function(e,r){if(!e.setImmediate){var n,i,o,a,s,u=1,c={},l=!1,f=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,n=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r0?n-4:n,f=0;f>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(f)]<<2|i[e.charCodeAt(f+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(f)]<<10|i[e.charCodeAt(f+1)]<<4|i[e.charCodeAt(f+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t,r){"use strict";t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*m}},,function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(300);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return Buffer.alloc(0);if(1===this.length)return this.head.data;for(var t,r,n,i=Buffer.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,t.copy(r,n),a+=o.data.length,o=o.next;return i},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},,function(e,t,r){"use strict";(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(9))},function(e,t,r){"use strict";e.exports=o;var n=r(169),i=r(67);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(3),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";e.exports=r(117)},function(e,t,r){"use strict";e.exports=r(48)},function(e,t,r){"use strict";e.exports=r(116).Transform},function(e,t,r){"use strict";e.exports=r(116).PassThrough},function(e,t,r){"use strict";var n=r(3),i=r(55),Buffer=r(2).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,l=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var h=0;h<80;++h){var d=~~(h/20),p=0|((t=n)<<5|t>>>27)+c(d,i,a,s)+l+r[h]+o[d];l=s,s=a,a=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,r){"use strict";var n=r(3),i=r(55),Buffer=r(2).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,f=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31;for(var d=0;d<80;++d){var p=~~(d/20),m=u(n)+l(p,i,a,s)+f+r[d]+o[p]|0;f=s,s=a,a=c(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=f+this._e|0},s.prototype._hash=function(){var e=Buffer.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=s},function(e,t,r){"use strict";var n=r(3),i=r(170),o=r(55),Buffer=r(2).Buffer,a=new Array(64);function s(){this.init(),this._w=a,o.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=Buffer.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=s},function(e,t,r){"use strict";var n=r(3),i=r(171),o=r(55),Buffer=r(2).Buffer,a=new Array(160);function s(){this.init(),this._w=a,o.call(this,128,112)}n(s,i),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=Buffer.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=s},function(e,t,r){"use strict";(function(t,n){var i,o=r(172),a=r(173),s=r(174),Buffer=r(2).Buffer,u=t.crypto&&t.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function f(e,t,r,n,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return Buffer.from(e)})}e.exports=function(e,r,h,d,p,m){"function"==typeof p&&(m=p,p=void 0);var g=c[(p=p||"sha1").toLowerCase()];if(!g||"function"!=typeof t.Promise)return n.nextTick(function(){var t;try{t=s(e,r,h,d,p)}catch(e){return m(e)}m(null,t)});if(o(e,r,h,d),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");Buffer.isBuffer(e)||(e=Buffer.from(e,a)),Buffer.isBuffer(r)||(r=Buffer.from(r,a)),function(e,t){e.then(function(e){n.nextTick(function(){t(null,e)})},function(e){n.nextTick(function(){t(e)})})}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==l[e])return l[e];var r=f(i=i||Buffer.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return l[e]=r,r}(g).then(function(t){return t?f(e,r,h,d,g):s(e,r,h,d,p)}),m)}}).call(this,r(9),r(20))},function(e){e.exports=["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]},function(e){e.exports=["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]},function(e){e.exports=["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]},function(e){e.exports=["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]},function(e){e.exports=["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]},function(e){e.exports=["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]},function(e){e.exports=["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]},function(e){e.exports=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(321),n=r(35),i=r(15),o=r(5),a=r(88),s=o.BufferN(32),u=o.compile({wif:o.UInt8,bip32:{public:o.UInt32,private:o.UInt32}}),c={wif:128,bip32:{public:76067358,private:76066276}},l=2147483648,f=Math.pow(2,31)-1;function h(e){return o.String(e)&&null!==e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function d(e){return o.UInt32(e)&&e<=f}class p{constructor(e,t,r,n,i=0,a=0,s=0){this.__D=e,this.__Q=t,this.chainCode=r,this.network=n,this.__DEPTH=i,this.__INDEX=a,this.__PARENT_FINGERPRINT=s,o(u,n)}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return void 0===this.__Q&&(this.__Q=i.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return e.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}isNeutered(){return void 0===this.__D}neutered(){return v(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,r=Buffer.allocUnsafe(78);return r.writeUInt32BE(t,0),r.writeUInt8(this.depth,4),r.writeUInt32BE(this.parentFingerprint,5),r.writeUInt32BE(this.index,9),this.chainCode.copy(r,13),this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46)),n.encode(r)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return a.encode(this.network.wif,this.privateKey,!0)}derive(t){o(o.UInt32,t);const r=t>=l,n=Buffer.allocUnsafe(37);if(r){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");n[0]=0,this.privateKey.copy(n,1),n.writeUInt32BE(t,33)}else this.publicKey.copy(n,0),n.writeUInt32BE(t,33);const a=e.hmacSHA512(this.chainCode,n),s=a.slice(0,32),u=a.slice(32);if(!i.isPrivate(s))return this.derive(t+1);let c;if(this.isNeutered()){const e=i.pointAddScalar(this.publicKey,s,!0);if(null===e)return this.derive(t+1);c=v(e,u,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}else{const e=i.privateAdd(this.privateKey,s);if(null==e)return this.derive(t+1);c=g(e,u,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}return c}deriveHardened(e){return o(d,e),this.derive(e+l)}derivePath(e){o(h,e);let t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce((e,t)=>{let r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))},this)}sign(e,t=!1){if(!this.privateKey)throw new Error("Missing private key");if(!1===t)return i.sign(e,this.privateKey);{let t=i.sign(e,this.privateKey);const r=Buffer.alloc(32,0);let n=0;for(;t[0]>127;)n++,r.writeUIntLE(n,0,6),t=i.signWithEntropy(e,this.privateKey,r);return t}}verify(e,t){return i.verify(e,this.publicKey,t)}}function m(e,t,r){return g(e,t,r)}function g(e,t,r,n,a,u){if(o({privateKey:s,chainCode:s},{privateKey:e,chainCode:t}),r=r||c,!i.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new p(e,void 0,t,r,n,a,u)}function v(e,t,r,n,a,u){if(o({publicKey:o.BufferN(33),chainCode:s},{publicKey:e,chainCode:t}),r=r||c,!i.isPoint(e))throw new TypeError("Point is not on the curve");return new p(void 0,e,t,r,n,a,u)}t.fromBase58=function(e,t){const r=n.decode(e);if(78!==r.length)throw new TypeError("Invalid buffer length");t=t||c;const i=r.readUInt32BE(0);if(i!==t.bip32.private&&i!==t.bip32.public)throw new TypeError("Invalid network version");const o=r[4],a=r.readUInt32BE(5);if(0===o&&0!==a)throw new TypeError("Invalid parent fingerprint");const s=r.readUInt32BE(9);if(0===o&&0!==s)throw new TypeError("Invalid index");const u=r.slice(13,45);let l;if(i===t.bip32.private){if(0!==r.readUInt8(45))throw new TypeError("Invalid private key");l=g(r.slice(46,78),u,t,o,s,a)}else l=v(r.slice(45,78),u,t,o,s,a);return l},t.fromPrivateKey=m,t.fromPublicKey=function(e,t,r){return v(e,t,r)},t.fromSeed=function(t,r){if(o(o.Buffer,t),t.length<16)throw new TypeError("Seed should be at least 128 bits");if(t.length>64)throw new TypeError("Seed should be at most 512 bits");r=r||c;const n=e.hmacSHA512(Buffer.from("Bitcoin seed","utf8"),t);return m(n.slice(0,32),n.slice(32),r)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21),i=r(69);t.hash160=function(e){const t=n("sha256").update(e).digest();try{return n("rmd160").update(t).digest()}catch(e){return n("ripemd160").update(t).digest()}},t.hmacSHA512=function(e,t){return i("sha512",e).update(t).digest()}},function(e,t,r){"use strict";var n=r(3),Buffer=r(2).Buffer,i=r(40),o=Buffer.alloc(128),a=64;function s(e,t){i.call(this,"digest"),"string"==typeof t&&(t=Buffer.from(t)),this._alg=e,this._key=t,t.length>a?t=e(t):t.length=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);t.fill(255);for(let r=0;r>>0,c=new Uint8Array(u);for(;e[o];){let n=t[e.charCodeAt(o)];if(255===n)return;let i=0;for(let e=u-1;(0!==n||i>>0,c[e]=n%256>>>0,n=n/256>>>0;if(0!==n)throw new Error("Non-zero carry");s=i,o++}if(" "===e[o])return;let l=u-s;for(;l!==u&&0===c[l];)l++;const f=Buffer.allocUnsafe(a+(u-l));f.fill(0,0,a);let h=a;for(;l!==u;)f[h++]=c[l++];return f}return{encode:function(t){if(!Buffer.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";let i=0,a=0,s=0;const u=t.length;for(;s!==u&&0===t[s];)s++,i++;const c=(u-s)*o+1>>>0,l=new Uint8Array(c);for(;s!==u;){let e=t[s],n=0;for(let t=c-1;(0!==e||n>>0,l[t]=e%r>>>0,e=e/r>>>0;if(0!==e)throw new Error("Non-zero carry");a=n,s++}let f=c-a;for(;f!==c&&0===l[f];)f++;let h=n.repeat(i);for(;f=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,c=t.andln(3)+i&3;3===u&&(u=-1),3===c&&(c=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==c?u:-u,r[0].push(o),a=0==(1&c)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?c:-c,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},,function(e,t,r){"use strict";var n=r(7),i=r(12).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t--)c=(c<<1)+n[t];a.push(c)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(u=0;u=0;c--){for(t=0;c>=0&&0===a[c];c--)t++;if(c>=0&&t++,u=u.dblp(t),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,l=0,f=0;f=1;f-=2){var d=f-1,p=f;if(1===s[d]&&1===s[p]){var m=[t[d],null,null,t[p]];0===t[d].y.cmp(t[p].y)?(m[1]=t[d].add(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg())):0===t[d].y.cmp(t[p].y.redNeg())?(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].add(t[p].neg())):(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[d],r[p]);l=Math.max(v[0].length,l),c[d]=new Array(l),c[p]=new Array(l);for(var b=0;b=0;f--){for(var S=0;f>=0;){var x=!0;for(b=0;b=0&&S++,w=w.dblp(S),f<0)break;for(b=0;b0?E=u[b][A-1>>1]:A<0&&(E=u[b][-A-1>>1].neg()),w="affine"===E.type?w.mixedAdd(E):w.add(E))}}for(f=0;f=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},Point.prototype.isInfinity=function(){return this.inf},Point.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Point.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Point.prototype.getX=function(){return this.x.fromRed()},Point.prototype.getY=function(){return this.y.fromRed()},Point.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Point.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Point.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Point.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Point.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},Point.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(l,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),h=u.redSqr().redIAdd(l).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(f,h,d)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(87),i=r(7),o=r(3),a=n.base,s=r(12).utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function Point(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(Point,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new Point(this,e,t)},u.prototype.pointFromJSON=function(e){return Point.fromJSON(this,e)},Point.prototype.precompute=function(){},Point.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Point.fromJSON=function(e,t){return new Point(e,t[0],t[1]||e.one)},Point.prototype.inspect=function(){return this.isInfinity()?"":""},Point.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Point.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},Point.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},Point.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},Point.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Point.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},Point.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(87),i=r(12),o=r(7),a=r(3),s=n.base,u=i.utils.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function Point(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,s),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},a(Point,s.BasePoint),c.prototype.pointFromJSON=function(e){return Point.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new Point(this,e,t,r,n)},Point.fromJSON=function(e,t){return new Point(e,t[0],t[1],t[2])},Point.prototype.inspect=function(){return this.isInfinity()?"":""},Point.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Point.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(u,c,f,l)},Point.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(c.redSub(o)),r=a.redMul(u)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=c.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(c)).redMul(u),t=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(u)}return this.curve.point(e,t,r)},Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),l=s.redMul(u),f=o.redMul(u),h=a.redMul(s);return this.curve.point(c,l,h,f)},Point.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(u).redMul(l);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(f,t,r)},Point.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},Point.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},Point.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},Point.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},Point.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Point.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},Point.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},Point.prototype.toP=Point.prototype.normalize,Point.prototype.mixedAdd=Point.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(119),a=r(12),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(341)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(336),t.sha224=r(337),t.sha256=r(180),t.sha384=r(338),t.sha512=r(181)},function(e,t,r){"use strict";var n=r(29),i=r(70),o=r(179),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,l),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},c.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},c.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),h=0;;h++){var d=o.k?o.k(h):new n(l.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(f)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=d.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),b^=1),new u({r:g,s:v,recoveryParam:b})}}}}}},c.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),l=c.mul(e).umod(this.n),f=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},c.prototype.recoverPubKey=function(e,t,r,i){a((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),c=t.r,l=t.s,f=1&r,h=r>>1;if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");c=h?this.curve.pointFromX(c.add(this.curve.n),f):this.curve.pointFromX(c,f);var d=t.r.invm(o),p=o.sub(s).mul(d).umod(o),m=l.mul(d).umod(o);return this.g.mulAdd(p,c,m)},c.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(119),i=r(177),o=r(16);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length"}},function(e,t,r){"use strict";var n=r(7),i=r(12).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var c=u(e,r);if(e.length!==c+r.place)return!1;var l=e.slice(r.place,c+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===l[0]&&128&l[1]&&(l=l.slice(1)),this.r=new n(a),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(119),i=r(12),o=i.utils,a=o.assert,s=o.parseBytes,u=r(347),c=r(348);function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t>24===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},Int53:function(e){return"number"==typeof e&&e>=-f&&e<=f&&Math.floor(e)===e},Range:function(e,r,n){function i(t,i){return n(t,i)&&t>e&&t>>0===e},UInt53:function(e){return"number"==typeof e&&e>=0&&e<=f&&Math.floor(e)===e}};for(var d in h)h[d].toJSON=function(e){return e}.bind(null,d);e.exports=h}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS;t.p2data=function(e,t){if(!e.data&&!e.output)throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),a({network:a.maybe(a.Object),output:a.maybe(a.Buffer),data:a.maybe(a.arrayOf(a.Buffer))},e);const r={network:e.network||n.bitcoin};if(o.prop(r,"output",()=>{if(e.data)return i.compile([s.OP_RETURN].concat(e.data))}),o.prop(r,"data",()=>{if(e.output)return i.decompile(e.output).slice(1)}),t.validate&&e.output){const t=i.decompile(e.output);if(t[0]!==s.OP_RETURN)throw new TypeError("Output is invalid");if(!t.slice(1).every(a.Buffer))throw new TypeError("Output is invalid");if(e.data&&!function(e,t){return e.length===t.length&&e.every((e,r)=>e.equals(t[r]))}(e.data,r.data))throw new TypeError("Data mismatch")}return Object.assign(r,e)}},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(e,t,r){t=t||4,r=void 0===r||r;const n=e.length;if(0===n)return 0;if(n>t)throw new TypeError("Script number overflow");if(r&&0==(127&e[n-1])&&(n<=1||0==(128&e[n-2])))throw new Error("Non-minimally encoded script number");if(5===n){const t=e.readUInt32LE(0),r=e.readUInt8(4);return 128&r?-(4294967296*(-129&r)+t):4294967296*r+t}let i=0;for(let t=0;t2147483647?5:n>8388607?4:n>32767?3:n>127?2:n>0?1:0;var n;const i=Buffer.allocUnsafe(r),o=e<0;for(let e=0;e>=8;return 128&i[r-1]?i.writeUInt8(o?128:0,r-1):o&&(i[r-1]|=128),i}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(37),n=r(89),i=r(5),o=Buffer.alloc(1,0);function a(e){let t=0;for(;0===e[t];)++t;return t===e.length?o:128&(e=e.slice(t))[0]?Buffer.concat([o,e],1+e.length):e}function s(e){0===e[0]&&(e=e.slice(1));const t=Buffer.alloc(32,0),r=Math.max(0,32-e.length);return e.copy(t,r),t}t.decode=function(e){const t=e.readUInt8(e.length-1),r=-129&t;if(r<=0||r>=4)throw new Error("Invalid hashType "+t);const i=n.decode(e.slice(0,-1)),o=s(i.r),a=s(i.s);return{signature:Buffer.concat([o,a],64),hashType:t}},t.encode=function(t,r){i({signature:e.BufferN(64),hashType:e.UInt8},{signature:t,hashType:r});const o=-129&r;if(o<=0||o>=4)throw new Error("Invalid hashType "+r);const s=Buffer.allocUnsafe(1);s.writeUInt8(r,0);const u=a(t.slice(0,32)),c=a(t.slice(32,64));return Buffer.concat([n.encode(u,c),s])}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(24),i=r(4),o=r(49),a=i.OPS,s=r(5),u=r(15),c=a.OP_RESERVED;function l(e,t){return e.length===t.length&&e.every((e,r)=>e.equals(t[r]))}t.p2ms=function(e,t){if(!(e.input||e.output||e.pubkeys&&void 0!==e.m||e.signatures))throw new TypeError("Not enough data");function r(e){return i.isCanonicalScriptSignature(e)||void 0!==(t.allowIncomplete&&e===a.OP_0)}t=Object.assign({validate:!0},t||{}),s({network:s.maybe(s.Object),m:s.maybe(s.Number),n:s.maybe(s.Number),output:s.maybe(s.Buffer),pubkeys:s.maybe(s.arrayOf(u.isPoint)),signatures:s.maybe(s.arrayOf(r)),input:s.maybe(s.Buffer)},e);const f={network:e.network||n.bitcoin};let h=[],d=!1;function p(e){d||(d=!0,h=i.decompile(e),f.m=h[0]-c,f.n=h[h.length-2]-c,f.pubkeys=h.slice(1,-2))}if(o.prop(f,"output",()=>{if(e.m&&f.n&&e.pubkeys)return i.compile([].concat(c+e.m,e.pubkeys,c+f.n,a.OP_CHECKMULTISIG))}),o.prop(f,"m",()=>{if(f.output)return p(f.output),f.m}),o.prop(f,"n",()=>{if(f.pubkeys)return f.pubkeys.length}),o.prop(f,"pubkeys",()=>{if(e.output)return p(e.output),f.pubkeys}),o.prop(f,"signatures",()=>{if(e.input)return i.decompile(e.input).slice(1)}),o.prop(f,"input",()=>{if(e.signatures)return i.compile([a.OP_0].concat(e.signatures))}),o.prop(f,"witness",()=>{if(f.input)return[]}),t.validate){if(e.output){if(p(e.output),!s.Number(h[0]))throw new TypeError("Output is invalid");if(!s.Number(h[h.length-2]))throw new TypeError("Output is invalid");if(h[h.length-1]!==a.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(f.m<=0||f.n>16||f.m>f.n||f.n!==h.length-3)throw new TypeError("Output is invalid");if(!f.pubkeys.every(e=>u.isPoint(e)))throw new TypeError("Output is invalid");if(void 0!==e.m&&e.m!==f.m)throw new TypeError("m mismatch");if(void 0!==e.n&&e.n!==f.n)throw new TypeError("n mismatch");if(e.pubkeys&&!l(e.pubkeys,f.pubkeys))throw new TypeError("Pubkeys mismatch")}if(e.pubkeys){if(void 0!==e.n&&e.n!==e.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(f.n=e.pubkeys.length,f.nf.m)throw new TypeError("Too many signatures provided")}if(e.input){if(e.input[0]!==a.OP_0)throw new TypeError("Input is invalid");if(0===f.signatures.length||!f.signatures.every(r))throw new TypeError("Input has invalid signature(s)");if(e.signatures&&!l(e.signatures,f.signatures))throw new TypeError("Signature mismatch");if(void 0!==e.m&&e.m!==e.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(f,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(15);t.p2pk=function(e,t){if(!(e.input||e.output||e.pubkey||e.input||e.signature))throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),a({network:a.maybe(a.Object),output:a.maybe(a.Buffer),pubkey:a.maybe(u.isPoint),signature:a.maybe(i.isCanonicalScriptSignature),input:a.maybe(a.Buffer)},e);const r=o.value(()=>i.decompile(e.input)),c={network:e.network||n.bitcoin};if(o.prop(c,"output",()=>{if(e.pubkey)return i.compile([e.pubkey,s.OP_CHECKSIG])}),o.prop(c,"pubkey",()=>{if(e.output)return e.output.slice(1,-1)}),o.prop(c,"signature",()=>{if(e.input)return r()[0]}),o.prop(c,"input",()=>{if(e.signature)return i.compile([e.signature])}),o.prop(c,"witness",()=>{if(c.input)return[]}),t.validate){if(e.output){if(e.output[e.output.length-1]!==s.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!u.isPoint(c.pubkey))throw new TypeError("Output pubkey is invalid");if(e.pubkey&&!e.pubkey.equals(c.pubkey))throw new TypeError("Pubkey mismatch")}if(e.signature&&e.input&&!e.input.equals(c.input))throw new TypeError("Signature mismatch");if(e.input){if(1!==r().length)throw new TypeError("Input is invalid");if(!i.isCanonicalScriptSignature(c.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(c,e)}},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(41),n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(15),c=r(35);t.p2pkh=function(t,r){if(!(t.address||t.hash||t.output||t.pubkey||t.input))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),a({network:a.maybe(a.Object),address:a.maybe(a.String),hash:a.maybe(a.BufferN(20)),output:a.maybe(a.BufferN(25)),pubkey:a.maybe(u.isPoint),signature:a.maybe(i.isCanonicalScriptSignature),input:a.maybe(a.Buffer)},t);const l=o.value(()=>{const e=c.decode(t.address);return{version:e.readUInt8(0),hash:e.slice(1)}}),f=o.value(()=>i.decompile(t.input)),h=t.network||n.bitcoin,d={network:h};if(o.prop(d,"address",()=>{if(!d.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(h.pubKeyHash,0),d.hash.copy(e,1),c.encode(e)}),o.prop(d,"hash",()=>t.output?t.output.slice(3,23):t.address?l().hash:t.pubkey||d.pubkey?e.hash160(t.pubkey||d.pubkey):void 0),o.prop(d,"output",()=>{if(d.hash)return i.compile([s.OP_DUP,s.OP_HASH160,d.hash,s.OP_EQUALVERIFY,s.OP_CHECKSIG])}),o.prop(d,"pubkey",()=>{if(t.input)return f()[1]}),o.prop(d,"signature",()=>{if(t.input)return f()[0]}),o.prop(d,"input",()=>{if(t.pubkey&&t.signature)return i.compile([t.signature,t.pubkey])}),o.prop(d,"witness",()=>{if(d.input)return[]}),r.validate){let r=Buffer.from([]);if(t.address){if(l().version!==h.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(20!==l().hash.length)throw new TypeError("Invalid address");r=l().hash}if(t.hash){if(r.length>0&&!r.equals(t.hash))throw new TypeError("Hash mismatch");r=t.hash}if(t.output){if(25!==t.output.length||t.output[0]!==s.OP_DUP||t.output[1]!==s.OP_HASH160||20!==t.output[2]||t.output[23]!==s.OP_EQUALVERIFY||t.output[24]!==s.OP_CHECKSIG)throw new TypeError("Output is invalid");const e=t.output.slice(3,23);if(r.length>0&&!r.equals(e))throw new TypeError("Hash mismatch");r=e}if(t.pubkey){const n=e.hash160(t.pubkey);if(r.length>0&&!r.equals(n))throw new TypeError("Hash mismatch");r=n}if(t.input){const n=f();if(2!==n.length)throw new TypeError("Input is invalid");if(!i.isCanonicalScriptSignature(n[0]))throw new TypeError("Input has invalid signature");if(!u.isPoint(n[1]))throw new TypeError("Input has invalid pubkey");if(t.signature&&!t.signature.equals(n[0]))throw new TypeError("Signature mismatch");if(t.pubkey&&!t.pubkey.equals(n[1]))throw new TypeError("Pubkey mismatch");const o=e.hash160(n[1]);if(r.length>0&&!r.equals(o))throw new TypeError("Hash mismatch")}}return Object.assign(d,t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(41),n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(35);t.p2sh=function(t,r){if(!(t.address||t.hash||t.output||t.redeem||t.input))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),a({network:a.maybe(a.Object),address:a.maybe(a.String),hash:a.maybe(a.BufferN(20)),output:a.maybe(a.BufferN(23)),redeem:a.maybe({network:a.maybe(a.Object),output:a.maybe(a.Buffer),input:a.maybe(a.Buffer),witness:a.maybe(a.arrayOf(a.Buffer))}),input:a.maybe(a.Buffer),witness:a.maybe(a.arrayOf(a.Buffer))},t);let c=t.network;c||(c=t.redeem&&t.redeem.network||n.bitcoin);const l={network:c},f=o.value(()=>{const e=u.decode(t.address);return{version:e.readUInt8(0),hash:e.slice(1)}}),h=o.value(()=>i.decompile(t.input)),d=o.value(()=>{const e=h();return{network:c,output:e[e.length-1],input:i.compile(e.slice(0,-1)),witness:t.witness||[]}});if(o.prop(l,"address",()=>{if(!l.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(l.network.scriptHash,0),l.hash.copy(e,1),u.encode(e)}),o.prop(l,"hash",()=>t.output?t.output.slice(2,22):t.address?f().hash:l.redeem&&l.redeem.output?e.hash160(l.redeem.output):void 0),o.prop(l,"output",()=>{if(l.hash)return i.compile([s.OP_HASH160,l.hash,s.OP_EQUAL])}),o.prop(l,"redeem",()=>{if(t.input)return d()}),o.prop(l,"input",()=>{if(t.redeem&&t.redeem.input&&t.redeem.output)return i.compile([].concat(i.decompile(t.redeem.input),t.redeem.output))}),o.prop(l,"witness",()=>l.redeem&&l.redeem.witness?l.redeem.witness:l.input?[]:void 0),r.validate){let r=Buffer.from([]);if(t.address){if(f().version!==c.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(20!==f().hash.length)throw new TypeError("Invalid address");r=f().hash}if(t.hash){if(r.length>0&&!r.equals(t.hash))throw new TypeError("Hash mismatch");r=t.hash}if(t.output){if(23!==t.output.length||t.output[0]!==s.OP_HASH160||20!==t.output[1]||t.output[22]!==s.OP_EQUAL)throw new TypeError("Output is invalid");const e=t.output.slice(2,22);if(r.length>0&&!r.equals(e))throw new TypeError("Hash mismatch");r=e}const n=t=>{if(t.output){const n=i.decompile(t.output);if(!n||n.length<1)throw new TypeError("Redeem.output too short");const o=e.hash160(t.output);if(r.length>0&&!r.equals(o))throw new TypeError("Hash mismatch");r=o}if(t.input){const e=t.input.length>0,r=t.witness&&t.witness.length>0;if(!e&&!r)throw new TypeError("Empty input");if(e&&r)throw new TypeError("Input and witness provided");if(e){const e=i.decompile(t.input);if(!i.isPushOnly(e))throw new TypeError("Non push-only scriptSig")}}};if(t.input){const e=h();if(!e||e.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(d().output))throw new TypeError("Input is invalid");n(d())}if(t.redeem){if(t.redeem.network&&t.redeem.network!==c)throw new TypeError("Network mismatch");if(t.input){const e=d();if(t.redeem.output&&!t.redeem.output.equals(e.output))throw new TypeError("Redeem.output mismatch");if(t.redeem.input&&!t.redeem.input.equals(e.input))throw new TypeError("Redeem.input mismatch")}n(t.redeem)}if(t.witness&&t.redeem&&t.redeem.witness&&!function(e,t){return e.length===t.length&&e.every((e,r)=>e.equals(t[r]))}(t.redeem.witness,t.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(l,t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(41),n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(15),c=r(56),l=Buffer.alloc(0);t.p2wpkh=function(t,r){if(!(t.address||t.hash||t.output||t.pubkey||t.witness))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),a({address:a.maybe(a.String),hash:a.maybe(a.BufferN(20)),input:a.maybe(a.BufferN(0)),network:a.maybe(a.Object),output:a.maybe(a.BufferN(22)),pubkey:a.maybe(u.isPoint),signature:a.maybe(i.isCanonicalScriptSignature),witness:a.maybe(a.arrayOf(a.Buffer))},t);const f=o.value(()=>{const e=c.decode(t.address),r=e.words.shift(),n=c.fromWords(e.words);return{version:r,prefix:e.prefix,data:Buffer.from(n)}}),h=t.network||n.bitcoin,d={network:h};if(o.prop(d,"address",()=>{if(!d.hash)return;const e=c.toWords(d.hash);return e.unshift(0),c.encode(h.bech32,e)}),o.prop(d,"hash",()=>t.output?t.output.slice(2,22):t.address?f().data:t.pubkey||d.pubkey?e.hash160(t.pubkey||d.pubkey):void 0),o.prop(d,"output",()=>{if(d.hash)return i.compile([s.OP_0,d.hash])}),o.prop(d,"pubkey",()=>t.pubkey?t.pubkey:t.witness?t.witness[1]:void 0),o.prop(d,"signature",()=>{if(t.witness)return t.witness[0]}),o.prop(d,"input",()=>{if(d.witness)return l}),o.prop(d,"witness",()=>{if(t.pubkey&&t.signature)return[t.signature,t.pubkey]}),r.validate){let r=Buffer.from([]);if(t.address){if(h&&h.bech32!==f().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(0!==f().version)throw new TypeError("Invalid address version");if(20!==f().data.length)throw new TypeError("Invalid address data");r=f().data}if(t.hash){if(r.length>0&&!r.equals(t.hash))throw new TypeError("Hash mismatch");r=t.hash}if(t.output){if(22!==t.output.length||t.output[0]!==s.OP_0||20!==t.output[1])throw new TypeError("Output is invalid");if(r.length>0&&!r.equals(t.output.slice(2)))throw new TypeError("Hash mismatch");r=t.output.slice(2)}if(t.pubkey){const n=e.hash160(t.pubkey);if(r.length>0&&!r.equals(n))throw new TypeError("Hash mismatch");r=n}if(t.witness){if(2!==t.witness.length)throw new TypeError("Witness is invalid");if(!i.isCanonicalScriptSignature(t.witness[0]))throw new TypeError("Witness has invalid signature");if(!u.isPoint(t.witness[1]))throw new TypeError("Witness has invalid pubkey");if(t.signature&&!t.signature.equals(t.witness[0]))throw new TypeError("Signature mismatch");if(t.pubkey&&!t.pubkey.equals(t.witness[1]))throw new TypeError("Pubkey mismatch");const n=e.hash160(t.witness[1]);if(r.length>0&&!r.equals(n))throw new TypeError("Hash mismatch")}}return Object.assign(d,t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(41),n=r(24),i=r(4),o=r(49),a=r(5),s=i.OPS,u=r(56),c=Buffer.alloc(0);t.p2wsh=function(t,r){if(!(t.address||t.hash||t.output||t.redeem||t.witness))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),a({network:a.maybe(a.Object),address:a.maybe(a.String),hash:a.maybe(a.BufferN(32)),output:a.maybe(a.BufferN(34)),redeem:a.maybe({input:a.maybe(a.Buffer),network:a.maybe(a.Object),output:a.maybe(a.Buffer),witness:a.maybe(a.arrayOf(a.Buffer))}),input:a.maybe(a.BufferN(0)),witness:a.maybe(a.arrayOf(a.Buffer))},t);const l=o.value(()=>{const e=u.decode(t.address),r=e.words.shift(),n=u.fromWords(e.words);return{version:r,prefix:e.prefix,data:Buffer.from(n)}}),f=o.value(()=>i.decompile(t.redeem.input));let h=t.network;h||(h=t.redeem&&t.redeem.network||n.bitcoin);const d={network:h};if(o.prop(d,"address",()=>{if(!d.hash)return;const e=u.toWords(d.hash);return e.unshift(0),u.encode(h.bech32,e)}),o.prop(d,"hash",()=>t.output?t.output.slice(2):t.address?l().data:d.redeem&&d.redeem.output?e.sha256(d.redeem.output):void 0),o.prop(d,"output",()=>{if(d.hash)return i.compile([s.OP_0,d.hash])}),o.prop(d,"redeem",()=>{if(t.witness)return{output:t.witness[t.witness.length-1],input:c,witness:t.witness.slice(0,-1)}}),o.prop(d,"input",()=>{if(d.witness)return c}),o.prop(d,"witness",()=>{if(t.redeem&&t.redeem.input&&t.redeem.input.length>0&&t.redeem.output&&t.redeem.output.length>0){const e=i.toStack(f());return d.redeem=Object.assign({witness:e},t.redeem),d.redeem.input=c,[].concat(e,t.redeem.output)}if(t.redeem&&t.redeem.output&&t.redeem.witness)return[].concat(t.redeem.witness,t.redeem.output)}),r.validate){let r=Buffer.from([]);if(t.address){if(l().prefix!==h.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(0!==l().version)throw new TypeError("Invalid address version");if(32!==l().data.length)throw new TypeError("Invalid address data");r=l().data}if(t.hash){if(r.length>0&&!r.equals(t.hash))throw new TypeError("Hash mismatch");r=t.hash}if(t.output){if(34!==t.output.length||t.output[0]!==s.OP_0||32!==t.output[1])throw new TypeError("Output is invalid");const e=t.output.slice(2);if(r.length>0&&!r.equals(e))throw new TypeError("Hash mismatch");r=e}if(t.redeem){if(t.redeem.network&&t.redeem.network!==h)throw new TypeError("Network mismatch");if(t.redeem.input&&t.redeem.input.length>0&&t.redeem.witness&&t.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(t.redeem.output){if(0===i.decompile(t.redeem.output).length)throw new TypeError("Redeem.output is invalid");const n=e.sha256(t.redeem.output);if(r.length>0&&!r.equals(n))throw new TypeError("Hash mismatch");r=n}if(t.redeem.input&&!i.isPushOnly(f()))throw new TypeError("Non push-only scriptSig");if(t.witness&&t.redeem.witness&&!function(e,t){return e.length===t.length&&e.every((e,r)=>e.equals(t[r]))}(t.witness,t.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch")}if(t.witness&&t.redeem&&t.redeem.output&&!t.redeem.output.equals(t.witness[t.witness.length-1]))throw new TypeError("Witness and redeem.output mismatch")}return Object.assign(d,t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(90),n=r(41),i=r(122),o=r(37),a=r(187),s=r(5),u=r(91),c=new TypeError("Cannot compute merkle root for zero transactions"),l=new TypeError("Cannot compute witness commit for non-segwit block");class f{constructor(){this.version=1,this.prevHash=void 0,this.merkleRoot=void 0,this.timestamp=0,this.witnessCommit=void 0,this.bits=0,this.nonce=0,this.transactions=void 0}static fromBuffer(e){if(e.length<80)throw new Error("Buffer too small (< 80 bytes)");let t=0;const r=r=>(t+=r,e.slice(t-r,t)),n=()=>{const r=e.readUInt32LE(t);return t+=4,r},o=new f;if(o.version=(()=>{const r=e.readInt32LE(t);return t+=4,r})(),o.prevHash=r(32),o.merkleRoot=r(32),o.timestamp=n(),o.bits=n(),o.nonce=n(),80===e.length)return o;const a=()=>{const r=i.Transaction.fromBuffer(e.slice(t),!0);return t+=r.byteLength(),r},s=(()=>{const r=u.decode(e,t);return t+=u.decode.bytes,r})();o.transactions=[];for(let e=0;e>24)-3,r=8388607&e,n=Buffer.alloc(32,0);return n.writeUIntBE(r,29-t,3),n}static calculateMerkleRoot(e,t){if(s([{getHash:o.Function}],e),0===e.length)throw c;if(t&&!h(e))throw l;const r=e.map(e=>e.getHash(t)),i=a(r,n.hash256);return t?n.hash256(Buffer.concat([i,e[0].ins[0].witness[0]])):i}getWitnessCommit(){if(!h(this.transactions))return null;const e=this.transactions[0].outs.filter(e=>e.script.slice(0,6).equals(Buffer.from("6a24aa21a9ed","hex"))).map(e=>e.script.slice(6,38));if(0===e.length)return null;const t=e[e.length-1];return t instanceof Buffer&&32===t.length?t:null}hasWitnessCommit(){return this.witnessCommit instanceof Buffer&&32===this.witnessCommit.length||null!==this.getWitnessCommit()}hasWitness(){return(e=this.transactions)instanceof Array&&e.some(e=>"object"==typeof e&&e.ins instanceof Array&&e.ins.some(e=>"object"==typeof e&&e.witness instanceof Array&&e.witness.length>0));var e}byteLength(e){return e||!this.transactions?80:80+u.encodingLength(this.transactions.length)+this.transactions.reduce((e,t)=>e+t.byteLength(),0)}getHash(){return n.hash256(this.toBuffer(!0))}getId(){return e.reverseBuffer(this.getHash()).toString("hex")}getUTCDate(){const e=new Date(0);return e.setUTCSeconds(this.timestamp),e}toBuffer(e){const t=Buffer.allocUnsafe(this.byteLength(e));let r=0;const n=e=>{e.copy(t,r),r+=e.length},i=e=>{t.writeUInt32LE(e,r),r+=4};var o;return o=this.version,t.writeInt32LE(o,r),r+=4,n(this.prevHash),n(this.merkleRoot),i(this.timestamp),i(this.bits),i(this.nonce),e||!this.transactions?t:(u.encode(this.transactions.length,t,r),r+=u.encode.bytes,this.transactions.forEach(e=>{const n=e.byteLength();e.toBuffer(t,r),r+=n}),t)}toHex(e){return this.toBuffer(e).toString("hex")}checkTxRoots(){const e=this.hasWitnessCommit();return!(!e&&this.hasWitness())&&(this.__checkMerkleRoot()&&(!e||this.__checkWitnessCommit()))}checkProofOfWork(){const t=e.reverseBuffer(this.getHash()),r=f.calculateTarget(this.bits);return t.compare(r)<=0}__checkMerkleRoot(){if(!this.transactions)throw c;const e=f.calculateMerkleRoot(this.transactions);return 0===this.merkleRoot.compare(e)}__checkWitnessCommit(){if(!this.transactions)throw c;if(!this.hasWitnessCommit())throw l;const e=f.calculateMerkleRoot(this.transactions,!0);return 0===this.witnessCommit.compare(e)}}function h(e){return e instanceof Array&&e[0]&&e[0].ins&&e[0].ins instanceof Array&&e[0].ins[0]&&e[0].ins[0].witness&&e[0].ins[0].witness instanceof Array&&e[0].ins[0].witness.length>0}t.Block=f}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(183),n=r(90),i=r(362),o=r(41),ECPair=r(186),a=r(24),s=r(121),u=r(4),c=r(4),l=r(122),f=r(37),h=r(5),d=i.types;class p{constructor(e=a.bitcoin,t=2500){this.network=e,this.maximumFeeRate=t,this.__PREV_TX_SET={},this.__INPUTS=[],this.__TX=new l.Transaction,this.__TX.version=2,this.__USE_LOW_R=!1}static fromTransaction(e,t){const r=new p(t);return r.setVersion(e.version),r.setLockTime(e.locktime),e.outs.forEach(e=>{r.addOutput(e.script,e.value)}),e.ins.forEach(e=>{r.__addInputUnsafe(e.hash,e.index,{sequence:e.sequence,script:e.script,witness:e.witness})}),r.__INPUTS.forEach((t,r)=>{!function(e,t,r){if(e.redeemScriptType!==d.P2MS||!e.redeemScript)return;if(e.pubkeys.length===e.signatures.length)return;const n=e.signatures.concat();e.signatures=e.pubkeys.map(i=>{const o=ECPair.fromPublicKey(i);let a;return n.some((i,s)=>{if(!i)return!1;const c=u.signature.decode(i),l=t.hashForSignature(r,e.redeemScript,c.hashType);return!!o.verify(l,c.signature)&&(n[s]=void 0,a=i,!0)}),a})}(t,e,r)}),r}setLowR(e){return h(h.maybe(h.Boolean),e),void 0===e&&(e=!0),this.__USE_LOW_R=e,e}setLockTime(e){if(h(f.UInt32,e),this.__INPUTS.some(e=>!!e.signatures&&e.signatures.some(e=>void 0!==e)))throw new Error("No, this would invalidate signatures");this.__TX.locktime=e}setVersion(e){h(f.UInt32,e),this.__TX.version=e}addInput(e,t,r,i){if(!this.__canModifyInputs())throw new Error("No, this would invalidate signatures");let o;if("string"==typeof(a=e)||a instanceof String)e=n.reverseBuffer(Buffer.from(e,"hex"));else if(function(e){return e instanceof l.Transaction}(e)){const r=e.outs[t];i=r.script,o=r.value,e=e.getHash(!1)}var a;return this.__addInputUnsafe(e,t,{sequence:r,prevOutScript:i,value:o})}addOutput(t,r){if(!this.__canModifyOutputs())throw new Error("No, this would invalidate signatures");return"string"==typeof t&&(t=e.toOutputScript(t,this.network)),this.__TX.addOutput(t,r)}build(){return this.__build(!1)}buildIncomplete(){return this.__build(!0)}sign(e,t,r,n,i,o){if(t.network&&t.network!==this.network)throw new TypeError("Inconsistent network");if(!this.__INPUTS[e])throw new Error("No input at index: "+e);if(n=n||l.Transaction.SIGHASH_ALL,this.__needsOutputs(n))throw new Error("Transaction needs outputs");const a=this.__INPUTS[e];if(void 0!==a.redeemScript&&r&&!a.redeemScript.equals(r))throw new Error("Inconsistent redeemScript");const c=t.publicKey||t.getPublicKey();if(!g(a)){if(void 0!==i){if(void 0!==a.value&&a.value!==i)throw new Error("Input did not match witnessValue");h(f.Satoshi,i),a.value=i}if(!g(a)){const e=function(e,t,r,n){if(r&&n){const i=s.p2wsh({redeem:{output:n}}),o=s.p2wsh({output:r}),a=s.p2sh({redeem:{output:r}}),c=s.p2sh({redeem:i});if(!i.hash.equals(o.hash))throw new Error("Witness script inconsistent with prevOutScript");if(!a.hash.equals(c.hash))throw new Error("Redeem script inconsistent with prevOutScript");const l=m(i.redeem.output,t);if(!l.pubkeys)throw new Error(l.type+" not supported as witnessScript ("+u.toASM(n)+")");e.signatures&&e.signatures.some(e=>void 0!==e)&&(l.signatures=e.signatures);const f=n;if(l.type===d.P2WPKH)throw new Error("P2SH(P2WSH(P2WPKH)) is a consensus failure");return{redeemScript:r,redeemScriptType:d.P2WSH,witnessScript:n,witnessScriptType:l.type,prevOutType:d.P2SH,prevOutScript:a.output,hasWitness:!0,signScript:f,signType:l.type,pubkeys:l.pubkeys,signatures:l.signatures,maxSignatures:l.maxSignatures}}if(r){const n=s.p2sh({redeem:{output:r}});if(e.prevOutScript){let t;try{t=s.p2sh({output:e.prevOutScript})}catch(e){throw new Error("PrevOutScript must be P2SH")}if(!n.hash.equals(t.hash))throw new Error("Redeem script inconsistent with prevOutScript")}const i=m(n.redeem.output,t);if(!i.pubkeys)throw new Error(i.type+" not supported as redeemScript ("+u.toASM(r)+")");e.signatures&&e.signatures.some(e=>void 0!==e)&&(i.signatures=e.signatures);let o=r;return i.type===d.P2WPKH&&(o=s.p2pkh({pubkey:i.pubkeys[0]}).output),{redeemScript:r,redeemScriptType:i.type,prevOutType:d.P2SH,prevOutScript:n.output,hasWitness:i.type===d.P2WPKH,signScript:o,signType:i.type,pubkeys:i.pubkeys,signatures:i.signatures,maxSignatures:i.maxSignatures}}if(n){const r=s.p2wsh({redeem:{output:n}});if(e.prevOutScript){const t=s.p2wsh({output:e.prevOutScript});if(!r.hash.equals(t.hash))throw new Error("Witness script inconsistent with prevOutScript")}const i=m(r.redeem.output,t);if(!i.pubkeys)throw new Error(i.type+" not supported as witnessScript ("+u.toASM(n)+")");e.signatures&&e.signatures.some(e=>void 0!==e)&&(i.signatures=e.signatures);const o=n;if(i.type===d.P2WPKH)throw new Error("P2WSH(P2WPKH) is a consensus failure");return{witnessScript:n,witnessScriptType:i.type,prevOutType:d.P2WSH,prevOutScript:r.output,hasWitness:!0,signScript:o,signType:i.type,pubkeys:i.pubkeys,signatures:i.signatures,maxSignatures:i.maxSignatures}}if(e.prevOutType&&e.prevOutScript){if(e.prevOutType===d.P2SH)throw new Error("PrevOutScript is "+e.prevOutType+", requires redeemScript");if(e.prevOutType===d.P2WSH)throw new Error("PrevOutScript is "+e.prevOutType+", requires witnessScript");if(!e.prevOutScript)throw new Error("PrevOutScript is missing");const r=m(e.prevOutScript,t);if(!r.pubkeys)throw new Error(r.type+" not supported ("+u.toASM(e.prevOutScript)+")");e.signatures&&e.signatures.some(e=>void 0!==e)&&(r.signatures=e.signatures);let n=e.prevOutScript;return r.type===d.P2WPKH&&(n=s.p2pkh({pubkey:r.pubkeys[0]}).output),{prevOutType:r.type,prevOutScript:e.prevOutScript,hasWitness:r.type===d.P2WPKH,signScript:n,signType:r.type,pubkeys:r.pubkeys,signatures:r.signatures,maxSignatures:r.maxSignatures}}const i=s.p2pkh({pubkey:t}).output;return{prevOutType:d.P2PKH,prevOutScript:i,hasWitness:!1,signScript:i,signType:d.P2PKH,pubkeys:[t],signatures:[void 0]}}(a,c,r,o);Object.assign(a,e)}if(!g(a))throw Error(a.prevOutType+" not supported")}let p;if(p=a.hasWitness?this.__TX.hashForWitnessV0(e,a.signScript,a.value,n):this.__TX.hashForSignature(e,a.signScript,n),!a.pubkeys.some((e,r)=>{if(!c.equals(e))return!1;if(a.signatures[r])throw new Error("Signature already exists");if(33!==c.length&&a.hasWitness)throw new Error("BIP143 rejects uncompressed public keys in P2WPKH or P2WSH");const i=t.sign(p,this.__USE_LOW_R);return a.signatures[r]=u.signature.encode(i,n),!0}))throw new Error("Key pair cannot sign for this input")}__addInputUnsafe(e,t,r){if(l.Transaction.isCoinbaseHash(e))throw new Error("coinbase inputs not supported");const n=e.toString("hex")+":"+t;if(void 0!==this.__PREV_TX_SET[n])throw new Error("Duplicate TxOut: "+n);let o={};if(void 0!==r.script&&(o=function e(t,r,n,o){if(0===t.length&&0===r.length)return{};if(!n){let e=i.input(t,!0),o=i.witness(r,!0);e===d.NONSTANDARD&&(e=void 0),o===d.NONSTANDARD&&(o=void 0),n=e||o}switch(n){case d.P2WPKH:{const{output:e,pubkey:t,signature:n}=s.p2wpkh({witness:r});return{prevOutScript:e,prevOutType:d.P2WPKH,pubkeys:[t],signatures:[n]}}case d.P2PKH:{const{output:e,pubkey:r,signature:n}=s.p2pkh({input:t});return{prevOutScript:e,prevOutType:d.P2PKH,pubkeys:[r],signatures:[n]}}case d.P2PK:{const{signature:e}=s.p2pk({input:t});return{prevOutType:d.P2PK,pubkeys:[void 0],signatures:[e]}}case d.P2MS:{const{m:e,pubkeys:r,signatures:n}=s.p2ms({input:t,output:o},{allowIncomplete:!0});return{prevOutType:d.P2MS,pubkeys:r,signatures:n,maxSignatures:e}}}if(n===d.P2SH){const{output:n,redeem:o}=s.p2sh({input:t,witness:r}),a=i.output(o.output),u=e(o.input,o.witness,a,o.output);return u.prevOutType?{prevOutScript:n,prevOutType:d.P2SH,redeemScript:o.output,redeemScriptType:u.prevOutType,witnessScript:u.witnessScript,witnessScriptType:u.witnessScriptType,pubkeys:u.pubkeys,signatures:u.signatures}:{}}if(n===d.P2WSH){const{output:n,redeem:o}=s.p2wsh({input:t,witness:r}),a=i.output(o.output);let c;return(c=a===d.P2WPKH?e(o.input,o.witness,a):e(u.compile(o.witness),[],a,o.output)).prevOutType?{prevOutScript:n,prevOutType:d.P2WSH,witnessScript:o.output,witnessScriptType:c.prevOutType,pubkeys:c.pubkeys,signatures:c.signatures}:{}}return{prevOutType:d.NONSTANDARD,prevOutScript:t}}(r.script,r.witness||[])),void 0!==r.value&&(o.value=r.value),!o.prevOutScript&&r.prevOutScript){let e;if(!o.pubkeys&&!o.signatures){const t=m(r.prevOutScript);t.pubkeys&&(o.pubkeys=t.pubkeys,o.signatures=t.signatures),e=t.type}o.prevOutScript=r.prevOutScript,o.prevOutType=e||i.output(r.prevOutScript)}const a=this.__TX.addInput(e,t,r.sequence,r.scriptSig);return this.__INPUTS[a]=o,this.__PREV_TX_SET[n]=!0,a}__build(e){if(!e){if(!this.__TX.ins.length)throw new Error("Transaction has no inputs");if(!this.__TX.outs.length)throw new Error("Transaction has no outputs")}const t=this.__TX.clone();if(this.__INPUTS.forEach((r,n)=>{if(!r.prevOutType&&!e)throw new Error("Transaction is not complete");const i=function e(t,r,n){const i=r.pubkeys||[];let o=r.signatures||[];switch(t){case d.P2PKH:if(0===i.length)break;if(0===o.length)break;return s.p2pkh({pubkey:i[0],signature:o[0]});case d.P2WPKH:if(0===i.length)break;if(0===o.length)break;return s.p2wpkh({pubkey:i[0],signature:o[0]});case d.P2PK:if(0===i.length)break;if(0===o.length)break;return s.p2pk({signature:o[0]});case d.P2MS:{const e=r.maxSignatures;o=n?o.map(e=>e||c.OPS.OP_0):o.filter(e=>e);const t=!n||e===o.length;return s.p2ms({m:e,pubkeys:i,signatures:o},{allowIncomplete:n,validate:t})}case d.P2SH:{const t=e(r.redeemScriptType,r,n);if(!t)return;return s.p2sh({redeem:{output:t.output||r.redeemScript,input:t.input,witness:t.witness}})}case d.P2WSH:{const t=e(r.witnessScriptType,r,n);if(!t)return;return s.p2wsh({redeem:{output:r.witnessScript,input:t.input,witness:t.witness}})}}}(r.prevOutType,r,e);if(i)t.setInputScript(n,i.input),t.setWitness(n,i.witness);else{if(!e&&r.prevOutType===d.NONSTANDARD)throw new Error("Unknown input type");if(!e)throw new Error("Not enough information")}}),!e&&this.__overMaximumFees(t.virtualSize()))throw new Error("Transaction has absurd fees");return t}__canModifyInputs(){return this.__INPUTS.every(e=>!e.signatures||e.signatures.every(e=>{if(!e)return!0;return 0!=(v(e)&l.Transaction.SIGHASH_ANYONECANPAY)}))}__needsOutputs(e){return e===l.Transaction.SIGHASH_ALL?0===this.__TX.outs.length:0===this.__TX.outs.length&&this.__INPUTS.some(e=>!!e.signatures&&e.signatures.some(e=>{if(!e)return!1;return!(v(e)&l.Transaction.SIGHASH_NONE)}))}__canModifyOutputs(){const e=this.__TX.ins.length,t=this.__TX.outs.length;return this.__INPUTS.every(r=>void 0===r.signatures||r.signatures.every(r=>{if(!r)return!0;const n=31&v(r);return n===l.Transaction.SIGHASH_NONE||n===l.Transaction.SIGHASH_SINGLE&&e<=t}))}__overMaximumFees(e){return(this.__INPUTS.reduce((e,t)=>e+(t.value>>>0),0)-this.__TX.outs.reduce((e,t)=>e+t.value,0))/e>this.maximumFeeRate}}function m(e,t){h(f.Buffer,e);const r=i.output(e);switch(r){case d.P2PKH:{if(!t)return{type:r};const n=s.p2pkh({output:e}).hash,i=o.hash160(t);return n.equals(i)?{type:r,pubkeys:[t],signatures:[void 0]}:{type:r}}case d.P2WPKH:{if(!t)return{type:r};const n=s.p2wpkh({output:e}).hash,i=o.hash160(t);return n.equals(i)?{type:r,pubkeys:[t],signatures:[void 0]}:{type:r}}case d.P2PK:return{type:r,pubkeys:[s.p2pk({output:e}).pubkey],signatures:[void 0]};case d.P2MS:{const t=s.p2ms({output:e});return{type:r,pubkeys:t.pubkeys,signatures:t.pubkeys.map(()=>void 0),maxSignatures:t.m}}}return{type:r}}function g(e){return void 0!==e.signScript&&void 0!==e.signType&&void 0!==e.pubkeys&&void 0!==e.signatures&&e.signatures.length===e.pubkeys.length&&e.pubkeys.length>0&&(!1===e.hasWitness||void 0!==e.value)}function v(e){return e.readUInt8(e.length-1)}t.TransactionBuilder=p}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(123),o=r(365),a=r(124),s=r(125),u=r(370),c=r(373),l=r(375),f=r(377),h={P2MS:"multisig",NONSTANDARD:"nonstandard",NULLDATA:"nulldata",P2PK:"pubkey",P2PKH:"pubkeyhash",P2SH:"scripthash",P2WPKH:"witnesspubkeyhash",P2WSH:"witnessscripthash",WITNESS_COMMITMENT:"witnesscommitment"};t.types=h,t.output=function(e){if(l.output.check(e))return h.P2WPKH;if(f.output.check(e))return h.P2WSH;if(s.output.check(e))return h.P2PKH;if(u.output.check(e))return h.P2SH;const t=n.decompile(e);if(!t)throw new TypeError("Invalid script");return i.output.check(t)?h.P2MS:a.output.check(t)?h.P2PK:c.output.check(t)?h.WITNESS_COMMITMENT:o.output.check(t)?h.NULLDATA:h.NONSTANDARD},t.input=function(e,t){const r=n.decompile(e);if(!r)throw new TypeError("Invalid script");return s.input.check(r)?h.P2PKH:u.input.check(r,t)?h.P2SH:i.input.check(r,t)?h.P2MS:a.input.check(r)?h.P2PK:h.NONSTANDARD},t.witness=function(e,t){const r=n.decompile(e);if(!r)throw new TypeError("Invalid script");return l.input.check(r)?h.P2WPKH:f.input.check(r,t)?h.P2WSH:h.NONSTANDARD}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){return e===i.OPS.OP_0||n.isCanonicalScriptSignature(e)}function a(e,t){const r=n.decompile(e);return!(r.length<2)&&(r[0]===i.OPS.OP_0&&(t?r.slice(1).every(o):r.slice(1).every(n.isCanonicalScriptSignature)))}t.check=a,a.toJSON=()=>"multisig input"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4),o=r(37),a=i.OPS.OP_RESERVED;function s(e,t){const r=n.decompile(e);if(r.length<4)return!1;if(r[r.length-1]!==i.OPS.OP_CHECKMULTISIG)return!1;if(!o.Number(r[0]))return!1;if(!o.Number(r[r.length-2]))return!1;const s=r[0]-a,u=r[r.length-2]-a;return!(s<=0)&&(!(u>16)&&(!(s>u)&&(u===r.length-3&&(!!t||r.slice(1,-2).every(n.isCanonicalPubKey)))))}t.check=s,s.toJSON=()=>"multi-sig output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=n.OPS;function o(e){const t=n.compile(e);return t.length>1&&t[0]===i.OP_RETURN}t.check=o,o.toJSON=()=>"null data output";const a={check:o};t.output=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);function i(e){const t=n.decompile(e);return 1===t.length&&n.isCanonicalScriptSignature(t[0])}t.check=i,i.toJSON=()=>"pubKey input"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalPubKey(t[0])&&t[1]===i.OPS.OP_CHECKSIG}t.check=o,o.toJSON=()=>"pubKey output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);function i(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalScriptSignature(t[0])&&n.isCanonicalPubKey(t[1])}t.check=i,i.toJSON=()=>"pubKeyHash input"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){const t=n.compile(e);return 25===t.length&&t[0]===i.OPS.OP_DUP&&t[1]===i.OPS.OP_HASH160&&20===t[2]&&t[23]===i.OPS.OP_EQUALVERIFY&&t[24]===i.OPS.OP_CHECKSIG}t.check=o,o.toJSON=()=>"pubKeyHash output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(371);t.input=n;const i=r(372);t.output=i},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(4),n=r(123),i=r(124),o=r(125),a=r(188),s=r(189);function u(t,r){const u=e.decompile(t);if(u.length<1)return!1;const c=u[u.length-1];if(!Buffer.isBuffer(c))return!1;const l=e.decompile(e.compile(u.slice(0,-1))),f=e.decompile(c);return!!f&&(!!e.isPushOnly(l)&&(1===u.length?s.check(f)||a.check(f):!(!o.input.check(l)||!o.output.check(f))||(!(!n.input.check(l,r)||!n.output.check(f))||!(!i.input.check(l)||!i.output.check(f)))))}t.check=u,u.toJSON=()=>"scriptHash input"}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4),i=r(4);function o(e){const t=n.compile(e);return 23===t.length&&t[0]===i.OPS.OP_HASH160&&20===t[1]&&t[22]===i.OPS.OP_EQUAL}t.check=o,o.toJSON=()=>"scriptHash output"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(374);t.output=n},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(4),n=r(4),i=r(37),o=r(5),a=Buffer.from("aa21a9ed","hex");function s(t){const r=e.compile(t);return r.length>37&&r[0]===n.OPS.OP_RETURN&&36===r[1]&&r.slice(2,6).equals(a)}t.check=s,s.toJSON=()=>"Witness commitment output",t.encode=function(t){o(i.Hash256bit,t);const r=Buffer.allocUnsafe(36);return a.copy(r,0),t.copy(r,4),e.compile([n.OPS.OP_RETURN,r])},t.decode=function(t){return o(s,t),e.decompile(t)[1].slice(4,36)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(376);t.input=n;const i=r(188);t.output=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);function i(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalScriptSignature(t[0])&&(r=t[1],n.isCanonicalPubKey(r)&&33===r.length);var r}t.check=i,i.toJSON=()=>"witnessPubKeyHash input"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(378);t.input=n;const i=r(189);t.output=i},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});const e=r(4),n=r(5),i=r(123),o=r(124),a=r(125);function s(t,r){if(n(n.Array,t),t.length<1)return!1;const s=t[t.length-1];if(!Buffer.isBuffer(s))return!1;const u=e.decompile(s);if(!u||0===u.length)return!1;const c=e.compile(t.slice(0,-1));return!(!a.input.check(c)||!a.output.check(u))||(!(!i.input.check(c,r)||!i.output.check(u))||!(!o.input.check(c)||!o.output.check(u)))}t.check=s,s.toJSON=()=>"witnessScriptHash input"}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(192);t.AppConfig=n.AppConfig;var i=r(92);t.makeAuthResponse=i.makeAuthResponse;var o=r(232);t.getAuthRequestFromURL=o.getAuthRequestFromURL,t.fetchAppManifest=o.fetchAppManifest,t.redirectUserToApp=o.redirectUserToApp;var a=r(591);t.makeCoreSessionRequest=a.makeCoreSessionRequest,t.sendCoreSessionRequest=a.sendCoreSessionRequest,t.getCoreSession=a.getCoreSession;var s=r(231);t.verifyAuthRequest=s.verifyAuthRequest,t.verifyAuthResponse=s.verifyAuthResponse,t.isExpirationDateValid=s.isExpirationDateValid,t.isIssuanceDateValid=s.isIssuanceDateValid,t.doPublicKeysMatchUsername=s.doPublicKeysMatchUsername,t.doPublicKeysMatchIssuer=s.doPublicKeysMatchIssuer,t.doSignaturesMatchPublicKeys=s.doSignaturesMatchPublicKeys,t.isManifestUriValid=s.isManifestUriValid,t.isRedirectUriValid=s.isRedirectUriValid,t.verifyAuthRequestAndLoadManifest=s.verifyAuthRequestAndLoadManifest;var u=r(229);t.isUserSignedIn=u.isUserSignedIn,t.redirectToSignIn=u.redirectToSignIn,t.redirectToSignInWithAuthRequest=u.redirectToSignInWithAuthRequest,t.isSignInPending=u.isSignInPending,t.handlePendingSignIn=u.handlePendingSignIn,t.loadUserData=u.loadUserData,t.signUserOut=u.signUserOut;var c=r(92);t.makeAuthRequest=c.makeAuthRequest},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenSigner=void 0;var n=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t={typ:this.tokenType,alg:this.cryptoClient.algorithmName};return Object.assign({},t,e)}},{key:"sign",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.header(r),i=c(e,n),o=this.cryptoClient.createHash(i),s=this.cryptoClient.signHash(o,this.rawPrivateKey);return t?{header:[a.default.encode(JSON.stringify(n))],payload:JSON.stringify(e),signature:[s]}:[i,s].join(".")}}]),e}();t.TokenSigner=l},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0});var e=r(382);function n(e,t){return void 0===t&&(t="utf8"),Buffer.isBuffer(e)?o(e.toString("base64")):o(Buffer.from(e,t).toString("base64"))}function i(t){return t=t.toString(),e.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function o(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var a=n;a.encode=n,a.decode=function(e,t){return void 0===t&&(t="utf8"),Buffer.from(i(e),"base64").toString(t)},a.toBase64=i,a.fromBase64=o,a.toBuffer=function(e){return Buffer.from(i(e),"base64")},t.default=a}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.length,r=t%4;if(!r)return e;var n=t,i=4-r,o=t+i,a=Buffer.alloc(o);for(a.write(e);i--;)a.write("=",n++);return a.toString()}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),t.SECP256K1Client=void 0;var e,n=function(){function e(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:"jose";if(!t||!r)throw new l.MissingParametersError("a signing input hash and private key are all required");var i=e.loadPrivateKey(r).sign(t),o=Buffer.from(i.toDER());if("der"===n)return o.toString("hex");if("jose"===n)return(0,c.derToJose)(o,"ES256");throw Error("Invalid signature format")}},{key:"loadSignature",value:function(e){return(0,c.joseToDer)(e,"ES256")}},{key:"verifyHash",value:function(t,r,n){if(!(t&&r&&n))throw new l.MissingParametersError("a signing input hash, der signature, and public key are all required");return e.loadPublicKey(n).verify(t,r)}}]),e}();f.algorithmName="ES256K",f.ec=new i.ec("secp256k1"),f.keyEncoder=new s.default({curveParameters:[1,3,132,0,10],privatePEMOptions:{label:"EC PRIVATE KEY"},publicPEMOptions:{label:"PUBLIC KEY"},curve:f.ec})}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports=r(193)},function(e,t,r){"use strict";var n=r(386),i=r(129),o=r(130),a=r(401),s=r(94);function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=u,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(e,t,r){"use strict";var n=r(40),i=r(128),o=r(3),Buffer=r(2).Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function s(e){n.call(this);var t,r=e.mode.toLowerCase(),i=a[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;Buffer.isBuffer(o)||(o=Buffer.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=Buffer.concat([o,o.slice(0,8)]));var s=e.iv;Buffer.isBuffer(s)||(s=Buffer.from(s)),this._des=i.create({key:o,iv:s,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=s,o(s,n),s.prototype._update=function(e){return Buffer.from(this._des.update(e))},s.prototype._final=function(){return Buffer.from(this._des.final())}},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},c.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=h}a.rip(s,o,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],l=e.keys[u+1];a.expand(o,e.tmp,0),c^=e.tmp[0],l^=e.tmp[1];var f=a.substitute(c,l),h=o;o=(s^a.permute(f))>>>0,s=h}a.rip(o,s,n,i)}},function(e,t,r){"use strict";var n=r(16),i=r(3),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=Buffer.allocUnsafe(e),r=-1;++r>a%8,e._prev=i(e._prev,r?n:o);return s}function i(e,t){var r=e.length,n=-1,i=Buffer.allocUnsafe(e.length);for(e=Buffer.concat([e,Buffer.from([t])]);++n>7;return i}t.encrypt=function(e,t,r){for(var i=t.length,o=Buffer.allocUnsafe(i),a=-1;++a>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=Buffer.alloc(16,0),this.cache=Buffer.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=i(o)},o.prototype.update=function(e){var t;for(this.cache=Buffer.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(Buffer.concat([this.cache,n],16)),this.ghash(i([0,e,0,t])),this.state},e.exports=o},function(e,t,r){"use strict";var n=r(197),Buffer=r(2).Buffer,i=r(130),o=r(198),a=r(40),s=r(93),u=r(94);function c(e,t,r){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new s.AES(t),this._prev=Buffer.from(r),this._mode=e,this._autopadding=!0}function l(){this.cache=Buffer.allocUnsafe(0)}function f(e,t,r){var a=i[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=Buffer.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=Buffer.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new o(a.module,t,r,!0):"auth"===a.type?new n(a.module,t,r,!0):new c(a.module,t,r)}r(3)(c,a),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return Buffer.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return f(e,n.key,n.iv)},t.createDecipheriv=f},function(e,t,r){"use strict";t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){"use strict";(function(Buffer){var e=r(199),n=r(403),i=r(404);var o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new Buffer(n[e].prime,"hex"),r=new Buffer(n[e].gen,"hex");return new i(t,r)},t.createDiffieHellman=t.DiffieHellman=function t(r,n,a,s){return Buffer.isBuffer(n)||void 0===o[n]?t(r,"binary",n,a):(n=n||"binary",s=s||"binary",a=a||new Buffer([2]),Buffer.isBuffer(a)||(a=new Buffer(a,s)),"number"==typeof r?new i(e(r,a),a,!0):(Buffer.isBuffer(r)||(r=new Buffer(r,n)),new i(r,a,!0)))}}).call(this,r(0).Buffer)},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){"use strict";(function(Buffer){var t=r(7),n=new(r(200)),i=new t(24),o=new t(11),a=new t(10),s=new t(3),u=new t(7),c=r(199),l=r(28);function f(e,r){return r=r||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,r)),this._pub=new t(e),this}function h(e,r){return r=r||"utf8",Buffer.isBuffer(e)||(e=new Buffer(e,r)),this._priv=new t(e),this}e.exports=p;var d={};function p(e,r,n){this.setGenerator(r),this.__prime=new t(e),this._prime=t.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function m(e,t){var r=new Buffer(e.toArray());return t?r.toString(t):r}Object.defineProperty(p.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),l=[r,e.toString(16)].join("_");if(l in d)return d[l];var f,h=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!n.test(e))return h+=1,h+="02"===r||"05"===r?8:4,d[l]=h,h;switch(n.test(e.shrn(1))||(h+=2),r){case"02":e.mod(i).cmp(o)&&(h+=8);break;case"05":(f=e.mod(a)).cmp(s)&&f.cmp(u)&&(h+=8);break;default:h+=4}return d[l]=h,h}(this.__prime,this.__gen)),this._primeCode}}),p.prototype.generateKeys=function(){return this._priv||(this._priv=new t(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},p.prototype.computeSecret=function(e){var r=(e=(e=new t(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new Buffer(r.toArray()),i=this.getPrime();if(n.length0&&r.ishrn(n),r}function l(e,r,n){var i,o;do{for(i=new Buffer(0);8*i.length=t)throw new Error("invalid sig")}e.exports=function(e,r,s,u,c){var l=i(s);if("ec"===l.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=o[r.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var a=new n(i),s=r.data.subjectPrivateKey.data;return a.verify(t,e,s)}(e,r,l)}if("dsa"===l.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,r,n){var o=n.data.p,s=n.data.q,u=n.data.g,c=n.data.pub_key,l=i.signature.decode(e,"der"),f=l.s,h=l.r;a(f,s),a(h,s);var d=t.mont(o),p=f.invm(s);return 0===u.toRed(d).redPow(new t(r).mul(p).mod(s)).fromRed().mul(c.toRed(d).redPow(h.mul(p).mod(s)).fromRed()).mod(o).mod(s).cmp(h)}(e,r,l)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");r=Buffer.concat([c,r]);for(var f=l.modulus.byteLength(),h=[1],d=0;r.length+h.length+2r-f-2)throw new Error("message too long");var h=Buffer.alloc(r-n-f-2),d=r-l-1,p=i(l),m=s(Buffer.concat([c,h,Buffer.alloc(1,1),t],d),a(p,d)),g=s(p,a(m,l));return new u(Buffer.concat([Buffer.alloc(1),g,m],r))}(d,t);else if(1===f)h=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?Buffer.alloc(a-o-3,255):function(e){var t,r=Buffer.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?l(h,d):c(h,d)}},function(e,t,r){"use strict";var n=r(95),i=r(206),o=r(207),a=r(7),s=r(131),u=r(21),c=r(208),Buffer=r(2).Buffer;e.exports=function(e,t,r){var l;l=e.padding?e.padding:r?1:4;var f,h=n(e),d=h.modulus.byteLength();if(t.length>d||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=r?c(new a(t),h):s(t,h);var p=Buffer.alloc(d-f.length);if(f=Buffer.concat([p,f],d),4===l)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(Buffer.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),l=o(s,i(c,a)),f=o(c,i(l,r-a-1));if(function(e,t){e=Buffer.from(e),t=Buffer.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,f,r);if(3===l)return f;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(2),a=r(28),Buffer=o.Buffer,s=o.kMaxLength,u=e.crypto||e.msCrypto,c=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>c||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function f(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>c||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>s)throw new RangeError("buffer too small")}function h(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a(r).copy(e,t),e;a(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}u&&u.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(Buffer.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return l(r,t.length),f(n,r,t.length),h(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(Buffer.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(r,t.length),void 0===n&&(n=t.length-r);return f(n,r,t.length),h(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(9),r(20))},function(e,t,r){"use strict";e.exports=r(427)},function(e,t,r){"use strict";(function(Buffer){var t=r(58),n=r(7),i=r(12).ec,o=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).objid().optional(),this.key("publicKey").explicit(1).bitstr().optional())}),a=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("curve").objid()),this.key("pub").bitstr())}),s={secp256k1:{curveParameters:[1,3,132,0,10],privatePEMOptions:{label:"EC PRIVATE KEY"},publicPEMOptions:{label:"PUBLIC KEY"},curve:new i("secp256k1")}};function u(e){"string"==typeof e&&(!function(e,t){if(!e)throw new Error(t||"Assertion failed")}(s.hasOwnProperty(e),"Unknown curve "+e),e=s[e]),this.options=e,this.algorithmID=[1,2,840,10045,2,1]}u.ECPrivateKeyASN=o,u.SubjectPublicKeyInfoASN=a,u.prototype.privateKeyObject=function(e,t){var r={version:new n(1),privateKey:new Buffer(e,"hex"),parameters:this.options.curveParameters};return t&&(r.publicKey={unused:0,data:new Buffer(t,"hex")}),r},u.prototype.publicKeyObject=function(e){return{algorithm:{id:this.algorithmID,curve:this.options.curveParameters},pub:{unused:0,data:new Buffer(e,"hex")}}},u.prototype.encodePrivate=function(e,t,r){if("raw"===t){0;var n,i=(n=this.options.curve.keyFromPrivate(e,"hex")).getPublic("hex");n=this.privateKeyObject(e,i)}else if("der"===t){if("buffer"==typeof e);else{if("string"!=typeof e)throw"private key must be a buffer or a string";e=new Buffer(e,"hex")}n=o.decode(e,"der")}else{if("pem"!==t)throw"invalid private key format";n=o.decode(e,"pem",this.options.privatePEMOptions)}if("raw"===r)return n.privateKey.toString("hex");if("der"===r)return o.encode(n,"der").toString("hex");if("pem"===r)return o.encode(n,"pem",this.options.privatePEMOptions);throw"invalid destination format for private key"},u.prototype.encodePublic=function(e,t,r){var n;if("raw"===t)n=this.publicKeyObject(e);else if("der"===t){if("buffer"==typeof e);else{if("string"!=typeof e)throw"public key must be a buffer or a string";e=new Buffer(e,"hex")}n=a.decode(e,"der")}else{if("pem"!==t)throw"invalid public key format";n=a.decode(e,"pem",this.options.publicPEMOptions)}if("raw"===r)return n.pub.data.toString("hex");if("der"===r)return a.encode(n,"der").toString("hex");if("pem"===r)return a.encode(n,"pem",this.options.publicPEMOptions);throw"invalid destination format for public key"},e.exports=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";const n=r(58),i=r(3);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function r(e){this._initNamed(e,t)}return i(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(e,t,r){"use strict";const n=r(3);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){let t;const r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict";const n=r(75).Reporter,i=r(75).EncoderBuffer,o=r(75).DecoderBuffer,a=r(16),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};l.forEach(function(r){t[r]=e[r]});const r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){const e=this._baseState;u.forEach(function(t){this[t]=function(){const r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){const t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);const n=e[r];t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),s.forEach(function(e){c.prototype[e]=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){a(e);const t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){const t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));let n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(a=this._peekTag(e,n,r.any),e.isError(a))return a}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(n)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){const t=this._decodeTag(e,r.explicit);if(e.isError(t))return t;e=t}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?i=e.raw(t):e=n}if(t&&t.track&&null!==r.tag&&t.track(e.path(),n,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(n,t)}}return r.obj&&a&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){const r=this._baseState;let n=null,i=!1;return Object.keys(r.choice).some(function(o){const a=e.save(),s=r.choice[o];try{const r=s._decode(e,t);if(e.isError(r))return!1;n={type:o,value:r},i=!0}catch(t){return e.restore(a),!1}return!0},this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){const n=this._baseState;if(null!==n.default&&n.default===e)return;const i=this._encodeValue(e,t,r);return void 0===i||this._skipDefault(i,t,r)?void 0:i},c.prototype._encodeValue=function(e,t,r){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);let o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");const n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,a=this._createEncoderBuffer(e.map(function(r){const n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},r))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,r=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(e,s,r,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){const r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-.\/:=?]*$/.test(e)}},function(e,t,r){"use strict";const n=r(210);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},function(e,t,r){"use strict";const n=t;n.der=r(211),n.pem=r(433)},function(e,t,r){"use strict";const n=r(3),Buffer=r(0).Buffer,i=r(211);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.decode=function(e,t){const r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,s=-1;for(let e=0;e=0};var n=o(r(1)),i=o(r(133));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,i.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r));return t.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,i.default)(t,c)).require_display_name||t.allow_display_name){var r=e.match(l);if(r)e=r[1];else if(t.require_display_name)return!1}var u=e.split("@"),g=u.pop(),v=u.join("@"),b=g.toLowerCase();if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var y=(v=v.toLowerCase()).split("+")[0];if(!(0,o.default)(y.replace(".",""),{min:6,max:30}))return!1;for(var _=y.split("."),w=0;w<_.length;w++)if(!h.test(_[w]))return!1}if(!(0,o.default)(v,{max:64})||!(0,o.default)(g,{max:254}))return!1;if(!(0,a.default)(g,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(g)){if(!g.startsWith("[")||!g.endsWith("]"))return!1;var k=g.substr(1,g.length-2);if(0===k.length||!(0,s.default)(k))return!1}}if('"'===v[0])return v=v.slice(1,v.length-1),t.allow_utf8_local_part?m.test(v):d.test(v);for(var S=t.allow_utf8_local_part?p:f,x=v.split("."),E=0;E$/i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,h=/^[a-z\d]+$/,d=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||e.length>=2083||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;var r,s,f,h,d,p,m,g;if(t=(0,a.default)(t,u),m=e.split("#"),e=m.shift(),m=e.split("?"),e=m.shift(),(m=e.split("://")).length>1){if(r=m.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;m[0]=e.substr(2)}}if(""===(e=m.join("://")))return!1;if(m=e.split("/"),""===(e=m.shift())&&!t.require_host)return!0;if((m=e.split("@")).length>1){if(t.disallow_auth)return!1;if((s=m.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1}h=m.join("@"),p=null,g=null;var v=h.match(c);v?(f="",g=v[1],p=v[2]||null):(m=h.split(":"),f=m.shift(),m.length&&(p=m.join(":")));if(null!==p&&(d=parseInt(p,10),!/^[0-9]+$/.test(p)||d<=0||d>65535))return!1;if(!((0,o.default)(f)||(0,i.default)(f,t)||g&&(0,o.default)(g,6)))return!1;if(f=f||g,t.host_whitelist&&!l(f,t.host_whitelist))return!1;if(t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var n=s(r(1)),i=s(r(134)),o=s(r(96)),a=s(r(50));function s(e){return e&&e.__esModule?e:{default:e}}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(e,t){for(var r=0;r1&&t[1].startsWith("0"))return!1;return(0,i.default)(t[0],4)&&t[1]<=32&&t[1]>=0};var n=o(r(1)),i=o(r(96));function o(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,2}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),["true","false","1","0"].indexOf(e)>=0};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,i.default)(e),t in o.alpha)return o.alpha[t].test(e);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n},o=r(97);var a=Object.keys(o.alpha);t.locales=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,i.default)(e),t in o.alphanumeric)return o.alphanumeric[t].test(e);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n},o=r(97);var a=Object.keys(o.alphanumeric);t.locales=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),t&&t.no_symbols)return a.test(e);return o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[+-]?([0-9]*[.])?[0-9]+$/,a=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e,{min:0,max:65535})};var n,i=(n=r(215))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e===e.toLowerCase()};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e===e.toUpperCase()};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.fullWidth.test(e)&&a.halfWidth.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n},o=r(216),a=r(217);e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?o.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||"-"===e||"+"===e)return!1;var n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||nt.gt)},t.locales=void 0;var n,i=(n=r(1))&&n.__esModule?n:{default:n},o=r(97);var a=Object.keys(o.decimal);t.locales=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),(t=(0,n.default)(t,u)).locale in a.decimal)return!(0,o.default)(c,e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"))}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var n=s(r(50)),i=s(r(1)),o=s(r(135)),a=r(97);function s(e){return e&&e.__esModule?e:{default:e}}var u={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},c=["","-","+"];e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),(0,i.default)(e)%parseInt(t,10)==0};var n=o(r(1)),i=o(r(213));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),new RegExp("^[a-f0-9]{".concat(o[t],"}$")).test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),o.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^([A-Za-z0-9\-_~+\/]+[=]{0,2})\.([A-Za-z0-9\-_~+\/]+[=]{0,2})(?:\.([A-Za-z0-9\-_~+\/]+[=]{0,2}))?$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(e);try{var t=JSON.parse(e);return!!t&&"object"===o(t)}catch(e){}return!1};var n,i=(n=r(1))&&n.__esModule?n:{default:n};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),0===((t=(0,i.default)(t,a)).ignore_whitespace?e.trim().length:e.length)};var n=o(r(1)),i=o(r(50));function o(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n;(0,i.default)(e),"object"===o(t)?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var a=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],s=e.length-a.length;return s>=r&&(void 0===n||s<=n)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";(0,i.default)(e);var r=o[t];return r&&r.test(e)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),(0,i.default)(e)&&24===e.length};var n=o(r(1)),i=o(r(218));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,i.default)(t),o=(0,i.default)(e);return!!(o&&r&&o>r)};var n=o(r(1)),i=o(r(132));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,i.default)(t),o=(0,i.default)(e);return!!(o&&r&&o=0}if("object"===a(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var n=o(r(1)),i=o(r(133));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(e);var t=e.replace(/[- ]+/g,"");if(!o.test(t))return!1;for(var r,n,a,s=0,u=t.length-1;u>=0;u--)r=t.substring(u,u+1),n=parseInt(r,10),s+=a&&(n*=2)>=10?n%10+1:n,a=!a;return!(s%10!=0||!t)};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";if((0,i.default)(e),t in o)return o[t](e);if("any"===t){for(var r in o)if(o.hasOwnProperty(r)){var n=o[r];if(n(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o={ES:function(e){(0,i.default)(e);var t={X:0,Y:1,Z:2},r=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(r))return!1;var n=r.slice(0,-1).replace(/[X,Y,Z]/g,function(e){return t[e]});return r.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][n%23])}};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,i.default)(e),!o.test(e))return!1;for(var t,r,n=e.replace(/[A-Z]/g,function(e){return parseInt(e,36)}),a=0,s=!0,u=n.length-2;u>=0;u--)t=n.substring(u,u+1),r=parseInt(t,10),a+=s&&(r*=2)>=10?r+1:r,s=!s;return parseInt(e.substr(e.length-1),10)===(1e4-a)%10};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,i.default)(t);r=String(r);if(!r)return e(t,10)||e(t,13);var n=t.replace(/[\s-]+/g,"");var u=0;var c;if("10"===r){if(!o.test(n))return!1;for(c=0;c<9;c++)u+=(c+1)*n.charAt(c);if("X"===n.charAt(9)?u+=100:u+=10*n.charAt(9),u%11==0)return!!n}else if("13"===r){if(!a.test(n))return!1;for(c=0;c<12;c++)u+=s[c%2]*n.charAt(c);if(n.charAt(12)-(10-u%10)%10==0)return!!n}return!1};var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=/^(?:[0-9]{9}X|[0-9]{10})$/,a=/^(?:[0-9]{13})$/,s=[1,3];e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.default)(e);var r=o;if(r=t.require_hyphen?r.replace("?",""):r,!(r=t.case_sensitive?new RegExp(r):new RegExp(r,"i")).test(e))return!1;for(var n=e.replace("-","").toUpperCase(),a=0,s=0;s/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(e),e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`")};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var r=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,i.default)(e,r)};var n=o(r(1)),i=o(r(221));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,i.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(e);for(var r=e.length-1;r>=0;r--)if(-1===t.indexOf(e[r]))return!1;return!0};var n,i=(n=r(1))&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,i.default)(t,o);var r=e.split("@"),n=r.pop(),f=[r.join("@"),n];if(f[1]=f[1].toLowerCase(),"gmail.com"===f[1]||"googlemail.com"===f[1]){if(t.gmail_remove_subaddress&&(f[0]=f[0].split("+")[0]),t.gmail_remove_dots&&(f[0]=f[0].replace(/\.+/g,l)),!f[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]=t.gmail_convert_googlemaildotcom?"gmail.com":f[1]}else if(a.indexOf(f[1])>=0){if(t.icloud_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(f[0]=f[0].toLowerCase())}else if(s.indexOf(f[1])>=0){if(t.outlookdotcom_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(f[0]=f[0].toLowerCase())}else if(u.indexOf(f[1])>=0){if(t.yahoo_remove_subaddress){var h=f[0].split("-");f[0]=h.length>1?h.slice(0,-1).join("-"):h[0]}if(!f[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(f[0]=f[0].toLowerCase())}else c.indexOf(f[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]="yandex.ru"):t.all_lowercase&&(f[0]=f[0].toLowerCase());return f.join("@")};var n,i=(n=r(50))&&n.__esModule?n:{default:n};var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],u=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function l(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},function(e,t,r){"use strict";(function(Buffer){Object.defineProperty(t,"__esModule",{value:!0}),t.derToJose=function(t,r){t=c(t);var n=s(r),i=u((t=e.decode(t,"der")).r,n),o=u(t.s,n);return a=t=(t=Buffer.concat([i,o],i.length+o.length)).toString("base64"),t=a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");var a},t.joseToDer=function(e,t){e=c(e);var r=s(t),o=e.length;if(o!==2*r)throw new TypeError('"'+t+'" signatures must be "'+2*r+'" bytes, saw "'+o+'"');var a=l(e.slice(0,r)),u=l(e.slice(r)),f=2+a.length+1+1+u.length,h=f<128;e=Buffer.alloc((h?2:3)+f);var d=0;e[d++]=32|n,h?e[d++]=f:(e[d++]=129,e[d++]=255&f);return e[d++]=0|i,e[d++]=a.length,a.copy(e,d),d+=a.length,e[d++]=0|i,e[d++]=u.length,u.copy(e,d),e};var e=r(58).define("ECDSASigValue",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),n=16,i=2;function o(e){return(e/8|0)+(e%8==0?0:1)}var a={ES256:o(256),ES384:o(384),ES512:o(512)};function s(e){var t=a[e];if(t)return t;throw new Error('Unknown algorithm "'+e+'"')}function u(e,t){return Buffer.from(e.toString("hex",t),"hex")}function c(e){if(Buffer.isBuffer(e))return Buffer.from(e);if("string"==typeof e)return Buffer.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function l(e){for(var t=0,r=e.length;t=128&&--t<0){var n=e;return(e=Buffer.alloc(1+e.length))[0]=0,n.copy(e,1),e}return 0===t?e:e=e.slice(t)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenVerifier=void 0;var n,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var r=0;r=4)throw new Error("Invalid hashType "+t);const i=n.decode(e.slice(0,-1)),o=u(i.r),a=u(i.s);return{signature:Buffer.concat([o,a],64),hashType:t}},encode:function(e,t){i({signature:o.BufferN(64),hashType:o.UInt8},{signature:e,hashType:t});const r=-129&t;if(r<=0||r>=4)throw new Error("Invalid hashType "+t);const a=Buffer.allocUnsafe(1);a.writeUInt8(t,0);const u=s(e.slice(0,32)),c=s(e.slice(32,64));return Buffer.concat([n.encode(u,c),a])}}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(43),i=r(187),o=r(5),a=r(30),s=r(91),u=r(136);function c(){this.version=1,this.prevHash=null,this.merkleRoot=null,this.timestamp=0,this.bits=0,this.nonce=0}c.fromBuffer=function(e){if(e.length<80)throw new Error("Buffer too small (< 80 bytes)");let t=0;function r(r){return t+=r,e.slice(t-r,t)}function n(){const r=e.readUInt32LE(t);return t+=4,r}const i=new c;if(i.version=function(){const r=e.readInt32LE(t);return t+=4,r}(),i.prevHash=r(32),i.merkleRoot=r(32),i.timestamp=n(),i.bits=n(),i.nonce=n(),80===e.length)return i;function o(){const r=u.fromBuffer(e.slice(t),!0);return t+=r.byteLength(),r}const a=function(){const r=s.decode(e,t);return t+=s.decode.bytes,r}();i.transactions=[];for(var l=0;l>24)-3,r=8388607&e,n=Buffer.alloc(32,0);return n.writeUIntBE(r,29-t,3),n},c.calculateMerkleRoot=function(e){if(o([{getHash:a.Function}],e),0===e.length)throw TypeError("Cannot compute merkle root for zero transactions");const t=e.map(function(e){return e.getHash()});return i(t,n.hash256)},c.prototype.checkMerkleRoot=function(){if(!this.transactions)return!1;const e=c.calculateMerkleRoot(this.transactions);return 0===this.merkleRoot.compare(e)},c.prototype.checkProofOfWork=function(){const e=this.getHash().reverse(),t=c.calculateTarget(this.bits);return e.compare(t)<=0},e.exports=c},function(e,t,r){"use strict";function n(e,t){if("number"!=typeof e)throw new Error("cannot write a non-number as a number");if(e<0)throw new Error("specified a negative value for writing an unsigned value");if(e>t)throw new Error("RangeError: value out of range");if(Math.floor(e)!==e)throw new Error("value has a fractional component")}e.exports={readUInt64LE:function(e,t){const r=e.readUInt32LE(t);let i=e.readUInt32LE(t+4);return n((i*=4294967296)+r,9007199254740991),i+r},writeUInt64LE:function(e,t,r){return n(t,9007199254740991),e.writeInt32LE(-1&t,r),e.writeUInt32LE(Math.floor(t/4294967296),r+4),r+8}}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(224),i=r(43),o=r(8),a=r(25),s=r(10),u=r(137),c=r(5),l=r(30),f=r(511),h=f.types,ECPair=r(223),d=r(136);function p(e,t){c(l.Buffer,e);const r=f.output(e);switch(r){case h.P2PKH:{if(!t)return{type:r};const n=u.p2pkh({output:e}).hash,o=i.hash160(t);return n.equals(o)?{type:r,pubkeys:[t],signatures:[void 0]}:{type:r}}case h.P2WPKH:{if(!t)return{type:r};const n=u.p2wpkh({output:e}).hash,o=i.hash160(t);return n.equals(o)?{type:r,pubkeys:[t],signatures:[void 0]}:{type:r}}case h.P2PK:return{type:r,pubkeys:[u.p2pk({output:e}).pubkey],signatures:[void 0]};case h.P2MS:{const t=u.p2ms({output:e});return{type:r,pubkeys:t.pubkeys,signatures:t.pubkeys.map(()=>void 0),maxSignatures:t.m}}}return{type:r}}function m(e,t){this.__prevTxSet={},this.network=e||a.bitcoin,this.maximumFeeRate=t||2500,this.__inputs=[],this.__tx=new d,this.__tx.version=2}function g(e){return void 0!==e.signScript&&void 0!==e.signType&&void 0!==e.pubkeys&&void 0!==e.signatures&&e.signatures.length===e.pubkeys.length&&e.pubkeys.length>0&&(!1===e.hasWitness||void 0!==e.value)}function v(e){return e.readUInt8(e.length-1)}m.prototype.setLockTime=function(e){if(c(l.UInt32,e),this.__inputs.some(function(e){return!!e.signatures&&e.signatures.some(function(e){return e})}))throw new Error("No, this would invalidate signatures");this.__tx.locktime=e},m.prototype.setVersion=function(e){c(l.UInt32,e),this.__tx.version=e},m.fromTransaction=function(e,t){const r=new m(t);return r.setVersion(e.version),r.setLockTime(e.locktime),e.outs.forEach(function(e){r.addOutput(e.script,e.value)}),e.ins.forEach(function(e){r.__addInputUnsafe(e.hash,e.index,{sequence:e.sequence,script:e.script,witness:e.witness})}),r.__inputs.forEach(function(t,r){!function(e,t,r){if(e.redeemScriptType!==h.P2MS||!e.redeemScript)return;if(e.pubkeys.length===e.signatures.length)return;const n=e.signatures.concat();e.signatures=e.pubkeys.map(function(i){const a=ECPair.fromPublicKey(i);let s;return n.some(function(i,u){if(!i)return!1;const c=o.signature.decode(i),l=t.hashForSignature(r,e.redeemScript,c.hashType);return!!a.verify(l,c.signature)&&(n[u]=void 0,s=i,!0)}),s})}(t,e,r)}),r},m.prototype.addInput=function(e,t,r,n){if(!this.__canModifyInputs())throw new Error("No, this would invalidate signatures");let i;if("string"==typeof e)e=Buffer.from(e,"hex").reverse();else if(e instanceof d){const r=e.outs[t];n=r.script,i=r.value,e=e.getHash()}return this.__addInputUnsafe(e,t,{sequence:r,prevOutScript:n,value:i})},m.prototype.__addInputUnsafe=function(e,t,r){if(d.isCoinbaseHash(e))throw new Error("coinbase inputs not supported");const n=e.toString("hex")+":"+t;if(void 0!==this.__prevTxSet[n])throw new Error("Duplicate TxOut: "+n);let i={};if(void 0!==r.script&&(i=function e(t,r,n,i){if(0===t.length&&0===r.length)return{};if(!n){let e=f.input(t,!0),i=f.witness(r,!0);e===h.NONSTANDARD&&(e=void 0),i===h.NONSTANDARD&&(i=void 0),n=e||i}switch(n){case h.P2WPKH:{const{output:e,pubkey:t,signature:n}=u.p2wpkh({witness:r});return{prevOutScript:e,prevOutType:h.P2WPKH,pubkeys:[t],signatures:[n]}}case h.P2PKH:{const{output:e,pubkey:r,signature:n}=u.p2pkh({input:t});return{prevOutScript:e,prevOutType:h.P2PKH,pubkeys:[r],signatures:[n]}}case h.P2PK:{const{signature:e}=u.p2pk({input:t});return{prevOutType:h.P2PK,pubkeys:[void 0],signatures:[e]}}case h.P2MS:{const{m:e,pubkeys:r,signatures:n}=u.p2ms({input:t,output:i},{allowIncomplete:!0});return{prevOutType:h.P2MS,pubkeys:r,signatures:n,maxSignatures:e}}}if(n===h.P2SH){const{output:n,redeem:i}=u.p2sh({input:t,witness:r}),o=f.output(i.output),a=e(i.input,i.witness,o,i.output);return a.prevOutType?{prevOutScript:n,prevOutType:h.P2SH,redeemScript:i.output,redeemScriptType:a.prevOutType,witnessScript:a.witnessScript,witnessScriptType:a.witnessScriptType,pubkeys:a.pubkeys,signatures:a.signatures}:{}}if(n===h.P2WSH){const{output:n,redeem:i}=u.p2wsh({input:t,witness:r}),a=f.output(i.output);let s;return(s=a===h.P2WPKH?e(i.input,i.witness,a):e(o.compile(i.witness),[],a,i.output)).prevOutType?{prevOutScript:n,prevOutType:h.P2WSH,witnessScript:i.output,witnessScriptType:s.prevOutType,pubkeys:s.pubkeys,signatures:s.signatures}:{}}return{prevOutType:h.NONSTANDARD,prevOutScript:t}}(r.script,r.witness||[])),void 0!==r.value&&(i.value=r.value),!i.prevOutScript&&r.prevOutScript){let e;if(!i.pubkeys&&!i.signatures){const t=p(r.prevOutScript);t.pubkeys&&(i.pubkeys=t.pubkeys,i.signatures=t.signatures),e=t.type}i.prevOutScript=r.prevOutScript,i.prevOutType=e||f.output(r.prevOutScript)}const a=this.__tx.addInput(e,t,r.sequence,r.scriptSig);return this.__inputs[a]=i,this.__prevTxSet[n]=!0,a},m.prototype.addOutput=function(e,t){if(!this.__canModifyOutputs())throw new Error("No, this would invalidate signatures");return"string"==typeof e&&(e=n.toOutputScript(e,this.network)),this.__tx.addOutput(e,t)},m.prototype.build=function(){return this.__build(!1)},m.prototype.buildIncomplete=function(){return this.__build(!0)},m.prototype.__build=function(e){if(!e){if(!this.__tx.ins.length)throw new Error("Transaction has no inputs");if(!this.__tx.outs.length)throw new Error("Transaction has no outputs")}const t=this.__tx.clone();if(this.__inputs.forEach(function(r,n){if(!r.prevOutType&&!e)throw new Error("Transaction is not complete");const i=function e(t,r,n){const i=r.pubkeys||[];let o=r.signatures||[];switch(t){case h.P2PKH:if(0===i.length)break;if(0===o.length)break;return u.p2pkh({pubkey:i[0],signature:o[0]});case h.P2WPKH:if(0===i.length)break;if(0===o.length)break;return u.p2wpkh({pubkey:i[0],signature:o[0]});case h.P2PK:if(0===i.length)break;if(0===o.length)break;return u.p2pk({signature:o[0]});case h.P2MS:{const e=r.maxSignatures;o=n?o.map(e=>e||s.OP_0):o.filter(e=>e);const t=!n||e===o.length;return u.p2ms({m:e,pubkeys:i,signatures:o},{allowIncomplete:n,validate:t})}case h.P2SH:{const t=e(r.redeemScriptType,r,n);if(!t)return;return u.p2sh({redeem:{output:t.output||r.redeemScript,input:t.input,witness:t.witness}})}case h.P2WSH:{const t=e(r.witnessScriptType,r,n);if(!t)return;return u.p2wsh({redeem:{output:r.witnessScript,input:t.input,witness:t.witness}})}}}(r.prevOutType,r,e);if(i)t.setInputScript(n,i.input),t.setWitness(n,i.witness);else{if(!e&&r.prevOutType===h.NONSTANDARD)throw new Error("Unknown input type");if(!e)throw new Error("Not enough information")}}),!e&&this.__overMaximumFees(t.virtualSize()))throw new Error("Transaction has absurd fees");return t},m.prototype.sign=function(e,t,r,n,i,a){if(t.network&&t.network!==this.network)throw new TypeError("Inconsistent network");if(!this.__inputs[e])throw new Error("No input at index: "+e);if(n=n||d.SIGHASH_ALL,this.__needsOutputs(n))throw new Error("Transaction needs outputs");const s=this.__inputs[e];if(void 0!==s.redeemScript&&r&&!s.redeemScript.equals(r))throw new Error("Inconsistent redeemScript");const f=t.publicKey||t.getPublicKey();if(!g(s)){if(void 0!==i){if(void 0!==s.value&&s.value!==i)throw new Error("Input didn't match witnessValue");c(l.Satoshi,i),s.value=i}if(!g(s)){const e=function(e,t,r,n){if(r&&n){const i=u.p2wsh({redeem:{output:n}}),a=u.p2wsh({output:r}),s=u.p2sh({redeem:{output:r}}),c=u.p2sh({redeem:i});if(!i.hash.equals(a.hash))throw new Error("Witness script inconsistent with prevOutScript");if(!s.hash.equals(c.hash))throw new Error("Redeem script inconsistent with prevOutScript");const l=p(i.redeem.output,t);if(!l.pubkeys)throw new Error(l.type+" not supported as witnessScript ("+o.toASM(n)+")");e.signatures&&e.signatures.some(e=>e)&&(l.signatures=e.signatures);let f=n;if(l.type===h.P2WPKH)throw new Error("P2SH(P2WSH(P2WPKH)) is a consensus failure");return{redeemScript:r,redeemScriptType:h.P2WSH,witnessScript:n,witnessScriptType:l.type,prevOutType:h.P2SH,prevOutScript:s.output,hasWitness:!0,signScript:f,signType:l.type,pubkeys:l.pubkeys,signatures:l.signatures,maxSignatures:l.maxSignatures}}if(r){const n=u.p2sh({redeem:{output:r}});if(e.prevOutScript){let t;try{t=u.p2sh({output:e.prevOutScript})}catch(e){throw new Error("PrevOutScript must be P2SH")}if(!n.hash.equals(t.hash))throw new Error("Redeem script inconsistent with prevOutScript")}const i=p(n.redeem.output,t);if(!i.pubkeys)throw new Error(i.type+" not supported as redeemScript ("+o.toASM(r)+")");e.signatures&&e.signatures.some(e=>e)&&(i.signatures=e.signatures);let a=r;return i.type===h.P2WPKH&&(a=u.p2pkh({pubkey:i.pubkeys[0]}).output),{redeemScript:r,redeemScriptType:i.type,prevOutType:h.P2SH,prevOutScript:n.output,hasWitness:i.type===h.P2WPKH,signScript:a,signType:i.type,pubkeys:i.pubkeys,signatures:i.signatures,maxSignatures:i.maxSignatures}}if(n){const r=u.p2wsh({redeem:{output:n}});if(e.prevOutScript){const t=u.p2wsh({output:e.prevOutScript});if(!r.hash.equals(t.hash))throw new Error("Witness script inconsistent with prevOutScript")}const i=p(r.redeem.output,t);if(!i.pubkeys)throw new Error(i.type+" not supported as witnessScript ("+o.toASM(n)+")");e.signatures&&e.signatures.some(e=>e)&&(i.signatures=e.signatures);let a=n;if(i.type===h.P2WPKH)throw new Error("P2WSH(P2WPKH) is a consensus failure");return{witnessScript:n,witnessScriptType:i.type,prevOutType:h.P2WSH,prevOutScript:r.output,hasWitness:!0,signScript:a,signType:i.type,pubkeys:i.pubkeys,signatures:i.signatures,maxSignatures:i.maxSignatures}}if(e.prevOutType&&e.prevOutScript){if(e.prevOutType===h.P2SH)throw new Error("PrevOutScript is "+e.prevOutType+", requires redeemScript");if(e.prevOutType===h.P2WSH)throw new Error("PrevOutScript is "+e.prevOutType+", requires witnessScript");if(!e.prevOutScript)throw new Error("PrevOutScript is missing");const r=p(e.prevOutScript,t);if(!r.pubkeys)throw new Error(r.type+" not supported ("+o.toASM(e.prevOutScript)+")");e.signatures&&e.signatures.some(e=>e)&&(r.signatures=e.signatures);let n=e.prevOutScript;return r.type===h.P2WPKH&&(n=u.p2pkh({pubkey:r.pubkeys[0]}).output),{prevOutType:r.type,prevOutScript:e.prevOutScript,hasWitness:r.type===h.P2WPKH,signScript:n,signType:r.type,pubkeys:r.pubkeys,signatures:r.signatures,maxSignatures:r.maxSignatures}}const i=u.p2pkh({pubkey:t}).output;return{prevOutType:h.P2PKH,prevOutScript:i,hasWitness:!1,signScript:i,signType:h.P2PKH,pubkeys:[t],signatures:[void 0]}}(s,f,r,a);Object.assign(s,e)}if(!g(s))throw Error(s.prevOutType+" not supported")}let m;if(m=s.hasWitness?this.__tx.hashForWitnessV0(e,s.signScript,s.value,n):this.__tx.hashForSignature(e,s.signScript,n),!s.pubkeys.some(function(e,r){if(!f.equals(e))return!1;if(s.signatures[r])throw new Error("Signature already exists");if(33!==f.length&&s.hasWitness)throw new Error("BIP143 rejects uncompressed public keys in P2WPKH or P2WSH");const i=t.sign(m);return s.signatures[r]=o.signature.encode(i,n),!0}))throw new Error("Key pair cannot sign for this input")},m.prototype.__canModifyInputs=function(){return this.__inputs.every(function(e){return!e.signatures||e.signatures.every(function(e){if(!e)return!0;return v(e)&d.SIGHASH_ANYONECANPAY})})},m.prototype.__needsOutputs=function(e){return e===d.SIGHASH_ALL?0===this.__tx.outs.length:0===this.__tx.outs.length&&this.__inputs.some(e=>!!e.signatures&&e.signatures.some(e=>{if(!e)return!1;return!(v(e)&d.SIGHASH_NONE)}))},m.prototype.__canModifyOutputs=function(){const e=this.__tx.ins.length,t=this.__tx.outs.length;return this.__inputs.every(function(r){return void 0===r.signatures||r.signatures.every(function(r){if(!r)return!0;const n=31&v(r);return n===d.SIGHASH_NONE||(n===d.SIGHASH_SINGLE?e<=t:void 0)})})},m.prototype.__overMaximumFees=function(e){return(this.__inputs.reduce(function(e,t){return e+(t.value>>>0)},0)-this.__tx.outs.reduce(function(e,t){return e+t.value},0))/e>this.maximumFeeRate},e.exports=m},function(e,t,r){"use strict";const n=r(51),i=r(5),o=r(10),a=r(8),s=r(25).bitcoin;e.exports=function(e,t){if(!e.data&&!e.output)throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),i({network:i.maybe(i.Object),output:i.maybe(i.Buffer),data:i.maybe(i.arrayOf(i.Buffer))},e);const r={network:e.network||s};if(n.prop(r,"output",function(){if(e.data)return a.compile([o.OP_RETURN].concat(e.data))}),n.prop(r,"data",function(){if(e.output)return a.decompile(e.output).slice(1)}),t.validate&&e.output){const t=a.decompile(e.output);if(t[0]!==o.OP_RETURN)throw new TypeError("Output is invalid");if(!t.slice(1).every(i.Buffer))throw new TypeError("Output is invalid");if(e.data&&!function(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t[r])})}(e.data,r.data))throw new TypeError("Data mismatch")}return Object.assign(r,e)}},function(e,t,r){"use strict";const n=r(51),i=r(5),o=r(10),a=r(15),s=r(8),u=r(25).bitcoin,c=o.OP_RESERVED;function l(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t[r])})}e.exports=function(e,t){if(!(e.input||e.output||e.pubkeys&&void 0!==e.m||e.signatures))throw new TypeError("Not enough data");function r(e){return s.isCanonicalScriptSignature(e)||t.allowIncomplete&&e===o.OP_0}t=Object.assign({validate:!0},t||{}),i({network:i.maybe(i.Object),m:i.maybe(i.Number),n:i.maybe(i.Number),output:i.maybe(i.Buffer),pubkeys:i.maybe(i.arrayOf(a.isPoint)),signatures:i.maybe(i.arrayOf(r)),input:i.maybe(i.Buffer)},e);const f={network:e.network||u};let h,d=!1;function p(e){d||(d=!0,h=s.decompile(e),f.m=h[0]-c,f.n=h[h.length-2]-c,f.pubkeys=h.slice(1,-2))}if(n.prop(f,"output",function(){if(e.m&&f.n&&e.pubkeys)return s.compile([].concat(c+e.m,e.pubkeys,c+f.n,o.OP_CHECKMULTISIG))}),n.prop(f,"m",function(){if(f.output)return p(f.output),f.m}),n.prop(f,"n",function(){if(f.pubkeys)return f.pubkeys.length}),n.prop(f,"pubkeys",function(){if(e.output)return p(e.output),f.pubkeys}),n.prop(f,"signatures",function(){if(e.input)return s.decompile(e.input).slice(1)}),n.prop(f,"input",function(){if(e.signatures)return s.compile([o.OP_0].concat(e.signatures))}),n.prop(f,"witness",function(){if(f.input)return[]}),t.validate){if(e.output){if(p(e.output),!i.Number(h[0]))throw new TypeError("Output is invalid");if(!i.Number(h[h.length-2]))throw new TypeError("Output is invalid");if(h[h.length-1]!==o.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(f.m<=0||f.n>16||f.m>f.n||f.n!==h.length-3)throw new TypeError("Output is invalid");if(!f.pubkeys.every(e=>a.isPoint(e)))throw new TypeError("Output is invalid");if(void 0!==e.m&&e.m!==f.m)throw new TypeError("m mismatch");if(void 0!==e.n&&e.n!==f.n)throw new TypeError("n mismatch");if(e.pubkeys&&!l(e.pubkeys,f.pubkeys))throw new TypeError("Pubkeys mismatch")}if(e.pubkeys){if(void 0!==e.n&&e.n!==e.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(f.n=e.pubkeys.length,f.nf.m)throw new TypeError("Too many signatures provided")}if(e.input){if(e.input[0]!==o.OP_0)throw new TypeError("Input is invalid");if(0===f.signatures.length||!f.signatures.every(r))throw new TypeError("Input has invalid signature(s)");if(e.signatures&&!l(e.signatures,f.signatures))throw new TypeError("Signature mismatch");if(void 0!==e.m&&e.m!==e.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(f,e)}},function(e,t,r){"use strict";const n=r(51),i=r(5),o=r(10),a=r(15),s=r(8),u=r(25).bitcoin;e.exports=function(e,t){if(!(e.input||e.output||e.pubkey||e.input||e.signature))throw new TypeError("Not enough data");t=Object.assign({validate:!0},t||{}),i({network:i.maybe(i.Object),output:i.maybe(i.Buffer),pubkey:i.maybe(a.isPoint),signature:i.maybe(s.isCanonicalScriptSignature),input:i.maybe(i.Buffer)},e);const r=n.value(function(){return s.decompile(e.input)}),c={network:e.network||u};if(n.prop(c,"output",function(){if(e.pubkey)return s.compile([e.pubkey,o.OP_CHECKSIG])}),n.prop(c,"pubkey",function(){if(e.output)return e.output.slice(1,-1)}),n.prop(c,"signature",function(){if(e.input)return r()[0]}),n.prop(c,"input",function(){if(e.signature)return s.compile([e.signature])}),n.prop(c,"witness",function(){if(c.input)return[]}),t.validate){if(e.output){if(e.output[e.output.length-1]!==o.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!a.isPoint(c.pubkey))throw new TypeError("Output pubkey is invalid");if(e.pubkey&&!e.pubkey.equals(c.pubkey))throw new TypeError("Pubkey mismatch")}if(e.signature&&e.input&&!e.input.equals(c.input))throw new TypeError("Signature mismatch");if(e.input){if(1!==r().length)throw new TypeError("Input is invalid");if(!s.isCanonicalScriptSignature(c.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(c,e)}},function(e,t,r){"use strict";(function(Buffer){const t=r(51),n=r(5),i=r(10),o=r(15),a=r(43),s=r(8),u=r(25).bitcoin,c=r(35);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.pubkey||e.input))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),n({network:n.maybe(n.Object),address:n.maybe(n.String),hash:n.maybe(n.BufferN(20)),output:n.maybe(n.BufferN(25)),pubkey:n.maybe(o.isPoint),signature:n.maybe(s.isCanonicalScriptSignature),input:n.maybe(n.Buffer)},e);const l=t.value(function(){const t=c.decode(e.address);return{version:t.readUInt8(0),hash:t.slice(1)}}),f=t.value(function(){return s.decompile(e.input)}),h=e.network||u,d={network:h};if(t.prop(d,"address",function(){if(!d.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(h.pubKeyHash,0),d.hash.copy(e,1),c.encode(e)}),t.prop(d,"hash",function(){return e.output?e.output.slice(3,23):e.address?l().hash:e.pubkey||d.pubkey?a.hash160(e.pubkey||d.pubkey):void 0}),t.prop(d,"output",function(){if(d.hash)return s.compile([i.OP_DUP,i.OP_HASH160,d.hash,i.OP_EQUALVERIFY,i.OP_CHECKSIG])}),t.prop(d,"pubkey",function(){if(e.input)return f()[1]}),t.prop(d,"signature",function(){if(e.input)return f()[0]}),t.prop(d,"input",function(){if(e.pubkey&&e.signature)return s.compile([e.signature,e.pubkey])}),t.prop(d,"witness",function(){if(d.input)return[]}),r.validate){let t;if(e.address){if(l().version!==h.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(20!==l().hash.length)throw new TypeError("Invalid address");t=l().hash}if(e.hash){if(t&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(25!==e.output.length||e.output[0]!==i.OP_DUP||e.output[1]!==i.OP_HASH160||20!==e.output[2]||e.output[23]!==i.OP_EQUALVERIFY||e.output[24]!==i.OP_CHECKSIG)throw new TypeError("Output is invalid");const r=e.output.slice(3,23);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.pubkey){const r=a.hash160(e.pubkey);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.input){const r=f();if(2!==r.length)throw new TypeError("Input is invalid");if(!s.isCanonicalScriptSignature(r[0]))throw new TypeError("Input has invalid signature");if(!o.isPoint(r[1]))throw new TypeError("Input has invalid pubkey");if(e.signature&&!e.signature.equals(r[0]))throw new TypeError("Signature mismatch");if(e.pubkey&&!e.pubkey.equals(r[1]))throw new TypeError("Pubkey mismatch");const n=a.hash160(r[1]);if(t&&!t.equals(n))throw new TypeError("Hash mismatch")}}return Object.assign(d,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){const t=r(51),n=r(5),i=r(10),o=r(43),a=r(8),s=r(25).bitcoin,u=r(35);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.redeem||e.input))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),n({network:n.maybe(n.Object),address:n.maybe(n.String),hash:n.maybe(n.BufferN(20)),output:n.maybe(n.BufferN(23)),redeem:n.maybe({network:n.maybe(n.Object),output:n.maybe(n.Buffer),input:n.maybe(n.Buffer),witness:n.maybe(n.arrayOf(n.Buffer))}),input:n.maybe(n.Buffer),witness:n.maybe(n.arrayOf(n.Buffer))},e);let c=e.network;c||(c=e.redeem&&e.redeem.network||s);const l={network:c},f=t.value(function(){const t=u.decode(e.address);return{version:t.readUInt8(0),hash:t.slice(1)}}),h=t.value(function(){return a.decompile(e.input)}),d=t.value(function(){const t=h();return{network:c,output:t[t.length-1],input:a.compile(t.slice(0,-1)),witness:e.witness||[]}});if(t.prop(l,"address",function(){if(!l.hash)return;const e=Buffer.allocUnsafe(21);return e.writeUInt8(c.scriptHash,0),l.hash.copy(e,1),u.encode(e)}),t.prop(l,"hash",function(){return e.output?e.output.slice(2,22):e.address?f().hash:l.redeem&&l.redeem.output?o.hash160(l.redeem.output):void 0}),t.prop(l,"output",function(){if(l.hash)return a.compile([i.OP_HASH160,l.hash,i.OP_EQUAL])}),t.prop(l,"redeem",function(){if(e.input)return d()}),t.prop(l,"input",function(){if(e.redeem&&e.redeem.input&&e.redeem.output)return a.compile([].concat(a.decompile(e.redeem.input),e.redeem.output))}),t.prop(l,"witness",function(){return l.redeem&&l.redeem.witness?l.redeem.witness:l.input?[]:void 0}),r.validate){let t;if(e.address){if(f().version!==c.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(20!==f().hash.length)throw new TypeError("Invalid address");t=f().hash}if(e.hash){if(t&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(23!==e.output.length||e.output[0]!==i.OP_HASH160||20!==e.output[1]||e.output[22]!==i.OP_EQUAL)throw new TypeError("Output is invalid");const r=e.output.slice(2,22);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}const r=function(e){if(e.output){const r=a.decompile(e.output);if(!r||r.length<1)throw new TypeError("Redeem.output too short");const n=o.hash160(e.output);if(t&&!t.equals(n))throw new TypeError("Hash mismatch");t=n}if(e.input){const t=e.input.length>0,r=e.witness&&e.witness.length>0;if(!t&&!r)throw new TypeError("Empty input");if(t&&r)throw new TypeError("Input and witness provided");if(t){const t=a.decompile(e.input);if(!a.isPushOnly(t))throw new TypeError("Non push-only scriptSig")}}};if(e.input){const e=h();if(!e||e.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(d().output))throw new TypeError("Input is invalid");r(d())}if(e.redeem){if(e.redeem.network&&e.redeem.network!==c)throw new TypeError("Network mismatch");if(e.input){const t=d();if(e.redeem.output&&!e.redeem.output.equals(t.output))throw new TypeError("Redeem.output mismatch");if(e.redeem.input&&!e.redeem.input.equals(t.input))throw new TypeError("Redeem.input mismatch")}r(e.redeem)}if(e.witness&&e.redeem&&e.redeem.witness&&!function(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t[r])})}(e.redeem.witness,e.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(l,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){const t=r(51),n=r(5),i=r(10),o=r(15),a=r(43),s=r(56),u=r(8),c=r(25).bitcoin,l=Buffer.alloc(0);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.pubkey||e.witness))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),n({address:n.maybe(n.String),hash:n.maybe(n.BufferN(20)),input:n.maybe(n.BufferN(0)),network:n.maybe(n.Object),output:n.maybe(n.BufferN(22)),pubkey:n.maybe(o.isPoint),signature:n.maybe(u.isCanonicalScriptSignature),witness:n.maybe(n.arrayOf(n.Buffer))},e);const f=t.value(function(){const t=s.decode(e.address),r=t.words.shift(),n=s.fromWords(t.words);return{version:r,prefix:t.prefix,data:Buffer.from(n)}}),h=e.network||c,d={network:h};if(t.prop(d,"address",function(){if(!d.hash)return;const e=s.toWords(d.hash);return e.unshift(0),s.encode(h.bech32,e)}),t.prop(d,"hash",function(){return e.output?e.output.slice(2,22):e.address?f().data:e.pubkey||d.pubkey?a.hash160(e.pubkey||d.pubkey):void 0}),t.prop(d,"output",function(){if(d.hash)return u.compile([i.OP_0,d.hash])}),t.prop(d,"pubkey",function(){return e.pubkey?e.pubkey:e.witness?e.witness[1]:void 0}),t.prop(d,"signature",function(){if(e.witness)return e.witness[0]}),t.prop(d,"input",function(){if(d.witness)return l}),t.prop(d,"witness",function(){if(e.pubkey&&e.signature)return[e.signature,e.pubkey]}),r.validate){let t;if(e.address){if(h&&h.bech32!==f().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(0!==f().version)throw new TypeError("Invalid address version");if(20!==f().data.length)throw new TypeError("Invalid address data");t=f().data}if(e.hash){if(t&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(22!==e.output.length||e.output[0]!==i.OP_0||20!==e.output[1])throw new TypeError("Output is invalid");if(t&&!t.equals(e.output.slice(2)))throw new TypeError("Hash mismatch");t=e.output.slice(2)}if(e.pubkey){const r=a.hash160(e.pubkey);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.witness){if(2!==e.witness.length)throw new TypeError("Witness is invalid");if(!u.isCanonicalScriptSignature(e.witness[0]))throw new TypeError("Witness has invalid signature");if(!o.isPoint(e.witness[1]))throw new TypeError("Witness has invalid pubkey");if(e.signature&&!e.signature.equals(e.witness[0]))throw new TypeError("Signature mismatch");if(e.pubkey&&!e.pubkey.equals(e.witness[1]))throw new TypeError("Pubkey mismatch");const r=a.hash160(e.witness[1]);if(t&&!t.equals(r))throw new TypeError("Hash mismatch")}}return Object.assign(d,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(Buffer){const t=r(51),n=r(5),i=r(10),o=r(56),a=r(43),s=r(8),u=r(25).bitcoin,c=Buffer.alloc(0);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.redeem||e.witness))throw new TypeError("Not enough data");r=Object.assign({validate:!0},r||{}),n({network:n.maybe(n.Object),address:n.maybe(n.String),hash:n.maybe(n.BufferN(32)),output:n.maybe(n.BufferN(34)),redeem:n.maybe({input:n.maybe(n.Buffer),network:n.maybe(n.Object),output:n.maybe(n.Buffer),witness:n.maybe(n.arrayOf(n.Buffer))}),input:n.maybe(n.BufferN(0)),witness:n.maybe(n.arrayOf(n.Buffer))},e);const l=t.value(function(){const t=o.decode(e.address),r=t.words.shift(),n=o.fromWords(t.words);return{version:r,prefix:t.prefix,data:Buffer.from(n)}}),f=t.value(function(){return s.decompile(e.redeem.input)});let h=e.network;h||(h=e.redeem&&e.redeem.network||u);const d={network:h};if(t.prop(d,"address",function(){if(!d.hash)return;const e=o.toWords(d.hash);return e.unshift(0),o.encode(h.bech32,e)}),t.prop(d,"hash",function(){return e.output?e.output.slice(2):e.address?l().data:d.redeem&&d.redeem.output?a.sha256(d.redeem.output):void 0}),t.prop(d,"output",function(){if(d.hash)return s.compile([i.OP_0,d.hash])}),t.prop(d,"redeem",function(){if(e.witness)return{output:e.witness[e.witness.length-1],input:c,witness:e.witness.slice(0,-1)}}),t.prop(d,"input",function(){if(d.witness)return c}),t.prop(d,"witness",function(){if(e.redeem&&e.redeem.input&&e.redeem.input.length>0&&e.redeem.output&&e.redeem.output.length>0){const t=s.toStack(f());return d.redeem=Object.assign({witness:t},e.redeem),d.redeem.input=c,[].concat(t,e.redeem.output)}if(e.redeem&&e.redeem.output&&e.redeem.witness)return[].concat(e.redeem.witness,e.redeem.output)}),r.validate){let t;if(e.address){if(l().prefix!==h.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(0!==l().version)throw new TypeError("Invalid address version");if(32!==l().data.length)throw new TypeError("Invalid address data");t=l().data}if(e.hash){if(t&&!t.equals(e.hash))throw new TypeError("Hash mismatch");t=e.hash}if(e.output){if(34!==e.output.length||e.output[0]!==i.OP_0||32!==e.output[1])throw new TypeError("Output is invalid");const r=e.output.slice(2);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.redeem){if(e.redeem.network&&e.redeem.network!==h)throw new TypeError("Network mismatch");if(e.redeem.input&&e.redeem.input.length>0&&e.redeem.witness&&e.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(e.redeem.output){if(0===s.decompile(e.redeem.output).length)throw new TypeError("Redeem.output is invalid");const r=a.sha256(e.redeem.output);if(t&&!t.equals(r))throw new TypeError("Hash mismatch");t=r}if(e.redeem.input&&!s.isPushOnly(f()))throw new TypeError("Non push-only scriptSig");if(e.witness&&e.redeem.witness&&!function(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t[r])})}(e.witness,e.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch")}if(e.witness&&e.redeem&&e.redeem.output&&!e.redeem.output.equals(e.witness[e.witness.length-1]))throw new TypeError("Witness and redeem.output mismatch")}return Object.assign(d,e)}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";const n=r(8).decompile,i=r(138),o=r(514),a=r(139),s=r(140),u=r(519),c=r(522),l=r(524),f=r(526),h={P2MS:"multisig",NONSTANDARD:"nonstandard",NULLDATA:"nulldata",P2PK:"pubkey",P2PKH:"pubkeyhash",P2SH:"scripthash",P2WPKH:"witnesspubkeyhash",P2WSH:"witnessscripthash",WITNESS_COMMITMENT:"witnesscommitment"};e.exports={input:function(e,t){const r=n(e);if(!r)throw new TypeError("Invalid script");return s.input.check(r)?h.P2PKH:u.input.check(r,t)?h.P2SH:i.input.check(r,t)?h.P2MS:a.input.check(r)?h.P2PK:h.NONSTANDARD},output:function(e){if(c.output.check(e))return h.P2WPKH;if(l.output.check(e))return h.P2WSH;if(s.output.check(e))return h.P2PKH;if(u.output.check(e))return h.P2SH;const t=n(e);if(!t)throw new TypeError("Invalid script");return i.output.check(t)?h.P2MS:a.output.check(t)?h.P2PK:f.output.check(t)?h.WITNESS_COMMITMENT:o.output.check(t)?h.NULLDATA:h.NONSTANDARD},witness:function(e,t){const r=n(e);if(!r)throw new TypeError("Invalid script");return c.input.check(r)?h.P2WPKH:l.input.check(r,t)?h.P2WSH:h.NONSTANDARD},types:h}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){return e===i.OP_0||n.isCanonicalScriptSignature(e)}function a(e,t){const r=n.decompile(e);return!(r.length<2)&&(r[0]===i.OP_0&&(t?r.slice(1).every(o):r.slice(1).every(n.isCanonicalScriptSignature)))}a.toJSON=function(){return"multisig input"},e.exports={check:a}},function(e,t,r){"use strict";const n=r(8),i=r(30),o=r(10),a=o.OP_RESERVED;function s(e,t){const r=n.decompile(e);if(r.length<4)return!1;if(r[r.length-1]!==o.OP_CHECKMULTISIG)return!1;if(!i.Number(r[0]))return!1;if(!i.Number(r[r.length-2]))return!1;const s=r[0]-a,u=r[r.length-2]-a;return!(s<=0)&&(!(u>16)&&(!(s>u)&&(u===r.length-3&&(!!t||r.slice(1,-2).every(n.isCanonicalPubKey)))))}s.toJSON=function(){return"multi-sig output"},e.exports={check:s}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return t.length>1&&t[0]===i.OP_RETURN}o.toJSON=function(){return"null data output"},e.exports={output:{check:o}}},function(e,t,r){"use strict";const n=r(8);function i(e){const t=n.decompile(e);return 1===t.length&&n.isCanonicalScriptSignature(t[0])}i.toJSON=function(){return"pubKey input"},e.exports={check:i}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalPubKey(t[0])&&t[1]===i.OP_CHECKSIG}o.toJSON=function(){return"pubKey output"},e.exports={check:o}},function(e,t,r){"use strict";const n=r(8);function i(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalScriptSignature(t[0])&&n.isCanonicalPubKey(t[1])}i.toJSON=function(){return"pubKeyHash input"},e.exports={check:i}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return 25===t.length&&t[0]===i.OP_DUP&&t[1]===i.OP_HASH160&&20===t[2]&&t[23]===i.OP_EQUALVERIFY&&t[24]===i.OP_CHECKSIG}o.toJSON=function(){return"pubKeyHash output"},e.exports={check:o}},function(e,t,r){"use strict";e.exports={input:r(520),output:r(521)}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(8),i=r(138),o=r(139),a=r(140),s=r(225),u=r(226);function c(e,t){const r=n.decompile(e);if(r.length<1)return!1;const c=r[r.length-1];if(!Buffer.isBuffer(c))return!1;const l=n.decompile(n.compile(r.slice(0,-1))),f=n.decompile(c);return!!f&&(!!n.isPushOnly(l)&&(1===r.length?u.check(f)||s.check(f):!(!a.input.check(l)||!a.output.check(f))||(!(!i.input.check(l,t)||!i.output.check(f))||!(!o.input.check(l)||!o.output.check(f)))))}c.toJSON=function(){return"scriptHash input"},e.exports={check:c}},function(e,t,r){"use strict";const n=r(8),i=r(10);function o(e){const t=n.compile(e);return 23===t.length&&t[0]===i.OP_HASH160&&20===t[1]&&t[22]===i.OP_EQUAL}o.toJSON=function(){return"scriptHash output"},e.exports={check:o}},function(e,t,r){"use strict";e.exports={input:r(523),output:r(225)}},function(e,t,r){"use strict";const n=r(8);function i(e){const t=n.decompile(e);return 2===t.length&&n.isCanonicalScriptSignature(t[0])&&(r=t[1],n.isCanonicalPubKey(r)&&33===r.length);var r}i.toJSON=function(){return"witnessPubKeyHash input"},e.exports={check:i}},function(e,t,r){"use strict";e.exports={input:r(525),output:r(226)}},function(e,t,r){"use strict";(function(Buffer){const t=r(8),n=r(30),i=r(5),o=r(138),a=r(139),s=r(140);function u(e,r){if(i(n.Array,e),e.length<1)return!1;const u=e[e.length-1];if(!Buffer.isBuffer(u))return!1;const c=t.decompile(u);if(!c||0===c.length)return!1;const l=t.compile(e.slice(0,-1));return!(!s.input.check(l)||!s.output.check(c))||(!(!o.input.check(l,r)||!o.output.check(c))||!(!a.input.check(l)||!a.output.check(c)))}u.toJSON=function(){return"witnessScriptHash input"},e.exports={check:u}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports={output:r(527)}},function(e,t,r){"use strict";const Buffer=r(2).Buffer,n=r(8),i=r(30),o=r(5),a=r(10),s=Buffer.from("aa21a9ed","hex");function u(e){const t=n.compile(e);return t.length>37&&t[0]===a.OP_RETURN&&36===t[1]&&t.slice(2,6).equals(s)}u.toJSON=function(){return"Witness commitment output"},e.exports={check:u,decode:function(e){return o(u,e),n.decompile(e)[1].slice(4,36)},encode:function(e){o(i.Hash256bit,e);const t=Buffer.allocUnsafe(36);return s.copy(t,0),e.copy(t,4),n.compile([a.OP_RETURN,t])}}},function(e,t,r){"use strict";let n=r(21),i=r(69);e.exports={hash160:function(e){const t=n("sha256").update(e).digest();try{return n("rmd160").update(t).digest()}catch(e){return n("ripemd160").update(t).digest()}},hmacSHA512:function(e,t){return i("sha512",e).update(t).digest()}}},function(e,t,r){"use strict";var n=r(530),i=r(531);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(532);function y(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?M+="x":M+=I[D];if(!M.match(d)){var N=C.slice(0,O),z=C.slice(O+1),R=I.match(p);R&&(N.push(R[1]),z.unshift(R[2])),z.length&&(y="/"+z.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[k])for(O=0,j=l.length;O0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=S.slice(-1)[0],A=(r.host||e.host||S.length>1)&&("."===E||".."===E)||""===E,O=0,P=S.length;P>=0;P--)"."===(E=S[P])?S.splice(P,1):".."===E?(S.splice(P,1),O++):O&&(S.splice(P,1),O--);if(!w&&!k)for(;O--;O)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var T,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);x&&(r.hostname=r.host=C?"":S.length?S.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(w=w||r.host&&S.length)&&!C&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";(function(e,n){var i; /*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,c=36,l=1,f=26,h=38,d=700,p=72,m=128,g="-",v=/^xn--/,b=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-l,k=Math.floor,S=String.fromCharCode;function x(e){throw new RangeError(_[e])}function E(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function A(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+E((e=e.replace(y,".")).split("."),t).join(".")}function O(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,r){var n=0;for(e=r?k(e/d):e>>1,e+=k(e/t);e>w*f>>1;n+=c)e=k(e/w);return k(n+(w+1)*e/(e+h))}function j(e){var t,r,n,i,o,a,s,h,d,v,b,y=[],_=e.length,w=0,S=m,E=p;for((r=e.lastIndexOf(g))<0&&(r=0),n=0;n=128&&x("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<_;){for(o=w,a=1,s=c;i>=_&&x("invalid-input"),((h=(b=e.charCodeAt(i++))-48<10?b-22:b-65<26?b-65:b-97<26?b-97:c)>=c||h>k((u-w)/a))&&x("overflow"),w+=h*a,!(h<(d=s<=E?l:s>=E+f?f:s-E));s+=c)a>k(u/(v=c-d))&&x("overflow"),a*=v;E=C(w-o,t=y.length+1,0==o),k(w/t)>u-S&&x("overflow"),S+=k(w/t),w%=t,y.splice(w++,0,S)}return P(y)}function I(e){var t,r,n,i,o,a,s,h,d,v,b,y,_,w,E,A=[];for(y=(e=O(e)).length,t=m,r=0,o=p,a=0;a=t&&bk((u-r)/(_=n+1))&&x("overflow"),r+=(s-t)*_,t=s,a=0;au&&x("overflow"),b==t){for(h=r,d=c;!(h<(v=d<=o?l:d>=o+f?f:d-o));d+=c)E=h-v,w=c-v,A.push(S(T(v+E%w,0))),h=k(E/w);A.push(S(T(h,0))),o=C(r,_,n==i),r=0,++n}++r,++t}return A.join("")}s={version:"1.4.1",ucs2:{decode:O,encode:P},decode:j,encode:I,toASCII:function(e){return A(e,function(e){return b.test(e)?"xn--"+I(e):e})},toUnicode:function(e){return A(e,function(e){return v.test(e)?j(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(36)(e),r(9))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(533),t.encode=t.stringify=r(534)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l=0?(f=m.substr(0,g),h=m.substr(g+1)):(f=m,h=""),d=decodeURIComponent(f),p=decodeURIComponent(h),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(n(e))}).join(t):s+encodeURIComponent(n(e[a]))}).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;nencodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},function(e,t,r){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n),r=1;r{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(26),i=r(32);t.launchCustomProtocol=function(e,t,r){const o=Math.random().toString(36).substr(2,9),a=`echo-reply-${o}`;["localStorage","document","setTimeout","clearTimeout","addEventListener","removeEventListener"].forEach(e=>n.checkWindowAPI("detectProtocolLaunch",e)),window.localStorage.setItem(a,Date.now().toString());const s=()=>{try{window.localStorage.removeItem(a);for(let e=0;e36e5)&&window.localStorage.removeItem(t)}}}catch(e){i.Logger.error("Exception cleaning up echo-reply entries in localStorage"),i.Logger.error(e)}};let u=0;const c=()=>{u&&(window.clearTimeout(u),u=0)},l=(e=1e3)=>{c(),u=window.setTimeout(()=>{if(u){let e;c(),"success"===window.localStorage.getItem(a)?(i.Logger.info("Protocol echo reply detected."),e=t):(i.Logger.info("Protocol handler not detected."),e=r),r=()=>{},t=()=>{},s(),setTimeout(()=>e(),100)}},e)};l();const f=window.document.createElement("input");f.type="text",f.style.cssText="all: initial; position: fixed; top: 0; height: 0; width: 0; opacity: 0;";const h=()=>{let e=!1;f.addEventListener("focus",()=>{e=!0},{once:!0,capture:!0}),setTimeout(()=>{u&&!e&&(i.Logger.info("Detected possible browser prompt for opening the protocol handler app."),window.clearTimeout(u),f.addEventListener("focus",()=>{u&&(i.Logger.info("Possible browser prompt closed, restarting auth redirect timeout."),l())},{once:!0,capture:!0}))},100)};f.addEventListener("blur",h,{once:!0,capture:!0}),setTimeout(()=>f.removeEventListener("blur",h),200),window.document.body.appendChild(f),f.focus();const d=()=>{window.document.hidden&&u&&(i.Logger.info("Detected immediate page visibility change (protocol handler probably working)."),l(3e3))};window.document.addEventListener("visibilitychange",d,{once:!0,capture:!0}),setTimeout(()=>window.document.removeEventListener("visibilitychange",d),500),window.addEventListener("storage",function e(n){if(n.key===a&&"success"===window.localStorage.getItem(a)){c(),f.removeEventListener("blur",h),i.Logger.info("Protocol echo reply detected from localStorage event."),window.removeEventListener("storage",e);const n=t;t=()=>{},r=()=>{},s(),setTimeout(()=>n(),100)}},!1),i.Logger.info("Attempting protocol launch via iframe injection.");const p=`${n.BLOCKSTACK_HANDLER}:${e}&echo=${o}`,m=window.document.createElement("iframe");m.style.cssText="all: initial; display: none; position: fixed; top: 0; height: 0; width: 0; opacity: 0;",m.src=p,window.document.body.appendChild(m)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getZoneFileTemplate=function(){return"{$origin}\n{$ttl}\n\n; SOA Record\n{name} {ttl} IN SOA {mname}{rname}(\n{serial} ;serial\n{refresh} ;refresh\n{retry} ;retry\n{expire} ;expire\n{minimum} ;minimum ttl\n)\n\n; NS Records\n{ns}\n\n; MX Records\n{mx}\n\n; A Records\n{a}\n\n; AAAA Records\n{aaaa}\n\n; CNAME Records\n{cname}\n\n; PTR Records\n{ptr}\n\n; TXT Records\n{txt}\n\n; SRV Records\n{srv}\n\n; SPF Records\n{spf}\n\n; URI Records\n{uri}\n"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoneFile=void 0;var n=r(237),i=r(238);t.ZoneFile=class{constructor(e){"object"==typeof e?this.jsonZoneFile=JSON.parse(JSON.stringify(e)):"string"==typeof e&&(this.jsonZoneFile=(0,i.parseZoneFile)(e))}toJSON(){return this.jsonZoneFile}toString(){return(0,n.makeZoneFile)(this.toJSON())}}},function(e,t,r){"use strict";!function(){var t={};if(t.async=r(545),"object"!=typeof t.async)throw new Error("Module async is required (https://github.com/caolan/async)");var n=t.async;function i(e,t){if(!t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function o(){var e={},t=Array.prototype.slice.call(arguments),r=null,n=null;return t.forEach(function(t){if(t&&t.constructor===Object)for(r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]]}),e}function a(){this.custom={},this.extend=function(e){return i(this.custom,e)},this.reset=function(){this.custom={}},this.remove=function(e){u.array(e)||(e=[e]),e.forEach(function(e){delete this.custom[e]},this)}}function s(e,t){var r=["@"];if(this._schema=e,this._custom={},null!=t)for(var n in t)t.hasOwnProperty(n)&&(this._custom["$"+n]=t[n]);this._getDepth=function(){return r.length},this._dumpStack=function(){return r.map(function(e){return e.replace(/^\[/g,"")}).join(".").replace(/\.\u001b\u001c\u001d\u001e/g,"[")},this._deeperObject=function(e){return r.push(/^[a-z$_][a-z0-9$_]*$/i.test(e)?e:'["'+e+'"]'),this},this._deeperArray=function(e){return r.push("["+e+"]"),this},this._back=function(){return r.pop(),this}}var u={function:function(e){return"function"==typeof e},string:function(e){return"string"==typeof e},number:function(e){return"number"==typeof e&&!isNaN(e)},integer:function(e){return"number"==typeof e&&e%1==0},NaN:function(e){return"number"==typeof e&&isNaN(e)},boolean:function(e){return"boolean"==typeof e},null:function(e){return null===e},date:function(e){return null!=e&&e instanceof Date},object:function(e){return null!=e&&e.constructor===Object},array:function(e){return null!=e&&e.constructor===Array},any:function(e){return!0}};function c(e,t){return"function"==typeof e?t instanceof e:u[e=e in u?e:"any"](t)}function l(e,t){for(var r=[],n=e.indexOf(t);-1!==n;)r.push(n),n=e.indexOf(t,n+1);return r}var f={void:/^$/,url:/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)?(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,"date-time":/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?(Z?|(-|\+)\d{2}:\d{2})$/,date:/^\d{4}-\d{2}-\d{2}$/,coolDateTime:/^\d{4}(-|\/)\d{2}(-|\/)\d{2}(T| )\d{2}:\d{2}:\d{2}(\.\d{3})?Z?$/,time:/^\d{2}\:\d{2}\:\d{2}$/,color:/^#([0-9a-f])+$/i,email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,numeric:/^[0-9]+$/,integer:/^\-?[0-9]+$/,decimal:/^\-?[0-9]*\.?[0-9]+$/,alpha:/^[a-z]+$/i,alphaNumeric:/^[a-z0-9]+$/i,alphaDash:/^[a-z0-9_-]+$/i,javascript:/^[a-z_\$][a-z0-9_\$]*$/i,upperString:/^[A-Z ]*$/,lowerString:/^[a-z ]*$/},h={optional:function(e,t){!0!==("boolean"==typeof e.optional?e.optional:"true"===e.optional)&&void 0===t&&this.report("is missing and not optional",null,"optional")},type:function(e,t){if(void 0!==t&&("string"==typeof e.type||e.type instanceof Array||"function"==typeof e.type)){var r=u.array(e.type)?e.type:[e.type];r.some(function(e){return c(e,t)})||(r=r.map(function(e){return"function"==typeof e?"and instance of "+e.name:e}),this.report("must be "+r.join(" or ")+", but is "+function(e){for(var t in u)if(c(t,e))return"any"!==t?t:"an instance of "+e.constructor.name}(t),null,"type"))}},uniqueness:function(e,t){if("string"==typeof e.uniqueness&&(e.uniqueness="true"===e.uniqueness),"boolean"==typeof e.uniqueness&&!1!==e.uniqueness&&(u.array(t)||"string"==typeof t))for(var r=[],n=0;n=0)){var i=l(t,t[n]);i.length>1&&(r.push(t[n]),this.report("has value ["+t[n]+"] more than once at indexes ["+i.join(", ")+"]",null,"uniqueness"))}},pattern:function(e,t){var r=e.pattern;if("string"==typeof t){var n=!1;u.array(r)||(r=[r]),r.forEach(function(e){"string"==typeof e&&e in f&&(e=f[e]),e instanceof RegExp&&e.test(t)&&(n=!0)}),n||this.report("must match ["+r.join(" or ")+'], but is equal to "'+t+'"',null,"pattern")}},validDate:function(e,t){"true"===String(e.validDate)&&t instanceof Date&&isNaN(t.getTime())&&this.report("must be a valid date",null,"validDate")},minLength:function(e,t){if("string"==typeof t||u.array(t)){var r=Number(e.minLength);isNaN(r)||t.lengthr&&this.report("must be shorter than "+r+" elements, but it has "+t.length,null,"maxLength")}},exactLength:function(e,t){if("string"==typeof t||u.array(t)){var r=Number(e.exactLength);isNaN(r)||t.length!==r&&this.report("must have exactly "+r+" elements, but it have "+t.length,null,"exactLength")}},lt:function(e,t){var r=Number(e.lt);"number"!=typeof t||isNaN(r)||t>=r&&this.report("must be less than "+r+', but is equal to "'+t+'"',null,"lt")},lte:function(e,t){var r=Number(e.lte);"number"!=typeof t||isNaN(r)||t>r&&this.report("must be less than or equal to "+r+', but is equal to "'+t+'"',null,"lte")},gt:function(e,t){var r=Number(e.gt);"number"!=typeof t||isNaN(r)||t<=r&&this.report("must be greater than "+r+', but is equal to "'+t+'"',null,"gt")},gte:function(e,t){var r=Number(e.gte);"number"!=typeof t||isNaN(r)||t0){var n="should not contains "+(r.length>1?"properties":"property")+" ["+r.map(function(e){return'"'+e+'"'}).join(", ")+"]";this.report(n,null,"strict")}}}},exec:function(e,t,r){var n=this;if("function"==typeof r)return this.asyncExec(e,t,r);(u.array(e.exec)?e.exec:[e.exec]).forEach(function(r){"function"==typeof r&&r.call(n,e,t)})},properties:function(e,t,r){if("function"==typeof r)return this.asyncProperties(e,t,r);if(e.properties instanceof Object&&t instanceof Object){var n,i=e.properties;if(null!=i["*"])for(n in t)n in i||(this._deeperObject(n),this._validate(i["*"],t[n]),this._back());for(n in i)"*"!==n&&(this._deeperObject(n),this._validate(i[n],t[n]),this._back())}},items:function(e,t,r){if("function"==typeof r)return this.asyncItems(e,t,r);if(e.items instanceof Object&&t instanceof Object){var n,i,o=e.items;if(u.array(o)&&u.array(t))for(n=0,i=o.length;n2)return r.call(i,e,t,o);r.call(i,e,t)}n.nextTick(o)},r)},asyncProperties:function(e,t,r){if(!(e.properties instanceof Object&&u.object(t)))return r();var i=this,o=e.properties;n.series([function(e){if(null==o["*"])return e();n.eachSeries(Object.keys(t),function(e,r){if(e in o)return n.nextTick(r);i._deeperObject(e),i._asyncValidate(o["*"],t[e],function(e){i._back(),r(e)})},e)},function(e){n.eachSeries(Object.keys(o),function(e,r){if("*"===e)return n.nextTick(r);i._deeperObject(e),i._asyncValidate(o[e],t[e],function(e){i._back(),r(e)})},e)}],r)},asyncItems:function(e,t,r){if(!(e.items instanceof Object&&t instanceof Object))return r();var i=this,o=e.items;u.array(o)&&u.array(t)?n.timesSeries(o.length,function(e,r){i._deeperArray(e),i._asyncValidate(o[e],t[e],function(e,t){i._back(),r(e,t)}),i._back()},r):n.eachSeries(Object.keys(t),function(e,r){i._deeperArray(e),i._asyncValidate(o,t[e],function(e,t){i._back(),r(e,t)})},r)}};function p(e,t){s.prototype.constructor.call(this,e,o(p.custom,t));var r=[];this._basicFields=Object.keys(h),this._customFields=Object.keys(this._custom),this.origin=null,this.report=function(e,t,n){var i={code:t||this.userCode||null,reason:n||"unknown",message:this.userError||e||"is invalid",property:this.userAlias?this.userAlias+" ("+this._dumpStack()+")":this._dumpStack()};return r.push(i),this},this.result=function(){return{error:r,valid:0===r.length,format:function(){return!0===this.valid?"Candidate is valid":this.error.map(function(e){return"Property "+e.property+": "+e.message}).join("\n")}}}}i(p.prototype,h),i(p.prototype,d),i(p,new a),p.prototype.validate=function(e,t){if(this.origin=e,"function"==typeof t){var r=this;return n.nextTick(function(){r._asyncValidate(r._schema,e,function(e){r.origin=null,t(e,r.result())})})}return this._validate(this._schema,e).result()},p.prototype._validate=function(e,t,r){return this.userCode=e.code||null,this.userError=e.error||null,this.userAlias=e.alias||null,this._basicFields.forEach(function(r){(r in e||"optional"===r)&&"function"==typeof this[r]&&this[r](e,t)},this),this._customFields.forEach(function(r){r in e&&"function"==typeof this._custom[r]&&this._custom[r].call(this,e,t)},this),this},p.prototype._asyncValidate=function(e,t,r){var i=this;this.userCode=e.code||null,this.userError=e.error||null,this.userAlias=e.alias||null,n.series([function(r){n.eachSeries(Object.keys(h),function(r,o){n.nextTick(function(){if((r in e||"optional"===r)&&"function"==typeof i[r]){if(i[r].length>2)return i[r](e,t,o);i[r](e,t)}o()})},r)},function(r){n.eachSeries(Object.keys(i._custom),function(r,o){n.nextTick(function(){if(r in e&&"function"==typeof i._custom[r]){if(i._custom[r].length>2)return i._custom[r].call(i,e,t,o);i._custom[r].call(i,e,t)}o()})},r)}],r)};var m={number:function(e,t){var r;if("number"==typeof e)return e;if(""===e)return void 0!==t.def?t.def:null;if("string"==typeof e){if("number"==typeof(r=parseFloat(e.replace(/,/g,".").replace(/ /g,""))))return r}else if(e instanceof Date)return+e;return null},integer:function(e,t){var r;if("number"==typeof e&&e%1==0)return e;if(""===e)return void 0!==t.def?t.def:null;if("string"==typeof e){if("number"==typeof(r=parseInt(e.replace(/ /g,""),10)))return r}else{if("number"==typeof e)return parseInt(e,10);if("boolean"==typeof e)return e?1:0;if(e instanceof Date)return+e}return null},string:function(e,t){return"boolean"==typeof e||"number"==typeof e||e instanceof Date?e.toString():u.array(e)?t.items||t.properties?e:e.join(String(t.joinWith||",")):e instanceof Object?t.items||t.properties?e:JSON.stringify(e):"string"==typeof e&&e.length?e:null},date:function(e,t){if(e instanceof Date)return e;var r=new Date(e);return isNaN(r.getTime())?null:r},boolean:function(e,t){return void 0===e?null:("string"!=typeof e||"false"!==e.toLowerCase())&&!!e},object:function(e,t){if("string"!=typeof e||u.object(e))return e;try{return JSON.parse(e)}catch(e){return null}},array:function(e,t){if(u.array(e))return e;if(void 0===e)return null;if("string"==typeof e){if("["===e.substring(0,1)&&"]"===e.slice(-1))try{return JSON.parse(e)}catch(e){return null}return e.split(String(t.splitWith||","))}return u.array(e)?null:[e]}},g={upper:function(e){return e.toUpperCase()},lower:function(e){return e.toLowerCase()},title:function(e){return e.replace(/\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},capitalize:function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()},ucfirst:function(e){return e.charAt(0).toUpperCase()+e.substr(1)},trim:function(e){return e.trim()}},v={strict:function(e,t){if("string"==typeof e.strict&&(e.strict="true"===e.strict),!0!==e.strict)return t;if(!u.object(e.properties))return t;if(!u.object(t))return t;return Object.keys(t).forEach(function(r){r in e.properties||delete t[r]}),t},optional:function(e,t){return!0===("boolean"==typeof e.optional?e.optional:"false"!==e.optional)?t:void 0!==t?t:(this.report(),e.def===Date?new Date:e.def)},type:function(e,t){if("string"!=typeof e.type||"function"!=typeof m[e.type])return t;var r,n="boolean"!=typeof e.optional||e.optional;return"function"==typeof m[e.type]?(null===(r=m[e.type](t,e))&&!n||!r&&isNaN(r)||null===r&&"string"===e.type)&&(r=e.def):n||(r=e.def),(null!=r||void 0!==e.def&&e.def===r)&&r!==t?(this.report(),r):t},rules:function(e,t){var r=e.rules;if("string"!=typeof t||"string"!=typeof r&&!u.array(r))return t;var n=!1;return(u.array(r)?r:[r]).forEach(function(e){"function"==typeof g[e]&&(t=g[e](t),n=!0)}),n&&this.report(),t},min:function(e,t){var r=Number(t);if(isNaN(r))return t;var n=Number(e.min);return isNaN(n)?t:rn?(this.report(),n):t},minLength:function(e,t){var r=Number(e.minLength);if("string"!=typeof t||isNaN(r)||r<0)return t;var n="",i=r-t.length;if(i>0){for(var o=0;or?(this.report(),t.slice(0,r)):t},properties:function(e,t,r){if("function"==typeof r)return this.asyncProperties(e,t,r);if(!t||"object"!=typeof t)return t;var n,i,o=e.properties;if(void 0!==o["*"])for(i in t)i in o||(this._deeperObject(i),void 0!==(n=this._sanitize(e.properties["*"],t[i]))&&(t[i]=n),this._back());for(i in e.properties)"*"!==i&&(this._deeperObject(i),void 0!==(n=this._sanitize(e.properties[i],t[i]))&&(t[i]=n),this._back());return t},items:function(e,t,r){if("function"==typeof r)return this.asyncItems(e,t,r);if(!(e.items instanceof Object&&t instanceof Object))return t;var n;if(u.array(e.items)&&u.array(t)){var i=e.items.length2)return r.call(i,e,t,function(e,r){if(e)return n(e);t=r,n()});t=r.call(i,e,t)}n()},function(e){r(e,t)})},asyncProperties:function(e,t,r){if(!t||"object"!=typeof t)return r(null,t);var i=this,o=e.properties;n.series([function(e){if(null==o["*"])return e();var r=o["*"];n.eachSeries(Object.keys(t),function(e,n){if(e in o)return n();i._deeperObject(e),i._asyncSanitize(r,t[e],function(r,o){void 0!==o&&(t[e]=o),i._back(),n()})},e)},function(e){n.eachSeries(Object.keys(o),function(e,r){if("*"===e)return r();i._deeperObject(e),i._asyncSanitize(o[e],t[e],function(n,o){if(n)return r(n);void 0!==o&&(t[e]=o),i._back(),r()})},e)}],function(e){return r(e,t)})},asyncItems:function(e,t,r){if(!(e.items instanceof Object&&t instanceof Object))return r(null,t);var i=this,o=e.items;if(u.array(o)&&u.array(t)){var a=o.length2)return i[r](e,t,o);t=i[r](e,t)}o(null,t)})},r)},function(t,r){n.reduce(i._customFields,t,function(t,r,o){n.nextTick(function(){if(r in e&&"function"==typeof i._custom[r]){if(i._custom[r].length>2)return i._custom[r].call(i,e,t,o);t=i._custom[r].call(i,e,t)}o(null,t)})},r)}],r)};var _=-2147483648,w=2147483647,k={int:function(e,t){return e+(0|Math.random()*(t-e+1))},float:function(e,t){return Math.random()*(t-e)+e},bool:function(){return Math.random()>.5},char:function(e,t){return String.fromCharCode(this.int(e,t))},fromList:function(e){return e[this.int(0,e.length-1)]}},S={"date-time":function(){return(new Date).toISOString()},date:function(){return(new Date).toISOString().replace(/T.*$/,"")},time:function(){return(new Date).toLocaleTimeString({},{hour12:!1})},color:function(e,t){var r="#";e<1&&(e=1);for(var n=0,i=k.int(e,t);ns&&(n=s),r=new Array(n),t=null,i=0;i=0&&e.length%1==0}function b(e,t){for(var r=-1,n=e.length;++r3?e(n,i,u,s):(a=o,o=i,e(n,u,s))}}function N(e,t){return t}function z(e,t,r){r=r||u;var n=v(t)?[]:{};e(t,function(e,t,r){e(x(function(e,i){i.length<=1&&(i=i[0]),n[t]=i,r(e)}))},function(e){r(e,n)})}function R(e,t,r,n){var i=[];e(t,function(e,t,n){r(e,function(e,t){i=i.concat(t||[]),n(e)})},function(e){n(e,i)})}function F(e,t,r){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");function n(e,t,r,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(e.started=!0,g(t)||(t=[t]),0===t.length&&e.idle())return s.setImmediate(function(){e.drain()});b(t,function(t){var i={data:t,callback:n||u};r?e.tasks.unshift(i):e.tasks.push(i),e.tasks.length===e.concurrency&&e.saturated()}),s.setImmediate(e.process)}function i(e,t){return function(){o-=1;var r=!1,n=arguments;b(t,function(e){b(a,function(t,n){t!==e||r||(a.splice(n,1),r=!0)}),e.callback.apply(e,n)}),e.tasks.length+o===0&&e.drain(),e.process()}}var o=0,a=[],c={tasks:[],concurrency:t,payload:r,saturated:u,empty:u,drain:u,started:!1,paused:!1,push:function(e,t){n(c,e,!1,t)},kill:function(){c.drain=u,c.tasks=[]},unshift:function(e,t){n(c,e,!0,t)},process:function(){for(;!c.paused&&on?1:0}s.map(e,function(e,r){t(e,function(t,n){t?r(t):r(null,{value:e,criteria:n})})},function(e,t){if(e)return r(e);r(null,y(t.sort(n),function(e){return e.value}))})},s.auto=function(e,t,r){"function"==typeof arguments[1]&&(r=t,t=null),r=p(r||u);var n=k(e),i=n.length;if(!i)return r(null);t||(t=i);var o={},a=0,c=!1,l=[];function f(e){l.unshift(e)}function h(){i--,b(l.slice(0),function(e){e()})}f(function(){i||r(null,o)}),b(n,function(n){if(!c){for(var i,u=g(e[n])?e[n]:[e[n]],d=x(function(e,t){if(a--,t.length<=1&&(t=t[0]),e){var i={};l=function(e,t){i[t]=e},b(k(u=o),function(e){l(u[e],e)}),i[n]=t,c=!0,r(e,i)}else o[n]=t,s.setImmediate(h);var u,l}),p=u.slice(0,u.length-1),m=p.length;m--;){if(!(i=e[p[m]]))throw new Error("Has nonexistent dependency in "+p.join(", "));if(g(i)&&w(i,n)>=0)throw new Error("Has cyclic dependencies")}v()?(a++,u[u.length-1](d,o)):f(function e(){v()&&(a++,(t=w(l,e))>=0&&l.splice(t,1),u[u.length-1](d,o));var t})}function v(){return a3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");function c(e,t){function r(e,r){return function(n){e(function(e,t){n(!e||r,{err:e,result:t})},t)}}function n(e){return function(t){setTimeout(function(){t(null)},e)}}for(;a.times;){var i=!(a.times-=1);o.push(r(a.task,i)),!i&&a.interval>0&&o.push(n(a.interval))}s.series(o,function(t,r){r=r[r.length-1],(e||a.callback)(r.err,r.result)})}return u<=2&&"function"==typeof e&&(r=t,t=e),"function"!=typeof e&&function(e,t){if("number"==typeof t)e.times=parseInt(t,10)||n;else{if("object"!=typeof t)throw new Error("Unsupported argument type for 'times': "+typeof t);e.times=parseInt(t.times,10)||n,e.interval=parseInt(t.interval,10)||i}}(a,e),a.callback=r,a.task=t,a.callback?c():c},s.waterfall=function(e,t){if(t=p(t||u),!g(e)){var r=new Error("First argument to waterfall must be an array of functions");return t(r)}if(!e.length)return t();!function e(r){return x(function(n,i){if(n)t.apply(null,[n].concat(i));else{var o=r.next();o?i.push(e(o)):i.push(t),q(r).apply(null,i)}})}(s.iterator(e))()},s.parallel=function(e,t){z(s.eachOf,e,t)},s.parallelLimit=function(e,t,r){z(P(t),e,r)},s.series=function(e,t){z(s.eachOfSeries,e,t)},s.iterator=function(e){return function t(r){function n(){return e.length&&e[r].apply(null,arguments),n.next()}return n.next=function(){return r>>1);r(t,e[o])>=0?n=o:i=o-1}return n}(e.tasks,o,r)+1,0,o),e.tasks.length===e.concurrency&&e.saturated(),s.setImmediate(e.process)})}(n,e,t,i)},delete n.unshift,n},s.cargo=function(e,t){return F(e,1,t)},s.log=U("log"),s.dir=U("dir"),s.memoize=function(e,t){var r={},n={},i=Object.prototype.hasOwnProperty;t=t||c;var o=x(function(o){var a=o.pop(),u=t.apply(null,o);i.call(r,u)?s.setImmediate(function(){a.apply(null,r[u])}):i.call(n,u)?n[u].push(a):(n[u]=[a],e.apply(null,o.concat([x(function(e){r[u]=e;var t=n[u];delete n[u];for(var i=0,o=t.length;i0&&(o=i(e,o,r,n),a=a.concat(o),(n-=o.length)<=0)));s++);return a}e.exports={filter:function(e,t,r,n){Array.isArray(t)||(t=[t]);"number"==typeof n&&isFinite(n)||(n=1/0);return i(e,t,!1!==r,n)},find:i,findOneChild:function(e,t){for(var r=0,n=t.length;r0&&(i=e(t,r[o].children)));return i},existsOne:function e(t,r){for(var i=0,o=r.length;i0&&e(t,r[i].children)))return!0;return!1},findAll:function e(t,r){var i=[];for(var o=0,a=r.length;o0&&(i=i.concat(e(t,r[o].children))));return i}}},function(e,t,r){"use strict";var n=r(59),i=t.isTag=n.isTag;t.testElement=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){if("tag_name"===r){if(!i(t)||!e.tag_name(t.name))return!1}else if("tag_type"===r){if(!e.tag_type(t.type))return!1}else if("tag_contains"===r){if(i(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[r](t.attribs[r]))return!1}else;return!0};var o={tag_name:function(e){return"function"==typeof e?function(t){return i(t)&&e(t.name)}:"*"===e?i:function(t){return i(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!i(t)&&e(t.data)}:function(t){return!i(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(r){return r.attribs&&t(r.attribs[e])}:function(r){return r.attribs&&r.attribs[e]===t}}function s(e,t){return function(r){return e(r)||t(r)}}t.getElements=function(e,t,r,n){var i=Object.keys(e).map(function(t){var r=e[t];return t in o?o[t](r):a(t,r)});return 0===i.length?[]:this.filter(i.reduce(s),t,r,n)},t.getElementById=function(e,t,r){return Array.isArray(t)||(t=[t]),this.findOne(a("id",e),t,!1!==r)},t.getElementsByTagName=function(e,t,r,n){return this.filter(o.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return this.filter(o.tag_type(e),t,r,n)}},function(e,t,r){"use strict";t.removeSubsets=function(e){for(var t,r,n,i=e.length;--i>-1;){for(t=r=e[i],e[i]=null,n=!0;r;){if(e.indexOf(r)>-1){n=!1,e.splice(i,1);break}r=r.parent}n&&(e[i]=t)}return e};var n=1,i=2,o=4,a=8,s=16,u=t.compareDocumentPosition=function(e,t){var r,u,c,l,f,h,d=[],p=[];if(e===t)return 0;for(r=e;r;)d.unshift(r),r=r.parent;for(r=t;r;)p.unshift(r),r=r.parent;for(h=0;d[h]===p[h];)h++;return 0===h?n:(c=(u=d[h-1]).children,l=d[h],f=p[h],c.indexOf(l)>c.indexOf(f)?u===t?o|s:o:u===e?i|a:i)};t.uniqueSort=function(e){var t,r,n=e.length;for(e=e.slice();--n>-1;)t=e[n],(r=e.indexOf(t))>-1&&r-1;)if(r=o+e.length,(0===o||l.test(i[o-1]))&&(r===i.length||l.test(i[r])))return!0})},t.addClass=function(e){if("function"==typeof e)return a(this,function(r,n){var i=n.attribs.class||"";t.addClass.call([n],e.call(n,r,i))});if(!e||"string"!=typeof e)return this;for(var r=e.split(l),n=this.length,i=0;i=0&&(u.splice(a,1),s=!0,c--);s&&(t.attribs.class=u.join(" "))}}))},t.toggleClass=function(e,r){if("function"==typeof e)return a(this,function(n,i){t.toggleClass.call([i],e.call(i,n,i.attribs.class||"",r),r)});if(!e||"string"!=typeof e)return this;for(var n,i,s=e.split(l),u=s.length,c="boolean"==typeof r?r?1:-1:0,f=this.length,h=0;h=0&&i<0?n.push(s[d]):c<=0&&i>=0&&n.splice(i,1);this[h].attribs.class=n.join(" ")}return this},t.is=function(e){return!!e&&this.filter(e).length>0}},function(e,t,r){"use strict";var n=r(566),i=r(567);e.exports=function(e){return i(n(e))},e.exports.parse=n,e.exports.compile=i},function(e,t,r){"use strict";e.exports=function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t,r=e.match(n);if(!r)throw new SyntaxError("n-th rule couldn't be parsed ('"+e+"')");return r[1]?(t=parseInt(r[1],10),isNaN(t)&&(t="-"===r[1].charAt(0)?-1:1)):t=0,[t,r[3]?parseInt((r[2]||"")+r[3],10):0]};var n=/^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/},function(e,t,r){"use strict";e.exports=function(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return o;if(-1===t)return function(e){return e<=r};if(0===t)return function(e){return e===r};if(1===t)return r<0?i:function(e){return e>=r};var n=r%t;n<0&&(n+=t);if(t>1)return function(e){return e>=r&&e%t===n};return t*=-1,function(e){return e<=r&&e%t===n}};var n=r(79),i=n.trueFunc,o=n.falseFunc},function(e,t,r){"use strict";e.exports=function(e,t,r){return h(d(e,t,r))},e.exports.compileUnsafe=d,e.exports.compileToken=y;var n=r(569),i=r(52),o=i.isTag,a=r(570),s=r(571),u=r(79),c=u.trueFunc,l=u.falseFunc,f=r(251);function h(e){return function(t){return o(t)&&e(t)}}function d(e,t,r){return y(n(e,t),t,r)}function p(e){return"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some(function(e){return e.some(p)}))}var m={type:"descendant"},g={type:"pseudo",name:"scope"},v={},b=i.getParent;function y(e,t,r){(e=e.filter(function(e){return e.length>0})).forEach(s);var n=Array.isArray(r);return(r=t&&t.context||r)&&!n&&(r=[r]),function(e,t){var r=!!t&&!!t.length&&t.every(function(e){return e===v||!!b(e)});e.forEach(function(e){if(e.length>0&&_(e[0])&&"descendant"!==e[0].type);else{if(!r||p(e))return;e.unshift(m)}e.unshift(g)})}(e,r),e.map(function(e){return function(e,t,r,n){var i=n&&"scope"===e[0].name&&"descendant"===e[1].type;return e.reduce(function(e,n,o){return e===l?e:a[n.type](e,n,t,r,i&&1===o)},t&&t.rootFunc||c)}(e,t,r,n)}).reduce(w,l)}function _(e){return f[e.type]<0}function w(e,t){return t===l||e===c?e:e===l||t===c?t:function(r){return e(r)||t(r)}}var k=r(149).filters,S=i.existsOne,x=(o=i.isTag,i.getChildren);function E(e){return e.some(_)}k.not=function(e,t,r,n){var i={xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict)};if(i.strict&&(t.length>1||t.some(E)))throw new SyntaxError("complex selectors in :not aren't allowed in strict mode");var o=y(t,i,n);return o===l?e:o===c?l:function(t){return!o(t)&&e(t)}},k.has=function(e,t,r){var n={xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict)},i=t.some(E)?[v]:null,a=y(t,n,i);return a===l?l:a===c?function(t){return x(t).some(o)&&e(t)}:(a=h(a),i?function(t){return e(t)&&(i[0]=t,S(a,x(t)))}:function(t){return e(t)&&S(a,x(t))})},k.matches=function(e,t,r,n){return y(t,{xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict),rootFunc:e},n)}},function(e,t,r){"use strict";e.exports=function(e,t){var r=[];if(""!==(e=function e(t,r,i){var h,g,v,b,y=[],_=!1;function w(){var e=r.match(n)[0];return r=r.substr(e.length),d(e)}function k(e){for(;p(r.charAt(e));)e++;r=r.substr(e)}function S(e){for(var t=0;"\\"===r.charAt(--e);)t++;return 1==(1&t)}for(k(0);""!==r;)if(p(g=r.charAt(0)))_=!0,k(1);else if(g in s)y.push({type:s[g]}),_=!1,k(1);else if(","===g){if(0===y.length)throw new SyntaxError("empty sub-selector");t.push(y),y=[],_=!1,k(1)}else if(_&&(y.length>0&&y.push({type:"descendant"}),_=!1),"*"===g)r=r.substr(1),y.push({type:"universal"});else if(g in u)r=r.substr(1),y.push({type:"attribute",name:u[g][0],action:u[g][1],value:w(),ignoreCase:!1});else if("["===g){if(r=r.substr(1),!(h=r.match(o)))throw new SyntaxError("Malformed attribute selector: "+r);r=r.substr(h[0].length),v=d(h[1]),i&&("lowerCaseAttributeNames"in i?!i.lowerCaseAttributeNames:i.xmlMode)||(v=v.toLowerCase()),y.push({type:"attribute",name:v,action:a[h[2]],value:d(h[4]||h[5]||""),ignoreCase:!!h[6]})}else if(":"===g){if(":"===r.charAt(1)){r=r.substr(2),y.push({type:"pseudo-element",name:w().toLowerCase()});continue}if(r=r.substr(1),v=w().toLowerCase(),h=null,"("===r.charAt(0))if(v in c){var x=(b=r.charAt(1))in f;if(r=r.substr(x+1),r=e(h=[],r,i),x){if(r.charAt(0)!==b)throw new SyntaxError("unmatched quotes in :"+v);r=r.substr(1)}if(")"!==r.charAt(0))throw new SyntaxError("missing closing parenthesis in :"+v+" "+r);r=r.substr(1)}else{for(var E=1,A=1;A>0&&E":"child","<":"parent","~":"sibling","+":"adjacent"},u={__proto__:null,"#":["id","equals"],".":["class","element"]},c={__proto__:null,has:!0,not:!0,matches:!0},l={__proto__:null,contains:!0,icontains:!0},f={__proto__:null,'"':!0,"'":!0};function h(e,t,r){var n="0x"+t-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}function d(e){return e.replace(i,h)}function p(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function m(e,t){if(e.length>0&&0===t.length)throw new SyntaxError("empty sub-selector");e.push(t)}},function(e,t,r){"use strict";var n=r(52),i=n.isTag,o=n.getParent,a=n.getChildren,s=n.getSiblings,u=n.getName;e.exports={__proto__:null,attribute:r(250).compile,pseudo:r(149).compile,tag:function(e,t){var r=t.name;return function(t){return u(t)===r&&e(t)}},descendant:function(e,t,r,n,i){return function(t){if(i&&e(t))return!0;for(var r=!1;!r&&(t=o(t));)r=e(t);return r}},parent:function(e,t,r){if(r&&r.strict)throw SyntaxError("Parent selector isn't part of CSS3");return function(e){return a(e).some(n)};function n(t){return i(t)&&e(t)}},child:function(e){return function(t){var r=o(t);return!!r&&e(r)}},sibling:function(e){return function(t){for(var r=s(t),n=0;n=0&&n>=1);else if(t===n.pseudo)if(e.data)if("has"===e.name||"contains"===e.name)t=0;else if("matches"===e.name||"not"===e.name){t=0;for(var r=0;rt&&(t=a)}e.data.length>1&&t>0&&(t-=1)}else t=1;else t=3;return t}},function(e,t,r){"use strict";(function(e,r){var n=200,i="__lodash_hash_undefined__",o=800,a=16,s=9007199254740991,u="[object Arguments]",c="[object AsyncFunction]",l="[object Function]",f="[object GeneratorFunction]",h="[object Null]",d="[object Object]",p="[object Proxy]",m="[object Undefined]",g=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[u]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[l]=b["[object Map]"]=b["[object Number]"]=b[d]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var y="object"==typeof e&&e&&e.Object===Object&&e,_="object"==typeof self&&self&&self.Object===Object&&self,w=y||_||Function("return this")(),k=t&&!t.nodeType&&t,S=k&&"object"==typeof r&&r&&!r.nodeType&&r,x=S&&S.exports===k,E=x&&y.process,A=function(){try{return E&&E.binding&&E.binding("util")}catch(e){}}(),O=A&&A.isTypedArray;function P(e,t){return"__proto__"==t?void 0:e[t]}var T,C,j,I=Array.prototype,M=Function.prototype,D=Object.prototype,B=w["__core-js_shared__"],N=M.toString,z=D.hasOwnProperty,R=(T=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",F=D.toString,U=N.call(Object),$=RegExp("^"+N.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=x?w.Buffer:void 0,L=w.Symbol,q=w.Uint8Array,H=Buffer?Buffer.allocUnsafe:void 0,V=(C=Object.getPrototypeOf,j=Object,function(e){return C(j(e))}),K=Object.create,W=D.propertyIsEnumerable,G=I.splice,Z=L?L.toStringTag:void 0,Y=function(){try{var e=we(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),X=Buffer?Buffer.isBuffer:void 0,J=Math.max,Q=Date.now,ee=we(w,"Map"),te=we(Object,"create"),re=function(){function e(){}return function(t){if(!Ie(t))return{};if(K)return K(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ie.prototype.set=function(e,t){var r=this.__data__,n=le(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(ee||ie),string:new ne}},oe.prototype.delete=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return _e(this,e).get(e)},oe.prototype.has=function(e){return _e(this,e).has(e)},oe.prototype.set=function(e,t){var r=_e(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ae.prototype.clear=function(){this.__data__=new ie,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ie){var i=r.__data__;if(!ee||i.length-1&&e%1==0&&e0){if(++t>=o)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Re);function Ee(e,t){return e===t||e!=e&&t!=t}var Ae=me(function(){return arguments}())?me:function(e){return Me(e)&&z.call(e,"callee")&&!W.call(e,"callee")},Oe=Array.isArray;function Pe(e){return null!=e&&je(e.length)&&!Ce(e)}var Te=X||function(){return!1};function Ce(e){if(!Ie(e))return!1;var t=pe(e);return t==l||t==f||t==c||t==p}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Me(e){return null!=e&&"object"==typeof e}var De=O?function(e){return function(t){return e(t)}}(O):function(e){return Me(e)&&je(e.length)&&!!b[pe(e)]};function Be(e){return Pe(e)?se(e,!0):ve(e)}var Ne,ze=(Ne=function(e,t,r){be(e,t,r)},ye(function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Ne.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ie(r))return!1;var n=typeof t;return!!("number"==n?Pe(r)&&ke(t,r.length):"string"==n&&t in r)&&Ee(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r-1},xe.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new Se,map:new(le||xe),string:new Se}},Ee.prototype.delete=function(e){return qe(this,e).delete(e)},Ee.prototype.get=function(e){return qe(this,e).get(e)},Ee.prototype.has=function(e){return qe(this,e).has(e)},Ee.prototype.set=function(e,t){return qe(this,e).set(e,t),this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,o),this},Ae.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.clear=function(){this.__data__=new xe},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof xe){var i=r.__data__;if(!le||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Ae:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function at(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==typeof e}function ut(e){return"symbol"==typeof e||st(e)&&re.call(e)==S}var ct=$?function(e){return function(t){return e(t)}}($):function(e){return st(e)&&ot(e.length)&&!!M[re.call(e)]};function lt(e){return nt(e)?Pe(e):Fe(e)}function ft(e){return e}r.exports=function(e,t,r){var n=rt(e)?L:Ue;return r&&function(e,t,r){if(!at(r))return!1;var n=typeof t;return!!("number"==n?nt(r)&&Ke(t,r.length):"string"==n&&t in r)&&et(r[t],e)}(e,t,r)&&(t=void 0),n(e,Re(t))}}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";var n=r(249),i=r(78),o=i.domEach,a=r(77).DomUtils.uniqueSort,s=i.isTag,u={bind:r(147),forEach:r(105),reject:r(575),filter:r(576),reduce:r(577)};t.find=function(e){var t,r=u.reduce(this,function(e,t){return e.concat(u.filter(t.children,s))},[]),i=this.constructor.contains;if(e&&"string"!=typeof e)return t=e.cheerio?e.get():[e],this._make(t.filter(function(e){var t,r;for(t=0,r=this.length;t0})},t.first=function(){return this.length>1?this._make(this[0]):this},t.last=function(){return this.length>1?this._make(this[this.length-1]):this},t.eq=function(e){return 0===(e=+e)&&this.length<=1?this:(e<0&&(e=this.length+e),this[e]?this._make(this[e]):this._make([]))},t.get=function(e){return null==e?Array.prototype.slice.call(this):this[e<0?this.length+e:e]},t.index=function(e){var t,r;return 0===arguments.length?(t=this.parent().children(),r=this[0]):"string"==typeof e?(t=this._make(e),r=this[0]):(t=this,r=e.cheerio?e[0]:e),t.get().indexOf(r)},t.slice=function(){return this._make([].slice.apply(this,arguments))},t.end=function(){return this.prevObject||this._make([])},t.add=function(e,t){for(var r=this._make(e,t),n=a(r.get().concat(this.get())),i=0;i-1},Ee.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(fe||Ee),string:new xe}},Ae.prototype.delete=function(e){return He(this,e).delete(e)},Ae.prototype.get=function(e){return He(this,e).get(e)},Ae.prototype.has=function(e){return He(this,e).has(e)},Ae.prototype.set=function(e,t){return He(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,o),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new Ee},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ee){var i=r.__data__;if(!fe||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Oe:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||ut(e)&&ne.call(e)==S}var lt=$?function(e){return function(t){return e(t)}}($):function(e){return ut(e)&&at(e.length)&&!!M[ne.call(e)]};function ft(e){return it(e)?Te(e):$e(e)}function ht(e){return e}r.exports=function(e,t){return(nt(e)?L:De)(e,function(e){if("function"!=typeof e)throw new TypeError(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}(Ue(t)))}}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";(function(e,r){var n=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,s=2,u=1/0,c=9007199254740991,l="[object Arguments]",f="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Function]",g="[object GeneratorFunction]",v="[object Map]",b="[object Number]",y="[object Object]",_="[object RegExp]",w="[object Set]",k="[object String]",S="[object Symbol]",x="[object ArrayBuffer]",E="[object DataView]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O=/^\w*$/,P=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,j=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[l]=M[f]=M[x]=M[h]=M[E]=M[d]=M[p]=M[m]=M[v]=M[b]=M[y]=M[_]=M[w]=M[k]=M["[object WeakMap]"]=!1;var D="object"==typeof e&&e&&e.Object===Object&&e,B="object"==typeof self&&self&&self.Object===Object&&self,N=D||B||Function("return this")(),z=t&&!t.nodeType&&t,R=z&&"object"==typeof r&&r&&!r.nodeType&&r,F=R&&R.exports===z&&D.process,U=function(){try{return F&&F.binding("util")}catch(e){}}(),$=U&&U.isTypedArray;function L(e,t){for(var r=-1,n=e?e.length:0,i=0,o=[];++r-1},Ee.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(fe||Ee),string:new xe}},Ae.prototype.delete=function(e){return He(this,e).delete(e)},Ae.prototype.get=function(e){return He(this,e).get(e)},Ae.prototype.has=function(e){return He(this,e).has(e)},Ae.prototype.set=function(e,t){return He(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,o),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new Ee},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ee){var i=r.__data__;if(!fe||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Oe:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||ut(e)&&ne.call(e)==S}var lt=$?function(e){return function(t){return e(t)}}($):function(e){return ut(e)&&at(e.length)&&!!M[ne.call(e)]};function ft(e){return it(e)?Te(e):$e(e)}function ht(e){return e}r.exports=function(e,t){return(nt(e)?L:De)(e,Ue(t))}}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";(function(e,r){var n=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,s=2,u=1/0,c=9007199254740991,l="[object Arguments]",f="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Function]",g="[object GeneratorFunction]",v="[object Map]",b="[object Number]",y="[object Object]",_="[object RegExp]",w="[object Set]",k="[object String]",S="[object Symbol]",x="[object ArrayBuffer]",E="[object DataView]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O=/^\w*$/,P=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,j=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[l]=M[f]=M[x]=M[h]=M[E]=M[d]=M[p]=M[m]=M[v]=M[b]=M[y]=M[_]=M[w]=M[k]=M["[object WeakMap]"]=!1;var D="object"==typeof e&&e&&e.Object===Object&&e,B="object"==typeof self&&self&&self.Object===Object&&self,N=D||B||Function("return this")(),z=t&&!t.nodeType&&t,R=z&&"object"==typeof r&&r&&!r.nodeType&&r,F=R&&R.exports===z&&D.process,U=function(){try{return F&&F.binding("util")}catch(e){}}(),$=U&&U.isTypedArray;function L(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i-1},Ae.prototype.set=function(e,t){var r=this.__data__,n=je(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ee,map:new(he||Ae),string:new Ee}},Oe.prototype.delete=function(e){return He(this,e).delete(e)},Oe.prototype.get=function(e){return He(this,e).get(e)},Oe.prototype.has=function(e){return He(this,e).has(e)},Oe.prototype.set=function(e,t){return He(this,e).set(e,t),this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,o),this},Pe.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Ae},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var i=r.__data__;if(!he||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Pe:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||ut(e)&&ie.call(e)==S}var lt=$?function(e){return function(t){return e(t)}}($):function(e){return ut(e)&&at(e.length)&&!!M[ie.call(e)]};function ft(e){return it(e)?Ce(e):$e(e)}function ht(e){return e}r.exports=function(e,t,r){var n=nt(e)?L:H,i=arguments.length<3;return n(e,Ue(t),r,i,De)}}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";var n=r(104),i=r(148),o=n.update,a=n.evaluate,s=r(78),u=s.domEach,c=s.cloneDom,l=s.isHtml,f=Array.prototype.slice,h={flatten:r(579),bind:r(147),forEach:r(105)};t._makeDomArray=function(e,t){return null==e?[]:e.cheerio?t?c(e.get(),e.options):e.get():Array.isArray(e)?h.flatten(e.map(function(e){return this._makeDomArray(e,t)},this)):"string"==typeof e?a(e,this.options):t?c([e]):[e]};var d=function(e){return function(){var t=f.call(arguments),r=this.length-1;return u(this,function(n,o){var a,s;s="function"==typeof t[0]?t[0].call(o,n,i.html(o.children)):t,a=this._makeDomArray(s,n-1&&(c.children.splice(s,1),i===c&&t>s&&l[0]--),u.root=null,u.parent=i,u.prev&&(u.prev.next=u.next||null),u.next&&(u.next.prev=u.prev||null),u.prev=n[o-1]||f,u.next=n[o+1]||h;return f&&(f.next=n[0]),h&&(h.prev=n[n.length-1]),e.splice.apply(e,l)};t.appendTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.append(this),this},t.prependTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.prepend(this),this},t.append=d(function(e,t,r){p(t,t.length,0,e,r)}),t.prepend=d(function(e,t,r){p(t,0,0,e,r)}),t.wrap=function(e){var t="function"==typeof e&&e,r=this.length-1;return h.forEach(this,h.bind(function(n,i){var a,s,u=n.parent||n.root,c=u.children;u&&(t&&(e=t.call(n,i)),"string"!=typeof e||l(e)||(e=this.parents().last().find(e).clone()),a=this._makeDomArray(e,i-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?h.call(e):"";return t==i||t==o}(e)}(e)}(e)&&f.call(e,"callee")&&(!p.call(e,"callee")||h.call(e)==n)}(e)||!!(m&&e&&e[m])}var v=Array.isArray;e.exports=function(e){return e&&e.length?function e(t,r,n,i,o){var a=-1,s=t.length;for(n||(n=g),o||(o=[]);++a0&&n(u)?r>1?e(u,r-1,n,i,o):c(o,u):i||(o[o.length]=u)}return o}(e,1):[]}}).call(this,r(9))},function(e,t,r){"use strict";var n=r(78).domEach,i={pick:r(581)},o=Object.prototype.toString;function a(e,t){var r=function(e){return(e=(e||"").trim())?e.split(";").reduce(function(e,t){var r=t.indexOf(":");return r<1||r===t.length-1?e:(e[t.slice(0,r).trim()]=t.slice(r+1).trim(),e)},{}):{}}(e.attribs.style);return"string"==typeof t?r[t]:Array.isArray(t)?i.pick(r,t):r}t.css=function(e,t){return 2===arguments.length||"[object Object]"===o.call(e)?n(this,function(r,n){!function e(t,r,n,i){if("string"==typeof r){var o=a(t);"function"==typeof n&&(n=n.call(t,i,o[r])),""===n?delete o[r]:null!=n&&(o[r]=n),t.attribs.style=(s=o,Object.keys(s||{}).reduce(function(e,t){return e+=(e?" ":"")+t+": "+s[t]+";"},""))}else"object"==typeof r&&Object.keys(r).forEach(function(n){e(t,n,r[n])});var s}(n,e,t,r)}):a(this[0],e)}},function(e,t,r){"use strict";(function(t){var r=1/0,n=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",u="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")();function f(e,t){for(var r=-1,n=t.length,i=e.length;++r-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?p.call(e):"";return t==o||t==a}(e)}(e)}(e)&&d.call(e,"callee")&&(!g.call(e,"callee")||p.call(e)==i)}(e)||!!(v&&e&&e[v])}function _(e){if("string"==typeof e||function(e){return"symbol"==typeof e||k(e)&&p.call(e)==s}(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}var w=Array.isArray;function k(e){return!!e&&"object"==typeof e}var S,x,E=(S=function(e,t){return null==e?{}:function(e,t){return function(e,t,r){for(var n=-1,i=t.length,o={};++n0&&n(u)?r>1?e(u,r-1,n,i,o):f(o,u):i||(o[o.length]=u)}return o}(t,1),_))},x=b(void 0===x?S.length-1:x,0),function(){for(var e=arguments,t=-1,r=b(e.length-x,0),n=Array(r);++t-1},Ee.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(fe||Ee),string:new xe}},Ae.prototype.delete=function(e){return He(this,e).delete(e)},Ae.prototype.get=function(e){return He(this,e).get(e)},Ae.prototype.has=function(e){return He(this,e).has(e)},Ae.prototype.set=function(e,t){return He(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,o),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new Ee},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ee){var i=r.__data__;if(!fe||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Oe:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||ut(e)&&ne.call(e)==S}var lt=$?function(e){return function(t){return e(t)}}($):function(e){return ut(e)&&at(e.length)&&!!M[ne.call(e)]};function ft(e){return it(e)?Te(e):Ue(e)}function ht(e){return e}r.exports=function(e,t){return(nt(e)?L:$e)(e,Fe(t))}}).call(this,r(9),r(36)(e))},function(e){e.exports={_from:"cheerio@^0.22.0",_id:"cheerio@0.22.0",_inBundle:!1,_integrity:"sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=",_location:"/cheerio",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"cheerio@^0.22.0",name:"cheerio",escapedName:"cheerio",rawSpec:"^0.22.0",saveSpec:null,fetchSpec:"^0.22.0"},_requiredBy:["/blockstack"],_resolved:"https://registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz",_shasum:"a9baa860a3f9b595a6b81b1a86873121ed3a269e",_spec:"cheerio@^0.22.0",_where:"C:\\Users\\mtc12\\Documents\\Work\\Blockstack\\mercurius\\node_modules\\blockstack",author:{name:"Matt Mueller",email:"mattmuelle@gmail.com",url:"mat.io"},bugs:{url:"https://github.com/cheeriojs/cheerio/issues"},bundleDependencies:!1,dependencies:{"css-select":"~1.2.0","dom-serializer":"~0.1.0",entities:"~1.1.1",htmlparser2:"^3.9.1","lodash.assignin":"^4.0.9","lodash.bind":"^4.1.4","lodash.defaults":"^4.0.1","lodash.filter":"^4.4.0","lodash.flatten":"^4.2.0","lodash.foreach":"^4.3.0","lodash.map":"^4.4.0","lodash.merge":"^4.4.0","lodash.pick":"^4.2.1","lodash.reduce":"^4.4.0","lodash.reject":"^4.4.0","lodash.some":"^4.4.0"},deprecated:!1,description:"Tiny, fast, and elegant implementation of core jQuery designed specifically for the server",devDependencies:{benchmark:"^2.1.0",coveralls:"^2.11.9","expect.js":"~0.3.1",istanbul:"^0.4.3",jquery:"^3.0.0",jsdom:"^9.2.1",jshint:"^2.9.2",mocha:"^2.5.3",xyz:"~0.5.0"},engines:{node:">= 0.6"},files:["index.js","lib"],homepage:"https://github.com/cheeriojs/cheerio#readme",keywords:["htmlparser","jquery","selector","scraper","parser","html"],license:"MIT",main:"./index.js",name:"cheerio",repository:{type:"git",url:"git://github.com/cheeriojs/cheerio.git"},scripts:{test:"make test"},version:"0.22.0"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(60);t.Github=class extends n.Service{static getBaseUrls(){return["https://gist.github.com/","http://gist.github.com","gist.github.com"]}static normalizeUrl(e){return""}static getProofUrl(e){const t=this.getBaseUrls();let r=e.proof_url.toLowerCase();r=super.prefixScheme(r);for(let n=0;n1?t.split(":")[0].match(/(@\w+)/)[0].substr(1):""}static getProofStatement(e){const t=i.default.load(e)('meta[property="og:description"]').attr("content");return void 0!==t&&t.split(":").length>1?t.split(":")[1].trim().replace("“","").replace("”",""):""}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(76)),o=r(60);t.HackerNews=class extends o.Service{static getBaseUrls(){return["https://news.ycombinator.com/user?id=","http://news.ycombinator.com/user?id=","news.ycombinator.com/user?id="]}static getProofUrl(e){const t=this.getBaseUrls(),r=super.prefixScheme(e.proof_url);for(let n=0;n0&&r.each((e,r)=>{const i=t(r).find("tr");i.length>0&&i.each((e,r)=>{"about:"===t(r).find("td").first().text().trim()&&(n=t(r).find("td").last().text().trim())})}),n}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(76)),o=r(60);t.LinkedIn=class extends o.Service{static getBaseUrls(){return["https://www.linkedin.com/feed/update/","http://www.linkedin.com/feed/update/","www.linkedin.com/feed/update/"]}static getProofUrl(e){const t=this.getBaseUrls();let r=e.proof_url.toLowerCase();r=super.prefixScheme(r);for(let e=0;e main header a");return void 0!==t?void 0===t.attr("href")?"":t.attr("href").split("?").shift().split("/").pop():""}static getProofStatement(e){const t=i.default.load(e)('head > meta[property="og:title"]');let r="";return void 0!==t&&(r=t.attr("content")),r}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getName=function(e){if(!e)return null;let t=null;return e.name?t=e.name:(e.givenName||e.familyName)&&(t="",e.givenName&&(t=e.givenName),e.familyName&&(t+=` ${e.familyName}`)),t},t.getGivenName=function(e){if(!e)return null;let t=null;e.givenName?t=e.givenName:e.name&&(t=e.name.split(" ").slice(0,-1).join(" "));return t},t.getFamilyName=function(e){if(!e)return null;let t=null;e.familyName?t=e.familyName:e.name&&(t=e.name.split(" ").pop());return t},t.getDescription=function(e){if(!e)return null;let t=null;return e.description&&(t=e.description),t},t.getAvatarUrl=function(e){if(!e)return null;let t=null;return e.image&&e.image.map(e=>"avatar"===e.name?t=e.contentUrl:null),t},t.getVerifiedAccounts=function(e,t){if(!e)return null;const r=[];return e.hasOwnProperty("account")&&t&&e.account.map(e=>{let n=!1,i=null;return t.map(t=>(t.hasOwnProperty("proof_url")&&(t.proofUrl=t.proof_url),!(!t.valid||t.service!==e.service||t.identifier!==e.identifier||!t.proofUrl||(n=!0,i=t.proofUrl,0)))),n?(e.proofUrl=i,r.push(e),e):null}),r},t.getOrganizations=function(e){return e?e.hasOwnProperty("worksFor")?e.worksFor:[]:null},t.getConnections=function(e){if(!e)return null;let t=[];return e.hasOwnProperty("knows")&&(t=e.knows),t},t.getAddress=function(e){if(!e)return null;let t=null;if(e.hasOwnProperty("address")){const r=[];e.address.hasOwnProperty("streetAddress")&&r.push(e.address.streetAddress),e.address.hasOwnProperty("addressLocality")&&r.push(e.address.addressLocality),e.address.hasOwnProperty("postalCode")&&r.push(e.address.postalCode),e.address.hasOwnProperty("addressCountry")&&r.push(e.address.addressCountry),r.length&&(t=r.join(", "))}return t},t.getBirthDate=function(e){if(!e)return null;const t=["January","February","March","April","May","June","July","August","September","October","November","December"];let r=null;if(e.hasOwnProperty("birthDate")){const n=new Date(e.birthDate);r=`${t[n.getMonth()]} ${n.getDate()}, ${n.getFullYear()}`}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42);function i(e,t,r,i=null,o=null){null===o&&(o=".default");const a={version:1,blockchain_id:i,app_private_key:r,app_domain:e,methods:t,app_public_keys:[{public_key:n.SECP256K1Client.derivePublicKey(r),device_id:o}],device_id:o};return new n.TokenSigner("ES256k",r).sign(a)}function o(e,t,r,n){return Promise.resolve().then(()=>{if(!n)throw new Error("Missing API password")}).then(()=>{return fetch(`http://${e}:${t}/v1/auth?authRequest=${r}`,{headers:{Authorization:`bearer ${n}`}})}).then(e=>{if(!e.ok)throw new Error("HTTP status not OK");return e.text()}).then(e=>{const t=JSON.parse(e).token;if(!t)throw new Error("Failed to get Core session token");return t}).catch(e=>{throw console.error(e),new Error("Invalid Core response: not JSON")})}r(126),t.makeCoreSessionRequest=i,t.sendCoreSessionRequest=o,t.getCoreSession=function(e,t,r,a,s=null,u=null,c="0"){if(!u)return Promise.reject("No authRequest provided");let l=null,f=null;try{if(!(f=n.decodeToken(u)))return Promise.reject("Invalid authRequest in URL query string");if(!f.payload)return Promise.reject("Invalid authRequest in URL query string");l=f.payload}catch(e){return console.error(e.stack),Promise.reject("Failed to parse authRequest in URL")}const h=l.domain_name;return h?o(e,t,i(h,l.scopes,a,s,c),r):Promise.reject("No domain_name in authRequest")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(103);t.Profile=n.Profile;var i=r(593);t.Person=i.Person,t.Organization=i.Organization,t.CreativeWork=i.CreativeWork,t.resolveZoneFileToPerson=i.resolveZoneFileToPerson;var o=r(44);t.signProfileToken=o.signProfileToken,t.wrapProfileToken=o.wrapProfileToken,t.verifyProfileToken=o.verifyProfileToken,t.extractProfile=o.extractProfile;var a=r(239);t.validateProofs=a.validateProofs;var s=r(252);t.containsValidProofStatement=s.containsValidProofStatement,t.containsValidAddressProofStatement=s.containsValidAddressProofStatement;var u=r(101);t.makeProfileZoneFile=u.makeProfileZoneFile,t.getTokenFileUrl=u.getTokenFileUrl,t.resolveZoneFileToProfile=u.resolveZoneFileToProfile;var c=r(235);t.lookupProfile=c.lookupProfile},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(142);t.Person=n.Person;var i=r(594);t.Organization=i.Organization;var o=r(595);t.CreativeWork=o.CreativeWork;var a=r(253);t.getPersonFromLegacyFormat=a.getPersonFromLegacyFormat;var s=r(596);t.resolveZoneFileToPerson=s.resolveZoneFileToPerson},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(102)),o=r(44),a=r(103),s={type:"object",properties:{"@context":{type:"string",optional:!0},"@type":{type:"string"},"@id":{type:"string",optional:!0}}};class u extends a.Profile{constructor(e={}){super(e),this._profile=Object.assign({},{"@type":"Organization"},this._profile)}static validateSchema(e,t=!1){return s.strict=t,i.default.validate(s,e)}static fromToken(e,t=null){const r=o.extractProfile(e,t);return new u(r)}}t.Organization=u},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(102)),o=r(44),a=r(103),s={type:"object",properties:{"@context":{type:"string",optional:!0},"@type":{type:"string"},"@id":{type:"string",optional:!0}}};class u extends a.Profile{constructor(e={}){super(e),this._profile=Object.assign({},{"@type":"CreativeWork"},this._profile)}static validateSchema(e,t=!1){return s.strict=t,i.default.validate(s,e)}static fromToken(e,t=null){const r=o.extractProfile(e,t);return new u(r)}}t.CreativeWork=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(236),i=r(142),o=r(101),a=r(44);t.resolveZoneFileToPerson=function(e,t,r){let s=null;try{if(!(s=n.parseZoneFile(e)).hasOwnProperty("$origin"))throw s=null,new Error("zone file is missing an origin")}catch(e){console.error(e)}let u=null;if(s&&Object.keys(s).length>0)(u=o.getTokenFileUrl(s))?fetch(u).then(e=>e.text()).then(e=>JSON.parse(e)).then(e=>{const n=e[0].token,i=a.extractProfile(n,t);r(i)}).catch(e=>{console.warn(e)}):(console.warn("Token file url not found"),r({}));else{let t=null;try{t=JSON.parse(e),t=i.Person.fromLegacyFormat(t).profile()}catch(e){console.warn(e)}r(t)}}},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0});var i=r(254);t.makePreorderSkeleton=i.makePreorderSkeleton;var o=r(598);t.transactions=o.transactions,n(r(150)),n(r(255));var a=r(599);t.safety=a.safety},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(38)),i=r(150),o=r(254),a=r(39),s=r(31),u=r(255),c="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",l="ffffffffffffffffffffffffffffffffffffffff";function f(e,t,r,n=!0){if(e.length<=0)throw new Error("Owner has no UTXOs for UPDATE.");e.sort((e,t)=>e.value-t.value);const i=e[0],o=r.addInput(i.tx_hash,i.tx_output_n);return n&&r.addOutput(t,i.value),{index:o,value:i.value}}function h(e,t,r,n,o,a=null){null===a&&(a=e.addOutput(t,i.DUST_MINIMUM));const s=i.estimateTXBytes(e,0,0)*n,u=i.sumOutputValues(e),c=i.addUTXOsToFund(e,r,s+u-o,n);return i.getTransactionInsideBuilder(e).outs[a].value+=c,e}function d(e,t=!1){return t?e.buildIncomplete().toHex():e.build().toHex()}function p(e){return"string"==typeof e?u.PubkeyHashSigner.fromHexString(e):e}t.transactions={makeRenewal:function(e,t,r,s,u=null,c=null,l=!1){const m=a.config.network;!c&&u&&(c=i.hash160(Buffer.from(u)).toString("hex"));const g=e.split(".").pop(),v=p(s),b=p(r);return Promise.all([b.getAddress(),v.getAddress()]).then(([r,a])=>{const s=Promise.all([m.getNamePrice(e),m.getNamespaceBurnAddress(g)]).then(([n,i])=>o.makeRenewalSkeleton(e,t,r,i,n,c)).then(e=>{const t=n.default.TransactionBuilder.fromTransaction(e,m.layer1);return t.setVersion(1),t});return Promise.all([s,m.getUTXOs(a),m.getUTXOs(r),m.getFeeRate()]).then(([e,t,o,s])=>{const u=f(o,r,e,!1),c=i.getTransactionInsideBuilder(e).outs[2],l=n.default.address.fromOutputScript(c.script,m.layer1);if(l!==r)return Promise.reject(new Error(`Original owner ${r} should have an output at `+`index 2 in transaction was ${l}`));c.value=u.value;const d=h(e,a,t,s,u.value);return i.signInputs(d,v,[{index:u.index,signer:b}])})}).then(e=>d(e,l))},makeUpdate:function(e,t,r,s,u="",c=!1){const l=a.config.network;if(!u&&!s)return Promise.reject(new Error("Need zonefile or valueHash arguments"));if(0===u.length){if(!s)return Promise.reject(new Error("Need zonefile or valueHash arguments"));u=i.hash160(Buffer.from(s)).toString("hex")}else if(40!==u.length)return Promise.reject(new Error(`Invalid valueHash ${u}`));const m=p(r),g=p(t);return Promise.all([g.getAddress(),m.getAddress()]).then(([t,r])=>{const a=l.getConsensusHash().then(t=>o.makeUpdateSkeleton(e,t,u)).then(e=>{const t=n.default.TransactionBuilder.fromTransaction(e,l.layer1);return t.setVersion(1),t});return Promise.all([a,l.getUTXOs(r),l.getUTXOs(t),l.getFeeRate()]).then(([e,n,o,a])=>{const s=f(o,t,e),u=h(e,r,n,a,s.value);return i.signInputs(u,m,[{index:s.index,signer:g}])})}).then(e=>d(e,c))},makePreorder:function(e,t,r,s=!1){const u=a.config.network,c=e.split(".").pop(),l=p(r);return l.getAddress().then(r=>{const a=Promise.all([u.getConsensusHash(),u.getNamePrice(e),u.getNamespaceBurnAddress(c)]).then(([n,i,a])=>o.makePreorderSkeleton(e,n,r,a,i,t));return Promise.all([u.getUTXOs(r),u.getFeeRate(),a]).then(([e,t,o])=>{const a=n.default.TransactionBuilder.fromTransaction(o,u.layer1);a.setVersion(1);const s=h(a,r,e,t,0,1);return i.signInputs(s,l)}).then(e=>d(e,s))})},makeRegister:function(e,t,r,s=null,u=null,c=!1){const l=a.config.network;if(!u&&s)u=i.hash160(Buffer.from(s)).toString("hex");else if(u&&40!==u.length)return Promise.reject(new Error(`Invalid zonefile hash ${u}`));const f=o.makeRegisterSkeleton(e,t,u),m=n.default.TransactionBuilder.fromTransaction(f,l.layer1);m.setVersion(1);const g=p(r);return g.getAddress().then(e=>Promise.all([l.getUTXOs(e),l.getFeeRate()]).then(([t,r])=>{const n=h(m,e,t,r,0);return i.signInputs(n,g)})).then(e=>d(e,c))},makeTransfer:function(e,t,r,s,u=!1,c=!1){const l=a.config.network,m=p(s),g=p(r);return Promise.all([g.getAddress(),m.getAddress()]).then(([r,a])=>{const s=l.getConsensusHash().then(r=>o.makeTransferSkeleton(e,r,t,u)).then(e=>{const t=n.default.TransactionBuilder.fromTransaction(e,l.layer1);return t.setVersion(1),t});return Promise.all([s,l.getUTXOs(a),l.getUTXOs(r),l.getFeeRate()]).then(([e,t,n,o])=>{const s=f(n,r,e),u=h(e,a,t,o,s.value);return i.signInputs(u,m,[{index:s.index,signer:g}])})}).then(e=>d(e,c))},makeRevoke:function(e,t,r,s=!1){const u=a.config.network,c=p(r),l=p(t);return Promise.all([l.getAddress(),c.getAddress()]).then(([t,r])=>{const a=o.makeRevokeSkeleton(e),s=n.default.TransactionBuilder.fromTransaction(a,u.layer1);return s.setVersion(1),Promise.all([s,u.getUTXOs(r),u.getUTXOs(t),u.getFeeRate()]).then(([e,n,o,a])=>{const s=f(o,t,e),u=h(e,r,n,a,s.value);return i.signInputs(u,c,[{index:s.index,signer:l}])})}).then(e=>d(e,s))},makeNamespacePreorder:function(e,t,r,s=!1){const u=a.config.network,c=p(r);return c.getAddress().then(r=>{const a=Promise.all([u.getConsensusHash(),u.getNamespacePrice(e)]).then(([n,i])=>o.makeNamespacePreorderSkeleton(e,n,r,t,i));return Promise.all([u.getUTXOs(r),u.getFeeRate(),a]).then(([e,t,o])=>{const a=n.default.TransactionBuilder.fromTransaction(o,u.layer1);a.setVersion(1);const s=h(a,r,e,t,0,1);return i.signInputs(s,c)}).then(e=>d(e,s))})},makeNamespaceReveal:function(e,t,r,s=!1){const u=a.config.network;if(!e.check())return Promise.reject(new Error("Invalid namespace"));const c=o.makeNamespaceRevealSkeleton(e,t),l=p(r);return l.getAddress().then(e=>Promise.all([u.getUTXOs(e),u.getFeeRate()]).then(([t,r])=>{const o=n.default.TransactionBuilder.fromTransaction(c,u.layer1);o.setVersion(1);const a=h(o,e,t,r,0);return i.signInputs(a,l)})).then(e=>d(e,s))},makeNamespaceReady:function(e,t,r=!1){const s=a.config.network,u=o.makeNamespaceReadySkeleton(e),c=p(t);return c.getAddress().then(e=>Promise.all([s.getUTXOs(e),s.getFeeRate()]).then(([t,r])=>{const o=n.default.TransactionBuilder.fromTransaction(u,s.layer1);o.setVersion(1);const a=h(o,e,t,r,0);return i.signInputs(a,c)})).then(e=>d(e,r))},makeBitcoinSpend:function(e,t,r,o=!1){if(r<=0)return Promise.reject(new s.InvalidParameterError("amount","amount must be greater than zero"));const u=a.config.network,c=p(t);return c.getAddress().then(t=>Promise.all([u.getUTXOs(t),u.getFeeRate()]).then(([o,a])=>{const l=new n.default.TransactionBuilder(u.layer1);l.setVersion(1);const f=l.addOutput(e,0);let h;try{h=i.addUTXOsToFund(l,o,r,a,!1)}catch(e){if("NotEnoughFundsError"!==e.name)throw e;r-=e.leftToFund,h=0}let d=a*i.estimateTXBytes(l,0,0);const p=a*i.estimateTXBytes(l,0,1)-d;h>p&&(d+=p,l.addOutput(t,h));const m=r-d;if(md(e,o))},makeNameImport:function(e,t,r,s,u=!1){const c=a.config.network,l=o.makeNameImportSkeleton(e,t,r),f=p(s);return f.getAddress().then(e=>Promise.all([c.getUTXOs(e),c.getFeeRate()]).then(([t,r])=>{const o=h(n.default.TransactionBuilder.fromTransaction(l,c.layer1),e,t,r,0);return i.signInputs(o,f)})).then(e=>d(e,u))},makeAnnounce:function(e,t,r=!1){const s=a.config.network,u=o.makeAnnounceSkeleton(e),c=p(t);return c.getAddress().then(e=>Promise.all([s.getUTXOs(e),s.getFeeRate()]).then(([t,r])=>{const o=h(n.default.TransactionBuilder.fromTransaction(u,s.layer1),e,t,r,0);return i.signInputs(o,c)})).then(e=>d(e,r))},makeTokenTransfer:function(e,t,r,s,u,c,l=!1){const m=a.config.network,g=!!c,v=p(u),b=c?p(c):v,y=m.getConsensusHash().then(n=>o.makeTokenTransferSkeleton(e,n,t,r,s));return Promise.all([v.getAddress(),b.getAddress()]).then(([e,t])=>{const r=g?m.getUTXOs(t):Promise.resolve([]);return Promise.all([m.getUTXOs(e),r,m.getFeeRate(),y]).then(([r,o,a,s])=>{const u=n.default.TransactionBuilder.fromTransaction(s,m.layer1);if(g){const n=f(r,e,u),s=h(u,t,o,a,n.value);return i.signInputs(s,b,[{index:n.index,signer:v}])}{const t=h(u,e,r,a,0);return i.signInputs(t,v)}})}).then(e=>d(e,l))},BlockstackNamespace:o.BlockstackNamespace,estimatePreorder:function(e,t,r,n=1){const s=a.config.network,u=s.getNamePrice(e).then(n=>o.makePreorderSkeleton(e,c,r,s.getDefaultBurnAddress(),n,t));return Promise.all([s.getFeeRate(),u]).then(([e,t])=>{const r=i.sumOutputValues(t);return e*i.estimateTXBytes(t,n,0)+r})},estimateRegister:function(e,t,r,n=!1,s=1){const u=a.config.network;let c;n&&(c=l);const f=o.makeRegisterSkeleton(e,t,c);return u.getFeeRate().then(e=>{const t=i.sumOutputValues(f);return e*i.estimateTXBytes(f,s,1)+t})},estimateTransfer:function(e,t,r,n,s=1){const u=a.config.network,l=o.makeTransferSkeleton(e,c,t);return u.getFeeRate().then(e=>{const t=i.sumOutputValues(l);return e*i.estimateTXBytes(l,1+s,2)+t})},estimateUpdate:function(e,t,r,n=1){const s=a.config.network,u=o.makeUpdateSkeleton(e,c,l);return s.getFeeRate().then(e=>{const t=i.sumOutputValues(u);return e*i.estimateTXBytes(u,1+n,2)+t})},estimateRenewal:function(e,t,r,n,s=!1,u=1){const c=a.config.network;let f;s&&(f=l);const h=c.getNamePrice(e).then(n=>o.makeRenewalSkeleton(e,t,r,c.getDefaultBurnAddress(),n,f));return Promise.all([c.getFeeRate(),h]).then(([e,t])=>{const r=i.sumOutputValues(t);return e*i.estimateTXBytes(t,1+u,1)+r-5500})},estimateRevoke:function(e,t,r,n=1){const s=a.config.network,u=o.makeRevokeSkeleton(e);return Promise.all([s.getFeeRate()]).then(([e])=>{const t=i.sumOutputValues(u);return e*i.estimateTXBytes(u,1+n,2)+t})},estimateNamespacePreorder:function(e,t,r,n=1){const s=a.config.network,u=s.getNamespacePrice(e).then(n=>o.makeNamespacePreorderSkeleton(e,c,r,t,n));return Promise.all([s.getFeeRate(),u]).then(([e,t])=>{const r=i.sumOutputValues(t);return e*i.estimateTXBytes(t,n,0)+r})},estimateNamespaceReveal:function(e,t,r,n=1){const s=a.config.network,u=o.makeNamespaceRevealSkeleton(e,t);return s.getFeeRate().then(e=>{const t=i.sumOutputValues(u);return e*i.estimateTXBytes(u,n,1)+t})},estimateNamespaceReady:function(e,t=1){const r=a.config.network,n=o.makeNamespaceReadySkeleton(e);return r.getFeeRate().then(e=>{const r=i.sumOutputValues(n);return e*i.estimateTXBytes(n,t,1)+r})},estimateNameImport:function(e,t,r,n=1){const s=a.config.network,u=o.makeNameImportSkeleton(e,t,r);return s.getFeeRate().then(e=>{const t=i.sumOutputValues(u);return e*i.estimateTXBytes(u,n,1)+t})},estimateAnnounce:function(e,t=1){const r=a.config.network,n=o.makeAnnounceSkeleton(e);return r.getFeeRate().then(e=>{const r=i.sumOutputValues(n);return e*i.estimateTXBytes(n,t,1)+r})},estimateTokenTransfer:function(e,t,r,n,s=1,u=1){const l=a.config.network,f=o.makeTokenTransferSkeleton(e,c,t,r,n);return l.getFeeRate().then(e=>{const t=i.sumOutputValues(f);return e*i.estimateTXBytes(f,s,u)+t})}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(39);function i(e=""){const t=/^[a-z0-9\-_+]+$/;if(!e||e.length>37)return Promise.resolve(!1);const r=e.split(".");return 2!==r.length?Promise.resolve(!1):Promise.resolve(r.reduce((e,r)=>!!e&&t.test(r),!0))}t.safety={addressCanReceiveName:function(e){return n.config.network.getNamesOwned(e).then(e=>Promise.all(e.map(e=>i(e))).then(e=>e.filter(e=>e).length<25))},isInGracePeriod:function(e){const t=n.config.network;return Promise.all([t.getNameInfo(e),t.getBlockHeight(),t.getGracePeriod(e)]).then(([e,t,r])=>{const n=e.expire_block;return t>=n&&t{if("Name not found"===e.message)return!1;throw e})},ownsName:function(e,t){return n.config.network.getNameInfo(e).then(e=>e.address===t).catch(e=>{if("Name not found"===e.message)return!1;throw e})},isNameAvailable:function(e){return n.config.network.getNameInfo(e).then(()=>!1).catch(e=>{if("Name not found"===e.message)return!0;throw e})},isNameValid:i,isNamespaceValid:function(e){return Promise.resolve(null!==e.match(/^[a-z0-9\-_]{1,19}$/))},isNamespaceAvailable:function(e){return n.config.network.getNamespaceInfo(e).then(()=>!1).catch(e=>{if("Namespace not found"===e.message)return!0;throw e})},revealedNamespace:function(e,t){return n.config.network.getNamespaceInfo(e).then(e=>e.recipient_address===t).catch(e=>{if("Namespace not found"===e.message)return!1;throw e})},namespaceIsReady:function(e){return n.config.network.getNamespaceInfo(e).then(e=>e.ready).catch(e=>{if("Namespace not found"===e.message)return!1;throw e})},namespaceIsRevealed:function(e){return n.config.network.getNamespaceInfo(e).then(e=>!e.ready).catch(e=>{if("Namespace not found"===e.message)return!1;throw e})},isAccountSpendable:function(e,t,r){return n.config.network.getAccountStatus(e,t).then(e=>e.transfer_send_block_id>=r)}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(r(14)),s=i(r(38)),u=o(r(256)),c=o(r(227)),l=r(26),f=r(257),h=0,d=888,p=0,m=44,g=0,v=0,b="EXTERNAL_ADDRESS",y="CHANGE_ADDRESS";function _(e){return l.ecPairToHexString(s.ECPair.fromPrivateKey(e.privateKey))}function w(e){return e.publicKey.toString("hex")}class k{constructor(e){this.rootNode=e}toBase58(){return this.rootNode.toBase58()}static fromSeedBuffer(e){return new k(c.default.fromSeed(e))}static fromBase58(e){return new k(c.default.fromBase58(e))}static fromEncryptedMnemonic(e,t){return f.decryptMnemonic(e,t).then(e=>{const t=u.default.mnemonicToSeed(e);return new k(c.default.fromSeed(t))}).catch(e=>{throw e.message&&e.message.startsWith("bad header;")?new Error("Incorrect password"):e})}static generateMnemonic(){return u.default.generateMnemonic(128,a.randomBytes)}static encryptMnemonic(e,t){return n(this,void 0,void 0,function*(){return(yield f.encryptMnemonic(e,t)).toString("hex")})}getIdentityPrivateKeychain(){return this.rootNode.deriveHardened(d).deriveHardened(p)}getBitcoinPrivateKeychain(){return this.rootNode.deriveHardened(m).deriveHardened(g).deriveHardened(v)}getBitcoinNode(e,t=b){return k.getNodeFromBitcoinKeychain(this.getBitcoinPrivateKeychain().toBase58(),e,t)}getIdentityAddressNode(e){return this.getIdentityPrivateKeychain().deriveHardened(e)}static getAppsNode(e){return e.deriveHardened(h)}getIdentitySalt(){const e=w(this.getIdentityPrivateKeychain());return a.default.createHash("sha256").update(e).digest("hex")}getBitcoinAddress(e){return k.getAddressFromBIP32Node(this.getBitcoinNode(e))}getBitcoinPrivateKey(e){return _(this.getBitcoinNode(e))}getBitcoinPublicKeychain(){return this.getBitcoinPrivateKeychain().neutered()}getIdentityPublicKeychain(){return this.getIdentityPrivateKeychain().neutered()}static getNodeFromBitcoinKeychain(e,t,r=b){let n;if(r===b)n=0;else{if(r!==y)throw new Error("Invalid chain type");n=1}return c.default.fromBase58(e).derive(n).derive(t)}static getAddressFromBitcoinKeychain(e,t,r=b){return k.getAddressFromBIP32Node(k.getNodeFromBitcoinKeychain(e,t,r))}static getLegacyAppPrivateKey(e,t,r){const n=function(e){let t=0;if(0===e.length)return t;for(let r=0;r{if(e.length>6)throw new Error("Invalid hex string length");o=o.deriveHardened(parseInt(e,16))}),_(o).slice(0,64)}getIdentityKeyPair(e,t=!1){const r=this.getIdentityAddressNode(e),n=k.getAddressFromBIP32Node(r);let i=_(r);return t&&66===i.length&&(i=i.slice(0,64)),{key:i,keyID:w(r),address:n,appsNodeKey:k.getAppsNode(r).toBase58(),salt:this.getIdentitySalt()}}}t.BlockstackWallet=k},function(e,t,r){"use strict";!function(t){for(var r=[null,0,{}],n=10,i=44032,o=4352,a=4449,s=4519,u=19,c=21,l=28,f=c*l,h=u*f,d=function(e,t){this.codepoint=e,this.feature=t},p={},m=[],g=0;g<=255;++g)m[g]=0;var v=[function(e,t,n){return t<60||13311>8&255]>n&&(p[t]=i),i},function(e,t,r){return r?e(t,r):new d(t,null)},function(e,t,r){var n;if(t=55296&&e<=56319},d.isLowSurrogate=function(e){return e>=56320&&e<=57343},d.prototype.prepFeature=function(){this.feature||(this.feature=d.fromCharCode(this.codepoint,!0).feature)},d.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},d.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},d.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},d.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},d.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},d.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?d.fromCharCode(t):null};var b=function(e){this.str=e,this.cursor=0};b.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var w=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};w.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass=i.window))return a();!function(e){r=new n.Deferrals(e,{parent:t,filename:"/Users/max/src/iced/iced-runtime/src/library.iced",funcname:"Pipeliner.waitInQueue"}),i.cb=r.defer({lineno:100}),r._fulfill()}(s)})(e)})(function(i){return function(){i.n_out++,function(e){if(!i.delay)return e();!function(e){r=new n.Deferrals(e,{parent:t,filename:"/Users/max/src/iced/iced-runtime/src/library.iced",funcname:"Pipeliner.waitInQueue"}),setTimeout(r.defer({lineno:108}),i.delay),r._fulfill()}(e)}(function(){return e()})}}(this))},t.prototype.__defer=function(e,t){var r,i,o,a,u;o=n.findDeferral(arguments),function(r){a=new n.Deferrals(r,{parent:o,filename:"/Users/max/src/iced/iced-runtime/src/library.iced",funcname:"Pipeliner.__defer"}),i=a.defer({lineno:122}),e[0]=function(){var e,r;return e=1<=arguments.length?s.call(arguments,0):[],null!=(r=t.assign_fn)&&r.apply(null,e),i()},a._fulfill()}((u=this,function(){if(u.n_out--,u.cb)return r=u.cb,u.cb=null,r()}))},t.prototype._defer=function(e){var t;return t=[],this.__defer(t,e),t[0]},t.prototype.flush=function(e){var t,r,i,o,a;r=e,t=n.findDeferral(arguments),o=this,(i=function(e){var r,s;if(r=e,s=function(){return n.trampoline(function(){return i(e)})},!o.n_out)return r();!function(e){a=new n.Deferrals(e,{parent:t,filename:"/Users/max/src/iced/iced-runtime/src/library.iced",funcname:"Pipeliner.flush"}),o.cb=a.defer({lineno:151}),a._fulfill()}(s)})(r)},t}()}).call(this)},function(e,t,r){"use strict";(function(){t.Generator=r(613).Generator}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i;n=r(17),i=function(){},e=e=function(){function e(e){e=e||{},this.lazy_loop_delay=e.lazy_loop_delay||30,this.loop_delay=e.loop_delay||5,this.work_min=e.work_min||1,this.auto_stop_bits=e.auto_stop_bits||4096,this.max_bits_per_delta=e.max_bits_per_delta||4,this.auto_stop=!e.auto_stop||e.auto_stop,this.entropies=[],this.running=!0,this.is_generating=!1,this.timer_race_loop()}return e.prototype.generate=function(e,t){var r,i,o,a,s,u;a=n.findDeferral(arguments),this.is_generating=!0,this.running||this.resume(),i=0,o=[],(u=this,function(t){var c,l;c=[],(l=function(t){var f,h;if(f=function(){return n.trampoline(function(){return l(t)})},h=function(e){return c.push(e),f()},!(i7500)throw new Error("generate cannot generate > 7500 bits in 1 call.");if(this.reseed_counter>=1e4)throw new Error("Need a reseed!");for(t=[],0;0===t.length||t.length*t[0].length*4100))return e();!function(e){a=new s.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/drbg.iced",funcname:"ADRBG.generate"}),u.gen_seed(256,a.defer({assign_fn:function(){return i=arguments[0]},lineno:153})),a._fulfill()}(function(){return e(u.drbg.reseed(i))})}(function(){return r=u.drbg.generate(e),u.lock.release(),t(r)})})}}(this))},e}(),t.DRBG=n,t.ADRBG=e}).call(this)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(){var e,n,i,o,a={}.hasOwnProperty;o=r(17),t.Lock=e=function(){function e(){this._open=!0,this._waiters=[]}return e.prototype.acquire=function(e){return this._open?(this._open=!1,e()):this._waiters.push(e)},e.prototype.release=function(){return this._waiters.length?this._waiters.shift()():this._open=!0},e.prototype.open=function(){return this._open},e}(),n=function(t){function r(e,t){this.tab=e,this.name=t,r.__super__.constructor.call(this),this.refs=0}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r.prototype.incref=function(){return++this.refs},r.prototype.decref=function(){return--this.refs},r.prototype.release=function(){if(r.__super__.release.call(this),0===this.decref())return delete this.tab.locks[this.name]},r}(),t.Table=function(){function e(){this.locks={}}return e.prototype.create=function(e){var t;return t=new n(this,e),this.locks[e]=t},e.prototype.acquire=function(e,t,r){var n,i,a,s;a=o.findDeferral(arguments),n=this.locks[e]||this.create(e),i=n._open,n.incref(),function(e){if(!r&&!n._open)return e(n=null);!function(e){s=new o.Deferrals(e,{parent:a,filename:"/Users/max/src/iced/iced-lock/index.iced",funcname:"Table.acquire"}),n.acquire(s.defer({lineno:69})),s._fulfill()}(e)}(function(){return t(n,i)})},e.prototype.lookup=function(e){return this.locks[e]},e}(),i=function(){function e(e){this.table=e.table,this.key=e.key,this.seqid=null,this.waiter=null,this.open=!0,this.refs=0}return e.prototype._incref=function(){return++this.refs},e.prototype._decref=function(){if(0==--this.refs)return this.table._remove({key:this.key})},e.prototype._enter=function(e,t){var r,n;return r=e.seqid,this.open?(this.open=!1,this.seqid=r,t(null,this)):null!=this.waiter?(r>this.waiter.seqid?(n=this.waiter,this.waiter={cb:t,seqid:r},n.cb(new Error("our seqid="+n.seqid+" was preempted by "+r))):t(new Error("our seqid="+r+" is too stale (since "+this.waiter.seqid+" is ahead of us)")),this._decref()):r>this.seqid?this.waiter={seqid:r,cb:t}:(t(new Error("our seqid="+r+" is too stale (since "+this.seqid+" is already in flight)")),this._decref())},e.prototype.release=function(){var e,t;return null!=this.waiter?(t=this.waiter,this.seqid=t.seqid,e=t.cb,this.waiter=null,e(null,this)):(this.open=!0,this.seqid=null),this._decref()},e}(),t.SingleFlightTable=function(){function e(){this._jobs={}}return e.prototype._create=function(e){var t;return t=e.key,this._jobs[t]=new i({table:this,key:t})},e.prototype._remove=function(e){var t;return t=e.key,delete this._jobs[t]},e.prototype.enter=function(e,t){var r,n,i;return i=e.seqid,r=e.key,(n=this._jobs[r]||this._create({key:r}))._incref(),n._enter({seqid:i},t)},e}()}).call(this)},function(e,t,r){"use strict";(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function c(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&S(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return v(i)||(i=l(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(S(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return f(r)}var c,_="",x=!1,E=["{","}"];(d(r)&&(x=!0,E=["[","]"]),S(r))&&(_=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(_=" "+RegExp.prototype.toString.call(r)),w(r)&&(_=" "+Date.prototype.toUTCString.call(r)),k(r)&&(_=" "+f(r)),0!==a.length||x&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=x?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,_,E)):E[0]+_+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),O(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=m(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function y(e){return _(e)&&"[object RegExp]"===x(e)}function _(e){return"object"==typeof e&&null!==e}function w(e){return _(e)&&"[object Date]"===x(e)}function k(e){return _(e)&&("[object Error]"===x(e)||e instanceof Error)}function S(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(b(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=p,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=y,t.isObject=_,t.isDate=w,t.isError=k,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(617);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o>>31),f=(n<<5|n>>>27)+u+i[c],f+=c<20?1518500249+(o&a|~o&s):c<40?1859775393+(o^a^s):c<60?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,u=s,s=a,a=o<<30|o>>>2,o=n,n=f;return r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},r.prototype._doFinalize=function(){var e,t,r,n;return t=(e=this._data).words,n=8*this._nDataBytes,t[(r=8*e.sigBytes)>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),a=a=function(e){var t;return t=(new n).finalize(e),e.scrub(),t},t.SHA1=n,t.transform=a}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a={}.hasOwnProperty;i=r(13).WordArray,n=r(154).SHA256,e=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.output_size=28,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=new i([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},t.prototype._doFinalize=function(){var e;return(e=t.__super__._doFinalize.call(this)).sigBytes-=4,e},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(),o=function(t){var r;return r=(new e).finalize(t),t.scrub(),r},t.SHA224=e,t.transform=o}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;s=r(13),o=s.X64WordArray,s.WordArray,i=(u=r(53)).SHA512,e=u.Global,n=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,i),r.output_size=48,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new o(e.convert([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]))},r.prototype._doFinalize=function(){var e;return(e=r.__super__._doFinalize.call(this)).sigBytes-=16,e},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),a=function(e){var t;return t=(new n).finalize(e),e.scrub(),t},t.SHA384=n,t.transform=a}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c,l,f={}.hasOwnProperty;c=r(13).WordArray,a=r(33).Hasher,i=function(){return function(){var e;this.T=function(){var t,r;for(r=[],e=t=0;t<64;e=++t)r.push(4294967296*Math.abs(Math.sin(e+1))|0);return r}()}}(),l=new i,t.MD5=u=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,a),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.output_size=16,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new c([1732584193,4023233417,2562383102,271733878])},r.prototype._doProcessBlock=function(t,r){var i,a,u,c,f,h,d,p,m,g,v,b,y,_,w,k,S,x,E,A,O,P,T,C,j;for(T=j=0;j<16;T=++j)x=t[C=r+T],t[C]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8);return i=this._hash.words,a=t[r+0],u=t[r+1],g=t[r+2],v=t[r+3],b=t[r+4],y=t[r+5],_=t[r+6],w=t[r+7],k=t[r+8],S=t[r+9],c=t[r+10],f=t[r+11],h=t[r+12],d=t[r+13],p=t[r+14],m=t[r+15],E=i[0],A=i[1],O=i[2],P=i[3],E=e(E,A,O,P,a,7,l.T[0]),P=e(P,E,A,O,u,12,l.T[1]),O=e(O,P,E,A,g,17,l.T[2]),A=e(A,O,P,E,v,22,l.T[3]),E=e(E,A,O,P,b,7,l.T[4]),P=e(P,E,A,O,y,12,l.T[5]),O=e(O,P,E,A,_,17,l.T[6]),A=e(A,O,P,E,w,22,l.T[7]),E=e(E,A,O,P,k,7,l.T[8]),P=e(P,E,A,O,S,12,l.T[9]),O=e(O,P,E,A,c,17,l.T[10]),A=e(A,O,P,E,f,22,l.T[11]),E=e(E,A,O,P,h,7,l.T[12]),P=e(P,E,A,O,d,12,l.T[13]),O=e(O,P,E,A,p,17,l.T[14]),A=e(A,O,P,E,m,22,l.T[15]),E=n(E,A,O,P,u,5,l.T[16]),P=n(P,E,A,O,_,9,l.T[17]),O=n(O,P,E,A,f,14,l.T[18]),A=n(A,O,P,E,a,20,l.T[19]),E=n(E,A,O,P,y,5,l.T[20]),P=n(P,E,A,O,c,9,l.T[21]),O=n(O,P,E,A,m,14,l.T[22]),A=n(A,O,P,E,b,20,l.T[23]),E=n(E,A,O,P,S,5,l.T[24]),P=n(P,E,A,O,p,9,l.T[25]),O=n(O,P,E,A,v,14,l.T[26]),A=n(A,O,P,E,k,20,l.T[27]),E=n(E,A,O,P,d,5,l.T[28]),P=n(P,E,A,O,g,9,l.T[29]),O=n(O,P,E,A,w,14,l.T[30]),A=n(A,O,P,E,h,20,l.T[31]),E=o(E,A,O,P,y,4,l.T[32]),P=o(P,E,A,O,k,11,l.T[33]),O=o(O,P,E,A,f,16,l.T[34]),A=o(A,O,P,E,p,23,l.T[35]),E=o(E,A,O,P,u,4,l.T[36]),P=o(P,E,A,O,b,11,l.T[37]),O=o(O,P,E,A,w,16,l.T[38]),A=o(A,O,P,E,c,23,l.T[39]),E=o(E,A,O,P,d,4,l.T[40]),P=o(P,E,A,O,a,11,l.T[41]),O=o(O,P,E,A,v,16,l.T[42]),A=o(A,O,P,E,_,23,l.T[43]),E=o(E,A,O,P,S,4,l.T[44]),P=o(P,E,A,O,h,11,l.T[45]),O=o(O,P,E,A,m,16,l.T[46]),A=o(A,O,P,E,g,23,l.T[47]),E=s(E,A,O,P,a,6,l.T[48]),P=s(P,E,A,O,w,10,l.T[49]),O=s(O,P,E,A,p,15,l.T[50]),A=s(A,O,P,E,y,21,l.T[51]),E=s(E,A,O,P,h,6,l.T[52]),P=s(P,E,A,O,v,10,l.T[53]),O=s(O,P,E,A,c,15,l.T[54]),A=s(A,O,P,E,u,21,l.T[55]),E=s(E,A,O,P,k,6,l.T[56]),P=s(P,E,A,O,m,10,l.T[57]),O=s(O,P,E,A,_,15,l.T[58]),A=s(A,O,P,E,d,21,l.T[59]),E=s(E,A,O,P,b,6,l.T[60]),P=s(P,E,A,O,f,10,l.T[61]),O=s(O,P,E,A,g,15,l.T[62]),A=s(A,O,P,E,S,21,l.T[63]),i[0]=i[0]+E|0,i[1]=i[1]+A|0,i[2]=i[2]+O|0,i[3]=i[3]+P|0},r.prototype._doFinalize=function(){var e,t,r,n,i,o,a,s,u,c,l;for(n=(r=this._data).words,s=8*this._nDataBytes,n[(a=8*r.sigBytes)>>>5]|=128<<24-a%32,u=Math.floor(s/4294967296),c=s,n[15+(a+64>>>9<<4)]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),n[14+(a+64>>>9<<4)]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),r.sigBytes=4*(n.length+1),this._process(),e=(i=this._hash).words,o=l=0;l<4;o=++l)t=e[o],e[o]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8);return i},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),e=function(e,t,r,n,i,o,a){var s;return((s=e+(t&r|~t&n)+i+a)<>>32-o)+t},n=function(e,t,r,n,i,o,a){var s;return((s=e+(t&n|r&~n)+i+a)<>>32-o)+t},o=function(e,t,r,n,i,o,a){var s;return((s=e+(t^r^n)+i+a)<>>32-o)+t},s=function(e,t,r,n,i,o,a){var s;return((s=e+(r^(t|~n))+i+a)<>>32-o)+t},t.transform=function(e){var t;return t=(new u).finalize(e),e.scrub(),t}}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c,l,f,h,d,p,m={}.hasOwnProperty;p=r(13),a=p.WordArray,p.X64Word,p.X64WordArray,i=r(33).Hasher,n=function(){return function(){this._zl=new a([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),this._zr=new a([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),this._sl=new a([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),this._sr=new a([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),this._hl=new a([0,1518500249,1859775393,2400959708,2840853838]),this._hr=new a([1352829926,1548603684,1836072691,2053994217,0])}}(),e=new n,o=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)m.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,i),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.output_size=20,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new a([1732584193,4023233417,2562383102,271733878,3285377520])},r.prototype.get_output_size=function(){return this.output_size},r.prototype._doProcessBlock=function(t,r){var n,i,o,a,d,p,m,g,v,b,y,_,w,k,S,x,E,A,O,P,T,C,j;for(S=C=0;C<16;S=++C)i=t[x=r+S],t[x]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);for(n=this._hash.words,w=e._hl.words,k=e._hr.words,P=e._zl.words,T=e._zr.words,E=e._sl.words,A=e._sr.words,a=o=n[0],p=d=n[1],g=m=n[2],b=v=n[3],_=y=n[4],S=j=0;j<80;S=++j)O=o+t[r+P[S]]|0,O+=S<16?s(d,m,v)+w[0]:S<32?u(d,m,v)+w[1]:S<48?c(d,m,v)+w[2]:S<64?l(d,m,v)+w[3]:f(d,m,v)+w[4],O=(O=h(O|=0,E[S]))+y|0,o=y,y=v,v=h(m,10),m=d,d=O,O=a+t[r+T[S]]|0,O+=S<16?f(p,g,b)+k[0]:S<32?l(p,g,b)+k[1]:S<48?c(p,g,b)+k[2]:S<64?u(p,g,b)+k[3]:s(p,g,b)+k[4],O=(O=h(O|=0,A[S]))+_|0,a=_,_=b,b=h(g,10),g=p,p=O;return O=n[1]+m+b|0,n[1]=n[2]+v+_|0,n[2]=n[3]+y+a|0,n[3]=n[4]+o+p|0,n[4]=n[0]+d+g|0,n[0]=O},r.prototype._doFinalize=function(){var e,t,r,n,i,o,a,s,u;for(n=(r=this._data).words,s=8*this._nDataBytes,n[(a=8*r.sigBytes)>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r.sigBytes=4*(n.length+1),this._process(),e=(i=this._hash).words,o=u=0;u<5;o=++u)t=e[o],e[o]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8);return i},r.prototype.scrub=function(){return this._hash.scrub()},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),s=function(e,t,r){return e^t^r},u=function(e,t,r){return e&t|~e&r},c=function(e,t,r){return(e|~t)^r},l=function(e,t,r){return e&r|t&~r},f=function(e,t,r){return e^(t|~r)},h=function(e,t){return e<>>32-t},d=function(e){var t;return t=(new o).finalize(e),e.scrub(),t},t.RIPEMD160=o,t.transform=d}).call(this)},,,function(e,t,r){},,,function(e,t,r){"use strict";var n=r(18),i=r(263),o=r(631),a=r(269);function s(e){var t=new o(e),r=i(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r}var u=s(r(266));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=r(270),u.CancelToken=r(643),u.isCancel=r(265),u.all=function(e){return Promise.all(e)},u.spread=r(644),e.exports=u,e.exports.default=u},function(e,t,r){"use strict"; +!function(){var a,s={};function u(){}function c(e){return e}function l(e){return!!e}function f(e){return!e}var h="object"==typeof self&&self.self===self&&self||"object"==typeof r&&r.global===r&&r||this;function d(e){return function(){if(null===e)throw new Error("Callback was already called.");e.apply(this,arguments),e=null}}function p(e){return function(){null!==e&&(e.apply(this,arguments),e=null)}}null!=h&&(a=h.async),s.noConflict=function(){return h.async=a,s};var m=Object.prototype.toString,g=Array.isArray||function(e){return"[object Array]"===m.call(e)};function v(e){return g(e)||"number"==typeof e.length&&e.length>=0&&e.length%1==0}function b(e,t){for(var r=-1,n=e.length;++r3?e(n,i,u,s):(a=o,o=i,e(n,u,s))}}function N(e,t){return t}function z(e,t,r){r=r||u;var n=v(t)?[]:{};e(t,function(e,t,r){e(x(function(e,i){i.length<=1&&(i=i[0]),n[t]=i,r(e)}))},function(e){r(e,n)})}function R(e,t,r,n){var i=[];e(t,function(e,t,n){r(e,function(e,t){i=i.concat(t||[]),n(e)})},function(e){n(e,i)})}function F(e,t,r){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");function n(e,t,r,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(e.started=!0,g(t)||(t=[t]),0===t.length&&e.idle())return s.setImmediate(function(){e.drain()});b(t,function(t){var i={data:t,callback:n||u};r?e.tasks.unshift(i):e.tasks.push(i),e.tasks.length===e.concurrency&&e.saturated()}),s.setImmediate(e.process)}function i(e,t){return function(){o-=1;var r=!1,n=arguments;b(t,function(e){b(a,function(t,n){t!==e||r||(a.splice(n,1),r=!0)}),e.callback.apply(e,n)}),e.tasks.length+o===0&&e.drain(),e.process()}}var o=0,a=[],c={tasks:[],concurrency:t,payload:r,saturated:u,empty:u,drain:u,started:!1,paused:!1,push:function(e,t){n(c,e,!1,t)},kill:function(){c.drain=u,c.tasks=[]},unshift:function(e,t){n(c,e,!0,t)},process:function(){for(;!c.paused&&on?1:0}s.map(e,function(e,r){t(e,function(t,n){t?r(t):r(null,{value:e,criteria:n})})},function(e,t){if(e)return r(e);r(null,y(t.sort(n),function(e){return e.value}))})},s.auto=function(e,t,r){"function"==typeof arguments[1]&&(r=t,t=null),r=p(r||u);var n=k(e),i=n.length;if(!i)return r(null);t||(t=i);var o={},a=0,c=!1,l=[];function f(e){l.unshift(e)}function h(){i--,b(l.slice(0),function(e){e()})}f(function(){i||r(null,o)}),b(n,function(n){if(!c){for(var i,u=g(e[n])?e[n]:[e[n]],d=x(function(e,t){if(a--,t.length<=1&&(t=t[0]),e){var i={};l=function(e,t){i[t]=e},b(k(u=o),function(e){l(u[e],e)}),i[n]=t,c=!0,r(e,i)}else o[n]=t,s.setImmediate(h);var u,l}),p=u.slice(0,u.length-1),m=p.length;m--;){if(!(i=e[p[m]]))throw new Error("Has nonexistent dependency in "+p.join(", "));if(g(i)&&w(i,n)>=0)throw new Error("Has cyclic dependencies")}v()?(a++,u[u.length-1](d,o)):f(function e(){v()&&(a++,(t=w(l,e))>=0&&l.splice(t,1),u[u.length-1](d,o));var t})}function v(){return a3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");function c(e,t){function r(e,r){return function(n){e(function(e,t){n(!e||r,{err:e,result:t})},t)}}function n(e){return function(t){setTimeout(function(){t(null)},e)}}for(;a.times;){var i=!(a.times-=1);o.push(r(a.task,i)),!i&&a.interval>0&&o.push(n(a.interval))}s.series(o,function(t,r){r=r[r.length-1],(e||a.callback)(r.err,r.result)})}return u<=2&&"function"==typeof e&&(r=t,t=e),"function"!=typeof e&&function(e,t){if("number"==typeof t)e.times=parseInt(t,10)||n;else{if("object"!=typeof t)throw new Error("Unsupported argument type for 'times': "+typeof t);e.times=parseInt(t.times,10)||n,e.interval=parseInt(t.interval,10)||i}}(a,e),a.callback=r,a.task=t,a.callback?c():c},s.waterfall=function(e,t){if(t=p(t||u),!g(e)){var r=new Error("First argument to waterfall must be an array of functions");return t(r)}if(!e.length)return t();!function e(r){return x(function(n,i){if(n)t.apply(null,[n].concat(i));else{var o=r.next();o?i.push(e(o)):i.push(t),q(r).apply(null,i)}})}(s.iterator(e))()},s.parallel=function(e,t){z(s.eachOf,e,t)},s.parallelLimit=function(e,t,r){z(P(t),e,r)},s.series=function(e,t){z(s.eachOfSeries,e,t)},s.iterator=function(e){return function t(r){function n(){return e.length&&e[r].apply(null,arguments),n.next()}return n.next=function(){return r>>1);r(t,e[o])>=0?n=o:i=o-1}return n}(e.tasks,o,r)+1,0,o),e.tasks.length===e.concurrency&&e.saturated(),s.setImmediate(e.process)})}(n,e,t,i)},delete n.unshift,n},s.cargo=function(e,t){return F(e,1,t)},s.log=U("log"),s.dir=U("dir"),s.memoize=function(e,t){var r={},n={},i=Object.prototype.hasOwnProperty;t=t||c;var o=x(function(o){var a=o.pop(),u=t.apply(null,o);i.call(r,u)?s.setImmediate(function(){a.apply(null,r[u])}):i.call(n,u)?n[u].push(a):(n[u]=[a],e.apply(null,o.concat([x(function(e){r[u]=e;var t=n[u];delete n[u];for(var i=0,o=t.length;i0&&(o=i(e,o,r,n),a=a.concat(o),(n-=o.length)<=0)));s++);return a}e.exports={filter:function(e,t,r,n){Array.isArray(t)||(t=[t]);"number"==typeof n&&isFinite(n)||(n=1/0);return i(e,t,!1!==r,n)},find:i,findOneChild:function(e,t){for(var r=0,n=t.length;r0&&(i=e(t,r[o].children)));return i},existsOne:function e(t,r){for(var i=0,o=r.length;i0&&e(t,r[i].children)))return!0;return!1},findAll:function e(t,r){var i=[];for(var o=0,a=r.length;o0&&(i=i.concat(e(t,r[o].children))));return i}}},function(e,t,r){"use strict";var n=r(60),i=t.isTag=n.isTag;t.testElement=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){if("tag_name"===r){if(!i(t)||!e.tag_name(t.name))return!1}else if("tag_type"===r){if(!e.tag_type(t.type))return!1}else if("tag_contains"===r){if(i(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[r](t.attribs[r]))return!1}else;return!0};var o={tag_name:function(e){return"function"==typeof e?function(t){return i(t)&&e(t.name)}:"*"===e?i:function(t){return i(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!i(t)&&e(t.data)}:function(t){return!i(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(r){return r.attribs&&t(r.attribs[e])}:function(r){return r.attribs&&r.attribs[e]===t}}function s(e,t){return function(r){return e(r)||t(r)}}t.getElements=function(e,t,r,n){var i=Object.keys(e).map(function(t){var r=e[t];return t in o?o[t](r):a(t,r)});return 0===i.length?[]:this.filter(i.reduce(s),t,r,n)},t.getElementById=function(e,t,r){return Array.isArray(t)||(t=[t]),this.findOne(a("id",e),t,!1!==r)},t.getElementsByTagName=function(e,t,r,n){return this.filter(o.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return this.filter(o.tag_type(e),t,r,n)}},function(e,t,r){"use strict";t.removeSubsets=function(e){for(var t,r,n,i=e.length;--i>-1;){for(t=r=e[i],e[i]=null,n=!0;r;){if(e.indexOf(r)>-1){n=!1,e.splice(i,1);break}r=r.parent}n&&(e[i]=t)}return e};var n=1,i=2,o=4,a=8,s=16,u=t.compareDocumentPosition=function(e,t){var r,u,c,l,f,h,d=[],p=[];if(e===t)return 0;for(r=e;r;)d.unshift(r),r=r.parent;for(r=t;r;)p.unshift(r),r=r.parent;for(h=0;d[h]===p[h];)h++;return 0===h?n:(c=(u=d[h-1]).children,l=d[h],f=p[h],c.indexOf(l)>c.indexOf(f)?u===t?o|s:o:u===e?i|a:i)};t.uniqueSort=function(e){var t,r,n=e.length;for(e=e.slice();--n>-1;)t=e[n],(r=e.indexOf(t))>-1&&r-1;)if(r=o+e.length,(0===o||l.test(i[o-1]))&&(r===i.length||l.test(i[r])))return!0})},t.addClass=function(e){if("function"==typeof e)return a(this,function(r,n){var i=n.attribs.class||"";t.addClass.call([n],e.call(n,r,i))});if(!e||"string"!=typeof e)return this;for(var r=e.split(l),n=this.length,i=0;i=0&&(u.splice(a,1),s=!0,c--);s&&(t.attribs.class=u.join(" "))}}))},t.toggleClass=function(e,r){if("function"==typeof e)return a(this,function(n,i){t.toggleClass.call([i],e.call(i,n,i.attribs.class||"",r),r)});if(!e||"string"!=typeof e)return this;for(var n,i,s=e.split(l),u=s.length,c="boolean"==typeof r?r?1:-1:0,f=this.length,h=0;h=0&&i<0?n.push(s[d]):c<=0&&i>=0&&n.splice(i,1);this[h].attribs.class=n.join(" ")}return this},t.is=function(e){return!!e&&this.filter(e).length>0}},function(e,t,r){"use strict";var n=r(566),i=r(567);e.exports=function(e){return i(n(e))},e.exports.parse=n,e.exports.compile=i},function(e,t,r){"use strict";e.exports=function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t,r=e.match(n);if(!r)throw new SyntaxError("n-th rule couldn't be parsed ('"+e+"')");return r[1]?(t=parseInt(r[1],10),isNaN(t)&&(t="-"===r[1].charAt(0)?-1:1)):t=0,[t,r[3]?parseInt((r[2]||"")+r[3],10):0]};var n=/^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/},function(e,t,r){"use strict";e.exports=function(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return o;if(-1===t)return function(e){return e<=r};if(0===t)return function(e){return e===r};if(1===t)return r<0?i:function(e){return e>=r};var n=r%t;n<0&&(n+=t);if(t>1)return function(e){return e>=r&&e%t===n};return t*=-1,function(e){return e<=r&&e%t===n}};var n=r(79),i=n.trueFunc,o=n.falseFunc},function(e,t,r){"use strict";e.exports=function(e,t,r){return h(d(e,t,r))},e.exports.compileUnsafe=d,e.exports.compileToken=y;var n=r(569),i=r(52),o=i.isTag,a=r(570),s=r(571),u=r(79),c=u.trueFunc,l=u.falseFunc,f=r(251);function h(e){return function(t){return o(t)&&e(t)}}function d(e,t,r){return y(n(e,t),t,r)}function p(e){return"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some(function(e){return e.some(p)}))}var m={type:"descendant"},g={type:"pseudo",name:"scope"},v={},b=i.getParent;function y(e,t,r){(e=e.filter(function(e){return e.length>0})).forEach(s);var n=Array.isArray(r);return(r=t&&t.context||r)&&!n&&(r=[r]),function(e,t){var r=!!t&&!!t.length&&t.every(function(e){return e===v||!!b(e)});e.forEach(function(e){if(e.length>0&&_(e[0])&&"descendant"!==e[0].type);else{if(!r||p(e))return;e.unshift(m)}e.unshift(g)})}(e,r),e.map(function(e){return function(e,t,r,n){var i=n&&"scope"===e[0].name&&"descendant"===e[1].type;return e.reduce(function(e,n,o){return e===l?e:a[n.type](e,n,t,r,i&&1===o)},t&&t.rootFunc||c)}(e,t,r,n)}).reduce(w,l)}function _(e){return f[e.type]<0}function w(e,t){return t===l||e===c?e:e===l||t===c?t:function(r){return e(r)||t(r)}}var k=r(149).filters,S=i.existsOne,x=(o=i.isTag,i.getChildren);function E(e){return e.some(_)}k.not=function(e,t,r,n){var i={xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict)};if(i.strict&&(t.length>1||t.some(E)))throw new SyntaxError("complex selectors in :not aren't allowed in strict mode");var o=y(t,i,n);return o===l?e:o===c?l:function(t){return!o(t)&&e(t)}},k.has=function(e,t,r){var n={xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict)},i=t.some(E)?[v]:null,a=y(t,n,i);return a===l?l:a===c?function(t){return x(t).some(o)&&e(t)}:(a=h(a),i?function(t){return e(t)&&(i[0]=t,S(a,x(t)))}:function(t){return e(t)&&S(a,x(t))})},k.matches=function(e,t,r,n){return y(t,{xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict),rootFunc:e},n)}},function(e,t,r){"use strict";e.exports=function(e,t){var r=[];if(""!==(e=function e(t,r,i){var h,g,v,b,y=[],_=!1;function w(){var e=r.match(n)[0];return r=r.substr(e.length),d(e)}function k(e){for(;p(r.charAt(e));)e++;r=r.substr(e)}function S(e){for(var t=0;"\\"===r.charAt(--e);)t++;return 1==(1&t)}for(k(0);""!==r;)if(p(g=r.charAt(0)))_=!0,k(1);else if(g in s)y.push({type:s[g]}),_=!1,k(1);else if(","===g){if(0===y.length)throw new SyntaxError("empty sub-selector");t.push(y),y=[],_=!1,k(1)}else if(_&&(y.length>0&&y.push({type:"descendant"}),_=!1),"*"===g)r=r.substr(1),y.push({type:"universal"});else if(g in u)r=r.substr(1),y.push({type:"attribute",name:u[g][0],action:u[g][1],value:w(),ignoreCase:!1});else if("["===g){if(r=r.substr(1),!(h=r.match(o)))throw new SyntaxError("Malformed attribute selector: "+r);r=r.substr(h[0].length),v=d(h[1]),i&&("lowerCaseAttributeNames"in i?!i.lowerCaseAttributeNames:i.xmlMode)||(v=v.toLowerCase()),y.push({type:"attribute",name:v,action:a[h[2]],value:d(h[4]||h[5]||""),ignoreCase:!!h[6]})}else if(":"===g){if(":"===r.charAt(1)){r=r.substr(2),y.push({type:"pseudo-element",name:w().toLowerCase()});continue}if(r=r.substr(1),v=w().toLowerCase(),h=null,"("===r.charAt(0))if(v in c){var x=(b=r.charAt(1))in f;if(r=r.substr(x+1),r=e(h=[],r,i),x){if(r.charAt(0)!==b)throw new SyntaxError("unmatched quotes in :"+v);r=r.substr(1)}if(")"!==r.charAt(0))throw new SyntaxError("missing closing parenthesis in :"+v+" "+r);r=r.substr(1)}else{for(var E=1,A=1;A>0&&E":"child","<":"parent","~":"sibling","+":"adjacent"},u={__proto__:null,"#":["id","equals"],".":["class","element"]},c={__proto__:null,has:!0,not:!0,matches:!0},l={__proto__:null,contains:!0,icontains:!0},f={__proto__:null,'"':!0,"'":!0};function h(e,t,r){var n="0x"+t-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}function d(e){return e.replace(i,h)}function p(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function m(e,t){if(e.length>0&&0===t.length)throw new SyntaxError("empty sub-selector");e.push(t)}},function(e,t,r){"use strict";var n=r(52),i=n.isTag,o=n.getParent,a=n.getChildren,s=n.getSiblings,u=n.getName;e.exports={__proto__:null,attribute:r(250).compile,pseudo:r(149).compile,tag:function(e,t){var r=t.name;return function(t){return u(t)===r&&e(t)}},descendant:function(e,t,r,n,i){return function(t){if(i&&e(t))return!0;for(var r=!1;!r&&(t=o(t));)r=e(t);return r}},parent:function(e,t,r){if(r&&r.strict)throw SyntaxError("Parent selector isn't part of CSS3");return function(e){return a(e).some(n)};function n(t){return i(t)&&e(t)}},child:function(e){return function(t){var r=o(t);return!!r&&e(r)}},sibling:function(e){return function(t){for(var r=s(t),n=0;n=0&&n>=1);else if(t===n.pseudo)if(e.data)if("has"===e.name||"contains"===e.name)t=0;else if("matches"===e.name||"not"===e.name){t=0;for(var r=0;rt&&(t=a)}e.data.length>1&&t>0&&(t-=1)}else t=1;else t=3;return t}},function(e,t,r){"use strict";(function(e,r){var n=200,i="__lodash_hash_undefined__",o=800,a=16,s=9007199254740991,u="[object Arguments]",c="[object AsyncFunction]",l="[object Function]",f="[object GeneratorFunction]",h="[object Null]",d="[object Object]",p="[object Proxy]",m="[object Undefined]",g=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[u]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[l]=b["[object Map]"]=b["[object Number]"]=b[d]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var y="object"==typeof e&&e&&e.Object===Object&&e,_="object"==typeof self&&self&&self.Object===Object&&self,w=y||_||Function("return this")(),k=t&&!t.nodeType&&t,S=k&&"object"==typeof r&&r&&!r.nodeType&&r,x=S&&S.exports===k,E=x&&y.process,A=function(){try{return E&&E.binding&&E.binding("util")}catch(e){}}(),O=A&&A.isTypedArray;function P(e,t){return"__proto__"==t?void 0:e[t]}var T,C,j,I=Array.prototype,M=Function.prototype,D=Object.prototype,B=w["__core-js_shared__"],N=M.toString,z=D.hasOwnProperty,R=(T=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"",F=D.toString,U=N.call(Object),$=RegExp("^"+N.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=x?w.Buffer:void 0,L=w.Symbol,q=w.Uint8Array,H=Buffer?Buffer.allocUnsafe:void 0,V=(C=Object.getPrototypeOf,j=Object,function(e){return C(j(e))}),K=Object.create,W=D.propertyIsEnumerable,G=I.splice,Z=L?L.toStringTag:void 0,Y=function(){try{var e=we(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),X=Buffer?Buffer.isBuffer:void 0,J=Math.max,Q=Date.now,ee=we(w,"Map"),te=we(Object,"create"),re=function(){function e(){}return function(t){if(!Ie(t))return{};if(K)return K(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ie.prototype.set=function(e,t){var r=this.__data__,n=le(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(ee||ie),string:new ne}},oe.prototype.delete=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return _e(this,e).get(e)},oe.prototype.has=function(e){return _e(this,e).has(e)},oe.prototype.set=function(e,t){var r=_e(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ae.prototype.clear=function(){this.__data__=new ie,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ie){var i=r.__data__;if(!ee||i.length-1&&e%1==0&&e0){if(++t>=o)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Re);function Ee(e,t){return e===t||e!=e&&t!=t}var Ae=me(function(){return arguments}())?me:function(e){return Me(e)&&z.call(e,"callee")&&!W.call(e,"callee")},Oe=Array.isArray;function Pe(e){return null!=e&&je(e.length)&&!Ce(e)}var Te=X||function(){return!1};function Ce(e){if(!Ie(e))return!1;var t=pe(e);return t==l||t==f||t==c||t==p}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Me(e){return null!=e&&"object"==typeof e}var De=O?function(e){return function(t){return e(t)}}(O):function(e){return Me(e)&&je(e.length)&&!!b[pe(e)]};function Be(e){return Pe(e)?se(e,!0):ve(e)}var Ne,ze=(Ne=function(e,t,r){be(e,t,r)},ye(function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Ne.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ie(r))return!1;var n=typeof t;return!!("number"==n?Pe(r)&&ke(t,r.length):"string"==n&&t in r)&&Ee(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r-1},xe.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new Se,map:new(le||xe),string:new Se}},Ee.prototype.delete=function(e){return qe(this,e).delete(e)},Ee.prototype.get=function(e){return qe(this,e).get(e)},Ee.prototype.has=function(e){return qe(this,e).has(e)},Ee.prototype.set=function(e,t){return qe(this,e).set(e,t),this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,o),this},Ae.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.clear=function(){this.__data__=new xe},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof xe){var i=r.__data__;if(!le||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Ae:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function at(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==typeof e}function ut(e){return"symbol"==typeof e||st(e)&&re.call(e)==S}var ct=$?function(e){return function(t){return e(t)}}($):function(e){return st(e)&&ot(e.length)&&!!M[re.call(e)]};function lt(e){return nt(e)?Pe(e):Fe(e)}function ft(e){return e}r.exports=function(e,t,r){var n=rt(e)?L:Ue;return r&&function(e,t,r){if(!at(r))return!1;var n=typeof t;return!!("number"==n?nt(r)&&Ke(t,r.length):"string"==n&&t in r)&&et(r[t],e)}(e,t,r)&&(t=void 0),n(e,Re(t))}}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";var n=r(249),i=r(78),o=i.domEach,a=r(77).DomUtils.uniqueSort,s=i.isTag,u={bind:r(147),forEach:r(105),reject:r(575),filter:r(576),reduce:r(577)};t.find=function(e){var t,r=u.reduce(this,function(e,t){return e.concat(u.filter(t.children,s))},[]),i=this.constructor.contains;if(e&&"string"!=typeof e)return t=e.cheerio?e.get():[e],this._make(t.filter(function(e){var t,r;for(t=0,r=this.length;t0})},t.first=function(){return this.length>1?this._make(this[0]):this},t.last=function(){return this.length>1?this._make(this[this.length-1]):this},t.eq=function(e){return 0===(e=+e)&&this.length<=1?this:(e<0&&(e=this.length+e),this[e]?this._make(this[e]):this._make([]))},t.get=function(e){return null==e?Array.prototype.slice.call(this):this[e<0?this.length+e:e]},t.index=function(e){var t,r;return 0===arguments.length?(t=this.parent().children(),r=this[0]):"string"==typeof e?(t=this._make(e),r=this[0]):(t=this,r=e.cheerio?e[0]:e),t.get().indexOf(r)},t.slice=function(){return this._make([].slice.apply(this,arguments))},t.end=function(){return this.prevObject||this._make([])},t.add=function(e,t){for(var r=this._make(e,t),n=a(r.get().concat(this.get())),i=0;i-1},Ee.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(fe||Ee),string:new xe}},Ae.prototype.delete=function(e){return He(this,e).delete(e)},Ae.prototype.get=function(e){return He(this,e).get(e)},Ae.prototype.has=function(e){return He(this,e).has(e)},Ae.prototype.set=function(e,t){return He(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,o),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new Ee},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ee){var i=r.__data__;if(!fe||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Oe:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||ut(e)&&ne.call(e)==S}var lt=$?function(e){return function(t){return e(t)}}($):function(e){return ut(e)&&at(e.length)&&!!M[ne.call(e)]};function ft(e){return it(e)?Te(e):$e(e)}function ht(e){return e}r.exports=function(e,t){return(nt(e)?L:De)(e,function(e){if("function"!=typeof e)throw new TypeError(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}(Ue(t)))}}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";(function(e,r){var n=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,s=2,u=1/0,c=9007199254740991,l="[object Arguments]",f="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Function]",g="[object GeneratorFunction]",v="[object Map]",b="[object Number]",y="[object Object]",_="[object RegExp]",w="[object Set]",k="[object String]",S="[object Symbol]",x="[object ArrayBuffer]",E="[object DataView]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O=/^\w*$/,P=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,j=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[l]=M[f]=M[x]=M[h]=M[E]=M[d]=M[p]=M[m]=M[v]=M[b]=M[y]=M[_]=M[w]=M[k]=M["[object WeakMap]"]=!1;var D="object"==typeof e&&e&&e.Object===Object&&e,B="object"==typeof self&&self&&self.Object===Object&&self,N=D||B||Function("return this")(),z=t&&!t.nodeType&&t,R=z&&"object"==typeof r&&r&&!r.nodeType&&r,F=R&&R.exports===z&&D.process,U=function(){try{return F&&F.binding("util")}catch(e){}}(),$=U&&U.isTypedArray;function L(e,t){for(var r=-1,n=e?e.length:0,i=0,o=[];++r-1},Ee.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(fe||Ee),string:new xe}},Ae.prototype.delete=function(e){return He(this,e).delete(e)},Ae.prototype.get=function(e){return He(this,e).get(e)},Ae.prototype.has=function(e){return He(this,e).has(e)},Ae.prototype.set=function(e,t){return He(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,o),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new Ee},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ee){var i=r.__data__;if(!fe||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Oe:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||ut(e)&&ne.call(e)==S}var lt=$?function(e){return function(t){return e(t)}}($):function(e){return ut(e)&&at(e.length)&&!!M[ne.call(e)]};function ft(e){return it(e)?Te(e):$e(e)}function ht(e){return e}r.exports=function(e,t){return(nt(e)?L:De)(e,Ue(t))}}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";(function(e,r){var n=200,i="Expected a function",o="__lodash_hash_undefined__",a=1,s=2,u=1/0,c=9007199254740991,l="[object Arguments]",f="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Function]",g="[object GeneratorFunction]",v="[object Map]",b="[object Number]",y="[object Object]",_="[object RegExp]",w="[object Set]",k="[object String]",S="[object Symbol]",x="[object ArrayBuffer]",E="[object DataView]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,O=/^\w*$/,P=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,j=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[l]=M[f]=M[x]=M[h]=M[E]=M[d]=M[p]=M[m]=M[v]=M[b]=M[y]=M[_]=M[w]=M[k]=M["[object WeakMap]"]=!1;var D="object"==typeof e&&e&&e.Object===Object&&e,B="object"==typeof self&&self&&self.Object===Object&&self,N=D||B||Function("return this")(),z=t&&!t.nodeType&&t,R=z&&"object"==typeof r&&r&&!r.nodeType&&r,F=R&&R.exports===z&&D.process,U=function(){try{return F&&F.binding("util")}catch(e){}}(),$=U&&U.isTypedArray;function L(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i-1},Ae.prototype.set=function(e,t){var r=this.__data__,n=je(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ee,map:new(he||Ae),string:new Ee}},Oe.prototype.delete=function(e){return He(this,e).delete(e)},Oe.prototype.get=function(e){return He(this,e).get(e)},Oe.prototype.has=function(e){return He(this,e).has(e)},Oe.prototype.set=function(e,t){return He(this,e).set(e,t),this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,o),this},Pe.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Ae},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var i=r.__data__;if(!he||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Pe:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||ut(e)&&ie.call(e)==S}var lt=$?function(e){return function(t){return e(t)}}($):function(e){return ut(e)&&at(e.length)&&!!M[ie.call(e)]};function ft(e){return it(e)?Ce(e):$e(e)}function ht(e){return e}r.exports=function(e,t,r){var n=nt(e)?L:H,i=arguments.length<3;return n(e,Ue(t),r,i,De)}}).call(this,r(9),r(36)(e))},function(e,t,r){"use strict";var n=r(104),i=r(148),o=n.update,a=n.evaluate,s=r(78),u=s.domEach,c=s.cloneDom,l=s.isHtml,f=Array.prototype.slice,h={flatten:r(579),bind:r(147),forEach:r(105)};t._makeDomArray=function(e,t){return null==e?[]:e.cheerio?t?c(e.get(),e.options):e.get():Array.isArray(e)?h.flatten(e.map(function(e){return this._makeDomArray(e,t)},this)):"string"==typeof e?a(e,this.options):t?c([e]):[e]};var d=function(e){return function(){var t=f.call(arguments),r=this.length-1;return u(this,function(n,o){var a,s;s="function"==typeof t[0]?t[0].call(o,n,i.html(o.children)):t,a=this._makeDomArray(s,n-1&&(c.children.splice(s,1),i===c&&t>s&&l[0]--),u.root=null,u.parent=i,u.prev&&(u.prev.next=u.next||null),u.next&&(u.next.prev=u.prev||null),u.prev=n[o-1]||f,u.next=n[o+1]||h;return f&&(f.next=n[0]),h&&(h.prev=n[n.length-1]),e.splice.apply(e,l)};t.appendTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.append(this),this},t.prependTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.prepend(this),this},t.append=d(function(e,t,r){p(t,t.length,0,e,r)}),t.prepend=d(function(e,t,r){p(t,0,0,e,r)}),t.wrap=function(e){var t="function"==typeof e&&e,r=this.length-1;return h.forEach(this,h.bind(function(n,i){var a,s,u=n.parent||n.root,c=u.children;u&&(t&&(e=t.call(n,i)),"string"!=typeof e||l(e)||(e=this.parents().last().find(e).clone()),a=this._makeDomArray(e,i-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?h.call(e):"";return t==i||t==o}(e)}(e)}(e)&&f.call(e,"callee")&&(!p.call(e,"callee")||h.call(e)==n)}(e)||!!(m&&e&&e[m])}var v=Array.isArray;e.exports=function(e){return e&&e.length?function e(t,r,n,i,o){var a=-1,s=t.length;for(n||(n=g),o||(o=[]);++a0&&n(u)?r>1?e(u,r-1,n,i,o):c(o,u):i||(o[o.length]=u)}return o}(e,1):[]}}).call(this,r(9))},function(e,t,r){"use strict";var n=r(78).domEach,i={pick:r(581)},o=Object.prototype.toString;function a(e,t){var r=function(e){return(e=(e||"").trim())?e.split(";").reduce(function(e,t){var r=t.indexOf(":");return r<1||r===t.length-1?e:(e[t.slice(0,r).trim()]=t.slice(r+1).trim(),e)},{}):{}}(e.attribs.style);return"string"==typeof t?r[t]:Array.isArray(t)?i.pick(r,t):r}t.css=function(e,t){return 2===arguments.length||"[object Object]"===o.call(e)?n(this,function(r,n){!function e(t,r,n,i){if("string"==typeof r){var o=a(t);"function"==typeof n&&(n=n.call(t,i,o[r])),""===n?delete o[r]:null!=n&&(o[r]=n),t.attribs.style=(s=o,Object.keys(s||{}).reduce(function(e,t){return e+=(e?" ":"")+t+": "+s[t]+";"},""))}else"object"==typeof r&&Object.keys(r).forEach(function(n){e(t,n,r[n])});var s}(n,e,t,r)}):a(this[0],e)}},function(e,t,r){"use strict";(function(t){var r=1/0,n=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",u="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")();function f(e,t){for(var r=-1,n=t.length,i=e.length;++r-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?p.call(e):"";return t==o||t==a}(e)}(e)}(e)&&d.call(e,"callee")&&(!g.call(e,"callee")||p.call(e)==i)}(e)||!!(v&&e&&e[v])}function _(e){if("string"==typeof e||function(e){return"symbol"==typeof e||k(e)&&p.call(e)==s}(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}var w=Array.isArray;function k(e){return!!e&&"object"==typeof e}var S,x,E=(S=function(e,t){return null==e?{}:function(e,t){return function(e,t,r){for(var n=-1,i=t.length,o={};++n0&&n(u)?r>1?e(u,r-1,n,i,o):f(o,u):i||(o[o.length]=u)}return o}(t,1),_))},x=b(void 0===x?S.length-1:x,0),function(){for(var e=arguments,t=-1,r=b(e.length-x,0),n=Array(r);++t-1},Ee.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(fe||Ee),string:new xe}},Ae.prototype.delete=function(e){return He(this,e).delete(e)},Ae.prototype.get=function(e){return He(this,e).get(e)},Ae.prototype.has=function(e){return He(this,e).has(e)},Ae.prototype.set=function(e,t){return He(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,o),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new Ee},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ee){var i=r.__data__;if(!fe||i.lengthc))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var h=-1,d=!0,p=i&a?new Oe:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=c}function st(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==typeof e}function ct(e){return"symbol"==typeof e||ut(e)&&ne.call(e)==S}var lt=$?function(e){return function(t){return e(t)}}($):function(e){return ut(e)&&at(e.length)&&!!M[ne.call(e)]};function ft(e){return it(e)?Te(e):Ue(e)}function ht(e){return e}r.exports=function(e,t){return(nt(e)?L:$e)(e,Fe(t))}}).call(this,r(9),r(36)(e))},function(e){e.exports={_from:"cheerio@^0.22.0",_id:"cheerio@0.22.0",_inBundle:!1,_integrity:"sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=",_location:"/cheerio",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"cheerio@^0.22.0",name:"cheerio",escapedName:"cheerio",rawSpec:"^0.22.0",saveSpec:null,fetchSpec:"^0.22.0"},_requiredBy:["/blockstack"],_resolved:"https://registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz",_shasum:"a9baa860a3f9b595a6b81b1a86873121ed3a269e",_spec:"cheerio@^0.22.0",_where:"C:\\Users\\mtc12\\Documents\\Work\\Blockstack\\mercurius\\node_modules\\blockstack",author:{name:"Matt Mueller",email:"mattmuelle@gmail.com",url:"mat.io"},bugs:{url:"https://github.com/cheeriojs/cheerio/issues"},bundleDependencies:!1,dependencies:{"css-select":"~1.2.0","dom-serializer":"~0.1.0",entities:"~1.1.1",htmlparser2:"^3.9.1","lodash.assignin":"^4.0.9","lodash.bind":"^4.1.4","lodash.defaults":"^4.0.1","lodash.filter":"^4.4.0","lodash.flatten":"^4.2.0","lodash.foreach":"^4.3.0","lodash.map":"^4.4.0","lodash.merge":"^4.4.0","lodash.pick":"^4.2.1","lodash.reduce":"^4.4.0","lodash.reject":"^4.4.0","lodash.some":"^4.4.0"},deprecated:!1,description:"Tiny, fast, and elegant implementation of core jQuery designed specifically for the server",devDependencies:{benchmark:"^2.1.0",coveralls:"^2.11.9","expect.js":"~0.3.1",istanbul:"^0.4.3",jquery:"^3.0.0",jsdom:"^9.2.1",jshint:"^2.9.2",mocha:"^2.5.3",xyz:"~0.5.0"},engines:{node:">= 0.6"},files:["index.js","lib"],homepage:"https://github.com/cheeriojs/cheerio#readme",keywords:["htmlparser","jquery","selector","scraper","parser","html"],license:"MIT",main:"./index.js",name:"cheerio",repository:{type:"git",url:"git://github.com/cheeriojs/cheerio.git"},scripts:{test:"make test"},version:"0.22.0"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(61);t.Github=class extends n.Service{static getBaseUrls(){return["https://gist.github.com/","http://gist.github.com","gist.github.com"]}static normalizeUrl(e){return""}static getProofUrl(e){const t=this.getBaseUrls();let r=e.proof_url.toLowerCase();r=super.prefixScheme(r);for(let n=0;n1?t.split(":")[0].match(/(@\w+)/)[0].substr(1):""}static getProofStatement(e){const t=i.default.load(e)('meta[property="og:description"]').attr("content");return void 0!==t&&t.split(":").length>1?t.split(":")[1].trim().replace("“","").replace("”",""):""}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(76)),o=r(61);t.HackerNews=class extends o.Service{static getBaseUrls(){return["https://news.ycombinator.com/user?id=","http://news.ycombinator.com/user?id=","news.ycombinator.com/user?id="]}static getProofUrl(e){const t=this.getBaseUrls(),r=super.prefixScheme(e.proof_url);for(let n=0;n0&&r.each((e,r)=>{const i=t(r).find("tr");i.length>0&&i.each((e,r)=>{"about:"===t(r).find("td").first().text().trim()&&(n=t(r).find("td").last().text().trim())})}),n}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(76)),o=r(61);t.LinkedIn=class extends o.Service{static getBaseUrls(){return["https://www.linkedin.com/feed/update/","http://www.linkedin.com/feed/update/","www.linkedin.com/feed/update/"]}static getProofUrl(e){const t=this.getBaseUrls();let r=e.proof_url.toLowerCase();r=super.prefixScheme(r);for(let e=0;e main header a");return void 0!==t?void 0===t.attr("href")?"":t.attr("href").split("?").shift().split("/").pop():""}static getProofStatement(e){const t=i.default.load(e)('head > meta[property="og:title"]');let r="";return void 0!==t&&(r=t.attr("content")),r}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getName=function(e){if(!e)return null;let t=null;return e.name?t=e.name:(e.givenName||e.familyName)&&(t="",e.givenName&&(t=e.givenName),e.familyName&&(t+=` ${e.familyName}`)),t},t.getGivenName=function(e){if(!e)return null;let t=null;e.givenName?t=e.givenName:e.name&&(t=e.name.split(" ").slice(0,-1).join(" "));return t},t.getFamilyName=function(e){if(!e)return null;let t=null;e.familyName?t=e.familyName:e.name&&(t=e.name.split(" ").pop());return t},t.getDescription=function(e){if(!e)return null;let t=null;return e.description&&(t=e.description),t},t.getAvatarUrl=function(e){if(!e)return null;let t=null;return e.image&&e.image.map(e=>"avatar"===e.name?t=e.contentUrl:null),t},t.getVerifiedAccounts=function(e,t){if(!e)return null;const r=[];return e.hasOwnProperty("account")&&t&&e.account.map(e=>{let n=!1,i=null;return t.map(t=>(t.hasOwnProperty("proof_url")&&(t.proofUrl=t.proof_url),!(!t.valid||t.service!==e.service||t.identifier!==e.identifier||!t.proofUrl||(n=!0,i=t.proofUrl,0)))),n?(e.proofUrl=i,r.push(e),e):null}),r},t.getOrganizations=function(e){return e?e.hasOwnProperty("worksFor")?e.worksFor:[]:null},t.getConnections=function(e){if(!e)return null;let t=[];return e.hasOwnProperty("knows")&&(t=e.knows),t},t.getAddress=function(e){if(!e)return null;let t=null;if(e.hasOwnProperty("address")){const r=[];e.address.hasOwnProperty("streetAddress")&&r.push(e.address.streetAddress),e.address.hasOwnProperty("addressLocality")&&r.push(e.address.addressLocality),e.address.hasOwnProperty("postalCode")&&r.push(e.address.postalCode),e.address.hasOwnProperty("addressCountry")&&r.push(e.address.addressCountry),r.length&&(t=r.join(", "))}return t},t.getBirthDate=function(e){if(!e)return null;const t=["January","February","March","April","May","June","July","August","September","October","November","December"];let r=null;if(e.hasOwnProperty("birthDate")){const n=new Date(e.birthDate);r=`${t[n.getMonth()]} ${n.getDate()}, ${n.getFullYear()}`}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42);function i(e,t,r,i=null,o=null){null===o&&(o=".default");const a={version:1,blockchain_id:i,app_private_key:r,app_domain:e,methods:t,app_public_keys:[{public_key:n.SECP256K1Client.derivePublicKey(r),device_id:o}],device_id:o};return new n.TokenSigner("ES256k",r).sign(a)}function o(e,t,r,n){return Promise.resolve().then(()=>{if(!n)throw new Error("Missing API password")}).then(()=>{return fetch(`http://${e}:${t}/v1/auth?authRequest=${r}`,{headers:{Authorization:`bearer ${n}`}})}).then(e=>{if(!e.ok)throw new Error("HTTP status not OK");return e.text()}).then(e=>{const t=JSON.parse(e).token;if(!t)throw new Error("Failed to get Core session token");return t}).catch(e=>{throw console.error(e),new Error("Invalid Core response: not JSON")})}r(126),t.makeCoreSessionRequest=i,t.sendCoreSessionRequest=o,t.getCoreSession=function(e,t,r,a,s=null,u=null,c="0"){if(!u)return Promise.reject("No authRequest provided");let l=null,f=null;try{if(!(f=n.decodeToken(u)))return Promise.reject("Invalid authRequest in URL query string");if(!f.payload)return Promise.reject("Invalid authRequest in URL query string");l=f.payload}catch(e){return console.error(e.stack),Promise.reject("Failed to parse authRequest in URL")}const h=l.domain_name;return h?o(e,t,i(h,l.scopes,a,s,c),r):Promise.reject("No domain_name in authRequest")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(103);t.Profile=n.Profile;var i=r(593);t.Person=i.Person,t.Organization=i.Organization,t.CreativeWork=i.CreativeWork,t.resolveZoneFileToPerson=i.resolveZoneFileToPerson;var o=r(44);t.signProfileToken=o.signProfileToken,t.wrapProfileToken=o.wrapProfileToken,t.verifyProfileToken=o.verifyProfileToken,t.extractProfile=o.extractProfile;var a=r(239);t.validateProofs=a.validateProofs;var s=r(252);t.containsValidProofStatement=s.containsValidProofStatement,t.containsValidAddressProofStatement=s.containsValidAddressProofStatement;var u=r(101);t.makeProfileZoneFile=u.makeProfileZoneFile,t.getTokenFileUrl=u.getTokenFileUrl,t.resolveZoneFileToProfile=u.resolveZoneFileToProfile;var c=r(235);t.lookupProfile=c.lookupProfile},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(142);t.Person=n.Person;var i=r(594);t.Organization=i.Organization;var o=r(595);t.CreativeWork=o.CreativeWork;var a=r(253);t.getPersonFromLegacyFormat=a.getPersonFromLegacyFormat;var s=r(596);t.resolveZoneFileToPerson=s.resolveZoneFileToPerson},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(102)),o=r(44),a=r(103),s={type:"object",properties:{"@context":{type:"string",optional:!0},"@type":{type:"string"},"@id":{type:"string",optional:!0}}};class u extends a.Profile{constructor(e={}){super(e),this._profile=Object.assign({},{"@type":"Organization"},this._profile)}static validateSchema(e,t=!1){return s.strict=t,i.default.validate(s,e)}static fromToken(e,t=null){const r=o.extractProfile(e,t);return new u(r)}}t.Organization=u},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(102)),o=r(44),a=r(103),s={type:"object",properties:{"@context":{type:"string",optional:!0},"@type":{type:"string"},"@id":{type:"string",optional:!0}}};class u extends a.Profile{constructor(e={}){super(e),this._profile=Object.assign({},{"@type":"CreativeWork"},this._profile)}static validateSchema(e,t=!1){return s.strict=t,i.default.validate(s,e)}static fromToken(e,t=null){const r=o.extractProfile(e,t);return new u(r)}}t.CreativeWork=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(236),i=r(142),o=r(101),a=r(44);t.resolveZoneFileToPerson=function(e,t,r){let s=null;try{if(!(s=n.parseZoneFile(e)).hasOwnProperty("$origin"))throw s=null,new Error("zone file is missing an origin")}catch(e){console.error(e)}let u=null;if(s&&Object.keys(s).length>0)(u=o.getTokenFileUrl(s))?fetch(u).then(e=>e.text()).then(e=>JSON.parse(e)).then(e=>{const n=e[0].token,i=a.extractProfile(n,t);r(i)}).catch(e=>{console.warn(e)}):(console.warn("Token file url not found"),r({}));else{let t=null;try{t=JSON.parse(e),t=i.Person.fromLegacyFormat(t).profile()}catch(e){console.warn(e)}r(t)}}},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0});var i=r(254);t.makePreorderSkeleton=i.makePreorderSkeleton;var o=r(598);t.transactions=o.transactions,n(r(150)),n(r(255));var a=r(599);t.safety=a.safety},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(38)),i=r(150),o=r(254),a=r(39),s=r(31),u=r(255),c="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",l="ffffffffffffffffffffffffffffffffffffffff";function f(e,t,r,n=!0){if(e.length<=0)throw new Error("Owner has no UTXOs for UPDATE.");e.sort((e,t)=>e.value-t.value);const i=e[0],o=r.addInput(i.tx_hash,i.tx_output_n);return n&&r.addOutput(t,i.value),{index:o,value:i.value}}function h(e,t,r,n,o,a=null){null===a&&(a=e.addOutput(t,i.DUST_MINIMUM));const s=i.estimateTXBytes(e,0,0)*n,u=i.sumOutputValues(e),c=i.addUTXOsToFund(e,r,s+u-o,n);return i.getTransactionInsideBuilder(e).outs[a].value+=c,e}function d(e,t=!1){return t?e.buildIncomplete().toHex():e.build().toHex()}function p(e){return"string"==typeof e?u.PubkeyHashSigner.fromHexString(e):e}t.transactions={makeRenewal:function(e,t,r,s,u=null,c=null,l=!1){const m=a.config.network;!c&&u&&(c=i.hash160(Buffer.from(u)).toString("hex"));const g=e.split(".").pop(),v=p(s),b=p(r);return Promise.all([b.getAddress(),v.getAddress()]).then(([r,a])=>{const s=Promise.all([m.getNamePrice(e),m.getNamespaceBurnAddress(g)]).then(([n,i])=>o.makeRenewalSkeleton(e,t,r,i,n,c)).then(e=>{const t=n.default.TransactionBuilder.fromTransaction(e,m.layer1);return t.setVersion(1),t});return Promise.all([s,m.getUTXOs(a),m.getUTXOs(r),m.getFeeRate()]).then(([e,t,o,s])=>{const u=f(o,r,e,!1),c=i.getTransactionInsideBuilder(e).outs[2],l=n.default.address.fromOutputScript(c.script,m.layer1);if(l!==r)return Promise.reject(new Error(`Original owner ${r} should have an output at `+`index 2 in transaction was ${l}`));c.value=u.value;const d=h(e,a,t,s,u.value);return i.signInputs(d,v,[{index:u.index,signer:b}])})}).then(e=>d(e,l))},makeUpdate:function(e,t,r,s,u="",c=!1){const l=a.config.network;if(!u&&!s)return Promise.reject(new Error("Need zonefile or valueHash arguments"));if(0===u.length){if(!s)return Promise.reject(new Error("Need zonefile or valueHash arguments"));u=i.hash160(Buffer.from(s)).toString("hex")}else if(40!==u.length)return Promise.reject(new Error(`Invalid valueHash ${u}`));const m=p(r),g=p(t);return Promise.all([g.getAddress(),m.getAddress()]).then(([t,r])=>{const a=l.getConsensusHash().then(t=>o.makeUpdateSkeleton(e,t,u)).then(e=>{const t=n.default.TransactionBuilder.fromTransaction(e,l.layer1);return t.setVersion(1),t});return Promise.all([a,l.getUTXOs(r),l.getUTXOs(t),l.getFeeRate()]).then(([e,n,o,a])=>{const s=f(o,t,e),u=h(e,r,n,a,s.value);return i.signInputs(u,m,[{index:s.index,signer:g}])})}).then(e=>d(e,c))},makePreorder:function(e,t,r,s=!1){const u=a.config.network,c=e.split(".").pop(),l=p(r);return l.getAddress().then(r=>{const a=Promise.all([u.getConsensusHash(),u.getNamePrice(e),u.getNamespaceBurnAddress(c)]).then(([n,i,a])=>o.makePreorderSkeleton(e,n,r,a,i,t));return Promise.all([u.getUTXOs(r),u.getFeeRate(),a]).then(([e,t,o])=>{const a=n.default.TransactionBuilder.fromTransaction(o,u.layer1);a.setVersion(1);const s=h(a,r,e,t,0,1);return i.signInputs(s,l)}).then(e=>d(e,s))})},makeRegister:function(e,t,r,s=null,u=null,c=!1){const l=a.config.network;if(!u&&s)u=i.hash160(Buffer.from(s)).toString("hex");else if(u&&40!==u.length)return Promise.reject(new Error(`Invalid zonefile hash ${u}`));const f=o.makeRegisterSkeleton(e,t,u),m=n.default.TransactionBuilder.fromTransaction(f,l.layer1);m.setVersion(1);const g=p(r);return g.getAddress().then(e=>Promise.all([l.getUTXOs(e),l.getFeeRate()]).then(([t,r])=>{const n=h(m,e,t,r,0);return i.signInputs(n,g)})).then(e=>d(e,c))},makeTransfer:function(e,t,r,s,u=!1,c=!1){const l=a.config.network,m=p(s),g=p(r);return Promise.all([g.getAddress(),m.getAddress()]).then(([r,a])=>{const s=l.getConsensusHash().then(r=>o.makeTransferSkeleton(e,r,t,u)).then(e=>{const t=n.default.TransactionBuilder.fromTransaction(e,l.layer1);return t.setVersion(1),t});return Promise.all([s,l.getUTXOs(a),l.getUTXOs(r),l.getFeeRate()]).then(([e,t,n,o])=>{const s=f(n,r,e),u=h(e,a,t,o,s.value);return i.signInputs(u,m,[{index:s.index,signer:g}])})}).then(e=>d(e,c))},makeRevoke:function(e,t,r,s=!1){const u=a.config.network,c=p(r),l=p(t);return Promise.all([l.getAddress(),c.getAddress()]).then(([t,r])=>{const a=o.makeRevokeSkeleton(e),s=n.default.TransactionBuilder.fromTransaction(a,u.layer1);return s.setVersion(1),Promise.all([s,u.getUTXOs(r),u.getUTXOs(t),u.getFeeRate()]).then(([e,n,o,a])=>{const s=f(o,t,e),u=h(e,r,n,a,s.value);return i.signInputs(u,c,[{index:s.index,signer:l}])})}).then(e=>d(e,s))},makeNamespacePreorder:function(e,t,r,s=!1){const u=a.config.network,c=p(r);return c.getAddress().then(r=>{const a=Promise.all([u.getConsensusHash(),u.getNamespacePrice(e)]).then(([n,i])=>o.makeNamespacePreorderSkeleton(e,n,r,t,i));return Promise.all([u.getUTXOs(r),u.getFeeRate(),a]).then(([e,t,o])=>{const a=n.default.TransactionBuilder.fromTransaction(o,u.layer1);a.setVersion(1);const s=h(a,r,e,t,0,1);return i.signInputs(s,c)}).then(e=>d(e,s))})},makeNamespaceReveal:function(e,t,r,s=!1){const u=a.config.network;if(!e.check())return Promise.reject(new Error("Invalid namespace"));const c=o.makeNamespaceRevealSkeleton(e,t),l=p(r);return l.getAddress().then(e=>Promise.all([u.getUTXOs(e),u.getFeeRate()]).then(([t,r])=>{const o=n.default.TransactionBuilder.fromTransaction(c,u.layer1);o.setVersion(1);const a=h(o,e,t,r,0);return i.signInputs(a,l)})).then(e=>d(e,s))},makeNamespaceReady:function(e,t,r=!1){const s=a.config.network,u=o.makeNamespaceReadySkeleton(e),c=p(t);return c.getAddress().then(e=>Promise.all([s.getUTXOs(e),s.getFeeRate()]).then(([t,r])=>{const o=n.default.TransactionBuilder.fromTransaction(u,s.layer1);o.setVersion(1);const a=h(o,e,t,r,0);return i.signInputs(a,c)})).then(e=>d(e,r))},makeBitcoinSpend:function(e,t,r,o=!1){if(r<=0)return Promise.reject(new s.InvalidParameterError("amount","amount must be greater than zero"));const u=a.config.network,c=p(t);return c.getAddress().then(t=>Promise.all([u.getUTXOs(t),u.getFeeRate()]).then(([o,a])=>{const l=new n.default.TransactionBuilder(u.layer1);l.setVersion(1);const f=l.addOutput(e,0);let h;try{h=i.addUTXOsToFund(l,o,r,a,!1)}catch(e){if("NotEnoughFundsError"!==e.name)throw e;r-=e.leftToFund,h=0}let d=a*i.estimateTXBytes(l,0,0);const p=a*i.estimateTXBytes(l,0,1)-d;h>p&&(d+=p,l.addOutput(t,h));const m=r-d;if(md(e,o))},makeNameImport:function(e,t,r,s,u=!1){const c=a.config.network,l=o.makeNameImportSkeleton(e,t,r),f=p(s);return f.getAddress().then(e=>Promise.all([c.getUTXOs(e),c.getFeeRate()]).then(([t,r])=>{const o=h(n.default.TransactionBuilder.fromTransaction(l,c.layer1),e,t,r,0);return i.signInputs(o,f)})).then(e=>d(e,u))},makeAnnounce:function(e,t,r=!1){const s=a.config.network,u=o.makeAnnounceSkeleton(e),c=p(t);return c.getAddress().then(e=>Promise.all([s.getUTXOs(e),s.getFeeRate()]).then(([t,r])=>{const o=h(n.default.TransactionBuilder.fromTransaction(u,s.layer1),e,t,r,0);return i.signInputs(o,c)})).then(e=>d(e,r))},makeTokenTransfer:function(e,t,r,s,u,c,l=!1){const m=a.config.network,g=!!c,v=p(u),b=c?p(c):v,y=m.getConsensusHash().then(n=>o.makeTokenTransferSkeleton(e,n,t,r,s));return Promise.all([v.getAddress(),b.getAddress()]).then(([e,t])=>{const r=g?m.getUTXOs(t):Promise.resolve([]);return Promise.all([m.getUTXOs(e),r,m.getFeeRate(),y]).then(([r,o,a,s])=>{const u=n.default.TransactionBuilder.fromTransaction(s,m.layer1);if(g){const n=f(r,e,u),s=h(u,t,o,a,n.value);return i.signInputs(s,b,[{index:n.index,signer:v}])}{const t=h(u,e,r,a,0);return i.signInputs(t,v)}})}).then(e=>d(e,l))},BlockstackNamespace:o.BlockstackNamespace,estimatePreorder:function(e,t,r,n=1){const s=a.config.network,u=s.getNamePrice(e).then(n=>o.makePreorderSkeleton(e,c,r,s.getDefaultBurnAddress(),n,t));return Promise.all([s.getFeeRate(),u]).then(([e,t])=>{const r=i.sumOutputValues(t);return e*i.estimateTXBytes(t,n,0)+r})},estimateRegister:function(e,t,r,n=!1,s=1){const u=a.config.network;let c;n&&(c=l);const f=o.makeRegisterSkeleton(e,t,c);return u.getFeeRate().then(e=>{const t=i.sumOutputValues(f);return e*i.estimateTXBytes(f,s,1)+t})},estimateTransfer:function(e,t,r,n,s=1){const u=a.config.network,l=o.makeTransferSkeleton(e,c,t);return u.getFeeRate().then(e=>{const t=i.sumOutputValues(l);return e*i.estimateTXBytes(l,1+s,2)+t})},estimateUpdate:function(e,t,r,n=1){const s=a.config.network,u=o.makeUpdateSkeleton(e,c,l);return s.getFeeRate().then(e=>{const t=i.sumOutputValues(u);return e*i.estimateTXBytes(u,1+n,2)+t})},estimateRenewal:function(e,t,r,n,s=!1,u=1){const c=a.config.network;let f;s&&(f=l);const h=c.getNamePrice(e).then(n=>o.makeRenewalSkeleton(e,t,r,c.getDefaultBurnAddress(),n,f));return Promise.all([c.getFeeRate(),h]).then(([e,t])=>{const r=i.sumOutputValues(t);return e*i.estimateTXBytes(t,1+u,1)+r-5500})},estimateRevoke:function(e,t,r,n=1){const s=a.config.network,u=o.makeRevokeSkeleton(e);return Promise.all([s.getFeeRate()]).then(([e])=>{const t=i.sumOutputValues(u);return e*i.estimateTXBytes(u,1+n,2)+t})},estimateNamespacePreorder:function(e,t,r,n=1){const s=a.config.network,u=s.getNamespacePrice(e).then(n=>o.makeNamespacePreorderSkeleton(e,c,r,t,n));return Promise.all([s.getFeeRate(),u]).then(([e,t])=>{const r=i.sumOutputValues(t);return e*i.estimateTXBytes(t,n,0)+r})},estimateNamespaceReveal:function(e,t,r,n=1){const s=a.config.network,u=o.makeNamespaceRevealSkeleton(e,t);return s.getFeeRate().then(e=>{const t=i.sumOutputValues(u);return e*i.estimateTXBytes(u,n,1)+t})},estimateNamespaceReady:function(e,t=1){const r=a.config.network,n=o.makeNamespaceReadySkeleton(e);return r.getFeeRate().then(e=>{const r=i.sumOutputValues(n);return e*i.estimateTXBytes(n,t,1)+r})},estimateNameImport:function(e,t,r,n=1){const s=a.config.network,u=o.makeNameImportSkeleton(e,t,r);return s.getFeeRate().then(e=>{const t=i.sumOutputValues(u);return e*i.estimateTXBytes(u,n,1)+t})},estimateAnnounce:function(e,t=1){const r=a.config.network,n=o.makeAnnounceSkeleton(e);return r.getFeeRate().then(e=>{const r=i.sumOutputValues(n);return e*i.estimateTXBytes(n,t,1)+r})},estimateTokenTransfer:function(e,t,r,n,s=1,u=1){const l=a.config.network,f=o.makeTokenTransferSkeleton(e,c,t,r,n);return l.getFeeRate().then(e=>{const t=i.sumOutputValues(f);return e*i.estimateTXBytes(f,s,u)+t})}}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(39);function i(e=""){const t=/^[a-z0-9\-_+]+$/;if(!e||e.length>37)return Promise.resolve(!1);const r=e.split(".");return 2!==r.length?Promise.resolve(!1):Promise.resolve(r.reduce((e,r)=>!!e&&t.test(r),!0))}t.safety={addressCanReceiveName:function(e){return n.config.network.getNamesOwned(e).then(e=>Promise.all(e.map(e=>i(e))).then(e=>e.filter(e=>e).length<25))},isInGracePeriod:function(e){const t=n.config.network;return Promise.all([t.getNameInfo(e),t.getBlockHeight(),t.getGracePeriod(e)]).then(([e,t,r])=>{const n=e.expire_block;return t>=n&&t{if("Name not found"===e.message)return!1;throw e})},ownsName:function(e,t){return n.config.network.getNameInfo(e).then(e=>e.address===t).catch(e=>{if("Name not found"===e.message)return!1;throw e})},isNameAvailable:function(e){return n.config.network.getNameInfo(e).then(()=>!1).catch(e=>{if("Name not found"===e.message)return!0;throw e})},isNameValid:i,isNamespaceValid:function(e){return Promise.resolve(null!==e.match(/^[a-z0-9\-_]{1,19}$/))},isNamespaceAvailable:function(e){return n.config.network.getNamespaceInfo(e).then(()=>!1).catch(e=>{if("Namespace not found"===e.message)return!0;throw e})},revealedNamespace:function(e,t){return n.config.network.getNamespaceInfo(e).then(e=>e.recipient_address===t).catch(e=>{if("Namespace not found"===e.message)return!1;throw e})},namespaceIsReady:function(e){return n.config.network.getNamespaceInfo(e).then(e=>e.ready).catch(e=>{if("Namespace not found"===e.message)return!1;throw e})},namespaceIsRevealed:function(e){return n.config.network.getNamespaceInfo(e).then(e=>!e.ready).catch(e=>{if("Namespace not found"===e.message)return!1;throw e})},isAccountSpendable:function(e,t,r){return n.config.network.getAccountStatus(e,t).then(e=>e.transfer_send_block_id>=r)}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(r(14)),s=i(r(38)),u=o(r(256)),c=o(r(227)),l=r(26),f=r(257),h=0,d=888,p=0,m=44,g=0,v=0,b="EXTERNAL_ADDRESS",y="CHANGE_ADDRESS";function _(e){return l.ecPairToHexString(s.ECPair.fromPrivateKey(e.privateKey))}function w(e){return e.publicKey.toString("hex")}class k{constructor(e){this.rootNode=e}toBase58(){return this.rootNode.toBase58()}static fromSeedBuffer(e){return new k(c.default.fromSeed(e))}static fromBase58(e){return new k(c.default.fromBase58(e))}static fromEncryptedMnemonic(e,t){return f.decryptMnemonic(e,t).then(e=>{const t=u.default.mnemonicToSeed(e);return new k(c.default.fromSeed(t))}).catch(e=>{throw e.message&&e.message.startsWith("bad header;")?new Error("Incorrect password"):e})}static generateMnemonic(){return u.default.generateMnemonic(128,a.randomBytes)}static encryptMnemonic(e,t){return n(this,void 0,void 0,function*(){return(yield f.encryptMnemonic(e,t)).toString("hex")})}getIdentityPrivateKeychain(){return this.rootNode.deriveHardened(d).deriveHardened(p)}getBitcoinPrivateKeychain(){return this.rootNode.deriveHardened(m).deriveHardened(g).deriveHardened(v)}getBitcoinNode(e,t=b){return k.getNodeFromBitcoinKeychain(this.getBitcoinPrivateKeychain().toBase58(),e,t)}getIdentityAddressNode(e){return this.getIdentityPrivateKeychain().deriveHardened(e)}static getAppsNode(e){return e.deriveHardened(h)}getIdentitySalt(){const e=w(this.getIdentityPrivateKeychain());return a.default.createHash("sha256").update(e).digest("hex")}getBitcoinAddress(e){return k.getAddressFromBIP32Node(this.getBitcoinNode(e))}getBitcoinPrivateKey(e){return _(this.getBitcoinNode(e))}getBitcoinPublicKeychain(){return this.getBitcoinPrivateKeychain().neutered()}getIdentityPublicKeychain(){return this.getIdentityPrivateKeychain().neutered()}static getNodeFromBitcoinKeychain(e,t,r=b){let n;if(r===b)n=0;else{if(r!==y)throw new Error("Invalid chain type");n=1}return c.default.fromBase58(e).derive(n).derive(t)}static getAddressFromBitcoinKeychain(e,t,r=b){return k.getAddressFromBIP32Node(k.getNodeFromBitcoinKeychain(e,t,r))}static getLegacyAppPrivateKey(e,t,r){const n=function(e){let t=0;if(0===e.length)return t;for(let r=0;r{if(e.length>6)throw new Error("Invalid hex string length");o=o.deriveHardened(parseInt(e,16))}),_(o).slice(0,64)}getIdentityKeyPair(e,t=!1){const r=this.getIdentityAddressNode(e),n=k.getAddressFromBIP32Node(r);let i=_(r);return t&&66===i.length&&(i=i.slice(0,64)),{key:i,keyID:w(r),address:n,appsNodeKey:k.getAppsNode(r).toBase58(),salt:this.getIdentitySalt()}}}t.BlockstackWallet=k},function(e,t,r){"use strict";!function(t){for(var r=[null,0,{}],n=10,i=44032,o=4352,a=4449,s=4519,u=19,c=21,l=28,f=c*l,h=u*f,d=function(e,t){this.codepoint=e,this.feature=t},p={},m=[],g=0;g<=255;++g)m[g]=0;var v=[function(e,t,n){return t<60||13311>8&255]>n&&(p[t]=i),i},function(e,t,r){return r?e(t,r):new d(t,null)},function(e,t,r){var n;if(t=55296&&e<=56319},d.isLowSurrogate=function(e){return e>=56320&&e<=57343},d.prototype.prepFeature=function(){this.feature||(this.feature=d.fromCharCode(this.codepoint,!0).feature)},d.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},d.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},d.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},d.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},d.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},d.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?d.fromCharCode(t):null};var b=function(e){this.str=e,this.cursor=0};b.prototype.next=function(){if(this.str&&this.cursor0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var w=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};w.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass=i.window))return a();!function(e){r=new n.Deferrals(e,{parent:t,filename:"/Users/max/src/iced/iced-runtime/src/library.iced",funcname:"Pipeliner.waitInQueue"}),i.cb=r.defer({lineno:100}),r._fulfill()}(s)})(e)})(function(i){return function(){i.n_out++,function(e){if(!i.delay)return e();!function(e){r=new n.Deferrals(e,{parent:t,filename:"/Users/max/src/iced/iced-runtime/src/library.iced",funcname:"Pipeliner.waitInQueue"}),setTimeout(r.defer({lineno:108}),i.delay),r._fulfill()}(e)}(function(){return e()})}}(this))},t.prototype.__defer=function(e,t){var r,i,o,a,u;o=n.findDeferral(arguments),function(r){a=new n.Deferrals(r,{parent:o,filename:"/Users/max/src/iced/iced-runtime/src/library.iced",funcname:"Pipeliner.__defer"}),i=a.defer({lineno:122}),e[0]=function(){var e,r;return e=1<=arguments.length?s.call(arguments,0):[],null!=(r=t.assign_fn)&&r.apply(null,e),i()},a._fulfill()}((u=this,function(){if(u.n_out--,u.cb)return r=u.cb,u.cb=null,r()}))},t.prototype._defer=function(e){var t;return t=[],this.__defer(t,e),t[0]},t.prototype.flush=function(e){var t,r,i,o,a;r=e,t=n.findDeferral(arguments),o=this,(i=function(e){var r,s;if(r=e,s=function(){return n.trampoline(function(){return i(e)})},!o.n_out)return r();!function(e){a=new n.Deferrals(e,{parent:t,filename:"/Users/max/src/iced/iced-runtime/src/library.iced",funcname:"Pipeliner.flush"}),o.cb=a.defer({lineno:151}),a._fulfill()}(s)})(r)},t}()}).call(this)},function(e,t,r){"use strict";(function(){t.Generator=r(613).Generator}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i;n=r(17),i=function(){},e=e=function(){function e(e){e=e||{},this.lazy_loop_delay=e.lazy_loop_delay||30,this.loop_delay=e.loop_delay||5,this.work_min=e.work_min||1,this.auto_stop_bits=e.auto_stop_bits||4096,this.max_bits_per_delta=e.max_bits_per_delta||4,this.auto_stop=!e.auto_stop||e.auto_stop,this.entropies=[],this.running=!0,this.is_generating=!1,this.timer_race_loop()}return e.prototype.generate=function(e,t){var r,i,o,a,s,u;a=n.findDeferral(arguments),this.is_generating=!0,this.running||this.resume(),i=0,o=[],(u=this,function(t){var c,l;c=[],(l=function(t){var f,h;if(f=function(){return n.trampoline(function(){return l(t)})},h=function(e){return c.push(e),f()},!(i7500)throw new Error("generate cannot generate > 7500 bits in 1 call.");if(this.reseed_counter>=1e4)throw new Error("Need a reseed!");for(t=[],0;0===t.length||t.length*t[0].length*4100))return e();!function(e){a=new s.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/drbg.iced",funcname:"ADRBG.generate"}),u.gen_seed(256,a.defer({assign_fn:function(){return i=arguments[0]},lineno:153})),a._fulfill()}(function(){return e(u.drbg.reseed(i))})}(function(){return r=u.drbg.generate(e),u.lock.release(),t(r)})})}}(this))},e}(),t.DRBG=n,t.ADRBG=e}).call(this)}).call(this,r(0).Buffer)},function(e,t,r){"use strict";(function(){var e,n,i,o,a={}.hasOwnProperty;o=r(17),t.Lock=e=function(){function e(){this._open=!0,this._waiters=[]}return e.prototype.acquire=function(e){return this._open?(this._open=!1,e()):this._waiters.push(e)},e.prototype.release=function(){return this._waiters.length?this._waiters.shift()():this._open=!0},e.prototype.open=function(){return this._open},e}(),n=function(t){function r(e,t){this.tab=e,this.name=t,r.__super__.constructor.call(this),this.refs=0}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r.prototype.incref=function(){return++this.refs},r.prototype.decref=function(){return--this.refs},r.prototype.release=function(){if(r.__super__.release.call(this),0===this.decref())return delete this.tab.locks[this.name]},r}(),t.Table=function(){function e(){this.locks={}}return e.prototype.create=function(e){var t;return t=new n(this,e),this.locks[e]=t},e.prototype.acquire=function(e,t,r){var n,i,a,s;a=o.findDeferral(arguments),n=this.locks[e]||this.create(e),i=n._open,n.incref(),function(e){if(!r&&!n._open)return e(n=null);!function(e){s=new o.Deferrals(e,{parent:a,filename:"/Users/max/src/iced/iced-lock/index.iced",funcname:"Table.acquire"}),n.acquire(s.defer({lineno:69})),s._fulfill()}(e)}(function(){return t(n,i)})},e.prototype.lookup=function(e){return this.locks[e]},e}(),i=function(){function e(e){this.table=e.table,this.key=e.key,this.seqid=null,this.waiter=null,this.open=!0,this.refs=0}return e.prototype._incref=function(){return++this.refs},e.prototype._decref=function(){if(0==--this.refs)return this.table._remove({key:this.key})},e.prototype._enter=function(e,t){var r,n;return r=e.seqid,this.open?(this.open=!1,this.seqid=r,t(null,this)):null!=this.waiter?(r>this.waiter.seqid?(n=this.waiter,this.waiter={cb:t,seqid:r},n.cb(new Error("our seqid="+n.seqid+" was preempted by "+r))):t(new Error("our seqid="+r+" is too stale (since "+this.waiter.seqid+" is ahead of us)")),this._decref()):r>this.seqid?this.waiter={seqid:r,cb:t}:(t(new Error("our seqid="+r+" is too stale (since "+this.seqid+" is already in flight)")),this._decref())},e.prototype.release=function(){var e,t;return null!=this.waiter?(t=this.waiter,this.seqid=t.seqid,e=t.cb,this.waiter=null,e(null,this)):(this.open=!0,this.seqid=null),this._decref()},e}(),t.SingleFlightTable=function(){function e(){this._jobs={}}return e.prototype._create=function(e){var t;return t=e.key,this._jobs[t]=new i({table:this,key:t})},e.prototype._remove=function(e){var t;return t=e.key,delete this._jobs[t]},e.prototype.enter=function(e,t){var r,n,i;return i=e.seqid,r=e.key,(n=this._jobs[r]||this._create({key:r}))._incref(),n._enter({seqid:i},t)},e}()}).call(this)},function(e,t,r){"use strict";(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,e,n.depth)}function u(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function c(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&S(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return v(i)||(i=l(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(S(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return f(r)}var c,_="",x=!1,E=["{","}"];(d(r)&&(x=!0,E=["[","]"]),S(r))&&(_=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(_=" "+RegExp.prototype.toString.call(r)),w(r)&&(_=" "+Date.prototype.toUTCString.call(r)),k(r)&&(_=" "+f(r)),0!==a.length||x&&0!=r.length?n<0?y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=x?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,_,E)):E[0]+_+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),O(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=m(r)?l(e,u.value,null):l(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function y(e){return _(e)&&"[object RegExp]"===x(e)}function _(e){return"object"==typeof e&&null!==e}function w(e){return _(e)&&"[object Date]"===x(e)}function k(e){return _(e)&&("[object Error]"===x(e)||e instanceof Error)}function S(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(b(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=p,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=y,t.isObject=_,t.isDate=w,t.isError=k,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(617);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(3),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o>>31),f=(n<<5|n>>>27)+u+i[c],f+=c<20?1518500249+(o&a|~o&s):c<40?1859775393+(o^a^s):c<60?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,u=s,s=a,a=o<<30|o>>>2,o=n,n=f;return r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},r.prototype._doFinalize=function(){var e,t,r,n;return t=(e=this._data).words,n=8*this._nDataBytes,t[(r=8*e.sigBytes)>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),a=a=function(e){var t;return t=(new n).finalize(e),e.scrub(),t},t.SHA1=n,t.transform=a}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a={}.hasOwnProperty;i=r(13).WordArray,n=r(154).SHA256,e=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.output_size=28,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=new i([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},t.prototype._doFinalize=function(){var e;return(e=t.__super__._doFinalize.call(this)).sigBytes-=4,e},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(),o=function(t){var r;return r=(new e).finalize(t),t.scrub(),r},t.SHA224=e,t.transform=o}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;s=r(13),o=s.X64WordArray,s.WordArray,i=(u=r(53)).SHA512,e=u.Global,n=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,i),r.output_size=48,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new o(e.convert([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]))},r.prototype._doFinalize=function(){var e;return(e=r.__super__._doFinalize.call(this)).sigBytes-=16,e},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),a=function(e){var t;return t=(new n).finalize(e),e.scrub(),t},t.SHA384=n,t.transform=a}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c,l,f={}.hasOwnProperty;c=r(13).WordArray,a=r(33).Hasher,i=function(){return function(){var e;this.T=function(){var t,r;for(r=[],e=t=0;t<64;e=++t)r.push(4294967296*Math.abs(Math.sin(e+1))|0);return r}()}}(),l=new i,t.MD5=u=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,a),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.output_size=16,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new c([1732584193,4023233417,2562383102,271733878])},r.prototype._doProcessBlock=function(t,r){var i,a,u,c,f,h,d,p,m,g,v,b,y,_,w,k,S,x,E,A,O,P,T,C,j;for(T=j=0;j<16;T=++j)x=t[C=r+T],t[C]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8);return i=this._hash.words,a=t[r+0],u=t[r+1],g=t[r+2],v=t[r+3],b=t[r+4],y=t[r+5],_=t[r+6],w=t[r+7],k=t[r+8],S=t[r+9],c=t[r+10],f=t[r+11],h=t[r+12],d=t[r+13],p=t[r+14],m=t[r+15],E=i[0],A=i[1],O=i[2],P=i[3],E=e(E,A,O,P,a,7,l.T[0]),P=e(P,E,A,O,u,12,l.T[1]),O=e(O,P,E,A,g,17,l.T[2]),A=e(A,O,P,E,v,22,l.T[3]),E=e(E,A,O,P,b,7,l.T[4]),P=e(P,E,A,O,y,12,l.T[5]),O=e(O,P,E,A,_,17,l.T[6]),A=e(A,O,P,E,w,22,l.T[7]),E=e(E,A,O,P,k,7,l.T[8]),P=e(P,E,A,O,S,12,l.T[9]),O=e(O,P,E,A,c,17,l.T[10]),A=e(A,O,P,E,f,22,l.T[11]),E=e(E,A,O,P,h,7,l.T[12]),P=e(P,E,A,O,d,12,l.T[13]),O=e(O,P,E,A,p,17,l.T[14]),A=e(A,O,P,E,m,22,l.T[15]),E=n(E,A,O,P,u,5,l.T[16]),P=n(P,E,A,O,_,9,l.T[17]),O=n(O,P,E,A,f,14,l.T[18]),A=n(A,O,P,E,a,20,l.T[19]),E=n(E,A,O,P,y,5,l.T[20]),P=n(P,E,A,O,c,9,l.T[21]),O=n(O,P,E,A,m,14,l.T[22]),A=n(A,O,P,E,b,20,l.T[23]),E=n(E,A,O,P,S,5,l.T[24]),P=n(P,E,A,O,p,9,l.T[25]),O=n(O,P,E,A,v,14,l.T[26]),A=n(A,O,P,E,k,20,l.T[27]),E=n(E,A,O,P,d,5,l.T[28]),P=n(P,E,A,O,g,9,l.T[29]),O=n(O,P,E,A,w,14,l.T[30]),A=n(A,O,P,E,h,20,l.T[31]),E=o(E,A,O,P,y,4,l.T[32]),P=o(P,E,A,O,k,11,l.T[33]),O=o(O,P,E,A,f,16,l.T[34]),A=o(A,O,P,E,p,23,l.T[35]),E=o(E,A,O,P,u,4,l.T[36]),P=o(P,E,A,O,b,11,l.T[37]),O=o(O,P,E,A,w,16,l.T[38]),A=o(A,O,P,E,c,23,l.T[39]),E=o(E,A,O,P,d,4,l.T[40]),P=o(P,E,A,O,a,11,l.T[41]),O=o(O,P,E,A,v,16,l.T[42]),A=o(A,O,P,E,_,23,l.T[43]),E=o(E,A,O,P,S,4,l.T[44]),P=o(P,E,A,O,h,11,l.T[45]),O=o(O,P,E,A,m,16,l.T[46]),A=o(A,O,P,E,g,23,l.T[47]),E=s(E,A,O,P,a,6,l.T[48]),P=s(P,E,A,O,w,10,l.T[49]),O=s(O,P,E,A,p,15,l.T[50]),A=s(A,O,P,E,y,21,l.T[51]),E=s(E,A,O,P,h,6,l.T[52]),P=s(P,E,A,O,v,10,l.T[53]),O=s(O,P,E,A,c,15,l.T[54]),A=s(A,O,P,E,u,21,l.T[55]),E=s(E,A,O,P,k,6,l.T[56]),P=s(P,E,A,O,m,10,l.T[57]),O=s(O,P,E,A,_,15,l.T[58]),A=s(A,O,P,E,d,21,l.T[59]),E=s(E,A,O,P,b,6,l.T[60]),P=s(P,E,A,O,f,10,l.T[61]),O=s(O,P,E,A,g,15,l.T[62]),A=s(A,O,P,E,S,21,l.T[63]),i[0]=i[0]+E|0,i[1]=i[1]+A|0,i[2]=i[2]+O|0,i[3]=i[3]+P|0},r.prototype._doFinalize=function(){var e,t,r,n,i,o,a,s,u,c,l;for(n=(r=this._data).words,s=8*this._nDataBytes,n[(a=8*r.sigBytes)>>>5]|=128<<24-a%32,u=Math.floor(s/4294967296),c=s,n[15+(a+64>>>9<<4)]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),n[14+(a+64>>>9<<4)]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),r.sigBytes=4*(n.length+1),this._process(),e=(i=this._hash).words,o=l=0;l<4;o=++l)t=e[o],e[o]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8);return i},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),e=function(e,t,r,n,i,o,a){var s;return((s=e+(t&r|~t&n)+i+a)<>>32-o)+t},n=function(e,t,r,n,i,o,a){var s;return((s=e+(t&n|r&~n)+i+a)<>>32-o)+t},o=function(e,t,r,n,i,o,a){var s;return((s=e+(t^r^n)+i+a)<>>32-o)+t},s=function(e,t,r,n,i,o,a){var s;return((s=e+(r^(t|~n))+i+a)<>>32-o)+t},t.transform=function(e){var t;return t=(new u).finalize(e),e.scrub(),t}}).call(this)},function(e,t,r){"use strict";(function(){var e,n,i,o,a,s,u,c,l,f,h,d,p,m={}.hasOwnProperty;p=r(13),a=p.WordArray,p.X64Word,p.X64WordArray,i=r(33).Hasher,n=function(){return function(){this._zl=new a([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),this._zr=new a([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),this._sl=new a([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),this._sr=new a([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),this._hl=new a([0,1518500249,1859775393,2400959708,2840853838]),this._hr=new a([1352829926,1548603684,1836072691,2053994217,0])}}(),e=new n,o=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)m.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,i),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.output_size=20,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new a([1732584193,4023233417,2562383102,271733878,3285377520])},r.prototype.get_output_size=function(){return this.output_size},r.prototype._doProcessBlock=function(t,r){var n,i,o,a,d,p,m,g,v,b,y,_,w,k,S,x,E,A,O,P,T,C,j;for(S=C=0;C<16;S=++C)i=t[x=r+S],t[x]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);for(n=this._hash.words,w=e._hl.words,k=e._hr.words,P=e._zl.words,T=e._zr.words,E=e._sl.words,A=e._sr.words,a=o=n[0],p=d=n[1],g=m=n[2],b=v=n[3],_=y=n[4],S=j=0;j<80;S=++j)O=o+t[r+P[S]]|0,O+=S<16?s(d,m,v)+w[0]:S<32?u(d,m,v)+w[1]:S<48?c(d,m,v)+w[2]:S<64?l(d,m,v)+w[3]:f(d,m,v)+w[4],O=(O=h(O|=0,E[S]))+y|0,o=y,y=v,v=h(m,10),m=d,d=O,O=a+t[r+T[S]]|0,O+=S<16?f(p,g,b)+k[0]:S<32?l(p,g,b)+k[1]:S<48?c(p,g,b)+k[2]:S<64?u(p,g,b)+k[3]:s(p,g,b)+k[4],O=(O=h(O|=0,A[S]))+_|0,a=_,_=b,b=h(g,10),g=p,p=O;return O=n[1]+m+b|0,n[1]=n[2]+v+_|0,n[2]=n[3]+y+a|0,n[3]=n[4]+o+p|0,n[4]=n[0]+d+g|0,n[0]=O},r.prototype._doFinalize=function(){var e,t,r,n,i,o,a,s,u;for(n=(r=this._data).words,s=8*this._nDataBytes,n[(a=8*r.sigBytes)>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r.sigBytes=4*(n.length+1),this._process(),e=(i=this._hash).words,o=u=0;u<5;o=++u)t=e[o],e[o]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8);return i},r.prototype.scrub=function(){return this._hash.scrub()},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),s=function(e,t,r){return e^t^r},u=function(e,t,r){return e&t|~e&r},c=function(e,t,r){return(e|~t)^r},l=function(e,t,r){return e&r|t&~r},f=function(e,t,r){return e^(t|~r)},h=function(e,t){return e<>>32-t},d=function(e){var t;return t=(new o).finalize(e),e.scrub(),t},t.RIPEMD160=o,t.transform=d}).call(this)},,,function(e,t,r){},,,function(e,t,r){"use strict";var n=r(18),i=r(263),o=r(631),a=r(269);function s(e){var t=new o(e),r=i(o.prototype.request,t);return n.extend(r,o.prototype,t),n.extend(r,t),r}var u=s(r(266));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=r(270),u.CancelToken=r(643),u.isCancel=r(265),u.all=function(e){return Promise.all(e)},u.spread=r(644),e.exports=u,e.exports.default=u},function(e,t,r){"use strict"; /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT - */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,r){"use strict";var n=r(18),i=r(264),o=r(632),a=r(633),s=r(269);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[a,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}}),n.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,r,i){return this.request(n.merge(i||{},{method:e,url:t,data:r}))}}),e.exports=u},function(e,t,r){"use strict";var n=r(18);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,r){"use strict";var n=r(18),i=r(634),o=r(265),a=r(266),s=r(641),u=r(642);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return c(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,r){"use strict";var n=r(18);e.exports=function(e,t,r){return n.forEach(r,function(r){e=r(e,t)}),e}},function(e,t,r){"use strict";var n=r(18);e.exports=function(e,t){n.forEach(e,function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])})}},function(e,t,r){"use strict";var n=r(268);e.exports=function(e,t,r){var i=r.config.validateStatus;!i||i(r.status)?e(r):t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,r){"use strict";var n=r(18),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,o,a={};return e?(n.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),r=n.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var n=r(18);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(18);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(270);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(56)),o=r(157),a=r(108);function s(e,t){const r=[],n=i.default.encode(JSON.stringify(t));r.push(n);const o=i.default.encode(JSON.stringify(e));return r.push(o),r.join(".")}t.createUnsecuredToken=function(e){return s(e,{typ:"JWT",alg:"none"})+"."};t.TokenSigner=class{constructor(e,t){if(!e||!t)throw new a.MissingParametersError("a signing algorithm and private key are required");if("string"!=typeof e)throw new Error("signing algorithm parameter must be a string");if(e=e.toUpperCase(),!o.cryptoClients.hasOwnProperty(e))throw new Error("invalid signing algorithm");this.tokenType="JWT",this.cryptoClient=o.cryptoClients[e],this.rawPrivateKey=t}header(e={}){const t={typ:this.tokenType,alg:this.cryptoClient.algorithmName};return Object.assign({},t,e)}sign(e,t=!1,r={}){const n=this.header(r),o=s(e,n),a=this.cryptoClient.createHash(o),u=this.cryptoClient.signHash(a,this.rawPrivateKey);return t?{header:[i.default.encode(JSON.stringify(n))],payload:JSON.stringify(e),signature:[u]}:[o,u].join(".")}}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(12),i=r(14),o=e(r(647)),a=r(649),s=r(108);class u{constructor(){}static createHash(e){return i.createHash("sha256").update(e).digest()}static loadPrivateKey(e){return 66===e.length&&(e=e.slice(0,64)),u.ec.keyFromPrivate(e)}static loadPublicKey(e){return u.ec.keyFromPublic(e,"hex")}static encodePublicKey(e,t,r){return u.keyEncoder.encodePublic(e,t,r)}static derivePublicKey(e,t=!0){if("string"!=typeof e)throw Error("private key must be a string");if(!/^[0-9A-F]+$/i.test(e))throw Error("private key must be a hex string");if(66==e.length)e=e.slice(0,64);else if(!(e.length<=64))throw Error("private key must be 66 characters or less");return u.ec.keyFromPrivate(e).getPublic(t,"hex")}static signHash(e,t,r="jose"){if(!e||!t)throw new s.MissingParametersError("a signing input hash and private key are all required");const n=u.loadPrivateKey(t).sign(e),i=Buffer.from(n.toDER());if("der"===r)return i.toString("hex");if("jose"===r)return a.derToJose(i,"ES256");throw Error("Invalid signature format")}static loadSignature(e){return a.joseToDer(e,"ES256")}static verifyHash(e,t,r){if(!(e&&t&&r))throw new s.MissingParametersError("a signing input hash, der signature, and public key are all required");return u.loadPublicKey(r).verify(e,t)}}u.ec=new n.ec("secp256k1"),u.algorithmName="ES256K",u.keyEncoder=new o.default({curveParameters:[1,3,132,0,10],privatePEMOptions:{label:"EC PRIVATE KEY"},publicPEMOptions:{label:"PUBLIC KEY"},curve:u.ec}),t.SECP256K1Client=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(648));t.default=i.default},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(7)),i=r(12),o=e(r(57)),a=o.default.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).objid().optional(),this.key("publicKey").explicit(1).bitstr().optional())}),s=o.default.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("curve").objid()),this.key("pub").bitstr())}),u={secp256k1:{curveParameters:[1,3,132,0,10],privatePEMOptions:{label:"EC PRIVATE KEY"},publicPEMOptions:{label:"PUBLIC KEY"},curve:new i.ec("secp256k1")}};class c{constructor(e){if("string"==typeof e){if("secp256k1"!==e)throw new Error("Unknown curve "+e);e=u[e]}this.options=e,this.algorithmID=[1,2,840,10045,2,1]}privateKeyObject(e,t){const r={version:new n.default(1),privateKey:Buffer.from(e,"hex"),parameters:this.options.curveParameters};return t&&(r.publicKey={unused:0,data:Buffer.from(t,"hex")}),r}publicKeyObject(e){return{algorithm:{id:this.algorithmID,curve:this.options.curveParameters},pub:{unused:0,data:Buffer.from(e,"hex")}}}encodePrivate(e,t,r){let n;if("raw"===t){if("string"!=typeof e)throw"private key must be a string";let t=this.options.curve.keyFromPrivate(e,"hex").getPublic("hex");n=this.privateKeyObject(e,t)}else if("der"===t){if("string"!=typeof e);else{if("string"!=typeof e)throw"private key must be a buffer or a string";e=Buffer.from(e,"hex")}n=a.decode(e,"der")}else{if("pem"!==t)throw"invalid private key format";if("string"!=typeof e)throw"private key must be a string";n=a.decode(e,"pem",this.options.privatePEMOptions)}if("raw"===r)return n.privateKey.toString("hex");if("der"===r)return a.encode(n,"der").toString("hex");if("pem"===r)return a.encode(n,"pem",this.options.privatePEMOptions);throw"invalid destination format for private key"}encodePublic(e,t,r){let n;if("raw"===t){if("string"!=typeof e)throw"public key must be a string";n=this.publicKeyObject(e)}else if("der"===t){if("string"!=typeof e);else{if("string"!=typeof e)throw"public key must be a buffer or a string";e=Buffer.from(e,"hex")}n=s.decode(e,"der")}else{if("pem"!==t)throw"invalid public key format";if("string"!=typeof e)throw"public key must be a string";n=s.decode(e,"pem",this.options.publicPEMOptions)}if("raw"===r)return n.pub.data.toString("hex");if("der"===r)return s.encode(n,"der").toString("hex");if("pem"===r)return s.encode(n,"pem",this.options.publicPEMOptions);throw"invalid destination format for public key"}}c.ECPrivateKeyASN=a,c.SubjectPublicKeyInfoASN=s,t.default=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(650),i=128,o=48,a=2;function s(e){if(Buffer.isBuffer(e))return e;if("string"==typeof e)return Buffer.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function u(e,t,r){for(var n=0;t+n=i&&--n,n}e.exports={derToJose:function(e,t){e=s(e);var r=n(t),u=r+1,c=e.length,l=0;if(e[l++]!==o)throw new Error('Could not find expected "seq"');var f=e[l++];if(f===(1|i)&&(f=e[l++]),c-l{const t=this.cryptoClient.loadSignature(e);this.cryptoClient.verifyHash(r,t,this.rawPublicKey)||(n=!1)}),n}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(56));t.decodeToken=function(e){if("string"==typeof e){const t=e.split(".");return{header:JSON.parse(i.default.decode(t[0])),payload:JSON.parse(i.default.decode(t[1])),signature:t[2]}}if("object"==typeof e){let t=e.payload;"{"!==e.payload[0]&&(t=i.default.decode(t));const r=[];return e.header.map(e=>{const t=JSON.parse(i.default.decode(e));r.push(t)}),{header:r,payload:JSON.parse(t),signature:e.signature}}}},function(e,t,r){"use strict";var n=r(62),i=r(11),o=r(23),a=r(273),s=r(274),u=r(158),c=r(659),l=r(660),f=r(109),h=r(672),d=function(e,t,r){var n,a=i.getTypeOf(t),l=i.extend(r||{},s);l.date=l.date||new Date,null!==l.compression&&(l.compression=l.compression.toUpperCase()),"string"==typeof l.unixPermissions&&(l.unixPermissions=parseInt(l.unixPermissions,8)),l.unixPermissions&&16384&l.unixPermissions&&(l.dir=!0),l.dosPermissions&&16&l.dosPermissions&&(l.dir=!0),l.dir&&(e=m(e)),l.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===a&&!1===l.binary&&!1===l.base64;r&&void 0!==r.binary||(l.binary=!d),(t instanceof u&&0===t.uncompressedSize||l.dir||!t||0===t.length)&&(l.base64=!1,l.binary=!0,t="",l.compression="STORE",a="string");var v=null;v=t instanceof u||t instanceof o?t:f.isNode&&f.isStream(t)?new h(e,t):i.prepareContent(e,t,l.binary,l.optimizedBinaryString,l.base64);var b=new c(e,v,l);this.files[e]=b},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:s.createFolders,e=m(e),this.files[e]||d.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1===arguments.length){if(v(e)){var n=e;return this.filter(function(e,t){return!t.dir&&n.test(e)})}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,d.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[r]);this._dict_set=!0}}function p(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}d.prototype.push=function(e,t){var r,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===u.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(r=n.deflate(s,a))&&r!==c)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==a||(this.onEnd(c),s.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=d,t.deflate=p,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},function(e,t,r){"use strict";var n,i=r(46),o=r(665),a=r(279),s=r(280),u=r(160),c=0,l=1,f=3,h=4,d=5,p=0,m=1,g=-2,v=-3,b=-5,y=-1,_=1,w=2,k=3,S=4,x=0,E=2,A=8,O=9,P=15,T=8,C=286,j=30,I=19,M=2*C+1,D=15,B=3,N=258,z=N+B+1,R=32,F=42,U=69,$=73,L=91,q=103,H=113,V=666,K=1,W=2,G=3,Z=4,Y=3;function X(e,t){return e.msg=u[t],t}function J(e){return(e<<1)-(e>4?9:0)}function Q(e){for(var t=e.length;--t>=0;)e[t]=0}function ee(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function te(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ee(e.strm)}function re(e,t){e.pending_buf[e.pending++]=t}function ne(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ie(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,c=e.window,l=e.w_mask,f=e.prev,h=e.strstart+N,d=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===p&&c[r+a-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&oa){if(e.match_start=t,a=n,n>=s)break;d=c[o+a-1],p=c[o+a]}}}while((t=f[t&l])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead}function oe(e){var t,r,n,o,u,c,l,f,h,d,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-z)){i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=p?n-p:0}while(--r);t=r=p;do{n=e.prev[--t],e.prev[t]=n>=p?n-p:0}while(--r);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,l=e.window,f=e.strstart+e.lookahead,h=o,d=void 0,(d=c.avail_in)>h&&(d=h),r=0===d?0:(c.avail_in-=d,i.arraySet(l,c.input,c.next_in,d,f),1===c.state.wrap?c.adler=a(c.adler,l,d,f):2===c.state.wrap&&(c.adler=s(c.adler,l,d,f)),c.next_in+=d,c.total_in+=d,d),e.lookahead+=r,e.lookahead+e.insert>=B)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<=B&&(e.ins_h=(e.ins_h<=B)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-B),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=B){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=B&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=B-1)),e.prev_length>=B&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-B,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-B),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(s=2,n-=16),o<1||o>O||r!==A||n<8||n>15||t<0||t>9||a<0||a>S)return X(e,g);8===n&&(n=9);var u=new ce;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(oe(e),0===e.lookahead&&t===c)return K;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,te(e,!1),0===e.strm.avail_out))return K;if(e.strstart-e.block_start>=e.w_size-z&&(te(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?G:Z):(e.strstart>e.block_start&&(te(e,!1),e.strm.avail_out),K)}),new ue(4,4,8,4,ae),new ue(4,5,16,8,ae),new ue(4,6,32,32,ae),new ue(4,4,16,16,se),new ue(8,16,32,32,se),new ue(8,16,128,128,se),new ue(8,32,128,256,se),new ue(32,128,258,1024,se),new ue(32,258,258,4096,se)],t.deflateInit=function(e,t){return he(e,t,A,P,T,x)},t.deflateInit2=he,t.deflateReset=fe,t.deflateResetKeep=le,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?g:(e.state.gzhead=t,p):g},t.deflate=function(e,t){var r,i,a,u;if(!e||!e.state||t>d||t<0)return e?X(e,g):g;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===V&&t!==h)return X(e,0===e.avail_out?b:g);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===F)if(2===i.wrap)e.adler=0,re(i,31),re(i,139),re(i,8),i.gzhead?(re(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),re(i,255&i.gzhead.time),re(i,i.gzhead.time>>8&255),re(i,i.gzhead.time>>16&255),re(i,i.gzhead.time>>24&255),re(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),re(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(re(i,255&i.gzhead.extra.length),re(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=U):(re(i,0),re(i,0),re(i,0),re(i,0),re(i,0),re(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),re(i,Y),i.status=H);else{var v=A+(i.w_bits-8<<4)<<8;v|=(i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(v|=R),v+=31-v%31,i.status=H,ne(i,v),0!==i.strstart&&(ne(i,e.adler>>>16),ne(i,65535&e.adler)),e.adler=1}if(i.status===U)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ee(e),a=i.pending,i.pending!==i.pending_buf_size));)re(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=$)}else i.status=$;if(i.status===$)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ee(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=L)}else i.status=L;if(i.status===L)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ee(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=q)}else i.status=q;if(i.status===q&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ee(e),i.pending+2<=i.pending_buf_size&&(re(i,255&e.adler),re(i,e.adler>>8&255),e.adler=0,i.status=H)):i.status=H),0!==i.pending){if(ee(e),0===e.avail_out)return i.last_flush=-1,p}else if(0===e.avail_in&&J(t)<=J(r)&&t!==h)return X(e,b);if(i.status===V&&0!==e.avail_in)return X(e,b);if(0!==e.avail_in||0!==i.lookahead||t!==c&&i.status!==V){var y=i.strategy===w?function(e,t){for(var r;;){if(0===e.lookahead&&(oe(e),0===e.lookahead)){if(t===c)return K;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(te(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?G:Z):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?K:W}(i,t):i.strategy===k?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=N){if(oe(e),e.lookahead<=N&&t===c)return K;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=B&&e.strstart>0&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+N;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=B?(r=o._tr_tally(e,1,e.match_length-B),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(te(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?G:Z):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?K:W}(i,t):n[i.level].func(i,t);if(y!==G&&y!==Z||(i.status=V),y===K||y===G)return 0===e.avail_out&&(i.last_flush=-1),p;if(y===W&&(t===l?o._tr_align(i):t!==d&&(o._tr_stored_block(i,0,0,!1),t===f&&(Q(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ee(e),0===e.avail_out))return i.last_flush=-1,p}return t!==h?p:i.wrap<=0?m:(2===i.wrap?(re(i,255&e.adler),re(i,e.adler>>8&255),re(i,e.adler>>16&255),re(i,e.adler>>24&255),re(i,255&e.total_in),re(i,e.total_in>>8&255),re(i,e.total_in>>16&255),re(i,e.total_in>>24&255)):(ne(i,e.adler>>>16),ne(i,65535&e.adler)),ee(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:m)},t.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==F&&t!==U&&t!==$&&t!==L&&t!==q&&t!==H&&t!==V?X(e,g):(e.state=null,t===H?X(e,v):p):g},t.deflateSetDictionary=function(e,t){var r,n,o,s,u,c,l,f,h=t.length;if(!e||!e.state)return g;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==F||r.lookahead)return g;for(1===s&&(e.adler=a(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(Q(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,h-r.w_size,r.w_size,0),t=f,h=r.w_size),u=e.avail_in,c=e.next_in,l=e.input,e.avail_in=h,e.next_in=0,e.input=t,oe(r);r.lookahead>=B;){n=r.strstart,o=r.lookahead-(B-1);do{r.ins_h=(r.ins_h<=0;)e[t]=0}var c=0,l=1,f=2,h=29,d=256,p=d+1+h,m=30,g=19,v=2*p+1,b=15,y=16,_=7,w=256,k=16,S=17,x=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(p+2));u(T);var C=new Array(2*m);u(C);var j=new Array(512);u(j);var I=new Array(256);u(I);var M=new Array(h);u(M);var D,B,N,z=new Array(m);function R(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function U(e){return e<256?j[e]:j[256+(e>>>7)]}function $(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function L(e,t,r){e.bi_valid>y-r?(e.bi_buf|=t<>y-e.bi_valid,e.bi_valid+=r-y):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function V(e,t,r){var n,i,o=new Array(b+1),a=0;for(n=1;n<=b;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=H(o[s]++,s))}}function K(e){var t;for(t=0;t8?$(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function G(e,t,r,n){var i=2*t,o=2*r;return e[i]>1;r>=1;r--)Z(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Z(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,Z(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,c=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(o=0;o<=b;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;rp&&(o=p,m++),u[2*n+1]=o,n>c||(e.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=u[2*n],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(l[2*n+1]+a)));if(0!==m){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>c||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),V(o,c,e.bl_count)}function J(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s>=7;n0?(e.strm.data_type===s&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t=3&&0===e.bl_tree[2*P[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),u=e.opt_len+3+7>>>3,(c=e.static_len+3+7>>>3)<=u&&(u=c)):u=c=r+5,r+4<=u&&-1!==t?te(e,t,r,n):e.strategy===i||c===u?(L(e,(l<<1)+(n?1:0),3),Y(e,T,C)):(L(e,(f<<1)+(n?1:0),3),function(e,t,r,n){var i;for(L(e,t-257,5),L(e,r-1,5),L(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(I[r]+d+1)]++,e.dyn_dtree[2*U(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){L(e,l<<1,3),q(e,w,T),function(e){16===e.bi_valid?($(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,r){"use strict";var n=r(667),i=r(46),o=r(281),a=r(283),s=r(160),u=r(282),c=r(670),l=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[r])}function h(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(e,t){var r,s,u,c,f,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(d),h.next_out=0,h.avail_out=d),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,f=o.buf2string(h.output,u),h.next_out=c,h.avail_out=d-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(f)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=f,t.inflate=h,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},t.ungzip=h},function(e,t,r){"use strict";var n=r(46),i=r(279),o=r(280),a=r(668),s=r(669),u=0,c=1,l=2,f=4,h=5,d=6,p=0,m=1,g=2,v=-2,b=-3,y=-4,_=-5,w=8,k=1,S=2,x=3,E=4,A=5,O=6,P=7,T=8,C=9,j=10,I=11,M=12,D=13,B=14,N=15,z=16,R=17,F=18,U=19,$=20,L=21,q=22,H=23,V=24,K=25,W=26,G=27,Z=28,Y=29,X=30,J=31,Q=32,ee=852,te=592,re=15;function ne(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function oe(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=k,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(ee),t.distcode=t.distdyn=new n.Buf32(te),t.sane=1,t.back=-1,p):v}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,oe(e)):v}function se(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,ae(e))):v}function ue(e,t){var r,n;return e?(n=new ie,e.state=n,n.window=null,(r=se(e,t))!==p&&(e.state=null),r):v}var ce,le,fe=!0;function he(e){if(fe){var t;for(ce=new n.Buf32(512),le=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,ce,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,le,0,e.work,{bits:5}),fe=!1}e.lencode=ce,e.lenbits=9,e.distcode=le,e.distbits=5}function de(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=o(r.check,Oe,2,0),se=0,ue=0,r.mode=S;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",r.mode=X;break}if((15&se)!==w){e.msg="unknown compression method",r.mode=X;break}if(ue-=4,ke=8+(15&(se>>>=4)),0===r.wbits)r.wbits=ke;else if(ke>r.wbits){e.msg="invalid window size",r.mode=X;break}r.dmax=1<>8&1),512&r.flags&&(Oe[0]=255&se,Oe[1]=se>>>8&255,r.check=o(r.check,Oe,2,0)),se=0,ue=0,r.mode=x;case x:for(;ue<32;){if(0===oe)break e;oe--,se+=ee[re++]<>>8&255,Oe[2]=se>>>16&255,Oe[3]=se>>>24&255,r.check=o(r.check,Oe,4,0)),se=0,ue=0,r.mode=E;case E:for(;ue<16;){if(0===oe)break e;oe--,se+=ee[re++]<>8),512&r.flags&&(Oe[0]=255&se,Oe[1]=se>>>8&255,r.check=o(r.check,Oe,2,0)),se=0,ue=0,r.mode=A;case A:if(1024&r.flags){for(;ue<16;){if(0===oe)break e;oe--,se+=ee[re++]<>>8&255,r.check=o(r.check,Oe,2,0)),se=0,ue=0}else r.head&&(r.head.extra=null);r.mode=O;case O:if(1024&r.flags&&((fe=r.length)>oe&&(fe=oe),fe&&(r.head&&(ke=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,ee,re,fe,ke)),512&r.flags&&(r.check=o(r.check,ee,fe,re)),oe-=fe,re+=fe,r.length-=fe),r.length))break e;r.length=0,r.mode=P;case P:if(2048&r.flags){if(0===oe)break e;fe=0;do{ke=ee[re+fe++],r.head&&ke&&r.length<65536&&(r.head.name+=String.fromCharCode(ke))}while(ke&&fe>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=M;break;case j:for(;ue<32;){if(0===oe)break e;oe--,se+=ee[re++]<>>=7&ue,ue-=7&ue,r.mode=G;break}for(;ue<3;){if(0===oe)break e;oe--,se+=ee[re++]<>>=1)){case 0:r.mode=B;break;case 1:if(he(r),r.mode=$,t===d){se>>>=2,ue-=2;break e}break;case 2:r.mode=R;break;case 3:e.msg="invalid block type",r.mode=X}se>>>=2,ue-=2;break;case B:for(se>>>=7&ue,ue-=7&ue;ue<32;){if(0===oe)break e;oe--,se+=ee[re++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=X;break}if(r.length=65535&se,se=0,ue=0,r.mode=N,t===d)break e;case N:r.mode=z;case z:if(fe=r.length){if(fe>oe&&(fe=oe),fe>ae&&(fe=ae),0===fe)break e;n.arraySet(te,ee,re,fe,ie),oe-=fe,re+=fe,ae-=fe,ie+=fe,r.length-=fe;break}r.mode=M;break;case R:for(;ue<14;){if(0===oe)break e;oe--,se+=ee[re++]<>>=5,ue-=5,r.ndist=1+(31&se),se>>>=5,ue-=5,r.ncode=4+(15&se),se>>>=4,ue-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=X;break}r.have=0,r.mode=F;case F:for(;r.have>>=3,ue-=3}for(;r.have<19;)r.lens[Pe[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,xe={bits:r.lenbits},Se=s(u,r.lens,0,19,r.lencode,0,r.work,xe),r.lenbits=xe.bits,Se){e.msg="invalid code lengths set",r.mode=X;break}r.have=0,r.mode=U;case U:for(;r.have>>16&255,be=65535&Ae,!((ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>>=ge,ue-=ge,r.lens[r.have++]=be;else{if(16===be){for(Ee=ge+2;ue>>=ge,ue-=ge,0===r.have){e.msg="invalid bit length repeat",r.mode=X;break}ke=r.lens[r.have-1],fe=3+(3&se),se>>>=2,ue-=2}else if(17===be){for(Ee=ge+3;ue>>=ge)),se>>>=3,ue-=3}else{for(Ee=ge+7;ue>>=ge)),se>>>=7,ue-=7}if(r.have+fe>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=X;break}for(;fe--;)r.lens[r.have++]=ke}}if(r.mode===X)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=X;break}if(r.lenbits=9,xe={bits:r.lenbits},Se=s(c,r.lens,0,r.nlen,r.lencode,0,r.work,xe),r.lenbits=xe.bits,Se){e.msg="invalid literal/lengths set",r.mode=X;break}if(r.distbits=6,r.distcode=r.distdyn,xe={bits:r.distbits},Se=s(l,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,xe),r.distbits=xe.bits,Se){e.msg="invalid distances set",r.mode=X;break}if(r.mode=$,t===d)break e;case $:r.mode=L;case L:if(oe>=6&&ae>=258){e.next_out=ie,e.avail_out=ae,e.next_in=re,e.avail_in=oe,r.hold=se,r.bits=ue,a(e,le),ie=e.next_out,te=e.output,ae=e.avail_out,re=e.next_in,ee=e.input,oe=e.avail_in,se=r.hold,ue=r.bits,r.mode===M&&(r.back=-1);break}for(r.back=0;ve=(Ae=r.lencode[se&(1<>>16&255,be=65535&Ae,!((ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>ye)])>>>16&255,be=65535&Ae,!(ye+(ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>>=ye,ue-=ye,r.back+=ye}if(se>>>=ge,ue-=ge,r.back+=ge,r.length=be,0===ve){r.mode=W;break}if(32&ve){r.back=-1,r.mode=M;break}if(64&ve){e.msg="invalid literal/length code",r.mode=X;break}r.extra=15&ve,r.mode=q;case q:if(r.extra){for(Ee=r.extra;ue>>=r.extra,ue-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=H;case H:for(;ve=(Ae=r.distcode[se&(1<>>16&255,be=65535&Ae,!((ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>ye)])>>>16&255,be=65535&Ae,!(ye+(ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>>=ye,ue-=ye,r.back+=ye}if(se>>>=ge,ue-=ge,r.back+=ge,64&ve){e.msg="invalid distance code",r.mode=X;break}r.offset=be,r.extra=15&ve,r.mode=V;case V:if(r.extra){for(Ee=r.extra;ue>>=r.extra,ue-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=X;break}r.mode=K;case K:if(0===ae)break e;if(fe=le-ae,r.offset>fe){if((fe=r.offset-fe)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=X;break}fe>r.wnext?(fe-=r.wnext,pe=r.wsize-fe):pe=r.wnext-fe,fe>r.length&&(fe=r.length),me=r.window}else me=te,pe=ie-r.offset,fe=r.length;fe>ae&&(fe=ae),ae-=fe,r.length-=fe;do{te[ie++]=me[pe++]}while(--fe);0===r.length&&(r.mode=L);break;case W:if(0===ae)break e;te[ie++]=r.length,ae--,r.mode=L;break;case G:if(r.wrap){for(;ue<32;){if(0===oe)break e;oe--,se|=ee[re++]<>>=_=y>>>24,p-=_,0===(_=y>>>16&255))A[o++]=65535&y;else{if(!(16&_)){if(0==(64&_)){y=m[(65535&y)+(d&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&y,(_&=15)&&(p<_&&(d+=E[n++]<>>=_,p-=_),p<15&&(d+=E[n++]<>>=_=y>>>24,p-=_,!(16&(_=y>>>16&255))){if(0==(64&_)){y=g[(65535&y)+(d&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(k=65535&y,p<(_&=15)&&(d+=E[n++]<u){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=_,p-=_,k>(_=o-a)){if((_=k-_)>l&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=0,x=h,0===f){if(S+=c-_,_2;)A[o++]=x[S++],A[o++]=x[S++],A[o++]=x[S++],w-=3;w&&(A[o++]=x[S++],w>1&&(A[o++]=x[S++]))}else{S=o-k;do{A[o++]=A[S++],A[o++]=A[S++],A[o++]=A[S++],w-=3}while(w>2);w&&(A[o++]=A[S++],w>1&&(A[o++]=A[S++]))}break}}break}}while(n>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n=1&&0===B[A];A--);if(O>A&&(O=A),0===A)return c[l++]=20971520,c[l++]=20971520,h.bits=1,0;for(E=1;E0&&(0===e||1!==A))return-1;for(N[1]=0,S=1;S<15;S++)N[S+1]=N[S]+B[S];for(x=0;x852||2===e&&j>592)return 1;for(;;){y=S-T,f[x]b?(_=z[R+f[x]],w=M[D+f[x]]):(_=96,w=0),d=1<>T)+(p-=d)]=y<<24|_<<16|w|0}while(0!==p);for(d=1<>=1;if(0!==d?(I&=d-1,I+=d):I=0,x++,0==--B[S]){if(S===A)break;S=t[r+f[x]]}if(S>O&&(I&g)!==m){for(0===T&&(T=O),v+=E,C=1<<(P=S-T);P+T852||2===e&&j>592)return 1;c[m=I&g]=O<<24|P<<16|v-l|0}}return 0!==I&&(c[v+I]=S-T<<24|64<<16|0),h.bits=O,0}},function(e,t,r){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,r){"use strict";var n=r(11),i=r(23),o=r(62),a=r(159),s=r(284),u=function(e,t){var r,n="";for(r=0;r>>=8;return n},c=function(e,t,r,i,c,l){var f,h,d=e.file,p=e.compression,m=l!==o.utf8encode,g=n.transformTo("string",l(d.name)),v=n.transformTo("string",o.utf8encode(d.name)),b=d.comment,y=n.transformTo("string",l(b)),_=n.transformTo("string",o.utf8encode(b)),w=v.length!==d.name.length,k=_.length!==b.length,S="",x="",E="",A=d.dir,O=d.date,P={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(P.crc32=e.crc32,P.compressedSize=e.compressedSize,P.uncompressedSize=e.uncompressedSize);var T=0;t&&(T|=8),m||!w&&!k||(T|=2048);var C,j,I,M=0,D=0;A&&(M|=16),"UNIX"===c?(D=798,M|=(C=d.unixPermissions,j=A,I=C,C||(I=j?16893:33204),(65535&I)<<16)):(D=20,M|=63&(d.dosPermissions||0)),f=O.getUTCHours(),f<<=6,f|=O.getUTCMinutes(),f<<=5,f|=O.getUTCSeconds()/2,h=O.getUTCFullYear()-1980,h<<=4,h|=O.getUTCMonth()+1,h<<=5,h|=O.getUTCDate(),w&&(x=u(1,1)+u(a(g),4)+v,S+="up"+u(x.length,2)+x),k&&(E=u(1,1)+u(a(y),4)+_,S+="uc"+u(E.length,2)+E);var B="";return B+="\n\0",B+=u(T,2),B+=p.magic,B+=u(f,2),B+=u(h,2),B+=u(P.crc32,4),B+=u(P.compressedSize,4),B+=u(P.uncompressedSize,4),B+=u(g.length,2),B+=u(S.length,2),{fileRecord:s.LOCAL_FILE_HEADER+B+g+S,dirRecord:s.CENTRAL_FILE_HEADER+u(D,2)+B+u(y.length,2)+"\0\0\0\0"+u(M,4)+u(i,4)+g+S+y}},l=function(e){return s.DATA_DESCRIPTOR+u(e.crc32,4)+u(e.compressedSize,4)+u(e.uncompressedSize,4)};function f(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(f,i),f.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},f.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=c(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=c(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:l(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=u},function(e,t,r){"use strict";var n=r(287);function i(e){n.call(this,e)}r(11).inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,r){"use strict";var n=r(288);function i(e){n.call(this,e)}r(11).inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,r){"use strict";var n=r(285),i=r(11),o=r(158),a=r(159),s=r(62),u=r(278),c=r(45);function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in u)if(u.hasOwnProperty(t)&&u[t].magic===e)return u[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}}),a):a}},function(e,t,r){"use strict";var n=r(18);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(18);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(i)&&s.push("path="+i),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(270);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(57)),o=r(157),a=r(108);function s(e,t){const r=[],n=i.default.encode(JSON.stringify(t));r.push(n);const o=i.default.encode(JSON.stringify(e));return r.push(o),r.join(".")}t.createUnsecuredToken=function(e){return s(e,{typ:"JWT",alg:"none"})+"."};t.TokenSigner=class{constructor(e,t){if(!e||!t)throw new a.MissingParametersError("a signing algorithm and private key are required");if("string"!=typeof e)throw new Error("signing algorithm parameter must be a string");if(e=e.toUpperCase(),!o.cryptoClients.hasOwnProperty(e))throw new Error("invalid signing algorithm");this.tokenType="JWT",this.cryptoClient=o.cryptoClients[e],this.rawPrivateKey=t}header(e={}){const t={typ:this.tokenType,alg:this.cryptoClient.algorithmName};return Object.assign({},t,e)}sign(e,t=!1,r={}){const n=this.header(r),o=s(e,n),a=this.cryptoClient.createHash(o),u=this.cryptoClient.signHash(a,this.rawPrivateKey);return t?{header:[i.default.encode(JSON.stringify(n))],payload:JSON.stringify(e),signature:[u]}:[o,u].join(".")}}},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(12),i=r(14),o=e(r(647)),a=r(649),s=r(108);class u{constructor(){}static createHash(e){return i.createHash("sha256").update(e).digest()}static loadPrivateKey(e){return 66===e.length&&(e=e.slice(0,64)),u.ec.keyFromPrivate(e)}static loadPublicKey(e){return u.ec.keyFromPublic(e,"hex")}static encodePublicKey(e,t,r){return u.keyEncoder.encodePublic(e,t,r)}static derivePublicKey(e,t=!0){if("string"!=typeof e)throw Error("private key must be a string");if(!/^[0-9A-F]+$/i.test(e))throw Error("private key must be a hex string");if(66==e.length)e=e.slice(0,64);else if(!(e.length<=64))throw Error("private key must be 66 characters or less");return u.ec.keyFromPrivate(e).getPublic(t,"hex")}static signHash(e,t,r="jose"){if(!e||!t)throw new s.MissingParametersError("a signing input hash and private key are all required");const n=u.loadPrivateKey(t).sign(e),i=Buffer.from(n.toDER());if("der"===r)return i.toString("hex");if("jose"===r)return a.derToJose(i,"ES256");throw Error("Invalid signature format")}static loadSignature(e){return a.joseToDer(e,"ES256")}static verifyHash(e,t,r){if(!(e&&t&&r))throw new s.MissingParametersError("a signing input hash, der signature, and public key are all required");return u.loadPublicKey(r).verify(e,t)}}u.ec=new n.ec("secp256k1"),u.algorithmName="ES256K",u.keyEncoder=new o.default({curveParameters:[1,3,132,0,10],privatePEMOptions:{label:"EC PRIVATE KEY"},publicPEMOptions:{label:"PUBLIC KEY"},curve:u.ec}),t.SECP256K1Client=u}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(648));t.default=i.default},function(e,t,r){"use strict";(function(Buffer){var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=e(r(7)),i=r(12),o=e(r(58)),a=o.default.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).objid().optional(),this.key("publicKey").explicit(1).bitstr().optional())}),s=o.default.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("curve").objid()),this.key("pub").bitstr())}),u={secp256k1:{curveParameters:[1,3,132,0,10],privatePEMOptions:{label:"EC PRIVATE KEY"},publicPEMOptions:{label:"PUBLIC KEY"},curve:new i.ec("secp256k1")}};class c{constructor(e){if("string"==typeof e){if("secp256k1"!==e)throw new Error("Unknown curve "+e);e=u[e]}this.options=e,this.algorithmID=[1,2,840,10045,2,1]}privateKeyObject(e,t){const r={version:new n.default(1),privateKey:Buffer.from(e,"hex"),parameters:this.options.curveParameters};return t&&(r.publicKey={unused:0,data:Buffer.from(t,"hex")}),r}publicKeyObject(e){return{algorithm:{id:this.algorithmID,curve:this.options.curveParameters},pub:{unused:0,data:Buffer.from(e,"hex")}}}encodePrivate(e,t,r){let n;if("raw"===t){if("string"!=typeof e)throw"private key must be a string";let t=this.options.curve.keyFromPrivate(e,"hex").getPublic("hex");n=this.privateKeyObject(e,t)}else if("der"===t){if("string"!=typeof e);else{if("string"!=typeof e)throw"private key must be a buffer or a string";e=Buffer.from(e,"hex")}n=a.decode(e,"der")}else{if("pem"!==t)throw"invalid private key format";if("string"!=typeof e)throw"private key must be a string";n=a.decode(e,"pem",this.options.privatePEMOptions)}if("raw"===r)return n.privateKey.toString("hex");if("der"===r)return a.encode(n,"der").toString("hex");if("pem"===r)return a.encode(n,"pem",this.options.privatePEMOptions);throw"invalid destination format for private key"}encodePublic(e,t,r){let n;if("raw"===t){if("string"!=typeof e)throw"public key must be a string";n=this.publicKeyObject(e)}else if("der"===t){if("string"!=typeof e);else{if("string"!=typeof e)throw"public key must be a buffer or a string";e=Buffer.from(e,"hex")}n=s.decode(e,"der")}else{if("pem"!==t)throw"invalid public key format";if("string"!=typeof e)throw"public key must be a string";n=s.decode(e,"pem",this.options.publicPEMOptions)}if("raw"===r)return n.pub.data.toString("hex");if("der"===r)return s.encode(n,"der").toString("hex");if("pem"===r)return s.encode(n,"pem",this.options.publicPEMOptions);throw"invalid destination format for public key"}}c.ECPrivateKeyASN=a,c.SubjectPublicKeyInfoASN=s,t.default=c}).call(this,r(0).Buffer)},function(e,t,r){"use strict";var Buffer=r(2).Buffer,n=r(650),i=128,o=48,a=2;function s(e){if(Buffer.isBuffer(e))return e;if("string"==typeof e)return Buffer.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function u(e,t,r){for(var n=0;t+n=i&&--n,n}e.exports={derToJose:function(e,t){e=s(e);var r=n(t),u=r+1,c=e.length,l=0;if(e[l++]!==o)throw new Error('Could not find expected "seq"');var f=e[l++];if(f===(1|i)&&(f=e[l++]),c-l{const t=this.cryptoClient.loadSignature(e);this.cryptoClient.verifyHash(r,t,this.rawPublicKey)||(n=!1)}),n}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(57));t.decodeToken=function(e){if("string"==typeof e){const t=e.split(".");return{header:JSON.parse(i.default.decode(t[0])),payload:JSON.parse(i.default.decode(t[1])),signature:t[2]}}if("object"==typeof e){let t=e.payload;"{"!==e.payload[0]&&(t=i.default.decode(t));const r=[];return e.header.map(e=>{const t=JSON.parse(i.default.decode(e));r.push(t)}),{header:r,payload:JSON.parse(t),signature:e.signature}}}},function(e,t,r){"use strict";var n=r(63),i=r(11),o=r(23),a=r(273),s=r(274),u=r(158),c=r(659),l=r(660),f=r(109),h=r(672),d=function(e,t,r){var n,a=i.getTypeOf(t),l=i.extend(r||{},s);l.date=l.date||new Date,null!==l.compression&&(l.compression=l.compression.toUpperCase()),"string"==typeof l.unixPermissions&&(l.unixPermissions=parseInt(l.unixPermissions,8)),l.unixPermissions&&16384&l.unixPermissions&&(l.dir=!0),l.dosPermissions&&16&l.dosPermissions&&(l.dir=!0),l.dir&&(e=m(e)),l.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===a&&!1===l.binary&&!1===l.base64;r&&void 0!==r.binary||(l.binary=!d),(t instanceof u&&0===t.uncompressedSize||l.dir||!t||0===t.length)&&(l.base64=!1,l.binary=!0,t="",l.compression="STORE",a="string");var v=null;v=t instanceof u||t instanceof o?t:f.isNode&&f.isStream(t)?new h(e,t):i.prepareContent(e,t,l.binary,l.optimizedBinaryString,l.base64);var b=new c(e,v,l);this.files[e]=b},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:s.createFolders,e=m(e),this.files[e]||d.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1===arguments.length){if(v(e)){var n=e;return this.filter(function(e,t){return!t.dir&&n.test(e)})}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,d.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[r]);this._dict_set=!0}}function p(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}d.prototype.push=function(e,t){var r,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===u.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(r=n.deflate(s,a))&&r!==c)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==a||(this.onEnd(c),s.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=d,t.deflate=p,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},function(e,t,r){"use strict";var n,i=r(46),o=r(665),a=r(279),s=r(280),u=r(160),c=0,l=1,f=3,h=4,d=5,p=0,m=1,g=-2,v=-3,b=-5,y=-1,_=1,w=2,k=3,S=4,x=0,E=2,A=8,O=9,P=15,T=8,C=286,j=30,I=19,M=2*C+1,D=15,B=3,N=258,z=N+B+1,R=32,F=42,U=69,$=73,L=91,q=103,H=113,V=666,K=1,W=2,G=3,Z=4,Y=3;function X(e,t){return e.msg=u[t],t}function J(e){return(e<<1)-(e>4?9:0)}function Q(e){for(var t=e.length;--t>=0;)e[t]=0}function ee(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function te(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ee(e.strm)}function re(e,t){e.pending_buf[e.pending++]=t}function ne(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ie(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,c=e.window,l=e.w_mask,f=e.prev,h=e.strstart+N,d=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(r=t)+a]===p&&c[r+a-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&oa){if(e.match_start=t,a=n,n>=s)break;d=c[o+a-1],p=c[o+a]}}}while((t=f[t&l])>u&&0!=--i);return a<=e.lookahead?a:e.lookahead}function oe(e){var t,r,n,o,u,c,l,f,h,d,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-z)){i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=p?n-p:0}while(--r);t=r=p;do{n=e.prev[--t],e.prev[t]=n>=p?n-p:0}while(--r);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,l=e.window,f=e.strstart+e.lookahead,h=o,d=void 0,(d=c.avail_in)>h&&(d=h),r=0===d?0:(c.avail_in-=d,i.arraySet(l,c.input,c.next_in,d,f),1===c.state.wrap?c.adler=a(c.adler,l,d,f):2===c.state.wrap&&(c.adler=s(c.adler,l,d,f)),c.next_in+=d,c.total_in+=d,d),e.lookahead+=r,e.lookahead+e.insert>=B)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<=B&&(e.ins_h=(e.ins_h<=B)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-B),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=B){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=B&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=B-1)),e.prev_length>=B&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-B,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-B),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(s=2,n-=16),o<1||o>O||r!==A||n<8||n>15||t<0||t>9||a<0||a>S)return X(e,g);8===n&&(n=9);var u=new ce;return e.state=u,u.strm=e,u.wrap=s,u.gzhead=null,u.w_bits=n,u.w_size=1<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(oe(e),0===e.lookahead&&t===c)return K;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,te(e,!1),0===e.strm.avail_out))return K;if(e.strstart-e.block_start>=e.w_size-z&&(te(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?G:Z):(e.strstart>e.block_start&&(te(e,!1),e.strm.avail_out),K)}),new ue(4,4,8,4,ae),new ue(4,5,16,8,ae),new ue(4,6,32,32,ae),new ue(4,4,16,16,se),new ue(8,16,32,32,se),new ue(8,16,128,128,se),new ue(8,32,128,256,se),new ue(32,128,258,1024,se),new ue(32,258,258,4096,se)],t.deflateInit=function(e,t){return he(e,t,A,P,T,x)},t.deflateInit2=he,t.deflateReset=fe,t.deflateResetKeep=le,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?g:(e.state.gzhead=t,p):g},t.deflate=function(e,t){var r,i,a,u;if(!e||!e.state||t>d||t<0)return e?X(e,g):g;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===V&&t!==h)return X(e,0===e.avail_out?b:g);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===F)if(2===i.wrap)e.adler=0,re(i,31),re(i,139),re(i,8),i.gzhead?(re(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),re(i,255&i.gzhead.time),re(i,i.gzhead.time>>8&255),re(i,i.gzhead.time>>16&255),re(i,i.gzhead.time>>24&255),re(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),re(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(re(i,255&i.gzhead.extra.length),re(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=U):(re(i,0),re(i,0),re(i,0),re(i,0),re(i,0),re(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),re(i,Y),i.status=H);else{var v=A+(i.w_bits-8<<4)<<8;v|=(i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(v|=R),v+=31-v%31,i.status=H,ne(i,v),0!==i.strstart&&(ne(i,e.adler>>>16),ne(i,65535&e.adler)),e.adler=1}if(i.status===U)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ee(e),a=i.pending,i.pending!==i.pending_buf_size));)re(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=$)}else i.status=$;if(i.status===$)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ee(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=L)}else i.status=L;if(i.status===L)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ee(e),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=q)}else i.status=q;if(i.status===q&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ee(e),i.pending+2<=i.pending_buf_size&&(re(i,255&e.adler),re(i,e.adler>>8&255),e.adler=0,i.status=H)):i.status=H),0!==i.pending){if(ee(e),0===e.avail_out)return i.last_flush=-1,p}else if(0===e.avail_in&&J(t)<=J(r)&&t!==h)return X(e,b);if(i.status===V&&0!==e.avail_in)return X(e,b);if(0!==e.avail_in||0!==i.lookahead||t!==c&&i.status!==V){var y=i.strategy===w?function(e,t){for(var r;;){if(0===e.lookahead&&(oe(e),0===e.lookahead)){if(t===c)return K;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(te(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?G:Z):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?K:W}(i,t):i.strategy===k?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=N){if(oe(e),e.lookahead<=N&&t===c)return K;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=B&&e.strstart>0&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+N;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=B?(r=o._tr_tally(e,1,e.match_length-B),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(te(e,!1),0===e.strm.avail_out))return K}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?G:Z):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?K:W}(i,t):n[i.level].func(i,t);if(y!==G&&y!==Z||(i.status=V),y===K||y===G)return 0===e.avail_out&&(i.last_flush=-1),p;if(y===W&&(t===l?o._tr_align(i):t!==d&&(o._tr_stored_block(i,0,0,!1),t===f&&(Q(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ee(e),0===e.avail_out))return i.last_flush=-1,p}return t!==h?p:i.wrap<=0?m:(2===i.wrap?(re(i,255&e.adler),re(i,e.adler>>8&255),re(i,e.adler>>16&255),re(i,e.adler>>24&255),re(i,255&e.total_in),re(i,e.total_in>>8&255),re(i,e.total_in>>16&255),re(i,e.total_in>>24&255)):(ne(i,e.adler>>>16),ne(i,65535&e.adler)),ee(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:m)},t.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==F&&t!==U&&t!==$&&t!==L&&t!==q&&t!==H&&t!==V?X(e,g):(e.state=null,t===H?X(e,v):p):g},t.deflateSetDictionary=function(e,t){var r,n,o,s,u,c,l,f,h=t.length;if(!e||!e.state)return g;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==F||r.lookahead)return g;for(1===s&&(e.adler=a(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===s&&(Q(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,h-r.w_size,r.w_size,0),t=f,h=r.w_size),u=e.avail_in,c=e.next_in,l=e.input,e.avail_in=h,e.next_in=0,e.input=t,oe(r);r.lookahead>=B;){n=r.strstart,o=r.lookahead-(B-1);do{r.ins_h=(r.ins_h<=0;)e[t]=0}var c=0,l=1,f=2,h=29,d=256,p=d+1+h,m=30,g=19,v=2*p+1,b=15,y=16,_=7,w=256,k=16,S=17,x=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(p+2));u(T);var C=new Array(2*m);u(C);var j=new Array(512);u(j);var I=new Array(256);u(I);var M=new Array(h);u(M);var D,B,N,z=new Array(m);function R(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function U(e){return e<256?j[e]:j[256+(e>>>7)]}function $(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function L(e,t,r){e.bi_valid>y-r?(e.bi_buf|=t<>y-e.bi_valid,e.bi_valid+=r-y):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function V(e,t,r){var n,i,o=new Array(b+1),a=0;for(n=1;n<=b;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=H(o[s]++,s))}}function K(e){var t;for(t=0;t8?$(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function G(e,t,r,n){var i=2*t,o=2*r;return e[i]>1;r>=1;r--)Z(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Z(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,Z(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,c=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(o=0;o<=b;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;rp&&(o=p,m++),u[2*n+1]=o,n>c||(e.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=u[2*n],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(l[2*n+1]+a)));if(0!==m){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>c||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),V(o,c,e.bl_count)}function J(e,t,r){var n,i,o=-1,a=t[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s>=7;n0?(e.strm.data_type===s&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t=3&&0===e.bl_tree[2*P[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),u=e.opt_len+3+7>>>3,(c=e.static_len+3+7>>>3)<=u&&(u=c)):u=c=r+5,r+4<=u&&-1!==t?te(e,t,r,n):e.strategy===i||c===u?(L(e,(l<<1)+(n?1:0),3),Y(e,T,C)):(L(e,(f<<1)+(n?1:0),3),function(e,t,r,n){var i;for(L(e,t-257,5),L(e,r-1,5),L(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(I[r]+d+1)]++,e.dyn_dtree[2*U(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){L(e,l<<1,3),q(e,w,T),function(e){16===e.bi_valid?($(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,r){"use strict";var n=r(667),i=r(46),o=r(281),a=r(283),s=r(160),u=r(282),c=r(670),l=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(s[r]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[r])}function h(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(e,t){var r,s,u,c,f,h=this.strm,d=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(d),h.next_out=0,h.avail_out=d),(r=n.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===a.Z_BUF_ERROR&&!0===m&&(r=a.Z_OK,m=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&r!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(u=o.utf8border(h.output,h.next_out),c=h.next_out-u,f=o.buf2string(h.output,u),h.next_out=c,h.avail_out=d-c,c&&i.arraySet(h.output,h.output,u,c,0),this.onData(f)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((h.avail_in>0||0===h.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),h.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=f,t.inflate=h,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},t.ungzip=h},function(e,t,r){"use strict";var n=r(46),i=r(279),o=r(280),a=r(668),s=r(669),u=0,c=1,l=2,f=4,h=5,d=6,p=0,m=1,g=2,v=-2,b=-3,y=-4,_=-5,w=8,k=1,S=2,x=3,E=4,A=5,O=6,P=7,T=8,C=9,j=10,I=11,M=12,D=13,B=14,N=15,z=16,R=17,F=18,U=19,$=20,L=21,q=22,H=23,V=24,K=25,W=26,G=27,Z=28,Y=29,X=30,J=31,Q=32,ee=852,te=592,re=15;function ne(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function oe(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=k,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(ee),t.distcode=t.distdyn=new n.Buf32(te),t.sane=1,t.back=-1,p):v}function ae(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,oe(e)):v}function se(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,ae(e))):v}function ue(e,t){var r,n;return e?(n=new ie,e.state=n,n.window=null,(r=se(e,t))!==p&&(e.state=null),r):v}var ce,le,fe=!0;function he(e){if(fe){var t;for(ce=new n.Buf32(512),le=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,ce,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,le,0,e.work,{bits:5}),fe=!1}e.lencode=ce,e.lenbits=9,e.distcode=le,e.distbits=5}function de(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=o(r.check,Oe,2,0),se=0,ue=0,r.mode=S;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",r.mode=X;break}if((15&se)!==w){e.msg="unknown compression method",r.mode=X;break}if(ue-=4,ke=8+(15&(se>>>=4)),0===r.wbits)r.wbits=ke;else if(ke>r.wbits){e.msg="invalid window size",r.mode=X;break}r.dmax=1<>8&1),512&r.flags&&(Oe[0]=255&se,Oe[1]=se>>>8&255,r.check=o(r.check,Oe,2,0)),se=0,ue=0,r.mode=x;case x:for(;ue<32;){if(0===oe)break e;oe--,se+=ee[re++]<>>8&255,Oe[2]=se>>>16&255,Oe[3]=se>>>24&255,r.check=o(r.check,Oe,4,0)),se=0,ue=0,r.mode=E;case E:for(;ue<16;){if(0===oe)break e;oe--,se+=ee[re++]<>8),512&r.flags&&(Oe[0]=255&se,Oe[1]=se>>>8&255,r.check=o(r.check,Oe,2,0)),se=0,ue=0,r.mode=A;case A:if(1024&r.flags){for(;ue<16;){if(0===oe)break e;oe--,se+=ee[re++]<>>8&255,r.check=o(r.check,Oe,2,0)),se=0,ue=0}else r.head&&(r.head.extra=null);r.mode=O;case O:if(1024&r.flags&&((fe=r.length)>oe&&(fe=oe),fe&&(r.head&&(ke=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,ee,re,fe,ke)),512&r.flags&&(r.check=o(r.check,ee,fe,re)),oe-=fe,re+=fe,r.length-=fe),r.length))break e;r.length=0,r.mode=P;case P:if(2048&r.flags){if(0===oe)break e;fe=0;do{ke=ee[re+fe++],r.head&&ke&&r.length<65536&&(r.head.name+=String.fromCharCode(ke))}while(ke&&fe>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=M;break;case j:for(;ue<32;){if(0===oe)break e;oe--,se+=ee[re++]<>>=7&ue,ue-=7&ue,r.mode=G;break}for(;ue<3;){if(0===oe)break e;oe--,se+=ee[re++]<>>=1)){case 0:r.mode=B;break;case 1:if(he(r),r.mode=$,t===d){se>>>=2,ue-=2;break e}break;case 2:r.mode=R;break;case 3:e.msg="invalid block type",r.mode=X}se>>>=2,ue-=2;break;case B:for(se>>>=7&ue,ue-=7&ue;ue<32;){if(0===oe)break e;oe--,se+=ee[re++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=X;break}if(r.length=65535&se,se=0,ue=0,r.mode=N,t===d)break e;case N:r.mode=z;case z:if(fe=r.length){if(fe>oe&&(fe=oe),fe>ae&&(fe=ae),0===fe)break e;n.arraySet(te,ee,re,fe,ie),oe-=fe,re+=fe,ae-=fe,ie+=fe,r.length-=fe;break}r.mode=M;break;case R:for(;ue<14;){if(0===oe)break e;oe--,se+=ee[re++]<>>=5,ue-=5,r.ndist=1+(31&se),se>>>=5,ue-=5,r.ncode=4+(15&se),se>>>=4,ue-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=X;break}r.have=0,r.mode=F;case F:for(;r.have>>=3,ue-=3}for(;r.have<19;)r.lens[Pe[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,xe={bits:r.lenbits},Se=s(u,r.lens,0,19,r.lencode,0,r.work,xe),r.lenbits=xe.bits,Se){e.msg="invalid code lengths set",r.mode=X;break}r.have=0,r.mode=U;case U:for(;r.have>>16&255,be=65535&Ae,!((ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>>=ge,ue-=ge,r.lens[r.have++]=be;else{if(16===be){for(Ee=ge+2;ue>>=ge,ue-=ge,0===r.have){e.msg="invalid bit length repeat",r.mode=X;break}ke=r.lens[r.have-1],fe=3+(3&se),se>>>=2,ue-=2}else if(17===be){for(Ee=ge+3;ue>>=ge)),se>>>=3,ue-=3}else{for(Ee=ge+7;ue>>=ge)),se>>>=7,ue-=7}if(r.have+fe>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=X;break}for(;fe--;)r.lens[r.have++]=ke}}if(r.mode===X)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=X;break}if(r.lenbits=9,xe={bits:r.lenbits},Se=s(c,r.lens,0,r.nlen,r.lencode,0,r.work,xe),r.lenbits=xe.bits,Se){e.msg="invalid literal/lengths set",r.mode=X;break}if(r.distbits=6,r.distcode=r.distdyn,xe={bits:r.distbits},Se=s(l,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,xe),r.distbits=xe.bits,Se){e.msg="invalid distances set",r.mode=X;break}if(r.mode=$,t===d)break e;case $:r.mode=L;case L:if(oe>=6&&ae>=258){e.next_out=ie,e.avail_out=ae,e.next_in=re,e.avail_in=oe,r.hold=se,r.bits=ue,a(e,le),ie=e.next_out,te=e.output,ae=e.avail_out,re=e.next_in,ee=e.input,oe=e.avail_in,se=r.hold,ue=r.bits,r.mode===M&&(r.back=-1);break}for(r.back=0;ve=(Ae=r.lencode[se&(1<>>16&255,be=65535&Ae,!((ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>ye)])>>>16&255,be=65535&Ae,!(ye+(ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>>=ye,ue-=ye,r.back+=ye}if(se>>>=ge,ue-=ge,r.back+=ge,r.length=be,0===ve){r.mode=W;break}if(32&ve){r.back=-1,r.mode=M;break}if(64&ve){e.msg="invalid literal/length code",r.mode=X;break}r.extra=15&ve,r.mode=q;case q:if(r.extra){for(Ee=r.extra;ue>>=r.extra,ue-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=H;case H:for(;ve=(Ae=r.distcode[se&(1<>>16&255,be=65535&Ae,!((ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>ye)])>>>16&255,be=65535&Ae,!(ye+(ge=Ae>>>24)<=ue);){if(0===oe)break e;oe--,se+=ee[re++]<>>=ye,ue-=ye,r.back+=ye}if(se>>>=ge,ue-=ge,r.back+=ge,64&ve){e.msg="invalid distance code",r.mode=X;break}r.offset=be,r.extra=15&ve,r.mode=V;case V:if(r.extra){for(Ee=r.extra;ue>>=r.extra,ue-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=X;break}r.mode=K;case K:if(0===ae)break e;if(fe=le-ae,r.offset>fe){if((fe=r.offset-fe)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=X;break}fe>r.wnext?(fe-=r.wnext,pe=r.wsize-fe):pe=r.wnext-fe,fe>r.length&&(fe=r.length),me=r.window}else me=te,pe=ie-r.offset,fe=r.length;fe>ae&&(fe=ae),ae-=fe,r.length-=fe;do{te[ie++]=me[pe++]}while(--fe);0===r.length&&(r.mode=L);break;case W:if(0===ae)break e;te[ie++]=r.length,ae--,r.mode=L;break;case G:if(r.wrap){for(;ue<32;){if(0===oe)break e;oe--,se|=ee[re++]<>>=_=y>>>24,p-=_,0===(_=y>>>16&255))A[o++]=65535&y;else{if(!(16&_)){if(0==(64&_)){y=m[(65535&y)+(d&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&y,(_&=15)&&(p<_&&(d+=E[n++]<>>=_,p-=_),p<15&&(d+=E[n++]<>>=_=y>>>24,p-=_,!(16&(_=y>>>16&255))){if(0==(64&_)){y=g[(65535&y)+(d&(1<<_)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(k=65535&y,p<(_&=15)&&(d+=E[n++]<u){e.msg="invalid distance too far back",r.mode=30;break e}if(d>>>=_,p-=_,k>(_=o-a)){if((_=k-_)>l&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=0,x=h,0===f){if(S+=c-_,_2;)A[o++]=x[S++],A[o++]=x[S++],A[o++]=x[S++],w-=3;w&&(A[o++]=x[S++],w>1&&(A[o++]=x[S++]))}else{S=o-k;do{A[o++]=A[S++],A[o++]=A[S++],A[o++]=A[S++],w-=3}while(w>2);w&&(A[o++]=A[S++],w>1&&(A[o++]=A[S++]))}break}}break}}while(n>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n=1&&0===B[A];A--);if(O>A&&(O=A),0===A)return c[l++]=20971520,c[l++]=20971520,h.bits=1,0;for(E=1;E0&&(0===e||1!==A))return-1;for(N[1]=0,S=1;S<15;S++)N[S+1]=N[S]+B[S];for(x=0;x852||2===e&&j>592)return 1;for(;;){y=S-T,f[x]b?(_=z[R+f[x]],w=M[D+f[x]]):(_=96,w=0),d=1<>T)+(p-=d)]=y<<24|_<<16|w|0}while(0!==p);for(d=1<>=1;if(0!==d?(I&=d-1,I+=d):I=0,x++,0==--B[S]){if(S===A)break;S=t[r+f[x]]}if(S>O&&(I&g)!==m){for(0===T&&(T=O),v+=E,C=1<<(P=S-T);P+T852||2===e&&j>592)return 1;c[m=I&g]=O<<24|P<<16|v-l|0}}return 0!==I&&(c[v+I]=S-T<<24|64<<16|0),h.bits=O,0}},function(e,t,r){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,r){"use strict";var n=r(11),i=r(23),o=r(63),a=r(159),s=r(284),u=function(e,t){var r,n="";for(r=0;r>>=8;return n},c=function(e,t,r,i,c,l){var f,h,d=e.file,p=e.compression,m=l!==o.utf8encode,g=n.transformTo("string",l(d.name)),v=n.transformTo("string",o.utf8encode(d.name)),b=d.comment,y=n.transformTo("string",l(b)),_=n.transformTo("string",o.utf8encode(b)),w=v.length!==d.name.length,k=_.length!==b.length,S="",x="",E="",A=d.dir,O=d.date,P={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(P.crc32=e.crc32,P.compressedSize=e.compressedSize,P.uncompressedSize=e.uncompressedSize);var T=0;t&&(T|=8),m||!w&&!k||(T|=2048);var C,j,I,M=0,D=0;A&&(M|=16),"UNIX"===c?(D=798,M|=(C=d.unixPermissions,j=A,I=C,C||(I=j?16893:33204),(65535&I)<<16)):(D=20,M|=63&(d.dosPermissions||0)),f=O.getUTCHours(),f<<=6,f|=O.getUTCMinutes(),f<<=5,f|=O.getUTCSeconds()/2,h=O.getUTCFullYear()-1980,h<<=4,h|=O.getUTCMonth()+1,h<<=5,h|=O.getUTCDate(),w&&(x=u(1,1)+u(a(g),4)+v,S+="up"+u(x.length,2)+x),k&&(E=u(1,1)+u(a(y),4)+_,S+="uc"+u(E.length,2)+E);var B="";return B+="\n\0",B+=u(T,2),B+=p.magic,B+=u(f,2),B+=u(h,2),B+=u(P.crc32,4),B+=u(P.compressedSize,4),B+=u(P.uncompressedSize,4),B+=u(g.length,2),B+=u(S.length,2),{fileRecord:s.LOCAL_FILE_HEADER+B+g+S,dirRecord:s.CENTRAL_FILE_HEADER+u(D,2)+B+u(y.length,2)+"\0\0\0\0"+u(M,4)+u(i,4)+g+S+y}},l=function(e){return s.DATA_DESCRIPTOR+u(e.crc32,4)+u(e.compressedSize,4)+u(e.uncompressedSize,4)};function f(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(f,i),f.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},f.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=c(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=c(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:l(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=u},function(e,t,r){"use strict";var n=r(287);function i(e){n.call(this,e)}r(11).inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,r){"use strict";var n=r(288);function i(e){n.call(this,e)}r(11).inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},function(e,t,r){"use strict";var n=r(285),i=r(11),o=r(158),a=r(159),s=r(63),u=r(278),c=r(45);function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in u)if(u.hasOwnProperty(t)&&u[t].magic===e)return u[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index (a.storageNetworkID === 0 || a.storageNetwork === 'Gaia') && (a.authenticationID === 0 || a.authentication === 'Blockstack')) @@ -191,24 +213,36 @@ export default (Vue as VVue).component('mercurius-home', { .concat(MORE_APPS); for(const app of apps) { - const node = appsNode.getAppNode(app.website); - - if(this.annotations[node.getAddress()]) - continue; - - Vue.set(this.annotations, node.getAddress(), app.name); + const a = this.makeApp(app, appsNode); + if(a) + newApps.push(a); + } - newApps.push({ - name: app.name, - website: app.website, - address: node.getAddress(), - privateKey: node.privateKey.toString('hex') - }); + this.apps = newApps; + this.$store.commit('setAppCache', newApps); - this.apps = newApps; - this.$store.commit('setAppCache', newApps); + this.workingOn = ''; + }, + async listFilesSingle(app: { address: string, privateKey: string, name: string }, hubInfo: { + challenge_text: string, + latest_auth_version: string, + read_url_prefix: string + }, server: string) { + try { + const gc: GaiaHubConfig = { // optimized so we don't spam hub_info as well as /list-files + url_prefix: hubInfo.read_url_prefix, + address: app.address, + token: makeV1GaiaAuthToken(hubInfo, app.privateKey, server), + server + }; + const list = await this.listBucketFiles(gc); - this.workingOn = ''; + if(list.length) + return list.map(a => app.address + '/' + a); + else return []; + } catch(e) { + console.error('Error listing files for app ' + app.name + '!'); + console.error(e); } }, async listFiles() { @@ -226,25 +260,12 @@ export default (Vue as VVue).component('mercurius-home', { this.bigList = bigList; for(let i = 0, app = this.apps[i]; i < this.apps.length; i++, app = this.apps[i]) { - try { - this.workingOn = 'Looking up ' + app.name + '\'s app bucket (' + i + '/' + this.apps.length + ')'; - - const gc: GaiaHubConfig = { // optimized so we don't spam hub_info as well as /list-files - url_prefix: hubInfo.read_url_prefix, - address: app.address, - token: makeV1GaiaAuthToken(hubInfo, app.privateKey, server), - server - }; - const list = await this.listBucketFiles(gc); - - if(list.length) - bigList.push(...list.map(a => app.address + '/' + a)); - this.progress += 1 / (this.apps.length + 1); - await new Promise(resolve => setTimeout(resolve, 500)); - } catch(e) { - console.error('Error listing files for app ' + app.name + '!'); - console.error(e); - } + this.workingOn = 'Looking up ' + app.name + '\'s app bucket (' + i + '/' + this.apps.length + ')'; + const list = await this.listFilesSingle(app, hubInfo, server); + if(list) + bigList.push(...list); + this.progress += 1 / (this.apps.length + 1); + await new Promise(resolve => setTimeout(resolve, 500)); } this.workingOn = 'Getting profile app bucket'; @@ -409,6 +430,100 @@ export default (Vue as VVue).component('mercurius-home', { this.workingOn = ''; this.working = false; }, + lookupApp() { + if(this.working) + return; + this.working = true; + this.workingOn = 'Looking up app...'; + + this.$dialog.prompt({ + message: 'App domain:', + inputAttrs: { + type: 'url', + placeholder: 'https://helloblockstack.com/' + }, + onConfirm: async value => { + if(!value.startsWith('http')) + value = 'https://' + value; + + let app: { + website: string; + name: string; + address: string; + privateKey: string; + }; + try { + app = this.makeApp({ website: value }); + } catch(e) { + this.$dialog.alert({ + type: 'is-danger', + message: 'Could not create an app from website "' + value + '"!' + }); + this.working = false; + this.workingOn = ''; + return; + } + if(!app) { + this.$dialog.alert({ + type: 'is-info', + message: 'App already listed!' + }); + this.working = false; + this.workingOn = ''; + return; + } + if(app && !this.apps.find(a => a.address === app.address)) + this.apps.push(app); + let hubInfo; + try { + const res = await Axios.get(this.activeGaia.server + '/hub_info'); + hubInfo = res.data; + } catch(e) { + this.$dialog.alert({ + type: 'is-danger', + message: 'Could not get hub info from active gaia hub "' + this.activeGaia.server + '"!' + }); + this.working = false; + this.workingOn = ''; + return; + } + let files: string[]; + try { + files = await this.listFilesSingle(app, hubInfo, this.activeGaia.server); + } catch(e) { + this.$dialog.alert({ + type: 'is-danger', + message: 'Could not create list files from address "' + app.address + '"!' + }); + this.working = false; + this.workingOn = ''; + return; + } + const filteredFiles = files.filter(a => !this.bigList.includes(a)); + if(filteredFiles.length) { + this.bigList = [ ...this.bigList, ...files.filter(a => !this.bigList.includes(a)) ].sort(); + this.$store.commit('setBigListCache', this.bigList); + } else if(files.length) { + this.$dialog.alert({ + type: 'is-info', + message: 'No *new* files from "' + app.name + '" to be listed!' + }); + } else { + this.$dialog.alert({ + type: 'is-info', + message: 'No files from "' + app.name + '" to be listed!' + }); + } + + this.working = false; + this.workingOn = ''; + }, + onCancel: () => { + this.working = false; + this.workingOn = ''; + } + }); + }, drawStart(event: MouseEvent) { if(event.button !== 0) return; diff --git a/src/components/home/home.vue b/src/components/home/home.vue index 56652f4..7887fd3 100644 --- a/src/components/home/home.vue +++ b/src/components/home/home.vue @@ -9,8 +9,9 @@
- - + + +